3 ms·
when i taught myself golang, gobyexample.com was the best resource for learning golang! so i'm hoping this is on par with that. what gobyexample lacks is more
by epynonymous 10y ago
when i taught myself golang, gobyexample.com was the best resource for learning golang! so i'm hoping this is on par with that. what gobyexample lacks is more complicated examples, but it gets you started with just enough.
rust seems like a great language, but i'd like to hear about some advantages versus golang.
- giis 10y agoIf I'm not wrong, I think golang and rust target different group of developers. Rust portrayed as low-level system level lang. potential replacement for c/c++. Where golang is touted as potential replacement for high-level application which are currently being written in Python/Ruby/PHP
- Manishearth 10y agoGo is still intended to replace C/C++ in many domains, e.g. networky things. It's original goal was basically a better C.
- nicoburns 10y agoThis is partly true, but there's a lot of crossover. I've been happily using Rust as a node.js replacement for the last few weeks.
- throwaway7645 10y agoGo has a garbage collector and therefore pauses which may or may not be acceptable to you. Rust does not (maybe you can enable GC though idk). Rust also encourages immutability. I'm gonna guess Go is more traditional there. Rust uses the LLVM compiler...not sure about Go. Rust is meant to be used where speed is absolutely critical.
- steveklabnik 10y agoThere's no tracing GC in Rust, not even enable-able. The reference Go compiler doesn't use LLVM, there is https://llvm.org/svn/llvm-project/llgo/trunk/README.TXT https://llvm.org/svn/llvm-project/llgo/trunk/README.TXT though.