[COMMIT] Optimizer

2001-12-13 Thread Jeff G
Doesn't do much beyond strength reduction and constant folding, but it's there. Also, if you look at the parsing routines I've created a fairly simple data structure to hold lines of a post-macro-processed assembler program. The output routine preserves comments and whitespace within reason. -- J

RE: Mr. Configure

2001-12-13 Thread Brent Dax
Bryan C. Warnock: # Can we start a config/ directory for config snippets? Fine by me. --Brent Dax [EMAIL PROTECTED] Configure pumpking for Perl 6 "Nothing important happened today." --George III of England's diary entry for 4-Jul-1776

RE: Better temporary Makefile patch

2001-12-13 Thread Dan Sugalski
At 04:16 PM 12/13/2001 -0600, Garrett Goebel wrote: >Okay... let me try again. > >This fixes: >o parrot/classes/Makefile.in to use double quotes >instead of single quotes with perl -e >o parrot/languages/Makefile.in to use && instead of $(MAKE) -C Applied, thanks.

Mr. Configure

2001-12-13 Thread Bryan C. Warnock
Brent, Can we start a config/ directory for config snippets? -- Bryan C. Warnock [EMAIL PROTECTED]

RE: Better temporary Makefile patch

2001-12-13 Thread Andy Dougherty
> This fixes: > o parrot/classes/Makefile.in to use double quotes >instead of single quotes with perl -e Note that if you have to get even slightly more complicated than this, then you're better off wrapping everything up in a (possibly very small) file and just calling that. Don't forget,

Re: Apropos of nothing...

2001-12-13 Thread Piers Cawley
"Brent Dax" <[EMAIL PROTECTED]> writes: > Piers Cawley: > # In the following code fragment, what context is foo() in? > # > # @ary[0] = foo() > > The short answer is scalar context. The long answer is below. Note > that the long answer is only the way I think of it. You may think > differe

Quick note to language implementers...

2001-12-13 Thread Dan Sugalski
I'm not sure we'll ultimately go this way, but I've added the following ops to the core: setline setpackage setfile getline getpackage getfile so compiler output can note the file, package, and line that code is in. Definitely optional, but there for debugging purposes.

RE: Better temporary Makefile patch

2001-12-13 Thread Garrett Goebel
Title: RE: Better temporary Makefile patch Okay... let me try again. This fixes: o  parrot/classes/Makefile.in to use double quotes    instead of single quotes with perl -e o  parrot/languages/Makefile.in to use && instead of $(MAKE) -C After which I can:   perl ./Configure.pl && nmake &

Putting out Win32 Fire?

2001-12-13 Thread Garrett Goebel
From: Garrett Goebel [mailto:[EMAIL PROTECTED]] > > That gets me further on Win32... now we hit Win32 perl -e and quoting > issues... > > c:\perl\bin\perl.exe -ne 'next unless /Parrot_default/; > s/{/;/;s/^/extern /;print' default.c > default.h > Can't find string terminator "'" anywhere

Re: Apropos of nothing...

2001-12-13 Thread Damian Conway
> > @ary[0] =()= foo(); # " " " " " "" " > > Hm, thats a change from perl5. In perl5 that would assign the number of > elements returned from foo(). Is there a good reason for this change ? Firstly, Larry may have to rule on which behaviour actually *is*

RE: Better temporary Makefile patch

2001-12-13 Thread Garrett Goebel
From: Andy Dougherty [mailto:[EMAIL PROTECTED]] > > This patch fixes up Makefile.in to handle subdirectories > along the lines > I suggested yesterday. (The make -C trick is GNU-specific > and hence not > portable, and the cd dir; $(MAKE) trick is Unix-specific and hence not > portable.) This

Re: Apropos of nothing...

2001-12-13 Thread Graham Barr
On Fri, Dec 14, 2001 at 06:39:02AM +1100, Damian Conway wrote: > >> In the following code fragment, what context is foo() in? >> >> @ary[0] = foo() > > Scalar context. @ary[0] is a single element of @ary. > > To call foo() in list context use any of the following: > > (@

Re: Apropos of nothing...

2001-12-13 Thread Bart Lateur
On Thu, 13 Dec 2001 12:17:44 -0500, Mark J. Reed wrote: > @i = (0); > @ary[@i] = foo(); > >How could one get that behavior without the intermediate array? Parens, likely. (@ary[0]) = foo(); -- Bart.

Re: Hello? Win32 on fire?

2001-12-13 Thread Andy Dougherty
On Wed, 12 Dec 2001, Andy Dougherty wrote: > One idiom which might work is > > cd foo && $(MAKE) D'oh, that's cd foo && $(MAKE) && cd .. (remembering the actual initial problem . . . :-) -- Andy Dougherty [EMAIL PROTECTED] Dept. of Physics Lafayette Colle

Re: Better temporary Makefile patch

2001-12-13 Thread Dan Sugalski
At 09:42 AM 12/13/2001 -0500, Andy Dougherty wrote: >This patch fixes up Makefile.in to handle subdirectories along the lines >I suggested yesterday. Applied. Thanks. Dan --"it's like this"--- Dan Sugal

Re: Apropos of nothing...

2001-12-13 Thread Damian Conway
> In the following code fragment, what context is foo() in? > > @ary[0] = foo() Scalar context. @ary[0] is a single element of @ary. To call foo() in list context use any of the following: (@ary[0]) = foo(); # Assign @ary[0] the first element returned @(@ary[

Better temporary Makefile patch

2001-12-13 Thread Andy Dougherty
This patch fixes up Makefile.in to handle subdirectories along the lines I suggested yesterday. (The make -C trick is GNU-specific and hence not portable, and the cd dir; $(MAKE) trick is Unix-specific and hence not portable.) This is a "temporary" patch because a perl-based build system will re

IO/Shared mem api

2001-12-13 Thread Melvin Smith
Do we wish to abstract shared mem behind a Parrot IO object as well, so all the file methods work? Melvin Smith Centers for IBM e-business Innovation :: ATLANTA

Re: [Patch] Just some -Wall cleanups

2001-12-13 Thread Dan Sugalski
At 05:44 PM 12/13/2001 +, Dave Mitchell wrote: >I wrote: > > > (If you were to give me a PDD number, I might even get round to finishing > > the doc off ;-) > >Okay, I lied Oh, right, you already had it done and were using the thread of unfinishedness to get a PDD number! Clever... ;-P

Re: [Patch] Just some -Wall cleanups

2001-12-13 Thread Dave Mitchell
I wrote: > (If you were to give me a PDD number, I might even get round to finishing > the doc off ;-) Okay, I lied :-)

Re: [Patch] Just some -Wall cleanups

2001-12-13 Thread Dan Sugalski
At 05:38 PM 12/13/2001 +, Dave Mitchell wrote: >Dan Sugalski <[EMAIL PROTECTED]> wrote: > > D'oh! First I find the codings standard doc, then I get it an official PDD > > number if it doesn't have one already. (Then I smack myself with it...) > >print "Dan, can I have a PDD number for my codin

Re: [Patch] Just some -Wall cleanups

2001-12-13 Thread Dave Mitchell
Dan Sugalski <[EMAIL PROTECTED]> wrote: > D'oh! First I find the codings standard doc, then I get it an official PDD > number if it doesn't have one already. (Then I smack myself with it...) print "Dan, can I have a PDD number for my coding stds doc?\n" for 1..Inf; (If you were to give me a PDD

Re: Lack of responses

2001-12-13 Thread Melvin Smith
Thats all the answer I was looking for. :) Melvin Smith Centers for IBM e-business Innovation :: ATLANTA (Embedded image moved to Dan Sugalski <[EMAIL PROTECTED]>

RE: Apropos of nothing...

2001-12-13 Thread Brent Dax
Piers Cawley: # In the following code fragment, what context is foo() in? # # @ary[0] = foo() The short answer is scalar context. The long answer is below. Note that the long answer is only the way I think of it. You may think differently. I like to think of it as 'one context'. 'Scalar'

Re: Lack of responses

2001-12-13 Thread Dan Sugalski
At 12:21 PM 12/13/2001 -0500, Melvin Smith wrote: >Well I had hoped after repeated questions and submitting some code I would >generate some discussion on the IO layer that was supposed to be on the >TODO list. I'm no closer a week later so I'll assume ignored patches and >request for comments me

Lack of responses

2001-12-13 Thread Melvin Smith
Well I had hoped after repeated questions and submitting some code I would generate some discussion on the IO layer that was supposed to be on the TODO list. I'm no closer a week later so I'll assume ignored patches and request for comments means someone else wants to work on it "when" they get to

Re: Apropos of nothing...

2001-12-13 Thread Mark J. Reed
On Thu, Dec 13, 2001 at 12:12:14PM -0500, Ted Ashton wrote: > Thus it was written in the epistle of Piers Cawley, > > In the following code fragment, what context is foo() in? > > > > @ary[0] = foo() > > Scalar, I would think. I assume that the following would make the assignment a slice an

Re: Apropos of nothing...

2001-12-13 Thread Ted Ashton
Thus it was written in the epistle of Piers Cawley, > In the following code fragment, what context is foo() in? > > @ary[0] = foo() Scalar, I would think. Just my guess, Ted -- Ted Ashton ([EMAIL PROTECTED]) | From the Tom Swifty collection: Southern Adventist University| "Multiplicati

Apropos of nothing...

2001-12-13 Thread Piers Cawley
In the following code fragment, what context is foo() in? @ary[0] = foo() the following code @ary= foo() obviously evaluates @foo in a list context, but in the first I'm no longer sure. -- Piers "It is a truth universally acknowledged that a language in possession of a ri

Re: [Patch] Just some -Wall cleanups

2001-12-13 Thread Dan Sugalski
At 11:15 AM 12/13/2001 -0500, Bryan C. Warnock wrote: >On Thursday 13 December 2001 11:10 am, Dan Sugalski wrote: > > At 11:33 PM 12/12/2001 -0500, Josh Wilmes wrote: > > >Here are a few of the more clear-cut fixes I noticed from -Wall's > > > whinings. > > > > Applied, with some hand-patching. (Y

Re: [Patch] Just some -Wall cleanups

2001-12-13 Thread Dan Sugalski
At 11:22 AM 12/13/2001 -0500, Josh Wilmes wrote: >Oops. Sorry, i'll attach it next time. Inline's just fine. (Eudora has this nasty habit, when transferring mail from IMAP-hosted mailboxes to local folders of *not* copying the attachments, instead referencing the attachment in the IMAP box. Wh

Re: [Patch] Just some -Wall cleanups

2001-12-13 Thread Josh Wilmes
Oops. Sorry, i'll attach it next time. --Josh At 11:10 on 12/13/2001 EST, Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 11:33 PM 12/12/2001 -0500, Josh Wilmes wrote: > >Here are a few of the more clear-cut fixes I noticed from -Wall's whinings. > > Applied, with some hand-patching. (Your maile

Re: [Patch] Just some -Wall cleanups

2001-12-13 Thread Bryan C. Warnock
On Thursday 13 December 2001 11:10 am, Dan Sugalski wrote: > At 11:33 PM 12/12/2001 -0500, Josh Wilmes wrote: > >Here are a few of the more clear-cut fixes I noticed from -Wall's > > whinings. > > Applied, with some hand-patching. (Your mailer threw in hard returns for > lines over 80 characters)

Re: [Patch] Check for nonempty string before printing

2001-12-13 Thread Dan Sugalski
At 11:18 PM 12/12/2001 -0500, Josh Wilmes wrote: >Here's a minor patch which should make purify happy. (passing in 0 for >the length was causing an "ABR" error). Applied, thanks. Dan --"it's like this"-

Re: [Patch] Just some -Wall cleanups

2001-12-13 Thread Dan Sugalski
At 11:33 PM 12/12/2001 -0500, Josh Wilmes wrote: >Here are a few of the more clear-cut fixes I noticed from -Wall's whinings. Applied, with some hand-patching. (Your mailer threw in hard returns for lines over 80 characters) Dan -