文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > A Type-Theoretic Approach to Higher-Order Modules with Sharing
侵权投诉

A Type-Theoretic Approach to Higher-Order Modules with Sharing

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

A Type-Theoretic Approach to Higher-Order Modules with Sharing

第1页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email