I wonder why the Grumpy Fibonacci is so much slower than CPython for 1 thread. Seems weird given Grumpy is compiled.
Grumpy: Go running Python
21–30 of 463 posts
Re: Grumpy: Go running Python
#22Re: Grumpy: Go running Python
#23This seems like an odd engineering choice. Presumably the effort to create a python->go translator would be non-trivial. Why not just start rewriting components into Go, and migrating them out of Python, leaving python as essentially the presentation layer at most?
Re: Grumpy: Go running Python
#24This seems like an odd engineering choice. Presumably the effort to create a python->go translator would be non-trivial. Why not just start rewriting components into Go, and migrating them out of Python, leaving python as essentially the presentation layer at most?
Re: Grumpy: Go running Python
#25https://www.youtube.com/watch?v=qCGofLIzX6g&list=PLRdS-n5seL...
Basically, the language doesn't have a "spec" per-se. The language is whatever the defacto CPython implementation happens to do within it's giant eval loop.
Another great talk about CPython internals:
Re: Grumpy: Go running Python
#26That looks like a super interesting runtime. Seems to target 2.7 only, I hope they're open to supporting 3.x as well.
I wonder if they intend to maintain it long term or if they're just going to use it as a bridge while they rewrite things natively in Go.
Re: Grumpy: Go running Python
#27It's interesting to see the same pain has now made caused the runtime itself to be implemented in Go.
It's a pity C extensions (often used in scientific computing) are not supported but Go does have support via CGO, so maybe some approach can be worked out to access C routines in the future.
Re: Grumpy: Go running Python
#28Very interesting project and technical solution. Is this in use at Google? The described example problem is Youtube with millions of requests per second, but the post doesn't say if it Grumpy was put in production (and what performance gains were then achieved).
Re: Grumpy: Go running Python
#29The biggest surprise for me is that the Go runtime would be a good fit for Python, performance wise, considering the very different object and dispatch model.
The post also mentions runtime reflection, which used to be painfully slow last time I used it. (Go 1.5, i think).
Has this improved in the latest releases?
Re: Grumpy: Go running Python
#30Good? It's funny that a rabbit hole is the place you go to make obvious choices. This culture must seem strange to outsiders.