ACM Home Page
Please provide us with feedback. Feedback
Generics for the working ML'er
Full text PdfPdf (232 KB)
Source
International Conference on Functional Programming archive
Proceedings of the 2007 workshop on Workshop on ML table of contents
Freiburg, Germany
SESSION: Session 3 table of contents
Pages: 71 - 82  
Year of Publication: 2007
ISBN:978-1-59593-676-9
Author
Vesa A.J. Karvonen  University of Helsinki, Helsinki, Finland
Sponsors
ACM: Association for Computing Machinery
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 4,   Downloads (12 Months): 29,   Citation Count: 1
Additional Information:

abstract   references   cited by   index terms  

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/1292535.1292547
What is a DOI?

ABSTRACT

Generic values are type-indexed values defined over the structure of types. A popular and pragmatic approach to type-indexed values in ML-like languages is to use a value-dependent encoding,where the type representations carry the values being indexed. Unfortunately, the approach has a major drawback. Because the resulting encoding is specific to a particular set of values, extending an encoding with new values requires modifying it.In this paper, we discuss an approach to generics based on the value-dependent encoding approach. We extend upon previous work inseveral ways. We present a technique that allows an existing value-dependent encoding to be extended with new values. We show how toencode type representations over essentially all the ML-types. We also show how to compute fixed points over arbitrary products. Our techniques have been implemented in Standard ML, do not compromise abstraction, and require only a fixed number of combinators.


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
 
3
Bernard Berthomieu. OO Programming styles in ML. Technical Report 2000111, LAAS, March 2000.
 
4
Henry Cejtin, Matthew Fluet, Suresh Jagannathan, and Stephen Weeks. MLton, a whole program optimizing compiler for Standard ML. WWW: http://www.mlton.org/.
5
6
7
 
8
Martin Elsman. Type-specialized serialization with sharing. In Sixth Symposium on Trends in Functional Programming (TFP'05), September 2005.
 
9
10
 
11
Ralf Hinze, Johan Jeuring, and Andres Löh. Comparing Approaches to Generic Programming in Haskell. In Spring School on Datatype-Generic Programming, 2006.
 
12
13
14
 
15
Bruno C.d.S. Oliveira, Ralf Hinze, and Andres Löh. Generics as a Library. In Henrik Nilsson and Marko van Eekelen, editors, Seventh Symposium on Trends in Functional Programming 2006, 2006.
16
17
 
18
Don Syme. Initializing Mutually Referential Abstract Objects: The Value Recursion Challenge. Electr. Notes Theor. Comput. Sci., 148(2):3--25, 2006.
19