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.
pugs_svnbot r17450 | gnuvince++ | - Added examples by solving problems from Projet Euler. 04:49
diff: dev.pugscode.org/changeset/17450
lambdabot Title: Changeset 17450 - Pugs - Trac
moritz_ @tell TimToady as per S29 @list.join($sep) is not allowed 09:01
lambdabot Consider it noted.
bloonix hello together 10:14
masak ?eval -> { "hello $^someone" }.('together') 10:19
moritz_ #pugs say -> { "hello $^someone" }.('together') 10:20
exp_evalbot OUTPUT[<SubPointy(<anon>)>␤*** Cannot cast from VBool True to Pugs.AST.Internals.VCode (VCode)␤ at /tmp/FAwmIqKCY3 line 1, column 1 - line 2, column 1␤]
masak moritz_: thx
moritz_: it should work, though, right?
moritz_ #pugs say { "hello $^someone" }.('together')
exp_evalbot OUTPUT[<SubBlock(<anon>)>␤*** Cannot cast from VBool True to Pugs.AST.Internals.VCode (VCode)␤ at /tmp/4oIuc06ElZ line 1, column 1 - line 2, column 1␤]
moritz_ I don't know if -> { pointy block}.(call) should work 10:21
masak it felt like it could work
it's just "create anon sub and then call it" 10:22
moritz_ and ?eval should work as well ;-)
masak yes, but kudos for building new infrastructure while the old one takes a rest :) 10:23
moritz_ actually I did it to have a #kp6 eval ;-)
masak still 10:24
moritz_ ;) 10:25
TimToady hi, we got to Vienna okay 10:38
lambdabot TimToady: You have 2 new messages. '/msg lambdabot @messages' to read them.
moritz_ welcome to the German speaking countries ;) 10:47
Patterner For interesting values of german. 10:53
moritz_ aye 10:55
nothingmuch clkao: ping? 10:58
moritz_ is there a point in implementing Array.sort in pure Perl 6? or are we assuming that all backends will have sort()ing capability? 11:05
clkao nothingmuch: hey 11:06
nothingmuch: my flight is tomorrow, not today 11:07
nothingmuch oh 11:08
blech
then tomorrow we'll have a later dinner
dopplr lied and said today
clkao yikes 11:09
nothingmuch gimme your phone number anymoose
clkao just msg'ed you
nothingmuch no see
msg on magnet?
nothingmuch scsys.co.uk:8001/9186 13:07
lambdabot Title: perl_web paste from "nothingmuch" at 217.168.144.84...
nothingmuch comments welcome
outline for yapc talk
pugs_svnbot r17451 | moritz++ | [kp6] more verbose 'not implemented' error messages 13:19
diff: dev.pugscode.org/changeset/17451
lambdabot Title: Changeset 17451 - Pugs - Trac
rindolf nothingmuch: I read it. 13:28
nothingmuch any thoughts 13:29
?
rindolf nothingmuch: I got the general idea. 13:30
nothingmuch: but not the details. 13:31
nothingmuch: and I'm not sure I understood what it is good for.
nothingmuch it's a talk, it gives info
this is a general outline of the talk 13:32
rindolf nothingmuch: no, I meant that I'm not sure I understood what meta-object programming was good for. 13:33
I understood what the document itself was good for.
nothingmuch structure
that's discussed in more detail in the talk
i suppose the intended audience for this outline is those that don't need the talk ;-)
so they can comment on things I may have missed, etc
bloonix syn/Differences.html 14:09
a great documentation
masak yes
bloonix this is what I ever looking for 14:10
agentzh makstos++
bloonix: feel free to tweak Differences.pod in the pugs repos. it'll be automatically sync'd every 1 hour. 14:12
moritz_ is there a particular reason that there are no comparision infix ops in kp6? 14:15
I mean there is == and !=, but no < or >
agentzh moritz_: just hack them in! ;) 14:17
agentzh moritz_: just as fglock like to say, kp6 is mostly demand-driven... 14:17
moritz_: personally i'd rather it be test-driven, like pugs... 14:18
moritz_ agentzh: I know how to hack them into the grammar, but the implementation is the problem
agentzh hehe
bloonix how can I use variables between p5 and p6 ?
example:
agentzh is still reading kp6's source...
pasteling "bloonix" at 87.79.195.119 pasted "my $uid; { use v5; $uid = getp" (9 lines, 110B) at sial.org/pbot/27080
agentzh bloonix: man, you're crazy ;) 14:19
bloonix :)
moritz_ bloonix: I think it _should_ work this way
man, compiling Grammar.pm is slow 14:20
bloonix agentzh: sorry but getpwuid isnt implemented yet and I need a way :)
agentzh is not a kp6 hacker yet.
moritz_ but not as slow as pugs ;)
bloonix I got it 14:21
my $uid = do { use v5; getpwuid(1) } 14:22
agentzh has to run out of the $office and catch a bus &
bloonix works very well :)
masak bloonix: wow
moritz_ cool
masak bloonix++ # brave p6 user 14:23
bloonix masak: unfortunately its p5 code in the do block :)
bloonix but I think its a fine workaround until its implemented 14:24
masak bloonix: yes
masak it's the effort that counts 14:24
if more did like you, p6 would be ready sooner
bloonix moritz_: where do you compiling Grammar.pm? 14:29
moritz_ v6/v6-KindaPerl6/lib/KindaPerl6/Grammar.pm 14:30
bloonix on which machine? :) not on our, or? 14:31
moritz_ no
bloonix selbst schuld :)
moritz_ it's not _that_ slow 14:32
;-)
bloonix Im confused! 14:41
"unhandled support type: DESTROY at (eval 1) line 129."
does anyone know why this message happends? 14:42
masak in which situation? 14:43
bloonix I dont know. line 129 is a comment 14:44
masak it says "(eval 1) line 129", so it's probably not line 129 of your file 14:44
bloonix yes, but I dont know where to search the line 14:45
masak I understand. that's why I asked "in which situation?"
because there must be some other part that broke
what is it that you are running when it happens?
bloonix masak: here is a snippet of the module: 15:07
pasteling "bloonix" at 87.79.195.119 pasted "#!/usr/bin/pugs class Sys::Sta" (49 lines, 1.1K) at sial.org/pbot/27081
bloonix if I comment out the part "my $usr = do { }" the message doesnt comes 15:08
if I execute only the do block nothing happends 15:09
if I think in p5 DESTROY will be executed if a object is destroyed 15:11
maybe this way to search
but: 15:17
my $usr = (~$0).getpwuid2;
sub getpwuid2 { use v5; return getpwuid("@_");
}
works nice
pugs_svnbot r17452 | bloonix++ | Add Processes.pm and Processes.t to Sys::Statistics::Linux 15:34
diff: dev.pugscode.org/changeset/17452
lambdabot Title: Changeset 17452 - Pugs - Trac
pugs_svnbot r17453 | bloonix++ | Add Processes.pm 15:37
diff: dev.pugscode.org/changeset/17453
lambdabot Title: Changeset 17453 - Pugs - Trac
pugs_svnbot r17454 | bloonix++ | Replaced "while ( 1 )" with "loop" in all modules. 15:46
diff: dev.pugscode.org/changeset/17454
lambdabot Title: Changeset 17454 - Pugs - Trac 15:47
bloonix sorry, 3 updates in short time. as next I will bundle it 15:58
pugs_svnbot r17455 | gnuvince++ | - Added new problems 16:02
r17455 | gnuvince++ | - Added problem description and benchmarks to all examples
r17455 | gnuvince++ | - Changed is_prime() function to use junctions. It is slower,
r17455 | gnuvince++ | but more succint ;-)
diff: dev.pugscode.org/changeset/17455
lambdabot Title: Changeset 17455 - Pugs - Trac
masak bloonix: if you ask me, that case you found with DESTROY is worthy of a test 16:20
to make sure the bug is documented somehow
pugs_svnbot r17456 | sartak++ | r37404@onn: sartak | 2007-08-26 12:32:26 -0400 16:35
r17456 | sartak++ | Add an alternate implementation of Euler 5, which runs blazingly fast :)
diff: dev.pugscode.org/changeset/17456
lambdabot Title: Changeset 17456 - Pugs - Trac
fglock moritz_: re times, please note that KindaPerl6 supports precompilation 16:59
one sec, i'll paste a command line
pasteling "fglock" at 87.103.66.94 pasted "kp6 precompiled" (9 lines, 169B) at sial.org/pbot/27082 17:01
fglock hmm - i'll paste in the blog 17:02
Eidolos gnuvince_: ping 17:35
pugs_svnbot r17457 | sartak++ | r37410@onn: sartak | 2007-08-26 13:34:40 -0400 17:38
r17457 | sartak++ | Three more Euler problems (9, 20, 29)
diff: dev.pugscode.org/changeset/17457
lambdabot Title: Changeset 17457 - Pugs - Trac
Eidolos defining a postfix ! seems to screw up the ?? !! op a lot :) 18:16
Eidolos adds a test
pugs_svnbot r17458 | sartak++ | r37412@onn: sartak | 2007-08-26 14:19:57 -0400 18:23
r17458 | sartak++ | Add failing test for interaction between postfix:<!> and ?? !!
r17459 | sartak++ | r37413@onn: sartak | 2007-08-26 14:23:11 -0400
r17459 | sartak++ | Two more Euler problems (11, 15)
diff: dev.pugscode.org/changeset/17459
lambdabot Title: Changeset 17459 - Pugs - Trac 18:23
moritz_ is the last element of an array @array[-1] or @array[*-1]? 19:39
Gothmog_ The latter, iirc. 19:41
moritz_ I think so as well, but I can't remeber why
Eidolos it's the latter according to the Synopses 19:42
but I'm pretty sure Pugs still uses [-1]
moritz_ I thought * in array subscripts was 'whatever', so I'd read @foo[*-1] as "everything up to the last item"
Eidolos whatever is very contextual :) in subscripts it means the last item + 1 19:43
the reason for the change from Perl 5 is (at least partly) because of subtle bugs with unexpected negative subscripts
moritz_ good point
pugs_svnbot r17460 | gnuvince++ | - Added problems 25 and 48 from Project Euler 19:46
diff: dev.pugscode.org/changeset/17460
lambdabot Title: Changeset 17460 - Pugs - Trac
Eidolos gnuvince_: I think we should refactor out common functions, like the prime number generator 19:49
pugs_svnbot r17461 | moritz++ | a few tweaks to docs/Perl6/Perl5/Differences.pod
diff: dev.pugscode.org/changeset/17461
lambdabot Title: Changeset 17461 - Pugs - Trac
pugs_svnbot r17462 | sartak++ | r37416@onn: sartak | 2007-08-26 16:18:15 -0400 20:20
r17462 | sartak++ | Euler problems 17, 18, 67
diff: dev.pugscode.org/changeset/17462
lambdabot Title: Changeset 17462 - Pugs - Trac
pugs_svnbot r17463 | fglock++ | [v6.pm] 0.020 - fixed warnings when compiling from a pipe 20:56
diff: dev.pugscode.org/changeset/17463
lambdabot Title: Changeset 17463 - Pugs - Trac
gnuvince_ Eidolos: yes 22:18
pugs_svnbot r17464 | sartak++ | r37421@onn: sartak | 2007-08-26 18:20:44 -0400 22:23
r17464 | sartak++ | One last Euler problem, 21 (amicable pairs)
diff: dev.pugscode.org/changeset/17464
lambdabot Title: Changeset 17464 - Pugs - Trac