Sciweavers

PADL
2012
Springer

Typing the Numeric Tower

12 years 11 days ago
Typing the Numeric Tower
In the past, the creators of numerical programs had to choose between simple expression of mathematical formulas and static type checking. While the Lisp family and its dynamically typed relatives support the straightforward expression via a rich numeric tower, existing statically typed languages force programmers to pollute textbook formulas with explicit coercions or unwieldy notation. In this paper, we demonstrate how the type system of Typed Racket accommodates both a textbook programming style and expressive static checking. The type system provides a hierarchy of numeric types that can be freely mixed as well as precise specifications of sign, representation, and range information—all while supporting generic operations. In addition, the type system provides information to the compiler so that it can perform standard numeric optimizations. 1 Designing the Numeric Tower From the classic two-line factorial program to financial applications to scientific computation to graphics...
Vincent St-Amour, Sam Tobin-Hochstadt, Matthew Fla
Added 25 Apr 2012
Updated 25 Apr 2012
Type Journal
Year 2012
Where PADL
Authors Vincent St-Amour, Sam Tobin-Hochstadt, Matthew Flatt, Matthias Felleisen
Comments (0)