HeadlinesBriefing HeadlinesBriefing.com

Darling runs Steam, WebKit and Carbon-era Mac apps

Hacker News •
×

We've made some very nice progress since the last post. Steam now runs under Darling, and so do VLC, Cuphead and Age of Empires II. Our support for Carbon-era applications is growing quickly, Darling has gained its own Finder and System Preferences, and the build now includes Apple's Web Kit.

Steam The headline of this update: Steam runs under Darling, both on x86-64 and on ARM64. This is a bigger deal than it might seem. Most of the Steam client's user interface is built on CEF (the Chromium Embedded Framework), which is essentially a full web browser embedded into an application. Running it requires a lot from the system underneath: multiple processes talking to each other, GPU-accelerated rendering, shared memory and a large share of the mac OS APIs. Getting CEF to run means that Darling is now strong enough for a whole class of applications built on top of it.

Performance is not top notch either. CEF makes a lot of Mach API calls, and that hits one of our weak spots. In Darling, Mach APIs are emulated by darlingserver, a user-space process: every Mach call turns into a round trip to another process instead of a direct call into the kernel, as it would be on mac OS. We're working on it, though. Just as this post was being written, we landed a multithreaded darlingserver, which should help with exactly this kind of workload.

Carbon Before Cocoa took over, there was Carbon: the API Apple created to ease the transition of classic Mac OS applications to Mac OS X. Plenty of software from that era, especially games, was written against it, and Apple dropped it entirely together with 32-bit support. We are now fast expanding our support for Carbon-era APIs. A good example is Redline, a racing game that relies very extensively on Carbon. It now runs in Darling.

Source: Hacker News · Summarized by HeadlinesBriefing