4 ms·
In my experience Go is amazing for webserver development. Very easy to learn and you can build things very quickly. However, I still use C++ for extremely comp
by DethNinja 7y ago
In my experience Go is amazing for webserver development. Very easy to learn and you can build things very quickly.
However, I still use C++ for extremely complex networked applications where performance matters, unfortunately Rust doesn’t have battle tested crypto libraries, so I wouldn’t personally use it for networked applications.
- gameswithgo 7y agojust use the c libraries from rust?
- boulos 7y agoOr use rustls, if you just need modern TLS. I found this back and forth of rustls vs native-tls (which picks up openssl/your favorite system ssl) helpful: https://users.rust-lang.org/t/any-reasons-to-prefer-native-tls-over-rustls/37626 https://users.rust-lang.org/t/any-reasons-to-prefer-native-t...
- ilammy 7y agoThere a few wrapper libraries that provide safe Rust interface for a limited feature set on top of system's crypto libraries like OpenSSL, so the applications can benefit from decades of testing and get security updates without timely rebuilds. I'm maintaining one, for example, which has Rust bindings among 12 other platforms.
- eatonphil 7y agoGo's lack of generics makes it better for write-once, run-forever systems like proxies. It's not as ideal for application servers that will otherwise need a lot of code duplication via code generation (to be type safe) or nil interfaces (to throw away static typing). Code generation isn't so bad. Even JOOQ (Java's awesome ORM) will suggest you do it. And similarly, Java's generics aren't that great themselves. But you come to expect more from a newer language with so much history to learn from and they missed the ball on generics. (In contrast they got right: gofmt, go test, cross platform builds, go get, etc.)