Darling: Steam, WebKit and the Road to Mac OS 9

(blog.darlinghq.org)

154 points | by LubosD 1 day ago

8 comments

  • etaioinshrdlu 1 day ago
    This project went through some turmoil in recent months, basically due to the use and support of AI, and the rejection of it. The previous maintainer stepped down because they disagreed with the use of AI. It felt kind of relieving to see that this project adopted a sensible AI policy, because it's such a good fit for what current LLMs are capable of.

    Extremely excited for the day that this project can become perhaps a better platform for macos apps than macos itself! (Besides being open, one way as the article noted, is better backward compatibility!)

    • aquariusDue 1 day ago
      Semi-related but I've seen a similar-ish thing happen to Bottles, a really good GUI for dealing with WINE stuff, which seems to have went all in on AI this year.

      Generally the trend I'm seeing for established open source software is expanding its surface area with heavy use of AI (for those that do adopt it) instead of polishing all the rough edges that are the norm. In the context of Bottles those features would be UMU prefixes and the Eagle tool for analyzing Windows binaries, I'm curious if anyone had any success with them compared to simply installing stuff in a 'bottle'.

      Hopefully Darling doesn't succumb to a confusing feature set either.

      • pcwalton 23 hours ago
        In the case of Darling I would rather it expand than polish rough edges. Darling doesn't implement enough of the Apple system APIs to be a reliable way to run macOS apps at the moment. I would easily take mostly working Xcode and Logic Pro with some bugs over a polished implementation of TextEdit.
  • rocmcd 1 day ago
    Of all the things from macOS I would want to run on Linux, Steam was not even on my radar. Can someone help me understand why you would want to run macOS Steam on Linux? Or is this just the first step to get macOS-only Steam games running on Linux more broadly?
    • Pesthuf 1 day ago
      From what they wrote, this is more about showing off that software as complex as embedded Chromium with its multi process structure, GPU accelerated UI and what not is now running, which is a good milestone.
    • duskwuff 1 day ago
      > Or is this just the first step to get macOS-only Steam games running on Linux

      Do any of those exist? I suspect that basically everything on Steam has a Windows version available, since that's where most of the users are.

    • pcwalton 1 day ago
      It's the easiest way to install macOS games you might have purchased on Steam.
      • LanceH 23 hours ago
        Not everything on Steam is a game. I can't think of any that are Mac OS specific, but I have several non games purchased on steam.

        Maybe the point is to make steam viable for delivery games for Mac.

  • mewse-hn 1 day ago
    It would be nice if this could be used to facilitate iOS development but with macOS going to apple silicon only I guess that's another interoperability window closing
    • jadar 1 day ago
      According to the article, they can run ARM64 binaries too!
      • bpye 23 hours ago
        And non Apple ARM64 hardware can be fast - such as Qualcomm’s X2 Elite (Extreme).
    • fenmarlow 7 hours ago
      [dead]
  • lelandbatey 1 day ago
    For folks confused about this project, click the "Github" link in the top right and check the README. It summarizes what Darling is:

    > "Darling is a runtime environment that allows running macOS applications on Linux without a virtual machine."

    So it's like Wine, but for Mac OS instead of Windows.

    • musicale 5 hours ago
      The macOS and iOS 32-bit game apocalypse was sad...
    • danso 1 day ago
      Thank you. I made an effort to skim the article and then the blog feed and thought it was a Linux distro that had something to do with OSX
    • dfxm12 1 day ago
      Is the name similarity to Darwin a play on words, or coincidence, I wonder. (I often overthink things like this...)
      • mbreese 1 day ago
        You're not wrong... DARwin + LINux.

        It's on the project front page.

        > Does the name Darling mean anything?

        The name Darling is a combination of “Darwin” and “Linux”. Darwin is the core operating system macOS and iOS are based on.

        • alex7o 1 day ago
          Does this imply that the Darwin can run on windows as well :P
          • zardo 1 day ago
            > Darling should work with no problems on WSL2, as this is essentially a standard virtual machine with a full Linux kernel.
          • lemagedurage 1 day ago
            Let's call it Windows Subsystem for Linux Subsystem for Mac OS
          • alex7o 16 hours ago
            I will be more concrete, if Darwin + Linux = Darling, then Darling - Linux + Windows = DarWin
  • figmert 1 day ago
    Wow. That is some insane progress since I saw them last time, maybe about a year ago. No doubt AI had some hand in this. Great to see! I am looking forward to my Linux machine running MacOS + iOS (Darling), Android (Waydroid), and Windows (Wine and derivatives) applications.
  • duskwuff 1 day ago
    Mac OS 9 compatibility seems like a really long shot. It's an entirely different OS from Mac OS X, and there's a lot more parts of it with limited or no documentation.
    • LubosD 14 hours ago
      (Darling dev here)

      It's actually not such a really long shot. Just a few points:

      * We already cover lots of Carbon APIs. That's not all the APIs available on MacOS 9, but it's a majority of them. Take note that the API surface of these old systems is fairly small. * We anyway want to have the ability to run older PPC OS X executables, so we'll have PPC->x86 emulation anyway. * Adding a PEF (executable format) loader is low-hanging fruit. * Then you have to deal with various MacOS 9 specialties, but again, it's not that hard.

      And yes, the documentation does still exist. Not on apple.com, but it can be found around the Internet.

      • duskwuff 7 hours ago
        > We already cover lots of Carbon APIs. That's not all the APIs available on MacOS 9, but it's a majority of them.

        There's a very long tail of obscure old APIs that were never Carbonized. If you're just targeting games from the late PowerPC era, you may not need to care about them, but they're out there.

        > We anyway want to have the ability to run older PPC OS X executables, so we'll have PPC->x86 emulation anyway.

        You will most likely need 68k emulation as well, e.g. for applications with custom CDEF/WDEFs. These wouldn't have been present in a fully Carbonized application - but you wouldn't need Mac OS 9 emulation if that were the case.

        > And yes, the documentation does still exist. Not on apple.com, but it can be found around the Internet.

        There are some substantial bits which were never publicly documented at all. The "bottom half" of the C runtime (e.g. application startup) is particularly thinly documented, since only compiler developers needed to understand it.

    • wat10000 1 day ago
      They're not planning for actual Mac OS 9 compatibility. During the transition period, it was possible to write Carbon apps that ran on both 9 and X, and those apps are what they're talking about here.
      • mistrial9 1 day ago
        MacOS was broken into Managers, somewhat corresponding to the Inside Macintosh books. Some Managers were supported via header files and linked code, that set changed a few times in 18 months at the time.
  • snvzz 23 hours ago
    I'd love to see RISC-V host support.
  • dreamcompiler 22 hours ago
    Right now Darling requires X86-64 hardware. I'd love to see support for Apple Silicon. That way I could run Asahi Linux full time and never need to boot MacOS for the few MacOS apps I still use.
    • yjftsjthsd-h 19 hours ago
      > Darling requires X86-64 hardware

      Er, does it? This article leads with

      > The headline of this update: Steam runs under Darling, both on x86-64 and on ARM64.

      And later says,

      > Running x86 applications on ARM64 already works experimentally, using FEX. Support for x86-64 applications is in pretty good shape and should be merged into master soon, and i386 support is in the works as we speak. This means that Intel Mac applications will be able to run on ARM64 Linux machines.

      and then, especially,

      > We absolutely intend to support the opposite direction as well, running ARM64 applications on x86-64 hosts.

      From which I was pretty sure it does run on ARM? (If they don't yet emulate ARM on x86_64, how else can they be running ARM Steam?)

      • dreamcompiler 18 hours ago
        "You must be running a 64-bit x86 Linux distribution. Darling cannot be used on a 32-bit x86 system, not even to run 32-bit applications."

        https://docs.darlinghq.org/build-instructions.html

        I hope this is just "today's requirements" and they are in fact moving in the direction indicated by the passages you cite.

        • LubosD 14 hours ago
          That's just documentation not keeping up with fast changing reality.

          Yes, ARM64 is supported, but you generally need Apple silicon because we don't have missing instruction emulation yet (that's what the RPi section in the article mentioned).

        • yjftsjthsd-h 18 hours ago
          Huh. That reads more to me as a 64/32 bit thing, but I can see that reading. Honestly I'd suggest just trying it if you care