Advice for developing alternate language bindings? #2186
Replies: 2 comments
-
|
We've tried to design the pbio library as a generic base that other languages build build on top of. So the first step would be to make that run without MicroPython. This would entail replacing the A key thing to keep in mind is that PBIO is built on cooperative multitasking, so any APIs you write and any user code can't block the CPU for more than a few hundred microseconds at most, otherwise things will start to break (e.g motor control won't work correctly), so the APIs need to be async style or anything that is long running needs to call the PBIO event loop periodically. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the comprehensive response! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My team has recently switched from EV3s to Spike Prime, and I've been disappointed to learn that where ev3dev had a host of different language bindings, the spike prime/pybricks ecosystem seems to be a lot more centered around python.
As someone who's been falling in love with rust over the past year, I decided to look into the process for creating bindings, and quickly realised I had no clue where to begin. If anyone could provide advice or guide me towards a starting point, I'd greatly appreciate it.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions