» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Today's Birthdays
None
» Members Online: 223
4 members and 219 guests
annanp16, JeffreygOr, JosephgOr, maureendk11
Most users ever online was 4,508, 06-12-2015 at 09:23 AM.
» Latest Posts
Go to first new post An Arf-Arf Here and a...
10-17-2009 03:34 AM
by Shelli
Last post by BrotherMan
Today 07:36 AM
2,067 Replies, 359,312 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:15 AM
3,467 Replies, 591,485 Views
Go to first new post Winnie the Flu
01-25-2020 01:04 PM
by JoeP
Last post by beyelzu
Today 06:59 AM
1,687 Replies, 99,398 Views
Go to first new post This Old House of Bricks
08-09-2020 05:27 AM
by beyelzu
Last post by beyelzu
Today 06:02 AM
46 Replies, 2,779 Views
Go to first new post Official "FUCK THA POLICE"...
07-15-2010 11:50 AM
by erimir
Last post by Ari
Today 03:39 AM
1,457 Replies, 322,317 Views
Go to first new post Post-Trump Democracy
09-24-2020 08:59 PM
Last post by Stephen Maturin
Today 12:53 AM
17 Replies, 322 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.
0 Replies | 58 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 | 322 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 141
RBG has died!
09-19-2020 12:59 AM
Yesterday 03:36 PM
by viscousmemories
37 882
How can You Motivate...
09-18-2020 07:30 AM
09-19-2020 03:06 AM
by Ensign Steve
7 450
Has Your Life Changed?
09-07-2020 04:10 PM
09-09-2020 05:33 PM
by Corona688
9 932
(Covid-19)Children are...
09-07-2020 07:34 AM
09-15-2020 09:53 AM
by JoeP
18 799
» Stats
Members: 129,565
Threads: 29,236
Posts: 1,344,423
Top Poster: Crumb (59,983)
Welcome to our newest member, annanp16
» 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:37 AM.


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