Re:My (very) fast zero-allocation webserver using OxCaml
by NeutralForest on Monday February 02, 2026 @12:37PM
(#46858738)
I don't think it's been integrated in any mainstream language though.
Re:My (very) fast zero-allocation webserver using OxCaml
by johnbender on Monday February 02, 2026 @01:49PM
(#46859655)
https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/line...
Experimental and of course one can debate whether Haskell is mainstream but I figured it merits a mention.
Re:My (very) fast zero-allocation webserver using OxCaml
by DonaldPShimoda on Monday February 02, 2026 @12:54PM
(#46858949)
I think by default Rust uses affine types, but that's about the extent of it.
Re:My (very) fast zero-allocation webserver using OxCaml
by NeutralForest on Monday February 02, 2026 @12:59PM
(#46859011)
I know some research languages are playing around with linear types, I wonder if we'll see it show up in some language or another.
Re:My (very) fast zero-allocation webserver using OxCaml
by boltzmann-brain on Monday February 02, 2026 @02:06PM
(#46859867)
do they allow the following? https://news.ycombinator.com/item?id=46859860
That's exactly what substructural logic/type systems allows you to do. Affine and linear types are one example of substructural type systems, but you can also go further in limiting moves, exchanges/swaps etc. which helps model scenarios where allocation and deallocation must be made explicit.