|
|
|
|
|
by Touche
3446 days ago
|
|
It is a sign of the quality of the language. No amount of money can make a square peg fit into a round hole. Lua is better optimized because it is smaller. It's been the right decision to keep Lua small given where it specializes. Given where JavaScript specializes it's been the right decision to not keep it small but to evolve it. JavaScript is big because it can be big; it has the resources to make it so. You're wrong. |
|
I think this is fundamentally wrong. I think you're confusing the language itself with how the language has been implemented.
Speed is entirely separate from the language. It's possible to write two different JS interpreters: one very fast and one very slow, both of which meet the language standard set by ECMA.
These days JS generally gets JIT compiled and a tremendous amount of work has gone into improving the popular compilers. Lots of tricks are involved. These tricks are quite clever (though sometimes inelegant) and result in significant speedups. But they have nothing to do with the language itself.