What is Mezzo?

(Description shamelessly stolen from a paper abstract).

We present the design of Mezzo, a programming language in the ML tradition, which places strong emphasis on the control of aliasing and access to mutable memory. A balance between simplicity and expressiveness is achieved by marrying a static discipline of permissions and a dynamic mechanism of adoption and abandon.

More information about Mezzo

Mezzo is designed by François Pottier and Jonathan Protzenko. The language has been formalized using the Coq proof assistant. We currently have a prototype implementation of a type-checker. We have several papers, abstracts and presentations that describe the language. Since the language is always in flux, it is best to refer to the most recent publication.

Some reading

Papers

We currently have two papers that are relevant to the current state of the Mezzo project. The first one is about the Coq formalization, and the second one is about the language from a more general perspective.

  • François Pottier. Type soundness for Core Mezzo. Unpublished, January 2013. [ bib | PDF | abstract ]
  • François Pottier and Jonathan Protzenko. Programming with permissions in Mezzo. Submitted, March 2013. [ bib | abstract | PDF ]

Blog posts

We have a blog at Gallium, and there are a few blog posts there about the Mezzo programming language.

  • Jonathan Protzenko. An introduction to Mezzo.HTML ]
  • Jonathan Protzenko. An introduction to Mezzo, continued.HTML ]

Talks

The talks feature some detailed examples which are type-checked step-by-step, listing the set of available permissions at each step.

  • Jonathan Protzenko. An introduction to Mezzo (short). ML Workshop, Sep 2012. [ PDF | YouTube ]
  • Jonathan Protzenko. An introduction to MezzoPDF ]

Downloads

Demos

Sample programs

We showcase here some programs written using Mezzo. More code samples are available in the prototype's source code, in the corelib, stdlib and tests directories.

Graphical error messages with graphs

The type-checker has a feature where it can dump a graphical representation of its state to help understand a type error, or understand how a merge conflict was resolved. We provide a gallery of such dumps. Warning: works only on recent Firefox versions (I'm using ECMAScript 6 features).