News for hackers. Stuff that matters.

rosh

Re:What I Wish I Knew When Learning Haskell on Sunday December 08, 2013 @07:37AM (#6869581)
I was reading up on Monads because of the reactive course. [0] I translated the code in "Monads for functional programming" (the linked paper) to Python a few weeks back – [1]

Not sure if it will actually help anyone, but it did help me in realising that I had not understood some code, but had instead just glossed over it. The State Monad, for example. [2]

--

[0] https://www.coursera.org/course/reactive

[1] https://github.com/rm/wadler

[2] https://github.com/rm/wadler/blob/master/wadler-2.8.py

Re:Callbacks as our Generation's Goto Statement on Thursday August 15, 2013 @09:18PM (#6221659)
Tornado has a similar interface:

    class GenAsyncHandler(RequestHandler):
        @gen.coroutine
        def get(self):
            http_client = AsyncHTTPClient()
            response = yield http_client.fetch("http://example.com")
            do_something_with_response(response)
            self.render("template.html")
(via http://www.tornadoweb.org/en/stable/gen.html ..)
Re:Don Knuth releases Volume 4, Pre-fascicle 6A [gzipped ps] on Thursday August 02, 2012 @04:46AM (#4327880)
It was on Reddit a few days ago... http://www.reddit.com/r/compsci/comments/xb6ft/
Re:Stanford to host more online classes on Thursday November 17, 2011 @11:11AM (#3248072)
You should contact Thrun and Norvig who are running ai-class, they've started http://www.knowit.com/
Beware of the Turing tar-pit in which everything is possible but nothing of interest is easy. -- Alan Perlis, Epigrams on Programming
Re:Why MIT switched from Scheme to Python on Wednesday March 25, 2009 @05:59AM (#531666)