News for hackers. Stuff that matters.
Re:Comparing a web service written in Python and Go [pdf] by dekhn on Monday October 19, 2015 @08:27AM (#10412417)
Typically rewrites like this focus on core functionality; I truly down the project is a 1:1 equivalent. There may be factorings, as well (functionality included as part of Go).
Re:Comparing a web service written in Python and Go [pdf] by tkinom on Monday October 19, 2015 @12:21PM (#10413865)
I rewrote a python webservice in go once and found go need A MORE boilerplate code because of json structures need to be strictly defined for better or worst.

In python, it is at lease 10x less code for json parsing. json.dumps(), json.loads() is basically what I needed. The exception handle fill in all the undefined easily.

Also, go used a lot more memory because the GC is not under my control. In python, I can tell the GC to collect and one can see the memory shrink immediately. In go, that was not the case for me. A program that build GB of search index database in go end up using 4x the amount of memory as compare to python. Golang at that time (2+ years ago) lack the gc debugging infrastructure for me to resolve the problem.

Re:Comparing a web service written in Python and Go [pdf] by mherrmann on Monday October 19, 2015 @08:31AM (#10412434)
Yes. I really do feel like we are not being told the whole story here.
Re:Comparing a web service written in Python and Go [pdf] by dekhn on Monday October 19, 2015 @09:18AM (#10412678)
That said, I'm not really surprised about the performance details. My experience was that Go made it pretty easy to "light up all the cores" on a machine. I say this as a person who spent a lot of time releasing the GIL for multithreaded C++ code hiding behind python front ends.