Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I HATE BASH

Name: Anonymous 2012-11-01 10:18

It's so shit. Shittier than PHP by at least 10 orders of magnitude.

Link related, it's the nigger who wrote it:
http://en.wikipedia.org/wiki/Brian_Fox_(computer_programmer)

Name: Anonymous 2012-11-02 6:05

>>29

Indeed.  ksh realises that a shell is just a shell, and doesn't need to include a TCP library and all sorts of bullshit.

>>33

This!  Rather than using a shitty bloated shell with half-assed programming features tacked on, just use a nice simple programming language that works and a nice simple shell that works.

awk

You guys will like this: some guy wrote a minimal LISP interpretor in awk!

http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/impl/awk/


$ awk -f walk walk.w numbers.w p -
-> (set 'ura '(lambda (x) (list 'you 'are 'a x)))
(lambda (x) (list (quote you) (quote are) (quote a) x))
-> (ura 'fag)
(you are a fag)
-> (ura '"good person")
(you are a good person)
->
-> (set 'kvprepend '(lambda (key val l) (cons (list key val) l)))
(lambda (key val l) (cons (list key val) l))
-> (set 'kvsearch '(lambda (key l) (cond
3>   ((eq key (caar l)) (cadar l))
3>   ((cdr l) (kvsearch key (cdr l)))
3> )))
(lambda (key l) (cond ((eq key (caar l)) (cadar l)) ((cdr l) (kvsearch key (cdr l)))))
-> (set 'kv (kvprepend 1 'one (kvprepend 2 'two (kvprepend 3 'three (kvprepend 4 'four () )))))
((1 one) (2 two) (3 three) (4 four))
-> (kvsearch 2 kv)
two
-> (kvsearch 5 kv)
()
-> (kvprepend 'lol 'wut kv)
((lol wut) (1 one) (2 two) (3 three) (4 four))
-> (kvsearch 'lol (kvprepend 'lol 'wut kv))
wut
-> ^d110 atoms, 1457 list cells.


This is the coolest thing ever!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List