Abstract
In both the IPSA and APL2/NARS extensions of APL, the SLASH symbol always represents an operator. Some new users of APL2, having been taught in the past that SLASH is an ambiguous symbol which is a dyadic function when it immediately follows data, find that the result when SLASH occurs between data and another operator is incompatible with that interpretation. The situation did not arise in APL1 because derived functions could not be operands. The classification of SLASH as an operator can be traced to the description given in the book. A Programming Language, from which APL ultimately derives. It was done so that the closely related MASK operation could be specified with the same symbol. In this paper the syntactic differences between dyadic functions and aonadic operators with data operands are explicated using the APL2 concept of syntactic binding. Two straightforward language extensions are considered based on the notions of a depth property, which APL2 shares with STSC's NARS, and pairwise evaluation, which derives from syntactic binding. Together they allow either dyadic functions or monadic operators with data operands to be executed in three structural contexts, which, in the cases of REPLICATE and EXPAND, can be loosely described as the same mask for each of several arrays, a separate mask for each array, and the same array for each of several masks.
- 1 J. P. Benkard. "Structural Experiments with Arrays of Functions", APL Quote-Quad, Vol. lS, No. 4 <June 19851. pp. 166-172. Google ScholarDigital Library
- 2 K. E. Iverson. A Progranring Language, John Wiley 6 Sons. Inc. Ncu York (1962). Google ScholarDigital Library
- 3 J. P. Denkard, "Syntactic Experiments uith Arrays of Functions and Operators", APL z;o;te;Quadr Vol. 14, No. 4 (June 1984),,,pp. Google ScholarDigital Library
- 4 K;-E: -iverson, "The Role of Operators in APL", APL Quote-Quad, Vol. 9, No.4-Part 1 (June 1979). pp. 128-133. Google ScholarDigital Library
- 5 J. A. Brown. "Function Assignrent and Arrays of Functions", APL Quote-Quad. Vol. 14, No. 4 {June 19141, pp. 81-S. Google ScholarDigital Library
- 6 J. D. Bunda and J. A. Gortb, "APL- Too by Two Syntax Analysis by Pairoise Reduction", APL Quote-Quad, Vol. 141 No. 4 <June 1984). pp. 85-94. Note: pp. 87, 86 appear before p. Google ScholarDigital Library
- 7 J. P. Benkard, Extensions". "Valence and Pzecodence in APL APL Quote-Quad. Vol. 13, No. (March 1983). mm). 233-242. Google ScholarDigital Library
- 8 IBM Corporationr APL2 Language Manual, Order : SH130-9237.Google Scholar
- 9 J. P. Benkard, "Analysis of Function Application in Deep Arrays". APL Quote-Quad, Vol. 16. No. 4 (July 1984). pp. 202-210. Google ScholarDigital Library
- 10 D. J. Landaeta. "A Notation for t4anipulating Arrays of Operations". APL Quote-Quad. Vol. 16. No. 4 (July 1986). pp. 21-29. Google ScholarDigital Library
Index Terms
- Replicate each, anyone?
Recommendations
Replicate each, anyone?
APL '87: Proceedings of the international conference on APL: APL in transitionIn both the IPSA and APL2/NARS extensions of APL, the SLASH symbol always represents an operator. Some new users of APL2, having been taught in the past that SLASH is an ambiguous symbol which is a dyadic function when it immediately follows data, find ...
Improving Data Grids Performance by Using Popular File Replicate First Algorithm
BWCCA '11: Proceedings of the 2011 International Conference on Broadband and Wireless Computing, Communication and ApplicationsIn this paper, we propose an adaptive data replication algorithm, called the Popular File Replicate First algorithm (PFRF for short), which is developed on a star-topology data grid with limited storage space based on aggregated information on previous ...
I/O Response Rate Analysis in the Replicate-Based Object Storage System
DCABES '10: Proceedings of the 2010 Ninth International Symposium on Distributed Computing and Applications to Business, Engineering and ScienceWith the development of storage technology, storage system capacity has been rapidly growing, so rapid that storage I/O performance has become one of the most critical issues in large complex systems. This article combines the latest research in object-...
Comments