"Write Yourself a Scheme in 48 Hours: An Introduction to Haskell through Example", Tang (2007)

upload.wikimedia.org/wikipedia

I'm well and truly miffed—until this moment, I'd never come across this little jewel of a free ebook.🤦‍♂️

This book teaches practical #Haskell #programming (like monadic parsing) through an implementation of a large subset of R5RS #Scheme interpreter, all in just 138 pp. An experienced FP #programmer, even one who is unfamiliar with Haskell and Scheme (although I’ve not met such a person), can plough through this text, in one sitting.

It's brilliant!

@AmenZwa My favorite Haskell bookcamp!
Impressive learning-to-length ratio.

@dpwiz I truly admire his tone and style of writing, too. Great stuff, this.

By the way, you might also like Prof. Ranta’s “Implementing Programming Languages” textbook, in which he demonstrates how to use BNFc to implement lever-parser-typer front end. BNFc is the Haskell analogous of Java ANTLR.

Follow

@AmenZwa I'm worried though about BNFC. It feels too much like pleasing the toolchain instead of working on users' needs. Basically this is why we have stuff like semicolons and other redundant syntax -- to make the parsing simpler instead of focusing on ergonomics.

@dpwiz Yup, that’s right. I like Xtext language workbench with full Eclipse integration.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.