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

If one just wants simplicity, why not pick C, or even Basic-80? They are simpler than Go.

For the increase in complexity, Go gives you concurrency, and Rust, safety, on top of other things.



> If one just wants simplicity, why not pick C, or even Basic-80? They are simpler than Go.

It's very simple to write bad C. Writing safe, correct C with no security vulnerabilities is surprisingly hard, which is a major reason why most OSes need to apply regular security patches.

Rust gives you speed, concurrency and memory safety at the same time. This is not free: You need to know about values, references, stacks and heaps. And you need to write your code so that objects have a single, clear owner. It also helps to be somewhat familiar with generic types and functions like `map`—some old-school C programmers might have issues with parts of Rust, but C++ programmers (or C programmers who know JavaScript) should be fine.

If you're willing to pay that price, and spend a week or two making friends with the borrow checker, Rust is a fantastic and versatile tool. But for many programmers and applications, that price may be too high.

Rust will hopefully remain simpler than C++. But it's always going to be more complex than Go or Ruby. I have no idea whether Rust will wind up simpler or more complex than modern JavaScript, though. :-)


My point exactly. Being simple is nice, but not enough.

This is why I (ironically) offered to use Basic-80, which is even simpler than Go, replying to a text that suggests to choose Go over Rust for Go's simplicity.




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

Search: