Hacker News new | ask | show | jobs
by stingraycharles 434 days ago
It should be, as most interpreted code uses a JIT native compiler at this point, which implies the branch prediction is native as well.

I would be happy to stand corrected if someone knows more about this, though!

2 comments

> most interpreted code uses a JIT native compiler at this point

I suspect most JavaScript code is JIT-compiled - but most Python, Ruby etc is interpreted (via bytecode).

AFAIK CPython doesn't JIT compile.
Recent versions of CPython do have an experimental JIT compiler. I'm not sure how widely-used it is, though.

https://peps.python.org/pep-0744/

It's disabled by default, not production ready. You need to compile CPython yourself if you want to try it.