You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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?
The text was updated successfully, but these errors were encountered: