The Go Compiler Needs to Be Smarter
lemire.me
The Go Compiler Needs to Be Smarter
1–10 of 119 posts
Re: The Go Compiler Needs to Be Smarter
#2[0] https://github.com/golang/go/commit/fff7509d472778cae5e652db...
Re: The Go Compiler Needs to Be Smarter
#3If your goal is to apply the "principle of least surprise" to the generated machine code, then that eliminates or constrains most interesting optimizations, including procedure inlining, dead code elision, and compile-time evaluation.
Go is a "principle of least surprise" language, based on a vision of simplicity for C that hasn't existed among actual C implementations (outside of maybe Plan 9) for decades now. It's yet more suckless idiocy: sacrifice everything, including utility and friendliness to end users, to buy "simplicity" for hackers. No wonder the suckless folks love Go so much.
Re: The Go Compiler Needs to Be Smarter
#4Sure, if your goal is to build a compiler that outputs the fastest possible code. If your goal is to apply the "principle of least surprise" to the generated machine code, then that eliminates or constrains most interesting optimizations, including procedure inlining, dead code elision, and compile-time evaluation. Go is a "principle of least surprise" language, based on a vision of simplicity for C that hasn't exist…
But why? What's Go done to you? A few if err != nil { ... } statements too many?
Re: The Go Compiler Needs to Be Smarter
#5Sure, if your goal is to build a compiler that outputs the fastest possible code. If your goal is to apply the "principle of least surprise" to the generated machine code, then that eliminates or constrains most interesting optimizations, including procedure inlining, dead code elision, and compile-time evaluation. Go is a "principle of least surprise" language, based on a vision of simplicity for C that hasn't exist…
That seems rather unwarranted attempt at vilification of the language, worded in an odd way: if something sucks, it's bad, so suckless would actually be positive? But why? What's Go done to you? A few if err != nil { ... } statements too many?
Re: The Go Compiler Needs to Be Smarter
#6Earlier quoted context omitted.
That seems rather unwarranted attempt at vilification of the language, worded in an odd way: if something sucks, it's bad, so suckless would actually be positive? But why? What's Go done to you? A few if err != nil { ... } statements too many?
Look up suckless. It has a specific meaning and history.
Re: The Go Compiler Needs to Be Smarter
#7Re: The Go Compiler Needs to Be Smarter
#8Sure, if your goal is to build a compiler that outputs the fastest possible code. If your goal is to apply the "principle of least surprise" to the generated machine code, then that eliminates or constrains most interesting optimizations, including procedure inlining, dead code elision, and compile-time evaluation. Go is a "principle of least surprise" language, based on a vision of simplicity for C that hasn't exist…
Re: The Go Compiler Needs to Be Smarter
#9(yes, rusticles, I know rust exists)
Re: The Go Compiler Needs to Be Smarter
#10It will be a whole lot smarter on June 8th at 7am pacific, https://www.youtube.com/watch?v=Dq0WFigax_c