Darling – MacOS translation layer for Linux
darlinghq.org
darlinghq.org
I really like Linux as a backup plan, in case Apple totally drops the ball on professionals on the Mac.
The Linux desktop is getting pretty good, but it lacks well designed high quality GUI applications. If porting to Linux was done easier that could change.
Is this a joke, referencing the new MBP releases?
Personally, I've been saying we're there already. I haven't bought a Mac in years. (employers keep giving them to me and I install Ubuntu on them.)
Fundamental to most peoples complaints about desktop Linux applications is the lack of look and feel cohesion across all permutations of distro, desktop, and toolkit.
Wine applications using the Windows APIs look like complete garbage and fit in nowhere. The same would be true of OSX Cocoa apps - they wouldn't mesh well at all, and it would be practically impossible to skin them with toolkit theming.
That, and recent efforts by Gnome and KDE have been producing tons of good new applications with modern GUI. They just aren't all the applications yet.
Like: the VSE viewer and the Image viewer are similar but distinct; that can be confusing. And OpenGL acceleration on a Scene strip shows a 3D model rendition that is not (in general) the same as the rendered output of the Scene.
If you want to get fancy with the compositor + VSE, again there are just a couple of quirks but the learning curve is merely steep, not long.
The open source alternatives are no where near as fast, they lag far behind supporting new cameras, their interfaces are ugly and difficult to use, etc.
There is a clearlooks theme that makes things quite a bit more bareable.
Unfortunately that seems to scare people away so everyone hacks GUIs together to keep them from running and that's how we got to where we are now.
I like text interfaces as much as the next nerd, but most people want to interact with a computer intuitively: see a thing and interact with that thing.
In other words, "point and click". (Or just "point" if it's a touchscreen.)
My 2 year old doesn't know the first thing about computers, but he'll jab his finger at the screen when he sees something he likes.
'Open folder', 'show contents', 'see items', why does 'ls' make more sense? It certainly has nothing to do with literacy.
Englebart? Sutherland? Kay? Idiots! Fifty years of academic and industrial research into Human Computer Interaction? Arrant nonsense. Let's blow it all off and do your thing. What could possibly go wrong? [0]
[0] http://gandre.ws/blog/blog/2015/04/07/why-the-command-line-i...
Not really. CLIs can be terribly inconsistent look and feel, even within the same tool (see git), which makes their lack of discoverability even more painful.
That isn't true at all. I spend all day in a handful of applications and good aesthetics make my day much more enjoyable.
Setting aside the purely utilitarian aspect of being required to use a piece of software to do a task or as part of a job, consistency increases efficiency by reducing the amount of time spent understanding the deviations from expectation in the user interface.
There's been a great deal written about how attractive things work better. It isn't crap and it does matter.
Now I need to find language to complement someone without it sounding like OO programming style.
HN, may I please have a simple +1 or upvote button? Needs to be usable on my smallish screen too.
Would you marry an ugly woman? An ugly man?
Beautiful software, looks good, is intuitive, doesn't complain and complements the user. Hence software is different from art.
I may think a terminal window is beautiful - if I do then I will choose a terminal.
What I won't do is purposefully use user-hostile/ugly software on principle - if there is a better choice I will choose the better choice.
When all software is designed to be consumed by other computers then we can ignore those emotional reactions, for as long as software is consumed by animals it is going to be a vitally important factor.
I don't think that's what the person was saying that I responded to or he wouldn't have made the condescending remark about people using a pro machine to use Outlook and Facebook.
In comparison, Mac apps will look and feel different from Linux or Windows apps, and QT and GTK+ apps will look and feel different from one another or the other two.
Switching between apps, even with heavily customized UI/UX, is consistent on a given platform, and that's what's important. Taking that away will just frustrate users and complicate things overmuch.
People find it easier to use apps that have a familiar look and feel. That means less training, less troubleshooting, lower operating costs.
Anyone capable of navigating their way in Outlook can probably navigate their way in Apple's Mail or Thunderbird or Evolution. Anyone familiar with LibreOffice can do the basic stuff in Numbers in minutes.
Now, if you want a Notepad user to become proficient in Vi, that's a whole different story. Gedit, OTOH, is pretty easy.
Mental context switching is just like high CPU system time, with the same results. I/O is slower, user time processing is slower and much less gets done.
The "professional" market doesn't care about visual cohesion.
[citation needed]Unless your senior exec is carrying around his Mac Pro from his desk. That's a nice piece of hardware--without even needing USB-C and new dongles.
Ubuntu or a desktop that only uses Plasma apps may fit the bill. Plasma looks great but has a limited ecosystem. Ubuntu looks ok, but has a wider ecosystem.
What's most amusing to me is that I spend a considerable amount of time with Homebrew and others trying to make my MBP more Linux-like besides running Linux under Parallels. Getting Mac GUI binaries to run on [insert god-like desktop of your choice] would be very nice for the required closed course apps I must use. Developing for iOS (because I must) in Linux would be great. Otherwise, this feels like a step backwards.
-Mr. Fully Open Source Software
Most of "cocoa" came from the OPENSTEP specification, and GNUstep offers quite a complete implementation.
I'd love to port my favorite OSX apps to linux (ITerm 2, I miss you so much ;_;) but that website makes it almost a point to be as useless as possible.
Also, reading through http://wiki.gnustep.org/index.php/User_Guides , why does it talk about FileSystem Layout. Is GNUStep an OS ? I thought it was just a library. The whole thing feels a bit messy :|.
Pretty much the first thing a desktop environment has to do is establish an abstraction layer for filesystems, so that desktop-enabled applications can have a consistent way to talk about files. Both Gnome and KDE have a VFS layer (GVFS and KIO, respectively).
A good portion of what KIO and GVFS do should be done at a lower level. Instead we get this weird situation where I can "see" a file in KWrite, but I can't see it the shell or in a non-KIO-enabled program.
Interesting, when I'm using Mac and I miss KDE's Konsole, which is superior IMHO.
Which features are you missing from ITerm2?
- Alert when current command finishes running.
- Download files with clics
- Drag-drop files to upload with scp.
- The tmux integration. Being able to use the "native" split instead of tmux splits is cool.
All those are important to me because I'm always ssh'd into a personal box, and they just make the whole terminal experience feel like I'm on my local machine.
Then there's the Marks feature, which is just friggin great, the fact that it supports a bunch of pretty useful escape codes (and they're even documented[0]), and lots of useful (but minor) features like the Caputred Output[2] that just make the whole experience pleasant.
Nowadays I'm just using i3 with urxvt. I'm hoping that one day, I'll have the time to write a tmux integration using i3's IPC, which would bring me 75% where I want.
[0]: https://www.iterm2.com/documentation-escape-codes.html
[1]: https://www.iterm2.com/documentation-shell-integration.html
[2]: https://www.iterm2.com/documentation-captured-output.html
It's kinda odd that the best terminal app is on OSX but not in linux :(. iterm is one reason I am postponing switching to linux from osx for my work laptop.
But now, it seems webified apps are king. The handful of native apps that people use are already satisfactorily implementable on Linux. In fact, a great number of native apps are being implemented on Linux in spite of the GUI bits not being source compatible with OS X or Windows. The major holdouts (MS Office, Adobe CS) likely have more to do with business reasons that factor much more than porting costs.
Now, if GNUstep were to become a compelling alternative to XCode for developing iOS apps, I could absolutely see that tide lifting the Linux fleet.
The web is the OSS GUI stack with the largest, most diverse, and most active developer community, and with it you get to ride on the coattails of multi-billion dollar companies like Facebook and Google that have significant investments in the web.
I got DDOSed and threatened. I got some of the most insane all-caps slobbering and frothing at the mouth feedback I have ever seen in all my years of interacting with any developer community. You'd think I went into a conservative church and gave a talk about evidence for abortion in the Bible or something.
The vast majority of this came after the article got posted to Reddit /r/linux. Most comments there amounted to "web sucks and JS coders are weenies and next year will be the year of the Linux desktop as soon as we finish the next rewrite of (insert favorite project)." Intelligent criticism is good but the vast majority of the comments I read responded to none of the core points of my post and amounted to not much more than developer community religious bias.
I ended up taking the post down for two reasons:
(1) I got sick of getting DDOSed and it wasn't worth it to me to fight just to get an off the cuff opinion out there. I am not deeply invested in this and have better things to do.
(2) This convinced me that the "desktop Linux" community is toxic in the extreme and should be avoided. This includes avoiding providing any input whatsoever to that community. Also caused me to become a lot less loyal to Linux in general, since it's a community full of people who respond to any opinion differing from their own with absurd amounts of hate and vitriol.
But hey, that's why I'm in embedded development. That field is still safe for now.
...but the embedded world is also being slowly infected with JS, java and people wanting to run interpreters on embedded devices for which they are totally inappropriate.
Oh well.
A UI engine is a problem on par with creating a good game engine like Unity. If you don't have a loooooooong list of capabilities and polish your UI is a toy. By the time you extend and build it out enough to make it not a toy you will have re-implemented either Aqua/Cocoa, Microsoft's UI, or the web but yours will be new and nobody will know how to code for it.
Now make it flexible and programmable and extensible enough to be future-proof and battle hardened. Now make it work remotely over the wire with good performance. Now make it fast and efficient. Now make it secure.
The web isn't perfect by any stretch but it's IMHO the best combination of:
- Complete
- Modern
- Battle tested, including security
- Maintained by professionals
- Can be made to look good
- Has a yuuuuge developer community that isn't going anywhere
Qt is the closest other contender but its dev community is less than 1% of the web's. It's also starting to... ahem... look more and more like a web stack. It's still a little lighter and faster than the web but not much, and IMHO that gap is narrowing and will narrow even more. Look into Mozilla Quantum for an example of what's coming. We're going to have aggressively multithreaded GPU-assisted HTML+CSS renderers and web assembly soon.
JS is not my favorite language but it's not bad either for what it is (IMHO) and ES6+ features make it a lot better. It's a very acceptable "BASIC for the 21st century" and is perfectly fine for driving a presentation layer, schlepping data around, and controlling stuff. JS VMs are impressively fast given the difficulty of accelerating the language, and they are not overly heavy. WASM is going to break down this barrier as well by allowing CLANG to target the web as a native platform.
Web renderers are heavy but an OS that embraces the web as its presentation layer across the board could load one instance of all that bloat instead of one instance per app.
(A web browser on this imaginary platform would be a thin wrapper around an iframe.)
You'd have to pay a lot of attention to security. You might have to fork or implement a few added things into a good web engine to make it ready for such a use case, like better security models and resource management models around iframes. But that pales in comparison to the work it would take to re-invent a stack from scratch and reach this level of capability and then to build an entire ecosystem of this size and breadth around that stack. Forget about that unless you have a billion dollars to burn.
Regarding security, it seems like something like Servo on top of a capability system like seL4 or Robigalia could provide a lot of opportunity to enhance the client security of a web application.
Using wasm + WebGL (or whatever's in the pipeline for Vulkan) could make this easy to deploy creative applications.
Add IPFS into this mix, and we'll be able to deploy decentralized applications as easily as central-server applications.
I'd like to see better tooling for building UIs on the web before I could get fully behind this idea, but I agree that the web platform has been BY FAR the most successful GUI framework ever, and I say this as someone who works nearly exclusively on systems programming.
I personally wish we had a first class, broadly adopted Free *nix desktop option with native GUI and the like. I am not necessarily a fan of extending the web to all parts of my computing experience. However, what you described is very much what is happening with Chromebooks--so maybe your normative statements about the Linux desktop just required the implementation and backing by a Google.
That all said, I wouldn't write off desktop Linux along with the caustic communities you've found. I did a career switch to urban planning some years ago now, and what I've discovered is that every community has a majority group of mostly reasonable, mostly disengaged people along with a smaller group of really loud, difficult people. In that sense, Linux user communities feel normal to me.
End result is that they are operating inside an echo chamber of sorts, thinking they just need for sharpen the UX more to make "year of desktop Linux" happen while alienating existing desktop Linux users.
Damn it, Windows is not the leading OS because it has a sharp UX. Microsoft, besides their questionable behavior with OEMs and bundling, leaned over backwards to make sure Windows offered a stable usage environment.
Even with Windows 10 can you run a binary from the early days of Win32, as long as you use a 32-bit install. The reason it is not working on 64-bit is because the CPU modes needed are mutually exclusive.
How is HTTPS even close to X11 protocol? That's like saying a car engine can function as a steering wheel.
BTW /r/linux is not all Linux users.
Qt, GTK, and other desktop techs are "weird" little tiny niche skills to acquire, and since desktop dev in general is lower priority these days they're going to be rare. HTML5+CSS+JS with a stack based on React or Ember will draw tons of dev talent.
For consistent look and feel the environment could standardize on a single set of CSS themes (maybe a fork of bootstrap) and a "recommended" UI toolkit (I'd recommend React). Use of other CSS or other UI toolkits is okay, but if you do you're strongly recommended to hold to the style guidelines.
Those style guidelines could in turn be informed by things like Atom, Visual Studio Code, Slack's desktop app, etc.
I have been developing green field native applications in the last three years.
It has been a return to sanity after doing around 4 years web dev.
On mobile web tech based apps are the ugly step-children compared to native apps. They've had their chance I'm afraid. I understand why they should be ruling the word in theory, but it just never works out in practice.
GTK3 yes, and it been constantly changing between minor versions so that most of the people that liked doing GTK2 themes abandoned doing GTK3 themes.
As for /r/linux, i get the impression that their permanent residents are a mix of gamers and "devops" these days.
The Mozilla of recent years is a massive example of the whole "busybody" problem that FOSS is having these days. Too many people with some kind of "social" angle has gotten involved on the management end to tout their own horn.
This then is draining resources and taking focus away from writing good reliable code as they are chasing the latest "social problems" to solve so that said management can add another entry to their resume of causes championed.
While i agree from a technical POV, i disagree that this can be seen as a good thing.
Looking back over the decades and recalling my interaction with developers, I ask myself, when did we become an angry mob of anti-intellectual haters? Some of us are as cartoonishly awful as lords and ladies in French Revolution period dramas.
I think that GNUstep has actually been around since the mid- or late-90s — but it was never a game changer. I don't know why really (was it 'fully-baked' and 'first-class'?), although for my part I just never found a reason to use it.
If it did, the GNUstep desktop could have gained users (WindowMaker was very popular, me included) and developers would have got interest in it.
That didn't happen.
I predict this won't ever happen. Whether fairly or not, Qt has a reputation for not feeling native, and this is extremely difficult to shake. And with Swift becoming the language of choice for Mac development, the use of C++ (not even standard C++: C++ with the moc preprocessor) is becoming more and more of a liability.
http://www.linuxandubuntu.com/home/macbuntu-transform-ubuntu...
I wonder why they suggest trying to rebuild Cocoa on top of Qt, rather than starting with the existing GNUstep?
Not to mention across all company sites.
EDIT: And if you bother to listen to the Android Developers Backstage podcast, according to the Android team themselves the large majority is on Windows.
Edit: OK why downvotes? Did I say something that is not true? Matter of taste, but seems like it's new trend to hate on Apple computers. Its cool now right? Why can't people just move on...
Edit2: Forgot that this is HN and that every word is meant literally. ¯\_(ツ)_/¯
Lots of people will stick with Apple hardware or the mac operating system I'm sure, but I do agree that I think a lot of people will cross over once some of these barriers are removed.
Anyway back to the story, I think that number of people that use Macs only for iOS dev is existent but not really that big. Except platform specific development (like .NET/Windows, or iOS/macOS for that matter), most of development is pretty platform agnostic (where you draw the line here is UNIX-like vs Windows OS). App developers will have to stick to Macs, unless Apple go totally insane and release dev tools for iOS on Linux (which won't happen in my opinion, because of the anatomy of both macOS and Linux). So OPs comment doesn't make sense from the beginning (both technically and economically for Apple).
The subsystem that was made just to claim POSIX compatibility was the subsystem that preceded Interix. Interix was developed outwith Microsoft, and replaced the old POSIX subsystem. It was Windows NT's second POSIX subsystem, and it very much is not just a sop for the sake of checking a requirements checkbox.
It's a fairly usable POSIX environment, with a large toolset, proper terminal emulations, pseudo-terminals, interoperability with non-POSIX processes including visibility with (an enhanced) ps and the ability to send signals to Win32 processes, an actual init and inetd, and an X server.
Stephen Walli has stated that it started as a fork of 4.4BSD-Lite.
Could you elaborate on how you run GUI apps? Is it through some Xorg compiled for Windows? Can you use hardware-assisted OpenGL from WSL?
So I'm wondering how much of the software requires 'Linux' per se or rather just relies on a GNUserspace such as Ubuntu.
It might be an interesting test case of WSL compatibility for Canonical/MS programmers to get this working. (although wasn't MS working on some sort of iOS bridge for WP10, in the case of Darwin-based programs?)
And who in the hell ever developed for it anyway? That was a niche, forgotten product if there ever was one.
edit: maybe you should keep up with stuff more if you're going to defend it so much, it was deprecated like 7 years ago
This is an untrue generalization. I know people who have a Mac, yet do all of their actual coding within containers set up to use some flavor of Linux and never really touch the underlying OS. Macs DO have solid, reliable hardware underneath, but the insinuation that there is no reason you need to run a true POSIX compliant OS vs MacOS is definitely not a hard and fast truth.
http://stackoverflow.com/questions/5785516/is-osx-a-posix-os
https://en.wikipedia.org/wiki/Single_UNIX_Specification
Presence of bugs does not preclude you from being compliant to the spec.
...also... Linux is not officially compliant to either one.
The fact is, Darwin gives me trouble a lot more than Linux does when using POSIX APIs. If there were a comprehensive, up to date POSIX test suite, Darwin would fail it.
1) That's a nearly 15-year-old standard (03 == 2003). Windows was certified to the predecessor POSIX standard.
2) While certified, it's compliance in actuality is poor. macOS's certified status says more about flaws in the certification test suite and administrative process, and the OpenGroup's need for income, than it does about macOS. The manual page for pselect, for example, even admits that it's not compliant!
FreeBSD, Linux, NetBSD, OpenBSD and probably DragonflyBSD are all more compliant in a practical sense than macOS, and much more compliant to the latest specification as they implement all or most of the newly defined interfaces, while macOS implements very few.
That said, yeah, macOS is compliant enough as a practical matter, especially compared to Windows. Porting stuff to macOS is about as painful as porting to Solaris or AIX, which is to say not very painful.
The biggest headaches with macOS are the bugs. For example, last week I was adding support for sendmsg/recvmsg and IP_PKTINFO in my Lua unix module and was able to reliably crash the kernel with a single line of unprivileged code:
https://www.irif.fr/~boutier/mac-crash.html
I was really confused at first. I had to reboot multiple times before I figured out it was my test code and not my hardware dying. After some Googling I found the above link that verified what I was seeing. This bug was only fixed, AFAIK, in macOS 10.12. (I don't have a 10.11 machine to test.) I was testing the code on 10.10, and as of the latest update a couple of days ago 10.10 is still broken AFAIK.The most famous problem was kqueue not supporting pipes, but that was fixed eons ago. There are alot of other problems with their neworking subsystem, though. For example, shutdown() fails if the associated stream has already entered the equivalent state, either because the sender sent RSET/FIN or shutdown was alreayd called; no other implementation does that. If you send a socket descriptor to another process with sendmsg and then immediately exit the process, the receiving process will receive an unuseable file descriptor. There are lots of stupid quirks like this that make writing reliable, high-availability software for macOS very difficult. Fortunately, few people use macOS for HA server stuff, but I like porting my software to other platforms because it helps catch bugs (bugs that, for w'eve reason, stay hidden when running on Linux), and macOS provides a poor signal/noise ratio in that regard.
Where does it say that? I'm running 10.12.1, and the man page for pselect(2) looks like the one from FreeBSD. I could believe that pselect doesn't actually behave as documented, having run into my share of macOS bugs.
> [...] Porting stuff to macOS is about as painful as porting to Solaris or AIX, which is to say not very painful [...] The biggest headaches with macOS are the bugs.
Agreed, though AFAIK all commercial UNIXes are buggy in one way or another, and I don't know if macOS is worse in comparison. Autoconf exists for a reason, even though few if any really like it.
IMPLEMENTATION NOTES
The pselect() function is implemented in the C library as a wrapper
around select().
That means it's not actually compliant. pselect needs to _atomically_ unblock signals so that if any signal handlers are invoked pselect returns EINTR error. User code can't emulate the correct semantics because there's a race between unblocking (i.e. changing the signal mask), checking for signal arrival, and calling select. It's _impossible_ to fix this race without resort to pselect, or by use of system extensions like kqueue on BSD/macOS[1] or signalfd on Linux, which can be tricky. On Solaris you just have to use pselect, or resort to the so-called "pipe trick".So the fact that pselect is a wrapper around select admits that it's not conformant. It's basically useless; worse, it's dangerous because application code calling pselect expecting there won't be a race.
You can see the race with this code, which on 10.10.5 still fails. What should happen is that it exits immediately with OK. What actually happens on macOS is that its pselect wrapper unblocks the signal, which is immediately delivered. But by then we've already checked that interrupted was still 0. It then calls select, which will timeout because it won't be interrupted--the signal was already delivered. On every other platform implementing pselect (which all do it correctly), pselect will always return EINTR because the signal unmasking and delivery happens in the kernel _after_ entering select.
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <sys/select.h>
#include <unistd.h>
#include <err.h>
static int interrupted;
static void
interrupt(int signo)
{
interrupted = signo;
}
int
main(void)
{
struct timespec timeout = { 3, 0 };
sigset_t empty, block;
int n;
sigemptyset(&empty);
sigemptyset(&block);
sigaddset(&block, SIGHUP);
sigprocmask(SIG_BLOCK, &block, NULL);
signal(SIGHUP, &interrupt);
raise(SIGHUP);
while (!interrupted) {
/*
* If pselect does not atomically unblock signals, pselect
* will never be interrupted and we'll lose the signal until
* something else wakes us up AND we remember to check even
* though we never saw EINTR.
*/
n = pselect(0, NULL, NULL, NULL, &timeout, &empty);
if (n == -1 && errno != EINTR) {
err(1, "pselect");
} else if (n == 0) {
errx(1, "timed out");
}
}
if (interrupted != SIGHUP)
errx(1, "wrong signal (got %d, expected %d)",
interrupted, SIGHUP);
puts("OK");
return 0;
}
[1] FWIW, here's a correct implementation of pselect for macOS using kqueue. (https://github.com/wahern/cqueues/blob/snap-20160812/src/cqu...) The only caveat is that creating a kqueue descriptor might fail, and you don't normally expect pselect to fail with EMFILE or ENFILE; it might even make it non-compliant. Except for that caveat, it's a compliant implementation of pselect AFAICT.Anyway, the man page for pselect(2) in 10.12.1 doesn't have that section, and when I run your test program it prints "OK". So it appears that this particular bug was fixed. It only took them 2 years (could be less if it was fixed in 10.11) this time, which was an improvement over their turnaround for fixing the rename(2) bug[0]. :-P
I wish more people subscribed to this - I've banged on about this at previous jobs with little success (even though I've demonstrably caught "mistaken assumption" and other bugs through the exercise.)
STANDARDS The pselect() function conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
But see my link in the other reply to a correct implementation I wrote that relies on kqueue. I even submitted it to Apple years ago along with the bug report.
It's just a matter of momentum... and Apple certainly has that in spades.
I did switch to using MacOS for several years... but am now back on Linux. It's just a better for development for me. But hey... Linux has been my primary workhorse since the 90s... so I am certainly biased. I did give the MacOS bandwagon a try though. :D
I never actually let it run down to 0. It's possible the last 10% would have vanished in 30 minutes instead of ~2 hours like it claimed.
I can certainly believe a Linux machine can get 14hrs. It's just a matter of having a bigger battery, and a processor that will step-down its speed when its not needed.
Citation needed. Some people like the mac UI sure, but there are people who hate it too. People who use a mac only because they have to to develop for iOS or OSX certainly do exist.
I got tired of it in about one year. Now the laptop, which I barely use (my desktop runs circles around it), is running a Linux distribution. More comfortable UI, comparably solid, (usually) seamless software upgrades and better management, more customizable, etc.
http://bomutils.dyndns.org/tutorial.html http://hogliux.github.io/bomutils/tutorial.html
And Scrivener. The OS X variant is a full major version ahead of Windows, and it isn't even supported on Linux.
brew cask install caffeineYou can of course use open or closed source alternatives, but they're fairly shitty in comparison to the mac native tools.
Last time I tried mediafilesegmenter had a dependency on some of the core audio libraries that were missing under Darling.
It's a good first step, though. It'll be interesting to see how well they can get GUI applications running.
It was essentially a hypervisor.
https://sourceforge.net/p/mac-on-linux/code/HEAD/tree/trunk/
Projects like usercorn are already emulating lots of Linux syscalls on non-Linux hosts. Things are even easier if you can ignore the binary emulation and just focus on melding the two different ABIs and APIs.
I used usercorn to try and debug an Android shared lib on macOS. I got some of the SO to correctly execute (full dynamic linking wasn't working) but it did require light patching of usercorn. I would have had less issues if I was emulating a Android guest on Linux host (instead of macOS host) since you're syscall mappings are almost 1:1 then.
>Magenta was my attempt at implementing a mach compatibility layer on top of the Linux kernel.
The 2012 archive.org cache of this page has some details: https://web.archive.org/web/20120619162157/http://crna.cc/ma...
The commit log doesn't look like momentum at all though...
For what it is worth, that is from personal experience. I went through the trouble of re-licensing a script with consent from all contributors from GPL-2 to BSD-2 in a package in the past because of harassment from armchair legal experts. It had been mistakenly marked GPL-2 when it should have been BSD-2 to match OpenRC. It had been included with binaries under the CDDL. There was no incompatibility and the GPL FAQ even talked about the case under mere aggregation, but that did not stop the harassment from the stream of arm chair experts rushing to tell me that I had committed some egregious offense for having the package marked both GPL-2 and CDDL. Relicensing the script to the license it should have had in the first place put an end to it and created one less GPL licensed thing in the world.
Anyway, switching to the LGPL now would be easier than switching later. It only gets harder as a project ages because you start to lose contact with past contributors.
I also want to avoid the inception of businesses providing enhanced Darling for money without releasing the full source code (think Cedega), because in my view, that's akin to a fraud committed on other developers who invested considerable time and didn't ask a dime for it.
>The name Darling is a combination of “Darwin” and “Linux”. >Darwin is the core operating system OS X and iOS build on.
If that's the case, why not Darlin? But then, I'm southern so that's why it makes more sense to me.
Seriously though, i used to think GNU/Linux was just envy of linux' success, but Gnu basically IS OS without a kernel (Herd, where art thou?).
"Orl right darlin' how's about some of these luverly toms? Luverly bag of toms for one pan ten"
The problem with both of these is re-implementing the Core Foundation (only partially open-source; https://en.wikipedia.org/wiki/Foundation_Kit#Major_implement...) & proprietary Cocoa API's that almost all GUI Mac apps use. Wine has done the equivalent for Windows, but so far nobody wants to do all the hard work of bug-for-bug compatibility. Probably because Apple is already becoming irrelevant, and almost every Mac product has a corresponding Windows equivalent.
Those marketplaces are not only places to buy applications. Many applications there are free. They are also distribution channels that help people finding and installing your app.
You got so many nice git clients: Tower, Gitup, GitX etc. There are awesome diff tools like Kaleidoscope.
There are a lot of good tools for keeping all sorts of notes, programming snippets etc. My life is pretty much centered on Ulysses, which has a very good way of organizing and searching for notes.
Linux does of course have vim, emacs, etc but I'd say if you want a more modern feeling editor you got a lot more choices on Mac: TextMate, Sublime, SubEtaEdit, Smultron, Coda, Chocolate etc.
Then there are all sorts of specialized tools, e.g. I use a Dash a lot of looking up developer documentation. Paw is pretty neat for working with REST APIs. Base is great for looking at and manipulating SQLite databases.
Especially for any kind of graphical work, say you got to modify some application or toolbar icons, then you have a lot of great choices on Mac. Not only do you have the big powerful tools like e.g. Photoshop and Affinity Designer, but you to also small neat little tools like Pixen.
It really depends on how long you worked on the platform. I didn't use nearly as many of these tools some years back. But the longer you stay on a platform there more tools you start using as particular needs arise.
I've worked with plenty of colleagues who have used Macs for years, but who aren't really mentally into the whole Mac eco system, and so they often use various cross platform tools, websites etc before they actually explore the rich collection of desktop apps available on the Mac.
Unlikely to ever happen though. You'd have to run the MacOS kernel and Mach concurrent with the Linux kernel without virtualization (something I am not sure is possible). At that point, you might as well just bite the bullet and run a VM.
I have a list of links on the subject: https://docs.google.com/document/d/1VwLJqgc2VkD-EZnMzSFmZRq0...
* Is it usable for dev work -> yes * Is it like using a mac -> no
Usually When I'm on windows, I generally just run a Ubuntu VM and live inside it.
That is not something you can generally do on an OSX VM.
(just to add, my opinions based on my experience - your milage may wary)
I am going to miss a regular USB port and MagSafe.
https://www.amazon.com/Griffin-BreakSafe-Breakaway-Chromeboo...
I haven't tried it myself, so it probably does not feel as fast and fluid as MagSafe.
- Use Safari
- Avoid web based desktop app like Atom, Slack, etc.
- Limit maximum of 3 app open, e.g. Xcode + iTerm + Safari. Bonus: I can focus my mind on the things that I need to do.
- Limit maximum of 3 open tabs on my Safari.
Great, so I can run OS X's shitty versions of Linux utilities... on Linux.