News for hackers. Stuff that matters.
Re:Teaching Compilers Backward by JoelMcCracken on Tuesday February 23, 2021 @10:42AM (#26238545)
This is what happened in my compilers class. We spent, like, the whole thing talking about grammars etc. Which is mind-numbingly boring (to me), and especially given a significant number of industry parsers are hand-rolled/recursive descent style, its not terribly useful information.
Re:Teaching Compilers Backward by ahartmetz on Tuesday February 23, 2021 @12:59PM (#26240442)
Same here, at FU Berlin. We spent several weeks on LR and LALR parsers and such and, IIRC, even more than a week on regular expressions. Somehow we talked about two-address and three-address instructions, but never seemed to do any code generation, and certainly no optimization. It was very disappointing.
Re:Teaching Compilers Backward by Nohortax on Tuesday February 23, 2021 @01:29PM (#26240834)
I agree
Re:Teaching Compilers Backward by JoelMcCracken on Tuesday February 23, 2021 @11:13AM (#26238993)
At the moment, some of us in the PGH FP group are working through https://www.cs.cmu.edu/~rwh/pfpl/, and so far I vastly prefer it. It is math heavy, which I like for various personal reasons which are irrelevant here, but it also skips parsing!