5 ms·
LLVM monoculture? People used to complain about the gcc monoculture, and LLVM hasn’t quite caught up with (the moving target of) gcc. Plus gcc has more front
by gumby 6y ago
LLVM monoculture? People used to complain about the gcc monoculture, and LLVM hasn’t quite caught up with (the moving target of) gcc. Plus gcc has more front ends.
I use them both and appreciate their different strengths. There’s no question that the existence of llvm spurred gcc to improve a lot, and vice versa.
- Ericson2314 6y ago"LLVM monoculture" as in LLVM being the backend for every niche language, not as in LLVM being the only way to compile C.
- pjmlp 6y agoBefore that we had the C monoculture, where the same authors would be generating Assembly like C code (C--) and calling the compiler into it. The most dangerous aspect of this is the cargo cult of not thinking out of the box regarding alternatives.
- da_big_ghey 6y agoI meant LLVM monoculture, not Clang monoculture. All the new languages use LLVM for a backend. (There are, of course, exceptions, but the point stands.)
- Hello71 6y agogcc has more front ends? really? https://gcc.gnu.org/frontends.html https://gcc.gnu.org/frontends.html lists seven bundled frontends and eight third-party frontends, some of which "are very much works in progress", and none of which I have ever heard of anyone using. https://en.wikipedia.org/wiki/LLVM https://en.wikipedia.org/wiki/LLVM lists about twenty-five, most of which I have heard of.
- Gaelan 6y agoPerhaps they mean backends?
- woodruffw 6y agoI believe almost none of the frontends listed in that Wikipedia section are included in the main llvm-project tree. To the best of my knowledge, is only stable in-tree frontend is Clang, with Flang (for Fortran) in-tree but considered WIP. Clang, in turn, only supports C, C++, Obj-C, and Obj-C++, so that's 4 frontend languages. Edit: But yes, as 'Gaelan notes, I think they meant compiler backends.
- Hello71 6y agothat's a different project organization style though. it's like saying that bsd has so much more functionality than linux just because more stuff is bundled. maybe the bsd way makes better software, maybe not, but it would be insane to say that openbsd has "more web server functionality" than debian because openbsd comes with httpd but on debian you have to install one.