News for hackers. Stuff that matters.
Re:Go vs. Rust: Writing a CLI Tool by pkolaczk on Tuesday August 04, 2020 @01:10AM (#24046850)
Rust can statically prove there are no data races, Go cannot.

Rust offers statically checked deterministic destruction, which makes handling non-memory resources much safer from leaks. Failing to dispose non-memory resources properly (e.g in databases) may be considered a correctness problem. Rust helps in this area, Go doesn't.

Re:Go vs. Rust: Writing a CLI Tool by dpc_pw on Tuesday August 04, 2020 @02:44AM (#24047336)
Does Go have anything even close to clap/structopt?
Re:Go vs. Rust: Writing a CLI Tool by alecthomas on Tuesday August 04, 2020 @07:12AM (#24048760)
Yes, though unlike Rust they use reflection: https://github.com/alecthomas/kong (my own)
Re:Go vs. Rust: Writing a CLI Tool by dpc_pw on Tuesday August 04, 2020 @02:22PM (#24052930)
Thanks. Looks good. The reflections don't bother me (that's the way to go with in Go).
Re:Go vs. Rust: Writing a CLI Tool by saturn_vk on Tuesday August 04, 2020 @10:30AM (#24050330)
For cli apps it doesn't really matter if it's reflection-based