4 ms·
"How to sell a rewrite of your compiler that made it slower"
by bla2 11y ago
"How to sell a rewrite of your compiler that made it slower"
- andrewchambers 11y agoThis is a fair criticism presented in a poor way. Hopefully the performance will improve with the new dev.ssa branch eventually. I will note that go programs still seem to build orders of magnitude faster than C++ programs, even after this change.
- imslavko 11y agoCan you please explain what dev.ssa branch is implementing and how is it going to change the performance of the compiler?
- andrewchambers 11y agoIt is a program representation that a few modern compiler optimization techniques rely on. It just mean there is potential for the compiler to emit better assembly code. Because the compiler is now written in Go, compiler optimization will affect how fast programs compile. The compiler may speed up or slow down because it is doing more advanced code analysis, but is generating better assembly. I do not know if this will cancel itself out or not.
- imslavko 11y agoCan you please explain what dev.ssa branch is implementing and how is it going to change the performance of the compiler?
- stefantalpalaru 11y agoIt's not a hard sell. Self-hosting improves the language simply by having the core developers use it for a complex project like a full toolchain.
- Artemis2 11y agoNot really. https://talks.golang.org/2015/state-of-go-may.slide#11 https://talks.golang.org/2015/state-of-go-may.slide#11
- coldtea 11y agoHe means in compilation speed - not in resulting binary speed.