Re:Ask HN: What's the big deal with Go (Golang)?
by AnimalMuppet on Thursday October 12, 2023 @09:00AM
(#37856581)
Depends on what kind of C++ you're writing.
Interfacing to hardware? Bit-flipping in registers on a peripheral chip? I'd use C++ for that.
Something with lots of dynamic memory usage? I'd at least consider Go because of the garbage collection. That makes an entire set of problems just go away.
Something with a ton of network connections? Again, I'd consider Go.
Something where I need the last drop of performance? C++.
Interfacing to hardware? Bit-flipping in registers on a peripheral chip? I'd use C++ for that.
Something with lots of dynamic memory usage? I'd at least consider Go because of the garbage collection. That makes an entire set of problems just go away.
Something with a ton of network connections? Again, I'd consider Go.
Something where I need the last drop of performance? C++.