» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Today's Birthdays
None
» Members Online: 380
9 members and 371 guests
alycebn11, doreenwa11, inessh11, JamesHet, Juicerwoe, Monrealpew, specious_reasons, StatElock, Zehava
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 Kyuss Apollo
Today 03:48 AM
120 Replies, 17,127 Views
Go to first new post Good King Trump
01-21-2017 02:07 PM
Last post by SR71
Today 03:48 AM
4,342 Replies, 578,261 Views
Go to first new post How's the fucking weather...
03-23-2009 11:19 PM
by Garnet
Last post by Kyuss Apollo
Today 03:30 AM
2,748 Replies, 397,900 Views
Go to first new post New And Improved Rant Thread,...
01-02-2009 04:18 PM
Last post by Crumb
Today 02:07 AM
4,063 Replies, 472,486 Views
Go to first new post News Miscellany
07-19-2014 09:14 PM
by Watser?
Last post by Kamilah Hauptmann
Today 01:20 AM
2,551 Replies, 460,168 Views
Go to first new post Fucking right wing death cults
07-17-2020 05:44 PM
by lisarea
Last post by Kamilah Hauptmann
Today 12:01 AM
149 Replies, 8,654 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 | 428 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,063
How can You Motivate...
09-18-2020 07:30 AM
09-19-2020 03:06 AM
by Ensign Steve
7 563
Has Your Life Changed?
09-07-2020 04:10 PM
09-09-2020 05:33 PM
by Corona688
9 1,033
(Covid-19)Children are...
09-07-2020 07:34 AM
09-15-2020 09:53 AM
by JoeP
18 937
» Stats
Members: 129,480
Threads: 29,238
Posts: 1,344,616
Top Poster: Crumb (59,990)
Welcome to our newest member, doreenwa11
» 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 04:17 AM.


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