News for hackers. Stuff that matters.
Re:C++ Grandmaster Certification by wglb on Friday February 01, 2013 @11:30AM (#5151689)
I can't argue with your "hugely out of date" note. It is likely that I am also out of date, not having written compilers since the mid-80s.

Do you have an opinion about the Holub book? Also I have a collection of Davidson papers about code generation that I haven't looked at since back then.

Re:C++ Grandmaster Certification by Locke1689 on Friday February 01, 2013 @12:42PM (#5152140)
Unless you need to for speed or compat reasons, I don't like writing parsers in C.

Remember, a compiler is a translator from text to (often)text. You're going to be dealing with a lot of strings and probably allocations for your AST. You should think about using a language which doesn't make string manipulation and memory management like pulling teeth.

In general, I'd say the ML family is best for writing a general-purpose compiler. SML even gives your compiler a formal semantics for free.