• Home
  • Search
  • Design and evaluation of gradual typing for python
  • Open Access IconOpen Access
  • Cite Icon106
  • https://doi.org/10.1145/2775052.2661101Copy DOI Icon

Design and evaluation of gradual typing for python

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Combining static and dynamic typing within the same language offers clear benefits to programmers. It provides dynamic typing in situations that require rapid prototyping, heterogeneous data structures, and reflection, while supporting static typing when safety, modularity, and efficiency are primary concerns. Siek and Taha (2006) introduced an approach to combining static and dynamic typing in a fine-grained manner through the notion of type consistency in the static semantics and run-time casts in the dynamic semantics. However, many open questions remain regarding the semantics of gradually typed languages. In this paper we present Reticulated Python, a system for experimenting with gradual-typed dialects of Python. The dialects are syntactically identical to Python 3 but give static and dynamic semantics to the type annotations already present in Python 3. Reticulated Python consists of a typechecker and a source-to-source translator from Reticulated Python to Python 3. Using Reticulated Python, we evaluate a gradual type system and three approaches to the dynamic semantics of mutable objects: the traditional semantics based on Siek and Taha (2007) and Herman et al. (2007) and two new designs. We evaluate these designs in the context of several third-party Python programs.

Similar Papers
  • Research Article
  • Citations9

Consistent Subtyping for All

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

The ins and outs of gradual type inference

  • Jan 18, 2012
  • ACM SIGPLAN Notices
  • Aseem Rastogi +2
  • Conference Article
  • Citations28

Interpretations of the gradually-typed lambda calculus

  • Sep 09, 2012
  • Jeremy G Siek +1
  • PDF
  • Book Chapter
  • Citations19

Consistent Subtyping for All

  • Jan 01, 2018
  • Ningning Xie +2
  • Conference Article
  • Citations4

Application optimization when using gradual typing

  • Jul 26, 2011
  • Esteban Allende +1
  • PDF
  • Research Article
  • Citations5

Migrating gradual types

  • Jan 01, 2022
  • Journal of Functional Programming
  • John Peter Campora +3
  • Research Article
  • Citations83

Space-efficient gradual typing

  • Jun 01, 2010
  • Higher-Order and Symbolic Computation
  • David Herman +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
  • Conference Article
  • Citations5

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

  • Oct 19, 2010
  • Hannes Mehnert
  • Conference Article
  • Citations66

Gradual typing for first-class classes

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

Modeling method of embedded real-time software based on UML and XYZ/E

  • Jun 01, 2010
  • Jian-Hou Gan +3
  • Research Article
  • Citations12

ONTOLOGY-BASED SEMANTIC VERIFICATION FOR UML BEHAVIORAL MODELS

  • Mar 01, 2013
  • International Journal of Software Engineering and Knowledge Engineering
  • Hongyue He +4
  • Conference Article
  • Citations3

Research of Modeling Method Based on UML2.0 and Temporal Logic

  • Jan 01, 2009
  • Jian-Hou Gan +2
  • Book Chapter
  • Citations2

Merging Railway Standard Notations in a Formal DSL-Based Framework

  • Jan 01, 2020
  • Asfand Yar +2
  • Book Chapter
  • Citations194

Towards a Formal Operational Semantics of UML Statechart Diagrams

  • Jan 01, 1999
  • Diego Latella +2
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.