Live data from Hacker News

Darling – Run Mac apps on Linux

darlinghq.org

121–130 of 210 posts

Re: Darling – Run Mac apps on Linux

#121

Can it run Messages.app? This is the one thing that constantly gives me pause on the linux-desktop switching EDIT: It says "some" GUI apps are working / experimental, so probably Messages is not there yet, just curious if anyone has tried.

Messages would require getting all of Catalyst to work, so I would assume it's one of the more complicated ones to support.

Re: Darling – Run Mac apps on Linux

#122
post #87
post #86

Earlier quoted context omitted.

Honestly that's because of hardware suppliers. Don't buy hardware without Linux support and this problem goes away. Windows, through sheer market power and mindshare, has created a situation where most hardware just works on Windows. This is not a rational expectation for other OSes. Trying to run Linux on a random Windows laptop is more or less like trying to run OS X on it. If it doesn't work that's on you

So far, my best experience has been on a LaptopsForLinux laptop. Every feature I expect to work on a laptop works (which is surprising when you're using Linux). I did try and buy another "made for Linux"-type laptop, which was some Entroware model, but I remember experiencing a lack of Hibernate and poor battery life. I also tried a Dell XPS, but there were some BIOS problems, the keyboard layout was awful (which is…

https://us.starlabs.systems/

Re: Darling – Run Mac apps on Linux

#123

Does this still require a kernel driver to intercept syscalls? It'd be nice to have a gvisor/UML like option that would let it run entirely in user space.

Yep, it looks like they have a kernel module for handling the Mach subset of syscalls.

> Emulating XNU system calls directly in Linux would have a few benefits, but isn't really workable. Unlike BSD kernels, Linux has no support for foreign system call emulation and having such an extensive and intrusive patchset merged into Linux would be too difficult. Requiring Darling's users to patch their kernels is out of question as well.

I wonder what such a patch set might look like.

Re: Darling – Run Mac apps on Linux

#124

Zig has out of the box support for Darling, in order to directly run cross-compiled macOS apps on Linux.

In case no one knows what zig is.... https://ziglang.org/

From the link.... "Zig is a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software."

Re: Darling – Run Mac apps on Linux

#125

Earlier quoted context omitted.

If you ever got in a situation where your sound card wasn't supported on macOS, instead of "you can compile a driver" the answer you'll get is "throw away your sound card and buy supported hardware." You could apply the same fix to a Linux computer and purchase known working hardware, but because you have the option of fixing the software yourself that makes it a worse operating system?

Exactly how does one get into a situation where your sound card isn't supported on macOS, other than by putting together a Hackintosh? :) You're going to have to look for some pretty edgy edge cases where you will be left rending your shirt and wailing "if only I could compile an open source driver for [insert thing] but the cursed closed nature of Apple products prevents me from doing so!" (I mean, I'm pretty sure p…

I've got an old Macbook Air that has to be used with a USB sound device because the internal hardware died at about 4 years but wasn't worth replacing the motherboard. In other cases, I'm sure professional (or even hobbyist) audio people use hardware other than the computer's built-in sound devices. How long do the makers of those keep updating the drivers when it's a 5 generation old product and their developers have moved on to newer projects? A driver they gave you for OS X 10.5 isn't going to do you any good today.

Re: Darling – Run Mac apps on Linux

#126
post #3

There's still a long way to go, especially if you want GUI apps. If you want to contribute there is an active community on Discord.

If you want to contribute, you must agree to Discord's terms of service and data collecting. Projects need to stop doing this as the only option.

Re: Darling – Run Mac apps on Linux

#127
post #76
post #72

Good luck with supporting Mac GUIs. It's a constantly shifting target. Carbon is gone, but now Cocoa isn't always Cocoa because you also have to support SwiftUI, which is itself a moving target.

I thought SwiftUI was an abstraction layer on top of Cocoa, Cocoa Touch, etc. so you could reuse code between executables. Is that not the case?

It is, but perhaps I'm not understanding how it is currently implemented. I thought there was a system framework it relied upon, and if so, that framework would need to be implemented in Darling. Perhaps the framework is embedded in every .app package? There's a similar issue with the Swift runtime. I believe Apple's goal is to make it a system framework, at which point it would also need to be implemented in Darling.

Re: Darling – Run Mac apps on Linux

#128
post #47

Looks like an incredible project, but if GUI is not working, what is the current use case for it? Command line apps are usually open source and can be compiled in either system. What are people using this for in day to day work?

> what is the current use case for it

This is Hacker News, not Product Hunt

Maybe by posting here they will get more people to help make GUI happen

Re: Darling – Run Mac apps on Linux

#129
post #7

Has anyone been able to use darling for iOS CI jobs yet? Admittedly I haven't researched this in a while, but one of the biggest hurdles in large scale iOS development is sane DevOps infrastructure. I know due to Apple's TOS that you will never be able to build, sign, and distribute your app on non-Apple hardware. But i'd love to use darling to run unit tests/CI jobs on commodity cloud infrastructure. Even if you do…

This is for Unity specifically, but people are building IOS apps on Windows. https://assetstore.unity.com/packages/tools/utilities/ios-pr... I doubt any employer would let you do this though. And I have my Mac Mini for recording music and building IOS apps. But it is neat to see it's possible

>I doubt any employer would let you do this though.

Why?

Re: Darling – Run Mac apps on Linux

#130

Earlier quoted context omitted.

TIL. Never used that!

option + command +f Pop-up box comes up, here you can have as many credentials as you need, it saves them, just double click one and it will enter it in your terminal window. This an absolute life changing feature for me. I manage a ton of servers, and yeah we use SSO to ssh into them, but that is just ssh access. Once you are on a server they maybe several passwords and or accounts you need to login to or accesses (…

> Password management is THE feature that is painfully missing from Terminator, Tilix, etc.

Never thought of incorporating this in the terminal emulator. I just use a command line client for my usual password manager. Any reason you can't do that?

Post reply on HN