29 ms·
Darling: Run macOS Software on Linux
- archero 3y agoIs it able to run Xcode? I’ve been trying to do some iOS development on Linux and so far my solution has been to use DockerOSX… but this sounds much more convenient.
- notpushkin 3y agoOnly the command-line tools. https://docs.darlinghq.org/known-working-software.html https://docs.darlinghq.org/known-working-software.html
- Animats 3y agoNice, but all those already run on Linux.
- realusername 3y agoI think it still could be useful to build ios apps and upload them if that's possible in the command line.
- LtWorf 3y agoHow to get banned from apple store in 1 easy step!
- realusername 3y agoI've done enough app uploads to know it's also half broken on a real Mac, so I would not worry about that.
- glitchc 3y agoSince when?
- Animats 3y agoEverything on that list except XCode has a Linux version.
- saurik 3y agoSo the big thing is that you can use the command line xcbuild and also often need access to the asset bundlers (which are not open source).
- Animats 3y agoThat's actually useful. I need the asset bundlers so I can build for MacOS without having a Mac. I already build Rust programs for Linux and Windows on Linux.
- jbverschoor 3y agoOh wow, it actually works.. That's awesome for a CI runner
- thedaly 3y agoCan I use this to run fig? (fig.io)
- apatheticonion 3y agoWould be nice to have support for fancy terminals like Warp or iTerm2 in Linux
- doener 3y agoVia https://news.ycombinator.com/item?id=38421862 https://news.ycombinator.com/item?id=38421862
- pvg 3y agohttps://hn.algolia.com/?dateRange=all&page=0&prefix=true&query=by%3Adang%20hive%20mind%20follow&sort=byDate&type=comment https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
- deleted 3y ago[deleted]
- dave4420 3y agoOnly runs on x64 chips. Presumably only runs macOS binaries built for intel? (i.e. not apple silicon.) I can’t find if it says anywhere.
- CuriousTommy 3y agoI decided to bite the bullet and make an account for this website. > Presumably only runs macOS binaries built for intel? For now, yes. I'm currently trying to get Darling working on ARM64; however, I'm running into issue getting dyld working...
- saagarjha 3y agoYes, it doesn’t do any emulation.
- gwbas1c 3y agoFWIW: All Macs have been 64-bit for at least 11 years, if not longer. (My MBP from 2012 was 64-bit.) Apple dropped 32-bit support a long time ago. Not sure of the exact date, but sometime around 2015-2017 I had to port a Mac application to 64-bit because the upcoming release of MacOS was going to drop all 32-bit support.
- dave4420 3y agoYeah… I wasn’t really getting at it not working on 32bit, more getting at it not working on arm. If it doesn’t acquire the ability to run arm binaries, it will be a retro computing platform in a couple of years. (And it would have to emulate apple’s cpu extensions, even when running on arm chips, yes.)
- gwbas1c 3y agoPerhaps the assumption is that ARM will be more common on Windows and Linux? Or that ARM will become a requirement at some point in the future? I'm kinda surprised that ARM isn't common yet in Windows and Linux.
- gamesbrainiac 3y agoI wonder if there is a way to run iOS applications on Android. I'd kill to be able to use the OneNote app on my Samsung galaxy tab S8. Samsung Notes are great, but not very portable.
- tomaskafka 3y agoOnenote is normally available on Android, isn't it?
- supermatt 3y agoIt’s lacking many features on android: https://support.microsoft.com/en-us/topic/comparing-educational-features-of-onenote-and-class-notebook-across-platforms-and-devices-ac5a517f-5dad-44a5-8ad6-b6e4ec51dba1 https://support.microsoft.com/en-us/topic/comparing-educatio...
- speps 3y agoThis project is the most promising and it does what you say, except they're starting with iOS 1.0 so you'll have to be patient! https://touchhle.org/ https://touchhle.org/
- vitorgrs 3y agoFun fact, Meta (FB) actually had a tech to "emulate" iOS apps. Facebook and Instagram for Windows/WP once upon a time was an iOS emulated app.
- 3y ago
- jaxr 3y agoAs a long time Linux user, it's always felt kind of unjust that all good Linux software is ported to other os, but there is no reciprocity. I do understand all the nuances, but Apple and especially MS seem to get a lot out of the GNU/Linux ecosystem and give very little in return.I would appreciate using some open source software released for Mac in my Linux desktop. Thanks to the developers of this project! Will give it a spin...
- frutiger 3y ago> Apple and especially MS seem to get a lot out of the GNU/Linux ecosystem and give very little in return LLVM/Clang has been a huge boon to the GNU/Linux ecosystem, and dragged gcc into the modern era, and was largely funded Apple for many years.
- deaddodo 3y agoPeople seem to forget that GCC was flopping around on C++11 for a long while until clang started pushing things along. Not to say they've fallen behind, just that a competitor clearly kicked things back into gear. Same as Firefox and Webkit-based browsers did for the many years of IE6's monopoly.
- pasc1878 3y agoNot really now. If you use Windows or macOS then you can open all your time using the OS suppliers tools or tools bought from third parties. In macOS you can use UNIX but it is the FreeBSD world so no GNU or Linux there. In windows if you want Unix then WSL which is GNU/Linux but you can easily work in plain Windows.
- headhasthoughts 3y agoHow has it been a huge boon to the GNU ecosystem? Clang is slow, the code generated is not consistently better than GCC for most of the software I personally run benchmarks for, and it's not like GCC has ever been worse for feature support than a Microsoft compiler. It's better to point out WebKit.
- mgaunard 3y agoThe problem is that it means porting all of Cocoa etc., which is as big if not bigger than Wine porting the win32 api.
- LoganDark 3y agoAt least Unix and Linux are similar families of operating systems. Porting over Win32 is probably bigger, especially since Windows 11 still has to run binaries from the 90s. macOS cares much less, and you either do dynamic linking or recompile.
- lodovic 3y agoIf a ChatGPT assisted port can be seen as a cleanroom implementation, this can be done a lot faster than Wine.
- jdmg94 3y agoit is most definitely not cleanroom
- lloeki 3y agoClean room has two steps: - Team A: reverse engineer and document - Team B (with no intersection with A): implement from document Allow me to indulge in a thought experiment: What if one tells ChatGPT to generate the documentation, then implementation is done from that? What if Copilot (which has no visibility into the original code) lays out a huge chunk of the implementation from the documentation?
- wtallis 3y agoChatGPT probably wasn't trained on any proprietary Apple source code.
- account42 3y agoYes, but can it be done with a blockchain?
- OnlyMortal 3y ago
- vinniepukh 3y agoSeems like GUI application support is not there yet. In that case, what command-line software for MacOS is actually useful for?
- LoganDark 3y agoXcode build tools. Right now you practically need a macOS machine to compile applications for macOS or iOS.
- IshKebab 3y agoFor command line apps you can cross-compile from Linux. IIRC it does require building Clang from source, and obtaining a Mac SDK (which is probably against their T&C's) but there are pre-made scripts to do it (there's a good GitHub Actions one). That said, I only do that for free projects. For commercial stuff I'd just buy a Mac Mini.
- 3y ago
- AzzieElbab 3y agoThis is awesome. Now, what mac soft do I want to run on Linux? I am neither a gamer nor a designer
- deleted 3y ago[deleted]
- gumballindie 3y agoDont worry, gaming on mac is not a thing so that’s out of the question anyway - apple products are too low spec for it. There is some gui software that would be nice to run on linux, but none mase by apple.
- input_sh 3y agoThere's been some recent big budget games compiled for Apple Silicon; Lies of P and Baldur's Gate 3 come to mind. Of course, that's just a tiny fraction of big budget games and I haven't actually played any of them to know how good the experience is.
- a_vanderbilt 3y agoIt's nice when it works, but papercuts still degrade the experience. The M-series chips are really impressive when they get a chance to stretch their legs. It feels like we're still in the chicken-and-egg phase though. I don't foresee that changing unless Apple dumps a ton of money to incentivize publishers to port to Mac, or they do what Valve did and make their own equivalent of Proton - aimed at developers. The licensing on GPTK kinda kills that though.
- yjftsjthsd-h 3y agoI would natively expect those to mostly have Windows versions that work with WINE already. Edit: Oh, it might be better if you want an ARM native binary.
- dgacmu 3y agoI've been playing BG3 on an m1 Mac mini and it's surprisingly good. I haven't bothered loading it on my big-GPU gaming PC to compare, but that alone says something. (I'm in no way a serious gamer, so there may be plenty of things I overlook)
- deleted 3y ago[deleted]
- xyst 3y agoApple would probably send their army of lawyers after GH if you were able to run Final Cut Pro without using Apple hardware or macOS
- lisper 3y agoActually I think they would send an army of recruiters.
- 95014_refugee 3y agoThis ^
- freedomben 3y agoWhy would they do that? They could easily make this possible with their current expertise. They clearly don't want that, and that's how they've been their entire existence.
- lisper 3y agoBecause getting FCP to run on Linux shows that you have mad skills.
- iAMkenough 3y agoFinal Cut Pro has been running on hackintoshes without the army of lawyers showing up for a decade or more. As long as they get their $300 per license, they don't care how unstable it runs on your unsupported hardware.
- iAkashPaul 3y agoWould be great to get Maccy & Rectangle working on Ubuntu!
- airtonix 3y ago[dead]
- smasher164 3y agoI know this only works for cli tools right now, but I’d love to be able to run iMessage and Notes on linux.
- cplusplusfellow 3y agoFrom your lips to God's ears with iMessage.
- rubymamis 3y agoCheck out my note-taking app on Flathub: https://flathub.org/apps/io.github.nuttyartist.notes https://flathub.org/apps/io.github.nuttyartist.notes
- acheam 3y agoBeing able to run iMessage with this would be enough to let me (and I'm sure others) finally ditch my iPhone
- kennydude 3y agoVery very unlikely - as far as i know iMessage requires a Mac or iPhone serial number to authenticate :(
- smasher164 3y agoI have an iphone, so I hope the serial number won’t be an issue.
- __jonas 3y agoI thought notes was just a client that syncs via IMAP so you would be able to use any notes app that supports IMAP sync? Or has this changed?
- tambourine_man 3y agoIt has long changed and became much more reliable in the process.
- 3y ago
- petabytes 3y agoI've been using this the past few weeks to try and cross compile my software. Clang works, but a lot of the core libraries are missing. pkgbuild for instance won't work. And even native Cocoa apps I've tried won't work. That being said, this has a ton of potential. I really wish the devs had more time to work on it.
- robterrell 3y agoCocotron used to have pretty good AppKit API coverage: https://www.cocotron.org https://www.cocotron.org I was able to get a ported app running with it at one point. And I think Microsoft took a pass at it more recently: https://github.com/Microsoft/WinObjC https://github.com/Microsoft/WinObjC But it appears Darling uses Cocotron so maybe you've already seen how well it works for you.
- heavyset_go 3y agoHave you tried using the headers and sources from Xcode SDKs and linking them against Clang on Darling? Should be enough if cross compiling is the goal and not porting apps to run on other platforms. Something similar can be done with Wine as well as MinGW and other similar toolchains and platforms that target Windows.
- account42 3y agoYou don't even need Darling or Wine if you just want to cross-compile since Clang can target any platform irrespective of the platform you are running it on (as long as your Clang is not built with support for that target disabled). All you need is the system libraries/headers and a linker (Apple's ld64 is open source, no idea if lld is usable for Mach-O yet). See e.g. OpenTTD's old how-to: http://web.archive.org/web/20200917010945/http://devs.openttd.org/~truebrain/compile-farm/apple-darwin9.txt http://web.archive.org/web/20200917010945/http://devs.opentt... The only thing making this hard for targeting OS X is that a) too few people care for ready-made cross-compilers to be available so you have to piece this together yourself and b) there is no open-source reimplementation of the OS X system headers and stub libraries to link against so you have to extract the official ones from Xcode but that again is only a matter of people not caring. For MinGW that is all there because Windows is a much more popular target - many Linux distros have MinGW packages that you can simply install and start cross-compiling. The same could be done for OS X.
- bomewish 3y agoWonder if it does mdsearch/mdutil which is the macOS killer indexing process…?
- toytea 3y ago[flagged]
- da-x 3y agoWith some smart dynamic binary translation it would be able to run Arm64 OSX binaries. Just 5 times slower.
- rspoerri 3y agoIs it only me or is that background color of the FAQ with the black font totally unreadable?
- ncr100 3y ago> We use The Cocotron as a basis for our Cocoa implementation, along with the Apportable Foundation and various bits of GNUstep. My heart swells, I got to work at Apportable - super fond memories. .. was a YCombinator 2011 thing https://www.ycombinator.com/companies/apportable https://www.ycombinator.com/companies/apportable
- deleted 3y ago[deleted]
- dang 3y agoRelated: Darling Progress Report Q2 2023 - https://news.ycombinator.com/item?id=37220023 https://news.ycombinator.com/item?id=37220023 - Aug 2023 (15 comments) Darling: The macOS virtual emulation layer for Linux - https://news.ycombinator.com/item?id=33157857 https://news.ycombinator.com/item?id=33157857 - Oct 2022 (1 comment) Darling – Run Mac apps on Linux - https://news.ycombinator.com/item?id=29813679 https://news.ycombinator.com/item?id=29813679 - Jan 2022 (200 comments) Darling: macOS Translation Layer for Linux - https://news.ycombinator.com/item?id=24683669 https://news.ycombinator.com/item?id=24683669 - Oct 2020 (199 comments) Darling – Run macOS software on Linux - https://news.ycombinator.com/item?id=22700365 https://news.ycombinator.com/item?id=22700365 - March 2020 (128 comments) Darling – macOS Translation Layer for Linux - https://news.ycombinator.com/item?id=19772322 https://news.ycombinator.com/item?id=19772322 - April 2019 (174 comments) Darwin/macOS emulation layer for Linux - https://news.ycombinator.com/item?id=17718906 https://news.ycombinator.com/item?id=17718906 - Aug 2018 (7 comments) The Mach-O Transition: Darling in the Past 5 Years - https://news.ycombinator.com/item?id=13581234 https://news.ycombinator.com/item?id=13581234 - Feb 2017 (1 comment) Darling – MacOS translation layer for Linux - https://news.ycombinator.com/item?id=12854895 https://news.ycombinator.com/item?id=12854895 - Nov 2016 (265 comments)
- 999900000999 3y agoI don't expect it to work anytime soon, but I'd love to see Logic on this. I own a Mac and a copy of logic, but I really would love to be able to travel with a single laptop instead of carrying my Air just for recording.
- _lvbh 3y agoToo bad the Go compiler doesn’t work. Been checking in once every month to see if that has been fixed