Programming Comparisons: Infinite Hello


Problem: the shortest possible complete program in a given language which, when run, prints "hello\n" forever.

sh: 9 yes hello
befunge-98: 11 a"olleh"6k,
false: 14 [1]["hello "]#
sed: 14 :l i\ hello bl
dc: 15 [[hello ]Pdx]dx
vi: 16 :map g ohello^V^[g
ruby: 17 loop{puts'hello'}
lisp: 20 (loop(print"hello"))
perl: 20 print"hello "while 1
postscript: 20 {(hello\n)print}loop
python: 20 while 1:print"hello"
tcl: 20 while 1 {puts hello}
basic: 22 1 PRINT "hello" GOTO 1
php: 23 <?for(;;)echo"hello "?>
awk: 24 {while(1)print("hello")}
troff: 24 .de x .tm hello .x .. .x
prolog: 25 repeat,write(hello),\+nl.
c: 29 main(){for(;;)puts("hello");}
forth: 31 begin s" hello" type cr 0 until
gnu smalltalk: 33 [1>0]whileTrue:['hello'displayNl]
scheme: 35 (do()(#f)(display"hello")(newline))
ocaml: 36 while 1>0do print_endline"hello"done
f77: 42 1 PRINT*,'HELLO' GOTO1 END
haskell: 44 module Main where main=putStr$cycle"hello\n"
pascal: 48 Program h;begin while 1>0do writeln('hello')end.
brainfuck: 60 ++++++++++[>+++++++++++>+<<-]>[------.---.+++++++..+++.->.<]
modula3: 64 MODULE Main;IMPORT IO;BEGIN LOOP IO.Put("hello\n");END END Main.
java: 80 class H{public static void main(String[]a){for(;;)System.out.println("hello");}}
intercal: 155 DO,1<-#6 DO,1SUB#1<-#234 DO,1SUB#2<-#112 DO,1SUB#3<-#112 DO,1SUB#4<-#0 DO,1SUB#5<-#64 DO,1SUB#6<-#166 PLEASECOMEFROM(10) PLEASEREADOUT,1 (10)DO,1SUB#1<-#58