4 ms·
Or Erlang/Elixir.
by unknownian 13y ago
Or Erlang/Elixir.
- SkyMarshal 13y agoDamn, busted. Elixir was the first thing that popped into my head on seeing this title. It looks almost like a Ruby port to the Erlang VM. That said, good writeup, even for a non-Rubyist, enjoyed seeing the process. One thing that stuck out is how control flow via if/then/else is faster than via case (for more than 2 options) in Ruby. I always assumed the opposite, for any language.
- ics 13y agoThere's an older (but still interesting) post about case in Ruby here[1] and another here[2] with some extra insight into the MRI implementation. Having learned Ruby before most of the other stuff I play with these days, I always second-guess myself when using a switch/case construct in my code. [1] http://www.skorks.com/2009/08/how-a-ruby-case-statement-works-and-what-you-can-do-with-it/ http://www.skorks.com/2009/08/how-a-ruby-case-statement-work... [2] http://www.daniellesucher.com/2013/07/ruby-case-versus-if/ http://www.daniellesucher.com/2013/07/ruby-case-versus-if/
- SkyMarshal 13y agoNice writeups, thanks!
- orclev 13y agoNever any love for Haskell... which is ironic considering his ruby library is essentially a (weak) runtime version of Haskell's type signatures.