Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What Gophers mean by that is that golang nudges you to write the naive, straightforward and readable solution at first. This sidesteps premature optimization and false design choices too early on. In practice go stdlib and direct code tend to be faster than clever and more complex alternatives.


Rust similarly nudges you to write the highest-performing-but-still-safe solution. You can opt into "convenience" features that come with some overhead, but that always involves some extra boilerplate so you'll know where a refactor may improve performance. And you can add unsafety, but it will always be clearly marked.

I actually think Rust has a better story of what it "nudges" devs to write. Go strives for a very fuzzy feeling of surface simplicity, but in practice it's way less principled.


Go is faster to write, read, can have faster defaults/libs and less need for choice. I'd consider rust where further optimization is warranted.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: