Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Great job, loved the book. Is there a plan for another one, perhaps this time focusing on compilers?


People have definitely asked for that. I don't think I'd be the best person to write a traditional compiler book. Most of my language experience is in front ends and interpreters. Maybe if I get more back end experience. But, also, I think that topic is fairly well covered by Engineering a Compiler.

I have thought about writing something around type checking. That aspect of compilers feels a little underserved to me. Types and Programming Languages does a brilliant job of talking about designing and understanding type systems. But it's less focused on just sitting down and building a working type checker. Most other compiler books seems to gloss over it quickly so they can rush to the fun back end stuff.

But it's hard because the way you implement the type checker depends so heavily on the underlying type system and those vary widely. Does the type system have subtyping or not? Are generics monomorphized? Etc. So I have no plans to write anything about that any time soon.

Also, between my first two books, I wrote almost every day for about a decade, so taking a nice long break from that has been nice.


Understood. Enjoy your break, you deserved it.


I was hoping you would mention type checking.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: