Re: [linux-audio-dev] Python

From: Paul Winkler <pw_lists@email-addr-hidden>
Date: Mon Feb 05 2007 - 17:05:24 EET

On Mon, Feb 05, 2007 at 12:26:09PM +0100, Lars Luthman wrote:
> On Sat, 2007-02-03 at 16:28 -0200, Silver Rock wrote:
> > I've been studiyng python and some things are not that clear:
> >
> > 1- Is python too slow to efectivelly communicate with Jack? PyJack did
> > not seem to work right, so i tried PySndObj's JackIO object. It did
> > not behave as good as with connection with ALSA.
>
> Depends on what you mean. Writing the actual process() callback in
> Python is probably not a good idea, not as much because of the speed
> (although you probably wouldn't want to use Python if you want to
> squeeze as much processing as possible out of the computer) but because
> of the unpredictability caused by the builtin garbage collection and
> memory management. Then again, I'm no Python expert. Maybe it's possible
> to tweak the interpreter so it can run in hard realtime.

Highly doubtful. Python is fantastic for lots of jobs. This isn't one of
them.

-- 
Paul Winkler
http://www.slinkp.com
Received on Tue Feb 6 00:15:05 2007

This archive was generated by hypermail 2.1.8 : Tue Feb 06 2007 - 00:15:07 EET