Re: RPN calculator in Perl 6

2009-06-08 Thread Daniel Ruoso
Em Sáb, 2009-06-06 às 19:51 +0200, Daniel Carrera escreveu: > Daniel Ruoso wrote: > > Yes... that's what wasn't implemented... But now it is ;) > > http://sial.org/pbot/37085 > Close, but... > % perl6 rpn.pl "5 4 + 3 / 5 3 - *" > -6 > That should be

Re: RPN calculator in Perl 6

2009-06-08 Thread Daniel Ruoso
Em Sáb, 2009-06-06 às 18:22 +0200, Daniel Carrera escreveu: > Daniel Ruoso wrote: > > er... that's because I didn't tried to implement it... but it > certainly > > is possible to, just by declaring the :(@a, Num $a) variant... > Well, * is implemented, so I gues

Re: RPN calculator in Perl 6

2009-06-08 Thread Daniel Ruoso
Em Sáb, 2009-06-06 às 14:06 +0200, Daniel Carrera escreveu: > I just wrote a blog post showing how to make a reverse polish notation > calculator in Perl 6. In the process I show some of Perl 6's grammar > features. TIMTOWTDI ;) http://sial.org/pbot/37075 daniel

Re: RPN calculator in Perl 6

2009-06-08 Thread Daniel Ruoso
Em Dom, 2009-06-07 às 00:07 +0200, Daniel Carrera escreveu: > Daniel Ruoso wrote: > >> Are you planning to write a post explaining how your program works? > > Maybe, but if you want to beat me to it, feel free ;) > >> I figure that the explanation is as useful as the e

Re: RPN calculator in Perl 6

2009-06-08 Thread Daniel Ruoso
Em Sáb, 2009-06-06 às 19:45 -0400, Minimiscience escreveu: > my $ls = @a.shift; > my $rs = @a.shift; > To: > my $rs = @a.pop; > my $ls = @a.pop; Thanks... this was already solved in the latest version I sent http://sial.org/pbot/37089 daniel

Re: RPN calculator in Perl 6

2009-06-08 Thread Daniel Ruoso
http://sial.org/pbot/37077 A slightly improved syntax, as per jnthn++ suggestion... Em Sáb, 2009-06-06 às 18:08 +0200, Daniel Carrera escreveu: > Daniel Carrera wrote > > Ok, try again: > > % perl6 rpn.pl "2 2+" > > 2 2 > You can probably fix that with a different split() line. I tried using > i

Re: Logo considerations

2009-03-24 Thread Daniel Ruoso
Em Seg, 2009-03-23 às 21:47 -0700, Darren Duncan escreveu: > If you're going for sciencey or mathey illustrations, then I think its > important > to include something that speaks quantum physics in there, since quantum > superpositions aka Junctions are one of the big central user features that

Re: Logo considerations

2009-03-24 Thread Daniel Ruoso
Em Ter, 2009-03-24 às 09:01 -0300, Daniel Ruoso escreveu: > A zombie cat? While I wasn't really serious about it... <>

Re: Logo considerations

2009-03-24 Thread Daniel Ruoso
Em Ter, 2009-03-24 às 09:17 -0400, Mark J. Reed escreveu: > Are we seeking a logo for Perl 6 in general or Rakudo in particular? > It seems like the latter should be derived from the former, perhaps > with the Parrot logo mixed in. are you suggesting that the cat should be eating a parrot in the r

Coroutines in Perl 6 (Was: Re: Converting a Perl 5 "pseudo-continuation" to Perl 6)

2009-01-02 Thread Daniel Ruoso
Em Qui, 2009-01-01 às 12:34 -0800, Geoffrey Broadwell escreveu: > In the below Perl 5 code, I refactored to pull the two halves of the PID > file handling out of init_server(), but to do so, I had to return a sub > from pid_file_handler() that acted as a "continuation". The syntax is a > bit ugly,

Re: Coroutines in Perl 6 (Was: Re: Converting a Perl 5 "pseudo-continuation" to Perl 6)

2009-01-02 Thread Daniel Ruoso
Em Sex, 2009-01-02 às 08:34 -0300, Daniel Ruoso escreveu: > token routine_def: {...} Actually, I was just looking at STD, and the correct token would be token routine_declarator:coro { } I was also looking at the spec files, and I realized that DRAFT S17 mentions coroutines, but

Re: Perl 6 pos() function?

2008-12-27 Thread Daniel Ruoso
Em Sáb, 2008-12-27 às 04:29 -0800, Ovid escreveu: > I'm trying to replicate the following behavior in Perl 6, but can't > figure out a "natural" way to do this (the task is filling in guessed > letters for a hangman game): > while ( $word =~ /$letter/g ) { > $guess[ pos($word) - 1 ] =

Re: Perl as a better web language ?

2008-12-12 Thread Daniel Ruoso
Em Sex, 2008-12-12 às 12:15 +0100, Carl Mäsak escreveu: > Just as a heads-up, many of us in the November developer group are > thinking quite a bit about web and templating issues. We already have > a (fairly basic) working port of HTML::Template. Some of us have plans > to create a web framework f

Re: Perl 6 fundraising and related topics.

2008-02-22 Thread Daniel Ruoso
Qui, 2008-02-21 às 11:15 -0800, Larry Wall escreveu: > I was already told at the beginning of Perl 6 that nobody wanted my > implementation skills. :) I really wouldn't mind your implementation skills being used in SMOP ;). daniel