Kind Inference for the FreeST Programming Language

04/13/2023
by   Bernardo Almeida, et al.
0

We present a kind inference algorithm for the FREEST programming language. The input to the algorithm is FREEST source code with (possibly part of) kind annotations replaced by kind variables. The algorithm infers concrete kinds for all kind variables. We ran the algorithm on the FREEST test suite by first replacing kind annotation on all type variables by fresh kind variables, and concluded that the algorithm correctly infers all kinds. Non surprisingly, we found out that programmers do not choose the most general kind in 20 cases.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/13/2023

The Undecidability of Typability in the Lambda-Pi-Calculus

The set of pure terms which are typable in the λΠ-calculus in a given co...
research
06/09/2021

Avoiding Traps in Nonconvex Problems

Iterative projection methods may become trapped at non-solutions when th...
research
04/11/2020

What Kind of Programming Language Best Suits Integrative AGI?

What kind of programming language would be most appropriate to serve the...
research
08/01/2019

Refinement Kinds: Type-safe Programming with Practical Type-level Computation (Extended Version)

This work introduces the novel concept of kind refinement, which we deve...
research
11/12/2019

Kind Inference for Datatypes: Technical Supplement

In recent years, languages like Haskell have seen a dramatic surge of ne...
research
08/05/2020

An Evolver program for weighted Steiner trees

We present an algorithm to find near-optimal weighted Steiner minimal tr...
research
08/05/2022

Basic Elements of Logical Graphs

We considers how a particular kind of graph corresponds to multiplicativ...

Please sign up or login with your details

Forgot password? Click here to reset