Programming With Nothing: FizzBuzz in the lambda calculus in Ruby
1–10 of 55 posts
Re: Programming With Nothing: FizzBuzz in the lambda calculus in Ruby
#2I highly recommend watching the video of the original presentation at http://rubymanor.org/3/videos/programming_with_nothing/ as Tom Stuart's public speaking skills made this a thoroughly enjoyable (if a little mind-bending) talk.
Re: Programming With Nothing: FizzBuzz in the lambda calculus in Ruby
#3The presentation from which this article is adapted was a definite highlight of the Ru3y Manor conference (and received rapturous applause). I highly recommend watching the video of the original presentation at http://rubymanor.org/3/videos/programming_with_nothing/ as Tom Stuart's public speaking skills made this a thoroughly enjoyable (if a little mind-bending) talk.
Re: Programming With Nothing: FizzBuzz in the lambda calculus in Ruby
#4Here's a simple recursively defined number system in scheme: https://gist.github.com/1466985
Re: Programming With Nothing: FizzBuzz in the lambda calculus in Ruby
#5The presentation from which this article is adapted was a definite highlight of the Ru3y Manor conference (and received rapturous applause). I highly recommend watching the video of the original presentation at http://rubymanor.org/3/videos/programming_with_nothing/ as Tom Stuart's public speaking skills made this a thoroughly enjoyable (if a little mind-bending) talk.
Re: Programming With Nothing: FizzBuzz in the lambda calculus in Ruby
#6This could have replaced ~8 weeks of my CS languages/compilers class, and I would have understood the material better at the end of it.
Re: Programming With Nothing: FizzBuzz in the lambda calculus in Ruby
#7 >>> ZERO = lambda f: lambda x: x
>>> FIVE = lambda f: lambda x: f(f(f(f(f(x)))))
>>> to_int = lambda f: f(lambda x: x+1)(0)
... etc.Re: Programming With Nothing: FizzBuzz in the lambda calculus in Ruby
#8But then the final piece of code would not look as awesome so whatever :)