168 karma · joined July 24, 2014
"Wirth’s magnum opus is the quintessential example of Computer Science alternative-history world-building."
Note that Oberon was not only the name of a programming language, it was also the name of an innovative (at that time) operating system. It is possible to program real-world programs today in Oberon depending on the used implementation. For example oberonc [1] is a compiler targeting the JVM and allows you to leverage the JVM ecosystem by invoking Java code (or any other language that compiles to Java bytecode). For more Oberon implementations see [2]
[0] http://blog.fogus.me/2015/04/27/six-works-of-computer-scienc...
[0] https://www.research-collection.ethz.ch/bitstream/handle/20....
BTW I really like the design of Virgil described in "Harmonizing Classes, Functions, Tuples,and Type Parameters in Virgil III", bravo!
[0] https://github.com/lboasso/oberonc/blob/master/doc/Moe00b.pd...
When I read this book I had an hard time running and compiling the source code included. If you want to read the book and try out the example compiler (oberon0), you can follow the instructions here: https://github.com/lboasso/oberon0. You just need a JVM >= 8 and the oberonc compiler: https://github.com/lboasso/oberonc
We often forget this alternative way (with its pros and cons).
Yes, you can write small Oberon-0 programs and compile them with an Oberon-07 compiler, but it is simpler to just use the Oberon-0 compiler from the repo above.
Oberon-0 is too limited to easily bootstrap itself. I wrote oberonc first in Java and then I rewrote it in Oberon-07 for the final bootstrap step. Oberon-0 is a toy subset of the full Oberon-07 language.
If you have a JVM installed, you could use oberonc[0]. I have a local branch where I test that each release of the compiler can compile and run the examples in that book.
[0] https://web.stanford.edu/~ouster/cgi-bin/papers/tcl-usenix.p...
[0] https://web.stanford.edu/~ouster/cgi-bin/papers/tcl-usenix.p...
In particular:
* Ch. 4 "Modules Should Be Deep"
* Ch. 10 "Define Errors Out Of Existence"
* Ch. 20 "Designing for Performance"[0] https://www.amazon.com/Philosophy-Software-Design-John-Ouste...
Initially the project was written in Java, after enough features were working the bootstrap phase could start.
The first Java client jit compiler, was developed by Robert Griesemer (former PhD student of Wirth). The design of the compiler is described in the paper "A compiler for the java hotspot virtual machine", published in the same book: "The School of Niklaus Wirth: The Art of Simplicity".