Hacker News new | past | comments | ask | show | jobs | submit login

Or for languages with no such non-language-native dependencies, like Go, where I've found it to be piece of cake (and I've never ever tried it for C).



That only works for pure Go code (no use of cgo) and for Go libraries that don't call into OS APIs.


You can absolutely call into OS APIs, as that's what the Go implementation does to interact with the OS in the first place.

It also uses cgo internally for that task. https://github.com/golang/go/blob/2a029b3f26169be7c89cb2cdcc...


Right, now try to actually use it. Specially missing entries from that list.


What do you mean? You use this when you use the builtin os package of Go.

https://golang.org/pkg/os/


Now try to use that, to call these from a Linux compiled executable,

https://docs.microsoft.com/en-us/windows/win32/api/


>That only works for pure Go code (no use of cgo)

Yes. I never cared for cgo, and I'd say most don't.

>and for Go libraries that don't call into OS APIs.

Or that have those APIs wrapped for different conventions. So? This still leaves billions of possible apps, and thousands of existing ones...




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: