'Kevin Moore' via Dart Announcements
2018-02-24 01:05:44 UTC
As part of our work to ship Dart 2 <https://www.dartlang.org/dart-2>, we
are removing support in our *web tools* for dart:mirrors
<https://api.dartlang.org/dev/dart-mirrors/dart-mirrors-library.html> and
dart:isolate
<https://api.dartlang.org/dev/dart-isolate/dart-isolate-library.html>. You
will see this change in dart2js <https://webdev.dartlang.org/tools/dart2js>
and the Dart Dev Compiler <https://webdev.dartlang.org/tools/dartdevc> in the
next few weeks on the Dart SDK dev channel
<https://www.dartlang.org/install#about-sdk-release-channels-and-version-strings>
.
*Note: the **Dart VM <https://www.dartlang.org/dart-vm> will continue to
fully support both libraries.*
*Details:*
*dart:isolate* - This library was an attempt to provide a single API that
provides common concurrency functionality across Dart's web and native
platforms. While useful in some cases, most users found the isolate API
limiting compared to the Web Workers API
<https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API>. The
infrastructure for supporting isolates also adds substantial overhead when
compiling to JavaScript. In the future, you should use Web Workers to
access concurrency on the web.
*dart:mirrors* - This library provides a runtime reflection API. To provide
a full fidelity experience, Dart JavaScript compilers included a
substantial amount of type information while also losing the ability to do
precise tree-shaking <https://en.wikipedia.org/wiki/Tree_shaking>. This
leads to dramatically increased output size and execution time. We
recommend web developers use code generation using tools like package:build
<https://pub.dartlang.org/packages/build> and package:source_gen
<https://pub.dartlang.org/packages/source_gen>. These are the tools used by
AngularDart <https://webdev.dartlang.org/angular> and
package:json_serializable
<https://pub.dartlang.org/packages/json_serializable>.
If you have questions about this change, please post on the Dart discussion
group <https://groups.google.com/a/dartlang.org/forum/#!forum/misc>.
--
For more news and information, visit https://plus.google.com/+dartlang
To join the conversation, visit https://groups.google.com/a/dartlang.org/
are removing support in our *web tools* for dart:mirrors
<https://api.dartlang.org/dev/dart-mirrors/dart-mirrors-library.html> and
dart:isolate
<https://api.dartlang.org/dev/dart-isolate/dart-isolate-library.html>. You
will see this change in dart2js <https://webdev.dartlang.org/tools/dart2js>
and the Dart Dev Compiler <https://webdev.dartlang.org/tools/dartdevc> in the
next few weeks on the Dart SDK dev channel
<https://www.dartlang.org/install#about-sdk-release-channels-and-version-strings>
.
*Note: the **Dart VM <https://www.dartlang.org/dart-vm> will continue to
fully support both libraries.*
*Details:*
*dart:isolate* - This library was an attempt to provide a single API that
provides common concurrency functionality across Dart's web and native
platforms. While useful in some cases, most users found the isolate API
limiting compared to the Web Workers API
<https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API>. The
infrastructure for supporting isolates also adds substantial overhead when
compiling to JavaScript. In the future, you should use Web Workers to
access concurrency on the web.
*dart:mirrors* - This library provides a runtime reflection API. To provide
a full fidelity experience, Dart JavaScript compilers included a
substantial amount of type information while also losing the ability to do
precise tree-shaking <https://en.wikipedia.org/wiki/Tree_shaking>. This
leads to dramatically increased output size and execution time. We
recommend web developers use code generation using tools like package:build
<https://pub.dartlang.org/packages/build> and package:source_gen
<https://pub.dartlang.org/packages/source_gen>. These are the tools used by
AngularDart <https://webdev.dartlang.org/angular> and
package:json_serializable
<https://pub.dartlang.org/packages/json_serializable>.
If you have questions about this change, please post on the Dart discussion
group <https://groups.google.com/a/dartlang.org/forum/#!forum/misc>.
--
For more news and information, visit https://plus.google.com/+dartlang
To join the conversation, visit https://groups.google.com/a/dartlang.org/
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.