66 points · by blhack · 15y ago · 17 comments
When you're small, a language like Ruby or Python that's faster to develop in is more of an advantage.
It is dynamically-typed (but you can do static analysis with Dialyzer to check that it is well behaved - sort of semi-typed, best-of-both-worlds).
Although Erlang is not (usually) interpreted, you can hot load Erlang binaries into a running system in the VM which is super-cool and makes development an unalloyed pleasure.
Erlang's runtime is nicer, but like I said, that comes into play more once you've got popular, not when you're struggling to get traction and may need to change course quickly.
I personally tend to use Erlang in the core of the product as the internal router and basic message bus, with the ability to "drop to" Erlang if I need to, but leave a lot of the business logic in higher-level languages in processes connected to the core. I don't necessarily want business logic in my Erlang, but I wouldn't even try to prototype a router-like program in anything but Erlang, because nothing is better at it than Erlang.
https://github.com/eventmachine/eventmachine
https://github.com/eventmachine/eventmachine/wiki/Code-Snipp...
In any event, "more power per line of code" is a terrible metric. According to such logic, the best possible programming tool in the universe would be one that implemented your plan with a single statement: readMyMindAndDoIt.
But, what if a competing programming tool provided the same brevity of expression, but its implementation of readMyMindAndDoIt performed an order of magnitude faster?
Shared state concurrency
Message passing concurrency
"Wouldn't the node.js style callbacks be a third type of concurrency? It's similar to message passing, but quite different from the user's perspective.