News for hackers. Stuff that matters.
Re:Rust vs. Go 2025 by skwee357 on Thursday May 08, 2025 @07:33AM (#43925139)
I really tried to love Go. But I guess it’s too verbose for my liking. Not having modern paradigms like iterators, or basic data structures — is a bummer, especially in web related development.

On top of that, the pollution of ‘if err != nil’ everything, makes the code unreadable.

Rust, on the other hand, is adorable, and I enjoy it every time I get a chance to write in it.

Re:Rust vs. Go 2025 by mu0n on Friday May 09, 2025 @05:21AM (#43935113)
> Not having modern paradigms like iterators

Go actually has iterators.

Re:Rust vs. Go 2025 by rstuart4133 on Thursday May 08, 2025 @08:22PM (#43932673)
I grimaced when I read this headline in the article:

> Fast, compact executables

They may be fast, but since both languages push you towards static linking neither yield compact executables.

    $ ls -l c-hello nm-hello
    -rwxr-xr-x  1 akips  wheel    5000 May  9 10:19 c-hello
    -rwxr-xr-x  1 root   wheel  526296 May  2 11:15 nm-hello
    $ 
With Go (I think) this is just a tool chain choice. In Rust, monomorphization means the language is more of less wedded to large executables.