News for hackers. Stuff that matters.
Re:Why is Rosetta 2 fast? by astrange on Wednesday November 09, 2022 @08:51PM (#33541113)
I don't know what Android does… some kind of Java but not Java, right?

In that case it's much less expressive, so developers simply can't do the unsafe/specialized code in the first place. Which means they can't write in C or assembly.

Bitcode was a specific Apple feature that used LLVM's compiler IL and might have promised extra portability, but it didn't really work out and was removed this year. ("LLVM" stands for "low level virtual machine" which is funny because it isn't low level and isn't a virtual machine.)

Re:Why is Rosetta 2 fast? by KMag on Thursday November 10, 2022 @12:08AM (#33542482)
LLVM is lower level than Python or Java bytecode. LLVM is also virtual machine in the sense of an abstract machine, similar in idea to a process virtual machine. Most usages of "virtual machine" today are talking about system virtual machines, but it's important to note that "virtual machine" is an overloaded phrase.
Re:Why is Rosetta 2 fast? by pjmlp on Thursday November 10, 2022 @02:14AM (#33543241)
There is no C or Assembly in IBM and Unisys mainframes and microcomputers.