资源描述:
《[Parallel.and.Concurrent.Programming.in.Haskell(2013.7)].Simon.Marlow.文字版》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ParallelandConcurrentProgramminginHaskellSimonMarlowParallelandConcurrentProgramminginHaskellbySimonMarlowCopyright©2013SimonMarlow.Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reill
2、ybooksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribooksonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:800-998-9938orcorporate@oreilly.com.Editors:AndyOramandMa
3、riaGulickIndexer:WordCoIndexingServicesProductionEditor:MelanieYarbroughCoverDesigner:RandyComerCopyeditor:GillianMcGarveyInteriorDesigner:DavidFutatoProofreader:JulieVanKeurenIllustrator:RebeccaDemarestJuly2013:FirstEditionRevisionHistoryfortheFirstEdition:2013-07-10
4、:FirstreleaseSeehttp://oreilly.com/catalog/errata.csp?isbn=9781449335946forreleasedetails.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.ParallelandConcurrentProgramminginHaskell,theimageofascrawledbutterflyfish,a
5、ndrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrade‐markclaim,thedesignationshavebeenprinte
6、dincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedherein.ISBN:978-1-449-33594-6[LSI]TableofContentsPreface............
7、...........................................................ix1.Introduction................................................................1Terminology:ParallelismandConcurrency2ToolsandResources3SampleCode4PartI.ParallelHaskell2.BasicParallelism:TheEvalMonad.........
8、.....................................9LazyEvaluationandWeakHeadNormalForm9TheEvalMonad,rpar,andrseq15Example:ParallelizingaS