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.
DarkWolf84 ?eval say localtime(time); 01:05
pugsbot_r17185 OUTPUT[<obj:Time::Local>␤] Bool::True 01:06
DarkWolf84 I found a bug
why this is just capture 01:07
DarkWolf84 maybe my mistake again 01:13
:(
pugs_svnbot r17497 | sunnavy++ | added tests for the equivalence of .123 and 0.123 01:30
diff: dev.pugscode.org/changeset/17497
cj lar lar lar 04:25
anything fun happening here? 04:26
masak cj: 'lar', is that Singaporean English?
and yes, we always have fun :)
right now, there is some development around kp6, nqp and the grammar, I think 04:27
masak moritz_ has deployed a new bot 04:27
cj hurm... no Perl::Critic in etch :( 04:30
masak: it could be Singaporean English :) 04:31
what's kp6?
masak cj: you'll just have to go through CPAN, like the rest of us 04:33
cj: kp6 is Kinda Perl 6 04:34
it's a subset of Perl 6 developed in mp6, Mini Perl 6
increasingly feature-complete, it's to be bootstrapped and implemented in itself 04:35
masak see svn.pugscode.org/pugs/v6/v6-KindaPe...6-spec.pod 04:37
lambdabot tinyurl.com/yt5pg2
cj masak: that sounds pretty neato 05:30
pugs_svnbot r17498 | sunnavy++ | fixed an invalid comment for smartlink 05:31
diff: dev.pugscode.org/changeset/17498
lambdabot Title: Changeset 17498 - Pugs - Trac
masak cj: yes. furthermore, I gather there's a YAPC and a corresponding hackathon going on 05:32
many of the regulars are involved in that IRL, so this channel seems eerily quiet
cj where's the current YAPC? 05:33
masak good question
Vienna, apparently
sunnavy from s02: Variables with native types do not support undefinedness: it is an error to assign an undefined value to them.
masak vienna.yapceurope.org/ye2007/
lambdabot Title: YAPC::Europe 2007 in Vienna | YAPC::EU | 2007 | Vienna | 28th to 30th August 200 ...
sunnavy anybody knows why? 05:34
masak sunnavy: a guess would be that native types are tied somewhat to hardware, and may not support such a value 05:34
sunnavy masak: what about `my int $x;', what's the value of $x now? not undef? 05:37
masak sunnavy: 0?
seems reasonable to me 05:38
p'haps because I come from the Java direction, where this is the case with instance int variables
sunnavy pugs -e 'say my int $x' 05:39
we get a ``int\n"
masak too 05:40
that's likely wrong
sunnavy I wish I can find answers when I get through syn, hehe. 05:41
masak as far as I can see, there's no test for setting my int $x to 0 05:43
maybe one of us should add one? that's usually the best way to codify questions for posterity :)
jisom make it a todo test and people will think it used to be "broken" 05:44
masak jisom: they will?
sunnavy but we are not quite sure if that's right. 05:45
jisom if they're actually checking what tests are failing and what's succeeding that used to fail
masak jisom: ah. a todo test sounds like a good idea
sunnavy: true, but a test is easy to change after the fact 05:46
jisom I'm halfway joking, most people just report tests and don't delve further
masak it's better to add the test and forget about it, than not to add the test and forget about it
sunnavy masak, it's not a sigle test, how about other native types? 05:48
masak sunnavy: they too, I suppose 05:49
are all native types numerical? even without checking S02, i guess not
what should the default values be for the non-numerical types?
jisom you know of a computer that knows anything but bits?
masak jisom: that's not the point 05:50
wolverian masak, the prototype? :)
masak wolverian: you lost me. what do you mean? 05:51
jisom if they're native types, a computer really only has ints and floats, and sort of pointers
masak ok
so 0 all the way, then
sunnavy We'd better keep this confusion till it's clear :-) 05:52
maybe bother to ask TimToday, hehe
s/TimToday/TimToady/ 05:53
jisom btw, to complicate things, the equivalent of undef for a float is nan so should floats default to nan? :-p
masak @ask TimToady whether all native types are 0 at first
lambdabot Consider it noted.
masak sunnavy: there. asking is easy when lambdabot is around 05:54
@thx
lambdabot you are welcome
masak pats lambdabot on the head
sunnavy so cool ;-)
masak ;)
yes, ph3ar the p0wer of haskell 05:55
moritz_ re 06:10
g'morning
masak moritz_: good morning 06:19
pugs_svnbot r17499 | fglock++ | [kp6] updated Junction 07:17
diff: dev.pugscode.org/changeset/17499
lambdabot Title: Changeset 17499 - Pugs - Trac
moritz_ I didn't know that kp6 implements return'ing from an inner scope 07:20
I thought I tried it lately, and it gave a "not implemented" message
TimToady masak: after talking it over with TheDamian, we'd probably go with int = 0 and num = NaN, perhaps with pragmatic control, though it's easy enough to = 0 xx * 07:22
masak TimToady: I love it how you guys talk things over based on stuff we discuss here on IRC 07:25
you're better than the Swiss government!
so... add tests for it? 07:27
pugs_svnbot r17500 | moritz++ | [kp6] 07:29
r17500 | moritz++ | * Junctions: corrected true() for 'one'
r17500 | moritz++ | * EmitPerl5: more newlines in generated p5 output
r17500 | moritz++ | * Array: a stub min() implementation
diff: dev.pugscode.org/changeset/17500
lambdabot Title: Changeset 17500 - Pugs - Trac
moritz_ masak: I'd wait until it's in the specs
masak moritz_: good idea 07:33
pugs_svnbot r17501 | ruoso++ | [kp6] new test. new with parameter is still a syntax error 07:56
diff: dev.pugscode.org/changeset/17501
lambdabot Title: Changeset 17501 - Pugs - Trac
sunnavy TimToady: how about the other native types? be initialized to what? 08:05
moritz_ I'd suggest bool with false... 08:22
buf with empty buffer
moritz_ complex... NaN? 08:22
my humble suggestions 08:23
but most are pretty straight forward ;)
#kp6 say 2+4*5 08:27
exp_evalbot r17501: OUTPUT[22␤]
xinming #kp6 (2+4*5).say 08:30
exp_evalbot r17501: OUTPUT[22␤]
sunnavy In fact, I like undef, but I don't know exactly why there are no undef in native types.
xinming my @a = qw/a b c/; @a.perl.say
#kp6 my @a = qw/a b c/; @a.perl.say
exp_evalbot r17501: OUTPUT[Syntax Error␤DISPATCH: calling APPLY on invalid object:$VAR1 = {};␤␤ at lib5/KindaPerl6/Runtime/Perl5/MOP.pm line 31␤ main::DISPATCH('undef', 'APPLY') called at - line 19␤]
moritz_ sunnavy: because "native" is what is implemented in hardware...
sunnavy: and hardware doesn't know undef
xinming: the p6 syntax for qw/ .. / is < .. > 08:31
#kp6 my @a; @a=<a b c>;
exp_evalbot r17501: OUTPUT[Syntax Error␤]
xinming #kp6 my @a = <a b c>; @a.perl.say
exp_evalbot r17501: OUTPUT[Syntax Error␤]
moritz_ but it's NYI it seems
ruoso fglock, did you notice the new 43 test? 08:33
when running with --ast, it indeed shows a parse error...
sunnavy moritz: gotcha, though still not very comfortable with it. :-) 08:34
pugs_svnbot r17502 | moritz++ | [irclog] ilbot2.pl, a POCOIRC-based irc log bot works now 08:36
diff: dev.pugscode.org/changeset/17502
lambdabot Title: Changeset 17502 - Pugs - Trac
moritz_ sunnavy: well, nobody is forced to use it - if you want the comfort, use Int instead of int ;)
moritz_ I think native types are meant for situations where you really have to know what you are doing - for example if you want to implement a bigint lib in perl, you'd use native types 08:37
but for "normal" variables the "normal" types are preferred
sunnavy Before I thought native types are a lot like the variables in Perl 5, this misled me much. ;-) 08:40
meppl good morning 08:42
moritz_ good morning meppl ;) 08:43
meppl good morning moritz
pugs_svnbot r17503 | moritz++ | [irclog] fixed previous commit (hopefully)
diff: dev.pugscode.org/changeset/17503
lambdabot Title: Changeset 17503 - Pugs - Trac
moritz_ #perl6, #cdk and #bioclipse are now logged by a single bot 09:13
I hope it works ;)
masak moritz_: seems to work over at #bioclipse at least 09:21
moritz_ masak: Aye, same here... I just don't understand why the bot insists on naming itself "test", I told it to take the name "ilbot2" ;) 09:23
Blwood woaw 10:11
?eval [*] 1..5
where is the bot :( 10:12
pugsbot_r17185 120
Blwood oh :)
pugs_svnbot r17504 | moritz++ | svn-search: added search hints to template.
r17504 | moritz++ | URL is moritz.faui2k3.org/svn-search/
diff: dev.pugscode.org/changeset/17504
lambdabot Title: Changeset 17504 - Pugs - Trac
moritz_ Blwood: gone :(
lambdabot Title: Pugs SVN search
moritz_ #pugs [*] 1..5 10:13
exp_evalbot OUTPUT[120␤]
Blwood :)
moritz_ it's a new, different bot
I don't know what diakopter++ did to the old one
Blwood #pugs [+] split "", [*] 1..5
exp_evalbot OUTPUT[3.0␤]
Blwood this one is good too, isn't it :o ?
moritz_ it supports different implementations 10:14
#kp6 "hello".say
exp_evalbot r17503: OUTPUT[hello␤]
Blwood ah nice :)
moritz_ additionally there are #p6 (p6 on parrot) and nqp
Blwood perl6 is kind of magic 10:15
moritz_ indeed ;I 10:16
Blwood how to compute the factorial of a number and add all its digits ?
[+] split "", [*] 1..5 does it :o
even in Haskell it's harder
(I may be wrong) 10:17
sum . map digitToInt . show . product $ [1..5] does it in Haskell
moritz_ would you like help a bit with perl6? 10:20
Blwood yeah I would like to, but I'm don't know if I'm enough competent 10:21
moritz_ there are complicated and easy tasks 10:22
just /msg me your email address and your desired username, and I'll send you a commit bit
Blwood okay :) 10:23
moritz_ dev.pugscode.org/wiki/Overview gives an overview of the haskell source
lambdabot Title: Overview - Pugs - Trac 10:24
moritz_ damned, feather has a load of 13, and commitbit doesn't respond 10:25
Blwood: I hope the email is out (sender: audrey tang), if you don't receive one in the next 15 minutes please ask again 10:27
Blwood okay :)
thank you 10:28
moritz_ you're welcome ;)
there are many things that can be done without knowlodge of compiler construction, like writing tests
in t/ there are ~20,000 test, but we need more
Blwood yeah the more, the best :p 10:29
moritz_ aye
and some features and builtins are not tested yet
of course if you like haskell, pugs hacking is the best you can do 10:30
but I have to admit I don't know how easy or complex the pugs source code is... I managed to contribute about two lines so far ;)
Blwood haha :), so I'll have a deeper look inside /src/ 10:31
moritz_ aye ;) 10:33
best thing might be to run a smoke and look at a simple bug, and try to fix that
Blwood I've just received the mail :) 10:37
moritz_ YaY 10:38
Blwood I don't know if it's me but commitbit is not responding :( 10:43
moritz_ it tags ages, really
the server it runs has a load avg. of 15 atm :( 10:44
Blwood: btw it's a custom to add yourself to the AUTHORS file in the first commit, to test the commit bit 10:48
Blwood all right :) 10:49
I come back in 30min it's nearly 1pm and my stomach hurts :( 10:50
13pm*
moritz_ 1pm was right... seems we're in the same time zone ;) 10:51
and lunch is a very good idea ;) 10:52
pugs_svnbot r17505 | renormalist++ | - a minimalistic all-in-one call of kp6 10:55
r17506 | renormalist++ | - without perltidy
diff: dev.pugscode.org/changeset/17506
lambdabot Title: Changeset 17506 - Pugs - Trac
moritz_ renormalist: are you on the wsorga mailing list? 10:56
pugs_svnbot r17507 | moritz++ | [irclog] many whitespace fixes 11:59
diff: dev.pugscode.org/changeset/17507
lambdabot Title: Changeset 17507 - Pugs - Trac
pugs_svnbot r17508 | moritz++ | [irclog] remove trailing punctuation from URLs 12:05
diff: dev.pugscode.org/changeset/17508
lambdabot Title: Changeset 17508 - Pugs - Trac
pugs_svnbot r17509 | fglock++ | [mp6] set svn props 12:11
diff: dev.pugscode.org/changeset/17509 12:12
lambdabot Title: Changeset 17509 - Pugs - Trac
fglock back at kp6 hackathon 12:18
pugs_svnbot r17510 | ruoso++ | [kp6] marking test 43 as TODO, as the grammar doesnt support new with args... 12:27
diff: dev.pugscode.org/changeset/17510
lambdabot Title: Changeset 17510 - Pugs - Trac
moritz_ svn up 12:28
svn: PROPFIND request failed on '/pugs'
svn: PROPFIND of '/pugs': 403 Forbidden (svn.pugscode.org)
that's not good :/ 12:29
now it works again...
ruoso: I think it's token exp_seq that needs hacking if you want to allow argument pairs... 12:32
you'd have to replace it with something that parses anything that returns a list or a hash or a pair 12:33
pugs_svnbot r17511 | fglock++ | [kp6] updated IDEAS-HACKATHON 12:47
r17511 | fglock++ | fixed none(...) stringification
diff: dev.pugscode.org/changeset/17511
fglock moritz_: re exp_seq, we are adding support for named params (Runtime::Perl6::Capture), but it still needs some integration work 12:48
pugs_svnbot r17512 | fglock++ | [kp6] fixed last commit 12:50
diff: dev.pugscode.org/changeset/17512
lambdabot Title: Changeset 17512 - Pugs - Trac
Blwood moritz_, are you here ? 13:09
I'll be back in 2h 13:10
fglock [particle]: ping
pugs_svnbot r17513 | fglock++ | [kp6] updated roadmap
diff: dev.pugscode.org/changeset/17513
Blwood (I have some questions about the tests)
lambdabot Title: Changeset 17513 - Pugs - Trac
moritz_ Blwood: depends on your notion of "here" ;) 13:12
bloonix I really missing a dumper vor structes :/ 13:14
like Data::Dumper
moritz_ Blwood: use .perl
sorry, bloonix ;) 13:15
bloonix is there a temporary dumper way for p6 structures?
[particle] fglock: pong
moritz_ #pugs my %a = b => [c,d], e => f; say %a.perl 13:16
exp_evalbot OUTPUT[*** No such subroutine: "&c"␤ at /tmp/RIhcxjIxHF line 1, column 15-18␤]
fglock [particle]: i'm working with Jonathan in the mp6-parrot emitter
we think is reasonably possible to have mp6 bootstrapped in parrot 13:17
moritz_ #pugs my %a = b => <c d>, e => f; say %a.perl
exp_evalbot OUTPUT[*** No such subroutine: "&f"␤ at /tmp/Hi5F0HyrqD line 1, column 26-27␤]
fglock so that we can compile kp6 to parrot using it
[particle] ok, great!
moritz_ #pugs my %a = b => <c d>, e => 3; say %a.perl
exp_evalbot OUTPUT[{("b" => ("c", "d")), ("e" => 3)}␤]
moritz_ bloonix: that's your Data::Dumper ;) 13:18
[particle] fglock: hopefully we have enough of the new object model for that
bloonix grml
[particle] (jonathan should know) :)
fglock [particle]: we've been discussing several other options, but this seems to be the most simple
he said any parrot problems should be fixed anyway
[particle] fglock: i'm still going to pursue serialized past and ast-past translation as i think it's of use 13:19
bloonix moritz_: but all in one line :)
fglock [particle]: yes, that's one of the ideas - it would be nice to have that working 13:20
do you think it would be difficult to have a past parser for parrot?
[particle] fglock: i talked to pmichaud and ingy and we'll use a json++ subset of yaml 13:21
fglock i thougt about emitting parrot code that would build the tree
[particle] basically json with types
fglock ok
[particle] ...and using blocks instead of indent levels
fglock so we could make kp6 emit that, right?
[particle] yes indeed
moritz_ is there a PAST definition somewhere? 13:22
[particle] fglock: rafb.net/p/qqJLjn69.txt
moritz_: there's plenty of comments in the source 13:23
i'll get you a link
[particle] fglock: this syntax is true yaml, but it shows the hierarchy of past. 13:23
fglock [particle]: i wonder if it would be possible to have a parenthesis-delimited version, that's a bit easier to emit 13:24
[particle] the syntax we want would look a bit different (like i said, blocks instead of indents, and more json-like)
fglock oh, that's what blocks instead of indents means
[particle] yep, { 13:24
it's easier to parse, too :) 13:25
moritz_: svn.perl.org/parrot/trunk/compilers...T/Node.pir 13:26
moritz_ [particle]: thanks
fglock do i have to figure out the 'pirop' codes, or is this already implemented elsewhere? 13:26
[particle] fglock: that's in the language grammar, i'll post an example 13:27
svn.perl.org/parrot/trunk/languages...Grammar.pg /pirop 13:28
also see svn.perl.org/parrot/trunk/languages...ctions.pir
lambdabot tinyurl.com/2zvwah
[particle] past nodes all have a type, a hash, and an array 13:33
fglock [particle]: is there already a version of the past parser? 13:36
[particle] fglock: no, but it shouldn't be hard to write
i'm looking at the yaml and json specs now 13:37
we already have a json parser, so it's not much of a stretch to get what we need
we'll use this as a base and modify from there: svn.perl.org/parrot/trunk/compilers...grammar.pg 13:38
of course, it needs to be updated to current S05 syntax 13:39
pugs_svnbot r17514 | renormalist++ | - [kp6] started to fill IO module with mkdir, rmdir and tests for this 13:43
diff: dev.pugscode.org/changeset/17514
lambdabot Title: Changeset 17514 - Pugs - Trac
renormalist moritz_: I implemented some unsafe operations in kp6, do we have to handle that in any way ? 13:45
pugs_svnbot r17515 | dakkar++ | *very* simple tree transformation engine, with similar semantics to XSLT.
r17515 | dakkar++ | Needs lots of cleanup
diff: dev.pugscode.org/changeset/17515
lambdabot Title: Changeset 17515 - Pugs - Trac
renormalist moritz_: fglock said, u asked for such nusafe operations, therefore I ask
fglock coffee break! & 13:47
ruoso TimToady, take a look at this ideas for the Tree Transformation Language 13:48
pugs_svnbot r17516 | ruoso++ | [pX] Simple syntax mockup in the tree transformation language
diff: dev.pugscode.org/changeset/17516
lambdabot Title: Changeset 17516 - Pugs - Trac
ruoso pX/Common/Data-Transform-Trivial
bloonix ?eval my $foo = 1; my $bar = $foo.WHAT; say "true" if $foo; 14:17
pugsbot_r17185 OUTPUT[true␤] Bool::True
bloonix ?eval my $foo = 1; my $bar = $foo.WHAT; say "true" if $bar;
pugsbot_r17185 undef 14:18
bloonix why that?
?eval my $foo = 1; my $bar = $foo.WHAT; say $bar;
pugsbot_r17185 OUTPUT[Int␤] Bool::True
bloonix ?eval my $foo = 1; my $bar = $foo.WHAT; say "true" if ~$bar; 14:19
pugsbot_r17185 OUTPUT[true␤] Bool::True
bloonix *hmpf*
moritz_ ?eval my $foo = 1; say $foo.WHAT
#pugs my $foo=1; say $foo.WHAT 14:20
exp_evalbot OUTPUT[Int␤]
pugsbot_r17185 OUTPUT[Int␤] Bool::True
moritz_ #pugs my $foo=1; say ?$foo.WHAT
exp_evalbot OUTPUT[␤]
bloonix ?eval my $foo = 1; my $bar = $foo.WHAT; if $bar { say "TRUE" } else { say "FALSE" }
pugsbot_r17185 OUTPUT[FALSE␤] Bool::True
moritz_ that should be fixed when audreyt merges her MO branch 14:21
like so many other things ;)
bloonix ?eval my $foo = 1; my $bar = $foo.WHAT; if ~$bar { say "TRUE" } else { say "FALSE" } 14:22
pugsbot_r17185 OUTPUT[TRUE␤] Bool::True
bloonix "if ~$bar" works
TimToady Int is a kind of Undef, so it's not clear that it should be true... 14:42
it's not even defined... 14:43
fglock #kp6 my $foo = 1; my $bar = $foo.WHAT; if $bar { say "TRUE" } else { say "FALSE" } 14:44
exp_evalbot r17516: OUTPUT[FALSE␤]
moritz_ #pugs 1.WHAT.WHAT 14:46
exp_evalbot OUTPUT[::Int␤]
moritz_ #pugs (1.WHAT).WHAT 14:46
exp_evalbot OUTPUT[::Int␤]
fglock #kp6 (1.WHAT).WHAT 14:47
exp_evalbot r17516: OUTPUT[␤]
moritz_ I expected something like Type
fglock #kp6 say (1.WHAT).WHAT
exp_evalbot r17516: OUTPUT[Int␤]
fglock it only prints if stringified
moritz_ #kp6 say (1.WHAT).perl 14:48
exp_evalbot r17516: OUTPUT[Str␤]
moritz_ #kp6 say ((1.WHAT).WHAT).perl
exp_evalbot r17516: OUTPUT[Str␤]
TimToady no, the protoobject is the exact same type as the real object, except undefined
so .WHAT is the identity operation on a protoobject
moritz_ ok 14:49
TimToady .HOW is the metaobject
?eval 1.HOW
pugsbot_r17185 ^Int
TimToady note the ^
moritz_ and .WHY is 42 ;)
DarkWolf84 ?eval "hello".HOW.Methods
TimToady ?eval 1.WHY
pugsbot_r17185 Error: No such subroutine: "&Methods" 14:50
Error: No such method in class Int: "&WHY"
TimToady should probably return "Why not?"
DarkWolf84 :)
moritz_ or some documentation
DarkWolf84 or just 42
:)
fglock #kp6 say (1.HOW).methods
exp_evalbot r17516: OUTPUT[perl str true HOW WHAT␤]
moritz_ #pugs say 1.HOW.methods 14:51
exp_evalbot OUTPUT[["LIST","ITEM","bless"]␤]
DarkWolf84 #kp6 ("hello".HOW).methods
exp_evalbot r17516: OUTPUT[[ 'perl', 'str', 'true', 'HOW', 'WHAT', ]␤]
DarkWolf84 ?eval ("hello".HOW).methods
pugsbot_r17185 ["reverse","chop","index","quotemeta","join","chars","bytes","split","LIST","ITEM","bless"] 14:52
TimToady ?eval "hello".^methods
pugsbot_r17185 ["reverse","chop","index","quotemeta","join","chars","bytes","split","LIST","ITEM","bless"]
DarkWolf84 :)
thanks
my version of pugs had problem last time I checked 14:53
in .HOW.methods
fglock ? eval [1,"2",3].>>.^HOW 14:58
?eval [1,"2",3].>>.^HOW
pugsbot_r17185 Error: ␤Unexpected "^"␤expecting ".", "=", operator name, qualified identifier, variable name, "...", "--", "++", "i", array subscript, hash subscript or code subscript 14:59
bloonix hmmm I wrote a very little dumper that could help me a bit if I develop. it calls Dumper.pm. is it okay to upload to the repos?
it
moritz_ of course 15:00
DarkWolf84 I really have to learn the grammar 15:01
pasteling "bloonix" at 87.230.108.20 pasted "module Dumper-0001; use v6-alp" (105 lines, 1.8K) at sial.org/pbot/27200
bloonix very simple. but enough for me first
moritz_ bloonix: $foo.WHAT eq "Array" should be replaced with $foo ~~ Array 15:02
bloonix: because it takes inheritance into account 15:03
bloonix okay 15:04
done
cj morning folks 15:12
moritz_ hi cj ;) 15:13
pugs_svnbot r17517 | nothingmuch++ | blah 15:15
r17518 | nothingmuch++ | blah
diff: dev.pugscode.org/changeset/17518
lambdabot Title: Changeset 17518 - Pugs - Trac
DarkWolf84 how to set a var in scalar context 15:36
?
moritz_ DarkWolf84: assign it to a scalar
DarkWolf84: or with ~, +, ? in string, numeric or boolean context 15:37
DarkWolf84 ?eval scalar time
pugsbot_r17185 Error: No such subroutine: "&scalar"
moritz_ ?eval item time
pugsbot_r17185 120901733228183/500000
moritz_ #pugs say +time
exp_evalbot OUTPUT[241803470.353283␤]
moritz_ item() seems to work, as well as + for numerical context 15:38
#pugs say ~time
exp_evalbot OUTPUT[241803498.519021␤]
DarkWolf84 ?eval @foo=time
pugsbot_r17185 Error: ␤Unexpected "="␤expecting "::"␤Variable "@foo" requires predeclaration or explicit package name
DarkWolf84 ?eval my @foo=time
pugsbot_r17185 [241803554019773/1000000,] 15:39
DarkWolf84 hm
the same
moritz_ #pugs say time.perl
exp_evalbot OUTPUT[120901784716771/500000␤]
moritz_ #pugs say &time.perl
exp_evalbot OUTPUT[\:() {}{Prim ([Pugs.AST.Internals.Val] -> Pugs.AST.Eval.Eval Pugs.AST.Internals.Val)}␤]
DarkWolf84 the magic localtime(time) not work
:) 15:40
:(
?eval localtime(time)
pugsbot_r17185 \Time::Local.new(("day" => 30), ("hour" => 17), ("is_dst" => Bool::True), ("min" => 40), ("month" => 8), ("picosec" => 0), ("sec" => 37), ("tz" => 7200), ("tzname" => "CEST"), ("wday" => 5), ("yday" => 241), ("year" => 2007))
DarkWolf84 yes
works
mine vesion just prints {obj:Time::Local} 15:41
moritz_ #pugs print localtime(time)
exp_evalbot OUTPUT[<obj:Time::Local>]
moritz_ DarkWolf84: because you don't say .perl 15:42
#pugs print localtime(time).tz
exp_evalbot OUTPUT[0]
DarkWolf84 yeah
#pugs localtime(time).month
exp_evalbot OUTPUT[\8␤]
fglock moritz_: we added a few possible unsafe operators to kp6 today - what should we do to keep #kp6 safe? 15:43
moritz_ fglock: which op?
fglock: the best would be a --unsafe option that prevents the compilation or execution 15:44
fglock moritz_: i think renormalist didn't upload yet - things like mkdir() 15:45
ok, we could just prevent loading the IO module if --unsafe
moritz_ fglock: the evalbot runs in a chroot with a user id that has no permissions to write to any important place... 15:46
fglock: so it's not too urgent, but it would be a good idea anyway
fglock ok, good to know :)
moritz_ perhaps just set a global variable and make IO die() if this is set 15:48
pugs_svnbot r17519 | bloonix++ | Added Dumper.pm and fixed a lot of code of Sys::Statistics::Linux* 15:49
diff: dev.pugscode.org/changeset/17519
lambdabot Title: Changeset 17519 - Pugs - Trac
fglock moritz_: will do 15:50
brb &
pugs_svnbot r17520 | bloonix++ | add pod to Dumper.pm 15:58
diff: dev.pugscode.org/changeset/17520
lambdabot Title: Changeset 17520 - Pugs - Trac
bloonix improvements for Dumper.pm are welcome 16:05
moritz_ I think when pugs' MMD works reliably it you could rename dump() to perl() with an additional argument 16:05
so that perl($foo) calls the builtin perl, and perl($foo, :nice) the version newlines 16:06
bloonix ok feierabend :) 16:12
pugs_svnbot r17521 | bloonix++ | Add an example output to SYNOPSIS.
diff: dev.pugscode.org/changeset/17521
bloonix quitting time 16:13
it do a little bit more and shows the type of each value 16:15
does 16:16
pugs_svnbot r17522 | jnthn++ | [mp6] Dummy main sub and class variables sub should be :anon. 17:00
r17523 | moritz++ | perl6.vim: rounding up is 'ceil', not 'ceiling'
diff: dev.pugscode.org/changeset/17523
moritz_ 3D3 17:06
damn keyboard
obra hey folks 17:32
moritz_ hey obra ;) 17:33
there's something I wanted to ask you, but I forgot it :( 17:34
obra aw 17:49
moritz_ #pugs for "foo" ~~ m/./ -> $match { say $match.from } 18:00
exp_evalbot OUTPUT[undef␤]
moritz_ #pugs for "foo" ~~ m/./ -> $match { say $match }
exp_evalbot OUTPUT[undef␤]
moritz_ #pugs for "foo" ~~ m/./g -> $match { say $match }
exp_evalbot OUTPUT[*** ␤ Unexpected "g"␤ expecting term postfix, operator or block construct␤ at /tmp/Ib4Zl09uqm line 1, column 18␤]
moritz_ #pugs for "foo" ~~ m:g/./ -> $match { say $match }
exp_evalbot OUTPUT[*** Cannot parse regex: .␤*** Error: ␤]
moritz_ #kp6 "foo" ~~ m/./ 18:02
exp_evalbot r17523: OUTPUT[Syntax Error␤DISPATCH: calling APPLY on invalid object:$VAR1 = {};␤␤ at lib5/KindaPerl6/Runtime/Perl5/MOP.pm line 31␤ main::DISPATCH('undef', 'APPLY') called at - line 15␤]
Blwood moritz_, how can I write tests ? I mean, I have to follow the synopsis or there's a list of tests that need to be written ? 19:42
moritz_ Blwood: in the synposis as perlcabal.org/syn/ there are "smartlinks" from the tests, ie you see for which parts of the synopsis there are tests already... 19:50
lambdabot Title: Official Perl 6 Documentation
moritz_ Blwood: so you can go through the synopsis, you'll find sections without these smartlinks - then you know where more tests are needed 19:51
[particle] is there a utility to figure out which tests don't have smartlinks?
Blwood okay :)
oh yeah it would be nice :)
moritz_ [particle]: probably not.. .but you could combine find(1) and util/smartlinks.pl 19:52
[particle] paste? 19:55
moritz_ I thought of something like find t/ -name '*.t' -exec perl util/smartlinks.pl --check {} \; 19:56
but it seems too slow
pasteling "[particle]" at 24.22.165.145 pasted "ack -L "L\<.*\>" t -- test files without smartlinks" (442 lines, 14.6K) at sial.org/pbot/27203 19:57
[particle] it's a first pass--not entirely accurate, but it's a start :) 19:57
moritz_ it is indeed 19:58
[particle]++
[particle] ack++ 19:58
moritz_ what's ack? 19:59
I'd do that with grep
[particle] cpan App::Ack
buubot [particle]: App::Ack: , by Andy Lester, P/PE/PETDANCE/ack-1.64.tar.gz 20:00
[particle] hrmm, i thought 1.66 was released....
ack is a pure-perl better-than-grep 20:01
parrot developers *love* ack
moritz_ sometimes I miss perl's look(ahead|behind) assertions in grep
I bet they do
[particle] ack supports full p5 regexes 20:02
pasteling "moritz_" at 84.148.0.223 pasted "Test files worth looking at" (286 lines, 9.6K) at sial.org/pbot/27204 20:05
[particle] should be simple enough to add L<S05> to all of t/regex/ and L<S12> to all of t/oo/ 20:07
eventually, the search can be refined to "L<S\d\d\/.+>" or whatever
moritz_ I don't get it... 20:16
why is # L<S05/Return values from matches/Accessing captured subpatterns> not a valid smartlink= 20:17
s/=/?/
ERROR: t/regex/capture_rollback.t: line 9: pattern ``Accessing captured subpatterns'' failed to match any paragraph in L<S05/Return values from matches>.
but there is a paragraph with that title in 'Return values from matches', isn't there? 20:18
I always feel dump when I can't get smartlinks working
rhr does it need quotes? 20:19
moritz_ doesn't help 20:20
pugs_svnbot r17524 | moritz++ | smartlink for t/regex/from_perl6_rules/anchors.t 20:28
diff: dev.pugscode.org/changeset/17524
lambdabot Title: Changeset 17524 - Pugs - Trac 20:29
pugs_svnbot r17525 | moritz++ | smartlink for t/regex/from_perl6_rules/array_cap.t 20:35
diff: dev.pugscode.org/changeset/17525
lambdabot Title: Changeset 17525 - Pugs - Trac
moritz_ assert.t isn't up to date 20:35
pugs_svnbot r17526 | moritz++ | smartlink for t/regex/from_perl6_rules/assert.t 20:41
diff: dev.pugscode.org/changeset/17526
lambdabot Title: Changeset 17526 - Pugs - Trac
bloonix damian and domm did arm wrestling? 21:16
and I wasnt there :/
TimToady bare chested
bloonix okay, I think that scene will be published on youtube :) 21:17
I will see it :)
they did it to "collect gift" for the next yapc? 21:19
TimToady it was one of the "items" that were auctioned off 21:20
bloonix what a pitty that I wasnt there. 21:22
I would spend a bit as well 21:24
bloonix hmmm I dont know what is wrong... in downloaded pugs over svn and install it but some modules are not installed 21:41
bloonix *ARG* 21:45
pugs_svnbot r17527 | bloonix++ | Fixed typo Makefile.pl -> Makefile.PL 21:49
r17528 | bloonix++ | Fixed typo Makefile.pl -> Makefile.PL
diff: dev.pugscode.org/changeset/17528
lambdabot Title: Changeset 17528 - Pugs - Trac
bloonix good night @all 21:57
pmurias good evening 22:44
i'm back home :)
DarkWolf84 hi 22:47
:)
and maybe good night
pmurias good night 22:48
meppl good night 23:02