Skip to main content
Aller à la page d’accueil de la Commission européenne (s’ouvre dans une nouvelle fenêtre)
français fr
CORDIS - Résultats de la recherche de l’UE
CORDIS

Foundations of Type Inference for Modern Programming Languages

Description du projet

Une nouvelle inférence de type pour répondre aux demandes futures

Dans un langage comme Java ou Scala, les différentes données d’un programme sont classées en fonction de leur type (par exemple les chaînes de caractères ou les entiers). Pour informer les compilateurs des types de données à vérifier, les programmeurs doivent annoter les programmes. Les algorithmes d’inférence de type sont nécessaires pour transférer les résultats des calculs formels aux nouveaux langages de programmation. Le projet TypeFoundry, financé par l’UE, utilisera les développements récents en matière de théorie de la preuve et de sémantique (par exemple, la théorie des types polarisés et le call-by-push-value) pour identifier la structure théorique qui sous-tend l’inférence de type. Il utilisera cette théorie pour construire une série de techniques d’inférence de types capables de s’adapter aux fonctionnalités avancées des systèmes de types dans les langages modernes et futurs.

Objectif

"Many modern programming languages, whether developed in industry, like Rust or Java, or in academia, like Haskell or Scala, are typed. All the data in a program is classified by its type (e.g. as strings or integers), and at compile-time programs are checked for consistent usage of types, in a process called type checking. Thus, the expression 3 + 4 will be accepted, since the + operator takes two numbers as arguments, but the expression 3 + ""hello"" will be rejected, as it makes no sense to add a number and a string. Though this is a simple idea, sophisticated type system can track properties like algorithmic complexity, data-race freedom, differential privacy, and data abstraction.

In general, programmers must annotate programs to tell compilers the types to check. In theoretical calculi, it is easy to demand enough annotations to trivialize typechecking, but this can make the annotation burden unbearable: often larger than the program itself! So, to transfer results from formal calculi to new programming languages, we need type inference algorithms, which reconstruct missing data from partially-annotated programs.

However, the practice of type inference has outpaced its theory. Compiler authors have implemented many type inference systems, but the algorithms are often ad-hoc or folklore, and the specifications they are meant to meet are informal or nonexistent. The makes it hard to learn how to implement type inference, hard to build alternative implementations (whether for new compilers or analysis engines for IDEs), and hard for programmers to predict if refactorings will preserve typability.

In TypeFoundry, we will use recent developments in proof theory and semantics (like polarized type theory and call-by-push-value) to identify the theoretical structure underpinning type inference, and use this theory to build a collection of techniques for type inference capable of scaling up to the advanced type system features in both modern and future languages.
"

Champ scientifique (EuroSciVoc)

Ce projet n'a pas encore été classé par EuroSciVoc.
Proposez les domaines scientifiques qui vous semblent les plus pertinents et aidez-nous à améliorer notre service de classification.

Mots‑clés

Programme(s)

Thème(s)

Régime de financement

ERC-COG - Consolidator Grant

Voir tous les projets financés dans le cadre de ce programme de financement

Appel à propositions

(s’ouvre dans une nouvelle fenêtre) ERC-2020-COG

Voir tous les projets financés au titre de cet appel

Institution d’accueil

THE CHANCELLOR MASTERS AND SCHOLARS OF THE UNIVERSITY OF CAMBRIDGE
Contribution nette de l'UE
€ 1 999 998,00
Adresse
TRINITY LANE THE OLD SCHOOLS
CB2 1TN CAMBRIDGE
Royaume-Uni
Région
East of England East Anglia Cambridgeshire CC
Type d’activité
Higher or Secondary Education Establishments
Liens
Coût total
€ 1 999 998,00

Bénéficiaires (1)