Grumpy: Go running Python! by Google

248 comments · 92% upvoted · source · other discussions

comments

semi_colon

As someone who doesn't use Go or Python: what is the use for this?

vplatt

To run Python code as a Go compiled executable. This allows them to avoid the Python Global Interpreter Lock (which severely limits Python's scalability within a single process) and run the Python code using Go modules as if they were Python modules.

Really, unless you're Google or another Python shop interesting in moving to Go, you probably don't have a use for this.

phpdevster

So is it fair to say that this is just a way for them to give Python the performance characteristics of Go without having to actually rewrite into Go code?

vplatt

Yes, more or less. Python is still dynamically typed, so there has to be some runtime overhead around that, but that's got to be insignificant compared to the advantages around getting away from the GIL.