Re: CompilerDev Wiki/Forum?
Posted: Sat Mar 26, 2016 12:28 pm
Yes, but you have to remember that most of the students taking the course are never going to work on compilers anyway; an undergrad course may seen one student in ten years who is actually looking to write a real compiler. The course is primarily geared towards students trying to understand enough about compilers to work with them effectively and understand what they are doing, not ones going into compiler development themselves, and most of them, if they ever use the techniques learned in the course at all, will use them in a context far removed from compiler and language development (e.g., applying a FSM as a recognizer in a webservice protocol implementation).embryo2 wrote:They lack the foundation. And all the stuff without sound base just bury them deep enough. That's why they won't move further in the field.Schol-R-LEA wrote:Even as rushed and truncated as this was, most of the students were lost after week one.
The reasons compiler dev is taught as a practical course but OS dev isn't are,
- it is just barely feasible for an individual student to write a simple recursive-descent expression parser in the time allowed for an undergrad course, whereas even just one part of an OS (say, the scheduler) would take concerted effort by the whole classroom with no time for anything else (note that most 'practical' OS courses aren't writing an OS, they are studying and tweaking the source code of an existing one)
- operating systems, even at the kernel level, have a lot of entry and exit points in their interface, so it is possible to show how they are used in order to elucidate how they work, whereas compilers are more or less black boxes from the users' perspective
- teaching compiler development is more amenable to a linear, step by step approach than OS dev is
- the existence of a solid theoretical grounding for two parts of compiler design (lexical analysis and parsing) which, while tricky, can be understood by novice programmers, means that it is feasible to have the code written by the students, whereas the parts of OS dev that have any mathematical grounding at all (scheduling, primarily) are too esoteric for a student not looking to work in the field to be expected to bother with
- The techniques used in lexical analysis and parsing have a lot more applications in other areas than, say, scheduling or memory allocation.