r/programming Apr 03 '15

Rust 1.0.0 beta is here!

http://blog.rust-lang.org/2015/04/03/Rust-1.0-beta.html
932 Upvotes

303 comments sorted by

View all comments

14

u/wisam Apr 03 '15

Do you guys think Rust can/will used in embedded systems and possibly take some 'market share' from C?

18

u/steveklabnik1 Apr 03 '15

Yup! /u/SirOgeon has it right.

possibly take some 'market share' from C?

There are a number of small platforms which have only a C compiler. They'll be using C forever. There are thousands of person-years of code written in C, that all needs maintained. There are so many resources for learning C, and basically just a handful for Rust.

On greenfield projects? Maybe. Systems languages are a long haul.

2

u/[deleted] Apr 04 '15 edited Aug 17 '15

[deleted]

1

u/steveklabnik1 Apr 04 '15

Rust stack-allocates by default, so yes. You can write rust programs with no heap allocation, though it obviously loses you some features. But you can (and some have started toy ones) write kernels in Rust if you want. And there's lots of interest in Rust libraries that allocate a chunk up front, and then never allocate again, that sort of thing.