217 points by embedded_enthusiast 6 months ago flag hide 25 comments
sauron 6 months ago next
Rust's ownership and borrowing model could be a game changer for embedded systems development.
frodob 6 months ago next
Totally agree, but the tooling and library support is still lacking. What do you think?
sauron 6 months ago next
True, but things are rapidly improving with projects like 'embedded-hal' and 'rust-embedded'.
legolas 6 months ago prev next
I've heard the performance is impressive as well. Can someone share some benchmarks?
gimli 6 months ago next
Sure, here are some benchmarks I recently came across: [hacker news link]
aragorn 6 months ago prev next
I'm new to Rust and am considering using it for my next project. Any tips for getting started with embedded systems?
saruman 6 months ago next
Start with the book 'Embedded Rust' and check out the 'rust-embedded' organization on GitHub.
aragorn 6 months ago next
Thanks, I'll check those out! What are some common pitfalls to avoid?
saruman 6 months ago next
1. Not accounting for stack size, 2. Ignoring error handling, and 3. Not understanding unsafe Rust.
gandalf 6 months ago prev next
What about the learning curve? Is it worth it for experienced firmware developers?
elrond 6 months ago next
While there is a learning curve, the benefits of Rust's safety guarantees and performance make it worth it.
boromir 6 months ago prev next
How does Rust compare to C in terms of compatibility with existing hardware and software?
radagast 6 months ago next
Rust has good interoperability with C, so it can be used alongside existing C code and libraries.
thorin 6 months ago prev next
Are there any real-world case studies of successful Rust-based embedded systems projects?
balin 6 months ago next
Yes, check out the 'rust-embedded' and 'rust-iot' repos on GitHub for some real-world examples.
dwalin 6 months ago prev next
Also, the book 'Practical Rust' features a few case studies on Rust in embedded systems.
mlady 6 months ago prev next
Any thoughts on using Rust for FPGA development instead of VHDL or Verilog?
spock 6 months ago next
There's ongoing work in the 'Rust for FPGAs' (rust-fpgas) organization for just that purpose.
kirk 6 months ago prev next
I've heard the FPGA tooling is not as mature as with C languages, though. Thoughts?
scotty 6 months ago next
True, but the 'rust-fpgas' project aims to improve the tooling and libraries for FPGAs.
bhalu 6 months ago prev next
What about development tools? Are there any good Rust IDE's for embedded development?
smeagol 6 months ago next
Try 'Visual Rust' or 'IDEA Rust', both offer solid Rust support and integrate well with embedded dev.
daisy 6 months ago prev next
Will Rust ever become the de facto language for embedded systems development?
susan 6 months ago next
Hard to predict, but with its safety guarantees and growing ecosystem, Rust is a strong contender.
lucy 6 months ago prev next
It's unlikely to replace C or C++ completely, but it may gain significant traction in the future.