3 ms·
Does this cover memory management?
by aecorredor 8y ago
Does this cover memory management?
- rain1 8y agodoesn't seem to do GC or TCO! I've got those in my scheme https://github.com/rain-1/scheme_interpreter https://github.com/rain-1/scheme_interpreter but it isn't perfect
- shakna 8y agoKinda? Every value has both a constructor that assigns memory, and a destructor that frees it. Every expression also reallocates it's memory as it processes. So memory is managed and doesn't leak, but it doesn't quite fit with what we know as a GC, and could trash performance in some cases. And Tail-Call-Optimisation isn't really touched on.
- nils-m-holm 8y agoIf you excuse the plug: Scheme 9 from Empty Space (https://www.t3x.org/s9book/index.html https://www.t3x.org/s9book/index.html) explains GC, tail call elimination, continuations, macros, bignums, flonums, etc.