内容简介
IfyouhaveaworkingknowledgeofHaskell,thishands-onbookshowsyouhowtousethelanguage’smanyAPIsandframeworksforwritingbothparallelandconcurrentprograms.You’lllearnhowparallelismexploitsmulticoreprocessorstospeedupcomputation-heavyprograms,andhowconcurrencyenablesyoutowriteprogramswiththreadsformultipleinteractions.AuthorSimonMarlowwalksyouthroughtheprocesswithlotsofcodeexamplesthatyoucanrun,experimentwith,andextend.DividedintoseparatesectionsonParallelandConcurrentHaskell,thisbookalsoincludesexercisestohelpyoubecomefamiliarwiththeconceptspresented:ExpressparallelisminHaskellwiththeEvalmonadandEvaluationStrategiesParallelizeordinaryHaskellcodewiththeParmonadBuildparallelarray-basedcomputations,usingtheRepalibraryUsetheAcceleratelibrarytoruncomputationsdirectlyontheGPUWorkwithbasicinterfacesforwritingconcurrentcodeBuildtreesofthreadsforlargerandmorecomplexprogramsLearnhowtobuildhigh-speedconcurrentnetworkserversWritedistributedprogramsthatrunonmultiplemachinesinanetwork
作者简介
SimonMarlowhasbeenaprominentfigureintheHaskellcommunityformanyyears.HeistheauthoroflargepartsoftheGlasgowHaskellCompiler,includinginparticularitshighlyregardedmulitcoreruntimesystem,alongwithmanyofthelibrariesandtoolsthatHaskellprogrammerstakeforgranted.Simonalsocontributestothefunctionalprogrammingresearchcommunity,andhasastringofpapersonsubjectsrangingfromgarbagecollectiontolanguagedesign.InrecentyearsSimon'sfocushasbeenonmakingHaskellanidealprogramminglanguageforparallelandconcurrentapplications,bothbydevelopingnewprogrammingmodelsandbuildingahigh-qualityimplementation.Simonspent14yearsatMicrosoft'sResearchlaborotoryinCambridge,beforetakingabreakinSpring2013toworkonthisbook.HecurrentlyworksatFacebookUK.