External PMCs and GC Implications

2006-10-07 Thread chromatic
Hi there, I'm doing more work on the embedding interface. Given that some Parrot functions may legitimately send and receive PMCs, what are the implications for garbage collection? I don't worry too much about the Sub and variable PMCs I get back from the find_global*() functions, but as I'm

Re: RFC: Reduce closure magic

2006-10-07 Thread Larry Wall
Note that Perl 6 requires mutable subs, at least to the extent that you can .wrap them in place to do AOP and DBC and such. If Parrot has immutable subs that's okay, but it forces a level of indirection on us, and perhaps a level of non-interoperability. Larry

Re: RFC: Reduce closure magic

2006-10-07 Thread Bob Rogers
From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Sat, 7 Oct 2006 13:49:10 +0200 Am Samstag, 7. Oktober 2006 04:07 schrieb Bob Rogers: > ? ?To my surprise, I found a 'ctx' member in struct Parrot_sub. ?It > appears that this is only used for the "autoclose" feature, which AFAICS >

Coroutines in Lua

2006-10-07 Thread Bob Rogers
From: François PERRAD <[EMAIL PROTECTED]> Date: Wed, 04 Oct 2006 08:55:34 +0200 I've tried without success to implement coroutine in language Lua . . . Help is welcome. François. I am not surprised that you have had difficulty. I can't even get a simple recursive coroutine to wor

Re: What does 'input in flex scanner failed' really mean?

2006-10-07 Thread Bob Rogers
From: chromatic <[EMAIL PROTECTED]> Date: Sat, 7 Oct 2006 14:38:34 -0700 On Saturday 07 October 2006 08:20, Leopold Toetsch wrote: > There's a test missing, if the file is a diretory obviously. Something like this? -- c Excellent; thanks.

Re: What does 'input in flex scanner failed' really mean?

2006-10-07 Thread chromatic
On Saturday 07 October 2006 08:20, Leopold Toetsch wrote: > Am Samstag, 7. Oktober 2006 17:00 schrieb Bob Rogers: > > ## WTF??? > > .sub main :main > > load_bytecode "Data/Dumper" > > .end > > There's a test missing, if the file is a diretory obviously. Som

Re: What does 'input in flex scanner failed' really mean?

2006-10-07 Thread Bob Rogers
From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Sat, 7 Oct 2006 17:20:16 +0200 Am Samstag, 7. Oktober 2006 17:00 schrieb Bob Rogers: > ## WTF??? > .sub main :main > load_bytecode "Data/Dumper" > .end There's a test missing, if the fi

Re: What does 'input in flex scanner failed' really mean?

2006-10-07 Thread Leopold Toetsch
Am Samstag, 7. Oktober 2006 17:00 schrieb Bob Rogers: > ## WTF??? > .sub main :main > load_bytecode "Data/Dumper" > .end There's a test missing, if the file is a diretory obviously. leo

What does 'input in flex scanner failed' really mean?

2006-10-07 Thread Bob Rogers
I am stumped by the following problem: [EMAIL PROTECTED]> cat scanner.pir ## WTF??? .sub main :main load_bytecode "Data/Dumper" .end [EMAIL PROTECTED]> ./parrot scanner.pir input in flex scanner failed [EMAIL PROTECTED]>

Re: RFC: Reduce closure magic

2006-10-07 Thread Leopold Toetsch
Am Samstag, 7. Oktober 2006 04:07 schrieb Bob Rogers: >    To my surprise, I found a 'ctx' member in struct Parrot_sub.  It > appears that this is only used for the "autoclose" feature, which AFAICS > is not documented. Well, audreyt wanted to have this feature. But you are right: it's a bad thin