Region-Based Memory Management

Published: June 22, 2022, 3 a.m.

b'

I discuss the idea of statically typed region-based memory management, proposed by Tofte and Talpin.\\xa0 The idea is to allow programmers to declare explicitly the region from which to satisfy individual allocation requests.\\xa0 Regions are created in a statically scoped way, so that after execution leaves the body of the region-creation construct, the entire region may be deallocated.\\xa0 Type inference is used to make sure that no dangling pointers are dereferenced (after the associated region is deallocated).\\xa0 This\\xa0journal paper about the idea is not easy reading, but has a lot of good explanations in and around all the technicalities.\\xa0 Even better, I found, is this paper about region-based memory management in Cyclone.\\xa0 There are lots of intuitive explanations of the ideas, and not so much gory technicality.

'