Join Discord
Powered by
Hello, any guidance to port TOIT into other microc...
# help
y
yunu
12/13/2022, 4:13 PM
Would be happy to see a decoupled version of TOIT from ESP32, where it consist only purely portable language to another MCU. Thanks 👍
f
floitsch
12/13/2022, 5:12 PM
You should probably join the
#1025033748661665792
channel. That said, here are some thoughts:
floitsch
12/13/2022, 5:13 PM
The virtual machine/language and hardware is already quite decoupled. Toit runs on Linux, Macos, Windows, and ESP32.
floitsch
12/13/2022, 5:13 PM
The biggest challenge is to make primitives work; and in that context the event system.
floitsch
12/13/2022, 5:14 PM
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
floitsch
12/13/2022, 5:16 PM
After that it's mostly an incremental process, where you have to implement the primitives you care for.
floitsch
12/13/2022, 5:16 PM
Some are absolutely crucial to make programs work. Others (say BLE) aren't even implemented on all platforms yet.
Previous
Next