News for hackers. Stuff that matters.
Re:Rust by Example by epynonymous on Sunday January 15, 2017 @09:31AM (#13404111)
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.

Re:Rust by Example by giis on Sunday January 15, 2017 @09:49AM (#13404190)
If 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
Re:Rust by Example by nicoburns on Sunday January 15, 2017 @02:03PM (#13405690)
This 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.
Re:Rust by Example by Manishearth on Sunday January 15, 2017 @01:42PM (#13405555)
Go is still intended to replace C/C++ in many domains, e.g. networky things. It's original goal was basically a better C.
Re:Rust by Example by throwaway7645 on Sunday January 15, 2017 @10:59AM (#13404531)
Go 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.
Re:Rust by Example by steveklabnik on Sunday January 15, 2017 @01:02PM (#13405328)
There'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 though.