|
> You're looking at languages, but a language does not affect performance: its platform does. Both language and platform affect performance, otherwise JRuby would be the same speed as native Java, which is not the case. > E.g., the only Ruby benchmark which is faster than Node is actually JRuby, i.e. Java. Which still means that Ruby (as a language, using the JRuby implementation) can be faster than Node (assuming the benchmark at issue is meaningful at all.) > That's a matter of preference. Anyways, you shouldn't evaluate languages, but platforms. Since you actually need to choose languages to use, you absolutely should evaluate them. You should, of course, also evaluate platforms since you need to choose those, too (and part of evaluating languages is evaluating the constraints language choices put on platform choices, and vice versa.) |
No. JRuby is the platform, that's why JRuby is not the same speed as native Java.
But CoffeeScript has the same speed as plain JavaScript, because both are running over the same platform (NodeJS) even if they're different languages.
It just happens JRuby can only run a single language (Ruby).
> Which still means that Ruby (as a language, using the JRuby implementation) can be faster than Node (assuming the benchmark at issue is meaningful at all.)
Ruby is neither fast nor slow. Languages don't have speed.
> Since you actually need to choose languages to use, you absolutely should evaluate them.
Of course, but you shouldn't evaluate languages on their speed, because then you're measuring something completely unrelated to the language. You can measure platform speed (and the constraints they put on languages you can choose), not the other way around.
---
So, to sum it up, software engineering is all about compromises. Dismissing NodeJS because it ranks 21st in a benchmark is a bit shortsighted.
Of course Java and C are going to beat JS at speed, but... do you want to deal with Java's interfacing mess? Do you want to deal with C's manual memory management? I certainly don't. Especially for a web app.