News for hackers. Stuff that matters.
Re:Why is Rosetta 2 fast? by titzer on Wednesday November 09, 2022 @04:08PM (#33537852)
Nearly all JS engines are doing concurrent JIT compilation now, so some of the compilation cost is moved off the main thread. Java JITs have had multiple compiler threads for more than a decade.
Re:Why is Rosetta 2 fast? by kllrnohj on Wednesday November 09, 2022 @09:22PM (#33541382)
But they all still optimize their JITs to prioritize compilation speed & RAM usage (JIT'd code is dirty pages after all) over maximum optimizations. This is why you see things like WebKits multi-tier JIT strategy: https://webkit.org/blog/3362/introducing-the-webkit-ftl-jit/

They still want to swap in that JIT'd result ASAP since after all by the time it's been flagged for compilation it's already too late & is a hot hot hot function.

Re:Why is Rosetta 2 fast? by pjmlp on Thursday November 10, 2022 @02:20AM (#33543273)
Which is why in the Java world (including Android), and .NET, now we use JIT caches as well, so that this data isn't lost between runs.