For the last 15 years, I regularly code-read interesting projects and write my own notes about code & arch as I go. This time I'm reading @prisma's codebase.
In one word: clever.
Rarely I come across codebases that tick all the boxes and take all the right trade-offs.
with my commercial projects, I usually find "unfair" advantages; eat the cake and have it too.
* Userland API in a malleable programming language and infrastructure code in Rust, you pay no overhead.
* The extremely right tool for the job
* "Payment" with good interop
The prisma codebase is a masterclass in tradeoff taking, code crafts, and developer experience with very little fluff.
It's given me hours of exciting code reading, and many hours more.
For those interested, you can start here: github.com/prisma/prisma-…
But not before you start from scratch here prisma.io/docs/getting-s… and realize all the TS/JS, and tooling, and IDE tools are actually routing back to the core native libquery_engine built in Rust.
• • •
Missing some Tweet in this thread? You can try to
force a refresh