Compiling a Lazy Language in 1,000 words
jozefg.bitbucket.org
jozefg.bitbucket.org
The compiler fledgeling I work on only knows Booleans & complex numbers and still manages type inference without unification. But then, it's not a full language, just a better numeric calculator. These articles are welcome input for coming up with improvements & extensions...
Be careful with writing that compiler, I decided to add a type system to my hobby language a while back and now I'm doing research in type theory. It's a slippery slope.