Re: Exposing the Garbage Collector (Iterating the live set)

2005-08-03 Thread Piers Cawley
Luke Palmer [EMAIL PROTECTED] writes: On 7/26/05, TSa (Thomas Sandlaß) [EMAIL PROTECTED] wrote: Piers Cawley wrote: I would like to be able to iterate over all the objects in the live set. My Idea actually is to embedd that into the namespace syntax. The idea is that of looking up

Re: Exposing the Garbage Collector (Iterating the live set)

2005-07-27 Thread Luke Palmer
On 7/26/05, TSa (Thomas Sandlaß) [EMAIL PROTECTED] wrote: Piers Cawley wrote: I would like to be able to iterate over all the objects in the live set. My Idea actually is to embedd that into the namespace syntax. The idea is that of looking up non-negativ integer literals with 0 beeing

Re: Exposing the Garbage Collector (Iterating the live set)

2005-07-27 Thread TSa (Thomas Sandlaß)
Luke Palmer wrote: On 7/26/05, TSa (Thomas Sandlaß) [EMAIL PROTECTED] wrote: Piers Cawley wrote: I would like to be able to iterate over all the objects in the live set. My Idea actually is to embedd that into the namespace syntax. The idea is that of looking up non-negativ integer

Re: Exposing the Garbage Collector

2005-07-26 Thread Piers Cawley
for instance) I would like to be able to iterate over all the objects in the live set. ISTM that exposing the Garbage Collector at the Language level is the neatest way of doing this (or coming up with something like Ruby's ObjectSpace, but conceptually I reckon the GC is the right place to hang it).

Re: Exposing the Garbage Collector (Iterating the live set)

2005-07-26 Thread TSa (Thomas Sandlaß)
that exposing the Garbage Collector at the Language level is the neatest way of doing this (or coming up with something like Ruby's ObjectSpace, but conceptually I reckon the GC is the right place to hang it). To me the GC is an implementation detail for rendering the illussion of infinite memory

Re: Exposing the Garbage Collector (Iterating the live set)

2005-07-26 Thread TSa (Thomas Sandlaß)
HaloO Jonathan, you wrote: (why off-list?) H, and the current actor/owner is $/ which gives the expanded method call syntax: .method # really means: $/.method($_) You mean $?SELF rather than $/. $/ is now the match object used in rules. I would say *for* rules/methods. $?SELF

Re: Exposing the Garbage Collector

2005-07-25 Thread David Formosa \(aka ? the Platypus\)
On Sat, 23 Jul 2005 23:01:38 +0100, Piers Cawley [EMAIL PROTECTED] wrote: [...] It seems to me, that the way to get at all the instances of a class is to ask the Garbage Collector to do the heavy lifting for us, and ideally I'd like to see this exposed at the Perl level. I'm going to hijack

Re: Exposing the Garbage Collector

2005-07-25 Thread TSa (Thomas Sandlaß)
Piers Cawley wrote: Let's say I have a class, call it Foo which has a bunch of attributes, and I've created a few of them. Then, at runtime I do: eval 'class Foo { has $.a_new_attribute is :default10 }'; Assuming I've got the syntax right for defaulting an attribute, I think you need a

Re: Exposing the Garbage Collector

2005-07-25 Thread TSa (Thomas Sandlaß)
I wrote: class Example { my %private_data; my sub source {...}; has %.data; has .blahh = { %.datablahh }; Should read $.blahh, . would indicate codehood. # and how about syntactic sugar for this: has .blubber from %.data; Here also $.blubber.

Re: Exposing the Garbage Collector

2005-07-25 Thread Matt Fowles
David~ On 25 Jul 2005 04:02:44 -, David Formosa (aka ? the Platypus) [EMAIL PROTECTED] wrote: I'm going to hijack this thread to discuss something else. Speaking for summarizers everywhere. A! Damn you! Matt -- Computer Science is merely the post-Turing Decline of Formal Systems

Re: Exposing the Garbage Collector

2005-07-24 Thread Sam Vilain
Piers Cawley wrote: Let's say I have a class, call it Foo which has a bunch of attributes, and I've created a few of them. Then, at runtime I do: eval 'class Foo { has $.a_new_attribute is :default10 }'; Assuming I've got the syntax right for defaulting an attribute, and lets assume I have,

Exposing the Garbage Collector

2005-07-23 Thread Piers Cawley
Let's say I have a class, call it Foo which has a bunch of attributes, and I've created a few of them. Then, at runtime I do: eval 'class Foo { has $.a_new_attribute is :default10 }'; Assuming I've got the syntax right for defaulting an attribute, and lets assume I have, the Perl runtime

Re: Exposing the Garbage Collector

2005-07-23 Thread Brent 'Dax' Royal-Gordon
Piers Cawley [EMAIL PROTECTED] wrote: It seems to me, that the way to get at all the instances of a class is to ask the Garbage Collector to do the heavy lifting for us, and ideally I'd like to see this exposed at the Perl level. It's entirely possible that Perl will be used on virtual

Re: Exposing the Garbage Collector

2005-07-23 Thread chromatic
On Sat, 2005-07-23 at 20:41 -0700, Brent 'Dax' Royal-Gordon wrote: Piers Cawley [EMAIL PROTECTED] wrote: It seems to me, that the way to get at all the instances of a class is to ask the Garbage Collector to do the heavy lifting for us, and ideally I'd like to see this exposed at