Dart-JavaScript interoperability
summary
New JS interop promises terse, statically typed facades that compile to idiomatic JavaScript and avoid runtime wrappers, improving performance versus jsify recursion and the old dart:js approach. Generated facades from TypeScript power chart.js and Quill examples, Dev Compiler offers an interactive Dart console, and Dart2Js reduces noSuchMethod overhead by using explicit type tables. Caveats: functions require allowInterop, don’t mix package:js with dart:js, and Dartium VM crossing is still roughly 50,000 calls per second.
AI-written summary · about
chapters (10)
- 0:00Start
- 0:51Chart Js
- 3:44Supporting Dartium with Performance
- 8:43Packaged Js
- 10:16Dart Javascript Facade for the Chart Library
- 13:02Performance
- 16:02Output
- 17:01Demos
- 19:49Compiler Output
- 23:54Escape Hatch
related talks
27mJavaScript as a compilation target - Making it fast
37mElevating JavaScript interoperability with Dart
16mDart
45mDart For the Language Enthusiast
04mWhy Dart?
56mJoin The Dart Side Of Web Development 2
47mWhy Google thinks you should drop everything you do and pick up their Dart.
28mdyn.js - 100% invokedynamic JavaScript implementation
