1.DuringhisownGoogleinterview,JeffDeanwasaskedtheimplicationsifP=NPweretrue.Hesaid,"P=0orN=1."Then,beforetheinterviewerhadevenfinishedlaughing,JeffexaminedGoogle’spubliccertificateandwrotetheprivatekeyonthewhiteboard.
當(dāng)他被Google面試時(shí),JeffDean被問及如果P=NP意味著什么。他說(shuō),“P=0或者N=1”。然后,在所有的面試官還沒笑完之前,Jeff瞄了一眼Google的公共證書然后在白板上寫上了對(duì)應(yīng)的私鑰。
2.Compilersdon’twarnJeffDean.JeffDeanwarnscompilers.
編譯器從來(lái)不給Jeff編譯警告,而是Jeff警告編譯器
3.TherateatwhichJeffDeanproducescodejumpedbyafactorof40inlate2000whenheupgradedhiskeyboardtoUSB2.0.
在2000年后段,Jeff碼代碼的速度突然激增了40倍,原因是他把自己的鍵盤升級(jí)到了USB2.0
4.JeffDeanbuildshiscodebeforecommittingit,butonlytocheckforcompilerandlinkerbugs.
Jeff還是會(huì)在提交代碼前把它們編譯一遍,不過這么做的目的只是為了檢查下編譯器和鏈接器有沒有bug
5.AllpointerspointtoJeffDean.
所有指針都是指向Jeff的
6.gcc-O4emailsyourcodetoJeffDeanforarewrite.
gcc的-O4優(yōu)化選項(xiàng)是將你的代碼郵件給Jeff重寫一下
7.Thespeedoflightinavacuumusedtobeabout35mph.ThenJeffDeanspentaweekendoptimizingphysics.
光在真空中的速度曾近是35英里每小時(shí),后來(lái)Jeff花了一個(gè)周末對(duì)物理學(xué)進(jìn)行了小小的優(yōu)化
8.JeffDeanwasbornonDecember31,1969at11:48PM.Ittookhimtwelveminutestoimplementhisfirsttimecounter.
Jeff出生于1969年12月31日的下午11點(diǎn)48分,然后他花了整整12分鐘的時(shí)間實(shí)現(xiàn)了他的第一個(gè)計(jì)時(shí)器。(背景:計(jì)算機(jī)中的計(jì)時(shí)器數(shù)值通常被設(shè)計(jì)為從1970年1月1日0點(diǎn)0分0秒到當(dāng)前為止的秒數(shù))
9.WhenJeffDeansendsanethernetframetherearenocollisionsbecausethecompetingframesretreatbackupintothebuffermemoryontheirsourcenic.
當(dāng)Jeff向以太網(wǎng)發(fā)送一個(gè)數(shù)據(jù)包時(shí)從來(lái)不會(huì)有沖突,原因是本來(lái)要和它有沖突的包都默默撤回了緩沖區(qū)
10.Unsatisfiedwithconstanttime,JeffDeancreatedtheworld'sfirstO(1/n)algorithm.
Jeff對(duì)常量的時(shí)間復(fù)雜度并不滿足,于是他創(chuàng)造了世界上第一個(gè)O(1/n)的算法。(即隨著問題規(guī)模的增大,其解決問題所花的時(shí)間會(huì)越短)
11.JeffDeanwasforcedtoinventasynchronousAPIsonedaywhenheoptimizedafunctionsothatitreturnedbeforeitwasinvoked.
Jeff曾被迫發(fā)明了異步API,原因是經(jīng)他優(yōu)化后的某個(gè)函數(shù)會(huì)在調(diào)用開始前返回
12.WhenJeffDeandesignssoftware,hefirstcodesthebinaryandthenwritesthesourceasdocumentation.
當(dāng)Jeff寫軟件時(shí),他是直接碼機(jī)器碼的。寫源代碼只是為了作為文檔使用。
13.JeffDeanwroteanO(n^2)algorithmonce.ItwasfortheTravelingSalesmanProblem.
Jeff曾無(wú)奈寫過一次O(n^2)的算法,其解決的問題是旅行商問題。(該問題是NPC的,即計(jì)算機(jī)中最復(fù)雜最難解決的一類問題,許多人相信這些問題是沒有多項(xiàng)式時(shí)間復(fù)雜度的解的)
14.JeffDeancanbeatyouatconnectfour.Inthreemoves.
Jeff在四子連珠的游戲中能贏你,在三步內(nèi)
15.Whenyourcodehasundefinedbehavior,yougetasegfaultandcorrupteddata.WhenJeffDean'scodehasundefinedbehavior,aunicornridesinonarainbowandgiveseverybodyfreeicecream.
當(dāng)你的代碼有不確定行為時(shí),你通常得到一個(gè)段錯(cuò)誤或者不正確的數(shù)據(jù)。當(dāng)Jeff的代碼有不確定行為時(shí),孫悟空會(huì)駕著七彩云朵給每個(gè)人發(fā)免費(fèi)的長(zhǎng)壽仙桃
16.WhenJeffDeanfiresuptheprofiler,loopsunrollthemselvesinfear.
當(dāng)Jeff觸發(fā)程序的程序性能采樣時(shí),循環(huán)會(huì)因害怕而自動(dòng)展開。
17.JeffDeanisstillwaitingformathematicianstodiscoverthejokehehidinthedigitsofPI.
Jeff依然孤獨(dú)地等待著數(shù)學(xué)家們解開他在PI的數(shù)字中隱藏的笑話
18.JeffDean'skeyboardhastwokeys:1and0.
Jeff的鍵盤多達(dá)兩個(gè)鍵:1和0
19.WhenJeffhastroublesleeping,heMapreducessheep.
當(dāng)Jeff失眠時(shí),他Mapreduce羊群。(Mapreduce是Jeff的作品之一,這個(gè)分布式處理的框架算法是Google立足的根本之一)
20.WhenJeffDeanlistenstomp3s,hejustcatsthemto/dev/dspanddoesthedecodinginhishead.
當(dāng)Jeff聽MP3時(shí),他查看其中的二進(jìn)制內(nèi)容然后在他腦子里進(jìn)行音頻解碼。
21.WhenGrahamBellinventedthetelephone,hesawamissedcallfromJeffDean.
當(dāng)貝爺在沙漠中逮到一個(gè)手機(jī)時(shí),他發(fā)現(xiàn)手機(jī)里有個(gè)Jeff的未接來(lái)電。
當(dāng)貝爾發(fā)明電話后,他發(fā)現(xiàn)電話里有個(gè)Jeff的未接來(lái)電。
22.JeffDean'swatchdisplayssecondssinceJanuary1st,1970.Heisneverlate.
Jeff的手表顯示的數(shù)字是自1970年1月1日0點(diǎn)0分0秒以來(lái)的秒數(shù),他因此從來(lái)不遲到。
23.Jeffstartshisprogrammingsessionswith'cat>/dev/mem'.
Jeff在開始編程之前,會(huì)做'cat>/dev/mem'。(即把輸入的內(nèi)容直接導(dǎo)到內(nèi)存中)
24.OnedayJeffDeangrabbedhisEtch-a-Sketchinsteadofhislaptoponhiswayoutthedoor.Onhiswaybackhometogethisreallaptop,heprogrammedtheEtch-a-SketchtoplayTetris.
有一次Jeff出門時(shí)錯(cuò)將草圖畫板當(dāng)筆記本拿了。結(jié)果在他回家取筆記本的路上,他對(duì)畫板進(jìn)行了重編程以在其上玩俄羅斯方塊
附一張說(shuō)明Etch-a-Sketch是什么的圖
//是一種畫板,使用者通過控制兩個(gè)旋鈕來(lái)控制畫筆在畫板上的移動(dòng)。
25.Googlesearchwentdownforafewhoursin2002,andJeffDeanstartedhandlingqueriesbyhand.SearchQualitydoubled.
在2002年,Google搜索曾掛了幾個(gè)小時(shí),于是Jeff站出來(lái)手動(dòng)處理用戶的查詢請(qǐng)求。搜索準(zhǔn)確度翻了番
26.Thex86-64specincludesseveralundocumentedinstructionsmarked'privateuse'.TheyareactuallyforJeffDean'suse.
x86-64指令集中有一些沒有被記入到文檔的‘私用’指令。事實(shí)上,他們是給Jeff用的
27.
mantri@mantri-laptop~$rm-r/
rm:cannotremoverootdirectory‘/’
mantri@mantri-laptop~$su-jeffdean-c"rm-r/"
Iamextremelysorry.Removingrootdirectory...
不解釋
//rm-r是Linux系統(tǒng)中刪除根目錄所有文件的命令,這是不可能執(zhí)行的(如同在win系統(tǒng)中不允許格式化c盤一樣),su命令是在低權(quán)限賬戶操作Linux系統(tǒng)時(shí)想執(zhí)行高權(quán)限命令時(shí)使用的。
28.JeffDeanonceshiftedabitsohard,itendeduponanothercomputer.
有次Jeff移位移得太恨了,結(jié)果那一位跑到另一臺(tái)計(jì)算機(jī)上去了
29.JeffDeanhasgoneto/dev/nullandcomeback.
Jeff從/dev/null那涅槃了。(龐統(tǒng)啊~)
Jeff又從/dev/null那涅槃了。(擦!)
30.JeffDeansortshisphonecontactsbytheirvcard'smd5checksums.
Jeff通訊錄的排序規(guī)則是按照聯(lián)系人的md5值
31.JeffDeandoesn'tkillprocesses,heslaysthem.
Jeff他不殺進(jìn)程,他肢解虐殺它們
32.TheneedleinhaystackfoundJeffDean
海底的針會(huì)自己找上Jeff

--33.AlloftheGoogleAppEngineisactuallyhostedfromJeffDean'sNexusS
GoogleAppEngine的服務(wù)器實(shí)際上是Jeff的NexusS
34.JeffDeans’skeyboarddoesn’thaveaCtrlkeybecausenothingcontrolsJeffDean.
Jeff的鍵盤壓根就沒有Ctrl(控制)鍵,因?yàn)闆]有什么東西能控制Jeff
35.Younamethreepointers,Einstein,Euler,andTuring,whenyoude-referencethem,allyougetisJeffDean.
如果你命名三個(gè)指針分別為愛因斯坦、歐拉和圖靈,當(dāng)你查看它們的指向時(shí),你看到的都會(huì)是Jeff
愛華網(wǎng)



