» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Today's Birthdays
None
» Members Online: 102
12 members and 90 guests
ceptimus, domAdulk, fragment, Independentfun, jackmt, JoeP, leonorkf3, specious_reasons, TommyVah
Most users ever online was 4,508, 06-12-2015 at 09:23 AM.
» Latest Posts
Go to first new post Countdown from one million...
11-28-2005 02:40 PM
Last post by vremya
Today 02:31 PM
174,229 Replies, 16,236,150 Views
Go to first new post Good King Trump
01-21-2017 02:07 PM
Last post by slimshady2357
Today 02:00 PM
4,330 Replies, 575,764 Views
Go to first new post Fucking right wing death cults
07-17-2020 05:44 PM
by lisarea
Last post by viscousmemories
Today 01:47 PM
141 Replies, 8,097 Views
Go to first new post Miscellany
08-04-2006 11:46 PM
by lisarea
Last post by Ymir's blood
Today 12:39 PM
19,239 Replies, 2,383,511 Views
Go to first new post Republicans suck
03-22-2013 08:48 PM
by Sauron
Last post by Kamilah Hauptmann
Today 10:27 AM
198 Replies, 36,985 Views
Go to first new post Philolsophy
11-15-2016 05:37 AM
Last post by Kamilah Hauptmann
Today 09:05 AM
199 Replies, 95,775 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 | 298 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 | 390 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 174
RBG has died!
09-19-2020 12:59 AM
09-25-2020 03:36 PM
by viscousmemories
37 968
How can You Motivate...
09-18-2020 07:30 AM
09-19-2020 03:06 AM
by Ensign Steve
7 504
Has Your Life Changed?
09-07-2020 04:10 PM
09-09-2020 05:33 PM
by Corona688
9 1,000
(Covid-19)Children are...
09-07-2020 07:34 AM
09-15-2020 09:53 AM
by JoeP
18 887
» Stats
Members: 128,822
Threads: 29,237
Posts: 1,344,487
Top Poster: Crumb (59,984)
Welcome to our newest member, Independentfun
» 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 03:09 PM.


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