I am just experimenting , but want to use Dart as a scripting language for a high performance simulation application I've been working on.(think games)
Basically use Dart in lieu of Lua
I have found old resources, but I have heard the are out of date - and haven't really found any tutorials on how to actually utilize them.
found resources: https://github.com/google/embed-dart-vm
https://github.com/google/embed-dart-vm/tree/master/src
Similarly to JavaScript, Dart can be used for both mobile and web development. Dart became popular along with the Flutter framework for developing cross-platform mobile apps. Dart can be also used for developing web apps, but is actually used for this purpose very rarely.
Dart supports the web as one of its core platforms. Dart-to-JavaScript compilers are available both for development (with a quick edit-refresh cycle) and for production (with a focus on code size and speed).
Flutter's platform channels can put a single Dart interface on native code for mobile, web, desktop, or your embedded platform.
I couldn't find any good article on this, only this discussion thread in Dart group. However, there are working demos in the Dart's source code.
Take a look at DartHost
implementation in some of these projects - this should give you some idea about how to do it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With