Re: Synopsis 3: quick junction question

2004-03-18 Thread Damian Conway
Sean O'Rourke wrote: S3 says: 1|2 + 3&4; # (4|5) & (5|6) but shouldn't that equal (1 + (3&4)) | (2 + (3&4)) = (4&5) | (5&6) = (4|6) & 5 # ??? No, it shouldn't. You should read: 1|2 + 3&4 as: "Is ther

Re: Continuation usage

2004-03-18 Thread Piers Cawley
Jens Rieks <[EMAIL PROTECTED]> writes: > Hi, > > does the attached test use the Continuation in a correct way? > The test failes, what am I doing wrong? Without running it I'm guessing that it prints out something like 456=789 456=456 123=123 And on running it, I see that I'm right. Remember t

Re: [perl #27753] [PATCH] x86_64 fixes

2004-03-18 Thread Dan Sugalski
At 7:16 PM -0800 3/18/04, Adam Thomason (via RT) wrote: Attached patched fixes up the following issues for x86_64: - Like PPC, x86_64 has a convoluted varargs convention that disallows taking the address of a va_list. Solution is just to do what PPC does, use va_list instead of va_list*. - The

Synopsis 3: quick junction question

2004-03-18 Thread Sean O'Rourke
S3 says: 1|2 + 3&4; # (4|5) & (5|6) but shouldn't that equal (1 + (3&4)) | (2 + (3&4)) = (4&5) | (5&6) = (4|6) & 5 # ??? For one thing, OR's of AND's (DNF) is just nicer than AND's of OR's (CNF). For another, I read th

[perl #27753] [PATCH] x86_64 fixes

2004-03-18 Thread via RT
# New Ticket Created by Adam Thomason # Please include the string: [perl #27753] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=27753 > Attached patched fixes up the following issues for x86_64: - Like PPC, x86_64 has a

continuations [was Re: Could Parrot use a roadmap?]

2004-03-18 Thread Mitchell N Charity
Which brings up again my warnocked question: How can return continuations get reused? Please provide some PASM code that enables my brain to follow your argument that we cant't simply cache them. Well, I can't do PASM code, but let me give it try. ;) Single vs multiple use. It should be

Re: Optimizations for Objects

2004-03-18 Thread Jens Rieks
oops, I renamed the wrong file... This is the correct example. jens .pcc_sub _main: newsub P0, .Sub, _foo newsub P1, .RetContinuation, _ret invoke _ret: print "returned!\n" set P0, P2 invokecc print "after 2nd invoke\n" end .pcc_sub _foo: print "foo start\n"

Re: Optimizations for Objects

2004-03-18 Thread Jens Rieks
Hi, On Thursday 18 March 2004 22:38, Leopold Toetsch wrote: > Dan Sugalski <[EMAIL PROTECTED]> wrote: > > At 4:10 PM -0500 3/18/04, Mitchell N Charity wrote: > >>It seemed nontrivial to reduce the number return continuation pmc's > >>used in oofib.imc. So I instead added an _extra_, unused one, t

Re: Optimizations for Objects

2004-03-18 Thread Dan Sugalski
At 10:38 PM +0100 3/18/04, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: At 4:10 PM -0500 3/18/04, Mitchell N Charity wrote: It seemed nontrivial to reduce the number return continuation pmc's used in oofib.imc. So I instead added an _extra_, unused one, to the two already used i

Re: Optimizations for Objects

2004-03-18 Thread Mitchell N Charity
>Which suggests return continuation pmc driven memory management costs >(gc and allocation) are currently a major, perhaps even dominant, >factor in method invocation speed. Yow. Okay, thanks. That means it's time to dive into the think tank and see what we can do about that. Noth

Re: Optimizations for Objects

2004-03-18 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 4:10 PM -0500 3/18/04, Mitchell N Charity wrote: >>It seemed nontrivial to reduce the number return continuation pmc's >>used in oofib.imc. So I instead added an _extra_, unused one, to the >>two already used in each fib method. >> >>Parrot ran 30% slow

[BUG] imcc: no newline at end of file

2004-03-18 Thread Jens Rieks
Hi, the attached test fails. There is no newline at the end of the file. I think that imcc is causing a memory leak due to this, I got error messages like: "store_sub_in_namespace: sub '__new_class' namespace #1082752832 too big.namespace" in a large program due to this bug. Please note the .n

a segfaulting bit of .imc code

2004-03-18 Thread Mitchell N Charity
I find the following code sefaults in gc, around N=18. What am I overlooking...?? Thanks, Mitchell .sub _main .param pmc argv .sym int argc argc = argv .sym int N N = 24 if argc <= 1 goto noarg $S0 = argv[1] N = $S0 noarg: .sym float start time start

Re: Optimizations for Objects

2004-03-18 Thread Dan Sugalski
At 4:10 PM -0500 3/18/04, Mitchell N Charity wrote: It seemed nontrivial to reduce the number return continuation pmc's used in oofib.imc. So I instead added an _extra_, unused one, to the two already used in each fib method. Parrot ran 30% slower. (Optimized, unoptimized, and jit) Which suggest

Re: Optimizations for Objects

2004-03-18 Thread Mitchell N Charity
It seemed nontrivial to reduce the number return continuation pmc's used in oofib.imc. So I instead added an _extra_, unused one, to the two already used in each fib method. Parrot ran 30% slower. (Optimized, unoptimized, and jit) Which suggests return continuation pmc driven memory management

Re: Method caches

2004-03-18 Thread Larry Wall
On Thu, Mar 18, 2004 at 05:25:00PM +, Piers Cawley wrote: : Larry Wall <[EMAIL PROTECTED]> writes: : : > On Wed, Mar 17, 2004 at 12:41:20PM -0500, Dan Sugalski wrote: : > : Currently I'm figuring on just nuking the whole cache in any of these : > : cases. Later on we can consider doing Clever

Re: [perl #27746] Fix for languages/tcl, when '.' is not in $PATH

2004-03-18 Thread Will Coleda
Danke! On Thursday, March 18, 2004, at 01:46 PM, Bernhard Schmalhofer (via RT) wrote: # New Ticket Created by Bernhard Schmalhofer # Please include the string: [perl #27746] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id

Re: [perl #27690] Numeric comparison bug

2004-03-18 Thread Brent 'Dax' Royal-Gordon
Leopold Toetsch wrote: BTW sscanf() is missing too. I have never used scanf. I have no idea what it does or how. Therefore, I'm hardly qualified to write an implementation of it. -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

[perl #27746] Fix for languages/tcl, when '.' is not in $PATH

2004-03-18 Thread via RT
# New Ticket Created by Bernhard Schmalhofer # Please include the string: [perl #27746] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=27746 > Hi, this patch changes the calls of parrot to './parrot'. This is needed whe

Re: PerlNum -0.0 bug?

2004-03-18 Thread Brent 'Dax' Royal-Gordon
> PS -- Brent my ISP seems to be having an argument with perl.org at the > moment, if this does not make it to the list will you forward it along > for me? Thanks. As requested. I may have mis-threaded this--sorry if I did. > All~ > > I just discovered that my system does have copysign so the fo

Continuation usage

2004-03-18 Thread Jens Rieks
Hi, does the attached test use the Continuation in a correct way? The test failes, what am I doing wrong? jens use strict; use Parrot::Test tests => 1; output_is(<<'CODE', <<'OUTPUT', "use a continuation to go down the callchain"); ##PIR## .sub _main .local int a .local int b .local

Re: [PATCH] fix typo in imcc/docs/calling_conventions.pod

2004-03-18 Thread chromatic
On Thu, 2004-03-18 at 08:50, Jens Rieks wrote: > the attached patch fixes a small typo in alling_conventions.pod Thanks, applied. -- c

Re: cvs commit: parrot/library postgres.pasm

2004-03-18 Thread Dan Sugalski
At 5:34 PM +0100 3/18/04, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: Fix up another dependency issue -library/config.fpmc: myconfig config_lib.pasm +library/config.fpmc: myconfig config_lib.pasm $(TEST_PROG) Actually I deleted $(TEST_PROG) from dependencies a day ago o

Re: Method caches

2004-03-18 Thread Piers Cawley
Larry Wall <[EMAIL PROTECTED]> writes: > On Wed, Mar 17, 2004 at 12:41:20PM -0500, Dan Sugalski wrote: > : Currently I'm figuring on just nuking the whole cache in any of these > : cases. Later on we can consider doing Clever Things, if it seems > : worthwhile. > > That's what Perl 5 does, FWIW.

Re: cvs commit: parrot/library postgres.pasm

2004-03-18 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > Fix up another dependency issue > -library/config.fpmc: myconfig config_lib.pasm > +library/config.fpmc: myconfig config_lib.pasm $(TEST_PROG) Actually I deleted $(TEST_PROG) from dependencies a day ago or so. If Configure is run, myconfig is update

[PATCH] fix typo in imcc/docs/calling_conventions.pod

2004-03-18 Thread Jens Rieks
Hi, the attached patch fixes a small typo in alling_conventions.pod jens Index: imcc/docs/calling_conventions.pod === RCS file: /cvs/public/parrot/imcc/docs/calling_conventions.pod,v retrieving revision 1.19 diff -u -w -r1.19 calling

Re: Parrot hijacks SIGINT

2004-03-18 Thread Leopold Toetsch
Arthur Bergman <[EMAIL PROTECTED]> wrote: > Hi, > Tracking down test failures in ponie I noticed some tests using SIGINT > failing, I'm using now SIGHUP for the tests. Hope that's ok. > Arthur leo

Re: Configure.pl and the history of the world

2004-03-18 Thread Andrew Dougherty
On Tue, 16 Mar 2004, Larry Wall wrote: > On Tue, Mar 16, 2004 at 06:00:51PM -0800, Brent Dax Royal-Gordon wrote: > : Dan Sugalski wrote: > : >Instead, > : >what I'd like is for someone (Oh, Brent... :) to go through perl's > : >configure > : > : Gulp. > > I'm sure Andy can give you *reams* of advi

Proper attribution of checkins

2004-03-18 Thread Dan Sugalski
Folks, for those of you with CVS access, when checking in patches from other people you *must* make sure you add a: Courtesy of foo <[EMAIL PROTECTED]> line to the commit message. (Colon after the "of" is optional) This is how we track who's sent what in, and records the info we need to get i

Re: [perl #27736] [PATCH] languages status update

2004-03-18 Thread Leopold Toetsch
Will Coleda <[EMAIL PROTECTED]> wrote: > This didn't make it in from the big patch. small verbage change, more > importantly, updates the required version. Thanks, applied #27737 done too. leo

scanf (was Re: [perl #27690] Numeric comparison bug)

2004-03-18 Thread Uri Guttman
> "LT" == Leopold Toetsch <[EMAIL PROTECTED]> writes: LT> BTW sscanf() is missing too. perl5 mever had a scanf (or variation) and for good reason IIRC. it was never needed and it has a very nasty api. i hated using it in c because you could never control how much to read and parse and also

[perl #27737] [PATCH]-ish - remove stale tcl test

2004-03-18 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #27737] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=27737 > languages/tcl/t/var_subst.t should be removed. Must have missed it in the big patch t

Re: cvs update problem.

2004-03-18 Thread Will Coleda
Hurm. I upgraded my cvs client, no love, did a fresh checkout, works fine. I recall getting a core dump doing an update after leo checked in all my stuff - local info probably got corrupted. Thanks for trying. On Tuesday, March 16, 2004, at 10:29 PM, Robert Spier wrote: I can't replicate this

[perl #27736] [PATCH] languages status update

2004-03-18 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #27736] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=27736 > This didn't make it in from the big patch. small verbage change, more importantly, up

Re: [perl #27690] Numeric comparison bug

2004-03-18 Thread Leopold Toetsch
Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote: > How close is string_to_num() to being adequate for Parrot_sprintf()'s > purposes? (It currently falls back to the platform sprintf for floats, > because I didn't have, and still don't have, any idea how to properly > format a float.) Well, str

Re: PerlNum -0.0 bug?

2004-03-18 Thread Leopold Toetsch
Mitchell N Charity <[EMAIL PROTECTED]> wrote: > to > if (value == vali && (0 != vali || ...something...)) > perl 5.9.0 devotes several configuration arguments to finding a > floating point classifier (fpclass or similar). And 100+ lines of > perl.h to using them. Defines quite a few macr

Re: [perl #27690] Numeric comparison bug

2004-03-18 Thread Brent 'Dax' Royal-Gordon
How close is string_to_num() to being adequate for Parrot_sprintf()'s purposes? (It currently falls back to the platform sprintf for floats, because I didn't have, and still don't have, any idea how to properly format a float.) -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot ha

Re: [perl #27715] Fetching the class name of an anon. subclass causes coredump

2004-03-18 Thread Leopold Toetsch
Simon Glover <[EMAIL PROTECTED]> wrote: > newclass P0, "City" > subclass P1, P0 Fixed, test cased added. > Simon Thanks, leo

Re: [perl #27690] Numeric comparison bug

2004-03-18 Thread Leopold Toetsch
Skip Livingston <[EMAIL PROTECTED]> wrote: > IMCC uses atof() because it doesn't use (need?) any of the encoding > stuff. Well imcc used to be a standalone language compiler that converted PIR to PASM, which got then assembled to bytecode by assembler.pl. Now imcc is fully integrated, parrot is th

Re: [perl #27690] Numeric comparison bug

2004-03-18 Thread Leopold Toetsch
S. Livingston <[EMAIL PROTECTED]> wrote: > Oops, use this one instead... "re"-fixes the exponent support... Thanks, applied. leo

[Semi-OT] The ^^ operator

2004-03-18 Thread Brent 'Dax' Royal-Gordon
Did anybody notice that Larry has slipped in an anime smiley operator? Between "^^" and the recent musing about "wa"... On a closely related note, how long do you think it'll be before someone puts this on CP6AN? class n { method n() is classmethod {# Or whatever it turns out to