APL\360: Difference between revisions
Miraheze>Marshall |
|||
(39 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox array language | {{DISPLAYTITLE:''APL''\360}}{{Infobox array language | ||
| title = ''APL''\360 | |||
| array model = [[flat array model|flat]] without [[box|boxes]] | | array model = [[flat array model|flat]] without [[box|boxes]] | ||
| index origin = < | | index origin = <syntaxhighlight lang=apl inline>)ORIGIN</syntaxhighlight> 0 or 1 (later <syntaxhighlight lang=apl inline>⎕IO</syntaxhighlight>) | ||
| function styles = [[defined function]] | | function styles = [[defined function]] | ||
| numeric types = floats (64-bit [[wikipedia:IBM_hexadecimal_floating_point|HFP]]) | | numeric types = floats (64-bit [[wikipedia:IBM_hexadecimal_floating_point|HFP]]) | ||
| unicode support = no | | unicode support = no | ||
| released = | | released = 1968 (1966 within IBM) | ||
| developer = [[IBM]] | | developer = [[IBM]] | ||
| latest release version = XM6 / 1972 | | latest release version = XM6 / 1972 | ||
| withdrawn = 2012 | | withdrawn = 2012 | ||
| implementation | | implementation language = [[wikipedia:IBM_Basic_Assembly_Language_and_successors|BAL]] | ||
| platforms = S/360–z/Architecture | | platforms = S/360–z/Architecture, IBM 5100+ | ||
| operating systems = DOS/360–z/OS | | operating systems = DOS/360–z/OS | ||
| license = Free for non-commercial use / Open source commercial software | | license = Free for non-commercial use / Open source commercial software | ||
| | | source = [https://computerhistory.org/blog/the-apl-programming-language-source-code/ Computer History Museum] ([https://computerhistory.org/blogs/apl360-software-license-agreement/ license and download]) | ||
| documentation = [https://www.jsoftware.com/papers/APL360TerminalSystem.htm ''The APL\360 Terminal System''] | | documentation = [https://www.jsoftware.com/papers/APL360TerminalSystem.htm ''The APL\360 Terminal System''] | ||
| | | run online = [https://norbertkehrer.github.io/ibm_5110/emu5110.html IBM 5110 emulator] | ||
| influenced | | influenced by = [[Iverson notation]], [[IVSYS/7090]] | ||
| influenced = [[APL.SV]], [[APL*PLUS]] | |||
}} | }} | ||
'''APL\360''' was the first implementation of APL | '''APL\360''' (stylised as '''''APL''\360''') was the first major implementation of APL, following the prototype [[IVSYS/7090]]. It ran on the [[IBM]] System/360, and was completed in November 1966 but was mainly used within IBM until its public release in 1968. The APL\360 design was taken as the starting point for all later development, and its source code also became the basis of [[APL*PLUS]]. In 1973 its implementers, [[Larry Breed]], [[Dick Lathwell]] and [[Roger Moore]], were awarded the [[wikipedia:Grace Murray Hopper Award|Grace Murray Hopper Award]] "for their work in the design and implementation of APL\360, setting new standards in simplicity, efficiency, reliability and response time for interactive systems." | ||
Beginning in 1975, the IBM 5100 line of microcomputers offered APL\360 as one of two built-in ROM-based interpreted languages for the computer, complete with a keyboard and display that supported all the special symbols used in the language. | |||
Significant developments to APL\360 included CMS/APL, which made use of the virtual storage capabilities of CMS and [[ | Significant developments to APL\360 included CMS/APL, which made use of the virtual storage capabilities of CMS, and [[APL.SV]], which introduced shared variables, [[system variable]]s and [[system function]]s. It was subsequently ported to the IBM System/370 and VSPC platforms until its final release in 1983, after which it was replaced by [[APL2]]. | ||
[[File:IBM 5110.jpg|thumb|right|IBM 5110]] | |||
== Availability == | |||
APL\360's implementation was completed in 1966, and it was made available within IBM from the [[Watson Research Center]] lab in [[wikipedia:Yorktown Heights, New York|Yorktown Heights]] starting in November. From the beginning it was an interactive rather than a batch system, with programmers working directly from a terminal rather than submitting jobs to be run. It was generally available only for IBM projects, with IBM's emphasis on [[wikipedia:PL/I|PL/I]] blocking its release as a standalone product, but was used in a few external projects including a 20-person class at [[wikipedia:NASA|NASA]]'s [[wikipedia:Goddard Space Flight Center|Goddard Space Flight Center]], and at the [[wikipedia:University of Alberta|University of Alberta]].<ref>Harold A. Driscoll. [https://dl.acm.org/doi/10.1145/586003.586005 "An APL Historical Note"]. [[APL Quote Quad]] Volume 8 Issue 1. 1977-09.</ref> [[Syracuse University]] also connected a terminal to Yorktown Heights starting in late 1967.<ref>Dana E. Cartwright and Phyllis A. Kent. "SHARP APL Syracuse" at [[IPSA '80]].</ref> In this period [[wikipedia:SUNY Binghamton|SUNY Binghamton]] became the first facility outside IBM to have APL installed, due to its connection with [[wikipedia:Endicott, New York|IBM-Endicott]].<ref name="foster">[[Ray Polivka]] and Jon McGrew. [https://dl.acm.org/doi/10.1145/216800.216805 "A Quote Quad Interview: Garth Foster"]. Quote Quad Volume 26 Number 1. 1995-09.</ref> | |||
IBM released APL\360 in August 1968 ([[APL\1130]] had been released that spring)<ref>[[Adin Falkoff]]. [https://doi.org/10.1145/800012.808128 "APL\360 History"] ([https://www.jsoftware.com/papers/apl360history.htm web]) at [[APL69]].</ref> as a [[wikipedia:IBM Type-III Library|Type-III]] or unsupported library. In 1969 it was offered as one of IBM's first program products, initially for [[wikipedia:DOS/360|DOS/360]], and next with support for [[wikipedia:OS/360 and successors#MVT|MVT]].<ref>[[Adin Falkoff]]. "The IBM family of APL systems". ''[[IBM]] Systems Journal'' Vol. 30 No. 4. 1991.</ref> These products were primarily used by universities, but also rapidly produced interest in [[time-sharing]] APL, with at least eight companies offering time-sharing in 1968. Business use of APL\360 was limited by its lack of support for reading and writing files, a problem that would only be addressed in IBM products with [[APL.SV]] in 1973. Many companies instead used a derivative system such as [[APL*PLUS]] modified to support files.<ref>[[Eric Iverson]]. "The Integration of APL into the Larger World of Data Processing" at [[IPSA '80]].</ref> | |||
== Implementation == | == Implementation == | ||
Line 37: | Line 44: | ||
== Primitives == | == Primitives == | ||
APL\360 evolved rapidly during its early development within IBM and more slowly as it became available to outside users. Here we show the primitives described in its [http://www.softwarepreservation.org/projects/apl/Manuals/APL360CONTRIBUTEDPROGRAMLIBRARY/view documentation] in 1968 when it was first released as a stand-alone product (a [[wikipedia:IBM Type-III Library|Type-III Library]]). Later additions include [[Matrix Inverse]] and [[Matrix Divide]]; [[Execute]], [[Format]], and [[Scan]] introduced by [[APL.SV]]; and an [[Function axis|axis]] and [[Laminate]] form for the [[Catenate]] function. | |||
=== Functions === | === Functions === | ||
Line 43: | Line 52: | ||
! Glyph !! Monadic !! Dyadic | ! Glyph !! Monadic !! Dyadic | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>+</syntaxhighlight> || Plus ([[Identity]]) || [[Plus]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>-</syntaxhighlight> || [[Negate|Negative]] || [[Subtract|Minus]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>×</syntaxhighlight> || [[Signum]] || [[Times]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>÷</syntaxhighlight> || [[Reciprocal]] || [[Divide]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⌈</syntaxhighlight> || [[Ceiling]] || [[Maximum]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⌊</syntaxhighlight> || [[Floor]] || [[Minimum]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>*</syntaxhighlight> || [[Exponential]] || [[Power]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⍟</syntaxhighlight> || [[Natural logarithm]] || [[Logarithm]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>|</syntaxhighlight> || [[Magnitude]] || [[Residue]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>?</syntaxhighlight> || [[Roll]] || [[Deal]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>○</syntaxhighlight> || [[Pi times]] || [[Circle function|Circular]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>!</syntaxhighlight> || [[Factorial]] || [[Binomial coefficient]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>~</syntaxhighlight> || [[Not]] || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>∧</syntaxhighlight> || || [[And]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>∨</syntaxhighlight> || || [[Or]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⍲</syntaxhighlight> || || [[Nand]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⍱</syntaxhighlight> || || [[Nor]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline><</syntaxhighlight> || || [[Less]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>≤</syntaxhighlight> || || [[Not greater]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>=</syntaxhighlight> || || [[Equal]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>≥</syntaxhighlight> || || [[Not less]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>></syntaxhighlight> || || [[Greater]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>≠</syntaxhighlight> || || [[Not equal]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⍴</syntaxhighlight> || [[Shape|Size]] || [[Reshape]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>,</syntaxhighlight> || [[Ravel]] || [[Catenate]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>[]</syntaxhighlight>|| || [[Bracket indexing|Indexing]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⍳</syntaxhighlight> || [[Index generator]] || [[Index of]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>↑</syntaxhighlight> || || [[Take]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>↓</syntaxhighlight> || || [[Drop]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⍋</syntaxhighlight> || [[Grade up]] (allows axis) || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⍒</syntaxhighlight> || [[Grade down]] (allows axis) || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>/</syntaxhighlight> || ||rowspan=2| [[Compress]]<br>(allows axis) | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⌿</syntaxhighlight> || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>\</syntaxhighlight> || ||rowspan=2| [[Expand]]<br>(allows axis) | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⍀</syntaxhighlight> || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⌽</syntaxhighlight> ||rowspan=2| [[Reverse]]<br>(allows axis) ||rowspan=2| [[Rotate]]<br>(allows axis) | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⊖</syntaxhighlight> | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⍉</syntaxhighlight> ||colspan=2| [[Transpose]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>∊</syntaxhighlight> || || [[Membership]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⊥</syntaxhighlight> || || [[Decode]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⊤</syntaxhighlight> || || [[Encode]] | ||
|} | |} | ||
=== Operators === | === Operators === | ||
{| class=wikitable style="width:50%;float:right" | |||
|{{quote | "The <code>OPR</code> is my shepherd; I shall not want.</br>He maketh me to lie down in green computer centers; he leadeth me beside the still <code>HARDWARE</code></br>He restoreth my <code>PROCEED LIGHT</code>; he leadeth me in the paths of correct syntax for ''IBM'''s name's sake</br>Yea, through I walk through the valley of the shadow of the endless loop, I will fear no evil; for thou art with me; thy <code>)OPRN</code> and thy <code>BOUNCE</code> they comfort me.</br>Thou preparest a terminal before me in the presence of mine enemies; though anointest my <code>PRINTOUT</code> with <code>PA!:'S</code>; my workspace runneth over.</br>Surely <code>VALUE ERRORS</code> and <code>SYNTAX ERRORS</code> shall follow me thru all the steps of my programs, and I will dwell in the library of the <code>360</code> forever!"|IBM/360. ''Psalm'', 1969.}} | |||
|} | |||
{| class=wikitable | {| class=wikitable | ||
! Glyph !! Valence !! Monadic call !! Dyadic call | ! Glyph !! Valence !! Monadic call !! Dyadic call | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>/</syntaxhighlight> || Monadic ||rowspan=2| [[Reduction]]<br>(allows axis) || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>⌿</syntaxhighlight> || Monadic || | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>.</syntaxhighlight> || Dyadic || || [[Inner product]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>∘.</syntaxhighlight> || Monadic || || [[Outer product]] | ||
|- | |- | ||
| < | | <syntaxhighlight lang=apl inline>[]</syntaxhighlight> || Monadic ||colspan=2| [[Function axis|Axis]] | ||
|} | |} | ||
{{APL | == References == | ||
<references/> | |||
== External links == | |||
* Bitsavers: [http://www.bitsavers.org/pdf/ibm/apl/ APL] | |||
* Norbert Kehrer: [https://norbertkehrer.github.io/ibm_5110/emu5110.html IBM 5110 Emulator] | |||
* Bitsavers: [http://www.bitsavers.org/pdf/ibm/5110/ IBM 5110] | |||
* Jamie Raymond: [https://www.youtube.com/playlist?list=PLLonoeGbb9ol-SBD5SosK13k85s3Z8780 APL\360] ― a 2021 7-part video tutorial | |||
{{APL dialects}}[[Category:IBM APL dialects]][[Category:Flat array languages]] |
Latest revision as of 03:51, 14 August 2024
APL\360 (stylised as APL\360) was the first major implementation of APL, following the prototype IVSYS/7090. It ran on the IBM System/360, and was completed in November 1966 but was mainly used within IBM until its public release in 1968. The APL\360 design was taken as the starting point for all later development, and its source code also became the basis of APL*PLUS. In 1973 its implementers, Larry Breed, Dick Lathwell and Roger Moore, were awarded the Grace Murray Hopper Award "for their work in the design and implementation of APL\360, setting new standards in simplicity, efficiency, reliability and response time for interactive systems."
Beginning in 1975, the IBM 5100 line of microcomputers offered APL\360 as one of two built-in ROM-based interpreted languages for the computer, complete with a keyboard and display that supported all the special symbols used in the language.
Significant developments to APL\360 included CMS/APL, which made use of the virtual storage capabilities of CMS, and APL.SV, which introduced shared variables, system variables and system functions. It was subsequently ported to the IBM System/370 and VSPC platforms until its final release in 1983, after which it was replaced by APL2.
Availability
APL\360's implementation was completed in 1966, and it was made available within IBM from the Watson Research Center lab in Yorktown Heights starting in November. From the beginning it was an interactive rather than a batch system, with programmers working directly from a terminal rather than submitting jobs to be run. It was generally available only for IBM projects, with IBM's emphasis on PL/I blocking its release as a standalone product, but was used in a few external projects including a 20-person class at NASA's Goddard Space Flight Center, and at the University of Alberta.[1] Syracuse University also connected a terminal to Yorktown Heights starting in late 1967.[2] In this period SUNY Binghamton became the first facility outside IBM to have APL installed, due to its connection with IBM-Endicott.[3]
IBM released APL\360 in August 1968 (APL\1130 had been released that spring)[4] as a Type-III or unsupported library. In 1969 it was offered as one of IBM's first program products, initially for DOS/360, and next with support for MVT.[5] These products were primarily used by universities, but also rapidly produced interest in time-sharing APL, with at least eight companies offering time-sharing in 1968. Business use of APL\360 was limited by its lack of support for reading and writing files, a problem that would only be addressed in IBM products with APL.SV in 1973. Many companies instead used a derivative system such as APL*PLUS modified to support files.[6]
Implementation
Internal types
APL\360 uses four element types for arrays, three numeric and one character:
- 1-bit packed Boolean
- 4-byte integer
- 8-byte floating point
- 1-byte character
Primitives
APL\360 evolved rapidly during its early development within IBM and more slowly as it became available to outside users. Here we show the primitives described in its documentation in 1968 when it was first released as a stand-alone product (a Type-III Library). Later additions include Matrix Inverse and Matrix Divide; Execute, Format, and Scan introduced by APL.SV; and an axis and Laminate form for the Catenate function.
Functions
Glyph | Monadic | Dyadic |
---|---|---|
+ |
Plus (Identity) | Plus |
- |
Negative | Minus |
× |
Signum | Times |
÷ |
Reciprocal | Divide |
⌈ |
Ceiling | Maximum |
⌊ |
Floor | Minimum |
* |
Exponential | Power |
⍟ |
Natural logarithm | Logarithm |
| |
Magnitude | Residue |
? |
Roll | Deal |
○ |
Pi times | Circular |
! |
Factorial | Binomial coefficient |
~ |
Not | |
∧ |
And | |
∨ |
Or | |
⍲ |
Nand | |
⍱ |
Nor | |
< |
Less | |
≤ |
Not greater | |
= |
Equal | |
≥ |
Not less | |
> |
Greater | |
≠ |
Not equal | |
⍴ |
Size | Reshape |
, |
Ravel | Catenate |
[] |
Indexing | |
⍳ |
Index generator | Index of |
↑ |
Take | |
↓ |
Drop | |
⍋ |
Grade up (allows axis) | |
⍒ |
Grade down (allows axis) | |
/ |
Compress (allows axis) | |
⌿ |
||
\ |
Expand (allows axis) | |
⍀ |
||
⌽ |
Reverse (allows axis) |
Rotate (allows axis) |
⊖
| ||
⍉ |
Transpose | |
∊ |
Membership | |
⊥ |
Decode | |
⊤ |
Encode |
Operators
|
Glyph | Valence | Monadic call | Dyadic call |
---|---|---|---|
/ |
Monadic | Reduction (allows axis) |
|
⌿ |
Monadic | ||
. |
Dyadic | Inner product | |
∘. |
Monadic | Outer product | |
[] |
Monadic | Axis |
References
- ↑ Harold A. Driscoll. "An APL Historical Note". APL Quote Quad Volume 8 Issue 1. 1977-09.
- ↑ Dana E. Cartwright and Phyllis A. Kent. "SHARP APL Syracuse" at IPSA '80.
- ↑ Ray Polivka and Jon McGrew. "A Quote Quad Interview: Garth Foster". Quote Quad Volume 26 Number 1. 1995-09.
- ↑ Adin Falkoff. "APL\360 History" (web) at APL69.
- ↑ Adin Falkoff. "The IBM family of APL systems". IBM Systems Journal Vol. 30 No. 4. 1991.
- ↑ Eric Iverson. "The Integration of APL into the Larger World of Data Processing" at IPSA '80.
External links
- Bitsavers: APL
- Norbert Kehrer: IBM 5110 Emulator
- Bitsavers: IBM 5110
- Jamie Raymond: APL\360 ― a 2021 7-part video tutorial
APL dialects [edit] | |
---|---|
Maintained | APL+Win ∙ APL2 ∙ APL64 ∙ APL\iv ∙ Aplette ∙ April ∙ Co-dfns ∙ Dyalog APL ∙ Dyalog APL Vision ∙ dzaima/APL ∙ GNU APL ∙ Kap ∙ NARS2000 ∙ Pometo ∙ TinyAPL |
Historical | A Programming Language ∙ A+ (A) ∙ APL# ∙ APL2C ∙ APL\360 ∙ APL/700 ∙ APL\1130 ∙ APL\3000 ∙ APL.68000 ∙ APL*PLUS ∙ APL.jl ∙ APL.SV ∙ APLX ∙ Extended Dyalog APL ∙ Iverson notation ∙ IVSYS/7090 ∙ NARS ∙ ngn/apl ∙ openAPL ∙ Operators and Functions ∙ PAT ∙ Rowan ∙ SAX ∙ SHARP APL ∙ Rationalized APL ∙ VisualAPL (APLNext) ∙ VS APL ∙ York APL |
Derivatives | AHPL ∙ BQN ∙ CoSy ∙ ELI ∙ Glee ∙ I ∙ Ivy ∙ J ∙ Jelly ∙ K (Goal, Klong, Q) ∙ KamilaLisp ∙ Lang5 ∙ Lil ∙ Nial ∙ RAD ∙ Uiua |
Overviews | Comparison of APL dialects ∙ Timeline of array languages ∙ Timeline of influential array languages ∙ Family tree of array languages |