On Jan 13, 7:55 am, "Edward K. Ream" <[email protected]> wrote:
> On Fri, Jan 13, 2012 at 8:01 AM, ilkosta
>
> <[email protected]> wrote:
> > today updating my debian I saw a new package called nuitka and I began to 
> > wonder if it could improve performance of Leo.
>
> Thanks for the link.  As many of you know, I have been fascinated, off
> and on, for many years by the tantalizing possibility that some way
> could be found to speed up Python via translation.

Imo, the cython project is probably where you should start: This a
mature project with many important features.

Here are some recent thoughts:

1. My guess is that the average Python program uses *no* dynamic
features at all.  For example, except for monkey patching (very seldom
used) all of Leo's dynamic features (such as Terry's Window code)
could just as easily be done in C/qt rather than Python/pyQt.

2. Cython serves as a nice thought experiment.  Before Ville gets
worried, I *only* plan thought experiments on this topic.  The main
question I want to explore is:  how safe is Cython code compared to
Python code.  Clearly, creating Cython code by hand could introduce
arbitrary bugs.  Hard crashes could be the result.  What I want to
know is this:  is it possible to conceive of automated tools that
would *safely* convert Python program into Cython.  Imo, some kind of
lint-like type checking might be required.  So I wonder: how much
analysis is needed...

Edward

P.S.  I probably will do very little on this project until Leo 4.10
goes out the door...

EKR

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to