News for hackers. Stuff that matters.
Re:Should you Rust in embedded yet? by q3k on Wednesday February 28, 2018 @09:54PM (#16489302)
The standard library (with all its' duplicate code resulting from hardcore templating) will blow up your flash space usage significantly, to the point where you will run out of it sooner than you expect. You will spend time finding alternative standard libraries that are size-optimized and you might end up rewriting a lot of what you take for granted in your C++ daily usage. For example, the Arduino environment is C++-based, but it's not anything like on the desktop due to it not shipping an std:: .

Your typical heap-happy usage will not go down well on a microcontroller, either. Having very constrained RAM makes heap fragmentation much more of an issue.

Re:Should you Rust in embedded yet? by atilaneves on Thursday March 01, 2018 @07:00AM (#16491307)
Then don't use the standard library. Don't even link it in.

> Your typical heap-happy usage

Huh? 1990s C++ was typically heap-happy, which is part of the reason Java looks the way it does. Idiomatic modern C++ uses the stack as much as possible. And one can use custom allocators.

Re:Should you Rust in embedded yet? by pjc50 on Thursday March 01, 2018 @07:11AM (#16491356)
Not a good fit for systems with small hardware stacks - PIC16 is still in use http://www.microcontrollerboard.com/pic_memory_organization....