Comments (4)
Hi!
The current AST implementation of dart_eval will soon be replaced by the dbc-ir bytecode interpreter version, hopefully within a month. I am currently working on the implementation of closures there, and you can expect that it will support basic callback-based concurrency using Future.then() at or shortly after launch. Async/await will come sometime after.
from dart_eval.
@ethanblake4 Thanks for your reply :), when I use futuer.then()
, It comes an error Unknown field 'then'
. Which means I need to define future
in Parser, Are there already-defined future in this library
from dart_eval.
Correct, it does not have it right now. It will have it in about a month, in the new version which also has a lot of other changes.
Defining it as a bridge class yourself in Parser might work, but neither master or dbc-ir branch supports closures yet. I think (maybe) the master branch supports tear-offs so you might be able to use that.
from dart_eval.
looking forward to your great work! Thanks
from dart_eval.
Related Issues (20)
- dart_eval runtime exception: EvalUnknownPropertyException (==) HOT 2
- CompileError: Unknown type T at "T value" (file package:default/main.dart)
- Executing final e = <String, String>{}; returns exception 'Null check operator used on a null value' HOT 2
- dart_eval runtime exception: RangeError (index): Invalid value: Not in inclusive range HOT 1
- when to support call method in dart_eval runtime HOT 2
- CompileError: Unknown statement type FunctionDeclarationStatementImpl at unknown (file package:default/main.dart)
- type 'VariableDeclarationImpl' is not a subtype of type 'MethodDeclaration' in type cast
- constructor logic not work HOT 1
- Work with <String, String>{} returns exception type 'String' is not a subtype of type '$Value' of 'key' HOT 2
- Does it support Singleton pattern??? HOT 3
- Could not find declaration "File" at unknown (file package:example/main.dart) HOT 8
- Unnecessary casting
- what is the difference between $int($value.hashCode) and __hashCode ? HOT 9
- type 'BridgeEnumDef' is not a subtype of type 'BridgeClassDef' in type cast
- Null check operator used on a null value HOT 1
- how to write a wrapper for TopLevelVariableDeclaration? HOT 2
- CompileError: Unknown method dynamic.read at "ref.read(1)"
- Null check operator used on a null value
- Cannot access null value from map
- How to write a Wrapper for extension?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart_eval.