News for hackers. Stuff that matters.
Re:Show HN: Cannoli – A compiler for a subset of Python writ... by yorwba on Thursday May 17, 2018 @10:54PM (#17098326)
A large part of the Python standard library is actually written in Python itself. You can even use inspect.getsource to look at the source of inspect.getsource itself.

So if you can already compile arbitrary Python, you only need to reimplement the parts that are written in C, or maybe just rewrite them to use a different FFI API.

Re:Show HN: Cannoli – A compiler for a subset of Python writ... by halflings on Friday May 18, 2018 @04:14AM (#17099546)
It can't compile arbitrary Python, it's only a subset of Python (removing some of the dynamic features that might be used in the standard library).