2 ms·
I'm sure Node is generally faster and consumes fewer server resources than Rails. How about speed of developing things though, that do involve a relational dat
by davidw 14y ago
I'm sure Node is generally faster and consumes fewer server resources than Rails. How about speed of developing things though, that do involve a relational database on the server? Rails has so much in terms of convenience functions that it's hard to jump to anything else, outside of applications where it's clearly not suited. Erlang has been faster and better at async than even Node since before Node even existed, but it's painful to use after getting used to Rails because it feels like a lot more typing and a lot more doing stuff by hand that Rails handles easily.
- paulbjensen 14y agoI agree, Erlang is very interesting (especially for the hot-code swapping capability). I've been looking into it recently, specifically a project called Elixir (http://elixir-lang.org http://elixir-lang.org) which is a language built on top of the Erlang VM.
- _nato_ 14y agoAlso, check out Chicago Boss!
- pjmlp 14y agoErlang also has the benefit of being able to compile to native code, if you wishes to do so.
- pooriaazimi 14y agoWell, V8 kinda barfs out native code too... I know it's not the same thing[1], but it's not like that to run a loop in Node.js the parser has to read the line "console.log('hello');" 10 times, tokenize it, generate a parse tree, etc. I just wanted to point it out because I think most people don't know about it, and that's why they are amazed at Node.js's speed (how can a interpreted language like JS be so fast?!). [1]: It's definitely slower than native code generated by Erlang, I'm not saying it's faster or even on par; but still, it's much better than an interpreter! This StackOverflow answer is relevant: http://stackoverflow.com/a/4220550/347353 http://stackoverflow.com/a/4220550/347353
- davidw 14y agohttp://shootout.alioth.debian.org/u32/which-programming-languages-are-fastest.php http://shootout.alioth.debian.org/u32/which-programming-lang... Actually does show V8 as being faster than Erlang's HiPE... I guess it pays off to have someone like Google sinking all that work into making things fast.
- pooriaazimi 14y agoYes. But let's hope that Go thing doesn't distract them...