Re:The School of Wirth
by Koshkin on Sunday March 14, 2021 @06:50PM
(#26460285)
One of the nice things about Oberon-07 is that the compiler I’ve played with could compile itself and the standard library all in a tiny fraction of a second.
[ Parent
| on HN ]
When I benchmarked oberonc [0], an oberon-07 self-hosting compiler for the JVM, it took about 100 ms with a hot VM on a old Intel i5 @ 2.80GHz. That compiler follows the same one-pass compilation approach.
I take a look at the list and found this:
https://github.com/prospero78/Oberon07ru
Looks interesting. I wonder how hard/easy to port this to Linux/Mac, for example.
I think Krotov’s is the one that I have tried. The package includes (or used to include) a simple IDE (a code editor) also written in Oberon, which provides another good example.
https://github.com/AntKrotov/oberon-07-compiler
Linux seems to be supported.
If you are looking for a Oberon compiler that is easy to port then you could consider OBNC.
The compiler is written in C and should compile on many POSIX compatible systems. Works like a charm on the Pinebook Pro for example.
Re:The School of Wirth
by amedvednikov on Monday March 15, 2021 @12:09AM
(#26462549)
V compiles itself in 150 ms on my machine.
0.6 seconds on a free tier AWS instance: