Dart 1.9 發布,新正則引擎,性能提升顯著!
Dart 1.9 發布,異步編程無處不在 —— 用戶交互,網絡訪問,文件 I/O。Dart 簡化和增強了這些功能。
Dart 1.9 引入了 async
方法和 await
表達式,都是基于現有的 Future
API。Dart 1.9 可以使用:for/while
循環,if
塊和 try/catch
來管理復雜的異步交互。
之前
之后
Dart 1.9 同時引入了生成器方法 – sync*
和 async*
。
其他改進如下:
-
enum, a long-requested feature, is now fully supported.
-
The Dart Analyzer has moved to the Dart Analysis Server. This makes it much easier to integrate Dart source analysis into IDE’s beyond the Dart Editor (for instance, IntelliJ and Sublime).
-
We've updated the regular expression engine for the Dart VM. It's up to 150x faster than the previous implementation.
-
The Isolate API has now been fully implemented in the Dart VM, making it much easier to create applications that target multiple CPUs.
更多內容請看這里。
Dart 1.9 包括了超多新特性,但是 Google 還是宣布 Chrome 不會內置 Dart VM.
來自:http://www.oschina.net/news/60965/dart-1-9