ACM Home Page
Please provide us with feedback. Feedback
A practical soft type system for scheme
Full text PdfPdf (624 KB)
Source ACM Transactions on Programming Languages and Systems (TOPLAS) archive
Volume 19 ,  Issue 1  (January 1997) table of contents
Pages: 87 - 152  
Year of Publication: 1997
ISSN:0164-0925
Authors
Andrew K. Wright  NEC Research Institute, Princeton, NJ
Robert Cartwright  Rice Univ., Houston, TX
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 7,   Downloads (12 Months): 68,   Citation Count: 17
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/239912.239917
What is a DOI?

ABSTRACT

A soft type system infers types for the procedures and data structures of dynamically typed programs. Like conventional static types, soft types express program invariants and thereby provide valuable information for program optimization and debugging. A soft type checker uses the types inferred by a soft type system to eliminate run-time checks that are provably unnecessary; any remaining run-time checks are flagged as potential program errors. Soft Scheme is a practical soft type checker for R4RS Scheme. Its underlying type system generalizes conventional Hindley-Milner type inference by incorporating recursive types and a limited form of union type. Soft Scheme accommodates all of R4RS Scheme including uncurried procedures of fixed and variable arity, assignment, and continuations.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

1
 
2
ABADI, M., CARDELLI, L., PIERCE, B., AND RI~MY, D. 1995. Dynamic typing in polymorphic languages. J. Funct. Program. 5, 1 (Jan.), 111-130.
3
4
5
6
 
7
BARENDREGT, H. P. 1984. The Lambda Calculus: Its Syntax and Semantics, Revised ed. Studies in Logic and the Foundations of Mathematics, vol. 103. North-Holland, Amsterdam.
 
8
BEER, R. D. 1987. Preliminary report on a practical type inference system for Common Lisp. Lisp Pointers 1, 2, 5-11.
9
10
 
11
 
12
13
 
14
DAMAS, L. M. M. 1985. Type assignment in programming languages. Ph.D. thesis, Univ. of Edinburgh, Edinburgh, Scotland.
15
 
16
 
17
 
18
 
19
 
20
FLANAGAN, C. AND FELLEISEN, M. 1995. Set-based analysis for full Scheme and its use in softtyping. Tech. Rep. TR95-253, Rice Univ., Houston, Tex. Oct.
 
21
FREEMAN, T. 1993. Refinement types. Ph.D. thesis, Carnegie Mellon Univ., Pittsburgh, Pa.
22
23
 
24
GREENGARD, L. 1987. The Rapid Evaluation of Potential Fields in Particle Systems. ACM Press, New York.
 
25
26
 
27
 
28
29
30
 
31
HINDLEY, R. 1969. The principal type-scheme of an object in combinatory logic. Trans. Am. Math. Soc. 146, 29-60.
 
32
 
33
HOANG, M., MITCHELL, J., AND VISWANATHAN, R. 1993. Standard ML-NJ weak polymorphism and imperative constructs. In Proceedings of the 8th Annual Symposium on Logic in Computer Science. IEEE Computer Society Press, Los Alamitos, Calif., 15-25.
34
35
 
36
37
38
 
39
 
40
LEROY, X. 1992a. Typage polymorphe d'un langage Mgorithmique. Ph.D. thesis, L'Universit6 Paris 7, France.
41
 
42
LEROY, X. AND MAUNY, M. 1993. Dynamics in ML. J. Funct. Program. 3, 4, 431-463.
43
 
44
45
 
46
 
47
MARTELLI, A. AND MONTANARI, W. 1976. Unification in linear time and space: A structured presentation. Tech. Rep. B76-16, Ist. di Elaborazione delle Informazione, Consiglio Nazionale delle Ricerche, Pisa, Italy. July.
 
48
MILNER, R. 1978. A theory of type polymorphism in programming. J. Comput. Syst. Sci. 17, 348-375.
 
49
 
50
MITCHELL, J. C. 1991. Type inference with simple subtypes. J. Funct. Program. 1, 3 (July), 245-286.
 
51
 
52
PATERSON, M. S. AND WEGMAN, M. N. 1978. Linear unification. J. Comput. Syst. Sci. 16, 2 (Apr.), 158-167.
53
 
54
RI~MY, D. 1991. Type inference for records in a natural extension of ML. Tech. Rep. 1431, INRIA, France. May.
 
55
RI~MY, D. 1992. Extension of ML type system with a sorted equational theory on types. Tech. Rep. 1766, INRIA, France. Oct.
56
 
57
58
 
59
TALPIN, J.-P. AND JOUVELOT, P. 1992. The type and effect discipline. In Proceedings of the 7th Annual Symposium on Logic in Computer Science. IEEE Computer Society Press, Los Alamitos, Calif., 162-173.
 
60
61
 
62
 
63
WAND, M. 1987. Complete type inference for simple objects. In Proceedings of the 2nd IEEE Symposium on Logic in Computer Science. IEEE Computer Society Press, Los Alamitos, Calif., 37-44.
 
64
 
65
 
66
 
67
68
 
69
WRIGHT, t. K. AND DUBA, B. F. 1993. Pattern matching for Scheme. Rice Univ., Houston, Tex. Available from http://www.neci.nj.nec.com/homepages/wright.html.
 
70
 
71
ZHAO, F. 1987. An O(N) algorithm for three-dimensionM N-body simulations. M.S. thesis, Dept. of Electrical Engineering and Computer Science, Massachusetts Inst. of Technology, Cambridge, Mass.

CITED BY  17

Collaborative Colleagues:
Andrew K. Wright: colleagues
Robert Cartwright: colleagues