Quantcast
Channel: What programming language should you learn?
Viewing all articles
Browse latest Browse all 50

What programming language should you learn?

$
0
0

@PatRx2 wrote:

Hello World in INTERCAL:

DO ,1 <- #13
PLEASE DO ,1 SUB #1 <- #238
DO ,1 SUB #2 <- #108
DO ,1 SUB #3 <- #112
DO ,1 SUB #4 <- #0
DO ,1 SUB #5 <- #64
DO ,1 SUB #6 <- #194
DO ,1 SUB #7 <- #48
PLEASE DO ,1 SUB #8 <- #22
DO ,1 SUB #9 <- #248
DO ,1 SUB #10 <- #168
DO ,1 SUB #11 <- #24
DO ,1 SUB #12 <- #16
DO ,1 SUB #13 <- #162
PLEASE READ OUT ,1
PLEASE GIVE UP

Hello World in APL:

'Hello World!'

Quicksort in APL (I'm not even going to bother with INTERCAL's Quicksort):

qsort ← {1≥⍴⍵:⍵ ⋄ e←⍵[?⍴⍵] ⋄ (∇(⍵e)/⍵)}


Malbolge and INTERCAL are great for driving the programmer nuts, but only APL combines very real power and elegance with absolute insanity. Note that Quicksort is only a bit longer than Hello World. Note also that you could easily add other transformations to the sorted array before the assignment. 5 lines can call up the Great Old One of your choice; 6 lines can bring all the Outer Gods crowding in.

However, APL does require a special keyboard, so, if you would like to bring chaos to the universe, but you're worried about tentacles sprouting from the runes on the key caps (and, really, who wouldn't be?), there's J.

Read full topic


Viewing all articles
Browse latest Browse all 50

Trending Articles