Re: pdd21 vs. find_global

2006-07-02 Thread Patrick R. Michaud
On Sat, Jul 01, 2006 at 05:10:59PM -0500, Chip Salzenberg wrote: Darn, find_global has collided with pdd21. Currently find_global is prepared to accept a key or a namespace, and distinguishing namespaces from arrays is starting to get just a little too polymorphic for an opcode. Agreed.

Re: [perl #39696] perl6 makefile should relocate

2006-07-03 Thread Patrick R. Michaud
On Mon, Jul 03, 2006 at 07:37:00PM -0700, Will Coleda wrote: # New Ticket Created by Will Coleda # Please include the string: [perl #39696] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=39696 Currently the

Re: a smarter form of whitespace

2006-07-05 Thread Patrick R. Michaud
On Tue, Jul 04, 2006 at 12:57:16PM -0700, Allison Randal wrote: -- token start { ^emptyline*$ } regex emptyline { ^^ $$ \n } token ws { [sp | \t]* } -- The above grammar doesn't have a grammar statement; as a result the regexes are being installed into the '' namespace. If

Re: a smarter form of whitespace

2006-07-06 Thread Patrick R. Michaud
On Thu, Jul 06, 2006 at 12:29:12AM -0700, Allison Randal wrote: $ cat xyz.pir .sub main :main load_bytecode 'PGE.pbc' load_bytecode 'ar.pir' load_bytecode 'dumper.pbc' load_bytecode 'PGE/Dumper.pbc' $P0 = find_global 'XYZ', 'start' $P1 = $P0(\n\n\n\n\n\n\n,

Re: I'm pre-hackathoning at OSCON, not post-hackathoning

2006-07-10 Thread Patrick R. Michaud
On Fri, Jul 07, 2006 at 01:36:06PM -0700, Chip Salzenberg wrote: I'm unable to hang around Portland after Friday afternoon, I'm sorry to report, so Saturday hackathoning will miss me. However, I will be arriving a day _early_ so I'll be in Portland all day Sunday. I understood Patrick to be

Re: Ruby on Parrot

2006-07-10 Thread Patrick R. Michaud
On Fri, Jul 07, 2006 at 10:07:57AM -0600, Kevin Tew wrote: I based the initial PGE grammar for PRuby off of svn://rubyforge.org/var/svn/rubygrammar/grammars/antlr-v3/trunk/ruby.g which is in complete. I'm looking for a BNF style description of the Ruby grammar. Otherwise I will have to

Re: [perl #39776] [BUG] PGE core dump

2006-07-10 Thread Patrick R. Michaud
On Sun, Jul 09, 2006 at 07:15:07PM -0700, Kevin Tew wrote: ../../parrot ../../compilers/pge/pgc.pir --output=lib/pruby_grammar_gen.pir lib/pruby.pg Method 'reduce' not found current instr.: 'parrot;PGE::Exp::Quant;reduce' pc 4358 (compilers/pge/PGE/Exp.pir:402) ... pruby.pg is available

Re: Java Script in Parrot

2006-07-10 Thread Patrick R. Michaud
On Sun, Jul 09, 2006 at 04:11:55PM -0700, chromatic wrote: On Sunday 09 July 2006 02:15, Vishal Soni wrote: I am not an expert on which approach is the way to go: 1. Hack Mozilla's JavaScript excution engine to generate PIR. If there's a fairly direct correspondence between JS bytecode

Re: HLL, perl6

2006-07-10 Thread Patrick R. Michaud
On Mon, Jul 10, 2006 at 12:10:37AM -0400, Will Coleda wrote: I am currently trying to add some PGE to tcl (for the [expr] command, where the optok parsing will be very helpful). While debugging, I noticed that perl6 isn't using the .HLL directive: I suspect the namespace lookup issues

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-10 Thread Patrick R. Michaud
On Sat, Jul 08, 2006 at 01:57:58PM -0700, Chip Salzenberg wrote: Relative is the usual apposite to absolute, but we have a three-way logic here, so appositives don't really work. I think that hll is the best I can think of, and given the existing .HLL directive, its meaning is immediately

Re: Java Script in Parrot

2006-07-10 Thread Patrick R. Michaud
start; I think it could be updated quite quickly. Thanks! Pm On 10 Jul 2006, at 20:47, Patrick R. Michaud wrote: On Sun, Jul 09, 2006 at 04:11:55PM -0700, chromatic wrote: On Sunday 09 July 2006 02:15, Vishal Soni wrote: I am not an expert on which approach is the way to go: 1. Hack

Re: HLL root globals and empty keys (was Re: test of get_namespace opcode)

2006-07-10 Thread Patrick R. Michaud
On Mon, Jul 10, 2006 at 02:53:15PM -0700, Chip Salzenberg wrote: On Mon, Jul 10, 2006 at 03:23:56PM -0500, Patrick R. Michaud wrote: On Sat, Jul 08, 2006 at 01:57:58PM -0700, Chip Salzenberg wrote: Relative is the usual apposite to absolute, but we have a three-way logic here, so

OSCON hackathon

2006-07-10 Thread Patrick R. Michaud
:39 PM, Patrick R. Michaud wrote: Yes, I'm now targeting any hackathoning in Portland to occur on the Sunday before OSCON instead of the Saturday after. I'll be in Monday afternoon and leaving Friday afternoon so nyeah! If a virgin car-pool arrangement works out, I will be travelling

Re: Ruby on Parrot

2006-07-12 Thread Patrick R. Michaud
of the above suggestions make sense or provide any form of improvement in parsing speed. Thanks! Pm Patrick R. Michaud wrote: On Fri, Jul 07, 2006 at 10:07:57AM -0600, Kevin Tew wrote: I based the initial PGE grammar for PRuby off of svn://rubyforge.org/var/svn/rubygrammar/grammars/antlr-v3

Re: [TODO] Implement .loadlib pragma in IMCC

2006-07-12 Thread Patrick R. Michaud
On Wed, Jul 12, 2006 at 10:25:43AM -0700, Allison Randal wrote: It occurs to me, after thinking about it overnight, that the .loadlib directive shouldn't operate at :immediate time, but at :init time, because it's more common to want a library to load when you run the code than to load only

Re: Creating a New Object (was Re: [TODO] Implement .loadlib pragma in IMCC)

2006-07-12 Thread Patrick R. Michaud
On Wed, Jul 12, 2006 at 11:36:56AM -0700, chromatic wrote: On Wednesday 12 July 2006 11:27, Patrick R. Michaud wrote: The perl6 compiler has a custom string type, currently called Perl6Str. What's the canonically correct mechanism for creating an object of that type? $P0 = new

Re: [TODO] Implement .loadlib pragma in IMCC

2006-07-12 Thread Patrick R. Michaud
On Wed, Jul 12, 2006 at 12:18:51PM -0700, Allison Randal wrote: Leopold Toetsch wrote: Well, there was already one very legitimate usage of compile time loadlib, which is now using C.loadlib for that: We certainly need both compile-time and runtime loading of libraries. So, it's just a

Re: [TODO] Implement .loadlib pragma in IMCC

2006-07-12 Thread Patrick R. Michaud
On Wed, Jul 12, 2006 at 03:51:53PM -0400, Bob Rogers wrote: From: Leopold Toetsch [EMAIL PROTECTED] Date: Wed, 12 Jul 2006 21:15:44 +0200 On Wed, Jul 12, 2006 at 01:27:24PM -0500, Patrick R. Michaud wrote: The perl6 compiler has a custom string type, currently called

Re: [perl #39809] PGE crash on parrot;PGE::Exp::Quant;reduce

2006-07-12 Thread Patrick R. Michaud
On Wed, Jul 12, 2006 at 08:04:01PM -0700, Chris Dolan wrote: As simple token containing :i causes PGE to crash with an attempted method call on Undef. Steps to reproduce: 1) Create a grammar file called foo.pg that has one line: token foo { :i a } As I read S05, a modifier has to

suggestions for new pdd21

2006-07-14 Thread Patrick R. Michaud
Allison just updated pdd21, it looks great! Here's a first cut at some suggested changes and wordsmithing to the text. Feel free to adopt, ignore, or discuss any of the suggestions below as you see fit. : A non-nested namespace may appear in Parrot source code as the string : Ca or the key

Re: suggestions for new pdd21

2006-07-17 Thread Patrick R. Michaud
On Mon, Jul 17, 2006 at 09:52:35AM -0700, Allison Randal wrote: : =item get_global : : $P1 = $P2.get_global($S3) : : Retrieve a global variable $P1 from the namespace $P2, with the name : $S3. What's the meaning of global in this context? Some part of me wants this to be simply

Re: FAQ Questions (WAS: ICU advantages? was Re: Problems Installing Parrot)

2006-07-21 Thread Patrick R. Michaud
On Fri, Jul 21, 2006 at 02:12:57PM -0400, Mr. Shawn H. Corey wrote: Chris Dolan wrote: 1. Do I need root privileges to install Parrot? Do I need it for Cage Cleaners? You don't even need root at all. You can build in a local directory and not install. In fact, for those who are

Re: t/compilers/pge/p6regex/01-regex.t test 118 needs ICU?

2006-07-23 Thread Patrick R. Michaud
On Sat, Jul 22, 2006 at 08:54:36PM -0400, Bob Rogers wrote: Content-Description: message body text After building Parrot without ICU, 01-regex.t test 118 fails as follows: t/compilers/pge/p6regex/01-regex. # Failed test (t/compilers/pge/p6regex/01-regex.t at line 59)

Re: [perl #39930] AutoReply: [BUG] concat unicode+iso-8859-1 doesn't work w/o ICU

2006-07-24 Thread Patrick R. Michaud
On Mon, Jul 24, 2006 at 03:57:25PM -0700, Pm wrote: Found this bug while doing stuff --without-icu today... Concatenation of a unicode string with an ASCII string works even if ICU isn't available. Concatenation of a unicode string with a Unicode string works even if ICU isn't available.

Re: [perl #39926] :init attribute (was Re: Implement .loadlib pragma in IMCC)

2006-07-24 Thread Patrick R. Michaud
On Mon, Jul 24, 2006 at 01:03:41PM -0700, Chip Salzenberg wrote: On Wed, Jul 12, 2006 at 10:25:43AM -0700, Allison Randal wrote: It occurs to me, after thinking about it overnight, that the .loadlib directive shouldn't operate at :immediate time, but at :init time, because it's more

Re: PGE/TGE and the future.

2006-08-03 Thread Patrick R. Michaud
On Fri, Jul 28, 2006 at 08:46:50AM -0600, Kevin Tew wrote: I'm seeking information regarding TGE's design goals, aspirations, future plans, etc. I see that Perl6 implements its own version of PAST and POST nodes. Is it possible to share basic PAST and POST nodes and extend them for

Re: [perl #40002] TGE Refactor / Compiler Tools Object

2006-08-03 Thread Patrick R. Michaud
On Fri, Jul 28, 2006 at 08:43:27AM -0700, Kevin Tew wrote: What bullet items will the TGE refactor consist of? Keeping in mind that the TGE refactor really also includes refactoring PAST and POST, we have... * better command-line arg processor, like getopts, but returning a capture Yes. *

Re: [perl #39905] [TODO] TGE - line number reporting.

2006-08-03 Thread Patrick R. Michaud
On Fri, Jul 21, 2006 at 03:03:07PM -0700, Will Coleda wrote: # New Ticket Created by Will Coleda # Please include the string: [perl #39905] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=39905 Once a .tg file

Re: [perl #40002] TGE Refactor / Compiler Tools Object

2006-08-03 Thread Patrick R. Michaud
On Thu, Aug 03, 2006 at 11:21:57AM -0600, Kevin Tew wrote: Patrick R. Michaud via RT wrote: In discussions with Allison at OSCON, I noted that we needed to reconsider the syntax slightly. We don't want TGE to have to know how to parse every language, and it may not be reasonable to expect

Re: [perl #40069] [PGE] value can't be used as a rule name.

2006-08-04 Thread Patrick R. Michaud
On Fri, Aug 04, 2006 at 01:50:19AM -0700, ambs @ cpan. org wrote: # New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #40069] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40069 If we

Re: Grammar question

2006-08-11 Thread Patrick R. Michaud
On Fri, Aug 11, 2006 at 04:43:55PM +0100, Alberto Simões wrote: Hi Today in #parrot a question was done: rule foo { bar* } should be considered: rule foo { ?wsbar*?ws } or rule foo { ?ws(bar?ws)* } In the past we've always gone with the former. If bar is also a rule,

Re: [perl #40187] [PATCH] PGE simple grammar test file

2006-08-17 Thread Patrick R. Michaud
On Thu, Aug 17, 2006 at 01:22:11AM -0700, Nuno Carvalho wrote: After some more discussion on #parrot I've rewrote a very simple test file to evaluate some very simple PGE grammars. [...] Applied, thanks! Pm

Re: [perl #40178] None Must Die

2006-08-17 Thread Patrick R. Michaud
On Thu, Aug 17, 2006 at 09:12:07PM +0200, Leopold Toetsch wrote: A releated change: $S0 = hsh['no_such_key'] used to return an empty STRING*, it'll soon return a NULL STRING*. Just a note (to copy from irc #parrot) -- this will cause a number of things in PGE and perl6 to break, as I

Re: [perl #40178] None Must Die

2006-08-17 Thread Patrick R. Michaud
On Thu, Aug 17, 2006 at 12:55:54PM -0700, Chip Salzenberg wrote: {DESIGNER ALERT - Allison, what think?} On Thu, Aug 17, 2006 at 12:31:11PM -0700, Patrick R. Michaud via RT wrote: I rely on the return empty string behavior. In particular, changing it to return NULL will mean in many

Re: [perl #40178] None Must Die

2006-08-17 Thread Patrick R. Michaud
On Thu, Aug 17, 2006 at 01:11:00PM -0700, jerry gay wrote: On 8/17/06, Chip Salzenberg [EMAIL PROTECTED] wrote: $S0 = default hsh['key'], '' [...] $P0 = new .Undef $P1 = default hsh['key1'], $P0 $P1 = default hsh['key2'], $P0 ... It would work without the lookups

Re: [perl #40210] [TODO] Provide a way for PGE's dump to go to string

2006-08-22 Thread Patrick R. Michaud
On Mon, Aug 21, 2006 at 07:16:46AM -0700, Will Coleda wrote: While the primary use of dump is for immediate debug output (and therefore puts is ok), being able to get at the string it generates is *very* useful for testing. I've refactored the existing 'dump' method into separate

Re: [perl #40319] [PATCH] PGE test file written in PIR revisited

2006-09-11 Thread Patrick R. Michaud
On Mon, Sep 11, 2006 at 08:32:26AM -0700, Nuno Carvalho wrote: Attached to this message you can find a patch to 't/compilers/pge/06-grammar.t'. Many thanks for your excellent work on 06-grammar.t . It's a nice addition. After applying the patch, I get 1 subtest UNEXPECTEDLY SUCCEEDED. I'm

Re: [perl #40319] [PATCH] PGE test file written in PIR revisited

2006-09-13 Thread Patrick R. Michaud
On Mon, Sep 11, 2006 at 08:32:26AM -0700, Nuno Carvalho wrote: Have done some cleannig in the file t/compilers/pge/06-grammar.t, also haded one PMC to have an array of reasons to todo tests. Also haded a new test grammar. Attached to this message you can find a patch to

Re: Motivation for /alpha+/ set Array not Match?

2006-09-22 Thread Patrick R. Michaud
On Fri, Sep 22, 2006 at 10:22:52PM +0800, Audrey Tang wrote: Moreover: /foo bar bar foo+/ should set $foo to an Array with two Match elements, the first being a simple match, and the second has multiple positional submatches. The thinking behind the separate treatment is that in a

Re: special named assertions

2006-09-27 Thread Patrick R. Michaud
On Wed, Sep 27, 2006 at 11:59:32AM -0700, David Brunton wrote: A quick scan of S05 reveals definitions for these seven special named assertions: [...] I don't think that '...' or ... are really named assertions. I think that !xyz (as well as +xyz and -xyz) are simply special forms of the

Re: special named assertions

2006-09-27 Thread Patrick R. Michaud
receive special treatment in the engine. Thanks, Pm -- Original message -- From: Patrick R. Michaud [EMAIL PROTECTED] On Wed, Sep 27, 2006 at 11:59:32AM -0700, David Brunton wrote: A quick scan of S05 reveals definitions for these seven special named

Re: FYI compiling PIR function calls

2006-09-28 Thread Patrick R. Michaud
On Thu, Sep 28, 2006 at 11:59:52AM -0700, chromatic wrote: On Thursday 28 September 2006 11:25, Allison Randal wrote: obj.{bar}() # a string method name obj.{$S1}() I'm not sure what's meant by a string method name above, but I'd look at it as: .local string abc

Re: Null PMC access while parsing javascript

2006-10-11 Thread Patrick R. Michaud
On Wed, Oct 11, 2006 at 10:56:39PM +0200, Mehmet Yavuz Selim Soyturk wrote: I have rewritten the grammar. There are some problems though. - I don't know how to express thinks like: an identifier is [a..zA..Z_$]*, but not a keyword. Something like: rule identifier {!keyword[a..zA..Z_$]*}

Re: Null PMC access while parsing javascript

2006-10-12 Thread Patrick R. Michaud
On Wed, Oct 11, 2006 at 04:34:17PM -0500, Patrick R. Michaud wrote: On Wed, Oct 11, 2006 at 10:56:39PM +0200, Mehmet Yavuz Selim Soyturk wrote: I have rewritten the grammar. There are some problems though. - I don't know how to express thinks like: an identifier is [a..zA..Z_

classnames and HLL namespaces -- help!

2006-10-19 Thread Patrick R. Michaud
First, my apologies to Chip for this message -- I know he's probably already answered this question for me a couple of times but I've either forgotten, I'm too dense, or I just can't find the answers now that I need them. So, with appropriate contrition for asking yet again... After the changes

Re: classnames and HLL namespaces -- help!

2006-10-19 Thread Patrick R. Michaud
On Thu, Oct 19, 2006 at 10:01:29PM -0400, Matt Diephouse wrote: Patrick R. Michaud [EMAIL PROTECTED] wrote: According to pdd21, each HLL gets its own hll_namespace. PGE is really a form of HLL compiler, so it should have its own hll_namespace, instead of using parrot's hll namespace

Re: Re: classnames and HLL namespaces -- help!

2006-10-19 Thread Patrick R. Michaud
On Thu, Oct 19, 2006 at 11:20:56PM -0400, Matt Diephouse wrote: Patrick R. Michaud [EMAIL PROTECTED] wrote: On Thu, Oct 19, 2006 at 10:01:29PM -0400, Matt Diephouse wrote: ATM, all classes go into the 'parrot' HLL. [...] I'm pretty sure that HLL classes will have to go into the HLL's root

Re: classnames and HLL namespaces -- help!

2006-10-22 Thread Patrick R. Michaud
On Sat, Oct 21, 2006 at 07:10:21PM +0200, Leopold Toetsch wrote: Am Donnerstag, 19. Oktober 2006 23:19 schrieb Patrick R. Michaud:     .HLL 'pge', ''     .sub __onload :load         $P0 = newclass 'Exp' [...]         $P0 = subclass 'Exp', 'Closure'         # ...     .end

Re: classnames and HLL namespaces -- help!

2006-10-23 Thread Patrick R. Michaud
On Sun, Oct 22, 2006 at 11:38:10PM +0200, Leopold Toetsch wrote: Am Sonntag, 22. Oktober 2006 20:56 schrieb Patrick R. Michaud: I strongly disagree.  I don't think that a subclass should have to be named as a sub-namespace of its parent class. Namespace and classes are currently totally

Re: OO Requirements [was Re: classnames and HLL namespaces -- help!]

2006-10-23 Thread Patrick R. Michaud
On Mon, Oct 23, 2006 at 05:49:08PM +0100, Jonathan Worthington wrote: Allison Randal wrote: I think the object model needs a thorough going over in general Yup. It's on the list right after I/O, threads, and events. ... Ruby is a serious OO language, but it's not finished yet. For that

Re: [perl #40443] Separate vtable functions from methods (using :vtable)

2006-10-26 Thread Patrick R. Michaud
On Wed, Oct 25, 2006 at 11:02:59PM -0700, Allison Randal wrote: [EMAIL PROTECTED] via RT wrote: On Sun Oct 01 16:22:10 2006, mdiep wrote: At the OSCON 2006 Hackathon, it was decided that we should separate vtables from methods and add a new :vtable label for PIR subs to mark them as

Re: Anyone relying on objects stringifying to class names?

2006-10-28 Thread Patrick R. Michaud
On Sat, Oct 28, 2006 at 06:50:05PM +0100, Jonathan Worthington wrote: So, I want to get rid of this and allow this v-table method to just dispatch to a user implementation or a fallback. But before I do that, I wanted to check if anyone is relying on the behavior? I'd really rather not

set_pmc_keyed_int delegates to set_pmc_keyed...?

2006-11-04 Thread Patrick R. Michaud
Yesterday and today I've been working on a Capture PMC type for Parrot, and I'm running into all sorts of interesting issues when dealing with subclassing. (For those who aren't familiar with Captures, a Capture is essentially a container object that has both indexed (array) and keyed (hash)

Re: set_pmc_keyed_int delegates to set_pmc_keyed...?

2006-11-05 Thread Patrick R. Michaud
On Sat, Nov 04, 2006 at 05:18:22PM +0100, Leopold Toetsch wrote: Am Samstag, 4. November 2006 16:17 schrieb Patrick R. Michaud: Because 'Match' doesn't define its own set_integer_keyed_int vtable entry, it ought to be inheriting the one from Capture. But unfortunately, the default.pmc

Re: set_pmc_keyed_int delegates to set_pmc_keyed...?

2006-11-06 Thread Patrick R. Michaud
On Sun, Nov 05, 2006 at 05:41:12PM +0100, Leopold Toetsch wrote: Am Sonntag, 5. November 2006 15:22 schrieb Patrick R. Michaud: So, I can create the missing cases, but what do I put for the body of the method to get to the corresponding method of Capture?     .namespace [ 'Match

Re: Anyone relying on objects stringifying to class names?

2006-11-06 Thread Patrick R. Michaud
On Sat, Nov 04, 2006 at 08:46:37PM +, Jonathan Worthington wrote: Jonathan Worthington wrote: At the moment, if you have some ParrotObject instance, say foo, and do something like: $S0 = foo Then $S0 will contain the name of the class. =item CSTRING *name() Erm, what the heck

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

2006-11-07 Thread Patrick R. Michaud
On Wed, Nov 01, 2006 at 05:53:24PM -0800, Jonathan Worthington via RT wrote: (sorry for empty reply earlier) Patrick R.Michaud (via RT) wrote: The new :vtable pragma doesn't seem to work when used on methods of subclasses of core classes. Here's a quick sample (I'm also adding this test

How do I associate methods with a compiler?

2006-11-08 Thread Patrick R. Michaud
Historically Parrot has considered a compiler to be an invokable subroutine, such that the canonical sequence for compiling something is: .local string perl6_source .local pmc perl6_compiler perl6_compiler = compreg 'Perl6' $P0 = perl6_compiler(perl6_source) However,

Re: How do I associate methods with a compiler?

2006-11-09 Thread Patrick R. Michaud
On Thu, Nov 09, 2006 at 09:55:05AM -0200, Adriano Rodrigues wrote: On 11/9/06, Patrick R. Michaud [EMAIL PROTECTED] wrote: Opinions welcome. Personally I think I favor the a compiler is an object with a 'compile' method model, and that Ccompreg gives us back a compiler object as opposed

Re: [perl #40806] [BUG] IMCC - embedded source locations (#line nnn file.pir)

2006-11-10 Thread Patrick R. Michaud
On Fri, Nov 10, 2006 at 08:23:56PM -0800, Chip Salzenberg via RT wrote: This *may* be a non-bug resulting from the conflation of PIR source file/line and HLL source file/line. Or it may indicate the need for separate setfile/setline [HLL line] and #line num file [PIR line]. I think it's

Re: [svn:parrot] r15517 - in trunk: . src

2006-11-13 Thread Patrick R. Michaud
On Mon, Nov 13, 2006 at 07:33:18PM -0800, [EMAIL PROTECTED] wrote: Log: Fix size mismatch errors, at least on Linux/PPC. If this breaks other platforms, there's a deeper bug somewhere and we need to rethink t/tools/pbc_merge.t for the release. Alas, it seems to break Linux/x86_64 --

Re: [svn:parrot] r15517 - in trunk: . src

2006-11-14 Thread Patrick R. Michaud
On Mon, Nov 13, 2006 at 10:27:19PM -0800, chromatic wrote: On Monday 13 November 2006 21:49, Patrick R. Michaud wrote: On Mon, Nov 13, 2006 at 07:33:18PM -0800, [EMAIL PROTECTED] wrote: Log: Fix size mismatch errors, at least on Linux/PPC. If this breaks other platforms, there's

Re: How do I associate methods with a compiler?

2006-11-14 Thread Patrick R. Michaud
On 11/9/06, Patrick R. Michaud [EMAIL PROTECTED] wrote: Opinions welcome. Personally I think I favor the a compiler is an object with a 'compile' method model, and that Ccompreg gives us back a compiler object as opposed to a subroutine-like thing. For the record, it was decided (Allison

Re: How do I associate methods with a compiler?

2006-11-14 Thread Patrick R. Michaud
On Tue, Nov 14, 2006 at 08:52:47PM -0800, Allison Randal wrote: Also for the record from the weekly meeting (which was actually today, just a very long today): Yes, compilers are objects and compilation is a method call. The compiler for TGE tree grammars is implemented this way, and it's

Re: [perl #40968] [BUG] :multi doesn't seem to work right

2006-11-23 Thread Patrick R. Michaud
On Wed, Nov 22, 2006 at 11:20:58PM +0100, Leopold Toetsch wrote: Am Mittwoch, 22. November 2006 21:03 schrieb Leopold Toetsch: Am Mittwoch, 22. November 2006 18:03 schrieb Patrick R.Michaud: Is this a bug (I think it is), or does the underscore in :multi mean something other than any

Re: [perl #40646] [TODO] PGE - add tests for alpha+[_], alpha-[Jj], etc.

2006-11-24 Thread Patrick R. Michaud
On Thu, Nov 23, 2006 at 03:09:11PM -0800, Nuno Carvalho via RT wrote: I've tried to add some tests to the rx_subrule with some extras sensitive cases, but i'm failling two tests that i think that should pass. I have attached a patch that adds new tests. The ones requiring attention are the

Re: Initial feedback on PAST-pm, or Partridge

2006-11-26 Thread Patrick R. Michaud
On Sun, Nov 26, 2006 at 08:30:32PM -0800, Allison Randal wrote: I had to poke into the guts of HLLCompiler, the new PAST, and the new POST a fair bit in the process of getting Punie to work with them, so my comments here are a mixture of user experience and implementation details. I've

Re: Initial feedback on PAST-pm, or Partridge

2006-11-26 Thread Patrick R. Michaud
On Sun, Nov 26, 2006 at 08:30:32PM -0800, Allison Randal wrote: Overall, the POST implementation is usable and I really like the new HLL compiler module. I've got Punie working with the new toolchain to the point that it's generating valid PIR code for many low-level constructs, but some of

Re: Initial feedback on PAST-pm, or Partridge

2006-11-27 Thread Patrick R. Michaud
On Mon, Nov 27, 2006 at 10:52:13AM -0800, Allison Randal wrote: Patrick R. Michaud wrote: Also, out of curiosity, which high-level constructs in punie aren't working? What I've found so far are: - The top-level AST structure is off: my temporary hack to replace PAST::Stmt and PAST

Re: Initial feedback on PAST-pm, or Partridge

2006-11-27 Thread Patrick R. Michaud
On Mon, Nov 27, 2006 at 01:13:52AM -0800, Allison Randal wrote: .sub '__onload' :load :init # load your modules $P1 = new [ 'HLLCompiler' ] $P1.'init'('language'='punie', 'parse_grammar'='Punie::Parser', 'ast_grammar'='Punie::AST::Grammar') .end .sub 'main' :main .param

Re: Initial feedback on PAST-pm, or Partridge

2006-11-27 Thread Patrick R. Michaud
On Mon, Nov 27, 2006 at 05:28:59PM -0800, Allison Randal wrote: Patrick R. Michaud wrote: I'll gladly add PAST::Stmt and PAST::Exp nodes if that's at all useful. Just because they're there doesn't mean a compiler has to use them. :-) Well, I came to the conclusion that PAST::Exp

Re: Initial feedback on PAST-pm, or Partridge

2006-11-27 Thread Patrick R. Michaud
On Mon, Nov 27, 2006 at 09:20:08PM -0800, Allison Randal wrote: Patrick R. Michaud wrote: Now implemented in r15882 as shown above, sans the helper 'init' method (which I'll add later tonight). Examples are in languages/perl6/ and languages/abc/ . So, with a thumbs up

Re: Initial feedback on PAST-pm, or Partridge

2006-11-27 Thread Patrick R. Michaud
On Mon, Nov 27, 2006 at 10:13:21PM -0800, Allison Randal wrote: This fragment of a reply is the random bits that didn't make it into other topic-centered replies. ...and some quick responses before turning in for the night... Currently Parrot uses '__init' as the method for initializing new

Re: [perl #40999] Latest version of parrot doesn't make test

2006-11-28 Thread Patrick R. Michaud
On Mon, Nov 27, 2006 at 02:59:45PM -0800, Bob Wilkinson wrote: I have recently installed parrot from svn, but get errors during make. I see the same errors on a x86 running unstable Debian, and a sparc running Gentoo. typing perl Configure.pl make ends with: [...] gmake -C

Re: [perl #41000] Can't compile simple parrot example with latest stable parrot

2006-11-28 Thread Patrick R. Michaud
On Mon, Nov 27, 2006 at 03:15:17PM -0800, Bob Wilkinson wrote: # New Ticket Created by Bob Wilkinson # Please include the string: [perl #41000] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=41000 My second 10

Re: [perl #41014] [PATCH] Autobox Native Types for MultiSubs

2006-11-29 Thread Patrick R. Michaud
On Wed, Nov 29, 2006 at 08:49:27PM +0100, Leopold Toetsch wrote: Am Mittwoch, 29. November 2006 05:50 schrieb Matt Diephouse: It also means that string, int, and float no longer work as MMD   types -- you can't distinguish between native types and PMCs. I think   this is the right way to go

Re: Re: [perl #41014] [PATCH] Autobox Native Types for MultiSubs

2006-11-29 Thread Patrick R. Michaud
On Wed, Nov 29, 2006 at 04:43:59PM -0500, Matt Diephouse wrote: Leopold Toetsch [EMAIL PROTECTED] wrote: Am Mittwoch, 29. November 2006 05:50 schrieb Matt Diephouse: It also means that string, int, and float no longer work as MMD types -- you can't distinguish between native types and PMCs.

Re: Initial feedback on PAST-pm, or Partridge

2006-12-07 Thread Patrick R. Michaud
On Wed, Dec 06, 2006 at 10:33:45PM -0800, Allison Randal wrote: - In PGE grammars, what is the { ... } at the end of every proto declaration supposed to do? [...] But in the end, I didn't allow simple semicolon terminators simply because it wasn't valid Perl 6 syntax, and in many cases I

p6 variable binding in Parrot

2006-12-08 Thread Patrick R. Michaud
Does anyone have any suggestions about what sort of PIR code and/or PMCs we need to be able to do make the following Perl 6 code work...? my @a; @a[4] = 'Hello'; my $b := @a[4]; say $b;# says Hello @a[4] = [1, 2]; say $b;# says 1 2

Re: p6 variable binding in Parrot

2006-12-08 Thread Patrick R. Michaud
On Fri, Dec 08, 2006 at 05:05:00PM -0500, Matt Diephouse wrote: Patrick R. Michaud [EMAIL PROTECTED] wrote: Does anyone have any suggestions about what sort of PIR code and/or PMCs we need to be able to do make the following Perl 6 code work...? Sure. I think Tcl handles this pretty nicely

Re: Re: p6 variable binding in Parrot

2006-12-09 Thread Patrick R. Michaud
On Sat, Dec 09, 2006 at 12:59:35AM -0500, Matt Diephouse wrote: Patrick R. Michaud [EMAIL PROTECTED] wrote: On Fri, Dec 08, 2006 at 05:05:00PM -0500, Matt Diephouse wrote: Sure. I think Tcl handles this pretty nicely at the moment (although Leo disagrees - he likes the Ref PMC route

Re: Past-pm printing the return value of the main routine

2006-12-12 Thread Patrick R. Michaud
On Tue, Dec 12, 2006 at 09:47:16AM -0800, Allison Randal wrote: In Punie or Perl 6, when I execute a simple statement: print 2; It prints 21. This is because a) the return value of a successful print is 1, b) the main routine is returning the value of the last statement (note this is

Re: Past-pm basic string types

2006-12-12 Thread Patrick R. Michaud
On Tue, Dec 12, 2006 at 09:43:39AM -0800, Allison Randal wrote: Patrick, what's the best way to pass-through string types from a compiler to Parrot without doing full string processing? To pass the current tests, Punie only needs Parrot's single- and double-quoted strings, but Past-pm is

Re: Past-pm basic string types

2006-12-13 Thread Patrick R. Michaud
On Tue, Dec 12, 2006 at 01:57:20PM -0800, Allison Randal wrote: Patrick R. Michaud wrote: I can modify PAST-pm to provide a send exactly this string to PIR option for PAST::Val. Yes, good idea for the simple case. After sleeping on it overnight, I realized that PAST-pm already has

Re: [perl #39997] [PATCH] PGE P5 Test Cleanup

2006-12-16 Thread Patrick R. Michaud
On Sat, Dec 16, 2006 at 11:37:48AM -0800, Paul Cochrane via RT wrote: Did you get around to opening the tickets you mentioned here? If so, I think we can close this ticket. If not, do you want to sketch out the ideas for the tickets you want opened? I can then go through the donkey work

Re: [perl #40361] [PATCH] #40278 [CAGE] perl coding standards coda. (cont.)

2006-12-19 Thread Patrick R. Michaud
On Tue, Dec 19, 2006 at 05:20:06PM +0800, Lee Duhem wrote: Allison wrote: My vote is on removing all emacs and vim settings from our source code files. and so you can get really bad code appearance. I'm curious, why is that? We're already discouraging (if not disallowing) hard tabs in the

Re: More Undef vs. Null...

2006-12-20 Thread Patrick R. Michaud
On Wed, Dec 20, 2006 at 10:59:34PM +, Jonathan Worthington wrote: Leopold Toetsch wrote: Am Mittwoch, 20. Dezember 2006 05:59 schrieb Will Coleda: Are Hash and Array supposed to have different results on unset keys? The .Undefs returned by Arrays are IMHO and unfortunate

Re: Punie ported to PAST-pm

2007-01-02 Thread Patrick R. Michaud
On Tue, Jan 02, 2007 at 12:01:54AM -0800, Allison Randal wrote: - I ran into one bit of strangeness with the assignment operator on simple strings (it was generating an 'assign' opcode with 3 arguments for the source code $x = 'test'). I solved it by setting 'pasttype' to 'assign', but now

Re: [perl #41214] [CAGE]: files from 'make languages-test' survive 'make clean'

2007-01-08 Thread Patrick R. Michaud
On Mon, Jan 08, 2007 at 08:49:56PM +, Nicholas Clark wrote: On Mon, Jan 08, 2007 at 12:46:09PM -0800, Patrick R. Michaud wrote: (Perhaps more better would be for the test program(s) to clean up the temporary files when the test is finished. :-) Although you can't be sure that test

should we eliminate examples/japh (RT #37068)?

2007-01-13 Thread Patrick R. Michaud
As part of bugday Bernhard fixed up a couple of japh tests (examples/japh/) that were using the now obsolete 'pack' opcode. This helps with RT #37068, but still doesn't resolve it entirely as there are other japh examples that don't work. In looking through the remaining japh examples, most of

Re: [perl #41237] [TODO] PMC Class name IDs will require a dot in front

2007-01-15 Thread Patrick R. Michaud
On Sun, Jan 14, 2007 at 11:58:10PM -0500, Matt Diephouse wrote: Allison Randal via RT [EMAIL PROTECTED] wrote: PMC Class name IDs ... will require a dot in front My preference is to eliminate the dot in classname IDs. Lodge your objections now, before it's made fact in 0.4.9. Allison

Re: Major bullet biting on | vs || within regex

2007-01-16 Thread Patrick R. Michaud
On Tue, Jan 16, 2007 at 10:41:03AM -0800, Larry Wall wrote: Note, in case you don't read synopsis checkins: the previous checkin majorly changes the semantics of | within regex to support required longest-token matching semantics rather than left-to-right matching. This is nearly on the same

Re: [perl #41364] [PATCH] Fixed object vtable method overrides in PIR

2007-01-28 Thread Patrick R. Michaud
On Sat, Jan 27, 2007 at 11:39:16AM -0800, Alek Storm wrote: Also, though this is more of a language design question, shouldn't we deprecate the double-underscore method of overriding, since we now have the :vtable flag? Just a note that we cannot deprecate the double-underscore method of

Re: Porting parrot on PDA -- work in progress

2007-02-13 Thread Patrick R. Michaud
On Tue, Feb 13, 2007 at 08:28:38PM +0100, Aldo Calpini wrote: I've managed to build parrot for the PocketPC. yes, really. I would appreciate any feedback :-) Feedback: Truly amazing, and terrific work. Aldo++ Pm

Re: PAST-pm: only PAST::Block allowed at root of PAST

2007-02-14 Thread Patrick R. Michaud
On Wed, Feb 14, 2007 at 11:49:54AM +0100, Klaas-Jan Stol wrote: hello, It was discussed before, but I'm not sure what was the result; PAST-pm only allows a PAST::Block node to be returned from transform (ROOT). However, in languages/PIR, the top level construct is a compilation unit,

Re: in PIR, a BigInt is turning into a string against my will -- what am I doing wrong?

2007-02-17 Thread Patrick R. Michaud
On Sat, Feb 17, 2007 at 09:21:45AM -0800, Eric Hanchrow wrote: (This is with parrot built from the subversion trunk, revision 16999) Here's a bit of PIR that demonstrates my problem: .sub 'main' :main load_bytecode 'dumper.pir' .local ResizablePMCArray fields

Monthly release moved to Wednesday

2007-02-19 Thread Patrick R. Michaud
Just wanted to make sure everyone was aware of something that was briefly mentioned during bug day on Saturday... A last-minute scheduling change means that I'm having to make a trip out of town tomorrow (Tuesday), which means that I'll be cutting the Parrot release on Wednesday instead of

Re: [perl #41386] MANIFEST must die.

2007-02-19 Thread Patrick R. Michaud
On Sun, Feb 18, 2007 at 08:38:17PM -0800, jerry gay wrote: For the moment, disabling configure's manicheck by default would be a good start. i don't think manifest checking should be disabled until we have a replacement solution in place that makes sure the manifest is checked before

Re: Q on: #37542: [TODO] core - document behavior of multiple :load subpragmas in same compilation unit

2007-02-19 Thread Patrick R. Michaud
On Mon, Feb 19, 2007 at 05:39:01PM +0100, Klaas-Jan Stol wrote: Ticket: #37542: [TODO] core - document behavior of multiple :load subpragmas in same compilation unit : the behavior of multiple subroutines marked with the ':load' subpragma : in the same compilation unit is currently

Preliminary notes for 0.4.9 release

2007-02-21 Thread Patrick R. Michaud
Hello, all- I've been working on the 0.4.9 release; so far things seem to be going reasonably well. Many thanks to Jerry Gay and others who have come before me for cleaning up the release process and making sure the various NEWS/STATUS docs are up to date! It's really quite straightforward now.

  1   2   3   4   5   6   7   8   9   10   >