zlacker

[return to "My fast zero-allocation webserver using OxCaml"]
1. smartm+tq[view] [source] 2026-02-02 14:06:19
>>noelwe+(OP)
From the article:

> I am also deeply sick and tired of maintaining large Python scripts recently, and crave the modularity and type safety of OCaml.

I can totally relate. Switching from Python to a purely functional language can feel like a rebirth.

◧◩
2. IshKeb+BI[view] [source] 2026-02-02 15:47:00
>>smartm+tq
OCaml isn't pure.
◧◩◪
3. avsm+d41[view] [source] 2026-02-02 17:29:35
>>IshKeb+BI
(author here) it's actually the module system of OCaml that's amazing for large-scale code, not the effects. I just find that after a certain scale, being able to manipulate module signatures independently makes refactoring of large projects a breeze.

Meanwhile, in Python, I just haven't figured out how to effectively do the same (even with uv ruff and other affordances) without writing a ton of tests. I'm sure it's possible, but OCaml's spoilt me enough that I don't want to have to learn it any more :-)

[go to top]