» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Today's Birthdays
None
» Members Online: 333
7 members and 326 guests
donaldai4, JeffreygOr, JoeP, JosephgOr, Monrealpew, Ruslanbroks, warrenrt2
Most users ever online was 4,508, 06-12-2015 at 09:23 AM.
» Latest Posts
Go to first new post US Presidency 2020
05-04-2017 09:15 PM
Last post by JoeP
Today 08:49 AM
124 Replies, 17,175 Views
Go to first new post Winnie the Flu
01-25-2020 01:04 PM
by JoeP
Last post by JoeP
Today 08:40 AM
1,695 Replies, 102,785 Views
Go to first new post Countdown from one million...
11-28-2005 02:40 PM
Last post by JoeP
Today 08:34 AM
174,258 Replies, 16,264,973 Views
Go to first new post Miscellany
08-04-2006 11:46 PM
by lisarea
Last post by fragment
Today 07:55 AM
19,242 Replies, 2,390,257 Views
Go to first new post Good King Trump
01-21-2017 02:07 PM
Last post by fragment
Today 07:51 AM
4,344 Replies, 578,375 Views
Go to first new post BREAKING: Sometimes Famous...
02-24-2014 06:58 PM
by Adam
Last post by Kyuss Apollo
Today 06:00 AM
1,334 Replies, 280,906 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 | 452 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 | 446 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 212
RBG has died!
09-19-2020 12:59 AM
09-25-2020 03:36 PM
by viscousmemories
37 1,066
How can You Motivate...
09-18-2020 07:30 AM
09-19-2020 03:06 AM
by Ensign Steve
7 564
Has Your Life Changed?
09-07-2020 04:10 PM
09-09-2020 05:33 PM
by Corona688
9 1,035
(Covid-19)Children are...
09-07-2020 07:34 AM
09-15-2020 09:53 AM
by JoeP
18 939
» Stats
Members: 129,525
Threads: 29,238
Posts: 1,344,631
Top Poster: Crumb (59,990)
Welcome to our newest member, donaldai4
» 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 09:32 AM.


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