2 ms·
My university requires a class called "Languages and Machines." According to the instructor, it used to be two classes, "Languages" and "Computation." We star
by baddox 16y ago
My university requires a class called "Languages and Machines." According to the instructor, it used to be two classes, "Languages" and "Computation."
We started doing some language fundamentals and comparative analysis of different languages (how basic data types are implemented, structs, closures, etc.). Then we talked about various function calling conventions, beginning with a simple stack machine language and slowly building on that to support recursive calls, etc. By the end, every passing student had written non-trivial programs in at least 3 different languages, and written very simple yet enlightening implementations of the basic components of compilers (lexer/parser, AST, code generation, basic optimization, etc.).
I would've preferred a full-blown compilers course, but that class was still my favorite CS class.