guild icon
Toit
#Hello, any guidance to port TOIT into other microcontroller such as STM32 or IMX.RT from Nxp?
Thread channel in help
yunu
yunu 12/13/2022 04: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 :๐Ÿ‘:
yunuOPyunu
Would be happy to see a decoupled version of TOIT from ESP32, where it consist only purely portable language to another MCU. Thanks :๐Ÿ‘:
floitsch
floitsch 12/13/2022 05:12 PM
You should probably join the porting channel.
That said, here are some thoughts:
floitsch
floitsch 12/13/2022 05:13 PM
The virtual machine/language and hardware is already quite decoupled. Toit runs on Linux, Macos, Windows, and ESP32.
floitsch
floitsch 12/13/2022 05:13 PM
The biggest challenge is to make primitives work; and in that context the event system.
floitsch
floitsch 12/13/2022 05: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
Program your microcontrollers in a fast and robust high-level language. - toit/src/event_sources at master ยท toitlang/toit
floitsch
floitsch 12/13/2022 05:16 PM
After that it's mostly an incremental process, where you have to implement the primitives you care for.
floitsch
floitsch 12/13/2022 05:16 PM
Some are absolutely crucial to make programs work. Others (say BLE) aren't even implemented on all platforms yet.
7 messages in total