3 ms·
Does this mean that V8 (which uses a JIT compiler) is a bad fit for web browsers? I think they exaggerate: > A JIT is likely to hurt the metrics we care abou
by amelius 6y ago
Does this mean that V8 (which uses a JIT compiler) is a bad fit for web browsers?
I think they exaggerate:
> A JIT is likely to hurt the metrics we care about most
And they ruled out the possibility of having both a JIT and ahead of time compilation.
- sime2009 6y agoV8 also has an interpreter which runs first while code is being compiled or has yet to be identified as a JIT candidate.
- fpoling 6y agoIf JS code is few event listeners to verify/massage the data to submit to the server, then the answer is yes. But for more complex web pages the answer is now. For example, React on web and similar framework may not be feasible without JIT.
- jiofih 6y agoProbably to limit scope / complexity. Remember that the JS engine here (in React Native) is basically pulling strings to orchestrate a bunch of native modules, not doing any of the heavy lifting. It’s quite different from the current web environment.
- Zababa 6y agoV8 has an interpreter (Ignition) and a JIT (TurboFan) [1] but can be used without the JIT: https://v8.dev/blog/jitless https://v8.dev/blog/jitless
- ridiculous_fish 6y agoHermes does have a tier 1 JIT, though it is not a primary focus yet.
- albntomat0 6y agoDo you have more information on this? I remember looking into it a couple months ago, and being told the jit wasn’t going to be developed further. Thanks!