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

I think you could argue that both languages are equally a pain in the ass to interop with C in.

Could you elaborate? I have used cgo a lot and it is very nice compared to other FFIs I have used (Java, Haskell, Python, Ruby).

Things will get a bit more ugly >= 1.5 with a concurrent copying garbage collector. Since e.g. arrays backing Go slices may be moved, you cannot pass 'blocks' of Go memory to C-land anymore by taking the address of the first element.

Edit: or do you mean using a Go package from C?




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

Search: