News for hackers. Stuff that matters.
Re:Things that make Go fast by HeroesGrave on Saturday June 07, 2014 @03:50AM (#7861576)
Things that make Go fast*

*compared to non-native languages like Python and Java.

Could people please stop calling their favourite language fast just because it beats an interpreted/VM language.

Re:Things that make Go fast by pjmlp on Saturday June 07, 2014 @05:10AM (#7861673)
Not only that. Usually these comparisons cleverly leave out AOT compilers for the said languages to make theirs look better.

In Java's case there are quite a few JVMs, many of those with AOT compilation to choose from, even implemented in Java itself.

Re:Things that make Go fast by marktangotango on Saturday June 07, 2014 @04:07PM (#7862946)
For Java can you name any AOT compilers besides Excelsior JET and GCJ?
Re:Things that make Go fast by pjmlp on Sunday June 08, 2014 @06:34AM (#7864382)
GCJ is dead.

Yes, CodenameOne, JamaicaVM, Aonix Perc and J9 all support AOT compilation besides normal JIT.

The Oracle Hotspot replacement project, Graal allows for AOT compilation via SubstrateVM.

There there is RoboVM for targeting iOS applications, with WP support getting added now.

Android is replacing Dalvik with ART, which does AOT compilation at installation time.

Probably a few more that I am not aware.

Re:Things that make Go fast by marktangotango on Tuesday June 10, 2014 @12:15PM (#7873428)
Thanks for the info, interesting the first four you mention are commercial products. Two you may find interesting: avian vm, and xml vm at one point could translate jvm bytecode to c for compilation with gcc.
Re:Things that make Go fast by Dewie on Saturday June 07, 2014 @04:41AM (#7861642)
Is Go even faster than Java at this point? Last I saw, it wasn't quite there.

The only comparison with regards to Java was with the representation of integers, IIRC, which isn't really a native vs VM issue.

Re:Things that make Go fast by NateDad on Saturday June 07, 2014 @05:52AM (#7861736)
For pure processing speed, Go is pretty comparable to Java for code that does not heavily rely on generics.

http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?t...

What Dave's presentation mentions is the memory... note the huge difference in memory footprints of the programs. That's where java loses heavily, and that can affect speed as well, which was his point.

Re:Things that make Go fast by ssmoot on Saturday June 07, 2014 @09:43AM (#7862057)
> for code that does not heavily rely on generics

Does adding Generics heavy code move the needle in Java's favor?

As a Scala developer your comment just jumped out at me because even doing a lot of Akka this past week, there's hardly a line of code that doesn't instantiate or manipulate a Generic.

Just curious. I'm sure Go will get faster. I'm sure it's better suited to certain problems (memory constrained especially).

Re:Things that make Go fast by seanmcdirmid on Saturday June 07, 2014 @11:01AM (#7862242)
No. If you don't use generics in Java, you get the same memory footprint of not using generics (or since it doesn't have type parameters, using any) in Go. So the author is making an unfair apples-oranges comparison when the apples-apples comparison is quite obvious: one can write an int-list in Java just as easily as they can in Go.

Frankly, this is just strong intellectual dishonesty.

Re:Things that make Go fast by stcredzero on Saturday June 07, 2014 @01:05PM (#7862489)
Frankly, this is just strong intellectual dishonesty.

If you're going to harp on rigor, then you need to consider then eliminate the prospect of an honest mistake.

Re:Things that make Go fast by seanmcdirmid on Saturday June 07, 2014 @02:02PM (#7862614)
Intellectual dishonesty doesn't mean lying, it could just mean "honest mistakes" that fail to apply proper reasoning and comparisons.
Re:Things that make Go fast by stcredzero on Sunday June 08, 2014 @03:32PM (#7865595)
Right now, you seem to be making an "honest mistake" with my referents. You seem (atypically) weirdly consistent with such honest mistakes in these threads. What is the lie, exactly?
Re:Things that make Go fast by 4ad on Saturday June 07, 2014 @11:21AM (#7862278)
No, compared to nothing. Go is fast (or at least that's what Go programmers feel when they are using it). If they want to know why, they can read this article. This article is not Go vs. Java vs. C++ advocacy, don't try to make it looks like it is. It makes no claim Go employs better optimization technology than C++.