3 ms·
The M-series chips from Apple have some special hardware to help emulate x86 with near-native performance, right? I wonder if they take advantage of those featu
by bee_rider 2y ago
The M-series chips from Apple have some special hardware to help emulate x86 with near-native performance, right? I wonder if they take advantage of those features (actually I forget exactly what the features were).
I mean this is an incredible achievement either way. Everything is emulated, but they are still running AAA games. Wow.
- captn3m0 2y agoRosetta 2: https://en.wikipedia.org/wiki/Rosetta_(software)#Rosetta_2 https://en.wikipedia.org/wiki/Rosetta_(software)#Rosetta_2
- vyskocilm 2y agoI believe libkrun is the tech behind. https://fosstodon.org/@slp/113283657607783321 https://fosstodon.org/@slp/113283657607783321 Sergio Lópéz has more info in his blog https://sinrega.org/2024-03-06-enabling-containers-gpu-macos/ https://sinrega.org/2024-03-06-enabling-containers-gpu-macos... https://sinrega.org/2023-10-06-using-microvms-for-gaming-on-fedora-asahi/ https://sinrega.org/2023-10-06-using-microvms-for-gaming-on-...
- saagarjha 2y agoNo reason they can’t.
- bee_rider 2y agoIf every layer of abstraction and emulation is set up to allow it to pass through. It still seems really impressive to me, like lining up a bunch of targets and shooting an arrow through to get multiple bullseyes or something, haha.
- saagarjha 2y agoIt’s not really all that hard
- dontdoxxme 2y agoHardly, the benefit of binary is if everything lines up once, it always will. It’s not an analog world with pesky things like wind resistance.
- thfuran 2y agoMaybe if you happen to own the control stack from hardware, OS, drivers, to client software and are willing to never change any of it once you get things lined up.
- rowanG077 2y agoWhy not? In fact they are using it right now.
- bee_rider 2y agoI think the comment was saying “there isn’t any reason they can’t.” Which is true in theory, but in the practice it seems to be a lot of stuff to line up.
- sumuyuda 2y agoThey are using it: Other than the page size issue, FEX and Rosetta are comparable technologies (both are emulators, despite what Apple marketing might have you believe). Both FEX and Rosetta use the unique Apple Silicon CPU feature that is most important for x86/x86_64 emulation performance: TSO mode. Thanks to this feature, FEX can offer fast and accurate x86/x86_64 emulation on Apple Silicon systems. From: https://docs.fedoraproject.org/en-US/fedora-asahi-remix/x86-support/#_is_this_like_rosetta_on_macos https://docs.fedoraproject.org/en-US/fedora-asahi-remix/x86-...