News for hackers. Stuff that matters.
Re:Invoking C Code from Golang by _ph_ on Wednesday December 22, 2021 @02:13PM (#29653712)
I didn't want to claim that you should use C libraries when you don't have to. But I knew the article, and it underestimates the value of being able to use libraries which are already there. Rewriting them is often not practical or even possible.
Re:Invoking C Code from Golang by kf6nux on Wednesday December 22, 2021 @03:51PM (#29654991)
I didn't read it that way myself.

For HN comment readers that skip citations (I'm not saying you did, just helping the conversation):

First paragraph

> cgo is an amazing technology which allows Go programs to interoperate with C libraries. It’s a tremendously useful feature without which Go would not be in the position it is today. cgo is key to ability to run Go programs on Android and iOS.

Last paragraph

> To be clear, I am not saying that you should not use cgo. But before you make that Faustian bargain, please consider carefully the qualities of Go that you’ll be giving up in return.

I don't see this as devaluing.