4 ms·
I very much agree with this. Rust is to C++ what Go is to Java. I think the fact that Go compiles to native binaries and can be linked statically are the primar
by _wldu 6y ago
I very much agree with this. Rust is to C++ what Go is to Java. I think the fact that Go compiles to native binaries and can be linked statically are the primary reasons it is often compared to system languages like Rust or C++. But really, it's not the same type of language.
- AtlasBarfed 6y agoRust fundamentally improves C++ with memory safety and allegedly provably correct concurrency. It is a vastly different set of assumptions, design, and opinions than C++. What does Go do to fundamentally deviate from Java? IMO it is basically the same space with a few different opinions. It has GC, is C-style, a more modern stdlib than C/C++.
- cft 6y agoSingle threaded concurrency: goroutines. It's better for writing servers
- xedrac 6y agoGo improves on Java in several ways, perhaps most importantly, it is much nicer to deploy - no JVM. It's also a lot less verbose, compiles way faster and uses composition instead of inheritance. Having said that, I really hate Java, and only mildly dislike Go.
- pjmlp 6y agoJava has had support for AOT compilation to native code since 2000, just not as free beer.
- pjmlp 6y agoF-Secure thinks otherwise, https://labs.f-secure.com/blog/tamago/ https://labs.f-secure.com/blog/tamago/