4 ms·
2x is still means much faster than C++. Go has an strict release cycle[0] and at some point you have to make the switch if you want a compiler easier to develop
by vruiz 11y ago
2x is still means much faster than C++. Go has an strict release cycle[0] and at some point you have to make the switch if you want a compiler easier to develop. I'm sure it'll get much better soon.
https://github.com/golang/go/wiki/Go-Release-Cycle https://github.com/golang/go/wiki/Go-Release-Cycle
- melling 11y agoFast builds is definitely a major feature. Go has attracted more Python developers than C++ developers. http://commandcenter.blogspot.it/2012/06/less-is-exponentially-more.html http://commandcenter.blogspot.it/2012/06/less-is-exponential... Go is great as a much faster Python, where speed matters. If Go compiles slow too much, it becomes less attractive.
- vruiz 11y agoThe compilation time is slower, not the resulting compiled binary. > On average the programs in the Go 1 benchmark suite run a few percent faster in Go 1.5 than they did in Go 1.4, while as mentioned above the garbage collector's pauses are dramatically shorter, and almost always under 10 milliseconds.
- melling 11y agoI'm referring to compilation speed. In Python and Ruby, for example, there is no compile stage. This makes them attractive for rapid iteration.
- vruiz 11y agoMeh, most people will never notice it, and if for someone is an issue, you can continue to develop using 1.4 locally until 1.6 comes in 6 months.
- peterfirefly 11y agoThere is a compilation-to-bytecode stage + lots of file look ups during start up of the Python interpreter and during every module import.
- zurn 11y agoPython caches the bytecode in .pyc files, so the compilation happens only the first time you import a module. In a typical Python start-up only the main source file is byte-compiled.
- Twirrim 11y agoHow often do you compile a code versus run it? Particularly in cases where speed matters?
- melling 11y agoWhy do you think projects like LightTable and Apple's Playgrounds exist? http://www.chris-granger.com/2012/02/26/connecting-to-your-creation/ http://www.chris-granger.com/2012/02/26/connecting-to-your-c... http://www.objc.io/issues/16-swift/rapid-prototyping-in-swift-playgrounds/ http://www.objc.io/issues/16-swift/rapid-prototyping-in-swif... Rapid prototyping doesn't work as well if you need wait for compilation. JRebel exists for Java to improve redeployment times: http://zeroturnaround.com/software/jrebel/ http://zeroturnaround.com/software/jrebel/
- tyho 11y agoYou could argue lots of long running server software has been compiled more times through development than it has been started in prod.