5 ms·
- Fast / cross compile - Benchmark / profiling are much better ( https://blog.golang.org/profiling-go-programs https://blog.golang.org/profiling-go-programs )
by Thaxll 9y ago
- Fast / cross compile
- Benchmark / profiling are much better ( https://blog.golang.org/profiling-go-programs https://blog.golang.org/profiling-go-programs )
- go fmt / go vet
- go doc
All of that that is supported by default by the Go team on all platforms, meaning it works well and I don't have to worry of using a 3rd party Cargo package.
- alexnewman 9y agoGo doc and go fmt have rust equivalents. What’s better at profiling?
- Thaxll 9y agoThere is nothing out of the box for profiling ( but it's bit different since no GC and use C/C++ tools ). What's the equivalent of doc godoc -http=:6060 ( it sounds silly by last time I was in a plane and was able to browse the Go doc Like if I had internet access )
- steveklabnik 9y agoJust cargo doc; I think it has a --open flag too. (Rust docs don't need a web server running)
- dullgiulio 9y agoProbably opens a "file://..." then. Go docs run their own embedded server, they don't need one, just to be precise.
- steveklabnik 9y agoYeah, that's exactly what it does.
- alexnewman 9y agoTotal nonsense rust makes it trivial to profile
- steveklabnik 9y agoThanks! Compile speed is certainly a thing go is excellent at. Cross-compiling, Rust is almost as good, but not quite yet, working on it! Benchmark stuff is not yet stable, but for profiling, you don't need a special tool for Rust; all the C and C++ tooling works. fmt/vet is rustfmt and clippy, which work today, and soon will be distributed with Rust tool. rustdoc already ships with Rust. So, my takeaway is mostly, needs some polish and shipping with the compiler. Thanks!
- estebank 9y ago> - go fmt / go vet rustfmt (will be coming with rustc soon) > - go doc rustdoc (comes with rustc)