pugscode.org/ | nopaste: sial.org/pbot/perl6 | ?eval [~] <m oo se> | We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: irc.pugscode.org/
Set by diakopter on 11 July 2007.
meppl good morning 05:50
masak meppl: same to you 05:51
meppl good morning masak
moritz_ rhr: do commit please, the bot is not updated automatically, just kp6... 06:12
rhr: I review it later[tm] when I have time
which means in about 10hours
bloonix good morning 06:33
masak good morning, bloonix 06:34
bloonix hi masak 06:38
fglock hi from yapc::EU :) 09:18
masak hello YAPC::EU :) 09:18
GeJ heya fglock 09:20
how was the keynote? 09:21
fglock GeJ: nice! 09:23
rgs whose keynote ?
fglock TimToady's
pmurias and ruoso are here (at cafeteria) 09:24
rgs ah, it's opening today
fglock now at parrot hackathon 09:30
riffraff hi 10:24
pugs_svnbot r17469 | fglock++ | [kp6] more Array methods 11:49
diff: dev.pugscode.org/changeset/17469
lambdabot Title: Changeset 17469 - Pugs - Trac
xinming_ fglock_: ping 11:52
fglock_: Is there any photos for the YAPC::EU from you and TimToady? ;-)
fglock_ xinming_: none yet 11:56
my wife's got the camera with her :)
xinming_ thanks, It's a good news. :-) 11:58
pugs_svnbot r17470 | fglock++ | [kp6] refactored Ast.pm out of Traverse.pm 12:01
diff: dev.pugscode.org/changeset/17470
lambdabot Title: Changeset 17470 - Pugs - Trac
pugs_svnbot r17471 | fglock++ | [kp6] Method is Routine 12:09
r17471 | fglock++ | initial impl of List
diff: dev.pugscode.org/changeset/17471
lambdabot Title: Changeset 17471 - Pugs - Trac
pugs_svnbot r17472 | fglock++ | [kp6] there exist no "long names", multis actually hold anonymous Routines 12:32
diff: dev.pugscode.org/changeset/17472
lambdabot Title: Changeset 17472 - Pugs - Trac
ruoso fglock_, ? 13:04
fglock_ ruoso: pong - I'm at the parrot room 13:05
ruoso ok 13:06
pugs_svnbot r17473 | fglock++ | [kp6] added several variations to t/36-multi.t 13:08
r17473 | fglock++ | added Parrot emitter stub
diff: dev.pugscode.org/changeset/17473
lambdabot Title: Changeset 17473 - Pugs - Trac
fglock_ i was showing Jonathan Worthington the parrot emitter, he might start working with it :)
ruoso fglock_, do you think using kp6 to emit PIR is a nice way to merge with parrot? 13:14
pugs_svnbot r17474 | ruoso++ | is a PIR emitter a good idea to start?
diff: dev.pugscode.org/changeset/17474
lambdabot Title: Changeset 17474 - Pugs - Trac
fglock_ ruoso: I was discussing with this with Jonathan, he thought it would be a good way to start 13:47
pugs_svnbot r17475 | renormalist++ | - cperl-mode: differentiation between hash vs. blocks didn't work - comment out 13:52
diff: dev.pugscode.org/changeset/17475
lambdabot Title: Changeset 17475 - Pugs - Trac
rhr moritz_: np, committed 14:06
pugs_svnbot r17476 | rhr++ | [evalbot] Do .perl.say if no output
diff: dev.pugscode.org/changeset/17476
lambdabot Title: Changeset 17476 - Pugs - Trac
moritz_ #eval 'rhr++' 14:47
exp_evalbot kp6: OUTPUT['rhr++'␤]
..pugs: OUTPUT["rhr++"␤]
rhr :) 14:48
moritz_ if it didn't work you had gained just one karma ;) 14:49
moritz_ #echo foo 14:55
exp_evalbot OUTPUT[foo]
[particle] how do we get the commands for exp_evalbot? 15:19
moritz_ what do you mean? 15:27
[particle] #echo, #kp6, #pugs, #eval or whatever 15:28
the bot syntax has changed.
*evalbot
moritz_ ah, it's a new bot
[particle] can i tell what rev of each eval engine i'm using? 15:29
moritz_ I started it mainly to have a kp6 evalbot, and pugs just fell out of it by chance ;)
#kp6 "foo"
exp_evalbot r17476: OUTPUT['foo'␤]
[particle] yay
moritz_ that's NYI for pugs
moritz_ plans a nqp executer as well 15:29
[particle] great 15:30
moritz_++
moritz_ I'd love to do a perl6onparrot-executer as well, but I don't know how to tell apart which commands are safe and which are unsafe 15:31
kp6 and nqp don't support unsafe commands (yet)
[particle] i don't think you can do anything unsafe in perl6 yet
moritz_ #kp6 say(perl( do { "foo" } ) ) 15:32
exp_evalbot r17476: OUTPUT[DISPATCH: calling APPLY KindaPerl6::Runtime::Perl5::DispatchSugar::Dispatch=HASH(0x82cd31c) on invalid object:$VAR1 = {};␤␤ at lib5/KindaPerl6/Runtime/Perl5/MOP.pm line 31␤ main::DISPATCH('undef', 'APPLY', 'KindaPerl6::Runtime::Perl5::DispatchSugar::Dispatch=HASH(0x82...') called at
..- line 3␤]
moritz_ how do I redirect STDOUT and STDERR in a shell script? 15:44
sorry for offtopic, but it's for the evalbot ;) 15:45
I mean for all of the shell script, not for individual statements
fridim 2>/dev/null ? 15:46
and 1>&2
moritz_ I want to write that inside the script, so that all of the following commands work under the redirect 15:47
fridim I would launch the script with that. So I don't know :) 15:48
moritz_ ok, I'll mess with the crontab ;)
rhr exec 2>whatever etc. 15:49
moritz_ rhr: thanks, I'll try that 15:50
pugs_svnbot r17477 | rhr++ | [evalbot] Add nqp executer 15:51
diff: dev.pugscode.org/changeset/17477
lambdabot Title: Changeset 17477 - Pugs - Trac
[particle] #nqp say("hello"); 15:53
moritz_ [particle]: I have to adjust the path first, and restart the bot 15:54
[particle] i figured, but that'll be the syntax, yes? 15:54
moritz_ yes ;)
moritz_ #nqp say("foo"); 15:55
exp_evalbot OUTPUT[foo␤]
[particle] yay
diakopter please no one be offended b/c you aren't opped; there are no special privileges other than quieting spammers 15:57
diakopter afk for long while 15:57
pugs_svnbot r17478 | moritz++ | [evalbot] 15:58
r17478 | moritz++ | * evalbot.pl: added perl6-on-parrot executer ('#p6')
r17478 | moritz++ | * EvalbotExecuter.pm: substituted tabs by whitespaces
r17478 | moritz++ | * updated TODO
diff: dev.pugscode.org/changeset/17478
lambdabot Title: Changeset 17478 - Pugs - Trac
moritz_ #p6 say "foo" 15:58
[particle] #p6 say "foo"; 15:59
diakopter heh; it should preface each output with the id of who commanded it
and, why not change the calling syntax to kp6: eval stuff and p6: eval stuff
moritz_ #kp6 say "foo"
exp_evalbot r17477: OUTPUT[foo␤]
[particle] /nick p6 16:00
moritz_ [particle]: for each executer, or in general?
diakopter [particle]: seems unlikely someone would join this channel with those nicks 16:01
rhr moritz_: you forgot to update %executer
[particle] diakopter: but they can't join with '#foo'
so it's more unlikely
moritz_: ?? 16:02
moritz_ rhr: race condition... I added it afert "svn ci" and before writing the commit message...
pugs_svnbot r17479 | moritz++ | [evalbot] fixed last commit: added p6 to %executer
diff: dev.pugscode.org/changeset/17479
lambdabot Title: Changeset 17479 - Pugs - Trac
moritz_ and I thought it would work that way, but it didn't
moritz_ #p6 print "rhr++ again" 16:03
pugs_svnbot r17480 | rhr++ | [evalbot] add p6 to #eval 16:05
diff: dev.pugscode.org/changeset/17480
lambdabot Title: Changeset 17480 - Pugs - Trac
rhr huh, I've done that before (make changes while editing the message) and it worked. I guess I should avoid that in the future... 16:05
moritz_ so thought I
moritz_ #p6 "foo" 16:05
exp_evalbot OUTPUT[Null PMC access in invoke()␤current instr.: 'parrot;Perl6::Compiler;main' pc 138 (perl6.pir:98)␤]
moritz_ #p6 say "foo"
exp_evalbot OUTPUT[foo␤]
rhr #eval say "hello"
exp_evalbot kp6: OUTPUT[hello␤] 16:06
..pugs: OUTPUT[hello␤]
..p6: OUTPUT[hello␤]
moritz_ I guess nqp and p6 don't support the "( ( do { $program } ).perl ).say" magic 16:07
[particle] #eval say("hello")
exp_evalbot kp6: OUTPUT[hello␤]
..pugs: OUTPUT[hello␤]
..p6: OUTPUT[hello␤]
[particle] neither has do() yet, or .perl 16:08
rhr hmm, {...}() doesn't work either 16:09
pugs_svnbot r17481 | moritz++ | [evalbot] added nqp to #eval 16:10
diff: dev.pugscode.org/changeset/17481
lambdabot Title: Changeset 17481 - Pugs - Trac
moritz_ #eval print("now with nqp"); 16:11
exp_evalbot kp6: OUTPUT[now with nqp]
..pugs: OUTPUT[now with nqp]
..p6: OUTPUT[now with nqp]
..nqp: OUTPUT[now with nqp]
[particle] moritz_: does evalbot rebuild after every rev? 16:13
i mean, rebuild kp6/pugs/nqp/p6
[particle] otherwise perhaps we can implement %?COMPILER{revision} or something 16:14
moritz_ [particle]: the pugs repo with kp6 is updated every 5 minutes or so... 16:17
pugs ist not rebuilt automatically, and for parrot/nqp/p6 I plan to do it every hour or so 16:18
[particle] okay, great. better if you can compare last built rev so you don't rebuild when not necessary 16:19
i can add a special var to p6 and nqp if i know what to call it
moritz_ %?COMPILER{revision} or $?COMPILER_REVISION or something is fine 16:21
mncharity npq? 17:25
err, nqp?
Coke nqp is not quite perl(6) 17:26
another mini perl6 that pmichaud is writing for parrot.
so we can write glue code in NQP instead of PIR.
mncharity ah, neat. thanks. :) 17:27
[particle] #nqp say("hello") 17:29
exp_evalbot OUTPUT[hello␤]
Coke #nqp 3+say("hello") 17:43
exp_evalbot OUTPUT[hello␤]
wolverian nice :) 17:45
moritz_ #nqp print(3+say("foo")); 17:56
exp_evalbot OUTPUT[foo␤4]