Google Dev Fest Roma 2014 Join the Dart

  • Slides: 26
Download presentation
Google Dev. Fest Roma 2014

Google Dev. Fest Roma 2014

Join the Dart Side of Web Development Giovanni Laquidara Claudio d’Angelis e il Team

Join the Dart Side of Web Development Giovanni Laquidara Claudio d’Angelis e il Team del GDG Roma L-Ab

● ● Language Libraries Tools Compilation to Java. Script

● ● Language Libraries Tools Compilation to Java. Script

Dart is open source ● BSD-style license ● dart. googlecode. com ● Git. Hub

Dart is open source ● BSD-style license ● dart. googlecode. com ● Git. Hub mirror ● Contributing guide ● ECMA Standard (TC 52) ● Production ready (1. 7)

Compiles to Ja runs across the m

Compiles to Ja runs across the m

Run Dart

Run Dart

● New language, familiar syntax ● Rich libraries ● Consistent semantics

● New language, familiar syntax ● Rich libraries ● Consistent semantics

"Coffee". missing // ? ? 'String' has no instance getter 'missing'. Class No. Such.

"Coffee". missing // ? ? 'String' has no instance getter 'missing'. Class No. Such. Method. Error : method not found: 'missing' Receiver: "Coffee" Arguments: []

“ 2” > 1 // ? ? Unhandled exception: Class 'String' has no instance

“ 2” > 1 // ? ? Unhandled exception: Class 'String' has no instance method '>'. No. Such. Method. Error : method not found: '>' Receiver: "2" Arguments: [1]

Built-in libraries async collection convert core html indexed_db io isolate js math mirrors svg

Built-in libraries async collection convert core html indexed_db io isolate js math mirrors svg typed_data web_audio web_gl web_sql Kansas City Public Library

Asynchronous and concurrent programming Futures Streams Isolates https: //www. flickr. com/photos/huskyte/8519749145/in/photostream/

Asynchronous and concurrent programming Futures Streams Isolates https: //www. flickr. com/photos/huskyte/8519749145/in/photostream/

Dart-to-JS Compiler & Performance Dart 2 js' s features: ● Minification & Source Maps

Dart-to-JS Compiler & Performance Dart 2 js' s features: ● Minification & Source Maps ● Global type inference ● Tree-shaking − Compile-time dead code elimination

Tree shaking imports main baz Library calls foo bar dart 2 js main foo

Tree shaking imports main baz Library calls foo bar dart 2 js main foo bar boo

https: //dartlang. org/performance

https: //dartlang. org/performance

Language, Libraries & Tools ● IDE: Dart Editor ● Package Manager: pub ● JS

Language, Libraries & Tools ● IDE: Dart Editor ● Package Manager: pub ● JS compiler: dart 2 js ● Library documentation generator: docgen ● Static analyzer: dartanalyzer ● Chromium with Dart VM: Dartium

Polymer. dart Angular. Dart

Polymer. dart Angular. Dart

Pol

Pol

Giovanni Laquidara Claudio d'Angelis Twitter: @joaolaq Google+: +giovannilaquidara Github: joaobiriba Twitter: @daw 985 Google+,

Giovanni Laquidara Claudio d'Angelis Twitter: @joaolaq Google+: +giovannilaquidara Github: joaobiriba Twitter: @daw 985 Google+, Github: claudiodangelis

Google Dev. Fest Roma 2014 Giovanni Laquidara Claudio d'Angelis Twitter: @joaolaq Google+: +giovannilaquidara Github:

Google Dev. Fest Roma 2014 Giovanni Laquidara Claudio d'Angelis Twitter: @joaolaq Google+: +giovannilaquidara Github: joaobiriba Twitter: @daw 985 Google+, Github: claudiodangelis