ACM Turing Lecture 1972.docx

上传人:b****5 文档编号:6824903 上传时间:2023-01-10 格式:DOCX 页数:11 大小:30.90KB
下载 相关 举报
ACM Turing Lecture 1972.docx_第1页
第1页 / 共11页
ACM Turing Lecture 1972.docx_第2页
第2页 / 共11页
ACM Turing Lecture 1972.docx_第3页
第3页 / 共11页
ACM Turing Lecture 1972.docx_第4页
第4页 / 共11页
ACM Turing Lecture 1972.docx_第5页
第5页 / 共11页
点击查看更多>>
下载资源
资源描述

ACM Turing Lecture 1972.docx

《ACM Turing Lecture 1972.docx》由会员分享,可在线阅读,更多相关《ACM Turing Lecture 1972.docx(11页珍藏版)》请在冰豆网上搜索。

ACM Turing Lecture 1972.docx

ACMTuringLecture1972

ACMTuringLecture1972

EWD340

TheHumbleProgrammer

by

EdsgerW.Dijkstra

AsaresultofalongsequenceofcoincidencesIenteredtheprogrammingprofessionofficiallyonthefirstspringmorningof1952andasfarasIhavebeenabletotrace,IwasthefirstDutchmantodosoinmycountry.Inretrospectthemostamazingthingwastheslownesswithwhich,atleastinmypartoftheworld,theprogrammingprofessionemerged,aslownesswhichisnowhardtobelieve.ButIamgratefulfortwovividrecollectionsfromthatperiodthatestablishthatslownessbeyondanydoubt.

Afterhavingprogrammedforsomethreeyears,IhadadiscussionwithA.vanWijngaarden,whowasthenmybossattheMathematicalCentreinAmsterdam,adiscussionforwhichIshallremaingratefultohimaslongasIlive.ThepointwasthatIwassupposedtostudytheoreticalphysicsattheUniversityofLeidensimultaneously,andasIfoundthetwoactivitiesharderandhardertocombine,Ihadtomakeupmymind,eithertostopprogrammingandbecomeareal,respectabletheoreticalphysicist,ortocarrymystudyofphysicstoaformalcompletiononly,withaminimumofeffort,andtobecome.....,yeswhat?

Aprogrammer?

Butwasthatarespectableprofession?

Forafterall,whatwasprogramming?

Wherewasthesoundbodyofknowledgethatcouldsupportitasanintellectuallyrespectablediscipline?

IrememberquitevividlyhowIenviedmyhardwarecolleagues,who,whenaskedabouttheirprofessionalcompetence,couldatleastpointoutthattheykneweverythingaboutvacuumtubes,amplifiersandtherest,whereasIfeltthat,whenfacedwiththatquestion,Iwouldstandempty-handed.FullofmisgivingsIknockedonvanWijngaarden'sofficedoor,askinghimwhetherIcould"speaktohimforamoment";whenIlefthisofficeanumberofhourslater,Iwasanotherperson.Forafterhavinglistenedtomyproblemspatiently,heagreedthatuptillthatmomenttherewasnotmuchofaprogrammingdiscipline,butthenhewentontoexplainquietlythatautomaticcomputerswereheretostay,thatwewerejustatthebeginningandcouldnotIbeoneofthepersonscalledtomakeprogrammingarespectabledisciplineintheyearstocome?

ThiswasaturningpointinmylifeandIcompletedmystudyofphysicsformallyasquicklyasIcould.Onemoraloftheabovestoryis,ofcourse,thatwemustbeverycarefulwhenwegiveadvicetoyoungerpeople;sometimestheyfollowit!

Anothertwoyearslater,in1957,ImarriedandDutchmarriageritesrequireyoutostateyourprofessionandIstatedthatIwasaprogrammer.ButthemunicipalauthoritiesofthetownofAmsterdamdidnotacceptitonthegroundsthattherewasnosuchprofession.And,believeitornot,butundertheheading"profession"mymarriageactshowstheridiculousentry"theoreticalphysicist"!

SomuchfortheslownesswithwhichIsawtheprogrammingprofessionemergeinmyowncountry.SincethenIhaveseenmoreoftheworld,anditismygeneralimpressionthatinothercountries,apartfromapossibleshiftofdates,thegrowthpatternhasbeenverymuchthesame.

Letmetrytocapturethesituationinthoseolddaysinalittlebitmoredetail,inthehopeofgettingabetterunderstandingofthesituationtoday.Whilewepursueouranalysis,weshallseehowmanycommonmisunderstandingsaboutthetruenatureoftheprogrammingtaskcanbetracedbacktothatnowdistantpast.

Thefirstautomaticelectroniccomputerswereallunique,single-copymachinesandtheywerealltobefoundinanenvironmentwiththeexcitingflavourofanexperimentallaboratory.Oncethevisionoftheautomaticcomputerwasthere,itsrealisationwasatremendouschallengetotheelectronictechnologythenavailable,andonethingiscertain:

wecannotdenythecourageofthegroupsthatdecidedtotryandbuildsuchafantasticpieceofequipment.Forfantasticpiecesofequipmenttheywere:

inretrospectonecanonlywonderthatthosefirstmachinesworkedatall,atleastsometimes.Theoverwhelmingproblemwastogetandkeepthemachineinworkingorder.Thepreoccupationwiththephysicalaspectsofautomaticcomputingisstillreflectedinthenamesoftheolderscientificsocietiesinthefield,suchastheAssociationforComputingMachineryortheBritishComputerSociety,namesinwhichexplicitreferenceismadetothephysicalequipment.

Whataboutthepoorprogrammer?

Well,totellthehonesttruth:

hewashardlynoticed.Foronething,thefirstmachinesweresobulkythatyoucouldhardlymovethemandbesidesthat,theyrequiredsuchextensivemaintenancethatitwasquitenaturalthattheplacewherepeopletriedtousethemachinewasthesamelaboratorywherethemachinehadbeendeveloped.Secondly,hissomewhatinvisibleworkwaswithoutanyglamour:

youcouldshowthemachinetovisitorsandthatwasseveralordersofmagnitudemorespectacularthansomesheetsofcoding.Butmostimportantofall,theprogrammerhimselfhadaverymodestviewofhisownwork:

hisworkderivedallitssignificancefromtheexistenceofthatwonderfulmachine.Becausethatwasauniquemachine,heknewonlytoowellthathisprogramshadonlylocalsignificanceandalso,becauseitwaspatentlyobviousthatthismachinewouldhavealimitedlifetime,heknewthatverylittleofhisworkwouldhavealastingvalue.Finally,thereisyetanothercircumstancethathadaprofoundinfluenceontheprogrammer'sattitudetohiswork:

ontheonehand,besidesbeingunreliable,hismachinewasusuallytooslowanditsmemorywasusuallytoosmall,i.e.hewasfacedwithapinchingshoe,whileontheotherhanditsusuallysomewhatqueerordercodewouldcaterforthemostunexpectedconstructions.Andinthosedaysmanyacleverprogrammerderivedanimmenseintellectualsatisfactionfromthecunningtricksbymeansofwhichhecontrivedtosqueezetheimpossibleintotheconstraintsofhisequipment.

Twoopinionsaboutprogrammingdatefromthosedays.Imentionthemnow,Ishallreturntothemlater.Theoneopinionwasthatareallycompetentprogrammershouldbepuzzle-mindedandveryfondofclevertricks;theotheropinonwasthatprogrammingwasnothingmorethanoptimizingtheefficiencyofthecomputationalprocess,inonedirectionortheother.

Thelatteropinionwastheresultofthefrequentcircumstancethat,indeed,theavailableequipmentwasapainfullypinchingshoe,andinthosedaysoneoftenencounteredthenaiveexpectationthat,oncemorepowerfulmachineswereavailable,programmingwouldnolongerbeaproblem,forthenthestruggletopushthemachinetoitslimitswouldnolongerbenecessaryandthatwasallwhatprogrammingwasabout,wasn'tit?

Butinthenextdecadessomethingcompletelydifferenthappened:

morepowerfulmachinesbecameavailable,notjustanorderofmagnitudemorepowerful,evenseveralordersofmagnitudemorepowerful.Butinsteadoffindingourselvesinthestateofeternalblissofallprogammingproblemssolved,wefoundourselvesuptoournecksinthesoftwarecrisis!

Howcome?

Thereisaminorcause:

inoneortworespectsmodernmachineryisbasicallymoredifficulttohandlethantheoldmachinery.Firstly,wehavegottheI/Ointerrupts,occurringatunpredictableandirreproduciblemoments;comparedwiththeoldsequentialmachinethatpretendedtobeafullydeterministicautomaton,thishasbeenadramaticchangeandmanyasystemsprogrammer'sgreyhairbearswitnesstothefactthatweshouldnottalklightlyaboutthelogicalproblemscreatedbythatfeature.Secondly,wehavegotmachinesequippedwithmulti-levelstores,presentingusproblemsofmanagementstrategythat,inspiteoftheextensiveliteratureonthesubject,stillremainratherelusive.Somuchfortheaddedcomplicationduetostructuralchangesoftheactualmachines.

ButIcalledthisaminorcause;themajorcauseis...thatthemachineshavebecomeseveralordersofmagnitudemorepowerful!

Toputitquitebluntly:

aslongastherewerenomachines,programmingwasnoproblematall;whenwehadafewweakcomputers,programmingbecameamildproblem,andnowwehavegiganticcomputers,programminghadbecomeanequallygiganticproblem.Inthissensetheelectronicindustryhasnotsolvedasingleproblem,ithasonlycreatedthem,ithascreatedtheproblemofusingitsproducts.Toputitinanotherway:

asthepowerofavailablemachinesgrewbyafactorofmorethanathousand,society'sambitiontoapplythesemachinesgrewinproportion,anditwasthepoorprogrammerwhofoundhisjobinthisexplodedfieldoftensionbetweenendsandmeans.Theincreasedpowerofthehardware,togetherwiththeperhapsevenmoredramaticincreaseinitsreliability,madesolutionsfeasiblethattheprogrammerhadnotdaredtodreamaboutafewyearsbefore.Andnow,afewyearslater,hehadtodreamaboutthemand,evenworse,hehadtotransformsuchdreamsintoreality!

Isitawonderthatwefoundourselvesinasoftwarecrisis?

No,certainlynot,andasyoumayguess,itwasevenpredictedwellinadvance;butthetroublewithminorprophets,ofcourse,isthatitisonlyfiveyearslaterthatyoureallyknowthattheyhadbeenright.

Then,inthemid-sixties,somethingterriblehappened:

thecomputersoftheso-calledthirdgenerationmadetheirappearance.Theofficialliteraturetellsusthattheirprice/performanceratiohasbeenoneofthemajordesignobjectives.Butifyoutakeas"performance"thedutycycleofthemachine'svariouscomponents,littlewillpreventyoufromendingupwithadesigninwhichthemajorpartofyourperformancegoalisreachedbyinternalhousekeepingactivitiesofdoubtfulnecessity.Andifyourdefinitionofpriceisthepricetobepaidforthehardware,littlewillpreventyo

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 法律文书 > 调解书

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1