Camelia, the Perl 6 bug

IRC log for #november-wiki, 2008-10-11

| Channels | #november-wiki index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
04:50 ihrd joined #november-wiki
04:57 ihrd any body here?
05:00 Tene Hi!
05:03 ihrd hi
05:03 zarah hi ihrd
05:04 ihrd i just try to ask on perl6
05:04 ihrd but no one answered
05:04 ihrd rakudo: my $foo = { $^z.say; $^a.say }; $foo("HAI", "HER");
05:04 p6eval rakudo 31875: OUTPUT[HER␤HAI␤]
05:04 ihrd rakudo: my $foo = { $^a.say; $^z.say }; $foo("HAI", "HER");
05:04 p6eval rakudo 31875: OUTPUT[HAI␤HER␤]
05:05 ihrd you see, rakudo use lexical sort for params assign there
05:05 ihrd dose it`s right behaviour?
05:06 Tene Yes, that's the right behavior.
05:06 ihrd 8(   )
05:06 Tene ?
05:07 ihrd do not DWIM for me
05:07 ihrd go to read Synopsis
05:07 Tene rakudo: my $foo = -> ($z,$a) { $z.say; $a.say }; $foo("HAI", "HER")
05:07 p6eval rakudo 31875: OUTPUT[Statement not terminated properly at line 1, near "= -> ($z,$"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
05:08 Tene rakudo: my $foo = -> $z,$a { $z.say; $a.say }; $foo("HAI", "HER")
05:08 p6eval rakudo 31875: OUTPUT[Statement not terminated properly at line 1, near "= -> $z,$a"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
05:08 Tene Huh.  I thought that was implemented.
05:08 ihrd I too, but it`s not
05:10 Tene rakudo: my $foo = sub ($z,$a) { $z.say; $a.say }; $foo("HAI", "HER")
05:10 p6eval rakudo 31875: OUTPUT[HAI␤HER␤]
05:10 Tene You can just do that.
05:11 Tene The placeholder params are just a shortcut.
05:11 ihrd yes, but look what in my examples
05:11 ihrd i your:
05:11 Tene What about your examples?  Lexical sort if the correct behavior.  Lemme find the spec...
05:12 ihrd ok, I try to find that. thank you
05:12 Tene http://perlcabal.org/syn/S06​.html#Placeholder_variables
05:12 zarah Tene's link is also http://tinyurl.com/3zcsjl
05:13 Tene "The signature is the list of distinct positional placeholder names, sorted in Unicode order, following by the named placeholder names in any order."
05:13 Tene You could also do:
05:14 Tene rakudo: my $foo = { $:z.say; $:a.say }; $foo(:z("HAI"), :a("HER"));
05:14 p6eval rakudo 31875: OUTPUT[HAI␤HER␤]
05:14 Tene Named placeholders
05:16 ihrd thank you
05:16 Tene No problem.  Sorry I didn't see your message on #perl6.
05:19 ihrd Tene++
05:33 ihrd perl6: "HAI".say
05:33 p6eval elf 22575, pugs, rakudo 31875: OUTPUT[HAI␤]
05:33 ihrd rakudo: "HAI"
05:33 p6eval rakudo 31875: RESULT["HAI"]
05:45 ihrd zarah: help
05:45 zarah ihrd: avaliable commands are boo botsnack clear-messages google help hi karma messages plan replan restart seen slap start stop tell thanks unplan
05:46 ihrd zarah: google perl6
05:46 zarah ihrd: http://en.wikipedia.org/wiki/Perl_6
05:47 ihrd karma ihrd
05:47 zarah ihrd has a karma of 1
05:47 ihrd left #november-wiki
07:48 masak joined #november-wiki
07:48 masak rakudo: say <OH HAI>
07:48 p6eval rakudo 31876: OUTPUT[OHHAI␤]
07:48 masak hm :)
07:49 masak rakudo: say <OH HAI>.join ' '
07:49 p6eval rakudo 31876: OUTPUT[Statement not terminated properly at line 1, near "' '"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
07:49 masak rakudo: say <OH HAI>.join(' ')
07:49 p6eval rakudo 31876: OUTPUT[OH HAI␤]
08:02 moritz_ rakudo: say <OH HAI>.join: ' '
08:02 p6eval rakudo 31876: OUTPUT[OH HAI␤]
08:02 masak right.
08:07 masak moritz_: how'd the exams go?
08:09 moritz_ I wasn't very good, but I still got a 2.0 (on a scale from 1= very good to 5 = fail)
08:09 masak sounds like a success to me. congratulations.
08:10 moritz_ thanks ;)
08:14 moritz_ one left on Wednesday, then I can learn about spin hall weirdnesses
08:15 masak great
08:15 masak my next week is full o' deadlines
08:15 masak I look forward to it being over :)
08:16 moritz_ deadlines--
08:16 moritz_ zarah: karma deadlines?
08:16 zarah deadlines? has a karma of 0
08:17 moritz_ zarah: karma masak?
08:17 zarah masak? has a karma of 0
08:17 moritz_ zarah: karma masak
08:17 zarah masak has a karma of 30
08:17 moritz_ zarah: karma moritz
08:17 zarah moritz has a karma of 0
08:17 moritz_ zarah: karma moritz_
08:17 zarah moritz_ has a karma of 2
08:17 moritz_ zarah: karma ihrd
08:17 zarah ihrd has a karma of 1
08:17 * masak should perhaps strip question marks at the end of karma requests...
08:17 moritz_ we need a git bot ;)
08:17 masak aye
08:17 masak working on it
08:18 masak it's a question of being able to react on feeds
08:18 masak as soon as I figure out how to make POE do that, I'll add it to zarah
08:19 moritz_ so POE is your new async overlord? ;-)
08:20 masak definitely. my first one, as well.
08:27 moritz_ I've experimented a bit with Coro
08:28 moritz_ for Perl6::GatherTake
08:28 masak yes, I remember
08:28 moritz_ and I used Bot::BasicBot which uses POE, but abstracts the POE stuff away
08:29 * masak checks out Bot::BasicBot
08:30 masak hm. abstracting away the POE layer might be a good thing for someone just starting out with a bot, but I feel I want to do the opposite -- learn more about POE so that I can exploit it more
08:30 moritz_ aye
08:31 moritz_ it works for p6eval (which just responds to the channel) and for the logging bot (which only listens)
08:31 moritz_ bbl
08:32 masak aye
08:33 masak now, if I could only get my hands on a commit-reporting bot that uses POE...
12:21 masak joined #november-wiki
14:27 masak ooh, even .= trans works!
14:27 masak rakudo: my $a = "aaabbaddacc"; $a .= trans(["a" => ""]); say $a
14:27 p6eval rakudo 31883: OUTPUT[bbddcc␤]
15:33 masak (git-svn)++ # do not be alarmed by above message

| Channels | #november-wiki index | Today | | Search | Google Search | Plain-Text | summary