Le Ralf, The Blog
All | Moods | Prog | Rants | Android | Projects | Trackday
Generated on 2011-07-24 21:11:26 by Rig3 0.4-456
2006/07/28 sqrt
π 2006-07-28 00:00 by Ralf in Prog
From SGA 2x14 "Grace under pressure", when they zoom on McKay's tablet connected to the puddlejumper's crystals (around 11:46):

... print -u5 exec 3<&p

read -ru3 line print -r "$line" read -ru3 line print -r "$line" float r a=1 b=1.5 c=-1... (( r*sqrt(b*b-4*a*c) )) print r1=$(( (-b+r)/2 )) r2=$(( (-b-r)/2 )) integer even=0 odd=0 ... for ((count=0; count < 100; count++)) do if ((RANDOM%2=0)) then even=even+1 else odd=odd+1 fi done print even=$even odd=$odd TIMEOUT=10 select i in list edit quit do case $i in list) cat "$foo";; edit) ${EDITOR-vi} "$foo";; quit) break;; "") print ... esac ...

Outch. That seems like an awful syntax, very bash-like and extremely low-level. You'd expect something higher level for a scientific genius to use. Especially since it never takes more than a handful of keystrokes to reprogram entire subsystems.

Oh well, it's not like SG/SGA plots try to be logical very often.

Almost totally unrelated it would be fun to have a language where the reserved keywords are ortva raq vs gura ryfr sbe rnpu va pnfr fryrpg juvyr hagvy qb qbar. Another option would be to force Latin declinations when using verbs for method names in call statements :-) Sorry about that. I had too much fun with Intercal when I was younger and it obviously had some consequences.


More pages: October 2008 June 2008 November 2007 May 2007 December 2006 August 2006 July 2006 April 2006 January 2006 December 2005 October 2005 September 2005 June 2005 May 2005 April 2005 March 2005 December 2004