Javascript must be enabled to continue!
On polymorphic gradual typing
View through CrossRef
We study an extension of gradual typing—a method to integrate dynamic typing and static typing smoothly in a single language—to parametric polymorphism and its theoretical properties, including conservativity of typing and semantics over both statically and dynamically typed languages, type safety, blame-subtyping theorem, and the gradual guarantee—the so-called refined criteria, advocated by Siek et al. We develop System F
G
, which is a gradually typed extension of System F with the dynamic type and a new type consistency relation, and translation to a new polymorphic blame calculus System F
C
, which is based on previous polymorphic blame calculi by Ahmed et al. The design of System F
G
and System F
C
, geared to the criteria, is influenced by the distinction between static and gradual type variables, first observed by Garcia and Cimini. This distinction is also useful to execute statically typed code without incurring additional overhead to manage type names as in the prior calculi. We prove that System F
G
satisfies most of the criteria: all but the hardest property of the gradual guarantee on semantics. We show that a key conjecture to prove the gradual guarantee leads to the Jack-of-All-Trades property, conjectured as an important property of the polymorphic blame calculus by Ahmed et al.
Association for Computing Machinery (ACM)
Title: On polymorphic gradual typing
Description:
We study an extension of gradual typing—a method to integrate dynamic typing and static typing smoothly in a single language—to parametric polymorphism and its theoretical properties, including conservativity of typing and semantics over both statically and dynamically typed languages, type safety, blame-subtyping theorem, and the gradual guarantee—the so-called refined criteria, advocated by Siek et al.
We develop System F
G
, which is a gradually typed extension of System F with the dynamic type and a new type consistency relation, and translation to a new polymorphic blame calculus System F
C
, which is based on previous polymorphic blame calculi by Ahmed et al.
The design of System F
G
and System F
C
, geared to the criteria, is influenced by the distinction between static and gradual type variables, first observed by Garcia and Cimini.
This distinction is also useful to execute statically typed code without incurring additional overhead to manage type names as in the prior calculi.
We prove that System F
G
satisfies most of the criteria: all but the hardest property of the gradual guarantee on semantics.
We show that a key conjecture to prove the gradual guarantee leads to the Jack-of-All-Trades property, conjectured as an important property of the polymorphic blame calculus by Ahmed et al.
Related Results
Does language familiarity affect typing speed?
Does language familiarity affect typing speed?
Typed responses have been used as a way to assess an individual’s thinking skills and creativity in the field of cognitive psychology. However, there is very little prior research ...
Dynamic typing for distributed programming in polymorphic languages
Dynamic typing for distributed programming in polymorphic languages
While static typing is widely accepted as being necessary for secure
program execution, dynamic typing is also viewed as being essential in some applications, particularly for dis...
Unlock Large Potentials of Standard Mud Gas for Real-Time Fluid Typing
Unlock Large Potentials of Standard Mud Gas for Real-Time Fluid Typing
Standard mud gas data is part of the basic mudlogging service and is mainly used for safety. Although the data is available for all wells, it is not used for real-time fluid typing...
Unlock Large Potentials of Standard Mud Gas for Real-Time Fluid Typing
Unlock Large Potentials of Standard Mud Gas for Real-Time Fluid Typing
Standard mud gas data are part of the basic mud-logging service and are mainly used for safety. Although the data are available for all wells, it is not used for real-time fluid ty...
Validation of Binary Typing for
Staphylococcus aureus
Strains
Validation of Binary Typing for
Staphylococcus aureus
Strains
ABSTRACT
Most of the DNA-based methods for genetic typing of
Staphylococcus aureus
strains generate complex banding patterns. Therefo...
Complement genetics
Complement genetics
Abstract
With the advent of recombinant DNA methodology about 20 years ago, tremendous progress has been made in the definition of the genetic basis of the complemen...
Unravelling the fatigue induced by a prolonged typing task
Unravelling the fatigue induced by a prolonged typing task
ObjectiveThe primary aim of this study was to characterise fatigue induced by prolonged typing and its effects on cognitive, motor, and psychomotor functions. A secondary objective...
Neck Proprioception in Chronic Neck Pain Patients with Different Typing Speeds: A Pilot Study
Neck Proprioception in Chronic Neck Pain Patients with Different Typing Speeds: A Pilot Study
BACKGROUND: Chronic neck pain (CNP) is one of the most common musculoskeletal pains. It limits the daily functional activities up to 11% to 14% of the workers. Patients with CNP su...

