zlacker

[return to "My fast zero-allocation webserver using OxCaml"]
1. boltzm+wy[view] [source] 2026-02-02 14:51:30
>>noelwe+(OP)
it's a massive crime that decades into FP, we still don't have a type system that can infer or constrain the amount of copies and allocations a piece of code has. software would be massively better if it did - unnecessary copies and space leaks are some of the most performance-regressing bugs out there and there simply isn't a natural way of unearthing those.
◧◩
2. aseipp+0Y[view] [source] 2026-02-02 16:59:19
>>boltzm+wy
There are ongoing projects like Granule[1] that are exploring more precise resource usage to be captured in types, in this case by way of graded modalities. There is of course still a tension in exposing too much of the implementation details via intensional types. But it's definitely an ongoing avenue of research.

[1] http://granule-project.github.io/granule.html

[go to top]