A general purpose Apple Silicon layer for x86-64 PCs
github.comA general purpose Apple Silicon layer for x86-64 PCs. It is a UEFI boot program with an arm64-to-x86-64 translator, a Metal driver for NVIDIA GPUs and a model of Apple silicon hardware. macOS and most apps start, but it is slow and needs much more testing, as of v0.1.0
Is the intent to support running macOS on it, or rather for e.g. Linux that targets Apple Silicon?
To support running the Apple Silicon version of macOS on x86-64 PCs.
There was a lot of discussion around the time the M1 came out about how it would be the end of Hackintoshes, but it seems the Hackintoshers just won't give up (and now they have the help of AI.)
honestly i'm surprised.
apple still has good hardware but software feels increasingly bloated and buggy.
back in the day I hackintoshed, but now i feel like switching to asahi sometimes (or at least dual booting it) when my silicon is supported.
Hackintosh makes sense if you require to run Apple software to do something, e.g Xcode for iOS development since you cannot develop, build and publish easily without it. I am not sure if Final Cut or Logic or whatever else adjacent is still an industry standard. I'd think Da Vinci Resolve (which is even on Linux) and FL / Ableton are kings nowadays.
For a brief moment of time in 2020s it was easier to just buy a Mac Mini M2/M4 than bother with a Hackintosh but now with the hardware prices on the rise you have to consider it instead of it being a no-brainer.
True. Also plenty of people using Logic and FCP for whatever reasons (because Resolve is a crufty buggy piece of Electron app, because Ableton's price is multiples of Logic, because they like their workflows etc)
Resolve is neither Electron nor crufty and buggy, at least in my experience. Are you getting it confused with some other software?
Fine you're right, it's actually mostly Qt, but it does bundle Electron (but only uses it for some extensions). Anyway it is buggy and really awkward to use at least on mac. Can't say the same about Ableton, blazing fast and legit at least as good as Logic, just more expensive
Yeah the reason I switched to macOS is that pretty much all my hardware was already Apple, and it just integrates so much better.
I did Hackintosh for a year or so as well maybe a decade ago, but that was a scary experience any time you did an OS update.
Yeah my 2012 Mac book air runs nixos. Solid hardware, refuses to die, but it got pretty slow under os x about 10 years ago and I gave up.
"Are you getting it?"
So, basically an emulator layer that doesn't need a host OS? (I'm not really interested in running Darwin, but that's a cool concept)
I guess one could call it a "bare-metal/type 1 emulator" much like VMs can run in a "bare-metal/type 1 hypervisor".
"An ahead-of-time and just-in-time compiler translates arm64e code to x86-64."
No, not the same, actually. It's more of a Rosetta, but other way round, if I understand this right.
Rosetta is an emulator (or, I suppose, a series of emulators), i.e. a piece of software that makes a computer pretend to be another kind of computer. This is also a bit of lower level software that makes a (x86_64) computer pretend to be a different kind of computer (aarch64), in this case, by AoT and JIT translation, though that's an implementation detail. What distinction are you trying to make?
This doesn't emulate a computer so that code in another architecture can run, it translates the other architecture'a code to native code. It's a small difference, but I guess it is a difference.
Is this not how qemu works? Is rosetta not considered an emulation layer? For all its name suggests otherwise, I would certainly refer to wine as an emulator, and it also uses these techniques.
Not to be That Guy, but WINE doesn't use those techniques, and thus isn't an emulator.
It lightly translates binary formats (Windows executables) into Linux-compatible executable code, and then runs that code against libraries that implement Windows APIs in terms of Linux underneath. It's not an emulator in the same way that your libc isn't emulating lockf(3) in terms of fcntl(2) underneath. In web-dev parlance, we'd call WINE a polyfill.
Rosetta and QEMU on the other hand are emulators--emulators, in this instance, being a term of art that implies interpreting bespoke meaning from machine code instructions written in another program. Some emulators translate instructions 1:1, some have optimized stencils, some (like Rosetta) have kernel support for emulating very quickly, and some (maybe like Rosetta; sources disagree) also have hardware support as well.
WINE emulates an ABI, rather than a CPU or such, but I'd happily argue that that's an emulator. (In fairness, though it's not generally described that way, I would call web polyfills API emulation)
It implements an ABI.
It "emulates a behaviour" and natural language is fluid, so sure, you could call WINE an emulator and I wouldn't be mad at you. But WINE is very different compared to what most emulators are. Usually the term is reserved for when you emulate in software what used to be hardware.
Wine as a polyfill makes so much more sense
I believe WINE doesn't actually translate any instructions; it's a Windows PE loader and a bunch of libraries that implement Windows APIs using Linux equivalents.
How does it handle stuff like syscalls without altering the executed code?
Windows apps don't use syscalls directly; they call into kernel32.dll, which is convenient for Wine. (Microsoft enforces this by scrambling the syscall numbers on OS updates [1].)
Huh, now I know. I suppose macos is the same way these days even if you can technically bypass it.
Yes. Linux is the only major operating system where there is even a convention to directly access system calls. For macOS, everything goes through libSystem.
It installs handlers. I don't have the exact name but there's support in the kernel to redirect syscalls to a Userland process
https://www.phoronix.com/news/Wine-11.5-Released
"SUD" Syscall User Dispatch feature in Linux 5.11 +
> It lightly translates binary formats (Windows executables) into Linux-compatible executable code,
Does this not involve transpilation? I guess I was grouping that in under dynamic recompilation and AOT techniques.
Regardless, I don't think that there's a benefit from defining emulation from an implementation rather than an empirical perspective. If it runs a chunk of code as if it were in a different environment, I'm kind of ok to call it an emulator. To the sibling's point, a polyfill would also fit as an emulation layer here.
Not necessarily. It could just rewrite the outer portion to be an ELF loader that then calls into a runtime that actually shims the syscalls for example. I don't think WINE does exactly this but it's not really transpiling either.
You don't even need that, really; just have wine load the PE binary into memory and hand it a bunch of DLLs that use Linux syscalls under the hood. It's less transpiler and more of a funky dynamic linker+loader plus libraries.
It's reverse Rosetta with a hardware emulator underneath.
I noticed Golden Gate still ships with an x86_64 kernel (not kernelcache), I wonder if this is any useful
james@Jamess-MacBook-Pro ~ % sw_vers ProductName: macOS ProductVersion: 27.2.1 BuildVersion: 26B131 james@Jamess-MacBook-Pro ~ % file /System/Library/Kernels/kernel /System/Library/Kernels/kernel: Mach-O 64-bit executable x86_64 james@Jamess-MacBook-Pro ~ % strings /System/Library/Kernels/kernel | grep "Darwin" @(#)VERSION: Darwin Kernel Version 27.2.0: Wed Oct 14 23:40:09 PDT 2026; root:xnu-13432.41.4~25/RELEASE_X86_64 Darwin Kernel Version 27.2.0: Wed Oct 14 23:40:09 PDT 2026; root:xnu-13432.41.4~25/RELEASE_X86_64 Darwin
This is fascinating. If x64 isn’t supported in Golden Gate why is this present?
Rosetta 2 is still supported, and the way Rosetta 2 works requires that various system components that x64 apps might depend on also be available in x64. x64 code that is running as arm64 translated by Rosetta 2 can’t call into native arm64 code due to ABI differences, so Rosetta 2 must translate the x64 version of system libraries as well.
My impression was that this did not require the kernel though, just system frameworks, so I don’t know why there’s a full x64 kernel in there!
Not saying this is the reason, but we build and test and release our software on platforms nobody uses, as it catches rare compiler / memory / UB bugs we otherwise wouldn’t have (eg win32 and FreeBSD)
Lots of people use FreeBSD :)
Reminds me of how some of the dev versions of Snow Leopard still boot on PowerPC.
Can't the title just say "emulator"?
I thought this was a PCIE card with an Apple M series chip on it.
Sounds like a great use for those new Epyc processors with 256 cores…
Huge. I have been desperately looking for a project like this to be able to use https://github.com/seedds/nxnative to be able to play my copy of BOTW on IOS. Thank you for sharing this, I will be trying it this evening.
Is this really needed? I got it working on macOS pretty easily without this. It's all in private repos tho, not exactly easy to share by URL unless you're willing to sign up for a gitea.
This repository needs a star and a follow. It stops Intel Macs from becoming obsolete, but it is slow and buggy.
Apple still supports the latest ones up to Tahoe, and probably security updates for a few years. You can install Windows 10 (no idea about 11) but that is only updated through next year. After that, there's Linux, of course.
macOS does get some security updates for the non-latest version, but it does not get all security updates.
https://arstechnica.com/gadgets/2021/11/psa-apple-isnt-actua...
I don’t think there is anything that can make Intel Macs not obsolete. Embrace it - that’s their charm and you should use them as they were intended to be used, and experience them as they were designed, as artifacts of their time.
I installed CachyOS on my MacBook 16,1, and it feels much faster than with macOS, but the D side is still hot though.
But is it a Mac then? Or just a pretty x86 computer?
No thank you. They can sit in a museum 30 years from now. Today, they are still amazing and productive machines (once you get macOS off them).
But isn't macOS the thing that defines a Mac? I agree Macs were really decent x86 computers, well built and comparable to the very best from other manufacturers hardware-wise, but what really makes a Mac a Mac is the software.
Many (most?) Intel Macs still receive microcode updates, Mesa support and recent kernel changes.
The only obsolete part is macOS, which is removable.
It is also what defines an Intel Mac. Otherwise it's just an x86 machine (that can even run Windows).