»ö« | perl6.org/ | nopaste: paste.lisp.org/new/perl6 | evalbot usage: 'perl6: say 3;' or rakudo: / pugs: / std: , or /msg p6eval perl6: ... | irclog: irc.pugscode.org/ | UTF-8 is our friend!
Set by wolfe.freenode.net on 30 October 2009.
ash_ ng: class Foo { method new(*@args) { say 'hi'}}; augment class Foo { }; Foo.new(1, 2); 00:00
p6eval ng a57ebb: hi␤
ash_ i'll file a bug report, it affects master as well 00:02
no, i may be mistaken, it doesn't appear to affect master, i just double checked
ash_ commuting & 00:07
dalek kudo/ng: 2717d0b | (John Harrison)++ | src/builtins/List.pir:
Fix List.new(1, 2, 3);
00:29
sjohnson perldoc perlol # perl jokes 00:45
perllol 00:50
TimToady lists of lists are a joke in Perl 5 01:13
sjohnson Perl 6: now with more LOL 01:18
colomon ng: my $a = List.new(1,2,3); say $a.elems 01:28
p6eval ng 2717d0: 3␤
colomon ng: my $a = List.new(List.new(1,2,3), Array.new('a','b','c')); say $a.perl;
p6eval ng 2717d0: ((1, 2, 3), ["a", "b", "c"])␤
diakopter works on ratchet & LTM modes in sprixel 01:37
sjohnson colomon++ cute tests 01:40
diakopter well, first, calt (cancellable alternation, for '::')
++masak # helpfulness 01:44
pugs_svn r29537 | lwall++ | [Cursor] lazify fnum->fate translations for shorter LTM candidates 02:09
diakopter TimToady: would that you clarify 'usually but not always a group of alternations' in S05, plz 02:27
diakopter does his good deed for the day. blogs.perl.org/users/cpan_testers/2...omment-259 resulted from twitter.com/benmwatson/status/7799422214 (it (currently) is the top item on programming.reddit.com) 03:01
colomon diakopter++ 03:19
diakopter retracts... maybe there wasn't a connection... ah well, it helped fuel the escalation fire at least. 03:22
hmm. maybe I shouldn't try thinking about how to implement the OPP at the same time as thinking about how to implement LTM & ratchet. brain swimming in circles (must be left recursion). 03:25
pugs_svn r29538 | diakopter++ | [S05/New metacharacters] untypo 05:43
r29539 | diakopter++ | [S05] MOAR untypos 06:06
pugs_svn r29540 | diakopter++ | [S05] typo?, grammaro? 06:48
nowhereman I encountered this code on #perl6's logs 07:12
say +$*IN.lines
how should I decompose it if I were to use perl6's docs to understand it?
Su-Shee good morning 07:58
sjohnson hi! 08:41
sjohnson nowhereman: start by going rakudo: first 08:41
meneldor hello 10:33
meneldor guys how can i read from the command line in interactive mode? 14:39
meneldor can anyone tell me how to read from STDIN please 15:00
jnthn meneldor: $*IN.get to read one line 15:12
meneldor jnthn: thank you :) you save my day 15:13
jnthn meneldor: .lines to get an array of all lines, btw. :-) 15:17
meneldor $*IN.get is what i need tnx :) google show me completely different things 15:21
like: print while <$STDIN; 15:22
or - print while (<$*IN>)
DJ-Dongdot Hi 15:38
jnthn oh hai
pugs_svn r29541 | Util++ | Typos 16:14
TimToady wow, judging by the silence, musta been a wild Friday night for everyone... 16:26
oh, sorry, I'll turn the light back off. 16:27
jnthn *incoherent mumble*
frettled *groan*
pugs_svn r29542 | Util++ | Typos 16:28
r29543 | Util++ | Typos 16:31
ash_ where do you go if you don't remember your svn.pugscode password? 17:34
colomon_ ash_: patch pushed to github! 17:35
ash_ i saw, thanks, now i was going to try to get some tests for list(1, 2) and List.new(1, 2); 17:36
colomon_ Array.new(1,2,3) works now too. \o/ 17:37
At our current rate of progress, ng will be ready to take over for master in 2015 or so, I reckon. ;)
ash_ snap, will we be ready by then??
colomon_ With diligent hard work, I think so. 17:40
ash_ wooo, chromatic added an error code to trunk parrot if you do .lex 'something', $I0 or $N0 or $S0 now 17:43
that used to silently fail ><
colomon I don't really know what that means, but silent fails are bad, so chromatic++ 17:44
ash_ ah, when i was trying to help jnthn with defining method ^foo() { } in ng, i was using .lex in parrot, and it wasn't doing it right because I was passing a string, but I couldn't find the bug till jnthn told me that .lex only takes pmc's 17:46
ash_ are you logged in twice? or is there a colomon and a colomon_ 17:48
colomon_ it's me twice. 17:50
household chaos, the in-laws are down to help us do some heavy duty housecleaning. 17:51
ash_ i have 2 dogs, so we have to do some a lot of cleaning... my poor couch 17:56
pugs_svn r29544 | lwall++ | [STD] silly copy/paste error allowed current package to be undefined 18:03
TimToady rakudo: say [min]() 18:09
p6eval rakudo 3867ff: Use of uninitialized value␤␤
TimToady rakudo: say [min]().perl 18:11
p6eval rakudo 3867ff: undef␤
TimToady ng: say 1 min 2 18:12
p6eval ng 2717d0: Confused at line 1, near "say 1 min "␤current instr.: 'perl6;HLL;Grammar;panic' pc 500 (src/stage0/HLL-s0.pir:328)␤
pugs_svn r29545 | lwall++ | [Cursor] ealier lazifying patch accidentally discarded some LTM backtrack info 19:25
TimToady earlier, even...
colomon_ Wow, quiet today. 20:35
TimToady that goes without saying... 21:15
ash_ so, i have some tests for List.new and list(), since I can't find any that test them, can i get someone to look at them to see if they seem okay? they aren't much but its something at least 21:18
gist.github.com/279013 is a copy of the tests I have made, not much but i can add more 21:19
i am just not sure what all to test
i'd like to add some for Array.new too 21:20
Tene ash_: looks okay to me. 21:27
ash_ those all won't pass in master rakudo, but they do in ng btw
jnthn ash_: Cool. :-)
ash_: Looks fine to me, for Array is good to have too... 21:28
ash_ although it shouldn't be hard to fix them in master
Tene oh man, my other plans for today fell through. I guess I should be working on updating ng to parrot trunk, then...
jnthn ash_: Dunno if it's spec somewhere if .new on List and Array do that.
ash_ well its not, but if you do List.new its immutable, which seems rather useless...
jnthn ash_: Oh, I agree it should be spec. 21:29
ash_ i haven't seen it in the spec's yet, but they seem logical to have
jnthn ash_: I was hinting that a spec patch would be cool to have with the tests too. :-)
ash_ ah, well i can look into extending S32-Containers then
jnthn Aye. 21:30
ash_++
Tene :)
ash_ should i call the file create.t? or new.t? it has to do with creating new lists and not specifically List.new
Tene I'd say the former. 21:32
it can always be renamed later, remember.
ash_ yeah, okay
vamped I'm wondering how the simple regex syntax s:g/x/y/ is coming along 21:33
ash_ i think i have a commit bit to pugs for the spec but i don't remember my username, is there anyway i can check? 21:36
jnthn vamped: ng is closer to the STD grammar, so it should - in theory - be closer now. 21:38
vamped: It does reply on adverb parsing which I'm not sure we've a good handle on yet though (e.g. to parse the :g). 21:39
vamped: I don't know how hard that is...it's all parsing stuff, which I'm not so hot on.
ash_: I'd try and check for you, but commitbit.pugscode.org/ is a bit of a blocker to that... :-/ 21:40
ash_ ah, well i'll just put them in a gist or something and someone else can commit them when i am done 21:41
TimToady ash_: if you know of something you worked on, you might svn log it
ash_ i added my name to the AUTHORS file once, i can check that 21:42
TimToady then you just have to remember your password 21:43
ash_ well i only have like 3 i use, that shouldn't be hard
vamped jnthn: thanks. yeah I figured it was a parsing challenge. it will be great when that gets figured out. 21:44
ash_ lol, i should of guessed it, its just ash 21:45
is List a role or a class? 21:50
jnthn ash_: For now in Rakudo, a class. Think it may need to become a role in the future though. 22:15
ash_ the spec says its a role
jnthn Aye 22:16
ash_ doesn't doing RoleName.new make a blank object and apply the role to it?
jnthn Yes.
That's "punning"
role Foo { }; Foo.new # actually creates an anonymous class that does the role and instantiates it. 22:17
ash_ were in the spec should i but the sub list(*@args) ? i see sections for objects, but not where to put functions 22:18
jnthn svn.pugscode.org/pugs/docs/Perl6/Sp...ainers.pod seems to have functions too. 22:20
uniejo ng: say +(list(),5,(7)); say +(list (),5,(7)) 22:21
p6eval ng 2717d0: 3␤2␤
ash_ thats an odd functionality... 22:24
ng: say (list (), 5, (7)).perl;
p6eval ng 2717d0: (5, 7)␤
jnthn Something looks wrong there.
ash_ ng: say (list(), 5, (7)).perl; 22:25
p6eval ng 2717d0: (List(), 5, 7)␤
ash_ is it supposed to flatten the lists? 22:26
jnthn Yeah.
Think so.
ash_ ng: say (1, 2, (3, 4)).perl
p6eval ng 2717d0: (1, 2, 3, 4)␤
ash_ hmm... perlcabal.org/syn/S02.html#Lists says "No flattening happens to a lazy list until it is bound to the signature of a function or method at call time (and maybe not even then)." i kinda thought that mean (1, 2, (3, 4)) shouldn't flatten unless you make it, but maybe .perl or say is making it flatten 22:31
jnthn: so you know, trunk parrot throws an error now for .lex if you pass anything other than a PMC, not sure if you saw that, chromatic added that 22:36
jnthn ash_: I think you menetioned it here on channel earlier, and I read it there. :-)
ash_: Good to have, thanks for chasing that up.
colomon ash_: .perl shouldn't be flattening it, as far as I know. 23:01
colomon ng: say (1, 2, list(3, 4)).perl 23:05
p6eval ng 2717d0: (1, 2, (3, 4))␤
ash_ ng: say +(1, 2, (3, 4, 5)) 23:06
p6eval ng 2717d0: 3␤
ash_ hmm, wonder why the above was flattened then
colomon -\op0-[\ 23:07
is (3, 4, 5) a Capture rather than a List? I don't understand how that works, but it can be funky, I know. 23:08
colomon sorry for "line noise", I'm on the floor with my boy and he is being rambunctious. 23:09
luckily I have distracted him with the laptop's power cord at the moment.
colomon ng: say (1, 2, (3, 4, 4))[2] 23:27
p6eval ng 2717d0: 3␤
colomon ng: say (1, 2, (3, 4, 5)).elems
p6eval ng 2717d0: 5␤
colomon s/Capture/Parcel/ 23:33