Dart VM for a game engine

52 views
Skip to first unread message

Diogo Parreira

unread,
Feb 14, 2018, 12:24:28 PM2/14/18
to Dart VM Developers
Hi! I'm a game developer and I would like to integrate Dart VM with my game engine. From what I know it's not a very good fit to be a scripting engine for a game right now, therefore I would like to know if it has some of the features or if is reasonably easy to implement some things before digging into the code.

Since there is this example, https://github.com/google/embed-dart-vm I imagine it's possible to instantiate and interact with the VM from C++, but are there C/C++ bindings for C++ -> Dart and Dart -> C++ communication and data access? Or at least a way for Dart to keep ptr's and call C functions?

I would like to use the language a bit more like how Lua/Javascript works, where every variable in the class can be removed or replaced by other type and new ones added at runtime. This would not be used frequently, but I would like to have the possibility. And since the mirrors API doesn't allow for this right now is it possible to do it with a simple modification to the VM code? Example: replace the type of a var from int to string in runtime for a specific instance of a class or for the class itself.

Thank you!
Reply all
Reply to author
Forward
0 new messages