Hacker News new | past | comments | ask | show | jobs | submit login

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.




Probably 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.


V8 has an interpreter (Ignition) and a JIT (TurboFan) [1] but can be used without the JIT: https://v8.dev/blog/jitless


If 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.


V8 also has an interpreter which runs first while code is being compiled or has yet to be identified as a JIT candidate.


Hermes does have a tier 1 JIT, though it is not a primary focus yet.


Do 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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: