Slashdot Mirror


Python-to-C++ Compiler

Mark Dufour writes "Shed Skin is an experimental Python-to-C++ compiler. It accepts pure, but implicitly statically typed, Python programs, and generates optimized C++ code. This means that, in combination with a C++ compiler, it allows for translation of pure Python programs into highly efficient machine language. For a set of 16 non-trivial test programs, measurements show a typical speedup of 2-40 over Psyco, about 12 on average, and 2-220 over CPython, about 45 on average. Shed Skin also outputs annotated source code."

2 of 181 comments (clear)

  1. 2-40 what? by Rorian · · Score: 0, Redundant

    2x to 40x speedup? 2% to 40%? 2 to 40 seconds?

    Standardised units are your friend.

    --
    Will program for karma.
    1. Re:2-40 what? by Rorian · · Score: 0, Redundant

      I'm sure it is, but I hate it when people don't specify :(

      --
      Will program for karma.