Re: The parrot crashes...

2003-01-20 Thread Josh Wilmes
It appears to be the same thing for tcc and lcc on linux. The nearest I can tell, the value stuffed into struct_val in Parrot_NCI_set_string_keyed is somehow not a valid PObj- dereferencing its "obj" member seems to blow things up. It stomps all over the stack somehow, and I don't have much

Re: L2R/R2L syntax

2003-01-20 Thread Luke Palmer
> Date: 20 Jan 2003 20:30:07 - > From: Smylers <[EMAIL PROTECTED]> > > It seems that when chaining together functions, omitting C<< <~ >> > operators gives the same result in the familiar Perl 5 standard > function-call syntax: > > @foo = sort { ... } <~ map { ... } <~ grep { ... } <~ @bar;

Why C needs work (was Re: L2R/R2L syntax)

2003-01-20 Thread Michael Lazzaro
On Monday, January 20, 2003, at 12:30 PM, Smylers wrote: Ah. It was only on reading that (and discovering that you hadn't previously known about the 'optional comma with closure argument' rule) that I understood why you had previously been so in favour of proposed new syntaxes: through a desire

Re: A proposal for separable verbs. (Was: Re: A proposal on if and else)

2003-01-20 Thread Simon Cozens
[EMAIL PROTECTED] (Austin Hastings) writes: > Let's support separable verbs. That (http://dev.perl.org/perl6/rfc/309.html) is a really good idea. -- Writing software is more fun than working.

RE: A proposal for separable verbs. (Was: Re: A proposal on if and else)

2003-01-20 Thread Austin Hastings
--- Brent Dax <[EMAIL PROTECTED]> wrote: > Austin Hastings: > # Let's support separable verbs. > # > # Here's how: > # > # # Note my arbitrary selection of _ as separation indicator. > # Feel free to replace this with something more appropriate: > # > # sub if($test, &block) > # _ elsif

Re: The parrot crashes...

2003-01-20 Thread Leopold Toetsch
Dan Sugalski wrote: Rather badly, actually. All the tests that involve parrot currently segfault in the NCI mark routine. At least on OS X, I'm not sure about other platforms. Some questions WRT tinderboxen: - above error seems currently not to be covered - which machines are when reported/onl

Re: [perl #20315] [PATCH] eval

2003-01-20 Thread Leopold Toetsch
Leopold Toetsch wrote: I have it ready. - code is ready for debug information, I'll first do it in imcc, which could generate file/line info on the fly. Next would then be to extend the PBC format. And this is working too in imcc, including gdb-stepping into evaled code segments. Does

Re: The parrot crashes...

2003-01-20 Thread Leopold Toetsch
Dan Sugalski wrote: Rather badly, actually. All the tests that involve parrot currently segfault in the NCI mark routine. At least on OS X, I'm not sure about other platforms. Not on i386/Linux, anyway ... Could be a slightly wrong init sequence, which I did introduce and have hopefully fi

Re: [perl #20315] [PATCH] eval - inter code segment branches

2003-01-20 Thread Leopold Toetsch
Leopold Toetsch wrote: I have it ready. It's based on the packfile patch #18056 by Juergen Boemmels. On top of this patch, it was quite easy to implement multiple code segments. And yet another f'up me. Here is a proposal for inter code segment jumps: The assembler (imcc) can recognize when a

RE: A proposal for separable verbs. (Was: Re: A proposal on if and else)

2003-01-20 Thread Brent Dax
Austin Hastings: # Let's support separable verbs. # # Here's how: # # # Note my arbitrary selection of _ as separation indicator. # Feel free to replace this with something more appropriate: # # sub if($test, &block) # _ elsif ($test, &block) is optional is floating is multi # _ elsun

A proposal for separable verbs. (Was: Re: A proposal on if and else)

2003-01-20 Thread Austin Hastings
--- "Joseph F. Ryan" <[EMAIL PROTECTED]> wrote: > If the final design stays the way it is now, there really won't be > a "lexer". Instead, a perl6 grammar parses the data, and builds up > a huge match-object as it, well, matches. This match object is then > munged into the optree. > With this

Re: A proposal on if and else

2003-01-20 Thread Rafael Garcia-Suarez
Joseph F. Ryan wrote in perl.perl6.language : > > If the final design stays the way it is now, there really won't be > a "lexer". Instead, a perl6 grammar parses the data, and builds up > a huge match-object as it, well, matches. This match object is then > munged into the optree. Oh, yes, I re

Re: A proposal on if and else

2003-01-20 Thread Joseph F. Ryan
Rafael Garcia-Suarez wrote: Joseph F. Ryan wrote in perl.perl6.language : I think the point of having C as a sub rather than as a separate syntax is so the parser doesn't have to do anything special for special keywords. I think the goal was to simplify the compiler, but with the discussion o

Re: A proposal on if and else

2003-01-20 Thread Rafael Garcia-Suarez
Joseph F. Ryan wrote in perl.perl6.language : > > I think the point of having C as a sub rather than as a separate > syntax is so the parser doesn't have to do anything special for > special keywords. > > I think the goal was to simplify the compiler, but with the > discussion of recent weeks, it

Re: A proposal on if and else

2003-01-20 Thread Joseph F. Ryan
Rafael Garcia-Suarez wrote: Brent Dax wrote in perl.perl6.language : Yes, I know this means that we have 'else if' instead of 'elsif', but it's only two more characters and it makes the grammar cleaner. The tokeniser could send two tokens "else" and "if" whenever it recognizes the keywor

Re: A proposal on if and else

2003-01-20 Thread Rafael Garcia-Suarez
Brent Dax wrote in perl.perl6.language : > Yes, I know this means that we have 'else if' instead of 'elsif', but > it's only two more characters and it makes the grammar cleaner. The tokeniser could send two tokens "else" and "if" whenever it recognizes the keyword "elsif" -- so this isn't a probl

Re: L2R/R2L syntax

2003-01-20 Thread Smylers
Michael Lazzaro wrote: > Damian Conway wrote: > > > "you can leave a comma out either side of a block/closure, no matter > > where it appears in the argument list" > > Hmm. I had been figuring the all conditional/loop stuff would be > special cases within the grammar, because of their associate

The parrot crashes...

2003-01-20 Thread Dan Sugalski
Rather badly, actually. All the tests that involve parrot currently segfault in the NCI mark routine. At least on OS X, I'm not sure about other platforms. -- Dan --"it's like this"--- Dan Sugalski

A proposal on if and else

2003-01-20 Thread Brent Dax
Many people have pointed out the 'semicolon problem' with if and else--that is, if Perl intuits a semicolon after every codeblock that ends a blank line, you would have to cuddle all your elses: if $cond { ... } <-- Virtual semicolon here else

Re: L2R/R2L syntax

2003-01-20 Thread Austin Hastings
--- Michael Lazzaro <[EMAIL PROTECTED]> wrote: > > On Sunday, January 19, 2003, at 09:51 PM, Luke Palmer wrote: > >> From: "Sean O'Rourke" <[EMAIL PROTECTED]> > >> On Sat, 18 Jan 2003, Michael Lazzaro wrote: > >>> So 'if' and friends are just (native) subroutines with prototypes > > >>> like: >

Re: Parrot compilers

2003-01-20 Thread Dan Sugalski
At 7:10 PM -0700 1/17/03, Cory Spencer wrote: Hey folks - In my wanders through the parrot/languages subdirectories, it appears that most example languages implement a complete compiler (ie lexxer -> parser -> optimizer -> code emitter), which seems to be somewhat of a duplication of labour. IM

Re: L2R/R2L syntax

2003-01-20 Thread Buddha Buck
Michael Lazzaro wrote: On Sunday, January 19, 2003, at 09:51 PM, Luke Palmer wrote: From: "Sean O'Rourke" <[EMAIL PROTECTED]> On Sat, 18 Jan 2003, Michael Lazzaro wrote: So 'if' and friends are just (native) subroutines with prototypes like: IIRC it's not that pretty, unfortunately, if you

Re: L2R/R2L syntax

2003-01-20 Thread Michael Lazzaro
On Monday, January 20, 2003, at 09:37 AM, Luke Palmer wrote: Is this magic, or do coderef args construct closures, or what? How do you avoid evaluating the argument to elsunless() when feeding it to the if() sub? Oops. Good point. In this case I see no way of doing it except for specifying m

Re: L2R/R2L syntax

2003-01-20 Thread Michael Lazzaro
On Sunday, January 19, 2003, at 09:51 PM, Luke Palmer wrote: From: "Sean O'Rourke" <[EMAIL PROTECTED]> On Sat, 18 Jan 2003, Michael Lazzaro wrote: So 'if' and friends are just (native) subroutines with prototypes like: IIRC it's not that pretty, unfortunately, if you want to support this: Tha

Re: L2R/R2L syntax

2003-01-20 Thread Luke Palmer
> Date: Mon, 20 Jan 2003 09:20:45 -0800 (PST) > From: Austin Hastings <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > > > --- Luke Palmer <[EMAIL PROTECTED]> wrote: > > > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > > > Date: Sat, 18 Jan 2003 15:07:56 -0800

Re: L2R/R2L syntax

2003-01-20 Thread Austin Hastings
--- Luke Palmer <[EMAIL PROTECTED]> wrote: > > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > > Date: Sat, 18 Jan 2003 15:07:56 -0800 (PST) > > From: "Sean O'Rourke" <[EMAIL PROTECTED]> > > Cc: Damian Conway <[EMAIL PROTECTED]>, > > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > X-SMTPD:

Introspector rdf/ntriples results for packdump.c

2003-01-20 Thread James Michael DuPont
Dear all, you will find an example of the gcc-introspector output applied to parrot here : http://introspector.sourceforge.net/2003/01/19/parrot-packdump/ Here you find the globals for parrot 450k http://introspector.sourceforge.net/2003/01/19/parrot-packdump/_global__.tu_.ntriples.gz The source

Re: C as a "junction" operator

2003-01-20 Thread Dave Whipp
Damian Conway wrote: > Yes, but will it junctify them con-, dis-, ab-, or in-junctively??? Probably most similar to injunctively. But sequentially. I had been thinking of something like this: while () { print "matched $_" if $_ == for(1,2,3,4,5); } __DATA__ 1 2 9 3 4 5 Like the old bistable