4 ms·
> Their move from GCC to clang is no coincidence. Erm... what? Clang has already been ported to Windows (and other platforms). Their move from GCC to clang com
by masklinn 16y ago
> Their move from GCC to clang is no coincidence.
Erm... what? Clang has already been ported to Windows (and other platforms). Their move from GCC to clang comes from GCC sucking goat's balls at error reporting and being integrated into an IDE. You might want to note Apple produces an IDE so that's kind-of a big deal for them, and a big reason for the existence of LLVM and related technologies (Clang, LLDB, ...) is very much that they can be used as libraries and easily integrated into tools.
Seriously, you should be careful, your anti-apple-tag shows a bit too heavily in that comment.
- rbanffy 16y agoClang/LLVM is BSD while GCC is GPL. That means Apple can extend them all they want without ever giving you, or their competition, any sources. If they ever perceive a threat from their competition, Clang/LLVM provides a lot more maneuvering space than GCC ever would. And yes, GCC is a very hard thing to integrate into tools and it's that way by design.
- lemming 16y agoAnd yes, GCC is a very hard thing to integrate into tools and it's that way by design. Any reference for that claim? This would seem to be an absurd design decision. It's more work to design this way but the benefits are enormous.
- Someone 16y agohttp://gcc.gnu.org/wiki/GCC_Plugins http://gcc.gnu.org/wiki/GCC_Plugins gives some background.
- Hemospectrum 16y agoGCC has always been a centerpiece in the plan for the "viralization" of the GPL, and support for its role in this plan has always driven design decisions in GCC. This policy has caused a lot of headaches even just within the free software community (eg. http://lwn.net/Articles/343608/ http://lwn.net/Articles/343608/). I can't find a citation for this at the moment, but RMS has said on several occasions that GCC has to be difficult to integrate into other tools just for the sake of pushing the GPL. For example, this was his explanation for why improvements to GCC's intermediate representation formats (GIMPLE and friends) were refused for a long time.
- stcredzero 16y ago...RMS has said on several occasions that GCC has to be difficult to integrate into other tools just for the sake of pushing the GPL. For example, this was his explanation for why improvements to GCC's intermediate representation formats (GIMPLE and friends) were refused for a long time. Weird. Though not as bad as the worst of Microsoft's shenanigans, this strikes me as in the same class of uncivil moves that the FSF complains about proprietary software vendors pulling.
- rbanffy 16y ago> this strikes me as in the same class of uncivil moves that the FSF complains about proprietary software vendors pulling Why? Did you buy a copy of GCC?
- stcredzero 16y agoMaking your software hard to interface with is making it less open. It's the same sort of move as making your word processor use an incompletely documented binary format.
- rbanffy 16y ago> Making your software hard to interface with is making it less open We are using two different definitions of "open". Back in the 80's Unix was considered "open" because you could compile a program for various flavors and the various flavors could share data on the same network (contrary to other platforms of the time). GCC is open not because it runs on many platforms, but because you can freely inspect, change it and redistribute it. Those are two completely different meanings.
- stcredzero 16y agoThese are both important. Sometimes the letter of the law is convenient. Needing to resort to the letter of the law is not "open" -- a 3rd meaning!
- masklinn 16y ago> That means Apple can extend them all they want without ever giving you, or their competition, any sources. It mostly means that they can use the libraries without having to open-source Xcode itself. A compiler is not exactly a competitive advantage for a company as big as Apple. > And yes, GCC is a very hard thing to integrate into tools and it's that way by design. Uh yes and?
- rbanffy 16y ago> It mostly means that they can use the libraries without having to open-source Xcode itself. LGPL would be fine for that.
- masklinn 16y agoYeah, but why bother? It's not like Apple has any reason to go LGPL (and actually, now that I looked it up Clang seems to use the same license as LLVM — which makes sense — and that's the University of Illinois/NCSA Open Source License not the 3-clauses BSD, which again makes sense considering LLVM got started at UIUC, so it's not even Apple who decided on the license of the LLVM suite and related tools, they got into LLVM years after the project started and just used the same license for the stuff they built on/around LLVM)
- rbanffy 16y agohttp://en.wikipedia.org/wiki/University_of_Illinois/NCSA_Open_Source_License http://en.wikipedia.org/wiki/University_of_Illinois/NCSA_Ope... Looks a lot like a 3-clause BSD, but it's a cross between MIT and BSD. The point on LGPL is that if GCC were LGPL, Apple would be able to link it to Xcode.
- rbanffy 16y agoOn an afterthought, I wonder how much patent protection clang/llvm's license provide for downstream users.
- Tamerlin 16y ago"A compiler is not exactly a competitive advantage for a company as big as Apple." Apple might not make money directly with its compiler, but for its 3rd party developers to be stuck with a mediocre compiler is definitely a disadvantage for Apple. Hypothetical: The hardware under the hood is identical to that of a Dell. Compare an application written for both, but the one running on the Dell uses Intel's highly optimized compiler while Apple uses one that's not tuned for any particular platform, and therefore performs somewhat poorly on x86. Result: Apple has a 20% performance deficit. Now say that application is Photorealistic RenderMan or Cinema4D or Modo. That 20% performance deficit, that has nothing to do with the hardware, just created a significant cost disadvantage for a mac user -- to implement a renderfarm, the mac adds either 20% in rendering time, or 20% in extra hardware costs to offset the rendering time (which ends up costing more still in logistics). Result? Apple would lose a potentially non-trivial sale. Having an optimized in-house compiler would probably also help to improve OpenGL performance on the mac -- because odds are the entire OS is compiled with the same compiler... Though it may not be a significant direct revenue generator, having a good compiler would probably still be very beneficial for Apple AND its customers, not to mention developers.
- calloc 16y agoI would like to point out that Apple employs the guy that builds LLVM/clang and all those projects and yet they are still releasing the source code and everything out there for the public to use.
- moxiemk1 16y agoMy appologies for accidental down vote instead of up vote. :(
- calloc 16y agoOh, I think I'll live :-). Apology accepted! Cheers mate!
- rbanffy 16y ago> Apple employs the guy that builds LLVM/clang Curious. Is the copyright Apple's?
- housel 16y agoThe copyright belongs to each contributor: http://llvm.org/docs/DeveloperPolicy.html#copyright http://llvm.org/docs/DeveloperPolicy.html#copyright