News for hackers. Stuff that matters.
Re:Killing Off Wasabi – Part 2 by Locke1689 on Thursday July 16, 2015 @07:46PM (#9900567)
In fact, that often even bleeds forward into the front end. For a compiler, you're in this state of actively discarding information. Comments? Don't even lex them. Variable names? Just de Bruijn index them.

FYI, for anyone thinking about writing a production compiler front-end, don't do this, it's a terrible idea.

Re:Killing Off Wasabi – Part 2 by munificent on Friday July 17, 2015 @12:00PM (#9903363)
I think the important bit is to not throw that information away until after you've reported any compile errors. Once you know the code is valid, you can discard that stuff (unless you need it to generate debugging information).
Re:Killing Off Wasabi – Part 2 by Locke1689 on Friday July 17, 2015 @01:13PM (#9903765)
Oh, yes, that's fine. Although by that point you've kind of already spent the time, so it's not going to gain you much by throwing it out.
Re:Killing Off Wasabi – Part 2 by krallja on Friday July 17, 2015 @10:44AM (#9902965)
Because your error messages might be less-than-useful. Not that Wasabi ever had an issue with that. Cough.