Jochen Deister, a lawyer who codes for fun with years of Python experience, shares his journey learning Rust through a 6-week cohort. He built a hand-rolled JSON parser from scratch that benchmarked up to 3.5x faster than CPython's C-accelerated json module. Key highlights include using the Rust compiler's error messages as a guide through a deliberate 78-error refactor, replacing a standard hashmap with a faster alternative after profiling, and integrating the parser with Python via PyO3 bindings. He kept AI tools out of his code entirely, using them only for learning. Rust is now his default language for new projects.

8m read timeFrom belderbos.dev
Post cover image
Table of contents
The gapThe constraints stopped feeling like constraintsHe broke his own code on purposeThe profiler told him where he was wrongWhat changed
59.4K Impressions4 Comments