Skip to main content
Ir a la página de inicio de la Comisión Europea (se abrirá en una nueva ventana)
español es
CORDIS - Resultados de investigaciones de la UE
CORDIS

Foundations of Type Inference for Modern Programming Languages

Descripción del proyecto

Una nueva inferencia de tipos para satisfacer la demanda futura

Todos los datos de un programa como Java o Scala se clasifican por su tipo (como cadenas o número enteros). Los programadores deben anotar los programas para guiar a los compiladores sobre los tipos de datos que tienen que verificar. Los algoritmos de inferencia de tipos son necesarios para transferir los resultados de los cálculos formales a nuevos lenguajes de programación. En el proyecto TypeFoundry, financiado con fondos europeos, se utilizarán avances recientes en la teoría de la demostración y la semántica —como, por ejemplo, la teoría polarizada de tipos y la llamada por valor de inserción— para identificar la estructura teórica que apuntala la inferencia de tipos. Se empleará esta teoría para construir un conjunto de técnicas para la inferencia de tipos capaces de escalar hasta las características del sistema de tipos avanzado en los lenguajes de programación actuales y futuros.

Objetivo

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

Ámbito científico (EuroSciVoc)

Este proyecto aún no se ha clasificado con EuroSciVoc.
Sugiera los ámbitos científicos que considere más relevantes y ayúdenos a mejorar nuestro servicio de clasificación.

Palabras clave

Programa(s)

Tema(s)

Régimen de financiación

ERC-COG - Consolidator Grant

Ver todos los proyectos financiados en el marco de este régimen de financiación

Convocatoria de propuestas

(se abrirá en una nueva ventana) ERC-2020-COG

Ver todos los proyectos financiados en el marco de esta convocatoria

Institución de acogida

THE CHANCELLOR MASTERS AND SCHOLARS OF THE UNIVERSITY OF CAMBRIDGE
Aportación neta de la UEn
€ 1 999 998,00
Dirección
TRINITY LANE THE OLD SCHOOLS
CB2 1TN CAMBRIDGE
Reino Unido
Región
East of England East Anglia Cambridgeshire CC
Tipo de actividad
Higher or Secondary Education Establishments
Enlaces
Coste total
€ 1 999 998,00

Beneficiarios (1)