Skip to main content
Vai all'homepage della Commissione europea (si apre in una nuova finestra)
italiano it
CORDIS - Risultati della ricerca dell’UE
CORDIS

Foundations of Type Inference for Modern Programming Languages

Descrizione del progetto

Una nuova inferenza dei tipi per rispondere alle esigenze del futuro

Tutti i dati in programmi come Java o Scala sono classificati per tipo (come stringhe o integrali). Per informare i compilatori dei tipi di dati da controllare, i programmatori devono annotare i programmi. Gli algoritmi di inferenza dei tipi sono necessari per trasferire i risultati dai calcoli formali ai nuovi linguaggi di programmazione. Il progetto TypeFoundry, finanziato dall’UE, si avvarrà dei recenti sviluppi nella teoria della dimostrazione e nella semantica (esempi includono la teoria di tipo polarizzato e call-by-push-value) per identificare la struttura teorica a sostegno dell’inferenza dei tipi. Questa teoria sarà utilizzata per creare una raccolta di tecniche per l’inferenza dei tipi che possano essere replicate in funzioni di sistemi avanzati nei linguaggi sia moderni che futuri.

Obiettivo

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

Campo scientifico (EuroSciVoc)

Questo progetto non è ancora stato classificato con EuroSciVoc.
Suggerisci i campi scientifici che ritieni più rilevanti e aiutaci a migliorare il nostro servizio di classificazione.

Parole chiave

Programma(i)

Argomento(i)

Meccanismo di finanziamento

ERC-COG - Consolidator Grant

Vedi tutti i progetti finanziati nell’ambito di questo schema di finanziamento

Invito a presentare proposte

(si apre in una nuova finestra) ERC-2020-COG

Vedi tutti i progetti finanziati nell’ambito del bando

Istituzione ospitante

THE CHANCELLOR MASTERS AND SCHOLARS OF THE UNIVERSITY OF CAMBRIDGE
Contributo netto dell'UE
€ 1 999 998,00
Indirizzo
TRINITY LANE THE OLD SCHOOLS
CB2 1TN CAMBRIDGE
Regno Unito
Regione
East of England East Anglia Cambridgeshire CC
Tipo di attività
Higher or Secondary Education Establishments
Collegamenti
Costo totale
€ 1 999 998,00

Beneficiari (1)