Request for kp6 compiler architecture review

2007-06-19 Thread Flavio S. Glock
n find me there as 'fglock'. Please share your comments either here on the mailinglist or via IRC. I look forward to your feedback thanks! - Flavio S. Glock (fglock)

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

2006-09-22 Thread Flavio S. Glock
loaded to the old behaviour. Anyway, it's just a thought. thanks! - Flavio S. Glock

Re: Using Rules Today

2006-07-07 Thread Flavio S. Glock
',' (+) [ \\* { return ( $/[0]()*$/{mul}() ) } | <\'\'> ] ' ); Pugs::Compiler::Token->install( 'sum',' [ \\+ { return $/{mul}()+$/{sum}() } | <\'\'> { return $/{mul}() } ] ' ); my $s = shift; my $match = main->sum( $s ); print $match->(); --- - Flavio S. Glock

Re: Using Rules Today

2006-07-03 Thread Flavio S. Glock
precedence. This grammar is compiled to p5 using lrep. - Flavio S. Glock

Re: Do junctions support determining interesections of lists

2006-04-04 Thread Flavio S. Glock
lt; 1 && 2 < 2 > || ... 2 < 1 | 2 < 2 | 2 < 3 which ends up being the same thing after simplification - Flavio S. Glock

Re: Set Theory (Was: Do junctions support determining interesections of lists)

2006-04-04 Thread Flavio S. Glock
plement_next => sub ($x) { $x < 0 ?? 0 !!Inf }, complement_previous => sub ($x) { $x > 0 ?? 0 !! -Inf }, universe => $universe ); - Flavio S. Glock

Re: Binding of list slice elements

2005-11-24 Thread Flavio S. Glock
t;A > draft on the runtime view of how Lazy things (like Arrays) work").) Thanks for reading! - Flavio S. Glock

Re: Lazy lists in Str context

2005-11-23 Thread Flavio S. Glock
efaults. How about allowing reduce() to return a scalar with the same laziness as the list: [EMAIL PROTECTED] - a lazy string if @list is lazy [EMAIL PROTECTED] - a lazy number if @list is lazy It would look like: $foo = substr( [~](1..Inf), 10 ); my $revfoo := reverse $foo; $revfoo ~~ s/foo/bar/g; - Flavio S. Glock

Re: Lazy lists in Str context

2005-11-23 Thread Flavio S. Glock
Juerd: 2005/11/23, Juerd <[EMAIL PROTECTED]>: > Flavio S. Glock skribis 2005-11-23 10:13 (-0200): > > Can we have: > > say 1..Inf; > > It's important, I think, to note that this isn't item context, but list > context. Str list context, but still

Lazy lists in Str context

2005-11-23 Thread Flavio S. Glock
- Flavio S. Glock

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Flavio S. Glock
10 { @a } when $_ < 20 { @b } when $_ < 30 { @c } @d }; - Flavio S. Glock

Re: Classification syntax [Was: Renaming grep]

2005-11-18 Thread Flavio S. Glock
s ) = %hash; zip( @even, @odd ) = 0...; - Flavio S. Glock

Re: Test Case: Complex Numbers

2005-11-18 Thread Flavio S. Glock
d this in #perl6 when I was implementing lazy arrays (in the p5 backend), and most people found it was useless. But I thought I would just ask again :) - Flavio S. Glock

Re: "set" questions -- Re: $object.meta.isa(?) redux

2005-08-10 Thread Flavio S. Glock
I wonder if infinite sets (recurrences) will be supported - then I'll move all(ext/Recurrence, ext/Span, ext/Set-Infinite) to Perl6::Container::Set::Ordered - cool. - Flavio S. Glock 2005/8/10, Dave Whipp <[EMAIL PROTECTED]>: > Luke Palmer wrote: > > > A new development i

Re: lazy list syntax?

2005-07-29 Thread Flavio S. Glock
Just wondering - would 'reverse =$foo' call '$foo.previous()' ? - Flavio 2005/7/29, Aankhen <[EMAIL PROTECTED]>: > On 7/29/05, Flavio S. Glock <[EMAIL PROTECTED]> wrote: > > Is "for =" only for filehandles? I tried: > > No, it's f

Re: lazy list syntax?

2005-07-28 Thread Flavio S. Glock
what you > tried should be working. Is "for =" only for filehandles? I tried: pugs> say for =1 *** cannot cast from VInt 1 to Handle (VHandle) - Flavio S. Glock

lazy list syntax?

2005-07-27 Thread Flavio S. Glock
at this is not fully specified yet, but I'd like to start writing some tests for it. Thanks! - Flavio S. Glock