Hello, any guidance to port TOIT into other microc...
# help
y
Would be happy to see a decoupled version of TOIT from ESP32, where it consist only purely portable language to another MCU. Thanks 👍
f
You should probably join the #1025033748661665792 channel. That said, here are some thoughts:
The virtual machine/language and hardware is already quite decoupled. Toit runs on Linux, Macos, Windows, and ESP32.
The biggest challenge is to make primitives work; and in that context the event system.
You can see, that Toit uses epoll on Linux, kqueue on BSD (macOS), and ev_queue for the ESP32: https://github.com/toitlang/toit/tree/master/src/event_sources
After that it's mostly an incremental process, where you have to implement the primitives you care for.
Some are absolutely crucial to make programs work. Others (say BLE) aren't even implemented on all platforms yet.