Launch dart vm from C++ and send code to execute

,

Hi! I wanted to explore dart vm and hot reload. I want to start dart vm in jit mode from c++ code and send it code to invoke (either with initial code or not) and later send new code to it to hot restart.

I’ve checked samples in dart sdk repo but hadn’t had much success of doing what I want (I managed to compile vm and run examples but would like to have simpler code).

Does anyone have some experience with this?

Have you seen hotreloader | Dart package ? I suspect that does exactly what you’re looking for. It has also been incorporated to reload shelf modules for serverside 100% uptime.

yes, but I wanted to try to run dart vm from c++ embedding api (similar to what flutter does)

1 Like