3 ms·
>I'm hopeful. no_std rust binaries can be near competitive with C. I feel like Rust without std might as well be a different language. Almost all of the availa
by no_time 3y ago
>I'm hopeful. no_std rust binaries can be near competitive with C.
I feel like Rust without std might as well be a different language. Almost all of the available mindshare, docs, libraries are dependant on it.
Sure, you can use it. But to me it just looks like technological poverty. Even compared to the C ecosystem.
- mkj 3y agoI'd disagree. Using something like Embassy is pretty pleasant for embedded development, less worries than C. The only issue is maturity. There were sufficient crates to write a ssh server for a rp2040 (mostly out of curiosity) using what's available in no_std.
- no_time 3y agoFirst time I'm hearing about Embassy. Looks like things have progressed since last time I tried deploying rust on an stm32.
- tmzt 3y agoDo you have that example posted anywhere? I'm curious to see it. Also, any support for the Wifi and/or Bluetooth on Pi Pico W from Rust?
- mkj 3y agohttps://github.com/mkj/sunset/tree/main/embassy/demos/picow https://github.com/mkj/sunset/tree/main/embassy/demos/picow is a wifi-ssh to serial impl for a rp2040. I've got it plugged into my home server's serial port. It's using cyw43 for wifi also from Embassy - dirbaio is prolific! There's some WIP in Embassy for bluetooth. That repo has a few crates depending on each other - sunset is the toplevel ssh, sunset-embassy adds no_std async, then the async dir has std rust, with a commandline ssh client in the examples dir.
- cmrdporcupine 3y agoActually I'm often surprised just how much out there is actually available with no_std feature options? There's obviously a lot of need for improvement in Rust in regards to small systems, as people have pointed out. But there's also a lot more middle ground in Rust vs, say, C++: You can be no_std and still have Vector, for example, while in C++ the STL is an all-or-nothing thing. It's a smaller community, and it will come down to individuals deciding it's important and making contributions.