RustPython / RustPython Public
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I use RustPython in Microcontrollers #2362
Comments
|
There's not really any work on this yet, but it shouldn't be too hard! I whipped up this branch for converting the parser, compiler etc to no_std, but I imagine the vm would be the main hurdle. |
|
Looks like |
|
This item is still a stretch goal, but I would love to see this happen! Things to note / to be done:
|
|
Thank you for starting the no_std development again! My team is building a system which uses a RISC-V microcontroller, with a Tock kernel and a hardware accelerator, for accelerating machine learning applications. For now, we might proceed with Rust applications, but our end goal is to support Python applications. Hopefully, RustPython can help us achieve that goal. |
|
Any progress towards RustPython supporting no_std would be amazing tbh! @coolreader18 is there anything I can do to help out? The bincode blocker is unfortunate but I'm not sure where its needed (I'm not familiar with the RP codebase at all) there are other alternatives that support no_std for instance capnproto but again I'm not sure how viable they are to replace bincode since I dont know how or what bincode is being used for... |
|
@coolreader18 regarding |
|
Possibly, though I don't think bincode-core is published yet. I think my current plan would be to rewrite rustpython-bytecode to use deku instead of bincode; it's moreso designed for custom binary formats, and might be easier to keep stable. |
|
bincode 2 should support no_std by disabling the default features or disabling the |
|
@leapofazzam123 what is the current relationship between pravega/bincode2 and bincode-org/bincode? At a glance, the Cargo.toml in bincode-org/bincode seems to indeed support a no_std configuration. |
|
It looks like bincode-v2 has been merged back to bincode-org but it's still in beta? That's what I glean. |
Hello all,
I wonder if I can use RustPython in a microcontroller which uses the TockOS kernel developed in Rust. Tock currently just has example user applications in Rust, as explained here.
I figured I might be able to use RustPython in two ways:
The issue with the first option is that Tock applications are run in
#![no_std]configurations. I could not build the RustPython dependency. For the second option, I am not sure if it is feasible at all.I saw @windelbouwman mentioned in an issue that running in microcontrollers was a stretch goal. What is the status now?
How can I resolve the issue with the standard library? How much work would that be?
Thank you!
The text was updated successfully, but these errors were encountered: