News for hackers. Stuff that matters.
Re:Program your next server in Go by pjmlp on Wednesday June 08, 2016 @05:18AM (#11860985)
When I used to frequent gonuts, I raised the issue why they didn't went the FFI way as D, Rust, .NET, Delphi, FreePascal do, but sadly they rather use cgo as solution.
Re:Program your next server in Go by dalailambda on Wednesday June 08, 2016 @05:27AM (#11861024)
I'm pretty sure the problem is Go's use of segmented stacks and runtime, which makes it hard to properly interface with C efficiently.
Re:Program your next server in Go by pjmlp on Wednesday June 08, 2016 @06:01AM (#11861148)
Sure, but the compiler could generate that FFI code, why the need to rely on an external tool (cgo) and a C compiler?