News for hackers. Stuff that matters.
Re:Go 1.18 Beta 1 is available, with generics by Sharlin on Wednesday December 15, 2021 @11:50AM (#29568436)
It should be noted, though, that rustc does not really have any particular tricks up its sleeve to optimize functional patterns, or indeed much of anything. A lot of the LLVM IR that rustc generates is astonishingly naive and verbose – largely by design! rustc totally depends on LLVM's optimization passes to throw out all the boilerplate and output lean and mean optimized machine code.
Re:Go 1.18 Beta 1 is available, with generics by kortex on Wednesday December 15, 2021 @04:24PM (#29571819)
Right but that just means it's LLVM being clever, not rustc.

The main compiler is the self-hosting gc go compiler. Iirc ~~it's the reference implementation~~ erm I guess it's determined by spec, not reference implemenation. Gc is definitely "the default" though.

Then There's the gofrontend, which is a compiler frontend to other compilers, which can work with gcc and llvm. I am not aware of the state of the art for these, but I wonder if there are performance differences.