by geofft · 5y ago · 0 comments
There was a fascinating thread here the other day about how LLVM was offered to the FSF, copyright assignment and all, and that it was rejected: https://news.ycombinator.com/item?id=26535789
LLVM differs from GCC in two major ways. First, nontechnically, it's under a weak copyleft instead of a strong one. Second, technically, it has a modular architecture. There's a libLLVM that you can use to parse programs and do all sorts of transformations on them.
RMS refused to create an equivalent libGCC and even to structure GCC in such a way where maintaining a private fork with a libGCC would be easy, because he feared that proprietary software developers would use GCC's code to handle the hard part of compilation and not free their proprietary extensions. He thought he scored an early victory on this front when he got NeXT to release their Objective-C frontend for GCC publicly and contribute it back. But it was, of all companies, Apple themselves (the effective successor of NeXT) that invested into LLVM.
It turned out that not only is developing a compiler within reach for a proprietary software company, developing a better compiler was easily within reach when freed from the artificial constraint of making it non-modular. LLVM was able to compete with GCC because it had a technically better design that GCC rejected for political reasons. And, ultimately, that technical excellence is now threatening GCC's dominance.
It also turns out that many software projects are willing to license their code freely anyway, without the requirement of strong copyleft. Rust probably would not have been anywhere near as successful if it didn't have libLLVM to build on top of and had to start from scratch. And Rust is under no license obligation from LLVM to be free software, but it is nonetheless free software. Apple continues to contribute many things (though not everything) to LLVM not because they have to, as they did with GCC, but because it's technically better for them to work with the public project.
So RMS's political constraints on GCC were ultimately ineffective for the free software movement, because the very proprietary developers he was worried about found an alternative, and they're releasing code anyway.
RMS being "uncompromising" would be a virtue if he were effective and talented in his choices of where he's uncompromising. But he's not.
(There are other examples of this: the lack of free software strategy for the web because he has an uncompromising refusal to use the web and therefore to learn anything about it; the failure of Ogg Vorbis as a format because of the strong copyleft of its reference implementation, which the GNU website now mentions as a lesson to learn from and avoid; the relative lack of uptake of the AGPL, and the users who would have wanted it like MongoDB and Elastic instead choosing a non-free license; etc.)
Apple didn’t develop LLVM. It was developed at University of Illinois at Urbana-Champaign.
Yet again, Apple had taken something invented somewhere else and made a killing off it.
RMS has a strong political stance and the result is software that has benefited billions in one way or another.
Lack of faults is the worst measure of strength, but it’s cheap for people who have done nothing to throw shade and feel superior.
I'm enjoying rustc very much, thank you! I hope that gcc-rs will catch up soon, but until then, I'm thrilled that the Linux kernel compiles just fine with Clang and there are millions of people running Clang-built kernels, because it means adding rustc into the mix is straightforward.
I'm also enjoying using libLLVM in projects from Numba to llvmpipe. Numba is helping us speed up some serious research computations at my current job, and llvmpipe solved a major practical problem with GNU/Linux on the desktop at a previous job. Those projects could not have been built on top of GCC.
I'm also enjoying all sorts of analysis tools that use libLLVM and libclang (include-what-you-use being a very simple example) even on code that I compile with GCC for legacy reasons. If you look at the linked threads, RMS wants such tools to not exist, or at least to be hard to write and buggy.
> Apple didn’t develop LLVM. It was developed at University of Illinois at Urbana-Champaign.
Not disputing this. Apple didn't develop GCC either. They contributed to both.
Stallman was worried that if he made GCC either permissively-licensed or modular, companies like Apple would privately fork the compiler and not contribute back. He thought it was a vindication when NeXT contributed back their Objective-C frontend, which they were going to keep private until he threatened them with legal action. But UIUC made LLVM both permissively-licensed and modular, and Apple contributes back to it nonetheless, with not even the slightest legal obligation to do so, making a killing while also producing a free software compiler that is superior to GCC.
Everything GNU tried to do by technically hobbling GCC, UIUC actually did by producing a superior product in LLVM. My whole point is that Apple didn't develop LLVM, but that they contributed back to it because they saw a financial advantage in doing so.
> RMS has a strong political stance and the result is software that has benefited billions in one way or another.
Correlation is not causation. I'm not claiming that GCC was unsuccessful; I'm claiming that RMS's strong political stance did not make it so.
And RMS would be the first to argue that mere popularity is not the sign of a software product's success. GCC is supposed to protect a user's freedoms more strongly than LLVM, yet a user is practically more free with LLVM; for instance, I am free to get the AST of my own software. For those of us who believe in the ideals of free software - which includes both me and RMS - this is a sign of a strategy that failed, somewhere, that should prompt some reflection.
Sure, but then that should be used as the argument for removal and the argument should have been made 10 years ago and not now when it is very convenient.
If you look in the linked threads, RMS himself acknowledged in 2015 that not accepting LLVM was a mistake - https://lists.gnu.org/archive/html/emacs-devel/2015-02/msg00... (and he says he didn't even know about the offer, but he doesn't address why he didn't know about the offer). In a functioning organization that cared about its mission, that ought to have triggered, at the least, a "blameless postmortem" about what failed, because allowing a non-free-software-friendly tech company to develop a serious free software competitor to GCC is just about the biggest strategic mistake the FSF (let alone GCC) could have made. (The HURD does work now, but it lost to Linux long ago. So that leaves GNU's flagship projects as just glibc - which is under the LGPL - and emacs, which is hardly core and which many hackers don't even use. The GNU System is at existential risk.)
Why didn't it happen? Why did RMS just say, literally, "Oh well," and that was the end of it?
Who - if anyone - is responsible for making sure that GNU is not extinguished because the world has changed since 1988 and a then-excellent plan did not survive contact with reality? Is it RMS, and why does it seem like asking that question is equivalent to questioning RMS as a person?
There's a really good thread by Luis Villa on the general subject of the FSF's organizational failures here, and typing it to the "founder effect": https://twitter.com/luis_in_brief/status/1374038577059827714
Anyway, you ask about arguments from ten years ago. Ten years ago, as someone new to the free software community who attended in-person events and got drinks with people, I absolutely heard people deeply involved with the movement question particular facets of RMS's leadership (and not just his personal habits) in private. But they didn't say anything publicly, because they knew that criticizing RMS in public would make people see them as no better than a Microsoft shill or an "open source" sellout. If you dared to question whether RMS's leadership of the free software movement or even of any individual GNU project was effective, you'd be the person trying to compromise RMS's uncompromising views.
So that leaves the current argument - that RMS's attitude is harming the project, as opposed to his specific technical or political decisions. Were it not for his attitude, those decisions could have been corrected by people better-equipped to analyze the specific situation than RMS. And were those decisions corrected, there would be no need to remove him. The need to remove him is the inability to safely criticize his decisions, i.e., his attitude and leadership style, which is what's at issue now.
That's not why everyone wants him gone right now, and whether the eventual outcome would be the same, reasons matter, and the precedents we as a civilization set through processes and outcomes we allow to be seen as a legitimate way to do things matters.
https://sterling-archermedes.github.io/
None of the issues brought up in connection with the controversy that came to a head with Minsky were grounded in truth, at all. The FSF would lose massive credibility by abandoning a visionary founder who did nothing wrong. For heaven sake, if you've already have a slam dunk case, you don't need to descend to the level of making up excuses or slandering someone to get them out. Speak up to authority, but be truthful, honest, and right. Don't wait until the backstabbing is good, and turn them into pincushions. Doing that taints the movement, because no one wants to work with a group of people who get rid of someone like that. It's cowardly, and wrong, in every way imaginable.
I think precedents matter, and being truthful, honest, and right is important. That's why I think that the GCC Steering Committee should evaluate this request on its own merits, and not by saying, well, some journalists wanted to cancel Stallman for other reasons, and they're wrong, so we will refuse any argument about Stallman. Each argument should stand or fall on its own.
You seem to have misunderstood the goals of RMS, GCC, and the GNU project. It was never about creating "the best" compiler (if there can ever be a "best" of everything). The goal was and is to create the "best" Free Software compiler.
It's great that the currently openly released version of LLVM is of great quality. However, exactly because this project does not have "RMS's political constraints" (as you write), there is no guarantee that this will continue to be so.
I'm not claiming the goal is to produce the best compiler. In fact, I do believe it's a danger that LLVM is not copyleft, because there's no guarantee of people contributing back improvements. But I'm worried that because of GCC's design choices, people won't contribute improvements to it either, the way Apple stopped contributing to GCC. And I'm concerned that the free software philosophy has no explanation for why Apple is contributing to LLVM despite LLVM making all the "wrong" choices. I do still believe in the philosophy, but it is making me wonder if I should, because we have 30+ years of data that seemingly don't line up with its predictions.
LLVM is still free software, despite not being copyleft, and if at all one can define the "best" free software compiler, there's a serious argument that LLVM is already there. And it works: it's already being used to compile the Linux kernel on a bunch of Android phones, and http://clang.debian.net can compile 96% of the dostro. It's entirely possible that a major GNU distribution will switch to LLVM in the next few years, because there's no reason not to (it's still free software) and some advantages from it.
Copyleft is a means to an end - gaining contributions and preserving user freedom - not an end in and of itself. The GNU Operating System would be of no value if it did not work, for instance, which is why the project set out to build a coherent system instead of just a bunch of interesting code. I agree with you that, in principle, the lack of copyleft on LLVM means we have no guarantee that it will remain a world-class compiler into the future.
But GCC has the copyleft, and it has the non-modular architecture, and we also have no guarantee, empirically, that it will remain a world-class compiler. Its lead is slipping. There are already plenty of things LLVM can do that GCC can't. New languages are being built on top of LLVM, not GCC. The pressure that existed on NeXT to build an Objective-C compiler on top of GCC and release it is gone - and Mozilla built a Rust compiler on top of LLVM and released it without that pressure. So what is the copyleft actually accomplishing?
And if it is accomplishing something important, does GCC have a plan to overtake LLVM and become the compiler of choice for new projects?