dart_eval
dart_eval copied to clipboard
Extensible Dart interpreter for Dart with full interop
Multiple interfaces for bridge still need to be figured out.
- [x] Eval native - [x] Bridging (1 supertype) - [ ] Bridging (multiple supertypes)
Should do performance profiling on dart_eval so it can be improved. https://github.com/ethanblake4/dart_eval/issues/57#issuecomment-1284858452
For example, say I release v1.0.0 app with 10 pages. Then in v1.0.1, I change the UI (i.e. HomePage.build), and a few logic (e.g. HomePage.handleMyButtonClick). Then, would be great to...
For example, strings here: https://github.com/ethanblake4/dart_eval/blob/c5795f1e284a46e44d2f9c30b73eebc3b2787fc3/lib/src/eval/shared/stdlib/core/map.dart#L20 "length" can become (index) 2 etc. This must be combined with the https://github.com/ethanblake4/dart_eval/issues/20 because it is so error-prone to manually assign numbers. If doing https://github.com/ethanblake4/dart_eval/issues/65,...
Recall that, it is O(1) not O(N) to pass data back to main isolate, if the extra isolate send it via terminating message. For example: from raw bytes to objects,...
> For example, not sure what "wrap" is (not check code yet), but if possible, we should avoid a wrapping, since that generate more objects, i.e. more indirection (slower) and...
(Have not checked into details, just rough ideas.) Maybe we can utilize the tests inside official dart repo, so that we get a ton of test cases to verify dart-eval...
Dart now allows named params to come before positional params.
So, do you plan to make it a prototype or experiment or toy, or make it *the ultimate solution* to Flutter hot update? If the former, I completely understand since...