Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or Erlang/Elixir.


Never any love for Haskell... which is ironic considering his ruby library is essentially a (weak) runtime version of Haskell's type signatures.


Damn, 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.


There'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-work... [2] http://www.daniellesucher.com/2013/07/ruby-case-versus-if/


Nice writeups, thanks!




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: