Re: [perl #39913] [BUG] TGE - Can't use } in the transform definitions.

2007-11-27 Thread Patrick R. Michaud
On Tue, Nov 27, 2007 at 08:10:15PM +0200, Allison Randal wrote: Patrick R. Michaud via RT wrote: On Sun Jul 23 06:35:21 2006, coke wrote: The TGE grammar doesn't deal with embedded }'s: Invalid: transform a (b) { # do nothing} } transform a (b) { # do {nothing} } If we still

Re: [perl #47892] [BUG] 'make realclean' fails anew, this time associated with compilers/nqp

2007-11-27 Thread Patrick R. Michaud
On Tue, Nov 27, 2007 at 04:23:17PM -0800, James Keenan wrote: Attempting 'make realclean' tonight in 2 different sandboxes, both pointing to trunk, both on Linux, I got the following output: make -C compilers/tge clean make[1]: Entering directory `/home/jimk/work/parrot/compilers/tge'

[perl #47896] [TODO] Don't rebuild root Makefile

2007-11-27 Thread Patrick R. Michaud via RT
Fixed in r23157. Pm

Re: [perl #47794] [BUG] objects - :method doesn't work with :outer()

2007-11-26 Thread Patrick R. Michaud
On Mon, Nov 26, 2007 at 04:01:37PM +0200, Allison Randal wrote: Patrick R.Michaud (via RT) wrote: This isn't a super-huge priority at the moment... for the time being we can simply have PCT not attach any :outer flags to methods. But eventually we'll probably want to have this working.

Re: PAST and OO

2007-11-26 Thread Patrick R. Michaud
On Mon, Nov 26, 2007 at 11:29:23AM +0200, Allison Randal wrote: So this doesn't get Warnocked: this is a Patrick question. Best to put it in the RT queue. I'll go ahead and answer it here, now that I have an answer. :-) In my reading through the PDDs, I came across the new PAST one, which

Re: [perl #47828] [TODO] Implement the 'copy' opcode

2007-11-26 Thread Patrick R. Michaud
On Mon, Nov 26, 2007 at 01:03:32AM -0800, Allison Randal wrote: The 'copy' opcode is similar to 'clone' but it reuses the PMC header of the destination register. It takes two PMC arguments. The opcode will be implemented by calling the 'morph' and 'assign' vtable functions. Just a note

Re: [svn:parrot] r22924 - trunk/src/pmc

2007-11-26 Thread Patrick R. Michaud
On Mon, Nov 26, 2007 at 11:01:56AM +0200, Allison Randal wrote: Patrick R. Michaud wrote: How about 'copy'? I like 'copy', and the idea that it always consistently creates a copy of the object it's passed. We'll probably get some confusion about the distinction between 'copy

Re: [perl #47828] [TODO] Implement the 'copy' opcode

2007-11-26 Thread Patrick R. Michaud
On Mon, Nov 26, 2007 at 09:03:38AM -0600, Patrick R. Michaud wrote: On Mon, Nov 26, 2007 at 01:03:32AM -0800, Allison Randal wrote: The 'copy' opcode is similar to 'clone' but it reuses the PMC header of the destination register. It takes two PMC arguments. The opcode

[perl #45023] SUGGESTION inlining subs

2007-11-26 Thread Patrick R. Michaud via RT
On Tue Sep 11 11:11:39 2007, bernhard wrote: Patrick R. Michaud schrieb: On Tue, Aug 28, 2007 at 09:37:39AM -0700, Debbie Harry wrote: # New Ticket Created by Debbie Harry # Please include the string: [perl #45023] # in the subject line of all future correspondence about

[perl #39913] [BUG] TGE - Can't use } in the transform definitions.

2007-11-26 Thread Patrick R. Michaud via RT
On Sun Jul 23 06:35:21 2006, coke wrote: The TGE grammar doesn't deal with embedded }'s: Invalid: transform a (b) { # do nothing} } transform a (b) { # do {nothing} } If we still need this, I vote that tge transforms require the closing brace to be at the beginning of a line

[perl #44851] Update step 2.f in release_manager_guide.pod

2007-11-26 Thread Patrick R. Michaud via RT
It looks as though the 0.4.15, 0.4.16, and 0.5.0 releases were all made without updating PBC_COMPAT, with no ill effects. So, I've now removed item f (update PBC_COMPAT) from the release_manager_guide.pod and I'm marking this ticket as resolved. Pm

'abc' now written in nqp

2007-11-26 Thread Patrick R. Michaud
Well, after a long and very fruitful day of hacking, the 'abc' compiler in Parrot is now written mostly in PGE and NQP, with all tests passing. 'abc' is an implementation of a basic calculator (like the unix bc(1) command) for Parrot. While abc does support a lot of bc features, the primary

Re: [svn:parrot] r22924 - trunk/src/pmc

2007-11-25 Thread Patrick R. Michaud
On Sun, Nov 25, 2007 at 01:56:51PM +0200, Allison Randal wrote: Patrick R. Michaud wrote: I just want to add a reminder here that the whole reason PCT, PAST-pm, and Tcl use morph in the first place is because Parrot doesn't provide a usable replace pmc with clone opcode, and using morph

CONST_STRING vs string_from_literal ?

2007-11-25 Thread Patrick R. Michaud
What's the difference between CONST_STRING and string_from_literal? In particular, which one should be used when? In some code I see things like: # src/pmc/exporter.pmc STRING *s_hash = CONST_STRING(interp, hash); and in others we have # src/pmc/codestring.pmc STRING

Re: CONST_STRING vs string_from_literal ?

2007-11-25 Thread Patrick R. Michaud
On Sun, Nov 25, 2007 at 09:19:20AM -0800, chromatic wrote: On Sunday 25 November 2007 07:15:01 Patrick R. Michaud wrote: What's the difference between CONST_STRING and string_from_literal? In particular, which one should be used when? In some code I see things like: # src/pmc

Re: CONST_STRING vs string_from_literal ?

2007-11-25 Thread Patrick R. Michaud
On Sun, Nov 25, 2007 at 11:50:15AM -0800, chromatic wrote: On Sunday 25 November 2007 10:35:01 Patrick R. Michaud wrote: On Sun, Nov 25, 2007 at 09:19:20AM -0800, chromatic wrote: CONST_STRING() is 100% more awesome, because it's completely constant. [...] PDD 15 branch after

Re: CONST_STRING vs string_from_literal ?

2007-11-25 Thread Patrick R. Michaud
On Sun, Nov 25, 2007 at 12:57:35PM -0800, chromatic wrote: On Sunday 25 November 2007 12:37:13 Patrick R. Michaud wrote: On Sun, Nov 25, 2007 at 11:50:15AM -0800, chromatic wrote: It doesn't *always* work. For example, I think CONST_STRING() doesn't work in PCCMETHODs in PMCs

Re: [svn:parrot] r23050 - trunk/tools/build

2007-11-25 Thread Patrick R. Michaud
On Sun, Nov 25, 2007 at 03:09:22PM -0800, [EMAIL PROTECTED] wrote: Log: [tools] Allow other double-quoted strings in a line with the CONST_STRING() macro, as long as there's an even number of quotes. This (still) doesn't work if there's an escaped double-quote, but it never did and it hasn't

Current roadmap for Perl 6 on Parrot

2007-11-24 Thread Patrick R. Michaud
I've just written up a brief road map with the current status and development plans for the Perl 6 on Parrot compiler, and thought I'd share it here as well. It's also available as languages/perl6/ROADMAP in the Parrot repository, for people who want to look at it there. Before going too far, I

Re: Thanksgiving fun

2007-11-23 Thread Patrick R. Michaud
On Fri, Nov 23, 2007 at 01:21:39AM -0800, [EMAIL PROTECTED] wrote: On Nov 23, 1:37 am, [EMAIL PROTECTED] wrote: I tried it on the 0.5.0 updated this week, with the following results: [EMAIL PROTECTED] nqp]$ ../../parrot nqp.pbc ~/tmp/blue_rect.pl Cannot find the attribute 'post' (String)

Re: [svn:parrot] r22924 - trunk/src/pmc

2007-11-23 Thread Patrick R. Michaud
I just want to add a reminder here that the whole reason PCT, PAST-pm, and Tcl use morph in the first place is because Parrot doesn't provide a usable replace pmc with clone opcode, and using morph+assign is a workaround. In other words, if a replace pmc opcode exists, then morph suddenly

Thanksgiving fun

2007-11-22 Thread Patrick R. Michaud
Here's a bit of fun for the holiday weekend. (At least it's a holiday in the U.S., which is celebrating Thanksgiving today. If you're somewhere that isn't celebrating a holiday today, you're still allowed to enjoy this. :-) This assumes that the Parrot SDL libraries are working on your system

Re: Thanksgiving fun

2007-11-22 Thread Patrick R. Michaud
On Thu, Nov 22, 2007 at 02:23:39PM -0600, Patrick R. Michaud wrote: [1] On my system (Kubuntu 7.10) I generally have to install the libsdl-dev package to get Parrot to work with SDL. In the past I've done similar things with OpenSUSE and Fedora. Also, sometimes simply creating

Re: [svn:parrot] r22876 - trunk/t/codingstd

2007-11-18 Thread Patrick R. Michaud
On Sun, Nov 18, 2007 at 06:03:28AM -0800, [EMAIL PROTECTED] wrote: Log: [codingstd] If a comma is followed by a single quote, it very likely in a situation like: moo = ','; In which case, there shouldn't be a space after the comma. Updating test to handle this situation. Shouldn't the

Re: [perl #47523] [NEW] Coding standards test for spacing after commas and semicolons

2007-11-17 Thread Patrick R. Michaud
On Sat, Nov 17, 2007 at 10:43:25AM +0100, Paul Cochrane wrote: One nit I have about C-code is that I think there should be a space after commas and semicolons. I am not a C-coder, so I don't have an authoritative opinion about this. But I would like to ask: In this a common

Re: [perl #47453] make test errors (likely test harness related)

2007-11-15 Thread Patrick R. Michaud
On Thu, Nov 15, 2007 at 09:40:47PM +, Andy Armstrong wrote: On 14 Nov 2007, at 22:13, Patrick R.Michaud (via RT) wrote: Last week I had to reinstall the OS on my desktop, and after installing Test::TAP::HTMLMatrix (for 'make smoke') I now get a lot of errors during 'make test' that look

Re: [perl #47397] t/op/arithmetics.t hangs

2007-11-14 Thread Patrick R. Michaud
On Wed, Nov 14, 2007 at 09:20:40AM -0500, Andy Dougherty wrote: On Tue, 13 Nov 2007, Nicholas Clark via RT wrote: On Mon, Nov 12, 2007 at 12:33:41PM -0800, Andy Dougherty wrote: It may well be there's an issue with gcc's optimizer, since the problem goes away without optimization, but I

Re: [perl #40626] [BUG] :vtable fails for subclasses of core classes

2007-11-13 Thread Patrick R. Michaud
On Tue, Nov 13, 2007 at 01:10:11PM -0800, Klaas-Jan Stol via RT wrote: On Wed Sep 05 12:58:32 2007, bernhard wrote: thanks for the quick turnaround. this test is perfect for the 'executed from pir test case', and will be applied shortly. The test case has been added in r21092.

Running 'make smoke' w/Parrot

2007-11-13 Thread Patrick R. Michaud
Earlier today during #parrotsketch I reported a problem with installing Test::TAP::HTMLMatrix, needed in order to run the 'make smoke' target. perlfan++ on #parrot has found the likely culprit -- the Test::TAP::Model module needs to have Test::Harness::Results available, and it's apparently not

pdd19 comments

2007-10-29 Thread Patrick R. Michaud
Just a few comments from a brief review of pdd19: =item 'char constant' Are delimited by single-quotes (C'). They are taken to be ASCII encoded. No escape sequences are processed. What exactly does They are taken to be ASCII encoded mean here? For example, what happens if I write a

Re: [perl #44861] [TODO]: remove compiler warnings note from README

2007-10-22 Thread Patrick R. Michaud
On Sun, Oct 21, 2007 at 07:57:24PM -0700, Will Coleda via RT wrote: On Wed Aug 22 09:19:49 2007, pmichaud wrote: For the 0.4.15 release a note was added to README regarding the large number of compiler warnings in the release: + As of the 0.4.15 release you may see a large number of

Re: [perl #46455] [IMCC] .param reg does not work

2007-10-16 Thread Patrick R. Michaud
On Tue, Oct 16, 2007 at 02:24:41AM -0700, Klaas-Jan Stol wrote: according to IMCC's docs, you should be able to specify a parameter like so: .param $P0 However, this does not work. It must be decided whether this syntax is desirable, or not needed. If desirable, it must be implemented,

Re: [svn:parrot] r22141 - branches/pdd15oo/src/pmc

2007-10-16 Thread Patrick R. Michaud
On Tue, Oct 16, 2007 at 01:39:21PM -0700, [EMAIL PROTECTED] wrote: Modified: branches/pdd15oo/src/pmc/capture.pmc == --- branches/pdd15oo/src/pmc/capture.pmc (original) +++ branches/pdd15oo/src/pmc/capture.pmc

Re: [perl #39824] [CAGE] tools/dev/check_source_standards.pl -- this should be a test

2007-10-16 Thread Patrick R. Michaud
On Tue, Oct 16, 2007 at 10:45:29PM -0400, James E Keenan wrote: Joshua Juran wrote: On Oct 16, 2007, at 10:52 AM, Paul Cochrane wrote: The minimum requirements for filenames should be: - Any character in the set: a-zA-Z0-9,.-_ - Should we make a rule about multiple dots? - Should there

Re: [perl #46391] [TODO] Return None PMC for nonexisting keys in gdbmhash

2007-10-15 Thread Patrick R. Michaud
On Fri, Oct 12, 2007 at 10:49:49PM -0400, Bob Rogers wrote: From: Paul Cochrane (via RT) [EMAIL PROTECTED] Date: Fri, 12 Oct 2007 17:35:25 -0700 # New Ticket Created by Paul Cochrane # Please include the string: [perl #46391] # in the subject line of all future

Re: [perl #46213] [PGE] Bug in longest token matching || ?

2007-10-07 Thread Patrick R. Michaud
On Sun, Oct 07, 2007 at 08:52:26AM -0700, Klaas-Jan Stol wrote: hi, while converting lang/PIR into the new Perl6Grammar syntax, I came across the following. token relational_operator { || '==' || '!=' || '=' || '' || '' || '=' } At first, I used single

Re: pdd15oo -- difference between PMCNULL and (null) ?

2007-10-05 Thread Patrick R. Michaud
On Thu, Oct 04, 2007 at 10:46:02PM -0700, Allison Randal wrote: Patrick R. Michaud wrote: $ ./parrot -t1 y.pir 0 get_class P1, PC4P1=PMCNULL PC4=Key=PMC(0x92b690) 3 set P2, P1 P2=PMCNULL P1=(null) 6 get_hll_namespace P0, PC4

pdd15oo: load_bytecode and :method subs

2007-10-05 Thread Patrick R. Michaud
In pdd15oo, there seems to be an issue about using load_bytecode to load :method subs after a class has been created. Here's my test code. The main file is 'foo.pir': $ cat foo.pir .sub 'main' :main $P0 = newclass 'Foo' $P1 = new 'Foo' $P1.'foo_method'()

Re: pdd15oo: load_bytecode and :method subs

2007-10-05 Thread Patrick R. Michaud
On Fri, Oct 05, 2007 at 03:12:07AM -0500, Patrick R. Michaud wrote: In pdd15oo, there seems to be an issue about using load_bytecode to load :method subs after a class has been created. The :method pragma also seems to not work for code that is compiled using the built-in PIR compiler. Here's

Re: pdd15oo: load_bytecode and :method subs

2007-10-05 Thread Patrick R. Michaud
On Fri, Oct 05, 2007 at 10:30:03AM -0700, Allison Randal wrote: I'll work on this today, but if you want the quick fix, just call load_bytecode before newclass. (The quick fix won't work for your eval example.) This is the workaround I'm using to get the PGE tests to pass, but it's not

Re: pdd15oo: load_bytecode and :method subs

2007-10-05 Thread Patrick R. Michaud
On Fri, Oct 05, 2007 at 12:08:03PM -0700, Allison Randal wrote: Patrick R. Michaud wrote: In the case of dynamically generated code, using add_method is somewhat more challenging because we can't perform the add_method until after the PIR source has been compiled and loaded

Re: pdd15oo: load_bytecode and :method subs

2007-10-05 Thread Patrick R. Michaud
On Fri, Oct 05, 2007 at 11:05:50AM -0700, Allison Randal wrote: Patrick R. Michaud wrote: At any rate, pgc.pir and Perl6Grammar.pir (used to compile grammars into PIR) both want the ability to compile and install rules at runtime, so we really need the eval version to work before we can

pdd15oo -- difference between PMCNULL and (null) ?

2007-10-04 Thread Patrick R. Michaud
When looking at a trace output (-t1), what's the difference between PMCNULL and (null)? For example: $ cat y.pir .namespace ['Foo'] .sub main :main $P1 = get_class ['Foo'] $P2 = $P1 $P0 = get_hll_namespace ['Foo'] $P1 = get_class $P0 $P2 = $P1 .end $

pdd15oo: How do I create a dynamically named class?

2007-10-04 Thread Patrick R. Michaud
How does one create a new class with a name determined dynamically at runtime? For example, suppose I have a string like 'PGE::Perl6Grammar', and from that I want to create a ['PGE';'Perl6Grammar'] class. The code $ cat z1.pir .sub main :main $S0 = 'PGE::Perl6Grammar'

Re: PGE::P6Regex and pdd15oo

2007-10-04 Thread Patrick R. Michaud
On Thu, Oct 04, 2007 at 12:27:49PM -0700, Allison Randal wrote: Patrick R. Michaud wrote: Slowly PGE and PGE::Perl6Regex are being updated to work with pdd15oo. What sort of changes do you end up making? It shouldn't touch anything other than the lines of code creating a new class

Re: PGE::P6Regex and pdd15oo

2007-10-04 Thread Patrick R. Michaud
On Thu, Oct 04, 2007 at 01:33:43PM -0700, Allison Randal wrote: Patrick R. Michaud wrote: It did occur to me this morning that we can stick with the flat-namespace model that PGE and other tools have been using up-to-now, and make the switch to using multilevel namespaces sometime later

PGE::P6Regex and pdd15oo

2007-10-03 Thread Patrick R. Michaud
Slowly PGE and PGE::Perl6Regex are being updated to work with pdd15oo. Several existing tools and languages in the repo still make use of PGE::P6Regex, which uses the regex syntax that was in Synopsis 5 prior to February 2007. Rather than spend the time converting the P6Regex to work with

Re: wrapping up the OO implementation

2007-10-02 Thread Patrick R. Michaud
On Tue, Oct 02, 2007 at 07:19:30AM -0700, jerry gay wrote: On 10/2/07, Klaas-Jan Stol [EMAIL PROTECTED] wrote: On 10/2/07, Allison Randal [EMAIL PROTECTED] wrote: the first file I wanted to fix, t/stm/runtime.t, contains this: $I0 = find_type 'STMQueue' if $I0 goto done

Re: [svn:parrot] r21762 - in branches/pdd15oo/t: library pmc

2007-10-02 Thread Patrick R. Michaud
[Resending to parrot-porters.] On Tue, Oct 02, 2007 at 02:38:50PM -0700, [EMAIL PROTECTED] wrote: Log: [t] Fixed two more failing tests from ResizablePMCArray returning PMCNULL, not Undef, for non-existent values. I'm getting Null PMC access errors when retrieving strings and integers from

pdd15 questions

2007-09-26 Thread Patrick R. Michaud
This is primarily for Allison, but others can chip in 1. In PIR, if I have an Object in a PMC register, how do I determine its corresponding Class object? Is the standard mechanism to use the Cinspect opcode? $P1 = inspect $P0, 'class' # $P1 is class object of $P0

Re: pdd15 questions

2007-09-26 Thread Patrick R. Michaud
On Wed, Sep 26, 2007 at 01:39:51PM -0500, Patrick R. Michaud wrote: This is primarily for Allison, but others can chip in 1. In PIR, if I have an Object in a PMC register, how do I determine its corresponding Class object? Is the standard mechanism to use the Cinspect opcode

Re: pdd15 questions

2007-09-26 Thread Patrick R. Michaud
On Wed, Sep 26, 2007 at 01:57:10PM -0500, Patrick R. Michaud wrote: On Wed, Sep 26, 2007 at 01:39:51PM -0500, Patrick R. Michaud wrote: This is primarily for Allison, but others can chip in 1. In PIR, if I have an Object in a PMC register, how do I determine its corresponding

Re: PGE::Match's 'new' method

2007-09-17 Thread Patrick R. Michaud
On Mon, Sep 17, 2007 at 03:38:58PM -0700, Allison Randal wrote: PGE relies on an assumption of the old object metamodel that's no longer valid: that defining a method in the namespace of the class will allow you to call it as a class method. [...] $P0 = getclass 'PGE::Match' (mob, pos,

Re: Kea Common Lisp pre-release

2007-09-12 Thread Patrick R. Michaud
On Wed, Sep 12, 2007 at 02:14:00PM +0200, François PERRAD wrote: I've added kea-cl as a SVN external definition in the Parrot tree. At now, I don't know if it was a good idea. During yesterday's #parrotsketch meeting it was decided that for the time being we should _not_ use svn:external in

Re: [svn:parrot] r21227 - trunk

2007-09-12 Thread Patrick R. Michaud
On Wed, Sep 12, 2007 at 11:59:12AM -0700, [EMAIL PROTECTED] wrote: Modified: trunk/DEPRECATED.pod +=item Bfind_name There are several variants of some of the above ops; all are deprecated, and are replaced by the ops {set,get}_[hll,root]_global. See also

Re: [perl #45411] [PROPOSAL][IMCC] Make .pcc_begin_{yield,return} syntax a bit stricter

2007-09-12 Thread Patrick R. Michaud
On Wed, Sep 12, 2007 at 09:07:00AM -0700, Klaas-Jan Stol wrote: I propose to make IMCC a bit stricter and have it enforce to use the appropriate closing directive. So, close .pcc_begin_return with a .pcc_end_return directive, and likewise for _yield directives. (on a side note, instead of

[perl #45249] [BUG] r21103-21121 won't build on 64-bit intel

2007-09-11 Thread Patrick R. Michaud via RT
Agreed, r21175 appears to have resolved this problem, so I'm closing the ticket. Instead of filing a ticket for the t/pmc/fixedfloatarray.t problem, I just went ahead and fixed it (r21182). Pm

Re: [perl #42769] can't create a variable named 'object'

2007-09-10 Thread Patrick R. Michaud
On Sun, Sep 09, 2007 at 04:18:04AM -0700, Bernhard Schmalhofer via RT wrote: On Fri Apr 27 09:36:50 2007, particle wrote: it seems that 'object' is a reserved word in imcc, it's a synonym for 'pmc'. it seems undocumented, and i don't see a reason for it--we already have a word for

Re: [perl #42769] Names of basic PMC serve as keywords in PIR

2007-09-10 Thread Patrick R. Michaud
On Sun, Sep 09, 2007 at 10:38:11AM -0700, Bernhard Schmalhofer via RT wrote: On So. 29. Apr. 2007, 06:01:16, kjs wrote: In r21167 the keyword 'object', as a synonym of 'pmc', was removed from PIR. However the question from kjs remains to be answered: related to this, I think that imcc

Re: [perl #45309] [PATCH] sign function

2007-09-10 Thread Patrick R. Michaud
On Sun, Sep 09, 2007 at 09:19:05PM -0500, Joshua Isom wrote: On Sep 9, 2007, at 6:40 PM, Doug McNutt wrote: At 21:16 +0100 9/9/07, Nicholas Clark wrote: On Sun, Sep 09, 2007 at 10:56:20AM -0700, Jrg Plate wrote: # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=45309 This patch

Re: [perl #42769] Names of basic PMC serve as keywords in PIR

2007-09-10 Thread Patrick R. Michaud
On Mon, Sep 10, 2007 at 07:47:58PM +0200, Bernhard Schmalhofer wrote: Patrick R. Michaud schrieb: related to this, I think that imcc also allows for built-in types as types. such as .local Array a etc. (sorry can't check; don't have my own pc around here, this is a public pc) (I added some

Re: [perl #45023] SUGGESTION inlining subs

2007-09-10 Thread Patrick R. Michaud
On Tue, Aug 28, 2007 at 09:37:39AM -0700, Debbie Harry wrote: # New Ticket Created by Debbie Harry # Please include the string: [perl #45023] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=45023 Maybe it would

Re: [perl #45249] [BUG] r21103-21121 won't build on 64-bit intel

2007-09-10 Thread Patrick R. Michaud
On Sat, Sep 08, 2007 at 12:42:23AM -0700, chromatic wrote: On Friday 07 September 2007 09:32:51 Patrick R.Michaud wrote: Chromatic is already aware of this issue, but I thought I'd file a ticket for it that others can hang information on. Starting with r21103, Parrot won't build on my

Re: PDD 15 - accessing parent's attributes

2007-09-04 Thread Patrick R. Michaud
On Mon, Sep 03, 2007 at 10:49:57AM -0700, Allison Randal wrote: Both the old and new metamodels allow you to set and get an attribute for a parent class that has the same name as an attribute in the child class (Perl 6 and .NET both use this feature in different forms). The old metamodel

Re: Year ranges in copyright information in source files

2007-08-29 Thread Patrick R. Michaud
On Wed, Aug 29, 2007 at 02:44:13PM +0200, Paul Cochrane wrote: Hi all, I've recently added a test to the coding standards tests which checks for a copyright statement, and that the copyright date is up to date. After a discussion on #parrot, Coke made the observation that maybe the most

Parrot 0.4.15 Augean Stable released!

2007-08-22 Thread Patrick R. Michaud
On behalf of the Parrot team, I'm proud to announce Parrot 0.4.15 Augean Stable. Parrot (http://parrotcode.org/) is a virtual machine aimed at running all dynamic languages. Parrot 0.4.15 can be obtained via CPAN (soon), or follow the download instructions at http://parrotcode.org/source.html.

Re: [PATCH] Solaris Platforms update

2007-08-21 Thread Patrick R. Michaud
On Tue, Aug 21, 2007 at 11:42:00AM -0400, Andy Dougherty wrote: On Mon, 20 Aug 2007, Patrick R. Michaud wrote: In preparation for the upcoming Parrot release, please send or commit any updates to NEWS, PLATFORMS, or other files that describe improvements or other important changes

Re: [svn:parrot] r20688 - in trunk: include/parrot src

2007-08-20 Thread Patrick R. Michaud
On Mon, Aug 20, 2007 at 05:26:22PM -0400, Andy Dougherty wrote: I can't think of a clean, portable, efficient way to test that a floating point variable is zero other than == 0.0; Nor can I. Thus you either use lots of platform-specific code (determined by Configure.pl) or turn off gcc's

Parrot monthly release: please send/commit NEWS updates

2007-08-20 Thread Patrick R. Michaud
In preparation for the upcoming Parrot release, please send or commit any updates to NEWS, PLATFORMS, or other files that describe improvements or other important changes since the 0.4.14 release. Thanks! Pm

[perl #44775] [BUG] Parrot update broke languages/perl6

2007-08-19 Thread Patrick R. Michaud via RT
On Sun Aug 19 10:51:54 2007, [EMAIL PROTECTED] wrote: As far as I can tell, r20659 is the last rev perl6 worked correctly on r20660 does not appear to finish building correctly r20661 perl6 make spectest blows up all over the place pmichaud probably has more details as to the exact nature

[perl #44551] [PATCH] NQP test for blocks

2007-08-11 Thread Patrick R. Michaud via RT
Applied in r20606, thanks! Pm

[perl #44557] [PATCH] Add POD to 53_loop.pir

2007-08-11 Thread Patrick R. Michaud via RT
Applied in r20606, thanks! Pm

Re: [perl #44553] [PATCH] Add a new PIR tutorial for defined

2007-08-11 Thread Patrick R. Michaud
On Fri, Aug 10, 2007 at 04:20:04PM -0700, Colin Kuskie wrote: This patch adds a new tutorial file, 56_defined.pir, which talks about the concept of definedness. ... +=head1 defined + +The defined function tells you if the contents of a PMC register is defined or not.

Re: [perl #44553] [PATCH] Add a new PIR tutorial for defined

2007-08-11 Thread Patrick R. Michaud
On Sat, Aug 11, 2007 at 05:00:33PM +0200, Paul Cochrane wrote: Within the past few months we've standardized on always quoting type names in PIR, so the above needs to read $P1 = new 'String' Throughout Parrot you'll find lots of examples and code that use older deprecated

[perl #44515] [PATCH] add POD and code to examples/tutorial/23_string_ops_substr.pir

2007-08-09 Thread Patrick R. Michaud via RT
Applied (r20575), thanks for the patch! Pm

Re: [perl #44511] [PATCH] update POD for examples/tutorial/21_string_ops_repeat.pir

2007-08-09 Thread Patrick R. Michaud
On Wed, Aug 08, 2007 at 09:20:50PM -0700, Colin Kuskie wrote: repeat isn't an operator, it's a function in this context. Describe what it does. Actually, 'repeat' is an opcode here. The PIR statement $S1 = repeat $S0, 3 is just syntactic sugar for the PASM operation repeat $S1, $S0,

Re: [perl #43481] t/examples/shootout.t (shootout_16.pir) fails on gentoo/x86

2007-08-09 Thread Patrick R. Michaud
On Wed, Aug 08, 2007 at 09:12:20PM -0600, Lloyd Miller wrote: Patrick R. Michaud via RT wrote: On Tue Aug 07 20:00:03 2007, millerlf !-- x -- at telus.net wrote: when I ran make test I get 1 failure. Looks like this ... not ok 16 - examples/shootout/regexdna.pir # Failed test (t

Re: [perl #44511] [PATCH] update POD for examples/tutorial/21_string_ops_repeat.pir

2007-08-09 Thread Patrick R. Michaud
On Thu, Aug 09, 2007 at 07:36:11AM -0700, jerry gay wrote: On 8/9/07, Patrick R. Michaud [EMAIL PROTECTED] wrote: Others may correct me on this, but I think that as a general rule, any PIR statement of the form target = opcode [arg1, arg2, ...] is simply syntactic sugar

Re: [perl #44511] [PATCH] update POD for examples/tutorial/21_string_ops_repeat.pir

2007-08-09 Thread Patrick R. Michaud
On Thu, Aug 09, 2007 at 12:28:08PM -0500, Joshua Isom wrote: On Aug 9, 2007, at 9:44 AM, Patrick R. Michaud wrote: On Thu, Aug 09, 2007 at 07:36:11AM -0700, jerry gay wrote: indeed. that's why array = push item and $S0 = 'hello' $S0 = say is valid pir. Actually, $S0

Re: [perl #43481] t/examples/shootout.t (shootout_16.pir) fails on gentoo/x86

2007-08-09 Thread Patrick R. Michaud
On Thu, Aug 09, 2007 at 04:37:30PM -0600, Lloyd Miller wrote: (Like you, I'm also running kubuntu feisty on an x86_64 system, gcc 4.1.2.) OK, I tried svn r20585 and this fail is gone from make test. Excellent. Thanks for confirming. I'm looking to close this ticket if we can... is anyone

[perl #44531] make test file_metadata fail

2007-08-09 Thread Patrick R. Michaud via RT
Now fixed in r20594. The problem was that in certain circumstances, the chunking of files to svn propget would result in the last call to svn being called with only a single file as an argument, thus changing the format of the output. For example, when processing 3201 files with a $chunk_size of

[perl #43481] t/examples/shootout.t (shootout_16.pir) fails on gentoo/x86

2007-08-08 Thread Patrick R. Michaud via RT
On Tue Aug 07 20:00:03 2007, millerlf !-- x -- at telus.net wrote: when I ran make test I get 1 failure. Looks like this ... not ok 16 - examples/shootout/regexdna.pir # Failed test (t/examples/shootout.t at line 103) [...] # Segmentation fault (core dumped) [...] I am running kubutu

[perl #44487] Exporter docs rely on t/pmc/exporter.t for examples

2007-08-07 Thread Patrick R. Michaud
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #44487] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=44487 The documentation for Exporter (in src/pmc/exporter.pmc) has the text

Re: [perl #44395] Lexical scopes are too coarse-grained for loops.

2007-08-03 Thread Patrick R. Michaud
On Fri, Aug 03, 2007 at 03:37:39PM -0700, Bob Rogers wrote: A naive PIR implementation of this loop is included as the second attachment. It fails miserably, because PIR can't distinguish between the different scopes for $i and $n. sub make_closures_loop { # Return n closures, each

Re: [perl #44395] Lexical scopes are too coarse-grained for loops

2007-08-03 Thread Patrick R. Michaud
Perhaps ignore my earlier message -- this one is more coherent. On Fri, Aug 03, 2007 at 03:37:39PM -0700, Bob Rogers wrote: sub make_closures_loop { # Return $n closures, each with lexical references to $i and $n. my $n = shift; my @result; for

Re: [perl #44395] Lexical scopes are too coarse-grained for loops

2007-08-03 Thread Patrick R. Michaud
On Fri, Aug 03, 2007 at 09:51:53PM -0500, Patrick R. Michaud wrote: Currently, the only way to get a distinct binding for each $i in PIR is to factor the loop body out into a separate lexical sub. This is far from ideal, not least because it is not transparent to the HLL user

Re: [perl #44181] for (1,2,3) does not work

2007-07-27 Thread Patrick R. Michaud
On Thu, Jul 26, 2007 at 05:51:23PM -0700, Colin Kuskie wrote: for (0,1,2) { say $_; } that construct dies with: Null PMC access in get_bool() Now fixed in 20269. I checked in an updated 01-sanity/07-for.t into the pugs repository, so if t/fetchspec is run you would be setup to run

[perl #44183] [TODO] need a ROADMAP or GETTING_STARTED file for newcomers

2007-07-26 Thread Patrick R. Michaud
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #44183] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=44183 We need some sort of getting started file for newcomers to explain the layout

Re: Parrot hackathon at OSCON

2007-07-18 Thread Patrick R. Michaud
On Tue, Jul 17, 2007 at 05:36:28PM -0700, Allison Randal wrote: Saturday, July 28th, we'll have a Parrot hackathon in Portland. The location is to-be-determined (chromatic's house if there aren't more than 10 of us). Drop me a note if you plan to join and I'll update you with details. I'll

[perl #44011] Remove compilers/past/ and compilers/post/

2007-07-17 Thread Patrick R. Michaud
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #44011] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=44011 I don't think any languages or other Parrot items are using compilers/past

Re: pdd15: How do I subclass a parrot; PMC class?

2007-07-16 Thread Patrick R. Michaud
On Sat, Jun 30, 2007 at 06:21:39PM +0100, Jonathan Worthington wrote: Patrick R. Michaud wrote: This presumes that every PMC class also has a Namespace PMC associated with it that points to the class. I'm not sure that's true for Parrot PMC classes. It's what I've implemented, though

Re: [svn:parrot-pdd] r19832 - trunk/docs/pdds

2007-07-13 Thread Patrick R. Michaud
On Fri, Jul 13, 2007 at 09:16:59AM -0700, [EMAIL PROTECTED] wrote: +++ trunk/docs/pdds/pdd15_objects.pod Fri Jul 13 09:16:58 2007 @@ -889,9 +889,15 @@ =item getattribute $P1 = getattribute $P2, $S3 + $P1 = getattribute $P2, $P3, $S4 Get the attribute with the fully qualified name

Re: Odd Memory Corruption

2007-07-05 Thread Patrick R. Michaud
On Thu, Jul 05, 2007 at 06:30:44PM -0700, chromatic wrote: In theory, this patch should apply and run cleanly. It doesn't. Thus, something somewhere pokes into memory it shouldn't. Any ideas? Alternately, any comments on this analysis? I also get segfaults after applying this patch.

Should MANIFEST determine .pbc builds in runtime/parrot/library/ ?

2007-06-29 Thread Patrick R. Michaud
I just spent about an hour trying to figure out how the files in runtime/parrot/library/ are automatically compiled into .pbc files when Parrot is built. It turns out that the list of files is computed from the MANIFEST, and I was searching through files in the config/ subdirectory (where most

Re: pdd15: How do I subclass a parrot; PMC class?

2007-06-29 Thread Patrick R. Michaud
On Fri, Jun 29, 2007 at 11:23:46AM -0700, jerry gay wrote: On 6/28/07, Patrick R. Michaud [EMAIL PROTECTED] wrote: Another question about pdd15...: If I'm in a different HLL namespace (e.g., via a .HLL directive), how do I get a PMC class from the 'parrot' HLL namespace? Here

DISREGARD: Should MANIFEST determine .pbc builds in runtime/parrot/library/ ?

2007-06-29 Thread Patrick R. Michaud
On Fri, Jun 29, 2007 at 11:55:28AM -0500, Patrick R. Michaud wrote: I just spent about an hour trying to figure out how the files in runtime/parrot/library/ are automatically compiled into .pbc files when Parrot is built. It turns out that the list of files is computed from the MANIFEST

Re: t/codingstd/perlcritic.t needs to be optional

2007-06-29 Thread Patrick R. Michaud
On Fri, Jun 29, 2007 at 05:59:38PM +0100, Nicholas Clark wrote: Modified since when? Since the last time the user ran Configure. (For the default test run) I think that this will produce minimal false positives and false negatives, for identifying which files have been locally edited.

Re: pdd15: How do I subclass a parrot; PMC class?

2007-06-29 Thread Patrick R. Michaud
On Fri, Jun 29, 2007 at 11:45:18AM -0700, jerry gay wrote: On 6/29/07, Patrick R. Michaud [EMAIL PROTECTED] wrote: On Fri, Jun 29, 2007 at 11:23:46AM -0700, jerry gay wrote: On 6/28/07, Patrick R. Michaud [EMAIL PROTECTED] wrote: .HLL perl6, ... $P2 = get_class

Re: t/codingstd/perlcritic.t needs to be optional

2007-06-28 Thread Patrick R. Michaud
On Wed, Jun 27, 2007 at 10:52:49PM -0700, chromatic wrote: On Wednesday 27 June 2007 22:38:17 Andy Lester wrote: It'd have to be against the last update from svn of the file itself. Yes. ...just to toss some random brainstorms into the mix here... To avoid svn-specific behavior, is there

[perl #43419] [BUG] pdd15 - cannot create HLL 'Object' class

2007-06-28 Thread Patrick R. Michaud
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #43419] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=43419 Creating a HLL class with a name of 'Object' results in Class Object already

<    1   2   3   4   5   6   7   8   >