News for hackers. Stuff that matters.
Re:IntelliJ Idea 2020.3.1 Is Out with Apple Silicon Support by sususu on Wednesday December 30, 2020 @10:28AM (#25582450)
As far I understand the Rosetta2 is not an emulator, but a layer that translate x86/x64 binary code to M1 binary code, it does not emulate a x86 machine in the system.

Something in the lines of Wine, I guess.

Re:IntelliJ Idea 2020.3.1 Is Out with Apple Silicon Support by Tuna-Fish on Wednesday December 30, 2020 @10:39AM (#25582555)
There is also an emulator layer. It's used as a fallback when the much faster ahead-of-time binary translator can't work. The emulator is generally not a good experience -- if you have to use it, you really want to go native asap.

Examples where it is required is any kind of self-modifying code, such as JITs and the like. Since IDEA is a java application that ships with it's own JRE, the aot translator can only translate the JRE parts and when the execution first jumps to freshly written memory the system bails to the emulator. Since the emulator is an order of magnitude (probably more...) slower than native, and the entire IDE runs on JIT, this is very bad.

Re:IntelliJ Idea 2020.3.1 Is Out with Apple Silicon Support by dtech on Wednesday December 30, 2020 @12:20PM (#25583562)
It includes a full emulator, there's no other way to run code generated at runtime which it can do.
Re:IntelliJ Idea 2020.3.1 Is Out with Apple Silicon Support by import on Wednesday December 30, 2020 @10:31AM (#25582481)
You're right.