Hacker News new | ask | show | jobs
by arcticbull 2454 days ago
If only y’all could have just used llvm
4 comments

For what it's worth, LLVM would have made precise moving GC hard. (Though Go 6g/8g still doesn't have moving GC, which is unfortunate.) For that reason, I'm not certain that LLVM would have been the best decision in the long term, though it would have made Go code faster in the short term.

In my view, if Cranelift had been around when Go was announced, it would have been the clear best choice over LLVM, due to compile times and relative simplicity allowing for easy modifications to add things like precise moving GC and moving stacks.

> In my view, if Cranelift had been around when Go was announced

Too bad cranelift is written in a language which wasn't even invented when Go was announced ^^.

Yes, because we all enjoy waiting for a compiler to get its work done, while keeping the myth alive that either C or C++ are required to write compilers.
To be clear, I've never been a Go team member -- I was a community member working on a port with another person.
That wouldn't have fixed the complexity.