Haikufying is all about transforming bytecode to a native binary (using a C/C++ compiler and linker for the target machine). The binary result (a HEX file in case of AVR machines) may then be uploaded to the target.
Kind regards
Bob Genom
Last edit: genom2 2016-04-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I didn't mean to upload a bytecode. I meant to upload a native code executable module (as a stream/bytearray), which is already transformed from java to HEX on the PC side.
Something like that should be technically possible (by jumping to the program code saved in local byte array which is used as program code), but I do understand this kind of flexibility may be too much to ask for something so small as Arduino.
Thanks
Jarek
Last edit: Jarek 2016-04-07
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
is it possible to upload and execute code remotely (over network like wifi or bluetooth)?
You say you do not support reflection, so I have doubts this is possible but I couldn't find an answer.
I can implement my own code which receives the program code (as bytearray), but then the question is if I can execute it somehow?
Thanks
Jarek
Hello Jarek,
no it is not possible to upload and run bytecode. Take a look here:
http://haiku-vm.sourceforge.net/#[[What%20is%20it%3F]]
Haikufying is all about transforming bytecode to a native binary (using a C/C++ compiler and linker for the target machine). The binary result (a HEX file in case of AVR machines) may then be uploaded to the target.
Kind regards
Bob Genom
Last edit: genom2 2016-04-04
Thank you for your response.
I didn't mean to upload a bytecode. I meant to upload a native code executable module (as a stream/bytearray), which is already transformed from java to HEX on the PC side.
Something like that should be technically possible (by jumping to the program code saved in local byte array which is used as program code), but I do understand this kind of flexibility may be too much to ask for something so small as Arduino.
Thanks
Jarek
Last edit: Jarek 2016-04-07