4 ms·
Actually, I'd expect Go to work really well! Not if you tried to generate C code that compiles to a given Go binary, of course. But that's not what you'd do. I
by matt-noonan 9y ago
Actually, I'd expect Go to work really well! Not if you tried to generate C code that compiles to a given Go binary, of course.
But that's not what you'd do. Instead, you'd use the Go compiler as the black box, and learn Go code to produce the given binary. And for that, Go might work better than C: the speed of the compiler would help churn through generations that much faster.
- XR0CSWV3h3kZWg 9y agoIs go compilation that much faster?
- zik 9y agoGo compilation prioritises compile speed over executable speed by default. It's very fast.
- XR0CSWV3h3kZWg 9y agoIs it faster than gcc -O1?
- zik 9y agoFrom memory yes, it's a lot faster. Compile/link of programs with a few thousand lines of code typically takes on the order of a fraction of a second to a second.