Older Versions of APL

Overview

This page is for documenting examples of older versions of APL. This is primarily for nostalgic reasons.

APL \ 1130

A simulator is available for APL \ 1130. User KymFarnik has a build that uses 2741 emulation and Teraterm and is available here IBM1130 Simulator with APL \ 1130. Note that APL \ 1130 was quite limited, eg. arrays could only have two dimensions and vectors were limited to 255 items.

The IBM 1130 was a small engineering computer that was as close to a PC as was available at that time. There are a few IBM 1130's still maintained by enthusiasts today. There is an IBM 1130 resource site that has a wealth of information.

A copy of the student primer is available as a scanned PDF.

Here is a sample of APL \ 1130 code implementing Conway's Game of Life

      ∇LIFE[⎕]∇
[0]   NG←LIFE CG;W
[1]   W←CG+(¯1⊖CG)+(1⊖CG)+(¯1⌽CG)+(1⌽CG)
[2]   W←W+(1⊖1⌽CG)+(¯1⊖1⌽CG)+(1⊖¯1⌽CG)+(¯1⊖¯1⌽CG)
[3]   NG←(3=W)+(CG∧4=W)
      RP←5 5⍴0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 1 0 0
      RP
0 0 0 0 0
0 0 1 1 0
0 1 1 0 0
0 0 1 0 0
0 0 0 0 0
      LIFE RP
0 0 0 0 0
0 1 1 1 0
0 1 0 0 0
0 1 1 0 0
0 0 0 0 0
      LIFE LIFE RP
0 0 1 0 0
0 1 1 0 0
1 0 0 1 0
0 1 1 0 0
0 0 0 0 0

APL\360

APL\360 was the first implementation of APL in 1968 that ran on an IBM 360.

RetroAPL (last edited 2015-09-23 10:49:13 by anonymous)