Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-13 Thread Mathieu Bouchard
On Thu, 5 Mar 2009, Martin Peach wrote: Mathieu Bouchard wrote: By floats, you mean a single float representing a single character? Yes single character, any unicode character will fit in a float. Well, my question was not about whether they'd fit or not in a single float, but rather

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-05 Thread Mathieu Bouchard
On Wed, 4 Mar 2009, Martin Peach wrote: Mathieu Bouchard wrote: Tables can be much faster but they also need to be statically-allocated (or dynamically-patched!), and they are type-restricted (where you can't say that any element slot may contain any atom one decides at runtime), and you have

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-05 Thread Mathieu Bouchard
On Wed, 4 Mar 2009, Hans-Christoph Steiner wrote: It seems that we should have a string.h for tables then. That would be a good starting point, just make a library that is just Pd interpretations of all the string.h strcpy, etc. functions, but have them operate on arrays and maybe lists of

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-05 Thread Hans-Christoph Steiner
On Mar 5, 2009, at 11:14 AM, Mathieu Bouchard wrote: On Wed, 4 Mar 2009, Hans-Christoph Steiner wrote: It seems that we should have a string.h for tables then. That would be a good starting point, just make a library that is just Pd interpretations of all the string.h strcpy, etc.

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-05 Thread Mathieu Bouchard
On Thu, 5 Mar 2009, Hans-Christoph Steiner wrote: On Mar 5, 2009, at 11:14 AM, Mathieu Bouchard wrote: I very much recommend making a library that can handle both at an expense that is as close as possible to making a library for just one of them. But I believe that those list abstractions

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-05 Thread Martin Peach
Mathieu Bouchard wrote: On Thu, 5 Mar 2009, Hans-Christoph Steiner wrote: On Mar 5, 2009, at 11:14 AM, Mathieu Bouchard wrote: I very much recommend making a library that can handle both at an expense that is as close as possible to making a library for just one of them. But I believe that

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-05 Thread Mathieu Bouchard
On Thu, 5 Mar 2009, Martin Peach wrote: Yes it seems to me a string manipulation object like [strncmp] should be able to accept symbols, floats, lists of floats, and messages naming arrays, on any of its inlets that are meant to accept strings. By floats, you mean a single float representing

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-05 Thread Martin Peach
Mathieu Bouchard wrote: On Thu, 5 Mar 2009, Martin Peach wrote: Yes it seems to me a string manipulation object like [strncmp] should be able to accept symbols, floats, lists of floats, and messages naming arrays, on any of its inlets that are meant to accept strings. By floats, you

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-04 Thread Martin Peach
Hans-Christoph Steiner wrote: I made [httpget] for fetching webpages into pd: That's nice. Now we need some html parsing objects so the pages go into the patch and not the pd window. It works well if the received pages are loaded into a table. I made tabfind to search a table for a string.

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-04 Thread Mathieu Bouchard
On Wed, 4 Mar 2009, Martin Peach wrote: That's nice. Now we need some html parsing objects so the pages go into the patch and not the pd window. It works well if the received pages are loaded into a table. I made tabfind to search a table for a string. Tables seem more efficient than lists

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-04 Thread Hans-Christoph Steiner
On Mar 4, 2009, at 9:18 AM, Martin Peach wrote: Hans-Christoph Steiner wrote: I made [httpget] for fetching webpages into pd: That's nice. Now we need some html parsing objects so the pages go into the patch and not the pd window. It works well if the received pages are loaded into a

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-04 Thread Martin Peach
Mathieu Bouchard wrote: On Wed, 4 Mar 2009, Martin Peach wrote: That's nice. Now we need some html parsing objects so the pages go into the patch and not the pd window. It works well if the received pages are loaded into a table. I made tabfind to search a table for a string. Tables seem more

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-04 Thread Hans-Christoph Steiner
On Mar 4, 2009, at 11:46 AM, Martin Peach wrote: Mathieu Bouchard wrote: On Wed, 4 Mar 2009, Martin Peach wrote: That's nice. Now we need some html parsing objects so the pages go into the patch and not the pd window. It works well if the received pages are loaded into a table. I made

Re: [PD] httpget: fun with tcpclient and pdstring

2009-03-04 Thread Bryan Jurish
adding this to the GSoC ideas wiki... actually, there's some disabled table-storage code in [pdstring] as well; perhaps I'll get a chance to polish that up sometime soon.. marmosets, Bryan On 2009-03-04 19:01:31, Hans-Christoph Steiner h...@eds.org appears to have written: It seems

[PD] httpget: fun with tcpclient and pdstring

2009-03-03 Thread Hans-Christoph Steiner
I made [httpget] for fetching webpages into pd: httpget-help.pd Description: Binary data httpget.pd Description: Binary data .hc http://at.or.at/hans/