The design of a module system for constructing and main-taining Ilarge programs is a difficult task that raises a number of theoretical and practical issues. A fundamental issue is the management of the flow of information between program units at compile
A Type-Theoretic
Approach Robert
to Higher-Order Mark Computer Mellon PA Lillibridge$ Science University 15213-3891
Modules
with
Sharing*
Harpert School Carnegie Pittsbwgh, of
Abstract The design of a module system is a difficult issues. for constructing task that A fundamental between of an interface. interfaces is hidden, and mainissue is program Expeand taining Ilarge programs raises a number
programming
idioms;
the language found
may
be easily
restricted
to“second-class”
modules
in ML-like
languages.
of theoretical the management units rience that
and practical time that
1
Introduction is an essential large programming system from that software technique systems for provide the developing some form and Most of
of the flow of information via the notion fully opaque
at compile has shown fully
Modularity maintaining modern module systems units agement components both to
are awkward interde-
[46, 24, 36]. construction problem
to use in practice pendencies, compilation. address this equational plete control
since too much interfaces problems
information lead
languages supports
transparent creating
to excessive
of large program is the to treat manthe (for need whole.
for maintenance
and separate
a collection tension
of separately-defined between system in the need
The“sharing” specifications of Standard ML issue by allowing the programmer to specify between enough types in separate modules, combeviewsystem sum to allow the programmer information
[7, 8, 26, 32]. of the
A fundamental
relationships over
but are not expressive t ween modules. These problems point FU. type tution. tion gation and interfaces. studies by considering The calculus by relying
of a large and
relative reasons)
isolation and the
the propagation are addressed a calculus from exclusively information on strong differs
of type from based
conceptual combine these
pragmatic
components problem
into
a coherent
a type-theoretic on Girard’s considered
In typical each module enforced The be tems SML functors, A structure types,
cases this with
is addressed interface that
by equipping that mediates be interfaces
a well-defined link ML time. (SML)
those
in previous of weak in contrast
all access to the module at system Standard in 1, 3, the 11,
and requiring
on a new form at compile-time, sums which
to propagate The
module design of main signatures, sometimes defining that large
system has
[17, proved
32] to sys-
to approaches
based new form
rely
on substiin units most sys-
is a particularly useful[2,
interesting development 13]. The are two
of sum type as type complete information
allows control
for the specificainformation program way ML. the over the propa-
software
of equational, This
as well provides to encode
and kind, between in Standard and
constituents structures, called
of the and of
of compile-time is sufficient sharing
module with
system the latter
in a straightforward citizens, m
odules therefore
modules.
uses of type are treated tem supports
specifications
Modules
is a program values, structure).
unit
a collection (known may
as“first-class” higher-order
exceptions, of the structures describing values, with their
and structures A functor
as sub-
and some object-oriented
structures mapping terface types, along ure module further tion
be thought function is an in— the it defines, See FigSML for
of as a“parameterized *Thk work was sponsored by the Advanced Research Projects Agency, CSTO, under the title“The Fox Project: Advanced Development of Systems Software”, ARPA Order No. 8313, issued by ESD/AVS under Contract No. F19628-91-C-0168. t Electro&~~1 ad&e~~: rWh@c,~mu.~d~.~~Electronic Permission mail address: mdl@cs . cmu. edu. without fee all or part of this material is the kinds,
structure”, to structures. constituents ions, and types, example information which notion allows and
a first-order A signature of a structure that interfaces. are
except
structures of the
1 for
an illustrative system; examples feature sharingl and
use of the available
to copy
a number
of sources
granted provided that the copies are not made or distributed for direct commercial advantaga, the ACM copyright notica and tha titfe of the publication and its data appear, and notica ia givan that copying ia by parrtiasion of the Association for Computing Machinery. To copy otharwiaat or to repubfish, raquirea a fee and/or specific permission. POPL 94- 1/94, Portland Oregon, USA@ 1994 ACM C-897914336-IY941001 ..$3.S()
[15, 39]. module for system the is the nospecification ia not consid-
A crucial of type
of the SML
1The closely-related ered in this paper.
of structur-c
sharing
123

Type-Theoretic Encodin... 暂无评价 9页 免费 Recursion for Higher-O... ... Abstract. Reas...
A Game-Theoretic Approach to Deciding Higher-Order Matching A Game-Theoretic Approach to Deciding Higher-Order MatchingA Game-Theoretic Approach to Deciding ...
Abstract A Type-theoretic Foundation for Programming with Higher-order ...The most common approach in practice is to implement binders via de Bruijn...
Higher-Order Modules and the Phase Distinction ...While unusual from a type-theoretic point of ... this is speci ed using a \sharing" constraint...
Translucent Sums A Foundation for Higher-Order ...new type-theoretic concept, the translucent sum. ...My approach also allows modules to be treated as...
A Queuing Theory Approach to Load Sharing in Automotive Embedded System_专业资料。A A JunlfCoora mmuiainadCoue 2 13 39onct n mptr8(0) 1 o18-8毒0...
Charged Randall-Sundrum Braneworld Type II with Higher Order Curvature Corrections from Superstr_专业资料。Cmmu.erPy.Bin,ia521)P8981onTho.hs(eigChn)3(00...
Higher-order accurate Osher schemes with application to compressibleboundary ...The BICFCT takes a novel approach on time difference. In short, only the...
Transparent Modules with Fully Syntactic Signatures ? Zhong Shao Dept. of ...higher-order functors, but their system does not have a type-theoretic ...
{ a Referentially-Transparent Higher-Order Module ... with elementary modules and types as simple ...This approach has successfully been used in the ...
热门文档