r/linux • u/bad_at_scala1 • Sep 23 '14
ELI5: Why do software developers support Mac but not Linux?
I've never understood this, aren't they already porting it to a Unix environment and porting it to a new machine? Even in the realm of developer software, you find a lot of software that is Windows & Mac only. Such as Source Tree which is by far the best Git GUI app I've ever used.
39
Upvotes
47
u/kmeisthax Sep 24 '14
There's two argument forks here: business and technical.
On the business end, there is no good marketplace for proprietary software on GNU/Linux, and quite frankly most of the people in the community would like it to stay that way. Steam is changing this a bit, but most people would prefer using it to buy games rather than software. Even though both of those types of programs are proprietary, games are married to art in such a way that it occupies a different area of one's headspace from production-grade software. Simply put, most people are willing to excuse proprietary games but not proprietary tools.
Going a bit further, this means the community is much more willing to write Free replacements for those tools and they tend to be supported best on GNU/Linux and other Free Software operating systems. Additionally, we've had "app stores" for much longer than the iPhone did, except all the software is free and you can literally get production-quality everything but a video editor for the effort of typing an apt-get command. From a business perspective, why the hell would Adobe bother to port and support Illustrator on Linux when Inkscape is both cheaper and arguably better?
On the technical end, GNU/Linux doesn't have an API, they have a handful of competing widget toolkits that provide no guarantees about visual appearance. You might port your app to run on GTK and find that anyone using a KDE-centric distro gets an app that looks nothing like anything else on their system. (Or vice versa for QT and GNOME/Unity-centric distros) This means that you will either spend more time maintaining two "Linux ports" to make sure you look good on everything, or you just throw your hands up in the air, support your preferred toolkit, and hope nobody uses your app on anything other than Ubuntu.
Windows has the same problem, BTW, except that it's all one vendor hawking multiple competing solutions to the same problem, half of which aren't maintained anymore without any indication as to what's the preferred technology. This is because Windows manufactures new APIs constantly in order to monopolize developer headspace and stunt interest in competing systems - you spend so much damn time learning Microsoft technology that you don't have room for anything else.
(WinRT APIs are like that, except that you can only use WinRT and nothing else, your apps live in some crazy tablet UI, and you have no access to the desktop or any thing relevant to production technology. Oh and you have to distribute your software through the Microsoft Store to use this API because Adobe or AutoDesk is totally going to give Microsoft 30% of their gross revenue to reach customers that are already dedicated and locked-in to their software. This is why Windows ARM hardware is failing - you can't compile useful apps that will run on it.)
So let's talk about Apple APIs. They, frankly, blow everything else out of the water and are an embarassment to every other UI technology ever invented ever.
For example, high-DPI displays have never been able to get traction in the marketplace for one very important reason - nothing really supports them well. This is because much poorly programmed software relies upon the pixel being an actual unit of measurement, i.e. people assume 20px is going to wind up being some particular size on the screen. So when people started making screens with smaller pixels, UIs got smaller and text got less readable.
So why didn't the iPhone 4, with it's super-fancy "retina display", featuring half-size pixels, render users frustrated with a bunch of ridiculously small and unreadable UIs? Because it lies to you about pixel size. Or, in Apple-speak, "pixels" are actually "points". All of the pixel-valued APIs are now "points"-valued APIs, and they just stick an extra scale transform on the end of the CTM which makes Quartz draw everything twice as big. Bam, instant high-DPI support with zero application developer intervention needed. (Android got DPI scaling right from the start as well, and I believe they take the exact same approach as Apple, but they call it "dips" or "device-independent pixels" instead of "points". Same rose, different name.)
Windows 95 had support for high-DPI displays. But they didn't build it into GDI - application developers were responsible for querying the desktop DPI and drawing larger widgets in response. This is roughly the same thing X11 does, too - and it filters down into all the Linux toolkits as well. Except Linux is worse because there's multiple sources of truth regarding the current DPI. X11 tries to query the monitor EDID for physical size, but it's more often than not you'll get the ASCII encoded, romanized initials of the girlfriend or boyfriend of the person who was working in the factory when they were programming the EDID ROMs. Unity has a user-controllable scale, which updates automatically, but it's some crazy new Ubuntu-specific API that I can't find anywhere. Etc.
Another good example would be Auto Layout. They use a library called Cassowary to provide linear constraint solving. What this means is that you basically declare various properties of your layout as linear equations, and the constraint solver will handle all the crap you'd normally have to do in order to get the layout to work. It can even handle inconsistent constraints, ensuring that high-priority constraints are still met while minimizing how much a lower-priority constraint is broken by.
The result of all of this is that Apple makes it ridiculously easy for developers to build amazing applications by providing one obvious "correct way" to do almost everything, APIs with less ridiculous corner cases, and decent-quality documentation. Frankly, the people who make desktop Linux technologies need to be stealing as much of this as they can.
26
u/mackstann Sep 23 '14
The "unix environment" is not that relevant. The GUI stack on top of that is what games mostly have to deal with, and it is different between OSX and Linux. So, the three platforms really are three different platforms, and each must justify itself with sales revenue.
4
u/crashorbit Sep 24 '14
It's the ratio of potential market to investment in porting.
4
u/[deleted] Sep 24 '14
After my experience with NVIDIA and AMD Linux video drivers, I'm not surprised.
6
u/burtness Sep 23 '14
Both platform have stable apis, good documentation.
5
u/tdammers Sep 23 '14
Maybe you're just looking at the wrong kind of software?
Generally speaking, OS X and Windows are built around binary-distribution proprietary software, while GNU/Linux rely strongly on source-distribution free / free-ish software. Building proprietary software for GNU/Linux is relatively unattractive, because 1) it's difficult, 2) the market is small and not very rewarding, and 3) the target audience is way more diverse, and you need to cater for a lot more different hardware and software configurations. Building free software for OS X and Windows is comparatively easy, although the results tend to look and feel inferior to both their GNU/Linux ports (where they blend into the ecosystem better) and their proprietary competition (which plays the strength of the proprietary OS better).
Bottom line; if you want to make money using the traditional copyright-based business model, GNU/Linux is not interesting. If you want to build free software, GNU/Linux is both more rewarding as an audience and easier to code against.
2
u/[deleted] Sep 24 '14
You are seeing OS X support in a post iOS world. Remember, iOS and OS X use almost idential frameworks and APIs, and they use the same tools. There wasn't always good support for OS X. OS X developer support has trended up with the rise of iOS. 7 or 8 years ago there was a Mac developer scene and ObjC devs were fairly rare. I remember trying to buy an ObjC / Cocoa book in a brick and morter back before iOS - it was impossible. But thanks to iOS there are a lot of developers out there who know ObjC and the Apple toolchain: Xcode and the App Store model. Every iOS developer is a potential Mac developer. There's just a wider audience now.
2
u/reddit_names Sep 24 '14
Money.
4
u/wub_wub Sep 24 '14
Money: OSX market share: ~7%, GNU/Linux market share: ~1.5%.
Number of different distros that need to be supported, compared to basically one OS: http://upload.wikimedia.org/wikipedia/commons/1/1b/Linux_Distribution_Timeline.svg
http://en.wikipedia.org/wiki/OS_X#Versions (10.7 and up are supported iirc).
Those are two biggest factors IMO.
11
u/blackout24 Sep 23 '14 edited Sep 23 '14
Because targeting Linux sucks. Against what do you want to test? With Windows and Mac you develop on this platform and deploy to a controlled platform. With Linux the test matrix is huge due to pointless differences between distros. Distributing software sucks. You're often at the mercy of package maintainers. On Windows you put some nightly installer *.exe on the web. People download it and it will work. Works no matter if people have XP or Win 7 or Win 8 (try that on Linux lol). No need to update your whole system to install it. No need to wait for someone to add it to some kind of repo for your distro. Zero risk of it breaking some other software you're using. How do you expect developers to react to bug reports from some hobby distro? The developers aren't running it. You'll get bug reports despite the software working perfectly on your dev machine, because someone has some wired old version of some lib in combination with something else which introduces the bug.
3
u/[deleted] Sep 24 '14
Because they use Mac.
7
u/DanielFore elementary Founder & CEO Sep 24 '14
Linux is not just a crappy platform for app developers, it isn't a platform at all.
Imagine you're a developer and you want to build an app for "Linux". Which toolkit do you use? Which libraries? Package format? How do you distribute it? How do you make money off it? There's too many unanswered questions. It's not straightforward. Linux is just a kernel, it isn't a complete platform for building modern desktop apps.
Here's the thoughts of the folks that make Sketch, a super awesome vector illustrator that has many designers switching from Adobe Illustrator: http://bohemiancoding.com/sketch/support/faq/02-general/5-windows.html
5
u/compaqdrew Sep 23 '14
Person who passes as a Mac developer here.
The real reason is: money. Mac users pay for software. Windows users pay for software. Linux users don't pay for software. I mean there are some enterprises that license Linux software in blocks and such but Windows/Mac have that as well, plus a wide userbase that shells out $40 for software 3x a year, plus a whole prosumer market that spends $1000/year, plus a whole gaming market, ...
Even worse, Linux users tend to want to clone your software and produce a free alternative (see git vs Bitkeeper). That tends to work out great for Linux, not so great for commercial software developers.
Not to mention some prominent Linux users are vocally hostile to proprietary software development (e.g. RMS) and would like to see nothing better than vendors like SourceTree burned to the ground. Not exactly an eager market.
There are a lot of other reasons for me to choose Win/Mac (hardware support, configuration explosion, APIs) but really all of those could be overcome if indeed Linux users wanted to buy commercial software. For example, to overcome configuration explosion you just hire more QA people. However if Linux users aren't going to pay for those QA people there's no way to do it.
1
u/amfjani Sep 23 '14
http://patrickbrianmooney.tumblr.com/post/62985181564/why-dont-commercial-software-companies-port-programs
1
u/donrhummy Sep 24 '14
You can file a feature request for linux: http://jira.atlassian.com/
1
u/Xanza Sep 24 '14
Mac: Commercial potential.
Linux: Almost everything is open-sourced.
Period.
1
u/Glinux Sep 24 '14
http://0pointer.net/blog/revisiting-how-we-put-together-linux-systems.html
-3
u/bitwize Sep 23 '14
Mac users want to pay for good software; Linux users usually do not.
-6
u/reed17purdue Sep 24 '14
because unix is based on a community of freeware, shareware, and community composition. software developers want to make money. no money in the free realm
-1
u/donrhummy Sep 24 '14
The best opportunity for Linux was Java. Unfortunately, Oracle bought Java and have been steadily ruining it as a platform. If it was run by an organization like Apache, they would have spent time improving its performance and apps written in Java would run just as well on any OS that supported Java.
-14
u/[deleted] Sep 23 '14
Mac users don't know how numbers work, so you can charge them what you want for crappy software. Windoes users click on every shiny button, so often enough they buy something accidentally. Linux users, who would buy and install statically linked software without being forced to at gun point usually do not need anything but a web browser.
-7
u/[deleted] Sep 23 '14 edited Sep 23 '14
git command line interface is actually good enough. git gui's for Linux: qgit, ggit merge tool for Linux: meld
It depends on your market and audience. You can build a Tesla car, but it's difficult to give it away for free. You have to sell it akin to an Apple Desktop Computer and Software. You could however build a small go-cart with an old lawn-mower and give it to some neighbourhood YMCA/UnitedWay non-profit to help the needy. You can't provide for your family when building stuff for free however.
So the next best thing is to find partners that align and complement your services. The result is synergy that can compete with much bigger companies that want too big a piece of the profit pie. Smaller companies will always be more nimble because we can apply effort to a niche market that bigger companies can't commit to with their profit-focused mission. Linux Developers and Linux Users believe that eventually Linux and Open Source Repositories will become more popular than Apple and Microsoft sheerly based on the fact that they better serve the communities by giving more opportunities to the little guy.
-13
u/Philluminati Sep 23 '14
systemd
let me just hop on and off the hate wagon