News for hackers. Stuff that matters.
Re:Go 1.7 is released by travjones on Monday August 15, 2016 @07:56PM (#12294494)
Great work, Go team!

Standout points in my opinion:

Overall performance improvements:

>> "We observed a 5–35% speedup across our benchmarks."

Decreased compile times and binary size:

>> "While these changes across the compiler toolchain are mostly invisible, users have observed a significant speedup in compile time and a reduction in binary size by as much as 20–30%."

Vendoring dependencies by default:

>> "...and in Go 1.7... the "vendor" behavior is always enabled"

Context package added to std lib:

>> "To make use of contexts within the standard library and to encourage more extensive use, the package has been moved from the x/net repository to the standard library as the context package."

Re:Go 1.7 is released by mattetti on Monday August 15, 2016 @09:12PM (#12294818)
The faster compilation time & speed up is quite real in our real life prod application.

From Go 1.6 to 1.7: Test suite (CI), from 3:34 to 1:48 Docker image building, from 3:05 to 1:50

https://twitter.com/mattetti/status/763913903600349184

Re:Go 1.7 is released by rmcpherson on Monday August 15, 2016 @11:43PM (#12295397)
On our code base, we're seeing >2x build speed increases vs. go 1.6! Compiling the entire go monorepo, including vendored dependencies, dropped from 73 seconds to 29 on 4 CPUs when moving from 1.6.3->1.7rc6. Huge improvements to CI times, when amortized across go build, go test, docker builds etc.
Re:Go 1.7 is released by tbrock on Monday August 15, 2016 @10:16PM (#12295089)
That's a ridiculous speed improvement. Holy shit.
[dead]
Re:Go 1.7 is released by _ph_ on Tuesday August 16, 2016 @05:40AM (#12296371)
Yes, compile times have gotten worse in some releases, but there were good technical reasons for the trade-off, mainly the general quality improvements of the go environment. But the good news is, they are not resting but trying to gain back the lost speed - you do not observe this always in larger programs.

Calling people happy about this "g-sheep" is unnecessary name-calling.

Re:Go 1.7 is released by rogerdpack on Tuesday August 16, 2016 @10:49AM (#12297808)
It would be interesting to see some benchmarks from each version... :)
Re:Go 1.7 is released by travjones on Monday August 15, 2016 @09:58PM (#12295005)
Wow. That's impressive. Thanks for the example numbers, Matt!
Re:Go 1.7 is released by mattetti on Monday August 15, 2016 @10:20PM (#12295101)
Thanks to the Go team, getting such an improvement without having to do anything is awesome. And I can't believe there is more coming in 1.8
Re:Go 1.7 is released by namelezz on Monday August 15, 2016 @09:46PM (#12294955)
Following the twitter link and got this: "Something is technically wrong. Thanks for noticing—we're going to fix it up and have things back to normal soon."
Re:Go 1.7 is released by mintplant on Monday August 15, 2016 @10:28PM (#12295124)
I've noticed this too on random pages. Seems Twitter is having issues today.
Re:Go 1.7 is released by travjones on Monday August 15, 2016 @09:58PM (#12295007)
The link works for me. :)
Re:Go 1.7 is released by 0xmohit on Tuesday August 16, 2016 @10:43AM (#12297762)
From Go 1.5.4 to 1.7, I can see that the compilation time has improved. Didn't measure it, though.

However, the binary size didn't change appreciably. From 11129144 bytes, it reduced by 0.00179708340551618345%.

Re:Go 1.7 is released by jadbox on Monday August 15, 2016 @11:04PM (#12295264)
How large-ish is your codebase?
Re:Go 1.7 is released by donatj on Tuesday August 16, 2016 @01:14AM (#12295670)
That's what I was wondering. Our largest Go application takes maybe 5 seconds to compile clean. We largely use Go as a number of Microservices though.
Re:Go 1.7 is released by mattetti on Tuesday August 16, 2016 @02:09AM (#12295817)
167912 LOC