News for hackers. Stuff that matters.
Re:LLVM's Clang Successfully Self-Hosts by jey on Friday February 05, 2010 @12:34AM (#1102789)
It's truly excellently written C++ code, and they don't go nuts with fancy C++ voodoo template meta-trans-factory-programming tricks or whatnot. And have you seen what happens when you write a huge compiler in C? This: http://gcc.gnu.org/wiki/reload And I don't think you can reasonably argue that GCC's hackers are sub-par either. ;-)

Language features for abstraction and encapsulation are pretty important for something that huge.

Re:LLVM's Clang Successfully Self-Hosts by krakensden on Friday February 05, 2010 @01:29AM (#1102895)
I'd argue that there is an age factor at play- GCC is older, designed under different (ie, much more stringent with regards to resources) constraints.

GCC also has a perennial problem attracting and managing developers, which LLVM seems to have avoided.

Re:LLVM's Clang Successfully Self-Hosts by jey on Friday February 05, 2010 @07:26AM (#1103370)
It's really not the age or resources that hamper it (from experience hacking it). Well, OK, the age does matter -- but only because it's C. It wouldn't have been so bad if they didn't have to reinvent basic things. GCC has its own garbage collector, a set of bizzare hacks to replace inheritance, amongst other atrocities. None of these have to do with resource constraints, and nearly all have to do with the low-level nature of C.
Re:LLVM's Clang Successfully Self-Hosts by beza1e1 on Friday February 05, 2010 @01:57AM (#1102954)
I'm hacking on a compiler written in C, which isn't worse than LLVM: http://libfirm.org
Re:LLVM's Clang Successfully Self-Hosts by eru on Friday February 05, 2010 @06:44AM (#1103309)
Why do a compiler in C at all? I mean, why should a low-level systems language (that values speed above everything) be particularly suited to transforming programs from one language into another?
Re:LLVM's Clang Successfully Self-Hosts by nvoorhies on Friday February 05, 2010 @01:04PM (#1104269)
Because this allows you to compile in places and times where a language with more suitability towards compilation but heavier time or memory needs would be unsuitable.

One example that pops to mind is shader programs on a GPU.

Re:LLVM's Clang Successfully Self-Hosts by eru on Friday February 05, 2010 @03:43PM (#1104763)
Where (and when) would the compiler for the shader run?