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 by François Pottier and Thibaut Balabonski. 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.

Mezzo on the web!

Run Mezzo in your browser!

Learn interactively how Mezzo programs are type-checked: first example, second example.

See how Mezzo solves a complex type-checking situation (requires Firefox).

Read the unfinished, boring tutorial!

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.

  • Thibaut Balabonski, François Pottier, and Jonathan Protzenko. Type soundness and race freedom for Mezzo. To appear in FLOPS'14. [ bib | PDF | abstract ]
  • Armaël Guéneau, François Pottier, and Jonathan Protzenko. The ins and outs of iteration in Mezzo. HOPE'13. [ bib | PDF ]
  • François Pottier and Jonathan Protzenko. Programming with permissions in Mezzo. ICFP'13. Long version updated May 2013. [ bib | abstract | PDF | PDF (long) ]

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. The implementation of Mezzo. IFL'13. [ PDF ]
  • Jonathan Protzenko. Why design a new programming language?. FSFMA'13. [ PDF ]
  • Jonathan Protzenko. An introduction to Mezzo (short). ML Workshop, Sep 2012. [ PDF | YouTube ]
  • Jonathan Protzenko. An introduction to MezzoPDF ]

Downloads

  • Mezzo is in OPAM: just hit opam install mezzo
  • The older formalisation covers a lot of ground, but is less modular.
  • The newer formalisation covers less ground, but is cleaner.
  • Generated documentation for the prototype's source code, including the scary dependency graph between modules. The documentation is fairly incomplete, since most .mli files are missing, but the source code does have comments.

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).