Re:Grumpy: Go running Python
by trotterdylan on Wednesday January 04, 2017 @01:20PM
(#13320661)
To be clear, Grumpy cannot yet run YouTube's Python codebase. There's still a lot of work to do on the standard library.
There are a handful of C extensions for JSON, protobufs, etc that YouTube uses, but mostly they're small utility functions written by us to optimize particularly hot code paths.
Is the plan to use grumpc to transpile the code to Go and then work in Go in the future, or is the plan to keep coding in Python and add a grumpy step before deploying?
(If the former, you could just update the code to use the standard Go JSON/etc packages..)
Re:Grumpy: Go running Python
by trotterdylan on Wednesday January 04, 2017 @02:56PM
(#13321508)
The idea is to continue to write code in Python. The transpiled code is not suitable for working with directly. That said, there is the possibility of rewriting bits and pieces in Go (e.g. performance critical stuff) and then call into it from Python. Sort of a hybrid approach.
Re:Grumpy: Go running Python
by statsmatscats on Wednesday January 04, 2017 @02:47PM
(#13321427)
I"m also curious about this
If this is good enough to run YouTube's python code already it's honestly super impressive. Well done.