Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-07-05

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:45 Ara5n joined #perl6
00:54 meppl good night
01:43 araujo joined #perl6
01:57 Eevee joined #perl6
02:02 alanhaggai joined #perl6
02:03 stevan_ joined #perl6
02:22 silug joined #perl6
02:33 a-jin1 joined #perl6
02:33 a-jin1 left #perl6
02:37 xinming joined #perl6
02:57 xinming_ joined #perl6
02:57 Alias_ joined #perl6
03:02 elmex_ joined #perl6
03:05 alester_ joined #perl6
03:06 alanhaggai_ joined #perl6
03:11 xinming joined #perl6
03:19 Ara4n joined #perl6
03:21 bacek pugs: sub twice($a) { sub { 2*$a} }; my $t = twice;
03:21 p6eval pugs: OUTPUT[*** ␤    Unexpected "$t"␤    expecting "=", context, ":" or "("␤    at /tmp/HQqGnCOxrn line 1, column 35␤]
03:21 bacek pugs: sub twice($a) { sub { 2*$a}; }; my $t = twice;
03:21 p6eval pugs: OUTPUT[*** ␤    Unexpected "$t"␤    expecting "=", context, ":" or "("␤    at /tmp/r0sjMRwvW7 line 1, column 36␤]
03:21 bacek pugs: sub twice($a) { sub { 2*$a}; }; say twice(5);
03:21 p6eval pugs: OUTPUT[<SubRoutine(<anon>)>␤]
03:22 bacek pugs: sub twice($a) { sub { 2*$a}; }; say twice(5)->();
03:22 p6eval pugs: OUTPUT[*** ␤    Unexpected "->();"␤    expecting ":", term postfix, operator or ","␤    at /tmp/QkbPxRQpru line 1, column 45␤]
03:22 bacek pugs: sub twice($a) { sub { 2*$a}; }; say twice(5).();
03:22 p6eval pugs: OUTPUT[10␤]
03:22 bacek pugs: sub twice($a) { sub { 2*$a}; }; say twice.(5);
03:22 p6eval pugs: OUTPUT[*** Cannot cast from VUndef to Pugs.AST.Internals.VCode (VCode)␤    at /tmp/tn98aF191L line 1, column 37-46␤]
03:22 bacek pugs: sub twice($a) { sub { 2*$a}; }; say twice().(5);
03:22 p6eval pugs: OUTPUT[*** No compatible multi variant found: "&twice"␤    at /tmp/kWwQ6AAVOE line 1, column 37-48␤]
03:23 bacek pugs: sub twice($a) { sub { 2*$a}; }; say twice(5).();
03:23 p6eval pugs: OUTPUT[10␤]
03:23 bacek rakudo: sub twice($a) { sub { 2*$a}; }; say twice(5).();
03:23 p6eval rakudo 29067: OUTPUT[Statement not terminated properly at line 1, near ".();"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤]
03:23 bacek rakudo: sub twice($a) { sub { 2*$a}; }; say twice(5);
03:23 p6eval rakudo 29067: OUTPUT[_block22␤]
03:24 bacek pugs: sub twice($a) { sub { 2*$a}; }; my $t = twice(5);
03:24 p6eval pugs: RESULT[\sub :(@_) "$_" := "Scalar" #<Scalar:0xb7a529dd>␤          "@_" := "Array" #<Array:0xb7a529d5>␤          "&?ROUTINE" := "Sub" #<Sub:0xb7a062ed>␤          "&?BLOCK" := "Sub" #<Sub:0xb7a062ed> {, "$_" := "Scalar" #<Scalar:0xb7c47f8d>␤                                                ...
03:24 bacek pugs: sub twice($a) { sub { 2*$a}; }; my $t = twice(5); say $t();
03:24 p6eval pugs: OUTPUT[10␤]
03:24 bacek rakudo: sub twice($a) { sub { 2*$a}; }; my $t = twice(5); say $t();
03:24 p6eval rakudo 29067: OUTPUT[10␤]
03:24 bacek pugs: sub twice($a) { sub { 2*$a}; }; my $t = twice; say $t();
03:24 p6eval pugs: OUTPUT[*** ␤    Unexpected "$t"␤    expecting "=", context, ":" or "("␤    at /tmp/SbGCncpbok line 1, column 36␤]
04:17 bacek perl6: sub times($a,$b) { $a * $b; }; sub divide($a,$b) { $a / $b; } sub make_op($op) { sub($a,$b) { $op($a,$b) } }; my $t = make_op(&times); say $t(21,2); my $div = make_op(&divide); say $div(42,2);
04:17 p6eval elf 21228: OUTPUT[Parse error in: /tmp/qR2i1rXHIF␤panic at line 1 column 31 (pos 31): Can't understand next input--giving up␤WHERE: ub times($a,$b) { $a * $b; }; sub divide($a,$b) { $a / $b; }␤WHERE:                              /\<-- HERE␤  STD_red/prelude.rb:99:in `panic'␤  STD_red/std.rb:76:in
04:17 p6eval .....
04:17 p6eval ..kp6 21228: OUTPUT[error in Block at compiled/perl5-kp6-mp6/lib/KindaPerl6/Grammar/Sub.pm line 362, <> line 1.␤*** Syntax Error in sub '': missing closing curly bracket ␤]
04:17 p6eval ..pugs: OUTPUT[42␤21␤]
04:17 p6eval ..rakudo 29067: OUTPUT[Statement not terminated properly at line 1, near "sub make_o"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤]
04:18 bacek perl6: sub times($a,$b) { $a * $b; }; sub divide($a,$b) { $a / $b; }; sub make_op($op) { sub($a,$b) { $op($a,$b) } }; my $t = make_op(&times); say $t(21,2); my $div = make_op(&divide); say $div(42,2);
04:18 p6eval elf 21228: OUTPUT[/home/evalenv/pugs/misc/STD_red/match.rb:141:in `block in to_dump0': undefined method `to_dump0' for true:TrueClass (NoMethodError)␤   from /home/evalenv/pugs/misc/STD_red/match.rb:140:in `each'␤     from /home/evalenv/pugs/misc/STD_red/match.rb:140:in `map'␤       from
04:18 p6eval ../home/evalenv/pugs/mi...
04:18 p6eval ..kp6 21228: OUTPUT[error in Block at compiled/perl5-kp6-mp6/lib/KindaPerl6/Grammar/Sub.pm line 362, <> line 1.␤*** Syntax Error in sub '': missing closing curly bracket ␤]
04:18 p6eval ..pugs: OUTPUT[42␤21␤]
04:18 p6eval ..rakudo 29067: OUTPUT[42␤84␤]
04:34 xinming_ joined #perl6
04:37 apeiron joined #perl6
04:58 xinming joined #perl6
05:14 xinming_ joined #perl6
05:33 Psyche^ joined #perl6
05:36 a-jin1 joined #perl6
05:36 a-jin1 left #perl6
05:40 xinming joined #perl6
06:00 eternaleye_ joined #perl6
06:14 vsoni joined #perl6
06:35 Auzon1 joined #perl6
07:09 vsoni joined #perl6
07:09 xinming_ joined #perl6
08:13 barney joined #perl6
08:22 rindolf joined #perl6
08:23 iblechbot joined #perl6
08:35 alc joined #perl6
09:18 pbuetow joined #perl6
09:44 [particle] joined #perl6
09:48 Eevee joined #perl6
09:54 chris2 joined #perl6
10:03 Jedai joined #perl6
10:03 rakudo_svn r29074 | bernhard++ | [perl6] Fix some POD.
10:53 riffraff joined #perl6
11:00 meppl joined #perl6
12:11 aindilis joined #perl6
13:09 masak joined #perl6
14:34 barney joined #perl6
14:35 rakudo_svn r29079 | pmichaud++ | [rakudo]:  spectest-progress.csv update, 87 files, 1587 passing tests
14:47 rdice joined #perl6
14:57 lichtkind joined #perl6
14:58 lichtkind expression are also evaled when curly braces stand for hashre?
14:58 lichtkind hashref
15:07 TimToady lichtkind: maybe--we could define { => } as a closure that gets evaluated lazily in hash context; this would be a departure from Perl 5 semantics though
15:07 masak lichtkind: you mean like eval { 'tomatoes' => 'fried green' } ?
15:08 lichtkind jes masak
15:09 masak my instinct says 'yes', but I'm still trying to parse what TimToady said
15:09 TimToady it would be nice if map { $a => $b } would do what the user expects
15:09 lichtkind TimToady: my question was just if in current perl 6 expr are evaled inside an hash definition
15:10 TimToady and I'm trying to answer the "when" of that question
15:10 TimToady in p5 the expressions are evaluated immediately
15:10 TimToady I'm saying if we did it lazily, we might be able to finesse the map { $a => $b} problem
15:11 masak TimToady: do you mean my %example = { a => (side_effect1() + side_effect2() }; %example<a> # boom
15:11 TimToady and not decide till it's used whether it was intended for a hash or a function
15:12 masak what's the map { $a => $b} problem?
15:12 TimToady well, it actually genererally shows up as map { $_ => func($_) } or some such
15:12 TimToady but people expect it to return a list of pairs, and they get a syntax error instead
15:12 masak ah.
15:13 TimToady because to the parser it looks like a hash composer
15:13 masak I'm among those people
15:13 lichtkind so no full eval inside hash definitions?
15:13 TimToady eh, currently it does full eval; we're speculating
15:14 TimToady basically it currently adds .() if it looks like a hash composer
15:14 lichtkind thanks
15:16 FurnaceBoy joined #perl6
15:17 TimToady bbl &
15:18 lichtkind thanks masak
15:18 masak lichtkind: np :)
15:22 silug joined #perl6
15:28 scrottie joined #perl6
15:33 rindolf Hi TimToady, masak
15:33 rindolf TimToady: I'm going out to bike.
15:33 masak hiya, rindolf
15:33 rindolf Previously I hacked on some Perl code to verify Freecell solutions.
15:38 masak my latest Perl adventure was a q&d translation of a Haskell program I was writing, into a Perl 5 one-liner, to understand what the heck was going wrong in the Haskell program :)
15:38 masak I just don't know how to add spurious print statements to my Haskell code.
15:48 alester_ joined #perl6
15:53 allbery_b Debug.Trace.trace
15:54 jhorwitz joined #perl6
15:55 masak allbery_b: I'll look into that
15:55 masak I waved around ineffectively in GHCi, and then I resorted to Perl
15:55 masak it helped, too
15:56 * masak knows that the limitation is in him, not in Haskell
16:01 allbery_b pure functional programming takes some getting used to if you're used to imperative languages
16:03 rindolf Bleh! Could not get out on time.
16:03 rindolf Going to half-walk/half-run instead.
16:03 rindolf Bye all.
16:03 masak allbery_b: yes, but I've also found that the results are very beautiful
16:03 masak rindolf: seeya
16:33 alanhaggai joined #perl6
17:03 Auzon Should .perl be in S29 under 'Any'?
17:05 [particle]1 joined #perl6
17:09 jan_ joined #perl6
17:12 vsoni joined #perl6
17:27 alanhaggai_ joined #perl6
17:33 slavi1 joined #perl6
17:38 GeJ joined #perl6
17:56 vsoni joined #perl6
17:56 pmurias joined #perl6
18:09 pmurias ruoso: one problem with elf is that STD_red dosn't parse everythin in src-s1p, and the STD based frontend (pixie) is in a very early stage
18:12 slavi1 woot, I got pugs
19:09 vsoni joined #perl6
19:35 pmurias ruoso: ping
19:53 stevan_ joined #perl6
19:55 Alias_ joined #perl6
20:00 slavi1 left #perl6
20:07 pmurias TimToady: what is an acceptable to you way of me adding the rule start extraction to gimme5?
20:08 pmurias should i add an option or check an env var?
20:13 xinming joined #perl6
20:15 Alias_ joined #perl6
20:21 jferrero joined #perl6
20:29 pmurias TimToady: or is it usefull for something else and i should spit out the info in a particular way?
20:29 jferrero joined #perl6
21:05 jferrero joined #perl6
21:36 webar7 joined #perl6
21:36 webar7 I saw a person with a tshirt in toronto that said:      perl6 != ";"
21:36 webar7 what does that mean
21:37 webar7 does perl6 no require  ; or something?!
21:38 webar7 at yonge and dundas
21:38 webar7 oh well
21:38 webar7 left #perl6
21:45 pbuetow joined #perl6
22:01 FurnaceBoy joined #perl6
22:03 jferrero joined #perl6
22:17 pbuetow joined #perl6
22:52 vsoni joined #perl6
23:05 ingy I think that would mean "perl6 is not finished"
23:32 eternaleye_ joined #perl6
23:42 Alias_ ingy: I can't use private message on this network
23:43 vixey Alias_: /msg nickserv help register
23:45 mjk joined #perl6
23:48 Alias_ blah

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo