News for hackers. Stuff that matters.
Re:Go generics draft design: building a hashtable by 8192kjshad09- on Wednesday June 17, 2020 @03:50PM (#23555914)
Go developers like to claim that the reason the Go compiler is fast is because it's "simple to parse". Unfortunately this doesn't make a lot of sense as parsing is typically only 1-5% of the total compile time.
Re:Go generics draft design: building a hashtable by sacado2 on Wednesday June 17, 2020 @06:10PM (#23557411)
It's not only about the main compiler. Go has tons of third-party tools (linters mainly) that can parse go code, because it's so easy to write one. Most of them wouldn't exist if parsing was a PITA.
Re:Go generics draft design: building a hashtable by Groxx on Wednesday June 17, 2020 @10:05PM (#23559058)
Those almost universally use the "ast" package provided by the stdlib.