News for hackers. Stuff that matters.
Re:Exploit custom codecs to write inline C in Python by tjwei on Sunday February 02, 2020 @08:53PM (#22220814)
I wrote a similar piece of code called MagicCodec back in 2008, including a zhpy codec(Chinese Python) and a Lua codec, which translates Lua source code to Python. (Blog content in Mandarin Chinese, with sample code http://weijr-note.blogspot.com/2008/02/python-magiccodec-01....) There was a time that I am slightly interested in Chinese Python for education purpose. Another interesting approach is using ctypes to replace keywords in CPython implementation, http://weijr-note.blogspot.com/2011/06/python-32-keyword.htm... (Also a blog post in Mandarin Chinese with sample code, which is also in Mandarin Chinese)

There are no comments on this comment yet.