Alex He

...永远保持希望与激情...约会未来更强大的自己...

 

[译]God Wrote in Lisp Code

MP3连接

还是老外好玩,写lisp代码竟然写出了一首歌!

(define lyrics '(

I was taught assembler in my second year of school.
It's kinda like construction work - with a toothpick for a tool.
So when I made my senior year, I threw my code away,
And learned the way to program that I still prefer today.

Now, some folks on the Internet put their faith in C++.
They swear that it's so powerful, it's what God used for us.
And maybe it lets mortals dredge their objects from the C.
But I think that explains why only God can make a tree.

For God wrote in Lisp code
When he filled the leaves with green.
The fractal flowers and recursive roots:
The most lovely hack I've seen.
And when I ponder snowflakes, never finding two the same,
I know God likes a language with its own four-letter name.

Now, I've used a SUN under Unix, so I've seen what C can hold.
I've surfed for Perls, found what Fortran's for,
Got that Java stuff down cold.
Though the chance that I'd write COBOL code
is a SNOBOL's chance in Hell.
And I basically hate hieroglyphs, so I won't use APL.

Now, God must know all these languages, and a few I haven't named.
But the Lord made sure, when each sparrow falls,
that its flesh will be reclaimed.
And the Lord could not count grains of sand with a 32-bit word.
Who knows where we would go to if Lisp weren't what he preferred?

And God wrote in Lisp code
Every creature great and small.
Don't search the disk drive for man.c,
When the listing's on the wall.
And when I watch the lightning
Burn unbelievers to a crisp,
I know God had six days to work,
So he wrote it all in Lisp.

Yes, God had a deadline.
So he wrote it all in Lisp.))

译文,说实话,翻译得很垃圾

创造我们时用的东西;
当然,可能他能够让我们这帮凡夫俗子可以从C中挖掘出了对象来(译注:这句不知道咋翻译好);
但我认为这也就可以解释为什么只有上帝才能造树;

上帝用lisp写代码;
当他让树叶变绿时;
一定就是分形花(译注:不明白,fractal flowers在lisp中指什么)和迭代的根源;
这是我看到的最可爱的hack技术;
当我停下来思考的时候,永远发现任何两个都是不一样的(译注:不明白);
我知道上帝只喜欢这种只有四个字母名字的语言;

现在,我在Sun上使用Unix,因此什么都可以用C来做;
我用Perl搜索,并发现了Fortran的用途;
并经历了Java的渐渐淡却;
也有写过一些COBOL代码,当然,这也是在SNOBOL淘汰的时候;
基本上,我讨厌图画文字,所以我不会用APL;

现在,上帝必须知道所有这些语言,并且还有一些是我没有说出名字的;
但是,主很确信,每个麻雀落地后它的肉也必会被收回;
并且,主不能用一个32位的字去数沙子的个数;
如果他不喜欢Lisp,那谁知道我们将去何处呢?

上帝用lisp写代码,
每每创造大的东西或小东西;
当创造的东西排在墙上的时候,
他不用在磁盘上去搜索man.c;
当我看到闪电让不信任这燃烧殆尽时;
我知道上帝只有6天工作;
所以他用Lisp写了一切;

是的,上帝定了一个最后期限;
所以他用Lisp写了一切;

posted on 2011-11-18 09:49  Alex木头  阅读(368)  评论(0编辑  收藏  举报

导航