News for hackers. Stuff that matters.
Re:Introduction to Functional Programming in OCaml by nickpsecurity on Sunday September 04, 2016 @05:37PM (#12426846)
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

The medium approach might be using linear types like in ATS language:

http://www.ats-lang.org/

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/publications/nictaabstracts/8956....

Hope these give you ideas of how it can be done with what benefits and effort.

There are no comments on this comment yet.