Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
I have been forced to work with C libraries since there are no alternatives in Go and it is quite a pain, especially on Windows. And I don't want to be moving to Rust or C itself. I even begun trying to port some C to Go but it was just way too much code to do by hand with uncertain end result so I abandoned that idea. Anyway, I was wondering if there is a chance/way/plan... to have Go be able to take C code and simply translate it into Go code so we won't have to use CGo at all? C is simpler than Go so a compiler/transcoder should be, in theory, able to make a Go version from C's AST. The only problematic parts are the manual memory management that C code has to do but I am sure that could be solved by smart minds behind Go.
So is this in the realm of possibility or just a wishful thinking?
In general, I don't see why this should live inside the Go project itself. If you have a piece of software that translates C to Go, you can just publish the resulting Go on a source repository, or build it directly.
Also, please remember that the Go project doesn't use the issue tracker for questions. See https://golang.org/wiki/Questions.