Separate compilation for Standard ML

Author(s):  
Andrew W. Appel ◽  
David B. MacQueen
Author(s):  
David Swasey ◽  
Tom Murphy ◽  
Karl Crary ◽  
Robert Harper

2007 ◽  
Vol 17 (2) ◽  
pp. 145-205 ◽  
Author(s):  
RONALD GARCIA ◽  
JAAKKO JARVI ◽  
ANDREW LUMSDAINE ◽  
JEREMY SIEK ◽  
JEREMIAH WILLCOCK

AbstractMany modern programming languages support basic generics, sufficient to implement type-safe polymorphic containers. Some languages have moved beyond this basic support, and in doing so have enabled a broader, more powerful form of generic programming. This paper reports on a comprehensive comparison of facilities for generic programming in eight programming languages: C++, Standard ML, Objective Caml, Haskell, Eiffel, Java, C# (with its proposed generics extension), and Cecil. By implementing a substantial example in each of these languages, we illustrate how the basic roles of generic programming can be represented in each language. We also identify eight language properties that support this broader view of generic programming: support for multi-type concepts, multiple constraints on type parameters, convenient associated type access, constraints on associated types, retroactive modeling, type aliases, separate compilation of algorithms and data structures, and implicit argument type deduction for generic algorithms. We find that these features are necessary to avoid awkward designs, poor maintainability, and painfully verbose code. As languages increasingly support generics, it is important that language designers understand the features necessary to enable the effective use of generics and that their absence can cause difficulties for programmers.


2006 ◽  
Author(s):  
David Swasey ◽  
VII Murphy ◽  
Crary Tom ◽  
Harper Karl ◽  
Robert

1994 ◽  
Vol 29 (6) ◽  
pp. 13-23 ◽  
Author(s):  
Andrew W. Appel ◽  
David B. MacQueen

1993 ◽  
Author(s):  
Edoardo Biagioni ◽  
Robert Harper ◽  
Peter Lee
Keyword(s):  

1994 ◽  
Author(s):  
Robert Harper ◽  
Frank Pfenning ◽  
Peter Lee ◽  
Eugene Rollins
Keyword(s):  

Sign in / Sign up

Export Citation Format

Share Document