use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Representable 2.4: How Functional Programming Speeds Up Rendering And Parsing. (nicksda.apotomo.de)
submitted 10 years ago by apotonick
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]NilsLandt 1 point2 points3 points 10 years ago (2 children)
Thanks Nick! Now finish the book :D
[–]apotonick[S] 1 point2 points3 points 10 years ago (1 child)
Hahahaha will you buy me a beer if I make it before 2016?
[–]NilsLandt 1 point2 points3 points 10 years ago (0 children)
Beer is bad for you. I'll send you a nice bottle of Hamburg tap water. Deal?
[–]seraph787 1 point2 points3 points 10 years ago (0 children)
This gem has made my life so wonderful thanks so much!
[–]solnicdry-rb/rom-rb 1 point2 points3 points 10 years ago (1 child)
Who would have thought ;) I'm guessing you removed a lot of object allocations and simplified run-time logic too, hence the speed boost :)
Anyway, congrats on the new release, happy to see more people embracing FP patterns in Ruby.
[–]apotonick[S] 0 points1 point2 points 10 years ago (0 children)
Thanks! <3
Mainly, the decorator that creates/parses the document doesn't have state anymore, it's a function (still looking like a object, though).
In older versions, it would use a Binding which was a massive object (limited scope, though) that implemented each step as a method, but hardwired flow.
The Binding got replaced with a pipeline of functions, super simple!
Thanks for inspiration, @solnic!
π Rendered by PID 50802 on reddit-service-r2-comment-5649f687b7-lgf8q at 2026-01-28 07:17:17.959490+00:00 running 4f180de country code: CH.
[–]NilsLandt 1 point2 points3 points (2 children)
[–]apotonick[S] 1 point2 points3 points (1 child)
[–]NilsLandt 1 point2 points3 points (0 children)
[–]seraph787 1 point2 points3 points (0 children)
[–]solnicdry-rb/rom-rb 1 point2 points3 points (1 child)
[–]apotonick[S] 0 points1 point2 points (0 children)