News for hackers. Stuff that matters.
Re:Apple announces it will switch to its own processors for ... by mrkstu on Monday June 22, 2020 @02:55PM (#23604254)
Rosetta 2 - the interesting bit was that it was going to pre-translate binaries instead of at runtime. The implications for actual VM emulation is that Rosetta won't work for run time environments like OS emulation. They touched on it briefly with the emulation technologies bit, but it looks like it will be separate from, and likely much less performant than Rosetta.
Re:Apple announces it will switch to its own processors for ... by mantap on Monday June 22, 2020 @03:03PM (#23604459)
They explicitly said that it can perform both static and dynamic translation for JITs. I wouldn't be surprised if there is substantial hardware support too.
Re:Apple announces it will switch to its own processors for ... by mrkstu on Monday June 22, 2020 @03:24PM (#23604927)
My brain skipped over that part apparently. It is interesting that they are calling out virtualization improvements separately though.
Re:Apple announces it will switch to its own processors for ... by saagarjha on Monday June 22, 2020 @03:46PM (#23605366)
Apple's chips haven't supported that yet, so it's certainly something new.
Re:Apple announces it will switch to its own processors for ... by vletal on Monday June 22, 2020 @04:28PM (#23606093)
I was wondering why did they mention the virtualization. Let's see what technology do they use. Whether it is going to be proprietary or something like Xen.
Re:Apple announces it will switch to its own processors for ... by thetinguy on Tuesday June 23, 2020 @07:08PM (#23621541)
In the state of the union they mentioned an Apple hypervisor
Re:Apple announces it will switch to its own processors for ... by monocasa on Monday June 22, 2020 @09:21PM (#23608990)
It's going to be an ARM clone of Hypervisor.Framework.
Re:Apple announces it will switch to its own processors for ... by SahAssar on Monday June 22, 2020 @07:14PM (#23608068)
> They explicitly said that it can perform both static and dynamic translation for JITs

Can a JIT be static? Isn't that not possible by definition?

Re:Apple announces it will switch to its own processors for ... by mantap on Tuesday June 23, 2020 @05:57AM (#23611839)
I meant that it supports dynamic translation in order to support JITs such as turbofan.

But to answer your question, yes a JIT can be static. JIT just means that the compilation happens at runtime, and "static" in this context means that the compilation is happening at the very start of runtime. You could imagine a JIT that compiles all bytecode to native code immediately on launch. The reason this technique is not used often is that it tends to lead to long startup times. But if the result is cached somewhere then it might be acceptable.

Re:Apple announces it will switch to its own processors for ... by jedieaston on Monday June 22, 2020 @02:58PM (#23604324)
The emulation thing seemed to me to be Hypervisor.framework for ARM, as they showed Linux and Docker running (which both run on ARM), but not Windows (which an average user may be more interested in).
Re:Apple announces it will switch to its own processors for ... by LeoPanthera on Monday June 22, 2020 @03:31PM (#23605091)
> Rosetta won't work for run time environments like OS emulation

They literally showed a demo of Parallels with Ubuntu for Intel running inside it.

Re:Apple announces it will switch to its own processors for ... by ryukafalz on Monday June 22, 2020 @03:44PM (#23605332)
Did they show the architecture at any point? I didn't see the architecture shown in the VM at all, but could have missed it.
Re:Apple announces it will switch to its own processors for ... by monocasa on Monday June 22, 2020 @08:18PM (#23608548)
It was debian, and in the state of the union talk, they called it out as an ARM build of debian.
Re:Apple announces it will switch to its own processors for ... by saagarjha on Monday June 22, 2020 @03:46PM (#23605372)
How do you know it was for Intel?
Re:Apple announces it will switch to its own processors for ... by nicoburns on Monday June 22, 2020 @03:51PM (#23605465)
Yes, but probably a native ARM version of Ubuntu rather than an emulated x86 version.
Re:Apple announces it will switch to its own processors for ... by ashearer on Monday June 22, 2020 @03:00PM (#23604388)
The same slide also mentioned supporting JIT translation (for x86 web browsers and Java), so Rosetta doesn't run only at installation time.
Re:Apple announces it will switch to its own processors for ... by minxomat on Monday June 22, 2020 @03:00PM (#23604367)
It's doing both AOT and also hooks JIT compilers. They mentioned JS engines as an example for the latter.