Dart 1.9 發布,新正則引擎,性能提升顯著!

wdfd 9年前發布 | 4K 次閱讀 Dart

Dart 1.9 發布,異步編程無處不在 —— 用戶交互,網絡訪問,文件 I/O。Dart 簡化和增強了這些功能。

Dart 1.9 引入了 async 方法和 await 表達式,都是基于現有的 Future API。Dart 1.9 可以使用:for/while 循環,if 塊和 try/catch 來管理復雜的異步交互。

之前

Dart 1.9 發布,新正則引擎,性能提升顯著!

之后

Dart 1.9 發布,新正則引擎,性能提升顯著!

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

 本文由用戶 wdfd 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!