Re:Supporting Linux kernel development in Rust
by bryanlarsen on Tuesday September 01, 2020 @10:50AM
(#24342374)
Sure, if you have the resources of Apple, you can make other choices. I'd be willing to bet that Apple has spent more than $1B on clang, llvm, tooling, testing, integration, et cetera.
Re:Supporting Linux kernel development in Rust
by ptman on Tuesday September 01, 2020 @03:55PM
(#24346281)
How much resources did they actually have in 2005?
Re:Supporting Linux kernel development in Rust
by stefan_ on Tuesday September 01, 2020 @04:55PM
(#24346956)
That's the wrong question. How much resources does someone have who decides to write an entirely new compiler when a working one already exists?
Of course the answer then reveals that this was only possible because there was comfy GCC to fall back on all along. They started in 2005, Clang became default in XCode with the 4.2 release in October 2011.
Ask yourself if you can sell your manager on 6 years of effort for no functional difference, likely even inferior.
But that's the exact choice Apple faced in 2005 and they did not choose gcc. They paid Chris Lattner and his team to develop an alternative compiler. Excerpt from wikipedia[1]:
>"Finally, GCC is licensed under the terms of GNU General Public License (GPL) version 3, which requires developers who distribute extensions for, or modified versions of, GCC to make their source code available, whereas LLVM has a BSD-like license which does not have such a requirement.
>Apple chose to develop a new compiler front end from scratch, supporting C, Objective-C and C++. This "clang" project was open-sourced in July 2007."
For some reason, the enthusiastic focus on the benefits of GPL principles seems to ignore the actual game theoretic behavior of actors in the real world to not choose GPL at all.
[1] https://en.wikipedia.org/wiki/Clang#Background