• Home
  • Search
  • Extending Dylan's type system for better type inference and error detection
  • Open Access IconOpen Access
  • Cite Icon5
  • https://doi.org/10.1145/1869643.1869645Copy DOI Icon

Extending Dylan's type system for better type inference and error detection

  • Oct 19, 2010
  • Hannes Mehnert
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Whereas dynamic typing enables rapid prototyping and easy experimentation, static typing provides early error detection and better compile time optimization. Gradual typing [26] provides the best of both worlds. This paper shows how to define and implement gradual typing in Dylan, traditionally a dynamically typed language. Dylan poses several special challenges for gradual typing, such as multiple return values, variable-arity methods and generic functions (multiple dispatch).In this paper Dylan is extended with function types and parametric polymorphism. We implemented the type system and aunification-based type inference algorithm in the mainstream Dylan compiler. As case study we use the Dylan standard library (roughly 32000 lines of code), which witnesses that the implementation generates faster code with fewer errors. Some previously undiscovered errors in the Dylan library were revealed.

Similar Papers
  • Research Article
  • Citations49

The ins and outs of gradual type inference

  • Jan 18, 2012
  • ACM SIGPLAN Notices
  • Aseem Rastogi +2
  • Research Article
  • Citations9

Consistent Subtyping for All

  • Nov 21, 2019
  • ACM Transactions on Programming Languages and Systems
  • Ningning Xie +3
  • PDF
  • Research Article
  • Citations5

Migrating gradual types

  • Jan 01, 2022
  • Journal of Functional Programming
  • John Peter Campora +3
  • Conference Article
  • Citations4

Application optimization when using gradual typing

  • Jul 26, 2011
  • Esteban Allende +1
  • Conference Article
  • Citations66

Gradual typing for first-class classes

  • Oct 19, 2012
  • Asumu Takikawa +4
  • Conference Article
  • Citations28

Interpretations of the gradually-typed lambda calculus

  • Sep 09, 2012
  • Jeremy G Siek +1
  • Research Article
  • Citations83

Space-efficient gradual typing

  • Jun 01, 2010
  • Higher-Order and Symbolic Computation
  • David Herman +2
  • PDF
  • Research Article
  • Citations2

Space-Efficient Polymorphic Gradual Typing, Mostly Parametric

  • Jun 20, 2024
  • Proceedings of the ACM on Programming Languages
  • Atsushi Igarashi +3
  • Research Article
  • Citations106

Design and evaluation of gradual typing for python

  • Oct 14, 2014
  • ACM SIGPLAN Notices
  • Michael M Vitousek +3
  • PDF
  • Book Chapter
  • Citations19

Consistent Subtyping for All

  • Jan 01, 2018
  • Ningning Xie +2
  • PDF
  • Research Article
  • Citations12

Abstracting gradual typing moving forward: precise and space-efficient

  • Jan 04, 2021
  • Proceedings of the ACM on Programming Languages
  • Felipe Bañados Schwerter +3
  • Research Article
  • Citations31

Type-checking OQL queries in the ODMG type systems

  • Sep 01, 1999
  • ACM Transactions on Database Systems
  • Suad Alagíc
  • PDF
  • Research Article
  • Citations23

Collapsible contracts: fixing a pathology of gradual typing

  • Oct 24, 2018
  • Proceedings of the ACM on Programming Languages
  • Daniel Feltey +4
  • Research Article

From ML type inference to stratified type inference

  • Sep 12, 2005
  • ACM SIGPLAN Notices
  • François Pottier
  • Conference Article
  • Citations412

Refinement types for ML

  • Jan 01, 1991
  • Tim Freeman +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.