Why isn’t Lisp more widely used in web development?
You’d love to make a site in Racket, the hottest Lisp out there. The Racket developers have built up a truly impressive system that’s a real pleasure to use.
All the ingredients appear to be there:
Built in web-server? Check.
High-quality, thorough documentation? Check and check.
A Lisp that feels like it comes from the future? Oh yeah.
But there’s precious little guidance out there on how to make real-world web sites with the Racket web server.
Sure, the official documentation contains a handful of simple examples. They’re a good start. But you’re not sure how to move from them to making a more complex site. There’s a big gap.
Maybe you start to suspect that Racket’s HTTP server is just a fancy toy.
Maybe you’ve even given up on the idea of hacking the web in Lisp.
That would be a real shame, because the Racket web server—while fairly lean compared with other web frameworks out there—is powerful and flexible.
And when you combine Racket’s HTTP server with the cutting-edge features of Racket, we’re talking about a system that web developers can drool over.
Even if you’re new to the web, Racket’s direct approach gives you a delightful way to dip your toes in without getting bogged down in a bazillion different frameworks and dependencies.
Server: Racket is an ebook all about real-world web development with the Racket HTTP server.
We will build take on the battery of problems faced by web developers who want to hack the web in Racket. You’ll find out how to solve problems that the official Racket documentation doesn’t talk about (not in detail, anyway, and not in any full-length tutorial way).
In 184 pages, we’ll dig in to these web development topics and see how to deal with them in Racket:
Working with HTTP requests and responses entirely within Racket: no external systems, and using only modules that come standard with Racket.
Where we begin to connect to specialized systems running outside of Racket and use specialized packages that aren’t included in a standard Racket installation.
The ebook is in PDF format, with Racket starter code—fully-functioning mini-sites—illustrating how these topics can be tackled with Racket, for nearly every chapter.
Server: Racket was essential reading as I built my first e-commerce site from scratch with Racket. It’s a terrific, practical book with lots of useful ideas and examples.
Chapter 1, In the beginning there was request? → response?, can be viewed here.
Use the button below to purchase the ebook:
I’m Jesse Alama. I’ve been hacking Scheme and Lisp since 1996. And I love building web sites. I’m a full-stack developer by day. (And by night, too.) I write about these topics over at
lisp.sh. I made the Argo (JSON Schema validator), json-pointer (RFC 6901—JSON Pointer), and uri-template (RFC 6570—URI Template) packages for Racket. I’m the author of the entry on the lambda calculus in the Stanford Encyclopedia of Philosophy and have worked as a researcher in mathematics and computer science, primarily in automated theorem proving.
In my view, Racket has a lot of potential for shaping how we develop for the web. The flexibility and power of Racket is well-suited to taking on the web’s thorny problems.
I’m happy to share with you what I’ve learned so far about making web sites using Racket, a truly world-class Lisp.