Re: [PD] Delete scalars

2008-12-17 Thread Chuckk Hubbard
Simulating mouse motions is not ideal, but it works.
One problem would be if you have two scalars in the same place.  If
you want to delete the bottom one, at least when you do it manually,
you have to move the top one first.

-Chuckk

On Sat, Jun 14, 2008 at 3:07 PM, Hans-Christoph Steiner  wrote:
>
> Try searching the mailing list archives on this one.  I don't think it is
> possible, except for doing it by simlulating mouse motions with messages.
> .hc
> On Jun 13, 2008, at 1:36 AM, Lau Llobet wrote:
>
> I'm building some grafics in my pd project.
>
> I add some objects with the [append] but i need to erase them, i have found
> no way to delete them except by using  " ; pd patch-data clear " message  or
> array resizing , non of them is usefull to me because i need to erase some
> of them with no order.
> I've read that "Pointers are "safe": if you delete a scalar pointers to it
> are marked invalid." so i think there'll be a way to delete scalars , in
> fact i can do it manually with a Ctrl-X.
> Is there any way to do it ?
>
>  thank you very much !.
>
> ___
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
>
>
> 
>
> 'You people have such restrictive dress for women,' she said, hobbling away
> in three inch heels and panty hose to finish out another pink-collar temp
> pool day.  - "Hijab Scene #2", by Mohja Kahf
>
>
> ___
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>



-- 
http://www.badmuthahubbard.com

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Delete scalars

2008-07-10 Thread Mathieu Bouchard

On Thu, 10 Jul 2008, Miller Puckette wrote:


On Tue, Jul 08, 2008 at 03:04:29AM -0400, Mathieu Bouchard wrote:

So, why are singly-linked-lists so crucial to the design of Pd ?

It's not the list management that's the problem,


I think that this in itself might be a problem.

So, why are singly-linked-lists so crucial to the design of Pd ?

Currently this is managed by maintaining a per-list "stub" that the 
pointers all check through.  one could have such a stub for every 
scalar, but this would add a lot of overhead.


You can get 8589934592 bits for 23$.

Alternatively, all "gpointers" to a given scalar could register 
themselves somehow, and every time one deleted a scalar one would track 
down every pointer to it through the registration mechanism.


This concept is already named «weak pointer» nearly everywhere.

I've been unable to convince myself that the machinery could be kept 
lightweight and efficient.


You still need reference counting as much as last time I said it.

 _ _ __ ___ _  _ _ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Delete scalars

2008-07-10 Thread Miller Puckette
It's not the list management that's the problem, it's having a way to track 
down 
all stale pointers and un-point them.  Currently this is managed by maintaining 
a
per-list "stub" that the pointers all check through.  one could have such a stub
for every scalar, but this would add a lot of overhead.  Alternatively, all
"gpointers" to a given scalar could register themselves somehow, and every time
one deleted a scalar one would track down every pointer to it through the
registration mechanism.  I've been unable to convince myself that the machinery
could be kept lightweight and efficient.

cheers
Miller

On Tue, Jul 08, 2008 at 03:04:29AM -0400, Mathieu Bouchard wrote:
> On Sat, 14 Jun 2008, Miller Puckette wrote:
> 
> >I'm thinking about making a message to "pointer" that deletes the object
> >after the pointed-to one (thus leaving the pointer itself unchanged) --
> >the gotch is that it would "stalify" all other pointers to the list, at
> >least as things are currently implemented.
> 
> So, why are singly-linked-lists so crucial to the design of Pd ?
> 
>  _ _ __ ___ _  _ _ ...
> | Mathieu Bouchard - t?l:+1.514.383.3801, Montr?al, Qu?bec

> ___
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Delete scalars

2008-07-08 Thread Mathieu Bouchard

On Sat, 14 Jun 2008, Miller Puckette wrote:


I'm thinking about making a message to "pointer" that deletes the object
after the pointed-to one (thus leaving the pointer itself unchanged) --
the gotch is that it would "stalify" all other pointers to the list, at
least as things are currently implemented.


So, why are singly-linked-lists so crucial to the design of Pd ?

 _ _ __ ___ _  _ _ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Delete scalars

2008-06-14 Thread Miller Puckette
I'm thinking about making a message to "pointer" that deletes the object
after the pointed-to one (thus leaving the pointer itself unchanged) --
the gotch is that it would "stalify" all other pointers to the list, at
least as things are currently implemented.

As far as I know, there's no way at present to do it, short of copying the
entire list out to another window and selectively copying back to the
original one.

cheers
Miller
On Sat, Jun 14, 2008 at 03:07:07PM +0200, Hans-Christoph Steiner wrote:
> 
> Try searching the mailing list archives on this one.  I don't think  
> it is possible, except for doing it by simlulating mouse motions with  
> messages.
> 
> .hc
> 
> On Jun 13, 2008, at 1:36 AM, Lau Llobet wrote:
> 
> >
> >I'm building some grafics in my pd project.
> >
> >I add some objects with the [append] but i need to erase them, i  
> >have found no way to delete them except by using  " ; pd patch-data  
> >clear " message  or array resizing , non of them is usefull to me  
> >because i need to erase some of them with no order.
> >I've read that "Pointers are "safe": if you delete a scalar  
> >pointers to it are marked invalid." so i think there'll be a way to  
> >delete scalars , in fact i can do it manually with a Ctrl-X.
> >Is there any way to do it ?
> >
> > thank you very much !.
> >
> >___
> >Pd-list@iem.at mailing list
> >UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
> >listinfo/pd-list
> 
> 
> 
> 
> 
>  
> 
> 
> 'You people have such restrictive dress for women,? she said,  
> hobbling away in three inch heels and panty hose to finish out  
> another pink-collar temp pool day.  - ?Hijab Scene #2", by Mohja Kahf
> 
> 

> ___
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Delete scalars

2008-06-14 Thread Hans-Christoph Steiner


Try searching the mailing list archives on this one.  I don't think  
it is possible, except for doing it by simlulating mouse motions with  
messages.


.hc

On Jun 13, 2008, at 1:36 AM, Lau Llobet wrote:



I'm building some grafics in my pd project.

I add some objects with the [append] but i need to erase them, i  
have found no way to delete them except by using  " ; pd patch-data  
clear " message  or array resizing , non of them is usefull to me  
because i need to erase some of them with no order.
I've read that "Pointers are "safe": if you delete a scalar  
pointers to it are marked invalid." so i think there'll be a way to  
delete scalars , in fact i can do it manually with a Ctrl-X.

Is there any way to do it ?

 thank you very much !.

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
listinfo/pd-list






 



'You people have such restrictive dress for women,’ she said,  
hobbling away in three inch heels and panty hose to finish out  
another pink-collar temp pool day.  - “Hijab Scene #2", by Mohja Kahf



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


[PD] Delete scalars

2008-06-12 Thread Lau Llobet
I'm building some grafics in my pd project.

I add some objects with the [append] but i need to erase them, i have found
no way to delete them except by using  " ; pd patch-data clear " message  or
array resizing , non of them is usefull to me because i need to erase some
of them with no order.
I've read that *"Pointers are "safe": if you delete a scalar pointers to it
are marked invalid."* so i think there'll be a way to delete scalars , in
fact i can do it manually with a Ctrl-X.
Is there any way to do it ?

 thank you very much !.
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list