3,297 karma · joined Nov 15, 2012 (14y ago) · 1,171 submissions
comment 13y ago · link · parent
To select a suitable tip build we use http://build.golang.org/ and https://groups.google.com/forum/?fromgroups#!forum/golang-de... . My recommendation would be to find a one or two week old build that passed all checks, do a quick skim of the mailing list to make sure there weren't any other issues and use that revision. Also, you will see some the the builders are broken-
Of course if your application has automated unit tests and load tests, run those too before a full deployment.
comment 13y ago · link · parent
This normally means broadening your C-S background (think of all the electives you didn't take as an undergrad) and learning skills like formal verification and analysis, project planning, managing quality assurance, formal documentation and designing complex and scalable systems.
comment 13y ago · link · parent
comment 13y ago · link · parent
One note, Scala uses more memory than Java does, so it appears not all of this usage can be blamed on the JVM itself: http://benchmarksgame.alioth.debian.org/u32q/benchmark.php?t...
comment 13y ago · link · parent
Maybe once 1.1 is out and the language game switches to it, that will be the case (the benchmark is using the current stable release of Go 1.0.3).
Also, I assume you are talking about execution time, Go destroys Scala in your linked comparison in terms of memory usage.
1062.
Go 1.1 RC due next month; Go 1.1 Release Notes:(tip.golang.org ↗)
2 points · by voidlogic · 13y ago · discuss
comment 13y ago · link · parent
1064.
Mitosis: Hot swapping Go code while maintaining application state (golang)(github.com ↗)
2 points · by voidlogic · 13y ago · discuss
1065.
Redistore: A session store backend for Go's gorilla web toolkit(github.com ↗)
1 points · by voidlogic · 13y ago · discuss
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
Not only do you gain performance but I think you gain maintainability and clarity. I value that when you read Go the run-time complexity of operations is very clear. In many other languages you often find O(n) or worse operations that appear to many programs in such a way the uninformed assume they are O(1) operations. In Go that does not happen- almost always what you see is what you get. I will gladly write a few more lines of simple code to gain clarity.
comment 13y ago · link · parent
I have ported node.js applications to Go and seen similar substantial speedups. In my cases though I was running in a multi-threading enviroment. not GAE and the performance difference (improvement) was much greater under concurrent load versus single request latency. But that seems reasonable since node.js is closer to Go in performance than Python is.
I guess I just believe it because I have seen it. :)
comment 13y ago · link · parent
Note: Even with Go only given a single core a developer can still write a Go program so they are concurrent. That way when one goroutine blocks on IO, another can use the CPU to make progress; furthermore, when multi-threading is enabled the performance upgrade will be substantial and seamless.
comment 13y ago · link · parent
This kind of difference is not uncommon when BOTH the before and after program optimally handle IO (network,file,db,etc), BUT the before program is from the interpreted performance tier (PHP,Perl,Ruby,Python) and the after program is from the compiler tier (C/C++,Java,C#,Go,Scala,Haskell).
These micro-benchmarks, while not proving anything, at least suggest that you could be wrong as well: http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...
1074.
Migrated WordGap from Python to Go 1(blog.zmxv.com ↗)
50 points · by voidlogic · 13y ago · 40 comments
comment 13y ago · link · parent
comment 13y ago · link · parent
We all know CPU performance is much less important than IO performance (file, DB, network), but assuming a large Ruby site and large .NET site both got that part right, and CPU performance does start to matter, what he says sounds reasonable.
Rather than being noticeably faster (lower latency) for a single user, the compiled tier (Java,C#,Go,Haskell,Scala,etc)'s better performance often just allows for far fewer (or cheaper) servers than the interpreted tier (PHP,Perl,Ruby,Python) to be thrown at the problem.
comment 13y ago · link · parent
I would argue that virtual machines at a hypervisor/hardware level were just a hack for OSs not living up to their isolation promises/obligations. Strong OS level isolation implementations (cgroups, namespaces etc) allow people to put isolation back where it belongs, the OS.
The job of the OS is to control the hardware, wrapping the OS is software to emulate hardware is ridiculous and VMs generally have much more performance overhead than isolation containers.
comment 13y ago · link · parent
Python? Django, Tornado, Twisted, etc
Go? "net/http" + Gorilla (http://www.gorillatoolkit.org/)
Java? JSF 2.0, GWT, Spring, Tapestry, etc etc
C#? ASP.NET MVC
This list could be almost infinite... or at least could be discussed infinity :)