View Single Post
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#62
ok, just had a quick conversation on #maemo irc after writing something in pyqt
i wanted to know how to convert the basic code to c
Code:
<lcuk> supposing i have written a simple app in python
<lcuk> it cleanly uses pyqt api and has class based structure
<lcuk> is it possible to examine the python execution model and produce a c++ representation of that code
<lcuk> for clean compilation and transfer to a regular fast c++ binary
<janneg> lcuk: there's shedskin
<lcuk> ?
<lcuk> an app?
<janneg> it probably can't handle pyqt
<lcuk> :D
<lcuk> well that can be examined
<janneg> it's an restricted python to C++ compiler
<lcuk> ive got code here that needs to be native
<lcuk> i can grep the resulting stuff and fix it
<lcuk> but i want the basic structure to come from it
<lcuk> nice, thanks for the tip jenn
<lcuk> janneg, 
<janneg> http://shed-skin.blogspot.com/
<lcuk> yeah im on there now
<lcuk> thats a really good tip :) im gonna post it on the python speedups page
<lcuk> its not a solution for everything, but if it saves the "getting started" part of converting a slow branch
<lcuk> it will be worth it
how cool is that
__________________
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk
 

The Following 7 Users Say Thank You to lcuk For This Useful Post: