Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2010-01-16

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 ash_ ng: class Foo {  method new(*@args) { say 'hi'}}; augment class Foo { }; Foo.new(1, 2);
00:00 p6eval ng a57ebb: hi␤
00:01 ash_ i'll file a bug report, it affects master as well
00:02 ash_ no, i may be mistaken, it doesn't appear to affect master, i just double checked
00:02 araujo joined #perl6
00:03 soupdragon joined #perl6
00:07 lumi joined #perl6
00:07 ash_ commuting &
00:09 REPLeffect_ joined #perl6
00:09 lisppaste3 joined #perl6
00:09 yves joined #perl6
00:09 mtve joined #perl6
00:13 silug joined #perl6
00:16 payload joined #perl6
00:19 REPLeffect_ joined #perl6
00:19 lisppaste3 joined #perl6
00:19 yves joined #perl6
00:19 mtve joined #perl6
00:29 dalek rakudo/ng: 2717d0b | (John Harrison)++ | src/builtins/List.pir:
00:29 dalek rakudo/ng: Fix List.new(1, 2, 3);
00:29 dalek rakudo/ng: review: http://github.com/rakudo/rakudo/commit/2​717d0b34bbe3fd15221270b4564354a4a633555
00:36 stepnem joined #perl6
00:36 colomon joined #perl6
00:45 sjohnson perldoc perlol # perl jokes
00:50 sjohnson perllol
01:10 Baggiokwok joined #perl6
01:13 TimToady lists of lists are a joke in Perl 5
01:15 lumi joined #perl6
01:18 sjohnson Perl 6:  now with more LOL
01:28 colomon ng: my $a = List.new(1,2,3); say $a.elems
01:28 p6eval ng 2717d0: 3␤
01:28 colomon ng: my $a = List.new(List.new(1,2,3), Array.new('a','b','c')); say $a.perl;
01:28 p6eval ng 2717d0: ((1, 2, 3), ["a", "b", "c"])␤
01:33 colomon__ joined #perl6
01:37 * diakopter works on ratchet & LTM modes in sprixel
01:40 sjohnson colomon++ cute tests
01:40 diakopter well, first, calt (cancellable alternation, for '::')
01:44 diakopter ++masak # helpfulness
01:58 colomon_ joined #perl6
02:09 pugs_svn r29537 | lwall++ | [Cursor] lazify fnum->fate translations for shorter LTM candidates
02:18 orafu joined #perl6
02:24 Limbic_Region joined #perl6
02:27 diakopter TimToady: would that you clarify 'usually but not always a group of alternations' in S05, plz
02:43 nwtour joined #perl6
02:54 lumi joined #perl6
03:01 * diakopter does his good deed for the day.    http://blogs.perl.org/users/cpan_testers/​2010/01/msnbot-must-die.html#comment-259   resulted from   http://twitter.com/benmwatson/status/7799422214   (it (currently) is the top item on programming.reddit.com)
03:19 colomon diakopter++
03:22 * diakopter retracts... maybe there wasn't a connection... ah well, it helped fuel the escalation fire at least.
03:25 diakopter 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:26 patspam joined #perl6
04:05 gfx joined #perl6
04:24 jhuni joined #perl6
04:57 lumi joined #perl6
05:12 Baggiokwok joined #perl6
05:16 Mantis joined #perl6
05:21 xomas_ joined #perl6
05:43 pugs_svn r29538 | diakopter++ | [S05/New metacharacters] untypo
06:06 pugs_svn r29539 | diakopter++ | [S05] MOAR untypos
06:19 xomas_ joined #perl6
06:38 fm_ joined #perl6
06:43 nowhereman joined #perl6
06:46 Baggiokwok joined #perl6
06:48 pugs_svn r29540 | diakopter++ | [S05] typo?, grammaro?
06:58 cognominal joined #perl6
07:12 nowhereman I encountered this code on #perl6's logs
07:12 nowhereman say +$*IN.lines
07:12 nowhereman how should I decompose it if I were to use perl6's docs to understand it?
07:25 colomon joined #perl6
07:57 Su-Shee joined #perl6
07:58 Su-Shee good morning
08:40 xinming_ joined #perl6
08:41 sjohnson hi!
08:41 kaare joined #perl6
08:41 sjohnson nowhereman: start by going rakudo: first
08:51 jackyf joined #perl6
08:54 iblechbot joined #perl6
09:22 _Jedai_ joined #perl6
09:26 Baggiokwok joined #perl6
09:43 mssm joined #perl6
10:14 xinming joined #perl6
10:24 pmurias joined #perl6
10:32 pmurias joined #perl6
10:32 meppl joined #perl6
10:33 meneldor joined #perl6
10:33 meneldor hello
10:38 lumi joined #perl6
10:47 Chillance joined #perl6
10:58 meneldor joined #perl6
11:25 Baggiokwok joined #perl6
11:39 hatseflats joined #perl6
11:40 cognominal joined #perl6
11:46 xinming joined #perl6
11:46 xinming joined #perl6
12:18 arthur-_ joined #perl6
12:50 colomon joined #perl6
13:01 payload joined #perl6
13:12 xinming_ joined #perl6
13:17 Baggiokwok joined #perl6
13:37 araujo joined #perl6
13:41 payload1 joined #perl6
13:43 meneldor joined #perl6
14:00 cognominal joined #perl6
14:33 Exodist joined #perl6
14:39 meneldor guys how can i read from the command line in interactive mode?
14:45 nihiliad joined #perl6
14:47 Baggiokwok joined #perl6
14:55 Slug joined #perl6
15:00 meneldor can anyone tell me how to read from STDIN please
15:12 jnthn meneldor: $*IN.get to read one line
15:13 meneldor jnthn: thank you :) you save my day
15:14 fm__ joined #perl6
15:17 jnthn meneldor: .lines to get an array of all lines, btw. :-)
15:21 meneldor $*IN.get is what i need tnx :) google show me completely different things
15:22 meneldor like: print while <$STDIN;
15:22 meneldor or - print while (<$*IN>)
15:37 DJ-Dongdot joined #perl6
15:38 DJ-Dongdot Hi
15:38 jnthn oh hai
15:49 Slug left #perl6
15:52 Psyche^ joined #perl6
15:53 lumi joined #perl6
15:56 hatseflats joined #perl6
15:56 pincode joined #perl6
15:58 silug joined #perl6
16:11 scion joined #perl6
16:14 pugs_svn r29541 | Util++ | Typos
16:24 uniejo joined #perl6
16:26 TimToady wow, judging by the silence, musta been a wild Friday night for everyone...
16:27 TimToady oh, sorry, I'll turn the light back off.
16:27 jnthn *incoherent mumble*
16:27 frettled *groan*
16:28 pugs_svn r29542 | Util++ | Typos
16:31 pugs_svn r29543 | Util++ | Typos
16:37 cognominal joined #perl6
16:58 iblechbot joined #perl6
17:06 nbrown joined #perl6
17:08 lumi_ joined #perl6
17:20 justatheory joined #perl6
17:21 cognominal joined #perl6
17:23 colomon joined #perl6
17:29 justatheory_ joined #perl6
17:31 ash_ joined #perl6
17:34 ash_ where do you go if you don't remember your svn.pugscode password?
17:34 kaare joined #perl6
17:35 colomon_ joined #perl6
17:35 colomon_ ash_: patch pushed to github!
17:36 ash_ i saw, thanks, now i was going to try to get some tests for list(1, 2) and List.new(1, 2);
17:37 colomon_ Array.new(1,2,3) works now too.  \o/
17:37 colomon_ At our current rate of progress, ng will be ready to take over for master in 2015 or so, I reckon.  ;)
17:37 ash_ snap, will we be ready by then??
17:40 colomon_ With diligent hard work, I think so.
17:43 ash_ wooo, chromatic added an error code to trunk parrot if you do .lex 'something', $I0 or $N0 or $S0 now
17:43 ash_ that used to silently fail ><
17:44 colomon I don't really know what that means, but silent fails are bad, so chromatic++
17:46 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:48 ash_ are you logged in twice? or is there a colomon and a colomon_
17:50 colomon_ it's me twice.
17:51 colomon_ household chaos, the in-laws are down to help us do some heavy duty housecleaning.
17:56 ash_ i have 2 dogs, so we have to do some a lot of cleaning... my poor couch
18:00 pnate2 joined #perl6
18:03 pugs_svn r29544 | lwall++ | [STD] silly copy/paste error allowed current package to be undefined
18:08 Guest92087 joined #perl6
18:08 breinbaas joined #perl6
18:09 uniejo joined #perl6
18:09 TimToady rakudo: say [min]()
18:09 p6eval rakudo 3867ff: Use of uninitialized value␤␤
18:11 TimToady rakudo: say [min]().perl
18:11 p6eval rakudo 3867ff: undef␤
18:12 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:25 kaare joined #perl6
18:40 xinming joined #perl6
18:41 sunnavy joined #perl6
18:43 pincode joined #perl6
18:46 justatheory joined #perl6
18:46 nbrown joined #perl6
18:46 silug joined #perl6
18:46 PacoLinux_ joined #perl6
18:46 synth joined #perl6
18:46 s1n joined #perl6
18:46 Khisanth joined #perl6
18:46 jjore joined #perl6
18:46 kcwu joined #perl6
18:46 hugme joined #perl6
18:46 cj joined #perl6
18:46 tylerni7 joined #perl6
18:48 silug_ joined #perl6
18:48 kcwu_ joined #perl6
18:48 jjore_ joined #perl6
18:49 s1n joined #perl6
18:50 colomon joined #perl6
18:53 cj joined #perl6
18:59 lumi joined #perl6
19:06 nihiliad joined #perl6
19:07 zamolxes joined #perl6
19:10 uniejo joined #perl6
19:10 pnate joined #perl6
19:24 Khisanth joined #perl6
19:24 nbrown joined #perl6
19:25 pugs_svn r29545 | lwall++ | [Cursor] ealier lazifying patch accidentally discarded some LTM backtrack info
19:25 TimToady earlier, even...
19:28 soupdragon joined #perl6
20:35 colomon_ Wow, quiet today.
20:37 synth joined #perl6
20:41 payload joined #perl6
20:41 Pythack joined #perl6
20:44 Pythack left #perl6
20:57 ash_ joined #perl6
21:11 payload joined #perl6
21:15 partisan joined #perl6
21:15 TimToady that goes without saying...
21:18 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:19 ash_ http://gist.github.com/279013 is a copy of the tests I have made, not much but i can add more
21:19 ash_ i am just not sure what all to test
21:20 ash_ i'd like to add some for Array.new too
21:26 colomon__ joined #perl6
21:26 vamped joined #perl6
21:27 Tene ash_: looks okay to me.
21:27 ash_ those all won't pass in master rakudo, but they do in ng btw
21:27 jnthn ash_: Cool. :-)
21:28 jnthn ash_: Looks fine to me, for Array is good to have too...
21:28 Tene oh man, my other plans for today fell through.  I guess I should be working on updating ng to parrot trunk, then...
21:28 ash_ although it shouldn't be hard to fix them in master
21:28 jnthn ash_: Dunno if it's spec somewhere if .new on List and Array do that.
21:28 ash_ well its not, but if you do List.new its immutable, which seems rather useless...
21:29 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
21:29 jnthn ash_: I was hinting that a spec patch would be cool to have with the tests too. :-)
21:29 ash_ ah, well i can look into extending S32-Containers then
21:30 jnthn Aye.
21:30 jnthn ash_++
21:30 Tene :)
21:30 ash_ should i call the file create.t? or new.t? it has to do with creating new lists and not specifically List.new
21:32 Tene I'd say the former.
21:32 Tene it can always be renamed later, remember.
21:32 ash_ yeah, okay
21:33 vamped I'm wondering how the simple regex syntax s:g/x/y/  is coming along
21:36 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:38 jnthn vamped: ng is closer to the STD grammar, so it should - in theory - be closer now.
21:39 jnthn 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 jnthn vamped: I don't know how hard that is...it's all parsing stuff, which I'm not so hot on.
21:40 jnthn ash_: I'd try and check for you, but http://commitbit.pugscode.org/ is a bit of a blocker to that... :-/
21:41 TimToady ash_: if you know of something you worked on, you might svn log it
21:41 ash_ ah, well i'll just put them in a gist or something and someone else can commit them when i am done
21:42 cognominal joined #perl6
21:42 ash_ i added my name to the AUTHORS file once, i can check that
21:43 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
21:44 vamped jnthn: thanks. yeah I figured it was a parsing challenge. it will be great when that gets figured out.
21:45 ash_ lol, i should of guessed it, its just ash
21:50 ash_ is List a role or a class?
21:57 nbrown joined #perl6
22:00 colomon__ joined #perl6
22:15 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
22:16 jnthn Aye
22:16 ash_ doesn't doing RoleName.new make a blank object and apply the role to it?
22:16 jnthn Yes.
22:16 jnthn That's "punning"
22:17 jnthn role Foo { }; Foo.new # actually creates an anonymous class that does the role and instantiates it.
22:18 ash_ were in the spec should i but the sub list(*@args) ? i see sections for objects, but not where to put functions
22:20 jnthn http://svn.pugscode.org/pugs/docs/Perl6/​Spec/S32-setting-library/Containers.pod seems to have functions too.
22:21 uniejo ng: say +(list(),5,(7)); say +(list (),5,(7))
22:21 p6eval ng 2717d0: 3␤2␤
22:24 ash_ thats an odd functionality...
22:24 ash_ ng: say (list (), 5, (7)).perl;
22:24 p6eval ng 2717d0: (5, 7)␤
22:24 jnthn Something looks wrong there.
22:25 ash_ ng: say (list(), 5, (7)).perl;
22:25 p6eval ng 2717d0: (List(), 5, 7)␤
22:26 ash_ is it supposed to flatten the lists?
22:26 jnthn Yeah.
22:26 jnthn Think so.
22:26 ash_ ng: say (1, 2, (3, 4)).perl
22:26 p6eval ng 2717d0: (1, 2, 3, 4)␤
22:31 ash_ hmm... http://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:36 ash_ 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. :-)
22:36 jnthn ash_: Good to have, thanks for chasing that up.
22:47 cjpeters_ joined #perl6
23:01 colomon ash_: .perl shouldn't be flattening it, as far as I know.
23:04 colomon__ joined #perl6
23:05 colomon ng: say (1, 2, list(3, 4)).perl
23:05 p6eval ng 2717d0: (1, 2, (3, 4))␤
23:06 ash_ ng: say +(1, 2, (3, 4, 5))
23:06 p6eval ng 2717d0: 3␤
23:06 ash_ hmm, wonder why the above was flattened then
23:07 colomon -\op0-[\
23:08 colomon 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 mssm joined #perl6
23:08 patspam joined #perl6
23:09 colomon sorry for "line noise", I'm on the floor with my boy and he is being rambunctious.
23:09 colomon luckily I have distracted him with the laptop's power cord at the moment.
23:23 gbacon joined #perl6
23:27 colomon ng: say (1, 2, (3, 4, 4))[2]
23:27 p6eval ng 2717d0: 3␤
23:27 colomon ng: say (1, 2, (3, 4, 5)).elems
23:27 p6eval ng 2717d0: 5␤
23:28 patspam joined #perl6
23:29 am0c joined #perl6
23:33 colomon s/Capture/Parcel/
23:47 kidd` joined #perl6
23:49 goksie joined #perl6

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo