欢迎来到天天文库
浏览记录
ID:40601533
大小:535.72 KB
页数:52页
时间:2019-08-04
《dart_streams_are_the_future》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、AsynchronousProgramminginDartStreamsaretheFutureFlorianLoitsch,GoogleWhoamI?FlorianLoitsch,softwareengineeratGoogleProjects●Hop-multi-tierlanguagebasedonBigloo●Scheme2Js-Scheme-to-JavaScriptcompiler●V8-high-performanceJavaScriptvirtualmachine●Dart-st
2、ructuredprogrammingforthewebTechleadofthecorelibrariesforthelast9months.WhatisDart?WhatisDart?●Unsurprisingobject-orientedprogramminglanguage●Class-basedsingleinheritance●Familiarsyntaxwithproperlexicalscoping●Optionalstatictypeannotationsmain(){for(
3、inti=99;i>0;i--){print("$ibottlesofbeeronthewall,....");print("Takeonedownandpassitaround...");}}MotivationsWewanttobuildgreatwebapplications.●Webappsarestillrareorunconvincing.●Bigapplicationsareapaintowriteandmaintain(Gmail).Weshouldhaveeverythingw
4、eneed:●GoodVMs●GoodUIelementsWritingbigapplicationsinJavaScriptistoohard.It'snotLisporSchemeLet'sgetthisoutoftheway.DartisnotLisporScheme.Dartdoesnothave:●Tailcalloptimizations.●Varargs.●Macros.●Methodoverloading.●Easy-to-parsesyntax.●Continuations.D
5、artFeaturesDartfeatures:●fastVMandgoodDart-to-JavaScriptcompiler.●optionalstatictypes.●easytopickup.●scalestobigprojects.●fastdevelopmentcycle(F5).●closures.●mixins.●Erlanginspiredprocesses("isolates").●integersanddoubles.●packagesandlibraries.●goodc
6、orelibrary.Benchmarks-RichardsDartOSkernelsimulationbenchmark,originallywritteninBCPLbyMartinRichards.V8V8hasbeentunedforthisbenchmarkforthelastsixyears.dart2jsPerformanceayearagonowBenchmarks-DeltaBlueDartOne-wayconstraintsolver,originallywritteninS
7、malltalkbyJohnMaloneyandMarioWolczko.V8hasbeentunedforthisdart2jsbenchmarkforthelastsixV8years.PerformanceayearagonowClosuresTwowaystowriteclosures:(x,y){foo(x);bar(y);return42;}(x)=>x+1;(x){returnx+1;}CoreLibrariesCoreLibraries●dart:core●dart:collec
8、tion●dart:async●dart:isolate●dart:mirror●dart:math●dart:io●dart:html●...dart:coreCoreisalwaysautomaticallyimported.Containsimportantclasseslike:●Iterable.●List(Arrays).●Set.●Map.●RegExp.IterablesIterablesarethefoundationofthecorelibrary:asequenceofel
此文档下载收益归作者所有
点击更多查看相关文章~~