» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Today's Birthdays
None
» Members Online: 323
16 members and 307 guests
Ari, ilenecl2, jacquelinezq1, Jamieovecy, JeffreygOr, JoeP, JosephgOr, Kamilah Hauptmann, Miisa, Monrealpew, Panichkin319, RandyHV, sd69, vd2
Most users ever online was 4,508, 06-12-2015 at 09:23 AM.
» Latest Posts
Go to first new post New And Improved Rant Thread,...
01-02-2009 04:18 PM
Last post by Miisa
Today 08:23 PM
4,056 Replies, 472,023 Views
Go to first new post Good King Trump
01-21-2017 02:07 PM
Last post by Kamilah Hauptmann
Today 08:17 PM
4,338 Replies, 577,991 Views
Go to first new post Seen any crappy movies?
03-20-2010 01:40 AM
Last post by specious_reasons
Today 08:09 PM
729 Replies, 156,879 Views
Go to first new post Shocking Prediction! ...
07-01-2020 12:15 AM
by SR71
Last post by Sock Puppet
Today 07:54 PM
70 Replies, 6,261 Views
Go to first new post One of those 'Wat'cha...
08-11-2004 04:24 AM
by Petra
Last post by Kamilah Hauptmann
Today 07:40 PM
3,471 Replies, 593,901 Views
Go to first new post Because of Amazon Prime...
03-31-2013 01:13 AM
Last post by specious_reasons
Today 07:16 PM
95 Replies, 30,540 Views
Welcome to the Freethought Forum
The lofty high Renaissance and marked mannerism. The heavy and ornate Baroque era, followed by the gentle Rococo. Harsh neo-classicism, rich romanticism, lush naturalism, stern realism, blurred impressionism. Heady surrealism, blockish cubism, postwar Dada, pointy-cornered art deco and cookie cutter Bauhaus. Let us skip the dreariness of the past half century and arrive finally at FF Style.


» FF News Feed
Add our news to your website!

Clojure
Sep 25, 2020 - 11:53 PM - by ceptimus
I'm taking a break from the Dart programming language and playing with the Clojure language. Clojure is a modern Lisp, and Lisp is one of the oldest computer languages around - invented in 1958 - only Fortran is older.

I've no idea what I'm doing really - just blundering around till the thing compiles and runs. I've written a sudoku solver as a learning exercise. Here's part of it.

Code:
(defn rmk [p] ; puzzle
  (loop [q p r (knowns p)]
    (if (empty? r)
      (if (< (count (knowns p)) (count (knowns q)) 81)
        (rmk q) ;found some new knowns (but not yet found all 81) so run again
        q) ;return puzzle 
      (recur (rma q (links (first (keys r))) (first (vals r))) (rest r)))))
Clojure is pretty mind-bending because everything's immutable - there's no easy way to even have a loop variable that increments without using recursion. :chin:

Also, lots of parentheses.



I don't think I'll use Clojure seriously, but I may pick up a few concepts that will be useful when writing programs in other languages.
5 Replies | 409 Views
Post-Trump Democracy
Sep 24, 2020 - 8:59 PM - by viscousmemories
It's hard for me to imagine a post-Trump future as we close in on a potential civil war, but the Democrats actually gave me a tiny glimmer of hope yesterday with H.R.8363. It's nice to fantasize about a timeline where there's a peaceful transition of power to the Democrats and all these loopholes Trump exploited are sewed up.

Fact Sheet
17 Replies | 442 Views
» Random Thread Archive
  Title, Username, & Date Last Post Replies Views
Same as it ever was
09-21-2020 06:19 AM
09-21-2020 05:06 PM
by Oxymaroon
3 206
RBG has died!
09-19-2020 12:59 AM
09-25-2020 03:36 PM
by viscousmemories
37 1,060
How can You Motivate...
09-18-2020 07:30 AM
09-19-2020 03:06 AM
by Ensign Steve
7 561
Has Your Life Changed?
09-07-2020 04:10 PM
09-09-2020 05:33 PM
by Corona688
9 1,030
(Covid-19)Children are...
09-07-2020 07:34 AM
09-15-2020 09:53 AM
by JoeP
18 936
» Stats
Members: 129,389
Threads: 29,238
Posts: 1,344,589
Top Poster: Crumb (59,989)
Welcome to our newest member, jacquelinezq1
» Current Poll
PICK
IKEA - 26.67%
4 Votes
LEGO - 73.33%
11 Votes
PLND - 13.33%
2 Votes
PLTX - 6.67%
1 Vote
OTHR - 13.33%
2 Votes
Total Votes: 15
You may not vote on this poll.
Powered by vBadvanced CMPS v3.0.1
 

All times are GMT +1. The time now is 08:28 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Page generated in 0.50498 seconds with 16 queries