Re:Migrated WordGap from Python to Go 1
by bsaul on Saturday March 23, 2013 @06:28PM
(#5430050)
Rewriting any code in any language pretty much always show improvements.
Unless we're sure it's not a different data structure or algorithm it doesn't mean that much.
[ Parent
| on HN ]
Re:Migrated WordGap from Python to Go 1
by kkowalczyk on Saturday March 23, 2013 @06:54PM
(#5430144)
Except it doesn't, not when improvement is so dramatic.
If he rewrote Python in Ruby, the perf would have been more or less the same.
If he rewrote in C, he would get even better perf but at much bigger cost (in dev time).
The point of his article is that Go is almost as easy to write in as Python but gives you 10x perf and that's why Go is attractive. It has the right perf/coding effort ratio.
i understand what you're saying, but my point is that even rewriting from python to python would show improvement. i've just coded the same project three times in different languages last year, and my design is getting better every time, and it has (almost) nothing to do with the language themselves. a benchmark is a much more reliable thing if you want to compare relative speed. or a "pet store" app. but not a "real world" project. altough that's still a really nice experience to read about.