No, I'm talking about sending a list or typed message with libpd as in:

[list 1 2 3 4 ... 32 <
|
[s toC++]

The print messaging isn't limited as far as I know.

I think it's reasonable to limit the message size, but 32 may be too small for some. It would make sense for libpd to have a call that would allow users to set the max message size, akin to how you can set the max packet size on sockets etc

32 is fine for most people, but there are uses for more ...

Also, I imagine you don't have this limitation using the new *t_atom sending func. Is this true Peter?

On Aug 29, 2011, at 1:15 AM, Jonathan Wilkes wrote:





----- Original Message -----
From: Mathieu Bouchard <matju@artengine.ca>
To: Dan Wilcox <danomatika@gmail.com>
Cc: PD List <pd-list@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@iem.at mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list


--------
Dan Wilcox