XNU Linux: Full OS X GUI Userspace on Linux

(github.com)

527 points | by mmastrac 13 hours ago

43 comments

  • gen2brain 9 hours ago
    Nice, I like this, though, it still needs Apple hardware. I think I would prefer if someone was to improve GNUstep instead. I always knew that in theory it implements the same APIs, etc. but, in my IUP fork, I managed to have the same Cocoa driver/backend compile for macOS and for the GNUstep on Linux/BSD. The driver is a little polluted with ifdefs for APIs that are not implemented though, and needs some patches, but I think it was still worth it.

    With the nice modern theme like Rik, you can have global menu like in macOS, and it looks much nicer than default theme. Improve theme, improve GNUstep and there you have it. You can check the GNUstep sample screenshot at https://github.com/gen2brain/iup-go .

    • asveikau 3 minutes ago
      > it still needs Apple hardware.

      The README says they also have it running on an NVIDIA DGX Spark.

      But the macOS EULA, IIRC, says you need to run it on a Mac. And you need to load macOS binaries for this to work.

    • rbanffy 7 hours ago
      I think the very minimal tool I'd love to have would be an Xcode plugin that highlights the parts of the code that would not be covered by GNUStep. Very few Mac developers would target GNUStep anyway, but if we persuade them to add an extension that does popularity counting on what is missing and how often it impacts software, we'd have a good measure of where to invest time in GNUSTep.
    • anurodhp 5 hours ago
      Pure Darwin is an open source Darwin that is binary compatible with osx

      https://puredarwin.org/

      • deknos 33 minutes ago
        does this create binaries which will work on mac and are buildable in a linux container?
      • viraptor 5 hours ago
        In theory yes, but it's got lots of missing bits. As far as I know none of the swift works right now - which means the binary compatibility is cool but won't be usable for lots of existing gui apps.
    • anthk 9 hours ago
    • smcameron 5 hours ago
      > global menu like in macOS

      I hate global menus, if by global menu, you mean one main menu at the top of the screen which is controlled by whichever application has focus. If you want to have focus follows mouse, so that the focus is in whatever window the mouse is over (note that focus does not raise the window, because raising the window just because it has focus is insane) then this breaks, because if you move your mouse towards the global menu and it happens to pass over another window, the focus changes, and then the "global" menu changes. Ubuntu tried having this type of global menu back in 2011 or so with Unity, and I left Ubuntu back then because of this and never came back.

      • terhechte 4 hours ago
        We're all different. The global menu is what I miss the most whenever I try any Linux distribution. I like having the actions available there, so that the window toolbar doesn't have to be packed with buttons. I don't like burger menus, because they're always in different places, they have no hierarchy (the Firefox one looks like a fruit salad), and it is always one additional click. I also don't like per-window menus because they take up space per window (instead of the global menu which takes up the same space once). Finally, I like that it is always in the same space. There's also old studies that show that a global menu is faster to target because of the natural screen limit. Users can move the mouse up very quickly and the movement stops at the global menu / screen edge. With per-window menus, it takes a bit longer.

        On the other hand, I've never seen the need for focus-follows-mouse, especially because scroll events, on macOS, support focus-follows-mouse, which is typically my only usecase.

      • pmarreck 2 hours ago
        The reason why Apple went with global menus in the first place (window-based menus had existed for awhile before then on various X11 implementations) is because in user testing where they asked users to quickly select menu items, they selected the global-menu items much faster because they didn't have to vertically zero in on the menu, just slam mouse forward and horizontally center it on the menu and click.

        You will notice on a Mac that clicking even in the first pixel from the top of the screen, when in a menu bar, will select a menu just below it. That's this idea in practice.

        If you're mostly a keyboard-input-leaning person, this subtlety is probably lost on you though, but at least Mac had command-keys from the beginning for frequently-used menu items.

        • Wowfunhappy 17 minutes ago
          > If you're mostly a keyboard-input-leaning person, this subtlety is probably lost on you though, but at least Mac had command-keys from the beginning for frequently-used menu items.

          On the other hand, if you're a keyboard-input person, macOS lets you map or re-map any keyboard shortcut to any menu item in any app, which is super useful! (Unless the app is Firefox which doesn't support this fundamental OS feature for some reason.)

        • whartung 1 hour ago
          I agree, but today, the File menu is almost 1 foot away from the center of the screen. And I have to turn off the upper left as a hot corner to sleep the machine. With the huge display and smaller font sizes, the target, while "infinitely tall", is still far out of the way.
          • Wowfunhappy 16 minutes ago
            Do you have mouse acceleration turned off? Even with a large screen, I can rapidly move my cursor in any general direction, as long as I don't need to be precise about where I'm moving.
            • whartung 12 minutes ago
              No, the tracking is fine. But I still have to crane my neck to look "over there". Just a side effect of having these drive-in movie sized monitors.
      • jlokier 1 hour ago
        MacOS uses a nice half-way for focus-follows-mouse.

        Keyboard focus is click/alt-tab, and the menu bar follows that.

        Mouse/trackpad gestures are focus-follows-mouse, so scrolling, pinch-zooming and panning (e.g. in maps) work on whatever the pointer is over, without changing the keyboard focus to that element or raising the window. In practice this is nice for viewing things, and typing into one place while looking at another. It works well for writing commands in a terminal or coding session, while reading and scrolling a document in another window.

        Terminal apps support focus-follows-mouse for keyboard as well, without raising the window. Keyboard input goes to the terminal window under the pointer as the pointer moves around, or the last terminal window it was over, if the terminal app as a whole is focused. This mode is off by default but can be enabled with a command. The two-window method from above, typing in a terminal while scrolling a document/browser with gestures by keeping the pointer over the page, still works in this terminal mode. Linux-style focus-follows-mouse can't do that.

        • cosmic_cheese 0 minutes ago
          In addition to all of this, native Cocoa apps can be interacted with without changing the focused window or foregrounded app by holding Command and left/right clicking in inactive windows.
        • 1718627440 8 minutes ago
          I didn't know that was macOS specific. My DE (Debian Mate/Gnome2) does it like that as well. Does MS Windows really not behave like that?

          EDIT: I just tried it on MS Windows 10 in a VM, and it does behave like that too. When I open e.g. two MS Explorer windows, I can scroll in the one in the background too. So not sure what you are referring to.

      • whywhywhywhy 1 hour ago
        Luckily there’s literally every single OS/DE on the planet (except workbench) for you.

        But some of us like the global menu.

      • 1718627440 4 hours ago
        You could activate the menu with the keyboard and not change an active menu.
    • zoobab 2 hours ago
      "it still needs Apple hardware"

      No x64 version?

  • miki123211 8 hours ago
    MacOS, like Windows and unlike Linux, doesn't have a stable syscall interface. apps are instead required to dynamically link with libraries shipped with your system, which change in lockstep with the syscalls.

    This would make it possible to run the MacOS userspace on top of actual Linux, with little to no work in the kernel.

    I think that would be a more interesting effort to pursue.

    • mike_hearn 8 hours ago
      That's the Darling project.
    • ZiiS 4 hours ago
      User-space is a lot bigger then a kernel though; re implementing everything is a lot of work.
    • onyx47 7 hours ago
      yeah i guess you're right about the libraries

      i think it goes a bit further than that though

      a lot of macos stuff runs in daemons that kind of depend on each other

      i ran into this turning features off on macos 27

      the spotlight window there actually runs as a process called Siri

      so if you turn siri off, spotlight changes too

      i'd guess there's a lot more of that once you start pulling pieces out

    • pjmlp 8 hours ago
      Like most operating systems, Linux is the exception here.
  • pcwalton 12 hours ago
    Makes me wonder if the next frontier is going to be something like “the OS is shipped encrypted with keys that only exist in hardware, and all the CPU knows how to do is to decrypt blocks and put them in the i-cache where it will not let you look at them”, to prevent you from doing anything with the OS executables other than running them on Apple chips.
    • Aurornis 11 hours ago
      I think you might be surprised to learn how much of this came from open source code:

      > xnulinux builds XNU, the open-source kernel of macOS, from Apple's published sources

      EDIT: XNU sources, for those who are unaware that the XNU kernel is open source: https://github.com/apple-oss-distributions/xnu

    • CodeArtisan 11 hours ago
      Nintendo did that but the keys got recovered. Those keys being copyrighted, Nintendo was able to DMCA takedown any repository (emulators) having them.

      The DMCA notice

      https://github.com/github/dmca/blob/master/2026/08/2026-08-1...

      • ketzu 10 hours ago
        > Those keys being copyrighted

        My understanding was that the keys are not copyrighted, providing them is circumventing technical protection measures.

        And to my understanding that is what your link says as well.

        • jagged-chisel 6 hours ago
          But a DMCA takedown notice (and the platform response) don’t make that distinction. You’d have to get your case in front of a judge for that to matter.
      • bedstefar 10 hours ago
        I wonder what the future of trade agreements between US/EU will hold. Historically it's the trade agreements that makes DMCA-like regulations even enforceable in the EU. Now, with the US pull from alliances generally, will that make EU more of a safe haven for common sense, like recognizing the insanity in enforcing copyright on a number?
        • nine_k 8 hours ago
          Pick a copyrighted text, represent it in a digital form, e.g. as a UTF-8 binary stream. Now interpret this stream as one very long integer; arbitrary-sized integers of kind is how Python integers work.

          Voilà, a copyrighted number.

          • Gander5739 6 hours ago
          • bedstefar 8 hours ago
            Ok, I'll bite:

            1. Change one bit of the copyrighted text and you'll have a different non-copyrighted number.

            2. What's the shortest number you're comfortable with copyrighting?

            My point is that the DMCA probably wasn't designed to protect decryption keys. Turns out it is being used in that way, and that's absurd.

            • hdgvhicv 7 hours ago
              The DMCA was absolutely intended to prevent people using decryption keys.
              • theturtletalks 4 hours ago
                Shouldn’t DCMA cover the algorithm to make the key, not the key itself?

                It seems them covering keys sets a different standard for physical and digital locks. If a company sells me a physical lock, I can reverse engineer that lock and make my own key and then open that lock. But what you’re saying is with software in DCMA, a company can make the lock. I can reverse engineer it. They can say that my key is illegal to even own, and they can take it away?

            • naniwaduni 4 hours ago
              > 1. Change one bit of the copyrighted text and you'll have a different non-copyrighted number.

              No, now you have a derivative work. It matters that you arrived at a different number by starting with a copyrighted work and substantially reproducing it.

            • Y_Y 7 hours ago
              6©
              • lproven 6 hours ago
                New exploit discovered: Dmca2Shell. Simply set an encryption key of 512 `©` symbols in a row, and it overloads the legal measures, allowing you access to all encrypted content of any kind.

                </s>

        • sylware 7 hours ago
          I wonder how much of that is true in the legal reality.

          Because for instance, in my EU country, "technical interop" is above any DRMs, namely, you can break/reverse-engineer any DRM for the sake of technical interop, by law.

          If a encryption key is used as a DRM, it would mean you can legally do "whatever" you want in a 'technical interop' scope with that key, for instance for a performant and good port on some open source linux based OS.

          • theturtletalks 4 hours ago
            Can you do this though? I watch Thursday Night Football on Twitch. Amazon, under their NFL agreement, has to show the game for free thru 1 channel. That's the Prime Video channel on Twitch.

            But Amazon makes it impossible to watch this channel on Android TV or even my TV web browser. Then I ask Claude Code to use FFMPEG and cast it on my TV. It says due to AES encryption, it can’t do it. You’re saying this is all legal in Europe?

            • freedomben 3 hours ago
              This fills me with rage, at both Amazon obviously, but also the NFL for allowing that
              • theturtletalks 3 hours ago
                NFL doesn’t really care and Amazon doesn’t go around telling people you can watch the game for free. They want people to think you need Amazon Prime to watch it.
        • anal_reactor 9 hours ago
          As long as US is the centre of commerce, US will dictate the conditions. EU doesn't seem to be anywhere ready to take over that role.
          • lesspassiveobse 5 hours ago
            Tell that to BRICS or the DPRK. Also, EU has larger trade value with China.
      • monegator 10 hours ago
        how do you copyright a random number?
        • chii 10 hours ago
          it's not any random number, it's a particular one that is copyrighted.
          • tgma 8 hours ago
            I believe this misstates how the enforcement mechanism operates. Distributing a secret key isn't banned on the basis of authorship under copyright itself. However, the DMCA makes it a potential civil or criminal offense to circumvent DRM, or distribute the means to do so, and that is how it gets enforced.
          • yjftsjthsd-h 10 hours ago
            Okay, but my non-lawyer understanding is that copyright specifically requires creativity from a human. If it's a random number, I would struggle to think that it qualifies.
            • tgma 8 hours ago
              Your understanding is correct. The number itself is not copyrightable. DMCA prohibits "distributing/trafficking in the means to circumvent" DRM.
            • eecc 9 hours ago
              it's part of a mechanism.

              You can read it aloud, use it to do math, even print it on a t-shirt.

              You can't (legally) use it to decrypt their software.

          • pmarreck 2 hours ago
            What if you convert it to a different number by encrypting it with the key "DONTSTEALMEDIA" and then represent that output as hex?
          • oarsinsync 10 hours ago
            how do you copyright a secret?
          • CGamesPlay 10 hours ago
            Watch out guys, eMudhra has the copyright on the number 4.
          • monegator 9 hours ago
            obviously. i'm being naive on purpose. It's still retarded that it can be allowed
        • nout 9 hours ago
          If numbers become large enough, those can be copyrightable. E.g. numbers that take 4GB on disk and have .mkv extension.
          • amelius 9 hours ago
            But what if those numbers appear in the decimal expansion of pi?
            • tgma 8 hours ago
              The start index might be larger than the number itself.
          • thebruce87m 6 hours ago
            Just put one number less and we’ll have an unspoken convention of adding 1 to anything we find.
            • 1718627440 4 hours ago
              Which is the same number, just with different digits.
      • drnick1 10 hours ago
        > Nintendo was able to DMCA takedown any repository (emulators) having them.

        And yet, there are Nintendo emulators all over the Internet. In fact, I have several on this very computer!

    • drum55 12 hours ago
      It sort of has precedence as DSMOS.kext, though not as severe as that. It loaded this blob into memory.

          Your karma check for today:
          There once was was a user that whined
          his existing OS was so blind,
          he'd do better to pirate
          an OS that ran great
          but found his hardware declined.
          Please don't steal Mac OS!
          Really, that's way uncool.
          (C) Apple Computer
      
      That existed on the intel platform days and did some very loose pairing with the SMC chip to prevent you running it on anything else without modification.
      • m132 11 hours ago
        Those words sound rather ironic considering Apple's Containerization framework does just that, albeit "just legally enough", heh.
    • saagarjha 11 hours ago
      This is already done on some consoles. Unfortunately this is usually a nonstarter for other systems because it makes it impossible to debug code on them.
      • pjmlp 11 hours ago
        That is the end game for Windows hence the compulsory use of XBox's Pluton on modern systems.

        https://learn.microsoft.com/en-us/windows/security/hardware-...

        Windows Server 2028 shows where the road goes.

        https://techcommunity.microsoft.com/blog/windowsservernewsan...

      • pcwalton 11 hours ago
        Well, I was thinking you'd do it for all the .apps and the kernel/kexts, which you can just forbid debugging. But I guess you can't do much about all the code in the dyld shared cache which has to be debuggable, and that's a lot of the OS right there.
        • mike_hearn 8 hours ago
          They control the CPU, so nothing stops them having a system where the CPU can step in and out of encrypted code. You aren't really meant to 'debug' closed source binaries anyway.
          • pcwalton 58 minutes ago
            Well, if it's in your address space there are numerous ways to figure out what the code is, even if the CPU is trying to hide it from you. Single stepping and looking at registers would give the game away entirely, of course, but there are other ways. It's a losing game I doubt Apple wants to play.
    • compsciphd 6 hours ago
      encrypted binaries that are decrypted by the cpu already exists today. not sure about a key being built into hardware, but that basically exists today as well with TPMs I'd think.
    • wwweston 9 hours ago
      Eh.

      Apple doesn't sell the OS, they sell the integration of their hardware and the OS, and for a lot of the history that's what's been compelling (and in the last 5 years the hardware story has been especially compelling). They'll keep changing the hardware of course, and some of that will come with difficulties, but the kind of CPU obfuscation you're talking about sounds more like a performance hit and internal technical timesuck than a tempting control moat. They can just keep moving forward on the hardware with integration while doing their classic mix of cool feature points, worthy UX refinement, and hubristic messes and most of their market will keep buying even if projects like this one thrive among hobbyists.

    • Revanche1367 6 hours ago
      I'll hate myself later for suggesting this even as a joke but: maybe in the future, we just skip the OS and have a frontier LLM running directly on consumer hardware. Then render a new OS with a prompt when it boots up. Do you want to use Windows 13 this run? Or macOS Hollywood? Or maybe Ubuntu 30.04 LTS Killer Koala? How about a brand new OS of your own design? For an additional $200.00 a month, you can even remove the ads on your custom OS (not on Windows 13 though).

      More "realistically," I can totally see LLMs being marketed as the "new OS" and just running programs by generating them from scratch. Boot it up, mention the kind of movie you want to watch, or the kind of game you want to play, and it starts generating it on the fly.

  • internet2000 42 minutes ago
    Very cool. I love that after 20 years of people trying to get this (Darling, GNUstep etc) and failing, Claude just does it.

    Apple should 100% sue these guys, but Apple should also know software is no longer a moat and change strategies accordingly.

  • darksim905 12 hours ago
    This is pretty cool that this could be done. the whole xnu.so drive file bit (I think?) ... could that same theory be applied to Windows? I know NTOSKRNL isn't quite the same, but could it be redesigned/recompiled/re-written to function and loaded as a module that way? I feel like on the newer Macs when I tried doing whatever the bootcamp functionality was, I learned quickly that didn't exist/was removed and I couldn't just boot/install Windows easily. With this AI tooling now, and functionality like this, could you bring that back on a Mac?

    (And yes, derp, I realize this is Mac OS X GUI on Linux)

    • jasomill 10 hours ago
      As with Linux, running Windows on an Apple Silicon Mac without virtualization is mostly a matter of drivers.

      You'd also need UEFI, but TianoCore exists, so again mostly drivers.

      And unlike Linux, you'd need Microsoft to digitally sign drivers to run Windows outside Test Mode, which has the disadvantage of allowing all unsigned drivers, and I'm not sure if Microsoft would be unwilling to sign reverse-engineered drivers without Apple's approval, if at all.

      • zekica 6 hours ago
        Asahi people wrote m1n1, a full UEFI bootloader for Apple Silicon, so that part is already solved.
    • lukeh 7 hours ago
      Microsoft did something a bit similar, albeit in user space, with SQL Server on Linux.
    • flomo 10 hours ago
      Probably, but you don't have the source for ntoskrnl or shouldn't redistribute it.
    • wmf 11 hours ago
      Back in the day there was CoLinux that ran Linux and Windows at the same time.
    • relistan 9 hours ago
      This was only possible with macOS because the XNU kernel is open source.
      • anthk 9 hours ago
        ReactOS and Wine.
  • opengears 9 hours ago
    These projects are already dissapearing again, see "Stela has been completely removed from GitHub" https://www.reddit.com/r/hackintosh/comments/1y322ns/stela_h...
  • zakisaad 12 hours ago
    If you presented this to me 4-5 years ago (and the method by which it was likely built), I would have been speechless. The fact that these kinds of projects have been normalised is frankly insane.

    Nowadays with a skilled operator, there really are no bounds on what can be pulled off it seems.

    • sysmax 1 hour ago
      Well, this type of project is probably the best AI use case I could think of. You are bridging two massive public APIs, both of which are documented and can be covered with tests.

      Pre-AI this would require months of repetitive mind-numbing work that no hobbyist would endure and no corporation would pay for. Now it's just a matter of how much tokens you are willing to throw into it.

      Both API definitions fit into a single context window, so AI can split them into groups with rough mapping. Each group + tests will fit into a context window, so AI can quickly create tests, write adapters, and test them as well.

      All kind of API adapters, format converters, emulators, etc. are now a trivial thing to make. Like the recent wave of WebAssembly abandonware ports.

      • cogman10 52 minutes ago
        Totally agree. This as well as creating opensource versions of old games are both places where AI is game changing.

        It can stare at ASM, implement methods, and write tests that are tedious to do.

    • pmkary 12 hours ago
      I came to write the same comment. I used to think that the dominance of U.S. is mostly because no other country has the capacity to develop operating systems and the world depends on a few OSes that are entirely developed there. Linux was never winning, windows was shit, but OS X and iOS, they were at one side undeniably high quality, and on the other side impossible to copy. So I always thought "How can China win over US without an operating system". Apple had made it such that all Hackintoish efforts were blocked for some many years, and iOS was impossible to boot anywhere but inside of an Apple device.

      Fast forward to now, and I have an amazing app sitting on my computer called "Light Touch" that allows me to install and emulate any version of iOS on my computer, proxity its network, install whatever IPA app I wish on it, and I can't believe.

      And this one, I thought you must be joking. Imagine all the decades long efforts by GNU to clone Objective-C, Foundation, Cocoa... and they still can't even run NeXTSTEP software on GNUStep and GWorkspace. Then you wake up and see not one of teh libraries, not the bare XNU, but the whole fucking mac being running inside of Linux... I mean What the literal fuck.

      Mac had this god-like image in my head as something made by who knows how many tens of thousands of world's highest of highest engineers and designers. You could see that no app outside of the Apple entering its app store could have the quality of design and harmony that Apple's own apps had. (I mean imagine one app outside of Apple in the days of iOS 4 or Leopard to have that quality of icons for example), then Apple with Ive lowered the bar to entry and all the other apps cached up and most even got way better than Apple, but that was still a different era and a different game. But look at the past few years. Apple introduced Liquid Glass---which to me was a way to say "hey flat designers making cross-platfrom stuff in Figma, you no longer will be able, I want to introdue a UI component so complicated that you can't bring it to Android", but then a matter of days liquid glass was everywhere. Figma and Sketch easily added it to their components, Flutter had it, everyone had it... I made my own in an afternoon. The iPhone Duo animation was perhaps 50% of its selling point and by the night you could have it on samsung as well as on a Mac...

      This is insane, and it must be really a stupid thing to say, but to me Apple was something of the Da Vinci of my era. I could see all people trying to get to its quality and looks and everything but no one could, they always were ten times ahead of anyone and it was exciting to be sitting waiting to see what new thing they're going to show in the WWDC. Now that godness is being killed for me, and it is painful to watch.

      • steve1977 8 hours ago
        > Imagine all the decades long efforts by GNU to clone Objective-C, Foundation, Cocoa... and they still can't even run NeXTSTEP software on GNUStep and GWorkspace. Then you wake up and see not one of teh libraries, not the bare XNU, but the whole fucking mac being running inside of Linux... I mean What the literal fuck.

        To be fair, this is comparing different things. The goal of GNUstep was/is to provide an open-source implementation of the OPENSTEP API. This is not what this project here is doing. It's taking the already open-source XNU kernel and gets it to run under Linux. It then takes your closed-source Apple-provided binaries and runs them on top of this XNU kernel.

        • pmkary 5 hours ago
          Yeah I have been very unfair, but my point how much getting something like a mac app running eleswere was a dream. How much effort was being put into things like GNUStep and Wine and React OS and... to get apps running out of an operating system into the other, and now you can run the whole OS... It is just inane. (And then to be fair, you get to have millions of lines of code codebases ported to the systems, so I guess you can point an LLM towards the Apple documentations and ask for drop in replacement behaviour and get the whole Foundation, Core Graphics, Core Animation, Core whatever...)
      • pjmlp 11 hours ago
        > I came to write the same comment. I used to think that the dominance of U.S. is mostly because no other country has the capacity to develop operating systems and the world depends on a few OSes that are entirely developed there

        Before Windows took over, there were other systems developed outside US, especially during the cold war where getting American sponsored equipment wasn't a given.

      • darkwi11ow 8 hours ago
        Few years ago I needed to use Apple Macs for work, and it was the worst experience I had in my career in regards to hardware and software. I get the power of advertising and why people keep using it, but practically Linux is miles ahead in every regard today. Linux already won, just the spread of information is uneven.
        • carlosjobim 7 hours ago
          Linux would be nice if it had a good email client. And a good calendar app. And a good photo editor. Etc
          • darkwi11ow 6 hours ago
            The best apps today are web-native. Figma desktop app is just Figma web interface running in electron, same for Claude, Canva, Slack, Discord, etc, etc. Desktop only apps are so 2000s at this point.
      • itomato 5 hours ago
        Consider where all the existing ObjectiveC enthusiasts went in 1999. They didn't commit against GNUstep, they went and published Xcode apps in the App Store.

        What benefit is there to running something like the Lighthouse Suite or Quantrix?

        Many proprietary and essential Openstep apps were ported to Openstep Enterprise on Windows NT, Mac or abandoned.

      • ctmlr 9 hours ago
        > Linux was never winning

        Linux was obviously going to win.

        • pmkary 5 hours ago
          If you mean nerds running servers and opening apps on the web browser true. If you mean having apps comparable to Mac or Windows, and people actually normally using it in their daily lives without having anything to do with development, absolutely not.
          • ctmlr 2 hours ago
            It's not over yet! Now that Linux is breaking into the PC gaming enthusiast market it's only a matter of time before full domination of the desktop workstation market too.

            It's not just because Linux is so special but because it is open source! Companies come and go, maybe even Linux isn't forever, however open source and industry standards are permanent and have a naturally unbeatable competitive advantage in the long run.

      • QuantumNomad_ 6 hours ago
        > Light Touch

        Had to Google it.

        https://samhenri.gold/lighttouch/

        Embeds a video too:

        https://www.youtube.com/watch?v=L3ZATgX8LxM

        Holy crap, that is so good. Highly recommend checking out the video. Dude’s got skills. What am I even doing with my life I wonder. And his video is funny too, in addition to being a great showcase of the features of this Light Touch app! Man, this is great. I don’t understand how that video sits at 14k views. It should have hundreds of thousands of views! Millions even!

        • pmkary 5 hours ago
          Right? He is so good and if it was not over-shadowed by things like the Reimann being solved it would have taken the world by storm...
      • saagarjha 11 hours ago
        One thing that AI does not seem to be able to do yet is make these things before they are shown at WWDC.
        • koolba 7 hours ago
          If the claim about LLMs “borrowing” math proof ideas in advance of publication is true, pre-WWDC software releases are definitely possible.
          • saagarjha 4 hours ago
            I think Anthropic would be completely dead if they were accused by Apple of leaking corporate secrets
      • zoobab 2 hours ago
        "no other country has the capacity to develop operating systems"

        It's more "no other country is giving them fines for bundling the hardware and the OS"

      • negura 8 hours ago
        I agree with everything, except the last part. I don't think it's painful to watch, in fact I think it's glorious that the San Francisco scumbags don't have a moat anymore. Two decades of predatory business practices, open source parasitism and hostility towards ownership was enough. Evil can't win forever.
      • anthk 9 hours ago
        > and they still can't even run NeXTSTEP software on GNUStep and GWorkspace.

        It ran, but the libre ones such as Chess and the like and since looooooooooooooong ago.

        • lukeh 7 hours ago
          Maybe someone can spend some tokens bringing GNUstep up to AppKit parity and integrating Swift on Linux with their ObjC runtime…
      • koiueo 11 hours ago
        > but OS X and iOS, they were at one side undeniably high quality

        LOL

        • encom 7 hours ago
          That's what happens when you spend too long inside the Apple Reality Distortion Field.
        • bigyabai 9 hours ago
          So undeniably high quality and impossible to copy that macOS commands a minority market share in every segment it competes in.

          You can practically see their competitors turning green with env- oh wait, that green color is actually money...

          • steve1977 8 hours ago
            The market share of macOS is quite stable though and if anything, has been growing. And you could argue about the segments it actually competes in.

            The market share of iOS is far from a minority share in many markets.

          • anonreplier 7 hours ago
            You mean the cheap option has higher market share? Wow.
            • bigyabai 31 minutes ago
              macOS has been free for over a decade.
  • ajasmin 10 hours ago
    I wonder how this would compare to making XNU work in KVM.

    This is amazing! Though, from a user perspective it currently feels a lot like a VM. Delegating one task per core plus one big file-backed disk for the XNU kernel to run with.

    Though there may be efficiency or integration benefits that I'm missing.

  • angerman 7 hours ago
    This is amazing! I have something slightly similar, which was a lot of fun to build: https://hyper-linux.app (https://www.youtube.com/watch?v=EkP45l9COOY might explain it a bit better).
  • sscarduzio 18 minutes ago
    Am I the only one longing for a macos kernel & drivers, BUT with an OSS desktop manager (e.g. gnome, omarchy)?
    • reallyreason 14 minutes ago
      The only reason I can imagine wanting that for myself is because it runs on Apple's hardware. If Linux worked well on the newest Mac hardware, I can't see any reason I would use macOS. Pretty much the only reason I use Apple's constantly-deteriorating software is because no other company seems to be able to compete with them competently on hardware.
  • gorbypark 8 hours ago
    Off topic but I've always wondered why Apple ships XNU/Darwin as open source. As far as I know, there's no real usage of it outside of the "hobby" space and I don't think the license requires it to be open source. Any ideas as to why Apple continues to do it to this day?
    • mike_hearn 8 hours ago
      It's not open source, really. Not anymore. A lot of the newer code added since the first versions of macOS is proprietary. A lot of the code signing and security subsystem is closed source, the APFS file system is too, most of the drivers are etc.

      As for why a few parts remain open, it's probably just inertia. When OS X was new the open source/free software movement was at the peak of its hype cycle, many treated it as a locked in future, sort of how people talk about AI today. Kernel engineers in general were always pretty pro-open source, much moreso than GUI layer developers, and Linux was already available and growing fast. People believed that desktop Linux could be a competitive platform back then.

      So as XNU was built on open source components like FreeBSD and Mach, I guess there was some internal fights between pro- and anti- open source camps. Jobs or someone else resolved it by saying it was OK to open source the low value / generic parts like the UNIX parts, but not the higher value userspace where macOS historically had competitive advantage. Then as the years passed this became just the way things are done, and nobody revisited it.

      • pjmlp 8 hours ago
        It already starts at NeXT, as it was well known fact that they only based it on UNIX because they wanted the university market initially.

        Also the Stepstone GCC based implementation of Objective-C frontend and language runtime were only begrudgingly contributed back to the project.

        • jorisw 7 hours ago
          > it was well known fact that they only based it on UNIX because they wanted the university market

          I'm a life long Apple/NeXT follower and I've never heard this.

          Surely UNIX had its own clear merits as a foundation for a new OS.

      • viraptor 5 hours ago
        Also it's not really a release and they don't really care. It seems more of a "we're legally obligated to dump something at release time". Their source is often missing headers, or parts of code and needs patches to compile. Apple is not building any open-source community here.
    • rickdeckard 8 hours ago
      Well, it is based on open source work like the Mach microkernel and parts of BSD. Not sure how easy it would be to make it closed-source now.

      From what I remember, the original idea was to keep it open source so the community would take part in the review of UNIX-compliance, as an external party to ensure that Apple doesn't accidentally drift away too much.

      But yeah, since it barely has any use outside of Apple products, I doubt that there is much power in the community to actually influence it...

      • lmz 8 hours ago
        It's not GPL licensed. They could just not publish the source code anymore if they don't want to.
  • nixass 5 hours ago
    Why would anyone do this to themselves?
  • jsomedon 12 hours ago
    so this means, I can run something like asahi linux on macbook but I can also access macos desktop environment semi-natively?
    • ZiiS 11 hours ago
      Not yet, the page size and GPU are tied to using it in a VM at the moment.
    • OsrsNeedsf2P 12 hours ago
      In the pre-AI days, I was in Ubucon Korea and met a highschool student who had done exactly that, but it was with a custom MacOS GNOME theme instead
      • viraptor 11 hours ago
        That makes it "exactly not that"
      • msdz 9 hours ago
        Oh cool, so they could run e.g. macOS’ Safari as well, right?!
  • hard_times 5 hours ago
    Somewhat similar: https://github.com/mikuta0407/win4wine

    Running unmodified Windows GUI via Wine on Linux.

  • boredatoms 11 hours ago
    Oh I hope someone tries this on a dgx spark
    • valleyer 11 hours ago
      This project loads the (lightly modified) actual macOS kernel into memory (as a sort of co-kernel with Linux), so it would almost certainly not work on any hardware the original kernel doesn't run on.
      • tim-- 9 hours ago
        I'd love to see if these NVidia and AMD drivers can easily be ported to ARM MacOS. The AMD graphics support that is (was) on MacOS Intel is no existant on the ARM builds.

        Luckily, people have already coded versions for Intel macs, so it shouldn't be exceptionally hard I would assume to point an LLM to them.

        AMD: https://github.com/leolivm/vermilion https://github.com/Helemen7/RedNavi

        NVidia: https://github.com/nullmoth/nvidia-macos-driver

        EDIT: There is a MacOS driver for Apple Silicon for Thunderbolt AMD CARDS, but it only works for ROCm. Can't be too hard to port in the RedNavi stuff, as long as all the Metal drivers exist? https://github.com/lemonade-sdk/mac_linuxgpu

      • saagarjha 11 hours ago
        Why wouldn't it work? It's running the vmapple kernel
        • valleyer 11 hours ago
          Doesn't that rely on architectural extensions though? Or does this project trap and emulate them?
          • saagarjha 10 hours ago
            There's not that much you need for the virtual kernel to boot
            • valleyer 10 hours ago
              OK, thanks for the correction.
        • therein 9 hours ago
          Project itself says it needs to be running on an arm64 CPU with PAC and then says basically Apple Silicon only.
      • boredatoms 11 hours ago
        Isnt it using the device drivers from linux though?
      • tim-- 11 hours ago
        Isn't this the whole point of using UniXNU though? https://unixnu.com/
    • kccqzy 2 hours ago
      The article says DGX Spark works but with software rendering.
    • aa-jv 7 hours ago
      DGX Spark is to me, more and more, an ultimate platform - it literally has everything needed onboard in order to port pretty much any software, ever, to itself.

      We won't need OS's soon. We'll just have the inference engine intake the bins and work out how to run them - whatever the source.

  • bradfitz 12 hours ago
    But can I run more than two macOS guest VMs at the same time? :)
    • egorfine 8 hours ago
      Stock macOS can do that. Albeit you will have to turn off SIP and do some googling.
  • harrouet 10 hours ago
    This is actually something I would expect Apple to support natively, at least in XCode:

    - let the AI spawn a MacOS/iOS VM

    - load your app code in there for automated tests

    • tim-- 9 hours ago
      Apple does support spawning macos virtual machines. If you are running MacOS, on Apple hardware.
  • hn_submit 12 hours ago
    Has anyone run XCode on this and built iOS apps with it? I just purchased a Macbook Air just so I could make iPhone apps, but with this distro I could've saved myself the $1500.
    • steve1977 8 hours ago
      This is running inside a VM on a Mac computer (and it can only run in a VM on a Mac computer). This won't save you anything.
    • ddtaylor 12 hours ago
      Next.js with Capacitor can ease some of that pain and then a cheap mac mini or rent in the cloud to publish.
    • bigfatkitten 12 hours ago
      You would need Apple hardware to run this anyway.
      • eptcyka 9 hours ago
        Apple can ban your account for attempting to use the tooling and online services they want you to use to publish apps if you use them on non-apple hardware. We would like to have the build process of an app run in a fully reproducible VM, so far that is feasible on Linux, not so much macOS. And yet, to do signing and uploading, we would still need macOS.
        • mike_hearn 8 hours ago
          Signing and uploading is the easier part. That can be done from any OS.

          Look at my HN profile, my company sells a product called Conveyor that can take files as input and generate self-updating packages/installers for every desktop OS from any desktop OS. In other words it cross-builds macOS apps, Windows apps and Linux packages. Then it creates a download site that detects the users OS and gives them a big green button to click to download the right stuff.

          For macOS it does signing, notarization and Sparkle integration with delta updates automatically. If you're building Electron or JVM apps you don't even need to compile anything, just supply the JS/JARs.

          Apple don't care about this one way or another. They don't make it easy but they also don't stop it, and I've had good interactions with their official developer support agents in the past where I actually asked questions or reported bugs in the process of developing Conveyor. They were always friendly and approachable (unlike MS!).

        • asimovDev 6 hours ago
          maybe I am being naive, but is GitHub Actions macOS runners not enough for this? You mention just builds, so this is for CI I presume, sounds like the correct choice. Or is signing an issue with that approach?
      • notpushkin 11 hours ago
        For now; I think with a few drivers it could be a viable way to run an Arm Hackintosh.
        • wmf 11 hours ago
          Somebody is already hackintoshing on Qualcomm CPUs without Linux.
      • saagarjha 11 hours ago
        No?
        • bartvk 11 hours ago
          They buried the lede a bit: "Working, on an Apple Silicon Mac running an arm64 Linux VM (krunkit)".
          • saagarjha 10 hours ago
            I don't see anything that would make this infeasible to run elsewhere
            • steve1977 8 hours ago
              For one, you need the Apple binaries of all the UI stuff. Technically, you could copy them from somewhere of course, but legally you can't. So there would be no way to provide such a thing in any legal way.
              • saagarjha 8 hours ago
                I mean this is all probably reverse engineered or whatever so I doubt it is strictly legal regardless
                • steve1977 7 hours ago
                  The XNU kernel is actually officially open-source.
        • qalmakka 9 hours ago
          AFAIK Apple doesn't use just AArch64; they have their own extra extensions which you can't easily replicate
  • probablyStimmed 12 hours ago
    Cool, but why?
    • ekunazanu 12 hours ago
      Because it's cool
      • steve1977 8 hours ago
        Is it still cool if Claude did it though?
        • theodric 7 hours ago
          1., Claude didn't do it, a guy had an idea, and then (using Claude) did it.

          2., the fact that it exists is cool. The tooling is a footnote.

          <----- downvote arrow is over there

          • steve1977 7 hours ago
            I'm not downvoting just because I disagree.

            I DO disagree though. For me, that's like saying "I felt like watching a sci-fi movie, so I selected something on Disney+. Hey look, I made Star Wars".

          • encom 7 hours ago
            So Claude did it, gotcha. Thanks for clearing it up.
    • asveikau 12 hours ago
      Cross platform development would be one of the best reasons I can think of. Build and test Mac or iOS software on a Linux host.

      But I think it breaks some Apple EULAs, so using it in a work capacity might get you in some trouble.

    • guax 12 hours ago
      Because it is there
    • runtime_terror 12 hours ago
      Because, gasp, some people like the MacOS aesthetic
      • II2II 12 hours ago
        If that's that reason, then buy a Mac.

        I can understand people wanting to do this sort of thing for the technical challenge, but macOS is commercial software and it is tied to Apple hardware. If you want something without those strings, there is a whole world of open source software. You don't get the aesthetic, but at least you get to use the software on the hardware of your choosing.

        EDIT: it looks like you need Apple hardware to use this anyhow.

        • dofm 12 hours ago
          > it looks like you need Apple hardware to use this anyhow.

          Yeah — perhaps the benefit here is for Asahi users?

        • bigyabai 12 hours ago
          But macOS has several arbitrary limitations that Linux and Linux-compatible hardware doesn't. Apple has dug this grave for themselves by removing dGPU/eGPU support, refusing to implement Vulkan, and not signing CUDA drivers.

          As long as Apple makes boneheaded decisions like that, people will go to boneheaded lengths to work around it.

          • dofm 12 hours ago
            eGPU support is possibly back for LLMs, actually — Apple appear to be OK with this in principle, and notarised a driver back in April:

            https://www.storminthecastle.com/posts/chestnut_5090/

            • bigyabai 11 hours ago
              tinygrad is not "eGPU support" outside of a few minimal functions running in userspace. The vast majority of the eGPU features you might expect (eg. Metal support, CUDA runtime, hardware-accelerated encode/decode) is not working and will likely never be implemented.

              We've all seen this hack by now, and it's not anywhere close to what eGPUs can do on Windows or Linux. Apple's objection is wholly arbitrary.

        • rvz 11 hours ago
          Programmers won’t buy a Mac themselves and they want their employer to do it for them, as they will say Apple hardware is too expensive.

          So this is the latest episode in getting macOS on non-Apple and programmers will go to extreme lengths to avoid paying for anything.

          That is why hackintosh exists

          • wasabinator 10 hours ago
            Not every programmer is working professionally as a programmer and has an employer-provided macbook.
  • pluto_modadic 11 hours ago
    so I can run X GUI inside my Asahi on my macbook air?

    nice.

  • bni 9 hours ago
    Didn't someone do this with Windows back in the day?
  • mgaunard 8 hours ago
    Do people actually like the macOS userspace?
    • QuantumNomad_ 8 hours ago
      Yes.
    • 1vuio0pswjnm7 5 hours ago
      I never liked it

      I always wanted option to purchase Apple hardware with no Apple operating system preinstalled

    • richrichardsson 8 hours ago
      Yes, although Apple seem to be trying their darnedest to change my mind on that.
    • jorisw 7 hours ago
      Their laptops sell, so apparently they do. Or do you think the hardware is what sells those?
      • littlecranky67 7 hours ago
        Very much it is the hardware that sells Macbooks. Or more precise: The hardware/software interlock that works (drivers, long battery life etc.).
    • InsidiousWombat 6 hours ago
      Consider their other alternative was Windows userspace
  • pmkary 11 hours ago
    This is beyond irony and mind blowing, I'm literally shocked and speachless. But you know the funniest thing is that XNU itself is designed to emulate Open BSD on a Mach kernel :))) this is Incepetion taken too deeply...
  • xp84 9 hours ago
    Run a Mac... inside Linux... inside a Mac. Well done, guys. I'm going to try to run a Linux VM inside the inner Mac.
  • i_am_a_peasant 1 hour ago
    Looks like colocation is back. fancy
  • qalmakka 9 hours ago
    Next step is, find a way to run multiple XNU containers and finally allow people to run more than two images without filling a warehouse with idle Mac Minis :)
  • johng 13 hours ago
    This is awesome.
  • aa-jv 7 hours ago
    Holy molies, does this mean I will be able to run my (self-developed) Mac apps on my Pinebook Pro?

    The future is amazing, I'm so happy to be here.

  • fithisux 5 hours ago
    A revamped Solaris is now within reach.
  • jauntywundrkind 12 hours ago
    also NextBSD is back! https://www.nextbsd.org/ https://hn.algolia.com/?q=nextbsd

    a freebsd built around mach, launchd, and xpc maybe still gcd. afaik not xnu though (i should look).

  • natas 13 hours ago
    I'm afraid that, unfortunately, Apple may not like this.
    • flomo 12 hours ago
      Sounds like it's based on open source code they released. Also they never went after any Hackintosh hobbyists, only resellers.
      • OberstKrueger 12 hours ago
        The only Apple code it's referencing based on the README is xnu. The rest is community projects, and what it can pull from a live macOS install.
        • flomo 11 hours ago
          And they state running Apple XNU under Linux is the main trick here.

          All that hackintosh stuff violated the EULA, Apple just didn't care about DYI projects. Maybe they didn't want to be Bill Gates sending angry letters to hobbyists. I think they're not going to care if you get macOS running on your chromebook.

    • sneak 12 hours ago
      Why not? Historically Apple has been pretty uninterested in anything people do with the Apple hardware they purchased, just so long as they buy Apple hardware.

      But separately, I don’t even think this breaks the EULA at a first pass. Maybe distributing patched AMFI files, but those can be changed to diffs one can self-apply if they aren’t already.

      • matthewfcarlson 12 hours ago
        This project definitely requires an apple silicon host to work so that seems to align with previous Apple stances towards projects like this
        • viraptor 11 hours ago
          For this project right now, that's fine. But it's only a matter of time until the parts specific to Apple hardware rather than generic aarch64 start getting replaced in this or other projects.
      • viraptor 11 hours ago
        Probably not interested in the kernel part, but the userspace apps from MacOS explicitly say you can't run them on non-apple hardware. If anyone tries to run an Xcode compile farm based on this, they could be poking the bear...
        • sneak 10 hours ago
          This whole thing is running on Apple hardware. It says that in the article.
          • viraptor 8 hours ago
            Right now it does. We live in crazy times though - I don't expect it to be that limited for long. (If it actually is limited)
  • WesolyKubeczek 9 hours ago
    Isn’t this like Mac on Linux back in the PowerPC days (but it would boot MacOS Classic)? Or coLinux, but the other way around.
  • funkytownjoe 4 hours ago
    Nobody cares, Apple is shit software riddled with bugs
  • cheesecakegood 8 hours ago
    Yet another major project with an AI-written readme. Bad look
  • Nezk 12 hours ago
    Very cool, but I really wish it were OS X 10.9 instead of the hideous macOS 27 (for x86_64, of course, not ARM)
    • flomo 11 hours ago
      I have a friend who would build fixed-function video/audio hackintosh workstations. No updates. No web browsers. No chat programs. Do that on your phone. If the hardware is still alive, I'd bet these are still suitable-for-purpose.
    • matthewfcarlson 12 hours ago
      You’re just a few AI prompts away from exactly that if that’s what you wanted. This project requires a PAC system which currently is just apple silicon. X86_64 would open the doors to way more hardware
      • m132 11 hours ago
        PAC is a standard Armv8.3 extension and has been implemented in a lot of processors outside of the Apple ecosystem [1]. Lots of PAC instructions use HINT space encodings, which makes them NOPs on unsupported processors, and those that don't will just trap into the kernel, making it possible to simply skip or emulate them.

        A great deal of AArch64 Linux distros already builds binary packages exclusively with PAC, and those continue to run on SoCs that lack support, like that of the Raspberry Pi.

        [1] https://gpages.juszkiewicz.com.pl/arm-socs-table/arm-socs.ht...

      • saagarjha 11 hours ago
        Most modern ARM processors support PAC
  • MichaelTestGrid 9 hours ago
    [flagged]
  • chao86825 7 hours ago
    [dead]
  • speakspokespok 11 hours ago
    [dead]
  • staplehorse6553 7 hours ago
    [dead]
  • ravivarmat 8 hours ago
    [flagged]
  • Krea8ly 6 hours ago
    [dead]
  • oakfrog 4 hours ago
    [flagged]
  • zergrush 8 hours ago
    [dead]