Live data from Hacker News

Google App Engine for Go

code.google.com

1–10 of 73 posts

Re: Google App Engine for Go

#8
post #6

Any advantage (performance? memory use?) for using Go vs. Python? Or is just programming language preference?

I've been enjoying using Go as a C replacement when I need more performance than Python, but don't actually need to use C. It's been fine for that purpose. I would note that they do keep changing the syntax on a fairly regular basis, the libraries are still young, and I do find the language oddly unexpressive in places compared to even C++ with boost. (E.g., no ternary operator, no list comprehensions, using the same word for all loop variants, and so on.) That said, if you're using it as a C replacement, rather than a Python replacement, I think those are fine trade-offs.

Re: Google App Engine for Go

#9
post #6

Any advantage (performance? memory use?) for using Go vs. Python? Or is just programming language preference?

My general feeling is that Go is kind of like a lighter Java. Go is compiled, but also optimized for fast compile times, and it should be faster than python. However, from wikipedia: "Of features found in C++ or Java, Go does not include type inheritance, generic programming, assertions, method overloading, or pointer arithmetic."

Ken Thompson is a co-creator, and the language came from Google. I think Google is just showing that they stand behind their language, and it does seem to hit a sweet spot for a lot of web apps. Although, I don't know too many web apps that need better performance than python.

Re: Google App Engine for Go

#10
post #6

Any advantage (performance? memory use?) for using Go vs. Python? Or is just programming language preference?

Faster than Python, better memory use for many types of programs. Compared to Java, less memory use and (I assume) much less start-up time, since no VM is needed. Also, since you can use goroutines, it would seem like you'd be able to do concurrent requests without having to have a special async API like Java/Python have. Go seems like it'll be a pretty great fit for App Engine.
Post reply on HN