HNHacker News
TopNewBestAskShowJobs

mfex

25 karma · joined April 9, 2010

submissionscomments
mfex··on LISPy things you can do in 64K bytes of core (2019)
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)) ) )
mfex··on Dutch Railways offers unlimited off-peak train travel nationwide for €49/month
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...

mfex··on Ask HN: Share your personal website
https://thegeez.net
mfex··on IOCCC Flight Simulator (2010)
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

mfex··on The Presidential Nuclear "Football" from Eisenhower to George W. Bush
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

mfex··on Snowden’s First Move Against the NSA Was a Party in Hawaii
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...
mfex··on Steve Yegge v. Rich Hickey re: "Clojure just needs to start saying Yes"
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?
mfex··on "Introduction to Monads" with Clojure (video)
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.