Re:Thought Experiment: An Introductory Compilers Class
by seanmcdirmid on Monday February 17, 2020 @08:15PM
(#22352576)
Rather than teach compiler construction, maybe we should instead teach language design with an added implementation component. Compiler construction on its own seems like too dry of a topic for most students, and I say this as a PL PhD. Language design might attract more interest, and provides more context on why you would want to write a compiler in the first place.
[ Parent
| on HN ]
Re:Thought Experiment: An Introductory Compilers Class
by Footpost on Tuesday February 18, 2020 @04:53PM
(#22360777)
That's interesting. What would you teach in the language design part of the course? By the time compilers are taught (2nd or 3rd year undergraduate), most students rarely understand advanced language concepts, whether call/cc, GADTs, higher-kinded types, or type-based lifetime tracking, message-passing vs shared memory parallelism etc, let alone the tradeoffs involved in the design space.
Note also that there is no scientific consensus on what makes for a good programming language.