4 ms·
Jim Weirich derives the Y combinator in pure Ruby here: http://vimeo.com/45140590 http://vimeo.com/45140590 EDIT: Correct video http://www.youtube.com/watch?v
by tesmar2 14y ago
Jim Weirich derives the Y combinator in pure Ruby here:
http://vimeo.com/45140590 http://vimeo.com/45140590
EDIT: Correct video http://www.youtube.com/watch?v=FITJMJjASUs http://www.youtube.com/watch?v=FITJMJjASUs
It is some of the ugliest ruby code I have ever seen, but it was something amazing to watch happen live.
- eggsby 14y agoNice, I enjoyed Jim's talk where he derived the combinator using clojure[1]. In it he referenced another talk that he cites as an influence, "Programming With Nothing"[2] by Tom Stuart where he writes fizzbuzz in ruby using only lambda application. Finding the SKI calculus was a similar revelation to me, that such simple combinators could represent any lambda term is such a huge idea! 1: http://www.infoq.com/presentations/Y-Combinator http://www.infoq.com/presentations/Y-Combinator 2: http://rubymanor.org/3/videos/programming_with_nothing/ http://rubymanor.org/3/videos/programming_with_nothing/
- baddox 14y agoIs the Ruby hiding in that video? I briefly skimmed it and all I saw was JavaScript.
- tesmar2 14y agoYou are correct, I edited the comment with the right video.