4 ms·
I believe that coreutils should be rewritten in Go. Much better option.
by betimsl 5y ago
I believe that coreutils should be rewritten in Go. Much better option.
- jgilias 5y agoHere you 'Go': https://github.com/aisola/go-coreutils https://github.com/aisola/go-coreutils
- GhettoComputers 5y agoLast commit was 2015, is it functional?
- andreynering 5y agoI've seem a few attempts. This is just one example: https://github.com/u-root/u-root/tree/master/cmds/core https://github.com/u-root/u-root/tree/master/cmds/core EDIT: You may also be interested in https://github.com/mvdan/sh https://github.com/mvdan/sh
- loudmax 5y agoWhy would Go be a better option than Rust here? Go and Rust are optimized for different types of environments. There are a lot of situations when selecting Go over Rust would be a more pragmatic choice. I don't see how coreutils is one of these.
- tyingq 5y agoIt seems like a reasonable opinion to me. Looking at the list of what's in coreutils, I don't see anything where performance would be a huge issue other than perhaps dd, so any performance edge Rust might provide seems moot. And I would guess that Golang would be less code and faster to write/implement. I would feel differently if it were something else, like gawk, for example. Rust would be a better fit there.