4 ms·
I don't think the tool to automagically convert C code to Go will work. At the very least it will take much longer than expected to get it right. And when it's
by seunosewa 13y ago
I don't think the tool to automagically convert C code to Go will work. At the very least it will take much longer than expected to get it right. And when it's finally ready, he resulting Go code will be very slow, so they won't be able to use it without serious manual modification. Meanwhile, the C compiler will continue to add new features, and each one will have to be converted to Go and then refactored for performance. It won't work.
- RamiK 13y agoThere's nothing magical about a compiler. If the Go team decides to build a C compiler using Go that targets Go instead of machine code, they will. Worse case scenario the resulting code will be a GOTO littered state-machine with 'import "unsafe"' on every source file. Though I like to think the Go team would fare better then that.
- howeman 13y agoThey aren't writing a general tool from C to Go. They are writing a specific tool to convert the compiler from C to Go. They will then make major modifications, but it's much easier to do that from working Go code than from scratch.