News for hackers. Stuff that matters.
Re:Grumpy: Go running Python by AnkhMorporkian on Wednesday January 04, 2017 @01:10PM (#13320575)
> There are restrictions. I'll update the README to make note of them. Basically, exec and eval don't work. Since we don't use those in production code at Google, this seemed acceptable.

I'm guessing pretty much the entire AST module is a no-go?

Re:Grumpy: Go running Python by trotterdylan on Wednesday January 04, 2017 @01:17PM (#13320644)
I think the CPython AST module is written as a C extension module so currently it's a no-go. I don't think there's a fundamental reason Grumpy couldn't run a pure Python AST module, though.
Re:Grumpy: Go running Python by brettcannon on Wednesday January 04, 2017 @01:32PM (#13320791)
The ast module itself is in Python, but it imports the _ast module which is an extension module. This actually isn't that big of a deal, though, as the entire AST is defined in a DSL (see https://cpython-devguide.readthedocs.io/en/latest/compiler.h... for some details), so you just have to write some code to generate _ast in Python instead of C (which PyPy may have already done).
Re:Grumpy: Go running Python by gok on Wednesday January 04, 2017 @06:21PM (#13323087)
So I take that means Grumpy can't run itself?
Re:Grumpy: Go running Python by trotterdylan on Wednesday January 04, 2017 @07:58PM (#13323753)
Correct, Grumpy cannot yet run Grumpy :)