| CARVIEW |
- Home
- >Journals
- >Journal of Functional Programming
- >Volume 18 Issue 4
- >Dynamic rebinding for marshalling and update, via redex-time...
- English
- Français
Article contents
Dynamic rebinding for marshalling and update, via redex-time and destruct-time reduction
Published online by Cambridge University Press: 17 October 2007
- PETER SEWELL
- Affiliation: University of Cambridge (e-mail: Peter.Sewell@cl.cam.ac.uk)
- GARETH STOYLE
- Affiliation: University of Cambridge (e-mail: gareth@almostlogical.org)
- MICHAEL HICKS
- Affiliation: University of Maryland, College Park (e-mail: mwh@cs.umd.edu)
- GAVIN BIERMAN
- Affiliation: Microsoft Research, Cambridge (e-mail: gmb@microsoft.com)
- KEITH WANSBROUGH
- Affiliation: Data Connection Ltd., Edinburgh (e-mail: Keith.Wansbrough@lochan.org)
Abstract
Most programming languages adopt static binding, but for distributed programming an exclusive reliance on static binding is too restrictive: dynamic binding is required in various guises, for example, when a marshalled value is received from the network, containing identifiers that must be rebound to local resources. Typically, it is provided only by ad hoc mechanisms that lack clean semantics. In this paper, we adopt a foundational approach, developing core dynamic rebinding mechanisms as extensions to the simply typed call-by-value λ calculus. To do so, we must first explore refinements of the call-by-value reduction strategy that delay instantiation, to ensure computations make use of the most recent versions of rebound definitions. We introduce redex-time and destruct-time strategies. The latter forms the basis for a λmarsh calculus that supports dynamic rebinding of marshalled values, while remaining as far as possible statically typed. We sketch an extension of λmarsh with concurrency and communication, giving examples showing how wrappers for encapsulating untrusted code can be expressed. Finally, we show that a high-level semantics for dynamic updating can also be based on the destruct-time strategy, defining a λupdate calculus with simple primitives to provide type-safe updating of running code. We show how the ideas of this simple calculus extend to more real-world, module-level dynamic updating in the style of Erlang. We thereby establish primitives and a common semantic foundation for a variety of real-world dynamic rebinding requirements.
Information
- Type
- Articles
- Information
- Copyright
- Copyright © Cambridge University Press 2007
References
- 4
- Cited by
Cited by
Loading...
Save article to Kindle
To send this article to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about sending to your Kindle. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
- Volume 18, Issue 4
- PETER SEWELL (a1), GARETH STOYLE (a2), MICHAEL HICKS (a3), GAVIN BIERMAN (a4) and KEITH WANSBROUGH (a5)
- DOI: https://doi.org/10.1017/S0956796807006600
Save article to Dropbox
To save this article to your Dropbox account, please select one or more formats and confirm that you agree to abide by our usage policies. If this is the first time you used this feature, you will be asked to authorise Cambridge Core to connect with your Dropbox account. Find out more about saving content to Dropbox.
- Volume 18, Issue 4
- PETER SEWELL (a1), GARETH STOYLE (a2), MICHAEL HICKS (a3), GAVIN BIERMAN (a4) and KEITH WANSBROUGH (a5)
- DOI: https://doi.org/10.1017/S0956796807006600
Save article to Google Drive
To save this article to your Google Drive account, please select one or more formats and confirm that you agree to abide by our usage policies. If this is the first time you used this feature, you will be asked to authorise Cambridge Core to connect with your Google Drive account. Find out more about saving content to Google Drive.
- Volume 18, Issue 4
- PETER SEWELL (a1), GARETH STOYLE (a2), MICHAEL HICKS (a3), GAVIN BIERMAN (a4) and KEITH WANSBROUGH (a5)
- DOI: https://doi.org/10.1017/S0956796807006600
Discussions
No Discussions have been published for this article.