Re: Parrot and PGE will save the day (was Re: "as if" [Was: Selective reuse of storage in &bless.] )

2006-01-21 Thread Audrey Tang (autrijus)
On 1/21/06, Rob Kinyon <[EMAIL PROTECTED]> wrote: > I'm making a few assumptions here: > 1) Since PGE isn't part of Perl6 (because it's written in PIR), it > can be used as the parser/lexer/etc. for any language, not just Perl6. Rules, like regexes, are essentially language neutral. So that's

perl6-all@perl.org

2006-01-20 Thread Audrey Tang (autrijus)
On 1/21/06, Larry Wall <[EMAIL PROTECTED]> wrote: > But maybe all this is already possible in the current setup, if > > role ObjectFakeHash does Hash {...} > role Object does ObjectFakeHash {...} > class Hash does Hash {...} Yes, I think that's the way to go, as well as :coerce for exp

Re: Class methods vs. Instance methods

2006-01-19 Thread Audrey Tang (autrijus)
On 1/19/06, Matt Fowles <[EMAIL PROTECTED]> wrote: > Could you provide a concrete example of the advantage of this approach > please? Failing that can you try and expand on your gut feeling a > bit? May or may not be of use, but Larry's view sounds a bit like reconcilling the (again considered ir

Peforming "newclosure" at compile time?

2006-01-15 Thread Audrey Tang (autrijus)
I'm glad to report the soon-to-be-released Pugs 6.2.11 now targets Parrot with the new calling convention and lexical pad syntax. However, the explicit demand on a "newclosure" runtime call makes package-scoped subroutines awkward to generate and use -- please see this journal entry for details:

Context and coercion.

2006-01-04 Thread Audrey Tang (autrijus)
(More brain dump.) "Context" is implemented as type coercion calls, implicitly inserted by the compiler. There are five types used in these calls. The "..." below denote the positions where these contexts typically occur, using common Perl 5 operations as examples: Void # ...;

Dereference and assignment semantics.

2006-01-03 Thread Audrey Tang (autrijus)
This is a brain-dump of how container types and contexts work in the new Pugs runcore. Assuming everything other than an explicit method call is subject to MMD, we have this desugaring: # Sugared syntax ${$x} = 5; # Desugared syntax &infix:<=>(&circumfix:<${ }>($x), 5); It's str

This week's Pugs-Rule developments.

2005-12-31 Thread Audrey Tang (autrijus)
Perl 6 Rules implementations in Haskell and Perl 6. A 20-minutes hack had paid off handsomely: In 33 lines, we have a fast, pure Haskell implementation of basic Perl 6 Rules support. Adding support for each new construct should take only 2 lines -- one at the OpTable precedence parser below to

This week's Pugs-PIL developments.

2005-12-31 Thread Audrey Tang (autrijus)
(To make the summarizer's life easier, here is a repost of http://pugs.blogs.com/pugs/pil/ in the past week; I'll also post another one on Pugs-Rule developments.) Roles support in PIL.Native runtime. Almost two months ago when I was in .nl, Stevan and I worked out the ObjectSpace bootstrappi

Journal moved.

2005-12-27 Thread Audrey Tang (autrijus)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This is just a heads-up for people tracking my use.perl.org journal -- the Pugs journal is now moved to http://pugs.blogs.com/. I'd like to thank to Six Apart for their kind offer in sponsoring the hosting. I'm slowly catching up writing about new dev

1:N mapping from registers to names

2005-12-16 Thread Audrey Tang (autrijus)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt Diephouse wrote: | While working out some bugs in ParTcl I came across something roughly | equivalent to the following Perl code (I'm using Perl because I | believe more people know Perl than Tcl, at least on this list): | | #!/usr/bin/perl |