Re: Intlist question

2002-10-13 Thread Steve Fink
On Sun, Oct 13, 2002 at 11:43:23PM -0400, Simon Glover wrote: > > I've just tried to write PASM like: > > new P0, .IntList > new P1, .PerlInt > > set P1, 20 > set P0[0], P1 > ... > end > > only to have it fail with the message: > >'Subscript on something that's

RE: signal 11 when run on x86, JIT enabled

2002-10-13 Thread Brent Dax
Simon Glover: # On Sun, 13 Oct 2002, Steve Fink wrote: # Your problem was probably forgetting to use Test::More # (which defines skip). In any case, the enclosed patch should # do the trick. # # +SKIP: { skip("Doesn't work with JIT enabled", 1); # output_like(<<'CODE', <<'OUTPUT', "restart t

Intlist question

2002-10-13 Thread Simon Glover
I've just tried to write PASM like: new P0, .IntList new P1, .PerlInt set P1, 20 set P0[0], P1 ... end only to have it fail with the message: 'Subscript on something that's not an aggregate!' Is this a bug or a feature? Simon

[perl #17907] [PATCH docs/parrot_assembly.pod] Minor typos and consistencies

2002-10-13 Thread via RT
# New Ticket Created by chromatic # Please include the string: [perl #17907] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17907 > I've been browsing the docs, and took the time to do a bit of copyediting. There's room

Re: signal 11 when run on x86, JIT enabled

2002-10-13 Thread Simon Glover
On Sun, 13 Oct 2002, Steve Fink wrote: [Discussion snipped] > Yes, I get this also. I was trying to figure out how to properly use > TODO or SKIP or something to suppress this, but none of them worked > quite right -- it would say that the failed test was a TODO, but it > still counted it as a

Re: signal 11 when run on x86, JIT enabled

2002-10-13 Thread Steve Fink
On Sun, Oct 13, 2002 at 11:08:02PM +0100, Nicholas Clark wrote: > On Sun, Oct 13, 2002 at 03:06:48AM -0700, Steve Fink wrote: > > On Fri, Oct 11, 2002 at 05:05:56PM -0700, Joe Wilson wrote: > > > Perhaps this is a known issue... > > > > > > Most parrot programs seem to crash on x86 when the lates

[perl #17903] [PATCH] sprintf test

2002-10-13 Thread via RT
# New Ticket Created by Simon Glover # Please include the string: [perl #17903] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17903 > Here's a brief test for the PMC, PMC, PMC form of the sprintf op; as an added bonus,

[perl #17901] [PATCH] More PMC tests

2002-10-13 Thread via RT
# New Ticket Created by Simon Glover # Please include the string: [perl #17901] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17901 > Patch below adds tests for the eq, ne, lt, le, gt, ge & neg ops for PerlInts and P

[perl #17899] [PATCH] .include macros (and misc. documentation)

2002-10-13 Thread via RT
# New Ticket Created by Simon Glover # Please include the string: [perl #17899] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17899 > This patch: 1) Fixes some minor nits in the assembler documentation (mostly POD

Re: signal 11 when run on x86, JIT enabled

2002-10-13 Thread Nicholas Clark
On Sun, Oct 13, 2002 at 03:06:48AM -0700, Steve Fink wrote: > On Fri, Oct 11, 2002 at 05:05:56PM -0700, Joe Wilson wrote: > > Perhaps this is a known issue... > > > > Most parrot programs seem to crash on x86 when the latest CVS parrot > > is compiled with "-O2" or "-g -O2" and when JIT is enabl

Re: popping an empty intlist

2002-10-13 Thread Leopold Toetsch
Jerome Quelin wrote: > Hi there, > > I just discovered that: > a) my befunge interpreter is broken (would you stop beaking it please? :o)) > b) push and pop operations are now supported by lists > c) there's a pmc for handling list of integers: intlist > So, what else can I do? Catching exc

Re: [perl #17876] [PTACH] Parrot_snprintf writes 1 char too much

2002-10-13 Thread Leopold Toetsch
Tom Hughes wrote: > In message <[EMAIL PROTECTED]> > Leopold Toetsch (via RT) <[EMAIL PROTECTED]> wrote: > It's probably best to do whatever C99 does, which I think is the same > as what glibc does, namely to return the amount of space that would be > needed to avoid truncation if the

[perl #17896] [PATCH] PerlHash tests

2002-10-13 Thread via RT
# New Ticket Created by Simon Glover # Please include the string: [perl #17896] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17896 > This patch: i) Adds several new tests for PerlHash, specifically: - storing

Re: Is Parrot in a stable state?

2002-10-13 Thread Jerome Quelin
On Sunday 13 October 2002 12:16, Steve Fink wrote: > On Sat, Oct 12, 2002 at 07:29:04PM +0200, Jerome Quelin wrote: > > FYI, I just rsync'ed this afternoon (12/10/2002 14:52 GMT) my Parrot, and > > did the traditionnal: perl Configure.pl ; make; make test > > and yes, all the tests went ok... > I'

Re: Is Parrot in a stable state?

2002-10-13 Thread Jerome Quelin
On Sunday 13 October 2002 12:11, Leopold Toetsch wrote: > Jerome Quelin wrote: > > eq S0, "<", FLOW_GO_WEST > [ branch not taken ] > > And while I'm talking about strange things... Due to the fact that Parrot > > does not branch to the correct label, > As strings are involved, could you in

Is Parrot in a stable state?

2002-10-13 Thread Jerome Quelin
>From my point of view - it isn't. As I said in an earlier post, my Befunge interpreter is broken. It was doing well not so long ago. Anyway, since I wanted to add intlists and push/pop, I made some modifications. But I can't test them, since Parrot seems to be badly broken... At first, I tho

Re: Is Parrot in a stable state?

2002-10-13 Thread Leopold Toetsch
Jerome Quelin wrote: > eq S0, "<", FLOW_GO_WEST [ branch not taken ] > And while I'm talking about strange things... Due to the fact that Parrot > does not branch to the correct label, As strings are involved, could you insert: sweepoff collectoff as the very fi

Re: popping an empty intlist

2002-10-13 Thread Steve Fink
On Sat, Oct 12, 2002 at 04:53:57PM +0200, Jerome Quelin wrote: > But I have a problem. When popping a value from an empty list, I get a "No > entries on list!" exception. Instead, I want to get a zero. I can add > something like: > > CHECK_EMPTY: > set I0, P2 > eq I0, 0, PUSH_ZERO > ret >

RE: popping an empty intlist

2002-10-13 Thread Brent Dax
Jerome Quelin: # On Saturday 12 October 2002 18:26, Brent Dax wrote: # > # So, what else can I do? Catching exceptions (is that # possible # with # > Parrot)? Not just yet. The ideas for exceptions are still bouncing # > around in the caverns of Dan's brain. :^) # # So, what am I suppose to

Re: signal 11 when run on x86, JIT enabled

2002-10-13 Thread Steve Fink
On Fri, Oct 11, 2002 at 05:05:56PM -0700, Joe Wilson wrote: > Perhaps this is a known issue... > > Most parrot programs seem to crash on x86 when the latest CVS parrot > is compiled with "-O2" or "-g -O2" and when JIT is enabled. > The programs appear to run to completion and only crash prior to

Re: Is Parrot in a stable state?

2002-10-13 Thread Steve Fink
On Sat, Oct 12, 2002 at 07:29:04PM +0200, Jerome Quelin wrote: > FYI, I just rsync'ed this afternoon (12/10/2002 14:52 GMT) my Parrot, and did > the traditionnal: perl Configure.pl ; make; make test > and yes, all the tests went ok... I'll look into it, but could you try doing a make clean first

Re: popping an empty intlist

2002-10-13 Thread Jerome Quelin
On Saturday 12 October 2002 18:26, Brent Dax wrote: > # So, what else can I do? Catching exceptions (is that possible > # with Parrot)? > Not just yet. The ideas for exceptions are still bouncing around in the > caverns of Dan's brain. :^) So, what am I suppose to do? Is there a way to get the

Re: popping an empty intlist

2002-10-13 Thread Jerome Quelin
On Saturday 12 October 2002 17:56, Leopold Toetsch wrote: > > So, what else can I do? Catching exceptions (is that possible with > > Parrot)? > Please have a look at list - not a PMC currently but can/does simulate > intlist now for testing. just compile/link list instead of intlist. > list_pop(..

Re: [perl #17865] [PATCH] Re-unite comment & function

2002-10-13 Thread Steve Fink
On Fri, Oct 11, 2002 at 04:08:27PM +, Simon Glover wrote: > # New Ticket Created by Simon Glover > # Please include the string: [perl #17865] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt2/Ticket/Display.html?id=17865 > > > > > One of

RE: popping an empty intlist

2002-10-13 Thread Brent Dax
--Brent Dax <[EMAIL PROTECTED]> @roles=map {"Parrot $_"} qw(embedding regexen Configure) Wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles. And radio operates exactly the same way. The only difference is that there is no cat.

Re: popping an empty intlist

2002-10-13 Thread Leopold Toetsch
Jerome Quelin wrote: > My goal is to provide a Befunge interpreter that just does the right thing > out of the box - that is, that does not need to patch Parrot in order to > function. Arrays (and all classes) are currently reorganized. The mentioned patch is a current hack, to get your exp