3 ms·
The basic way to do it is just to allocate and delete things without the safety of a GC. ;) PreScheme did that among other things: https://en.wikipedia.org/wik
by nickpsecurity 10y ago
The basic way to do it is just to allocate and delete things without the safety of a GC. ;) PreScheme did that among other things:
https://en.wikipedia.org/wiki/PreScheme https://en.wikipedia.org/wiki/PreScheme
The medium approach might be using linear types like in ATS language:
http://www.ats-lang.org/ http://www.ats-lang.org/
http://ats-lang.sourceforge.net/PAPER/LDD-plpv07.pdf http://ats-lang.sourceforge.net/PAPER/LDD-plpv07.pdf
The heavyweight approach is integrating one with a theorem prover with C extraction like in COGENT:
https://ts.data61.csiro.au/projects/TS/cogent.pml https://ts.data61.csiro.au/projects/TS/cogent.pml
https://ts.data61.csiro.au/publications/nictaabstracts/8956.pdf https://ts.data61.csiro.au/publications/nictaabstracts/8956....
Hope these give you ideas of how it can be done with what benefits and effort.