arduino / ArduinoCore-mbed

330 stars 195 forks source link

mBED runs javascript, what are the Portenta plans? #35

Closed hpssjellis closed 1 year ago

hpssjellis commented 4 years ago

Can someone perhaps @janjongboom, @sbhklr or @facchinm reply about the possible direction Arduino is taking with Javascript implementation. I am doing fairly well at getting things working. See my github at https://github.com/hpssjellis/my-examples-for-the-arduino-portentaH7

Mbed runs javascript https://os.mbed.com/blog/entry/Bringing-JavaScript-to-mbed-OS/ which would make the most sense. Is that the most plausible direction? Does anyone have any starting perhaps javascript blink code they think might work but it just needs a few tweaks. I am willing to work on this, as I have most of what I need from the Portenta working so far.

janjongboom commented 4 years ago

@hpssjellis I left Arm >1 year ago and the JerryScript runtime for Mbed has not been updated since. My feeling is that https://github.com/ARMmbed/mbed-js-v2 would be the quickest way forward, it adds JerryScript as a library to any Mbed projects. Not sure if there's a Portenta build target in Mbed OS yet though.

hpssjellis commented 4 years ago

Thanks @janjongboom for the reply, I will have to wait until someone has a blink example working on the Portenta and then I can test other Javascript abilities. I only have a few boards and I don't want to break the bootloader just yet. I have enough to do for a few months getting TensorflowLIte working on the new board.

janjongboom commented 4 years ago

@hpssjellis Arduino libraries exported from Edge Impulse actually support Portenta H7 already, including full CMSIS-NN support when using neural networks (using TFLite). Perhaps use it as inspiration?

hpssjellis commented 3 years ago

I am in contact with the programmer for Visuino a Visual programming interface who will get the Portenta working eventually. Visuino uses the Delphi platform which is Pascal based, so I will talk to him about if pascal code can be written for the Portenta.

Any other Javascript platforms in the works as of Jun 2021?

hpssjellis commented 1 year ago

I think I will close this issue. I have never seen a good implementation of Javascript on a microcontroller.