Home

Advertisement

Живой журнал Б.Л.В. Below are the 1 most recent journal entries recorded in the "b_l_v" journal:
February 6th, 2008
02:34 pm

[Link]

Haskell -> Python -> Ruby -> Haskell
q a b c=putStrLn $ b ++ [toEnum 10,'q','('] ++ show b ++ [','] ++ show c ++ [','] ++ show a ++ [')']
main=q "q a b c=putStrLn $ b ++ [toEnum 10,'q','('] ++ show b ++ [','] ++ show c ++ [','] ++ show a ++ [')']" "def q(a,b,c):print b+chr(10)+'q('+repr(b)+','+repr(c)+','+repr(a)+')'" "def e(x) return 34.chr+x+34.chr end;def q(a,b,c) print b+10.chr+'main=q '+e(b)+' '+e(c)+' '+e(a)+' '+10.chr end"


via http://sigfpe.blogspot.com/2008/02/third-order-quine-in-three-languages.html

Tags: , , ,

(Leave a comment)

Powered by LiveJournal.com

Advertisement