Meaning of "restart" in *.ops files?

2004-01-09 Thread Jeff Clites
What does "restart" mean in op files, as in "restart ADDRESS(resume);"? Also, why does the find_global op use it? I couldn't find it explained anywhere. Also, on a vaguely related topic, in "Parrot_jit_cpcf_op", what does "cpcf" stand for? JEff

Re: yield op?

2004-01-09 Thread Michal Wallace
On Fri, 9 Jan 2004, Leopold Toetsch wrote: > Michal Wallace <[EMAIL PROTECTED]> wrote: > > > Hey all, > > > When you invoke a Coroutine, it calls swap_context() > > Can you have a look at imcc/t/syn/pcc.t, there is an coroutine > iterator test. Yep, it has the same problem. The patch below expose

Re: Configure.pl Error

2004-01-09 Thread Harry Jackson
Harry Jackson wrote: I am now trying to get Parrot running on debian and have noticed the following error while running "perl Configure.pl" Determining some sizes...Linker failed (see test.ldo) at lib/Parrot/Configure/Step.pm line 233 Parrot::Configure::Step::cc_build() called at config

Re: cvs commit: parrot/imcc imcc.l

2004-01-09 Thread Melvin Smith
At 07:36 PM 1/9/2004 +0100, Leopold Toetsch wrote: Melvin Smith <[EMAIL PROTECTED]> wrote: > At 09:01 AM 1/9/2004 +0100, Leopold Toetsch wrote: > Which is why I hoped people would pitch in and help fix the tests. Its not tests only. There's already production code out there using Parrot - ask Dan

Re: cvs commit: parrot/imcc imcc.l

2004-01-09 Thread Melvin Smith
At 08:44 PM 1/9/2004 +, Harry Jackson wrote: Melvin Smith wrote: But, if you want macros to stay, let them stay. So, are they staying, staying for now or not sure yet? I have a few hundred lines of imcc that uses macros and if they are being removed then I would rather change now and save mys

Re: cvs commit: parrot/imcc imcc.l

2004-01-09 Thread Leopold Toetsch
Melvin Smith <[EMAIL PROTECTED]> wrote: > At 09:01 AM 1/9/2004 +0100, Leopold Toetsch wrote: >>Melvin, that's not the way to go. We can remove them from the lexer, >>when we have an external substitute. Just removing it breaks a lot of >>existing code. Failing tests may hide other problems and so o

Re: cvs commit: parrot/imcc imcc.l

2004-01-09 Thread Harry Jackson
Melvin Smith wrote: But, if you want macros to stay, let them stay. So, are they staying, staying for now or not sure yet? I have a few hundred lines of imcc that uses macros and if they are being removed then I would rather change now and save myself some pain later. H

[CONGRATS] Dan for 1st commercial use of Parrot :)

2004-01-09 Thread Melvin Smith
:)

Re: [PATCH] Continuations now close over register stacks

2004-01-09 Thread Michal Wallace
On Fri, 9 Jan 2004, Luke Palmer wrote: > Very rarely would you not savetop before creating a *real* continuation. > But again, very rarely would you actually create a *real* continuation > (depending on your language). RetContinuations are almost always a > better choice for traditional languages

Re: [PATCH] Continuations now close over register stacks

2004-01-09 Thread Michal Wallace
On Fri, 9 Jan 2004, Leopold Toetsch wrote: > Michal Wallace <[EMAIL PROTECTED]> wrote: > > > newsub $P1, .Continuation, done > > For returning just use a .RetContinuation. Or still better, just omit > $P1 totally here: > > > .pcc_call $P0, $P1 Aha! I like that even better. :) Thanks! Sin

Re: BUG: coroutine + exception = stack_height segfault

2004-01-09 Thread Michal Wallace
On Fri, 9 Jan 2004, Jeff Clites wrote: > On Jan 9, 2004, at 12:24 AM, Leopold Toetsch wrote: > > > Michal Wallace <[EMAIL PROTECTED]> wrote: > >> #!/bin/env parrot > >> # > >> # yieldbug.imc > >> # > >> # This program should print dots forever. > >> # Instead it prints a few dots and then segfault

Re: cvs commit: parrot/imcc imcc.l

2004-01-09 Thread Melvin Smith
At 09:01 AM 1/9/2004 +0100, Leopold Toetsch wrote: Melvin Smith <[EMAIL PROTECTED]> wrote: > IMCC macros are gone. Volunteers feel free to reimplement a > pre-processor (outside of IMCC) using the macro expansion code > that was removed from IMCC. Melvin, that's not the way to go. We can remo

Re: [RFC] Parrot runtime include files and .constant macros

2004-01-09 Thread Melvin Smith
At 08:58 AM 1/9/2004 +0100, Leopold Toetsch wrote: Melvin Smith <[EMAIL PROTECTED]> wrote: > This also means .pasm files won't be able to .include these anymore, > you'd have to use IMC. Why not just make .const work in both modes? Because pure PASM doesn't currently use type names. .const expects

Re: [PATCH] The Return of the Priority DOD

2004-01-09 Thread Luke Palmer
Leopold Toetsch writes: > Luke Palmer <[EMAIL PROTECTED]> wrote: > > ... I'm not > > against somebody else maintaining the patch in the meantime :-) > > I went again through the patch and the original one from Sept, 5th. But > it seems that one thing is missing in both: > > *If* all PMCs which n

Re: [perl #24837] [PATCH] .cvsignore files for Parrot m4

2004-01-09 Thread Leopold Toetsch
Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > This patch adds some .cvsignore files to the recently added 'languages/m4'. > It tells CVS that is OK to have a generated Makefile and generated test > input and result files. Thanks, applied. leo

Re: BUG: coroutine + exception = stack_height segfault

2004-01-09 Thread Luke Palmer
Jeff Clites writes: > On Jan 9, 2004, at 12:24 AM, Leopold Toetsch wrote: > > >Michal Wallace <[EMAIL PROTECTED]> wrote: > >>#!/bin/env parrot > >># > >># yieldbug.imc > >># > >># This program should print dots forever. > >># Instead it prints a few dots and then segfaults. > > > >It does print do

Re: BUG: coroutine + exception = stack_height segfault

2004-01-09 Thread Jeff Clites
On Jan 9, 2004, at 12:24 AM, Leopold Toetsch wrote: Michal Wallace <[EMAIL PROTECTED]> wrote: #!/bin/env parrot # # yieldbug.imc # # This program should print dots forever. # Instead it prints a few dots and then segfaults. It does print dots forever here. It does for me too. But based on a previo

Re: yield op?

2004-01-09 Thread Leopold Toetsch
Michal Wallace <[EMAIL PROTECTED]> wrote: > Hey all, > When you invoke a Coroutine, it calls swap_context() Can you have a look at imcc/t/syn/pcc.t, there is an coroutine iterator test. leo

Re: [PATCH] Continuations now close over register stacks

2004-01-09 Thread Luke Palmer
Michal Wallace writes: > On Thu, 8 Jan 2004, Luke Palmer wrote: > > .sub __main__ > > newsub $P0, .Closure, _func > > savetop > > newsub $P0, .Continuation, done > > > > So the restoretop after the invoke has something to pop (and so your > > register state isn't screwed up when you get

Re: [PATCH] Continuations now close over register stacks

2004-01-09 Thread Leopold Toetsch
Luke Palmer <[EMAIL PROTECTED]> wrote: > .sub __main__ > newsub $P0, .Closure, _func > savetop No - not for plain subroutines/closures. > Or you could do as PCC does and use a .RetContinuation, which doesn't > close over the stacks, when you don't actually need a full continuation. Yep.

Re: cvs commit: parrot/imcc imcc.l

2004-01-09 Thread Leopold Toetsch
Melvin Smith <[EMAIL PROTECTED]> wrote: > IMCC macros are gone. Volunteers feel free to reimplement a > pre-processor (outside of IMCC) using the macro expansion code > that was removed from IMCC. Melvin, that's not the way to go. We can remove them from the lexer, when we have an external s

Re: [PATCH] Continuations now close over register stacks

2004-01-09 Thread Leopold Toetsch
Michal Wallace <[EMAIL PROTECTED]> wrote: > newsub $P1, .Continuation, done For returning just use a .RetContinuation. Or still better, just omit $P1 totally here: > .pcc_call $P0, $P1 leo

Re: [RFC] Parrot runtime include files and .constant macros

2004-01-09 Thread Leopold Toetsch
Melvin Smith <[EMAIL PROTECTED]> wrote: > This also means .pasm files won't be able to .include these anymore, > you'd have to use IMC. Why not just make .const work in both modes? > -Melvin leo

Re: BUG: coroutine + exception = stack_height segfault

2004-01-09 Thread Leopold Toetsch
Michal Wallace <[EMAIL PROTECTED]> wrote: > #!/bin/env parrot > # > # yieldbug.imc > # > # This program should print dots forever. > # Instead it prints a few dots and then segfaults. It does print dots forever here. leo

yield op?

2004-01-09 Thread Michal Wallace
Hey all, When you invoke a Coroutine, it calls swap_context() from src/sub.c ... There's an else clause in there that either swaps or restores theinterpreter stack, but as far as I can tell, swap_context() is ONLY called when entering a coroutine - not when we're suspending it. That means all so