Results 1 to 3 of 3

Thread: Shed Skin: Another Way To Compile Python Code

  1. #1
    Join Date
    Jan 2007
    Posts
    14,788

    Default Shed Skin: Another Way To Compile Python Code

    Phoronix: Shed Skin: Another Way To Compile Python Code

    Last week on Phoronix I wrote about Gccpy, which is an effort as part of Google's Summer of Code to develop a Python front-end to GCC that would allow compiling Python into native system binaries using the GNU Compiler Collection. This was of interest to many readers and the developer behind Gccpy, had commented in more detail in the forums. Following that news article I received an email regarding another Python compiler effort...

    http://www.phoronix.com/vr.php?view=OTYzMg

  2. #2
    Join Date
    Jul 2009
    Location
    Austria
    Posts
    13

    Default

    You guys now that there is also Cython?

    http://cython.org/

  3. #3
    Join Date
    Oct 2010
    Posts
    436

    Default

    I think Gccpy, at least, is different from Cython. From the Cython FAQ:
    For numerical code, speed-ups of 100-1000 times compared to CPython are not unusual, and are achieved by simply adding static type declarations to performance critical parts of the code, thus trading Python's dynamic typing for speed.
    You need to be more strict with types when using Cython to get some of it's benefits. I believe Gccpy goes in the other direction--allowing you to use types as you would normally in python, and still get an advantage.

    I don't know how well that will work out; I haven't managed to compile even a very simple test with Gccpy yet, so I can't really judge it yet, except that it seems like a good idea.

    (Side note: It looks like Cython is geared more toward wrapping C libraries for use in Python, or for making C compiled Python modules coded in Python, but I suppose that doesn't preclude it from being used for other purposes.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •