Originally posted by jacob
View Post
Announcement
Collapse
No announcement yet.
Rust UEFI Firmware Targets Promoted To Tier-2 Status
Collapse
X
-
- Likes 3
-
Originally posted by archkde View Post
Result, Option and iterators are actually not that bad, since they mostly get turned into code much like you would write in C by inlining. Containers are by far the worst offender, and if you are using anync but aren't careful, then you can add futures too.
Binary size is indeed a concern with Rust, but if cargo bloat is to be trusted, the by far biggest offender is actually hardcoded text...
Comment
-
Originally posted by jacob View PostRust can't be well suited for those use cases. But on the other hand, as even the lowest of the lowest systems get more RAM, the need for using C will diminish.
- Likes 2
Comment
-
Originally posted by soulsource View PostYep. I've been playing around with rust.godbolt.org a bit for a spare time project, where I want really good performance, and all methods I tried on those sum types and on iterators just get inlined (and optimized to the same assembly you get for imperative code). At least for reasonably sized data types.
Binary size is indeed a concern with Rust, but if cargo bloat is to be trusted, the by far biggest offender is actually hardcoded text...
- Likes 1
Comment
-
Originally posted by archkde View Post
Hardcoded text indeed also contributes to binary size (how do you get this using cargo bloat btw?), mostly in the form of panic messages, which are mostly relevant for small binaries (they won't get much more as the amount of code increases).
Comment
-
Originally posted by soulsource View PostYeah, I misread the output of cargo bloat... The .text section contains the assembly. Now I'm feeling dumb...
- Likes 3
Comment
-
Originally posted by mmstick View Post
Actually, Jeremy Soller just today has a Rust project running on a Thinkpad 365ED with Windows 95 and 8M RAM. The problem of low RAM is solved by using an embedded scripting language tightly integrated with Rust: Rhai. He's calling this new DOS-like shell "ReDOS".
Comment
Comment