Hacker News new | ask | show | jobs
by pentelkuru 4206 days ago
You should be able to get up and running with Go extremely quickly if your default language is C.

If there's a reason you must be using C rather than another language (require manual memory management, require code to be as fast as possible, etc.), then Go might not be applicable. Otherwise, Go feels like an updated C and I don't see a compelling reason not to invest a little time in checking it out for yourself.

1 comments

> require code to be as fast as possible

It's also pretty easy to write the performance critical parts of the code in C and call them from Go.

Yes but you really almost never need to do that. The speed difference is usually only a factor of 2ish... It's not like the factor of 10-30x for interpreted languages.
This will likely not have the desired effect if you are calling into the C code from within a tight loop. Go's C FFI is not low overhead.