Lisp Compiler Optimizations
I recently added some optimizations to my compiler that turns Lisp into JavaScript.The features I added are constant folding and propagation, and dead-code elimination, which work together to produce smaller programs that do less work.I chose these features by reading the wiki page for optimizing compiler and picking a few that I thought I could implement in a night or two. Excluding tests, this required adding ~200 lines of additional Rust code to my compiler.Constant propagation involves remov...
Read more at healeycodes.com