Re:Beautiful JavaScript – Functional JavaScript
by groovy2shoes on Sunday December 25, 2016 @08:38PM
(#13256425)
> i always wondered what a really, really god JIT-compiler would look like.
Take a look at LuaJIT, then.
Also, I feel like it's worth mentioning that Haskell, OCaml, and Standard ML all have high-quality compilers available that can generate some pretty performant code. You won't get C speed out of them (at least not with idiomatic code), but you can wind up with executables that beat Java or C# perhaps, and easily beat the likes of Python, Ruby, Perl, JavaScript, ....
Take a look at LuaJIT, then.
Also, I feel like it's worth mentioning that Haskell, OCaml, and Standard ML all have high-quality compilers available that can generate some pretty performant code. You won't get C speed out of them (at least not with idiomatic code), but you can wind up with executables that beat Java or C# perhaps, and easily beat the likes of Python, Ruby, Perl, JavaScript, ....