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 >

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 on that

Re: Initial feedback on PAST-pm, or Partridge

2006-11-27 Thread Allison Randal
This fragment of a reply is the random bits that didn't make it into other topic-centered replies. Patrick R. Michaud wrote: On Sun, Nov 26, 2006 at 08:30:32PM -0800, Allison Randal wrote: Excellent. Just as a general overall response -- PAST-pm is by no means "finished", so many of the items

Re: Initial feedback on PAST-pm, or Partridge

2006-11-27 Thread Allison Randal
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/ . Definitely an improvement. Hmm... okay, I see what you're going for. Creating subclass of HLLCompiler for

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::E

Re: RFC: Proposal for dynamic binding

2006-11-27 Thread Bob Rogers
From: Allison Randal <[EMAIL PROTECTED]> Date: Sun, 26 Nov 2006 18:14:28 -0800 Bob Rogers wrote: > >- Overall, I want the implementation of dynamic binding to be tied in >more closely with the implementation of globals and lexicals. >Particularly lexicals. They'

Re: Initial feedback on PAST-pm, or Partridge

2006-11-27 Thread Allison Randal
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 was useless a while ago. (Its entire point of existence was as a dummy node

Re: Set-returning .keys (was Re: Smart Matching clarification)

2006-11-27 Thread Darren Duncan
To start off with, I agree with your comment about making Set the main type and making Bag an extension built upon that, as complex is built upon num, etc. At 6:01 PM +0100 11/27/06, TSa wrote: And I still think that it is a good idea to name the set operations after their equivalent boolean c

[svn:perl6-synopsis] r13481 - doc/trunk/design/syn

2006-11-27 Thread audreyt
Author: audreyt Date: Mon Nov 27 17:00:51 2006 New Revision: 13481 Modified: doc/trunk/design/syn/S06.pod Log: * S06: Trivial change from ?? :: to ?? !! Modified: doc/trunk/design/syn/S06.pod == --- doc/trunk/design/

Re: Initial feedback on PAST-pm, or Partridge

2006-11-27 Thread Allison Randal
This fragment of response is about types, layers of abstraction and tracking information as the stages of compilation progress. And, I probably haven't said it enough yet, but the work you've done here is absolutely wonderful, Patrick. There's nothing like a solid chunk of working code to push

[perl #40998] [PATCH] Fix build error on Win32

2006-11-27 Thread Nikolay Ananiev
# New Ticket Created by "Nikolay Ananiev" # Please include the string: [perl #40998] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=40998 > When build_dir contains spaces the build process fails. The fix is to translate bui

[perl #40729] [TODO] Tcl - implement [file extension]

2006-11-27 Thread Nuno Carvalho via RT
Hi all, This patch implements the first version of file ext for tcl. I am not sure if it's supposed to be [file ext] or [file extension], i kept the stub sub name 'ext' and so pushed 'ext' to the options ResizablePMCArray. Feel free to change this. It wasn't possible to test this using the test

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 >

Re: Naming PAST-pm compiler tool chain

2006-11-27 Thread Jonathan Worthington
Allison Randal wrote: How about "Partridge"? It starts with 'p', it's a bird, and brings to mind "Partridge in a Pear Tree" which goes with the theme of tree-based compiler tools (PGE outputs trees, TGE munges trees). We can pretend we named it after Kurt Partridge for his work on ZPL or Andre

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 a

Re: Initial feedback on PAST-pm, or Partridge

2006-11-27 Thread Allison Randal
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::Exp with PAST::Stmts is producing extra temporary variables in the PIR o

Re: Set-returning .keys (was Re: Smart Matching clarification)

2006-11-27 Thread TSa
HaloO, Darren Duncan wrote: I was not meaning to get into implementation issues so much as just to say that all bag values are a superset of all set values. I agree with that. And I end up wanting a nice syntax to create a supertype. This is particularly needed if the Bag type shall be loadabl

Parrot Bug Summary

2006-11-27 Thread Parrot Bug Summary
Parrot Bug Summary http://rt.perl.org/rt3/NoAuth/parrot/Overview.html Generated at Mon Nov 27 14:15:12 2006 GMT --- * Numbers * New Issues * Overview of Open Issues * Ticket Status By Version * Requestors with m

Re: Set-returning .keys (was Re: Smart Matching clarification)

2006-11-27 Thread Darren Duncan
At 10:55 AM +0100 11/27/06, TSa wrote: Seq and Set are *both* more specific or restricted than Bag. So it would make more sense to say 'role Set does Bag' (and 'role Seq does Bag'), not 'role Bag does Set'. For illustrative purposes, replace "Set" with "Int" and "Bag" with "Num". Everything th

Re: Set-returning .keys (was Re: Smart Matching clarification)

2006-11-27 Thread TSa
HaloO, Darren Duncan wrote: To start off, I should clarify that I see little value for the existence of a Bag type except for certain matters of syntactic or semantic brevity, but that those alone can still warrant its existence. I partly agree. The Bag or MultiSet type naturally falls out as

Re: Initial feedback on PAST-pm, or Partridge

2006-11-27 Thread Allison Randal
I'll split my replies into separate threads to make it easier to wrap our brains around individual chunks. Patrick R. Michaud wrote: Clear boundaries between components: (Fuzzy boundaries of abstraction make it difficult to allow for other implementations of the AST/OST or customization of t

[perl #40991] [PATCH] PAST-pm: Unnecessary dummy 'root' rule in POST transformation

2006-11-27 Thread via RT
# New Ticket Created by Allison Randal # Please include the string: [perl #40991] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=40991 > This patch removes the unnecessary dummy 'root' rule from PAST-pm's PAST-to-POST tran

Re: implementation for subset types

2006-11-27 Thread TSa
HaloO, Jonathan Lang wrote: subset Rectangle of class { is Polygon; method width { ... } method height { ... } ... } where { [EMAIL PROTECTED] == 4 && ...} ? Anonymous classes are useful things. This is weird. The Polygon object shall be dynamically classified as a Rectangle de