News for hackers. Stuff that matters.
Re:What I Learned Making My Own JIT Language by arghwhat on Wednesday June 27, 2018 @06:22PM (#17412369)
The performance of JS is purely down to absolute compiler genius, which would have given better results and been better applied to a language that was not designed on the back of a napkin. JS does everything in its power to make life hard for the compiler.

Outside JS, most compiler work goes into static languages (which I strongly prefer), but once WebAssembly DOM support comes through, better languages will run on V8, stripping JS of everything it has.

Re:What I Learned Making My Own JIT Language by toopsss on Wednesday June 27, 2018 @08:34PM (#17413126)
> JS does everything in its power to make life hard for the compiler.

This is a bit hyperbole. It could be worse, it could be python. Yes pypy does not have the investment of v8, but there is more to it than that. Yes js sucks but the language was relatively simple enough to get speedups that would not be possible in jitted python because frankly python is a steaming hodge lodge pile of shit when you take the system as whole (imnsho)