4 ms·
> Wirth’s main metric for assessing language complexity was how fast the compiler compiles in general and compiles itself. He ditched anything that slowed that
by vidarh 8y ago
> Wirth’s main metric for assessing language complexity was how fast the compiler compiles in general and compiles itself. He ditched anything that slowed that down.
Indeed, one of the old stories about the Oberon compiler (I can't vouch for how strictly he stuck to it) is that optimizations had to "pay for themselves": Once recompiled with the optimization, the compiler needed to compile itself as fast as before the optimization was added.
At least one of his thesis students did write papers on applying other optimizations that had no hope of making it into the standard Oberon compiler for that reason. I believe it was either Michael Brandeis PhD thesis or one of his other papers. But even though his optimization pass was "too costly" it was impressive how small it was given it also beat contemporary versions of gcc in terms of resulting performance.
> https://news.ycombinator.com/item?id=15704806 https://news.ycombinator.com/item?id=15704806
I love diving into old HN threads... Especially seeing my own comments on the top of the page. Less so to have my slow pace on my personal compiler project highlighted on them (apparently a GC was the next step for my Ruby compiler back in 2017 - it's just now sitting in a working state in my home directory; not yet committed). It's definitively not as fast as a Wirth compiler - in large part due to the sheer volume of small objects created. As much as I love to work with Ruby, as a fan of Wirth's work it also makes me want to bang my head through a wall...
- cpeterso 8y agoNiklaus Wirth fans will appreciate the (apparently out of print) book "The School of Niklaus Wirth: The Art of Simplicity", written by some of Wirth's students about his and their research work with languages, operating systems, and the Lilith computer. https://amzn.com/1558607234 https://amzn.com/1558607234
- sitkack 8y agoI own this wonderful book, some of the chapters are available as publicly available papers. Like Compiler Construction - The Art of Niklaus Wirth [1] FFF97 - Oberon in the Real World. [2] [1] https://pdfs.semanticscholar.org/036f/c4effda4bbbe9f6a9ee762df717bd0af1324.pdf https://pdfs.semanticscholar.org/036f/c4effda4bbbe9f6a9ee762... [2] https://www.researchgate.net/publication/221349845_FFF97_-_Oberon_in_the_Real_World https://www.researchgate.net/publication/221349845_FFF97_-_O...
- cpeterso 8y agoThanks! I no longer own this book, so these papers online are a treat. :)