Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
my %buckets = ( w = { count = 4, scale = 10.5, }, x = { count = 6, scale = 7, }, y = { count = 12, scale = 3, }, z = { count = 18,

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
? No, $arg_for is not modified. And then I get an error telling me 'No such method in class Scalar: kv' in the line for %bucketswarray.kv - $i, $w { Strange. I did this just by looking at synopses, though, so my syntax is probably slightly off. Regards, -- Aristotle Pagaltzis // http

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
it: | | (3,8,2,9,3,8) - 1; # (2,7,1,8,2,7) So I assume my syntax was correct, though it might not have been necessary. I don’t understand one-sided hyper-operators well yet. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Simple Print/Say Question

2006-05-24 Thread A. Pagaltzis
* Ovid [EMAIL PROTECTED] [2006-05-24 18:00]: First off, thanks to Aristotle for clearing some of my thinking. NP, it’s a good way for me to pick up the disparate Perl 6 clues I picked up haphazardly over time, too. In my version of Pugs (6.2.11 (r10390)), that fails for two reasons, both of

Re: 3 Good Reasons...

2006-05-26 Thread A. Pagaltzis
languages” translates to C, so the utility of this is limited; being able to bridge to more languages would be a great boon. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-06-03 Thread A. Pagaltzis
doesn’t look like it can either. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

OT: my wiki syntax is better than yours (was: $1,000 prize for Perl 6 Wiki written in Perl 6)

2006-06-06 Thread A. Pagaltzis
). Table and DL syntax will eventually be added. * Textile does not have paragraphs in table cells. Textile does not support nesting constructs (like code blocks within list items or the like) at all. * Kwiki does not have paragraphs in table cells. Regards, -- Aristotle Pagaltzis // http

OT: wiki engine architecture (was: $1,000 prize for Perl 6 Wiki written in Perl 6)

2006-06-07 Thread A. Pagaltzis
?) Let’s use Perl 6 Grammars to define syntaxes. We are just about to get this mindblowingly awesome tool for parsing; why insist on tieing our feet together and having to hop around like that? Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Conditionally included list elements

2006-06-18 Thread A. Pagaltzis
* Juerd [EMAIL PROTECTED] [2006-06-18 14:10]: pugs my @foo = 1, 2, 3, { 4 if 0 }.(), 5; say @foo.perl [1, 2, 3, 5] bool::true pugs my @foo = 1, 2, 3, { 4 if 1 }.(), 5; say @foo.perl [1, 2, 3, 4, 5] bool::true That’s “conceptually noisy” though… I don’t know if I’d

Re: Conditionally included list elements

2006-06-18 Thread A. Pagaltzis
Hi Stuart, * Stuart Cook [EMAIL PROTECTED] [2006-06-18 15:05]: On 6/18/06, A. Pagaltzis [EMAIL PROTECTED] wrote: Is there a construct in Perl 6 to express this more immediately? Something along the lines of the following would seem ideal: $foo, $bar, ( $baz if $wibble ), $quux How

Re: Conditionally included list elements

2006-06-18 Thread A. Pagaltzis
* Larry Wall [EMAIL PROTECTED] [2006-06-18 19:05]: On Sun, Jun 18, 2006 at 05:18:52PM +0200, A. Pagaltzis wrote: : Maybe TheLarry can enlighten us… :-) We already have the operator you want. It's spelled Cxx?. :-) Nice. :-) How’s it used? S03 doesn’t list it. Regards, -- #Aristotle

Re: Conditionally included list elements

2006-06-18 Thread A. Pagaltzis
* Larry Wall [EMAIL PROTECTED] [2006-06-18 19:40]: On Sun, Jun 18, 2006 at 07:27:57PM +0200, A. Pagaltzis wrote: * Larry Wall [EMAIL PROTECTED] [2006-06-18 19:05]: We already have the operator you want. It's spelled Cxx?. :-) Nice. :-) How’s it used? S03 doesn’t list it. Nope. Doesn't

Re: Announcing the Perl 6 and Parrot wiki workspaces

2006-08-28 Thread A. Pagaltzis
to point to. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Announcing the Perl 6 and Parrot wiki workspaces

2006-08-28 Thread A. Pagaltzis
* Andy Lester [EMAIL PROTECTED] [2006-08-28 21:05]: Try it again. That’s better. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Stubborn coworkers

2006-08-29 Thread A. Pagaltzis
you could straight-facedly call a syntax. Perl 6 is a polar opposite. YOU FORTH LOVE IF HONK THEN, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: CGI Session management (was Re: the CGI.pm in Perl 6)

2006-09-16 Thread A. Pagaltzis
, in all fairness.) Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: the CGI.pm in Perl 6

2006-09-16 Thread A. Pagaltzis
to drag old mistakes along for all eternity just for the sake of their familiarity. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: more on perl5 modules

2006-09-17 Thread A. Pagaltzis
* Richard Hainsworth [EMAIL PROTECTED] [2006-09-17 18:05]: The .can workaround doesnt seem to work for more complex modules. Err, the .can workaround is a way to get past missing sub exports. Methods are never exported. Why are you using the workaround for sub exports on methods. Here is a

Re: perl6 and a multi-interpreted-language example

2006-09-17 Thread A. Pagaltzis
* William Herrera [EMAIL PROTECTED] [2006-09-17 21:50]: perl 5 (9 lines, 353 bytes) use FreezeThaw qw(cmpStr); my @a1_9 = (1 .. 9); my @numbers = sort {rand(10) $a} @a1_9; for (my $steps = 0; cmpStr([EMAIL PROTECTED], [EMAIL PROTECTED]); ++$steps) { print join( , @numbers),

Re: more on perl5 modules

2006-09-18 Thread A. Pagaltzis
based on what I picked up, and completely untested. Debug as needed to fix it. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: the CGI.pm in Perl 6

2006-09-19 Thread A. Pagaltzis
just fine. F.ex., you can pass CGI::Simple objects into HTML::Template for variable prepopuluation and it Just Works because they talk to each other using the CGI.pm `param` protocol. Form handling clearly requires no coupling. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: the CGI.pm in Perl 6

2006-09-20 Thread A. Pagaltzis
? If not, then no, let’s please stick with the `param` protocol. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: xx operator

2006-09-28 Thread A. Pagaltzis
I have the following code: class MyStupidString { method repeatit(Str $string, Int $repeat) { say $string xx $repeat; my $add = $string xx $repeat; say $add; } }; my $obj = MyStupidString.new; $obj.repeatit(---,10);

Re: Regexp: s/at($pos)/$str/ should replace or add?

2007-04-14 Thread A. Pagaltzis
, -- Aristotle Pagaltzis // http://plasmasturm.org/

Guido’ s library porting considerations

2008-03-18 Thread Aristotle Pagaltzis
that makes sense to encourage for 5-to-6 migrations of Perl code as well? Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Converting a Perl 5 pseudo-continuation to Perl 6

2009-01-02 Thread Aristotle Pagaltzis
$write_pid = pid_file_handler( $optionspid_file ); become_daemon(); $write_pid(); # ... } Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Converting a Perl 5 pseudo-continuation to Perl 6

2009-01-26 Thread Aristotle Pagaltzis
* Aristotle Pagaltzis pagalt...@gmx.de [2009-01-02 23:00]: That way, you get this combination: sub pid_file_handler ( $filename ) { # ... top half ... yield; # ... bottom half ... } sub init_server { # ... my $write_pid

Definitions: compiler vs interpreter [was: Rationale for a VM + compiler approach instead of an interpreter?]

2014-12-06 Thread Aristotle Pagaltzis
, and that they are more or less the only real examples of such. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/

Re: Definitions: compiler vs interpreter [was: Rationale for a VM + compiler approach instead of an interpreter?]

2014-12-10 Thread Aristotle Pagaltzis
) that itself interprets another program (the optree), which in turn was compiled from the user Perl program earlier on. Once you stop trying to artificially force everything into a single absolute distinction, the entire debate about which is which vanishes. Regards, -- Aristotle Pagaltzis // http

Re: How to push a hash on an array without flattening it to Pairs?

2015-09-26 Thread Aristotle Pagaltzis
XXX in the following to make it real? $ 6 'my %h = a => 42, b => 666; dd $_ for %h,XXX' Hash %h = {:a(42), :b(666)} :a(42) :b(666) Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>

Re: How to push a hash on an array without flattening it to Pairs?

2015-09-26 Thread Aristotle Pagaltzis
ening? Even Perl 5 is nicer in that situation… -- Aristotle Pagaltzis // <http://plasmasturm.org/>