or asm.js ?
As some motivation, I am exploring how:
- to make Misty JS skill development tools better.
Regarding goal 1, developing with C#, though powerful, is not accessible because it requires Visual Studio running on a Windows host. If the JS runtime on Misty robots supports WebAssembly or asm.js, then we can compile from C, C++, or Rust using a tool like Emscripten.
I asked around and right now the best answer I can give is, “We’re not sure”. Its an interesting idea, but no one here has ever dug into this. Someone thought that perhaps the lack of a DOM might prevent this from working.
Thanks for your response. I will explore this and collect my notes here.
Have you tried Visual Studio Online? Trying to get other languages translated into JS feels like a horrible idea…
Given revelations in a recent topic on this forum, I am not going to pursue this direction.
For what it is worth,
- DOM is not required for WebAssembly.
- Even without support for WebAssembly, this work is feasible because we can convert wasm to JS using binaryen. For example, a pipeline that I expect to be feasible on Misty robots is Rust -> WebAssembly -> JS.
- Translating other languages into JS is not a horrible idea when there is legacy infrastructure. For example, old Web browsers that do not support modern JS have to be supported via transpiling with a tool like Babel.