Replies: 1 comment 5 replies
-
Welcome!
Yup. You can run |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just discovered moddable. I installed everything for ESP32 and it went fine. Thank you and congratulations.
A simple benchmark (adding up integers 1,2,..,1000000) showed that the XS interpreter is fast.
It seemed to be 3 times as fast as the MicroPython interpreter for the same device - impressing!
I have some experience with MP (MicroPython) by now and might do a more detailed comparison perhaps.
The big difference with MP I notice is:
Every time a new version of my JS program is to be run with
mcconfig -d -m -p esp32/nodemcu
it requires a new bytecode interpreter to be set up and all three of:
have to be flashed onto the board.
With MP I put the python code onto the board and let it execute (MP and bootloader are flashed once, or when the MP version changes). I'm used to this style and like it.
However I understand that from a professional point of view it seems sufficient to have just the bootloader, interpreter and bytecode and flash them together (with MP a recurring question is how to build it without the compiler, which is told to ~40kB smaller).
In the docs (XS7-TC-39) I found:
So it seems that some embedded devices allow for having the full XS functionality, perhaps even a JS REPL.?.
Is there an example or a guide how to flash such a complete version of XS onto a board/device? To have sort of a Micro-Node.js REPL?
With a search here I just learnt that this latter functionality is provided through
mod
s - sorry for asking.Thank you,
Raul
Beta Was this translation helpful? Give feedback.
All reactions