An Incremental Approach to Compiler Construction[1] by Abdulaziz Ghuloum.
The author presents a very approachable technique for building pedagogical compilers by starting with a tiny subset of the language - a language that can accept integers and print it and incrementally grows it into Scheme. Every step yields a fully working compiler for a progressively expanding subset of Scheme. Every compiler step produces real assembly code that can be assembled and executed directly by the hardware. I've dabbled with compilers for a while now and in my experience I found this to be among the best ways to get people excited about compilers. There is some code available from Nada Amin[2] for the curious and I'm re implementing it from scratch again[3]. 1. http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf 2. https://github.com/namin/inc 3. https://github.com/jaseemabid/inc
I really liked Vlad Zamfir's papers on "correct-by-construction" consensus protocols. What I love about this work is that it unifies traditional BFT consensus with blockchain consensus to make something better than both! Really exciting!
Comments (129) 35 threads
Earlier commentsThe author presents a very approachable technique for building pedagogical compilers by starting with a tiny subset of the language - a language that can accept integers and print it and incrementally grows it into Scheme. Every step yields a fully working compiler for a progressively expanding subset of Scheme. Every compiler step produces real assembly code that can be assembled and executed directly by the hardware.
I've dabbled with compilers for a while now and in my experience I found this to be among the best ways to get people excited about compilers. There is some code available from Nada Amin[2] for the curious and I'm re implementing it from scratch again[3].
1. http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf
2. https://github.com/namin/inc
3. https://github.com/jaseemabid/inc
https://www.cl.cam.ac.uk/~srk31/research/papers/kell17some-p...
https://github.com/WebAssembly/spec/blob/master/papers/pldi2...
Definitely a good read.
Abstract CBC: https://github.com/ethereum/research/blob/master/papers/cbc-...
Casper the friendly GHOST: https://github.com/ethereum/research/blob/master/papers/Casp...
I found the Abstract CBC paper a little easier to understand, as it goes into more detail about the correct-by-construction process.
All comments shown.
Couldn't load more comments. Check your connection and try again.