102 citations · 202 across the 10 of their papers we have counts for
12 papers · 1 filter
You Have Mail: Set-Theoretic Types for Actors
Giuseppe Castagna, Luca Padovani, Daniele Varacca +1
We present a type system for the processes of Elixir, a dynamic language based on the actor model whose static type system covers only its functional core. Each process is typed by…
From Strong Normalization to WhatsApp: the Journey of an Axiom
Giuseppe Castagna
Twenty years ago, Mariangiola Dezani-Ciancaglini, Daniele Varacca and I showed that Milner's classic encoding of functions into processes does not respect one of the laws of inters…
Polymorphic Records for Dynamic Languages
Giuseppe Castagna, Loïc Peyrot
We define and study "row polymorphism" for a type system with set-theoretic types, specifically union, intersection, and negation types. We consider record types that embed row var…
Polymorphic Type Inference for Dynamic Languages
Giuseppe Castagna, Mickaël Laurent, Kim Nguyen
We present a type system that combines, in a controlled way, first-order polymorphism with intersectiontypes, union types, and subtyping, and prove its safety. We then define a typ…
The Design Principles of the Elixir Type System
Giuseppe Castagna, Guillaume Duboc, José Valim
Elixir is a dynamically-typed functional language running on the Erlang Virtual Machine, designed for building scalable and maintainable applications. Its characteristics have earn…
Programming with union, intersection, and negation types
Giuseppe Castagna
In this essay, I present the advantages and, I dare say, the beauty of programming in a language with set-theoretic types, that is, types that include union, intersection, and nega…
Revisiting Occurrence Typing
Giuseppe Castagna, Victor Lanvin, Mickaël Laurent +1
We revisit occurrence typing, a technique to refine the type of variables occurring in type-cases and, thus, capturesome programming patterns used in untyped languages. Although oc…
Semantic subtyping for non-strict languages
Tommaso Petrucciani, Giuseppe Castagna, Davide Ancona +1
Semantic subtyping is an approach to define subtyping relations for type systems featuring union and intersection type connectives. It has been studied only for strict languages, a…
Covariance and Controvariance: a fresh look at an old issue (a primer in advanced type systems for learning functional programmers)
Giuseppe Castagna
Twenty years ago, in an article titled "Covariance and contravariance: conflict without a cause", I argued that covariant and contravariant specialization of method parameters in o…
Set-Theoretic Types for Polymorphic Variants
Giuseppe Castagna, Tommaso Petrucciani, Kim Nguyen
Polymorphic variants are a useful feature of the OCaml language whose current definition and implementation rely on kinding constraints to simulate a subtyping relation via unifica…
Static and dynamic semantics of NoSQL languages
Véronique Benzaken, Giuseppe Castagna, Kim Nguy\~ên +1
We present a calculus for processing semistructured data that spans differences of application area among several novel query languages, broadly categorized as "NoSQL". This calcul…
On Global Types and Multi-Party Session
Giuseppe Castagna, Mariangiola Dezani-Ciancaglini, Luca Padovani
Global types are formal specifications that describe communication protocols in terms of their global interactions. We present a new, streamlined language of global types equipped…