Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This isn't simpler at all. Managing CGo is many times more difficult than a little optimizing. If you're able to write the hot path more performantly in C or similar, then you're perfectly capable of optimizing the Go version--the principles are the same and you don't need to incur the costs of crossing the CGo boundary nor do you need to reason about the memory/ownership handoff between languages or any of the other half dozen downsides of CGo.


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: