[PD] sending image from of / libpd

Jonathan Wilkes jancsika at yahoo.com
Mon Aug 29 07:15:47 CEST 2011





----- Original Message -----
> From: Mathieu Bouchard <matju at artengine.ca>
> To: Dan Wilcox <danomatika at gmail.com>
> Cc: PD List <pd-list at iem.at>
> Sent: Monday, August 29, 2011 12:54 AM
> Subject: Re: [PD] sending image from of / libpd
> 
> On Mon, 29 Aug 2011, Dan Wilcox wrote:
> 
>>  I was talking about sending a large list through libpd which, I assume, is 
> doing some sort of copying of floats as it translates from the libpd api to the 
> internal pd api.
> 
> Oh, yeah... if you use z_libpd.h, it copies the floats, whereas with m_pd.h, you 
> have the option to have your data as atoms in the first place, so that they 
> don't have to be copied.
> 
>>  Besides, isn't there some sort of limit on the length of lists or does 
> libpd handle this for you?
> 
> With z_libpd.h, you have an artificial limit of 32 atoms per message

I must be misunderstanding what you've written, because it would break
trivial patches:

[osc~ 440]
|
| [bang(
|/
[print~]

> whereas 
> with m_pd.h, there's no formal limit ; in practice the OS will limit you to 
> something like 1000000 atoms on the stack at once, for example. On 32-bit Linux, 
> the limit can be as high as 8000000 atoms (64 megs) but I don't remember 
> what the default limits are.
> 
> _______________________________________________________________________
> | Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
>



More information about the Pd-list mailing list