»ö« | 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␤
00:01 iblechbot left, araujo joined
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
00:03 soupdragon joined 00:06 lumi left 00:07 lumi joined
ash_ commuting & 00:07
00:07 ash_ left 00:09 REPLeffect_ joined, lisppaste3 joined, yves joined, mtve joined 00:10 silug left 00:11 silug joined 00:14 REPLeffect_ left, mtve left, yves left, lisppaste3 left 00:16 cdarroch left, payload joined 00:19 REPLeffect_ joined, lisppaste3 joined, yves joined, mtve joined 00:28 stepnem left
dalek kudo/ng: 2717d0b | (John Harrison)++ | src/builtins/List.pir:
Fix List.new(1, 2, 3);
00:29
00:36 stepnem joined, colomon___ left, colomon joined
sjohnson perldoc perlol # perl jokes 00:45
perllol 00:50
00:57 nsh_ is now known as nsh 01:10 Baggiokwok joined
TimToady lists of lists are a joke in Perl 5 01:13
01:15 lumi left, lumi joined 01:16 meppel left
sjohnson Perl 6: now with more LOL 01:18
01:20 Chillance left
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"])␤
01:33 colomon__ joined, colomon left, colomon__ is now known as colomon
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
01:50 silug left 01:58 colomon_ joined, colomon left, colomon_ is now known as colomon 02:05 Baggiokwok left
pugs_svn r29537 | lwall++ | [Cursor] lazify fnum->fate translations for shorter LTM candidates 02:09
02:11 mssm left 02:18 orafu left, orafu joined 02:24 Limbic_Region joined
diakopter TimToady: would that you clarify 'usually but not always a group of alternations' in S05, plz 02:27
02:43 nwtour joined 02:48 nwtour left 02:54 lumi left, lumi joined
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
03:26 patspam joined 04:05 gfx joined 04:06 soupdragon left 04:24 jhuni joined, Limbic_Region left 04:51 hercynium left 04:57 lumi left, lumi joined 05:12 Baggiokwok joined 05:16 Mantis joined 05:20 Baggiokwok left 05:21 xomas_ joined 05:25 xomas_ left
pugs_svn r29538 | diakopter++ | [S05/New metacharacters] untypo 05:43
r29539 | diakopter++ | [S05] MOAR untypos 06:06
06:19 xomas_ joined 06:38 fm_ joined 06:39 fm_ left 06:43 nowhereman joined 06:46 Baggiokwok joined
pugs_svn r29540 | diakopter++ | [S05] typo?, grammaro? 06:48
06:57 cognominal left 06:58 cognominal joined 07:01 patspam left
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?
07:25 colomon left, colomon joined 07:42 justatheory left 07:43 Mantis left 07:57 Su-Shee joined
Su-Shee good morning 07:58
08:11 jackyf left 08:15 araujo left 08:21 jhuni left 08:40 xinming_ joined, xinming left
sjohnson hi! 08:41
08:41 kaare joined
sjohnson nowhereman: start by going rakudo: first 08:41
08:41 kaare is now known as Guest28541 08:51 jackyf joined 08:52 cognominal left, Baggiokwok left 08:54 iblechbot joined 08:55 gfx left 09:22 _Jedai_ joined 09:26 Baggiokwok joined 09:27 Baggiokwok left 09:43 mssm joined 10:12 xinming_ left 10:14 xinming joined 10:24 pmurias joined 10:31 pmurias left 10:32 pmurias joined, meppl joined 10:33 meneldor joined
meneldor hello 10:33
10:37 meneldor left 10:38 lumi left, lumi joined 10:46 pmurias left 10:47 Chillance joined 10:58 meneldor joined 11:02 meneldor left 11:07 payload left 11:11 colomon left 11:25 Baggiokwok joined 11:36 xinming left 11:37 hatsefla1s left 11:39 hatseflats joined, hatseflats is now known as hatsuseno, hatsuseno is now known as hatseflats 11:40 cognominal joined 11:46 xinming joined, xinming left, xinming joined 11:56 Baggiokwok left 12:18 arthur-_ joined, arthur-_ left 12:49 cognominal left 12:50 colomon joined 13:01 payload joined 13:06 mssm left 13:12 xinming_ joined 13:17 Baggiokwok joined 13:19 xinming left 13:23 iblechbot left 13:37 araujo joined 13:38 payload left 13:41 payload1 joined 13:43 meneldor joined 14:00 cognominal joined 14:07 am0c left 14:09 xinming_ is now known as xinming 14:31 Exodist left 14:33 Exodist joined
meneldor guys how can i read from the command line in interactive mode? 14:39
14:45 nihiliad joined 14:47 Baggiokwok left, Baggiokwok joined 14:55 Slug joined
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
15:14 fm__ joined
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>)
15:37 DJ-Dongdot joined
DJ-Dongdot Hi 15:38
jnthn oh hai
15:43 simcop2387_ is now known as simcop2387 15:48 Baggiokwok left 15:49 Slug left 15:51 lumi left 15:52 Psyche^ joined 15:53 Patterner left, Psyche^ is now known as Patterner, lumi joined 15:56 hatseflats left, hatseflats joined, pincode joined 15:58 silug joined 16:11 astinus left, scion joined 16:12 scion is now known as astinus 16:13 DJ-Dongdot left
pugs_svn r29541 | Util++ | Typos 16:14
16:14 pincode is now known as pinc0de 16:24 uniejo joined
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
16:37 cognominal left, cognominal joined 16:47 fm__ left 16:58 iblechbot joined 16:59 cognominal left 17:02 nowhereman left 17:04 uniejo left 17:06 nbrown joined 17:08 lumi_ joined, lumi left 17:11 pinc0de left 17:20 justatheory joined 17:21 cognominal joined 17:22 colomon left 17:23 colomon joined 17:29 justatheory_ joined 17:31 ash_ joined
ash_ where do you go if you don't remember your svn.pugscode password? 17:34
17:34 kaare joined 17:35 kaare is now known as Guest92087, colomon_ joined
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
17:40 justatheory left, justatheory_ is now known as justatheory
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
17:47 Guest28541 left
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
17:57 payload1 left 18:00 pnate2 joined
pugs_svn r29544 | lwall++ | [STD] silly copy/paste error allowed current package to be undefined 18:03
18:07 breinbaa1 left 18:08 Guest92087 left, Guest92087 joined, breinbaas joined 18:09 uniejo joined
TimToady rakudo: say [min]() 18:09
p6eval rakudo 3867ff: Use of uninitialized value␤␤
TimToady rakudo: say [min]().perl 18:11
p6eval rakudo 3867ff: undef␤
18:11 pnate left
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)␤
18:15 ash_ left 18:24 nihiliad left 18:25 kaare joined 18:26 kaare is now known as Guest55997 18:30 jackyf left 18:38 Guest92087 left 18:40 justatheory left, nbrown left, silug left, xinming left, hugme left, s1n left, synth left, kcwu left, Khisanth left, jjore left, sunnavy left, PacoLinux_ left, cj left, tylerni7 left, xinming joined 18:41 sunnavy joined 18:43 pincode joined, pincode is now known as pinc0de 18:46 justatheory joined, nbrown joined, silug joined, PacoLinux_ joined, synth joined, s1n joined, Khisanth joined, jjore joined, kcwu joined, hugme joined, irc.freenode.net sets mode: +v hugme, cj joined, tylerni7 joined 18:48 tylerni7 left, cj left, hugme left, s1n left, nbrown left, synth left, kcwu left, Khisanth left, jjore left, PacoLinux_ left, justatheory left, silug left, silug_ joined, kcwu_ joined, jjore_ joined 18:49 s1n joined 18:50 colomon left, colomon joined 18:53 cj joined 18:59 lumi_ left, lumi joined 19:06 nihiliad joined 19:07 zamolxes_ left, zamolxes joined 19:10 uniejo left, uniejo joined, pnate joined 19:23 pnate2 left 19:24 Khisanth joined, nbrown joined
pugs_svn r29545 | lwall++ | [Cursor] ealier lazifying patch accidentally discarded some LTM backtrack info 19:25
TimToady earlier, even...
19:28 soupdragon joined 19:41 nbrown left
colomon_ Wow, quiet today. 20:35
20:37 synth joined 20:41 payload joined, Pythack joined 20:44 Pythack left 20:48 Guest55997 left 20:57 ash_ joined 21:03 payload left 21:11 payload joined 21:15 partisan joined
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
21:26 colomon__ joined, colomon left, colomon__ is now known as colomon, vamped joined
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
21:42 cognominal left, cognominal joined
ash_ i added my name to the AUTHORS file once, i can check that 21:42
21:43 Su-Shee left
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
21:57 nbrown joined 22:00 colomon__ joined 22:01 colomon left, colomon__ is now known as colomon 22:09 araujo left
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.
22:39 uniejo left 22:47 cjpeters_ joined 22:55 hicx174_ left 23:01 cjpeters_ left
colomon ash_: .perl shouldn't be flattening it, as far as I know. 23:01
23:04 colomon__ joined, colomon left, colomon__ is now known as colomon
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
23:07 jjore_ left
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
23:08 mssm joined, patspam joined
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.
23:23 gbacon joined 23:26 patspam left
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␤
23:28 patspam joined 23:29 am0c joined
colomon s/Capture/Parcel/ 23:33
23:34 iblechbot left 23:36 Khisanth left 23:42 rgrau` left 23:47 kidd` joined 23:49 goksie joined