Hacker News new | ask | show | jobs
by victorbjorklund 65 days ago
Why is that the case? I don’t know low level programming so why is Go limited in interop with C?
1 comments

its not limited but it has overhead because of the memory model of go doesnt match the C one so there has to be some sort of rerodering being done, that's what i understood atleast, and theres also the go concurrency
The main problem is that Goroutine stacks are small, starting at 2KiB. When you're calling a C function, the Go runtime can't know how much stack space the C function will use, so it has to defensively expand the stack in a lot of cases