Jeff Dean的神话

转自各种网站。%%%%%Jeff Dean

这里写图片描述
During his own Google interview, Jeff Dean was asked the implications if P=NP were true. He said, “P = 0 or N = 1.” Then, before the interviewer had even finished laughing, Jeff examined Google’s public certificate and wrote the private key on the whiteboard.

当他被Google面试时,Jeff Dean被问及如果P=NP意味着什么。他说,“P=0 或者 N=1”。然后,在所有的面试官还没笑完之前,Jeff瞄了一眼Google的公共证书然后在白板上写上了对应的私钥。

Compilers don’t warn Jeff Dean. Jeff Dean warns compilers.

编译器从来不给Jeff编译警告,而是Jeff警告编译器

The rate at which Jeff Dean produces code jumped by a factor of 40 in late 2000 when he upgraded his keyboard to USB 2.0.

在2000年后段,Jeff码代码的速度突然激增了40倍,原因是他把自己的键盘升级到了USB 2.0

Jeff Dean builds his code before committing it, but only to check for compiler and linker bugs.

Jeff还是会在提交代码前把它们编译一遍,不过这么做的目的只是为了检查下编译器和链接器有没有bug

All pointers point to Jeff Dean.

所有指针都是指向Jeff的

gcc -O4 emails your code to Jeff Dean for a rewrite.

gcc的-O4优化选项是将你的代码邮件给Jeff重写一下

The speed of light in a vacuum used to be about 35 mph. Then Jeff Dean spent a weekend optimizing physics.

光在真空中的速度曾近是35英里每小时,后来Jeff花了一个周末对物理学进行了小小的优化

Jeff Dean was born on December 31, 1969 at 11:48 PM. It took him twelve minutes to implement his first time counter.

Jeff出生于1969年12月31日的下午11点48分,然后他花了整整12分钟的时间实现了他的第一个计时器。(背景:计算机中的计时器数值通常被设计为从1970年1月1日0点0分0秒到当前为止的秒数)

When Jeff Dean sends an ethernet frame there are no collisions because the competing frames retreat back up into the buffer memory on their source nic.

当Jeff向以太网发送一个数据包时从来不会有冲突,原因是本来要和它有冲突的包都默默撤回了缓冲区

Unsatisfied with constant time, Jeff Dean created the world’s first O(1/n)algorithm.

Jeff对常量的时间复杂度并不满足,于是他创造了世界上第一个O(1/n)的算法。(即随着问题规模的增大,其解决问题所花的时间会越短)

Jeff Dean was forced to invent asynchronous APIs one day when he optimized a function so that it returned before it was invoked.

Jeff曾被迫发明了异步API,原因是经他优化后的某个函数会在调用开始前返回

When Jeff Dean designs software, he first codes the binary and then writes the source as documentation.

当Jeff写软件时,他是直接码机器码的。写源代码只是为了作为文档使用。

Jeff Dean wrote an O(n^2) algorithm once. It was for the Traveling Salesman Problem.

Jeff曾无奈写过一次O(n^2)的算法,其解决的问题是旅行商问题。(该问题是NPC的,即计算机中最复杂最难解决的一类问题,许多人相信这些问题是没有多项式时间复杂度的解的)

Jeff Dean can beat you at connect four. In three moves.

Jeff在四子连珠的游戏中能赢你,在三步内

When your code has undefined behavior, you get a seg fault and corrupted data. When Jeff Dean’s code has undefined behavior, a unicorn rides in on a rainbow and gives everybody free ice cream.

当你的代码有不确定行为时,你通常得到一个段错误或者不正确的数据。当Jeff的代码有不确定行为时,孙悟空会驾着七彩云朵给每个人发免费的长寿仙桃

When Jeff Dean fires up the profiler, loops unroll themselves in fear.

当Jeff触发程序的程序性能采样时,循环会因害怕而自动展开。

Jeff Dean is still waiting for mathematicians to discover the joke he hid in the digits of PI.

Jeff依然孤独地等待着数学家们解开他在PI的数字中隐藏的笑话

Jeff Dean’s keyboard has two keys: 1 and 0.

Jeff的键盘多达两个键:1和0

When Jeff has trouble sleeping, he Mapreduces sheep.

当Jeff失眠时,他Mapreduce羊群。(Mapreduce是Jeff的作品之一,这个分布式处理的框架算法是Google立足的根本之一)

When Jeff Dean listens to mp3s, he just cats them to /dev/dsp and does the decoding in his head.

当Jeff听MP3时,他查看其中的二进制内容然后在他脑子里进行音频解码。

When Graham Bell invented the telephone, he saw a missed call from Jeff Dean.

当贝尔发明电话后,他发现电话里有个Jeff的未接来电。

Jeff Dean’s watch displays seconds since January 1st, 1970. He is never late.

Jeff的手表显示的数字是自1970年1月1日0点0分0秒以来的秒数,他因此从来不迟到。

Jeff starts his programming sessions with ‘cat > /dev/mem’.

Jeff在开始编程之前,会做’cat > /dev/mem’。(即把输入的内容直接导到内存中)

One day Jeff Dean grabbed his Etch-a-Sketch instead of his laptop on his way out the door. On his way back home to get his real laptop, he programmed the Etch-a-Sketch to play Tetris.

有一次Jeff出门时错将草图画板当笔记本拿了。结果在他回家取笔记本的路上,他对画板进行了重编程以在其上玩俄罗斯方块

Google search went down for a few hours in 2002, and Jeff Dean started handling queries by hand. Search Quality doubled.

在2002年,Google搜索曾挂了几个小时,于是Jeff站出来手动处理用户的查询请求。搜索准确度翻了番

The x86-64 spec includes several undocumented instructions marked ‘private use’. They are actually for Jeff Dean’s use.

x86-64指令集中有一些没有被记入到文档的‘私用’指令。事实上,他们是给Jeff用的

mantri@mantri-laptop~$ rm -r /
rm: cannot remove root directory ‘/’

mantri@mantri-laptop~$ su - jeffdean -c “rm -r /”
I am extremely sorry. Removing root directory…

不解释

Jeff Dean once shifted a bit so hard, it ended up on another computer.

有次Jeff移位移得太恨了,结果那一位跑到另一台计算机上去了

Jeff Dean has gone to /dev/null and come back.

Jeff从/dev/null那涅槃了。(庞统啊~)

Jeff又从/dev/null那涅槃了。(擦!)

Jeff Dean sorts his phone contacts by their vcard’s md5 checksums.

Jeff通讯录的排序规则是按照联系人的md5值

Jeff Dean doesn’t kill processes, he slays them.

Jeff他不杀进程,他肢解虐杀它们

The needle in haystack found Jeff Dean

海底的针会自己找上Jeff

All of the Google App Engine is actually hosted from Jeff Dean’s Nexus S

Google App Engine的服务器实际上是Jeff的Nexus S

Jeff Deans’s keyboard doesn’t have a Ctrl key because nothing controls Jeff Dean.

Jeff的键盘压根就没有Ctrl(控制)键,因为没有什么东西能控制Jeff

You name three pointers, Einstein, Euler, and Turing, when you de-reference them, all you get is Jeff Dean.

如果你命名三个指针分别为爱因斯坦、欧拉和图灵,当你查看它们的指向时,你看到的都会是Jeff

Jeff Dean 去Google面试的情景是这样的,面试官问他:“如果P=NP为真,能推导出什么?”Jeff回到:“P = 0 或 N = 1。”还没等面试官笑完,Jeff趁机检查了Google的公共证书,走到白板前写下了Google的私钥。
(P=NP?是个还未解决的计算机领域难题。)

编译器从不警告Jeff Dean,只有Jeff Dean警告编译器。

2000年底, Jeff Dean写代码的速度提高了40倍,因为升级了USB2.0键盘。

Jeff Dean构建完代码后提交代码,这样做的目的只是为了检查编译器和链接器有没有BUG。

Jeff Dean重新调整了一下办公环境和设备的位置,不是为了保护Jeff的身体,而是为了保护键盘。

Jeff Dean既不用Emacs也不用Vim,他直接输入代码到zcat,因为这样更快。

Jeff Dean发送以太网封包从不会发生冲突,因为其他封包都吓得逃回了网卡的缓冲区里。

因为对常数级的时间复杂度感到不满意,Jeff Dean发明了世界上第一个O(1/n)算法。

有一次Jeff Dean去旅行,期间Google的几个服务神秘地罢工了好几天。这是真事。

Jeff Dean被迫发明了异步API因为有一天他把一个函数优化到在调用前就返回结果了。

所有的指针都指向Jeff Dean。

GCC编译器的O4优化级是这么运作的:编译器把你的代码发送给Jeff Dean,Jeff Dean把你的烂代码删除,写出一个真正牛逼的。

Jeff Dean有一次没有通过图灵测试,因为他在不到一秒钟的时间里在一堆数字里面正确无误地挑出了203个斐波纳契数。

以前光速都是35英里/小时,之所以有现在这么快,是因为Jeff Dean花了一个周末的时间优化了物理定律。

Jeff Dean其实出生于1969年12月31日夜间11:48,他花了12分钟让他人生中第一个计时器成功运行。

Jeff Dean向以太网内发送了一个数据包,但是不会造成任何冲突,因为其它数据包都吓得退回自己的网卡的缓存里去了。

Jeff Dean去度假后,Google全线产品服务都神秘地停了几天,这是真事!

Jeff Dean设计软件先用二进制写代码,再写下源代码当成文档。

Jeff Dean有次写了一个O(n^2)算法,用来解决货郎担问题。
(货郎担问题是一个多局部最优的最优化问题:有n个城市,一个推销员要从其中某一个城市出发,唯一走遍所有的城市,再回到他出发的城市,求最短的路线。也即求一个最短的哈密顿回路。)

有一次,Jeff Dean只调用了一个printf()函数就实现了一个能运行的网页服务器,虽然其他工程师为这行代码添加了几千行注释,但是还是不能解释清楚是怎么办到的。今天Google搜索前端就是用的这个程序。

玩四子棋,Jeff Dean只用三步棋就能赢你。

要是一般人的代码里有未定义行为,就会提示有段错误,然后数据崩溃。但是如果Jeff Dean的代码里有未定义行为,这时会有一匹踩着彩虹降临的独角兽,给所有人带来免费的冰激凌。

Jeff Dean在圆周率里藏了一个笑话,他一直在等待数学家发现这个笑话。

Jeff Dean的键盘只有两个键:1和0。

Jeff经常睡不着,因为他数羊每次都超过一万亿只,而且每一只都不消失,更可怕的是每一只羊在干什么他都知道。

Jeff Dean的手表比较特殊,其实是个计时器,从1970年1月1日开始计时,Jeff从来没迟到过。

Jeff Dean可以对任何类型数据进行无损压缩。

计算机能用二进制读出Jeff Dean。

Jeff Dean写出的无限循环运行了5秒。

Jeff Dean根据手机上联系人的电子名片的MD5校验值进行归类。

Jeff Dean可以用正则表达式解析HTML。

Jeff Dean写的所有代码都很干净,有一次他心血来潮,做了个副功能,后来成了Gmail。

Jeff Dean可以判定任何一个电子的准确位置和速度。

Jeff Dean不会杀进程,只会肢解进程。

既然Jeff Dean那么牛,为什么Vint Cerf 发明了互联网?因为Jeff没时间啊。

伏地魔见了Jeff Dean被吓成屎。

Jeff Dean使用的网络提供商所有的流量都要走Jeff的路由器过,因为这样更快。
Jeff Dean曾经写过一个O(n^2)算法,那是为了解决旅行商问题。

Jeff Dean有一次用一句printf实现了一个web服务器。其他工程师添加了数千行注释但依然无法完全解释清楚其工作原理。而这个程序就是今天Google首页的前端。

真事。Jeff Dean有一次只提交了一项变更就使得(总的二进制文件体积缩小了3%)AND(一个本来优先度较低的python bug的优先度变成紧急),并且在那项变更中不包含任何python代码。

Jeff Dean can beat you at connect four. In three moves.(这句没看懂,还望看懂的同学指点一下orz)(补译:Jeff Dean可以下四子棋时用三步就击败你。——感谢lx同学们的指点。)

当你的代码出现未定义行为时,你会得到一个segmentation fault和一堆损坏的数据。当Jeff Dean的代码出现未定义行为时,一个独角兽会踏着彩虹从天而降并给每个人提供免费的冰激凌。

当Jeff Dean运行一个profiler时,循环们都会恐惧地自动展开。

Jeff Dean想听mp3的时候,他只需要把文件cat到/dev/dsp,然后在脑内解码。

Graham Bell当初发明出电话时,他看到有一个来自Jeff Dean的未接来电。

Jeff Dean写程序是从’cat >/dev/mem’开始的。

有一天Jeff Dean出门时把笔记本错拿成了绘画板。在他回去拿笔记本的路上,他在绘图板上写了个俄罗斯方块打发时间。

Jeff Dean有时候会调整他的工作环境和设备,不过这是为了保护他的键盘。(注:ergonomic evaluation似乎针对个人的工作环境定制服务,所以这里姑且就译成了“调整工作环境和设备”)

gcc -O4的功能是发送代码给Jeff Dean重写。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值