News for hackers. Stuff that matters.
Re:App Engine’s New Go 1.11 Runtime by wiradikusuma on Tuesday October 16, 2018 @02:21PM (#18231804)
It's always been my impression that Go on GAE is the most lightweight compared to Java/Python, as it not "memory hungry" like Java nor "slow" like Python. Am I correct?
Re:App Engine’s New Go 1.11 Runtime by buss on Tuesday October 16, 2018 @02:24PM (#18231845)
It is quite lightweight, yes!

Though...I wouldn't necessarily call Python slow! Python keeps getting faster, and we now support Python 3.7 on our second gen runtimes: https://cloud.google.com/blog/products/gcp/introducing-app-e...

Re:App Engine’s New Go 1.11 Runtime by melling on Tuesday October 16, 2018 @02:54PM (#18232121)
Does anyone have numbers to compare? Go is a compiled language. Should perform much better.

Python might be perfectly acceptable of course.

Re:App Engine’s New Go 1.11 Runtime by tomcam on Tuesday October 16, 2018 @03:52PM (#18232624)
I would absolutely love those numbers too. Always wondered about the working set of a minimal program, and also one with database access.
Re:App Engine’s New Go 1.11 Runtime by pkroll on Tuesday October 16, 2018 @05:45PM (#18233582)
Well, there's the Techempower benchmarks at: https://www.techempower.com/benchmarks/

You can go to the filter, turn off all languages but Go and Python, and get a general idea.

There's also the old Computer Benchmark Game, which should be taken with a whole barrel of salt: https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

Re:App Engine’s New Go 1.11 Runtime by eiieirurjdndjd on Tuesday October 16, 2018 @06:13PM (#18233753)
I actually looked at this before making my other comment. You’re absolutely right about the salt. One of the go benchmarks is basically pure cgo using vector intrinsics. It naturally blows idiomatic JS out of the water. So you might get those kind of results if that’s the kind of code you’re going to write, but it’s far from what I consider idiomatic. Another language’s proponent would be fair to point out that most languages have C FFIs.
Re:App Engine’s New Go 1.11 Runtime by igouy on Wednesday October 17, 2018 @01:14AM (#18236295)
> One of the go benchmarks is

Which program? URL?

Re:App Engine’s New Go 1.11 Runtime by eiieirurjdndjd on Wednesday October 17, 2018 @07:39AM (#18238041)
https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

It’s fifty percent faster than the competing java program.

Re:App Engine’s New Go 1.11 Runtime by igouy on Wednesday October 17, 2018 @02:53PM (#18242415)
That Go pi-digits program is 50% faster than a Java program that also uses the GMP library, just like the Go program!

That Go pi-digits program is only 4% faster than a PHP program that uses the GMP library.

It's not enough to "point out that most languages have C FFIs" when for this arbitrary precision arithmetic task GMP is allowed and others step-up and contribute those programs.

Re:App Engine’s New Go 1.11 Runtime by eiieirurjdndjd on Wednesday October 17, 2018 @11:27PM (#18245687)
I see. I had only looked at the source code of the Nodejs competitor. To be fair the point still stands that you need to read the source to know what is really being measured.
Re:App Engine’s New Go 1.11 Runtime by igouy on Wednesday October 17, 2018 @11:53PM (#18245776)
Of course you need to read the source code to know what is really being measured!

That's true of every comparison -- basic due diligence.

And read how the measurements were made --

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

And read some background --

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

And, of course, look for a task that might be appropriate --

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

Re:App Engine’s New Go 1.11 Runtime by igouy on Wednesday October 17, 2018 @03:07PM (#18242597)
No, there's no reason to take the benchmarks game with even a pinch of salt!

The benchmarks game website shows what it says it shows --

"Which programs are faster? Will your toy benchmark program be faster if you write it in a different programming language? It depends how you write it!"

Re:App Engine’s New Go 1.11 Runtime by igouy on Thursday October 18, 2018 @12:16AM (#18245850)
(No, there's no reason to add even a pinch of salt to the benchmarks game website).
Re:App Engine’s New Go 1.11 Runtime by eiieirurjdndjd on Tuesday October 16, 2018 @06:08PM (#18233726)
Nodejs might also be a good option. It’s comparable to go on a core for core basis, and IIRC GOMAXPROCS is 1 on GAE.
Re:App Engine’s New Go 1.11 Runtime by chrisbroadfoot on Tuesday October 16, 2018 @06:34PM (#18233888)
(GAE Gopher)

GOMAXPROCS is not 1 for this new runtime. As far as I know, it's an entirely vanilla Go runtime.

Re:App Engine’s New Go 1.11 Runtime by dfischer on Tuesday October 16, 2018 @09:01PM (#18234677)
Woah that's a significant update then.