3 ms·
No offense, but have you spent much time with Go or Rust? In most cases Go's performance difference isn't extremely divergent from C++'s and it preserves safety
by drivebyacct2 15y ago
No offense, but have you spent much time with Go or Rust? In most cases Go's performance difference isn't extremely divergent from C++'s and it preserves safety and enhances convenience, exceptions and adds concurrency.
- cageface 15y agoLast I heard the Go compiler was generating code 6x or more slower than comparable C++ code. Is that not still true?
- enneff 15y agoYou heard wrong: http://blog.golang.org/2011/06/profiling-go-programs.html http://blog.golang.org/2011/06/profiling-go-programs.html
- andrewcooke 15y agoThe graphviz / svg output from the profiler shown there is very nice. Does something similar exist for other languages? I particularly like the scaling of the node size by the appropriate value (CPU time, memory use, etc).
- enneff 15y agoGo's pprof is based on the C-based one: http://code.google.com/p/gperftools/ http://code.google.com/p/gperftools/
- SamReidHughes 15y agoGo afaict does more than preserve safety, it improves it! And it enhances convenience. Concurrency in C++ works just fine, though.