3 ms·
I'd say the best idea is to port a lot of these code bases to languages like Go or Rust maybe So your answer to to the criticism of "this code is ancient" for
by vacri 12y ago
I'd say the best idea is to port a lot of these code bases to languages like Go or Rust maybe
So your answer to to the criticism of "this code is ancient" for core utils is "let's port them to languages that haven't finished maturing yet"? Rust in particular is only two years old, and the recommended version is "the nightly build". That sounds super-stable for core utils...
- teamhappy 12y agoI also said it's a problem we have to tackle in the next couple of years. You don't have to start porting today. I write command line tools (and that kind of thing) in Go and it's a great experience. Go shines once you come back to an old code base, or have to review code you didn't write. Rust made the list because somebody already ported the GNU core utils to Rust (https://github.com/uutils/coreutils https://github.com/uutils/coreutils). Feel free to use C++11/14, OCaml, D or what have you. I hope we agree that C isn't the best choice.
- steveklabnik 12y agoRust is actually older than two years. Mozilla became a sponsor in 2009, Graydon had been working on it for two or three years before that, IIRC. That said, that Rust looks almost nothing like today's Rust, and you're totally correct about stability.