News for hackers. Stuff that matters.
Re:GoAWK: an AWK interpreter written in Go by _ph_ on Sunday November 18, 2018 @07:27AM (#18480035)
Go isn't just about GC. Go is a language, which is stricter checked by the compiler. So beyond direct memory management, Go code should be cleaner, safer and of course easier to read than the corresponding C code.
Re:GoAWK: an AWK interpreter written in Go by Twirrim on Sunday November 18, 2018 @10:39AM (#18480813)
If you're interested in correctness, cleaner and safer, Rust is a better choice. Go's lack of generics really hurts it when it comes to simplicity and cleanliness, and so far as correctness goes, the Go compiler isn't anywhere near as strict as Rusts one (nor is it as strict as gcc or most other compilers, for that matter, as a conscious choice of favouring speed over correctness)
Re:GoAWK: an AWK interpreter written in Go by hu3 on Monday November 19, 2018 @12:16AM (#18484374)
> easier to read
Re:GoAWK: an AWK interpreter written in Go by Twirrim on Monday November 19, 2018 @12:43AM (#18484435)
Easier to read is not something I'd particularly accuse Go of. If you want that, stick with python. Lack of generics can end up really hurting Go for cleanliness.

Something I ran in to the other day when I was trying to produce a reverse sorted list of strings:

    sort.Sort(sort.Reverse(sort.StringSlice(dir_contents)))