APL

( a programming language ) 

This language is crazy

Enter Kenneth E. Iverson

Relic found in ancient Mayan ruins

A pointless language

  • Write-only
  • Short programs, probably about 1 LOC 
  • "Keywords" are symbols

Basics

Some stuff

> 5 + 5
10

> 5 × 5
25

> 1 2 3 + 5
6 7 8

> 1 2 3 + 5 6 7
6 8 10

Some stuff ( part 2)

> ⍳10
1 2 3 4 5 6 7 8 9 10

> + / ⍳10
50

> 2 2 ⍴ 3 4 5 6
3 4
5 6

> ? 10
8 # any random number between 0 to 10

> 6 ? 10
3 10 4 6 8 9 

Even more stuff

[name]←[expression]

> throws ← 500 ? 1000
> throws
944 783 954 279 440 812 624 797 173 ...

>  + / throws
257597

> + / 500> throws
243

> + / 500< throws
256

Operators

Where can I learn more?

classes are like ~£2k a day per person 

The end

  "There are three things a man must do
   before his life is done;
   Write two lines in APL,
   And make the buggers run."
   -- Stan Kelly-Bootle, 'The Devil's DP Dictionary'
life ← { ⊃ 1 ω ∨ . ∧ 3 4 = +/ +⌿ 1 0 ‾1 ∘.θ 1 - ‾1 Φ″ ⊂ ω }
Made with Slides.com