MULTIWAY STREAMS IN SCHEME

被引:6
作者
FRANCO, J
FRIEDMAN, DP
JOHNSON, SD
机构
[1] Department of Computer Science, Indiana University, Bloomington
来源
COMPUTER LANGUAGES | 1990年 / 15卷 / 02期
基金
美国国家科学基金会;
关键词
Channels; Continuations; Efficient; Scheme; Streams;
D O I
10.1016/0096-0551(90)90014-G
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We present a mechanism for the maintenance of streams based on the Scheme facility of call-with-current-continuation or call/cc. The mechanism supports stream sharing and has overhead cost which is independent of top-level program parameters if call/cc is implemented in heap-based systems. It is shown how the control structure of call/cc can save programming effort in cases where multiple procedures output to the same stream in irregular order. © 1990.
引用
收藏
页码:109 / 125
页数:17
相关论文
共 13 条
[1]   GARBAGE COLLECTION CAN BE FASTER THAN STACK ALLOCATION [J].
APPEL, AW .
INFORMATION PROCESSING LETTERS, 1987, 25 (04) :275-279
[2]  
CLINGER WD, 1988, 1988 P ACM C LISP FU, P124
[3]  
DANVY O, 1987, JUN P SIGPLAN 87 S I, P241
[4]  
Dybvig R. Kent, 1987, SCHEME PROGRAMMING L
[5]  
Harper Robert, 1986, STANDARD ML
[6]   OBTAINING COROUTINES WITH CONTINUATIONS [J].
HAYNES, CT ;
FRIEDMAN, DP ;
WAND, M .
COMPUTER LANGUAGES, 1986, 11 (3-4) :143-153
[7]  
KOHLBECKER EE, 1986, THESIS INDIANA U
[8]  
MacQueen David B, 1977, INFORMATION PROCESSI
[9]  
REES J, 1986, SIGPLAN NOTICES, V21, P37, DOI 10.1145/15042.15043
[10]  
SUSSMAN GJ, 1975, AI349 MIT MEM