Opcodes question

2005-07-20 Thread Curtis Rawls
From working with the optimizer, I have some questions about the PASM opcodes, in particular the inout opcodes. For example, adding integer registers is defined by the add(out INT, in INT, in INT). But if one of the input registers is also the output register, it can be simplified to add(inout

Re: Opcodes question

2005-07-20 Thread Leopold Toetsch
On Jul 20, 2005, at 9:01, Curtis Rawls wrote: From working with the optimizer, I have some questions about the PASM opcodes, in particular the inout opcodes. For example, adding integer registers is defined by the add(out INT, in INT, in INT). But if one of the input registers is also the

Re: GMC for dummies

2005-07-20 Thread Leopold Toetsch
Bob Rogers wrote: So that means you do not use the IGP pointer to A when collecting any generation = j, correct? Otherwise, I imagine you'd always decide that A is alive, and hence B and C. IGPs entries that span the range of to be collected generations are not considered (and very likely

PXPerl 5.8.7-3 with Pugs 6.2.8 and Parrot 0.2.2 binaries

2005-07-20 Thread Grégoire Péan
Hi all, For those who don't want to bother compiling these jewels, PXPerl 5.8.7-3 was released, with latest binaries of Pugs 6.2.8 and Parrot 0.2.2 for Windows (sorry for the little delay). I'm waiting for the next update guys! Grégoire -- www.pixigreg.com [EMAIL PROTECTED]

Re: False Positives from Automated Testing at testers.cpan.org

2005-07-20 Thread Nicholas Clark
On Tue, Jul 19, 2005 at 09:37:39PM -0700, Michael G Schwern wrote: On Tue, Jul 19, 2005 at 10:49:12PM -0400, James E Keenan wrote: Am I correct in this inference and this judgment? Or is there something about the automated testing that I don't understand? If I understand correctly, the

Re: PXPerl 5.8.7-3 with Pugs 6.2.8 and Parrot 0.2.2 binaries

2005-07-20 Thread osfameron
Grégoire Péan wrote: For those who don't want to bother compiling these jewels, PXPerl 5.8.7-3 was released, with latest binaries of Pugs 6.2.8 and Parrot 0.2.2 for Windows (sorry for the little delay). I think it's wonderful that you are helping to lower the barrier of entry into P6 for

[perl #36597] [PATCH]Dominance Frontiers

2005-07-20 Thread via RT
# New Ticket Created by Curtis Rawls # Please include the string: [perl #36597] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36597 This patch adds support for dominance frontiers in imcc, including: -Array of Sets

Re: False Positives from Automated Testing at testers.cpan.org

2005-07-20 Thread Adam Kennedy
Michael G Schwern wrote: On Tue, Jul 19, 2005 at 10:49:12PM -0400, James E Keenan wrote: The inference I drew was that the four false positives I received for v0.35 came from automated testing in an environment where IO::Capture was already installed, so that the test script did not need to

pugs-6.2.8 problem with file slurp.

2005-07-20 Thread Konovalov, Vadim
I was trying using pugs at work and stepped into a problem. I am reading a file with my @titles = @*ARGS[1].slurp; and then just @titles.say I am very fond of such a quick way of reading a file instead of every time dance of $fh = open...; $fh a problem is - my file contains characters

Re: Database Transactions and STM [was: Re: STM semantics, the Transactional role]

2005-07-20 Thread Yuval Kogman
On Mon, Jul 18, 2005 at 15:16:16 +1200, Sam Vilain wrote: Yuval Kogman wrote: everyone gets to choose, and another thing I have in mind is the Transactional role... DBI::Handle does Transactional; To the STM rollbacker and type checker thingy this means that any IO performed by

Re: Type::Class::Haskell does Role

2005-07-20 Thread Yuval Kogman
On Sun, Jul 17, 2005 at 18:23:02 +, Luke Palmer wrote: * Coercion of parameters and a class's willingness to coerce into something is a better metric of distance Well, if you think metrics at all are a good way to do dispatch. Well, we do have a notion of closeness

Hash creation with duplicate keys

2005-07-20 Thread Ingo Blechschmidt
Hi, # Perl 5 my %hash = (a = 1, b = 2, a = 3); warn $hash{a}; # 3 But I vaguely remember having seen...: # Perl 6 my %hash = (a = 1, b = 2, a = 3); say %hasha;# 1 Can somebody confirm this? --Ingo -- Linux, the choice of a GNU | Mathematicians practice

Re: parsing perl6 grammars

2005-07-20 Thread Jeff 'japhy' Pinyan
http://feather.perl6.nl/~japhy/ has R-P-0.20 with the current state of the Perl6::Rule::Parser code. -- Jeff japhy Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 % the cheated, we who for every service http://japhy.perlmonk.org/ % have long ago been

User-defined behaviour of hashes in list context

2005-07-20 Thread Ingo Blechschmidt
Hi, according to Damian [1]...: my %hash = (a = 1, b = 2); my @array = %hash; say @array[0].isa(Pair); # true How can I override this behaviour? class MyHash is Hash { # Please fill in here } my %hash is MyHash = (a = 1, b = 2); my @array =

Re: User-defined behaviour of hashes in list context

2005-07-20 Thread TSa (Thomas Sandlaß)
HaloO Ingo, you wrote: according to Damian [1]...: my %hash = (a = 1, b = 2); my @array = %hash; say @array[0].isa(Pair); # true How can I override this behaviour? class MyHash is Hash { # Please fill in here # my idea is to overload *infix:=

Re: False Positives from Automated Testing at testers.cpan.org

2005-07-20 Thread Geoffrey Young
(I deliberately did *not* list IO::Capture as a prerequisite in Makefile.PL because I didn't want to force users to install that module. I simply wanted them to use it during testing and then throw it away. this is the start of the right attitude I think - when your testing environment

leo-ctx5 (r8656): test results

2005-07-20 Thread jerry gay
win32--msvc-7.1--perl-5.8.6 reports some unexpected errors. dynclass and spawnw are expected on windows, the rest are not. if requested, i can provide more details on the failing tests. ~jerry Failed Test Stat Wstat Total Fail Failed List of Failed

Re: leo-ctx5 (r8656): test results

2005-07-20 Thread Leopold Toetsch
jerry gay wrote: win32--msvc-7.1--perl-5.8.6 reports some unexpected errors. dynclass and spawnw are expected on windows, the rest are not. if requested, i can provide more details on the failing tests. Yes please. Especially the imcc and jit tests shouldn't at all be different to trunk.

Re: Referring to package variables in the default namespace in p6

2005-07-20 Thread TSa (Thomas Sandlaß)
Matthew Hodgson wrote: On Tue, 19 Jul 2005, Larry Wall wrote: The * looks like a twigil but it isn't really. It's short for *::, Is *:: going up to the outermost Perl6 bubble or to the interpreter that handles it? I mean where do gateways to other languages show up: parallel to *::Perl6 like

Re: leo-ctx5 (r8656): test results

2005-07-20 Thread jerry gay
here's the failure details, with the summary again at the end. # Failed test (t\op\gc.t at line 258) # got: 'coro # done # ' # expected: 'coro # coro # coro # done # ' # Looks like you failed 1 test of 19. # Failed test (t\op\jit.t at line 102) # got: '109564961210956496084 # ' # expected: '404

[PATCH] Perl 6 FAQ

2005-07-20 Thread Autrijus Tang
Below is a patch to remove the first QA from: http://dev.perl.org/perl6/faq.html Against its source form: http://svn.perl.org/perl.org/docs/live/dev/perl6/faq.pod I tried to think of a rewrite to replace the two outdated assertions, but failed miserably. Thanks, /Autrijus/ Index:

Re: Referring to package variables in the default namespace in p6

2005-07-20 Thread Matthew Hodgson
On Wed, 20 Jul 2005, TSa (Thomas Sandlaß) wrote: Matthew Hodgson wrote: I'm very surprised that package variables end up in OUR::, however - because surely they're not necessarily lexically scoped - and the whole point of 'our' was lexical global scoping, right? :/ Sorry, what is 'lexical

Re: Do I need has $.foo; for accessor-only virtual attributes?

2005-07-20 Thread Piers Cawley
Sam Vilain [EMAIL PROTECTED] writes: Larry Wall wrote: Users of the class includes people subclassing the class, so to them they need to be able to use $.month_0 and $.month, even though there is no has $.month_0 declared in the Class implementation, only has $.month. We thought

Re: False Positives from Automated Testing at testers.cpan.org

2005-07-20 Thread Michael G Schwern
On Wed, Jul 20, 2005 at 05:21:19PM +1000, Adam Kennedy wrote: The image-based platforms would be able to implement a fresh from-the-base-install install of each module. This would also greatly help to focus attention on modules that many many others rely on as a dep that don't install

Re: False Positives from Automated Testing at testers.cpan.org

2005-07-20 Thread Sam Tregar
On Wed, 20 Jul 2005, Michael G Schwern wrote: Also, it eliminates one of the valuable parts of CPAN testers: testing in the wild. If you create an artificially clean environment (the clean image), then install all the latest versions of dependent modules into it and then run the tests you'll

This week's summary

2005-07-20 Thread The Perl 6 Summarizer
The Perl 6 Summary for the week ending 2005-07-19 Welcome to another Perl 6 Summary, brought to you by the words 'displacement' and 'activity'. So far today I've caught up with everything unread in NetNewsWire, my Flickr groups, every other mailing list I'm subscribed to and

OSCON testing tutorial?

2005-07-20 Thread Michael G Schwern
Am I imagining things or was there supposed to be a testing tutorial at OSCON with Andy Lester, chromatic and the gang? Or am I thinking of YAPC? -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern Reality is that which, when you stop believing in it, doesn't go away.

Re: OSCON testing tutorial?

2005-07-20 Thread chromatic
On Wed, 2005-07-20 at 11:57 -0700, Michael G Schwern wrote: Am I imagining things or was there supposed to be a testing tutorial at OSCON with Andy Lester, chromatic and the gang? Or am I thinking of YAPC? All session, no tutorial. It's Wednesday afternoon. We're doing Practical Testing

Re: refcounting hash

2005-07-20 Thread Nicholas Clark
On Thu, Jul 14, 2005 at 06:14:52PM +0200, Leopold Toetsch wrote: Nicholas Clark wrote: I'd like to be able to provide this as a non-singleton PMC class, with the addition of a value lookup, and (possibly) iteration. But cut and paste is evil. Well, the more general question is: how can

Re: False Positives from Automated Testing at testers.cpan.org

2005-07-20 Thread Michael G Schwern
On Thu, Jul 21, 2005 at 05:33:29AM +1000, Adam Kennedy wrote: If I have somehow managed to imply I think we should junk the entire entire current testing infrastructure and force every tester in the world to move over to an image base testing system whether they want to or not, then no I

Re: OSCON testing tutorial?

2005-07-20 Thread Andy Lester
On Wed, Jul 20, 2005 at 11:57:36AM -0700, Michael G Schwern ([EMAIL PROTECTED]) wrote: Am I imagining things or was there supposed to be a testing tutorial at OSCON with Andy Lester, chromatic and the gang? Or am I thinking of YAPC? No, it's not a tutorial. It's 90 minutes of random testing

Re: OSCON testing tutorial?

2005-07-20 Thread Nicholas Clark
On Wed, Jul 20, 2005 at 02:46:43PM -0500, Andy Lester wrote: On Wed, Jul 20, 2005 at 11:57:36AM -0700, Michael G Schwern ([EMAIL PROTECTED]) wrote: Am I imagining things or was there supposed to be a testing tutorial at OSCON with Andy Lester, chromatic and the gang? Or am I thinking of

Re: OSCON testing tutorial?

2005-07-20 Thread Andy Lester
On Wed, Jul 20, 2005 at 08:49:11PM +0100, Nicholas Clark ([EMAIL PROTECTED]) wrote: Because Andy would be far too polite to push the book he and Richard Foley wrote: http://www.apress.com/book/bookDisplay.html?bID=399 That's because I didn't write it. I'm more a uber-tech-editor and helped

Re: OSCON testing tutorial?

2005-07-20 Thread Bill Odom
On Jul 20, 2005, at 2:07 PM, chromatic wrote: All session, no tutorial. It's Wednesday afternoon. We're doing Practical Testing Lightning Talks. I didn't think we were actually *calling* them Lightning Talks, but that does capture the spirit. Lots of topics, even more examples -- a very

Re: OSCON testing tutorial?

2005-07-20 Thread Nicholas Clark
On Wed, Jul 20, 2005 at 02:52:40PM -0500, Andy Lester wrote: On Wed, Jul 20, 2005 at 08:49:11PM +0100, Nicholas Clark ([EMAIL PROTECTED]) wrote: Because Andy would be far too polite to push the book he and Richard Foley wrote: http://www.apress.com/book/bookDisplay.html?bID=399 That's

Re: refcounting hash

2005-07-20 Thread Leopold Toetsch
On Jul 20, 2005, at 21:35, Nicholas Clark wrote: For now cp helps :-) I don't agree. cp is evil, because it causes code bloat and propagates bugs. And I'm not after parameterising the aggregates - I'd like to instantiate another instance of what is currently a singleton, for the same

Re: pugs-6.2.8 problem with file slurp.

2005-07-20 Thread Adriano Ferreira
On 7/20/05, Konovalov, Vadim [EMAIL PROTECTED] wrote: a problem is - my file contains characters /[\x80-\xFF]/, and all that characters get replaced with the space. Is it possible with slurp? What you want should be something like filename.slurp(:raw) if Perl 6 is going to follow

Re: Is namespace qualification really required

2005-07-20 Thread Flavio S. Glock
Autrijus Tang said: ...and I fixed the bug promptly. :) I'm getting this error: pugs 10.round *** Undeclared variable: do_round at src/perl6/Prelude.pm line 278, column 9 - line 279, column 5 This is the Prelude code: sub do_round($n) is primitive is safe { ($n 0) ??

Testing report for Win32

2005-07-20 Thread Hill, Ronald
Hello All, I have completed the configure/nmake and test for pugs on Win32 using Visual Studio .NET I did run into some issues with setting the PUGS_EMBED= perl5 ( The compile Would not work) After checking found that GHS is built with gcc instead of Visual C. I have updated the makefile.pl file

Re: parsing perl6 grammars

2005-07-20 Thread Nathan Gray
On Wed, Jul 20, 2005 at 07:08:20AM -0400, Jeff 'japhy' Pinyan wrote: http://feather.perl6.nl/~japhy/ has R-P-0.20 with the current state of the Perl6::Rule::Parser code. Awesome, I'll take a look. -kolibrie

[perl #36606] [PATCH] create t/r6rules/rx_grammar.t - a new (currently failing) test of pge

2005-07-20 Thread via RT
# New Ticket Created by Mitchell N Charity # Please include the string: [perl #36606] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36606 PGE is currently passing all tests, but failing to run a large pugs grammar

Re: OSCON testing tutorial?

2005-07-20 Thread Andy Lester
On Wed, Jul 20, 2005 at 02:48:43PM -0500, Bill Odom ([EMAIL PROTECTED]) wrote: I didn't think we were actually *calling* them Lightning Talks, but that does capture the spirit. Lots of topics, even more examples -- a very high-density presentation. Plus donuts and dancing girls. -- Andy

Re: False Positives from Automated Testing at testers.cpan.org

2005-07-20 Thread Adam Kennedy
If I have somehow managed to imply I think we should junk the entire entire current testing infrastructure and force every tester in the world to move over to an image base testing system whether they want to or not, then no I didn't mean that. But I figured that would be obvious... Adam K

Re: OSCON testing tutorial?

2005-07-20 Thread Bill Odom
On Jul 20, 2005, at 2:07 PM, chromatic wrote: All session, no tutorial. It's Wednesday afternoon. We're doing Practical Testing Lightning Talks. I didn't think we were actually *calling* them Lightning Talks, but that does capture the spirit. Lots of topics, even more examples -- a very

Re: Re: OSCON testing tutorial?

2005-07-20 Thread leif . eriksen
[EMAIL PROTECTED] wrote: On Wed, Jul 20, 2005 at 02:48:43PM -0500, Bill Odom ([EMAIL PROTECTED]) wrote: I didn't think we were actually *calling* them Lightning Talks, but that does capture the spirit. Lots of topics, even more examples -- a very high-density presentation. Plus

Re: Re: OSCON testing tutorial?

2005-07-20 Thread Michael G Schwern
On Thu, Jul 21, 2005 at 11:28:52AM +1000, [EMAIL PROTECTED] wrote: Donuts ? Did you say donuts !? What kind ? Nearest Krispy Kreme is in Beaverton on RT 26 or Clackmas just off 205. Hmmm, chromatic lives in Beaverton... -- Michael G Schwern [EMAIL PROTECTED]

Re: Re: OSCON testing tutorial?

2005-07-20 Thread chromatic
On Wed, 2005-07-20 at 18:40 -0700, Michael G Schwern wrote: Hmmm, chromatic lives in Beaverton... You take that back! I moved to Hillsboro. (Also, MAX doesn't stop anywhere near Krispy Kreme.) -- c

Tail method calls, can(), and pre-currying

2005-07-20 Thread Brent 'Dax' Royal-Gordon
brentdax Is there a Perl 6 tail call syntax, and if so is it implemented in Pugs? autrijus sub.goto(...); autrijus and yes. brentdax Oh...are tail method calls possible? autrijus tail method calls. hrmph. I have a few methods where I'd like to perform tail calls into another object's methods. If

Re: GMC for dummies

2005-07-20 Thread Nattfodd
Leopold Toetsch wrote: ... Perhaps you should save your (metaphorical) breath, and I'll wait for a more detailed design. I'm waiting too :-) Hi, I believe I found a good workaround for the cycle problems. It is a little bit slower and worst case (which never occurs, happily) is |IGP_set|

Subroutine and Method Introspection

2005-07-20 Thread chromatic
A12 and S12 describe introspection on objects and classes. The metaclass instance has the method getmethods() which returns method descriptors. The design specifies several traits queryable through these descriptors. Methods (and subroutines) can take other traits, such as is lvalue or even

In need of somebody who wrote a jit_emit.h implementation

2005-07-20 Thread rocko
I've been slowing banging away at an x86_64 code generator. I'm just trying to get the basics down for now, generating NOP's; but even that's nontrivial. While compiling my code additions into Parrot, I've been running into this and that. This function is redefined a million times, while that

Re: Do I need has $.foo; for accessor-only virtual attributes?

2005-07-20 Thread Sam Vilain
Piers Cawley wrote: Users of the class includes people subclassing the class, so to them they need to be able to use $.month_0 and $.month, even though there is no has $.month_0 declared in the Class implementation, only has $.month. We thought about defining the attribute variables

Re: In need of somebody who wrote a jit_emit.h implementation

2005-07-20 Thread Leopold Toetsch
On Jul 21, 2005, at 7:01, [EMAIL PROTECTED] wrote: I've been slowing banging away at an x86_64 code generator. I'm just trying to get the basics down for now, generating NOP's; but even that's nontrivial. While compiling my code additions into Parrot, I've been running into this and that.