News for hackers. Stuff that matters.
Re:GCC switches from C to C++ by thefooest on Wednesday August 15, 2012 @04:42PM (#4388111)
this is apalling. The argumets seem to boil down to "I don't like VEC and how hash-tables are done". Oh and the usual bs about interfaces. The result is that now there is a monstrous dependency (a c++ compiler) in place of something that an undergrad can build for a class (a basic C compiler).

I wonder what rms thinks of this. Too bad he is not calling the shots in gcc anymore.

Re:GCC switches from C to C++ by klodolph on Wednesday August 15, 2012 @05:56PM (#4388459)
It would take a smart undergrad a bit of hand-holding to write a C complier in say, less than a year. (If you can write a C compiler, you should probably be in the Masters' program.)
Re:GCC switches from C to C++ by Jach on Wednesday August 15, 2012 @07:01PM (#4388796)
Many CS undergrads have a compilers class or section of a class for a single semester in either the freshman or sophomore year. Compilers for simple languages like C (simple in an objective sense, mind you) are easy once you understand a few basic concepts. Compilers in general are fairly easy, what's hard is optimization. See for instance this division optimization: http://ridiculousfish.com/blog/posts/labor-of-division-episo... That's just one clever trick, imagine going through a similar amount of work for dozens of different tricks.
Re:GCC switches from C to C++ by lmm on Wednesday August 15, 2012 @06:52PM (#4388742)
A nonoptimizing C compiler is pretty easy (a friend of mine wrote one in high school), and that's all you need to bootstrap GCC.

He didn't even finish his parser for C++ though.

Re:GCC switches from C to C++ by duaneb on Wednesday August 15, 2012 @07:37PM (#4388998)
Strictly speaking, C++03 can't be parsed, only interpreted (into a typed AST); it is not a context free grammar.
Re:GCC switches from C to C++ by klodolph on Friday August 17, 2012 @08:28PM (#4399630)
You can parse languages that are not context-free. "Parse" just means that you figure out the structure of the file, the word has nothing to do with the techniques used.
Re:GCC switches from C to C++ by MaleKitten on Wednesday August 15, 2012 @11:35PM (#4389786)
From what I've seen, a Master's degree is not much more than finishing school for people who went to unremarkable undergraduate programs.