Title of article
Monadic Encapsulation in ML
Author/Authors
Semmelroth، MUey نويسنده , , Sabry، Amr نويسنده ,
Issue Information
روزنامه با شماره پیاپی سال 1999
Pages
-7
From page
8
To page
0
Abstract
In a programming language with procedures and assignments, it is often important to isolate uses of state to particular program fragments. The frameworks of type, region, and effect inference, and monadic state are technologies that have been used to state and enforce the property that an expression has no visible side-effects. This property has been exploited to justify the deallocation of memory regions despite the presence of dangling pointers. Starting from an idea developed in the context of monadic state in Haskell, we develop an ML-like language with full assignments and an operator that enforces the encapsulation of effects. Using this language, we formalize and prove the folklore connection between effect masking and monadic encapsulation. Then, by employing a novel set of reductions to deal with dangling pointers, we establish the soundness of the type-based encapsulation with a proof based on a standard subject reduction argument.
Keywords
program representations , data-flow analysis , profile-guided optimizations , register promotion
Journal title
A C M Sigplan (Programming Languages) Sigplan Notices
Serial Year
1999
Journal title
A C M Sigplan (Programming Languages) Sigplan Notices
Record number
17019
Link To Document