3 ms·
Rust is supposed to be a language for systems programming, and a shell seems like a good exercise for that.
by JoshTriplett 12y ago
Rust is supposed to be a language for systems programming, and a shell seems like a good exercise for that.
- lmm 12y agoIs it? I understood it was a language for Mozilla (i.e. with the browser as a core use case) - so for very high-performance applications (those that need so much control of memory management that even Haskell is unacceptable) rather than systems per se. No?
- burntsushi 12y agoSeems like pretty nebulous territory to me (which I think means it's probably not worth splitting hairs over it). In any case, rust-lang.org says in big giant letters: "Rust is a systems programming language ..."
- JoshTriplett 12y agoWriting a browser is very much a systems programming task, including careful memory management, access to numerous platform features, implementation of a high-performance JIT and language runtime...
- lmm 12y agoIt's not really systems programming in the sense that I understand it (or in e.g. the wikipedia article). More to the point, I think a browser involves a lot more manipulation of complex data structures - even the basic DOM is more complex than anything you'd use in a shell - and this is an area in which I expect Rust to shine. So I don't think a shell provides the best opportunity to appreciate Rust's strengths.