Hacker News new | ask | show | jobs
by filleduchaos 2272 days ago
Apart from the Xcode toolchain, I cannot for the life of me think of a single macOS application that both has no GUI _and_ isn't already cross-platform or a Darwin/BSD version of a tool that already exists on Linux.

I'd actually like to know what non-Xcode command line apps you (or anyone else reading this!) is using that explicitly target macOS and nothing else - I've used Macs for only about five years and primarily for dev work, so maybe there's a treasure trove of cool stuff I'm missing.

2 comments

I mostly had the same thought as you, but one thing I imagine some people might want is access to Apple's own command line tools, particularly those who prefer using Linux but need to work with Apple formats for some reason.

There's osascript for executing Applescript code, plutil for working with plists, and diskutil for making DMGs. Those are just off the top of my head, there's probably others too.

Hmmm - that's all fair! Though I'm not very sure why one would want to execute Applescript on Linux - scripts are typically either so platform-integrated that they're useless on non-Mac platforms or so generic that they're trivially replicated in languages like Python or Ruby.

I'd consider diskutil and plutil vaguely part of the "Xcode toolchain" (as in, using them (especially from outside macOS) is largely geared towards app development). That's certainly a huge use case for Darling - I actually think it would be interesting if they explicitly (but maybe not very loudly?) aimed for giving people access to iOS/macOS development without Mac hardware, rather than trying to be a general-purpose emulation layer.

I’d like to hear this too. I also can’t think of anything.