News for hackers. Stuff that matters.

mfex

Re:LISPy things you can do in 64K bytes of core on Tuesday October 27, 2026 @09:05AM (#50258586)
picolisp also has an interesting closing paren style by its author, with a space before closing parentheses if the open parenthesis is not on the same line:

  (- 1
    (+ 2
      (* 3 (/ 4 5)) ) )
This special ticket is implemented by providing a 2-month discount on the existing 'off-peak free travel' subscription from the Dutch Railways. This was deemed the only way to quickly introduce such a product [1].

[1] (in Dutch) https://www.rijksoverheid.nl/actueel/nieuws/2026/05/22/voors...

Re:Ioccc Flight Simulator (2010) on Monday October 21, 2024 @04:04PM (#41907964)
After this was posted here in 2017 I made a version in ClojureScript, where you fly over Amsterdam instead of Pittsburg.

http://thegeez.net/2018/04/01/flight.html

There are 2 speculative fiction books about nuclear war unfolding in present time. Both feature usage of the 'football'. The 'commission report' is my recommendation out of the two:

The 2020 Commission Report on the North Korean Nuclear Attacks Against the United States [0] Nuclear War: A Scenario [1]

[0] https://en.wikipedia.org/wiki/The_2020_Commission_Report_on_... [1] https://en.wikipedia.org/wiki/Nuclear_War:_A_Scenario

Be sure to check out this comment explaining the name of Snowden's email address: http://www.wired.com/2014/05/snowden-cryptoparty#comment-139...
Re: 1. In your Scala example the two underscores are placeholders for two different arguments. The underscore is also used in Scala for catch all clauses with 'match'. How is this syntax then way better than %1 and %2 for arguments in shorthand syntax in Clojure?
Re:"Introduction to Monads" with Clojure (video) on Friday April 09, 2010 @08:11AM (#1252434)
The two monad tutorials referenced in the talk and the clojure.contrib.monads source explain monads in the same way:

http://onclojure.com/2009/03/05/a-monad-tutorial-for-clojure... http://intensivesystems.net/tutorials.html

The onclojure tutorial shows how (let ..) and (for ..) expressions are all about nested functions and how you can construct them yourself with monads. Be sure to work through it to part 4 which shows an elegant solution using monads for the Monty Hall problem, which is about probabilities and distributions.