News for hackers. Stuff that matters.
Re:Mugo, a toy compiler for a subset of Go that can compile ... by makapuf on Monday April 12, 2021 @03:54PM (#26784318)
Fun fact: in C, gcc and clang can(and will) replace the sum of n first integers with a loop (and slight variations) with Euler formula n(n+1)/2. Impressive.
Re:Mugo, a toy compiler for a subset of Go that can compile ... by benhoyt on Monday April 12, 2021 @04:24PM (#26784676)
Wow, that is impressive, thanks. I confirmed this with godbolt.org at -O2.