A framework for type safe exchange of mobile code

  • Authors:
  • Sonia Fagorzi;Elena Zucca

  • Affiliations:
  • DISI, Università di Genova, Genova, Italy;DISI, Università di Genova, Genova, Italy

  • Venue:
  • TGC'06 Proceedings of the 2nd international conference on Trustworthy global computing
  • Year:
  • 2006

Quantified Score

Hi-index 0.01

Visualization

Abstract

We present a simple parametric calculus of processes which exchange mobile code, where type safety is ensured by a combination of static and dynamic checks. That is, internal consistency of each process is locally verified before starting execution, by only relying on type assumptions on missing code; then, at execution time, when locally type-checked code is sent from a process to another, a run-time check based on a subtyping relation ensures that it can be successfully received, without requiring to inspect code again. The calculus is defined in a parametric way, that is, we do not fix some ingredients which can vary depending on the specific language or system. Notably, we abstract away from the specific nature of the code to be exchanged, and of the static and dynamic checks. We formalize the notion of type safety in our general framework and provide sufficient conditions on the above ingredients which guarantee this property. We illustrate our approach first on a simple lambda-calculus with records, and then on a calculus of mixin modules which generalizes the previous one.