Hello world APL language
Hope you remember I had mentioned about APL before.
- Download Dyalog from here with email (SERIALNUMBER will be sent to your email).
As mentioned in here
# install dependencies sudo apt install libncurses5 # Add you serial number to this file. vim $HOME/.dyalog/serial
- Download and install RIDE package
Run from installed programs. Look for Dyalog APL (not Dyalog APL TTY) or run the below.
env RIDE_SPAWN=/usr/bin/dyalog /usr/bin/ride-4.4
Hello World
- type tick i.e. ~ without shift. It means iota. Infact, C++ got that name from APL.
`i 10
# displays 1 to 10 both inclusive.
⍳ 10
1 2 3 4 5 6 7 8 9 10
# this is reduce operation
+/⍳10
55
# this is a scan operation.
+\⍳ 10
1 3 6 10 15 21 28 36 45 55
Online on a browser
Gettting started.
My Vision
If you can think in APL for your program, you can write better parallel codes in OMP or CUDA.