Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2009-10-09

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 TimToady or we can exempt these and treat them as nominal
00:00 jnthn I'd really rather the default is :_
00:00 jnthn Consistently.
00:00 jnthn I think people expect to be able to pass undef by default.
00:00 TimToady question is whether people will then fill their programs with :D
00:01 TimToady well, we could pragmatize it, maybe
00:01 jnthn Well, won't those be happy programs. ;-)
00:02 jnthn Actually, hmm. In Rakudo at the moment, the instances have a type ID and the proto-objects don't.
00:03 TimToady rakudo: say infix:<+>(42,Int)
00:03 jnthn If we can somehow treat those constraints as a bit more special we can probably still default the :D and be efficient/cachable.
00:03 p6eval rakudo daf221: OUTPUT«Confused at line 2, near ":<+>(42,In"␤in Main (src/gen_setting.pm:191)␤»
00:03 TimToady rakudo: say 42 + Int
00:03 jnthn std: say infix:<+>(42,Int)
00:03 p6eval rakudo daf221: OUTPUT«Use of type object as value␤42␤»
00:03 p6eval std 28667: OUTPUT«ok 00:01 98m␤»
00:03 jnthn rakudo: say &infix:<+>(42,Int)
00:03 p6eval rakudo daf221: OUTPUT«Use of type object as value␤42␤»
00:03 TimToady so you're basically defaulting to :D already :P
00:04 jnthn That's not a binding failure.
00:04 jnthn It's a warning when you try to use it.
00:04 TimToady ah
00:04 jnthn We give a Failure that ends up numifying to 0 I think.
00:04 jnthn (Note the output 42 there)
00:04 TimToady would be nice to report what routine it thinks it's in
00:05 jnthn Aye,
00:05 TimToady let's see, if :_ accepts both, then maybe :P should accept neither :D
00:06 jnthn :O
00:06 jnthn TimToady: I'm curious to implement this in Rakudo and see what the fallout is to real code.
00:06 jnthn (the :D default)
00:08 quietfanatic ...well, Link::C is more or less working, but I think a minute is too long to wait for your code to run :)
00:08 jnthn ouch!
00:09 quietfanatic It's a little faster if you run it twice in a row, due to caching.
00:09 justatheory joined #perl6
00:09 quietfanatic Like, 10 seconds.
00:09 quietfanatic Depends on the library in question though.
00:09 jnthn still slow.
00:09 quietfanatic A small library like crypt doesn't take long
00:10 quietfanatic but a large library like SDL will take a while.
00:11 quietfanatic I mean, the difference in time is 10 seconds.
00:11 quietfanatic not the total time, which would be 50 seconds.
00:12 quietfanatic Because most of the time is spent evalling the linking code.
00:13 jnthn What do you cache?
00:13 jnthn This does sound like something to try the profiler out on.
00:14 quietfanatic I cache the code I generate to actually do the linking in parrot and wrapping with Perl subs.
00:14 quietfanatic Which is as much as I can cache.
00:15 jnthn *nod*
00:15 jnthn Certainly something to try and profile.
00:15 lumi joined #perl6
00:16 quietfanatic But yeah, with the cache, a program linked to crypt.so takes only 5 seconds.
00:16 quietfanatic because it only defines three functions.
00:16 pugs_svn r28670 | lwall++ | [S12] or there's this approach
00:18 jnthn 5 seconds for 3 functions is kinda like, ouch
00:19 jnthn quietfanatic: Can you nopaste the Perl 6 code?
00:19 jnthn That takes 5 seconds or so?
00:19 jnthn TimToady: That works too.
00:20 quietfanatic You mean the program being run, or the linking code?
00:20 jnthn quietfanatic: The bit where you think we spend time. ;-)
00:20 jnthn quietfanatic: I'm curious what it's doing.
00:20 jnthn And why it could be so slow.
00:21 lisppaste3 quietfanatic pasted "Linking to crypt.so" at http://paste.lisp.org/display/88414
00:21 quietfanatic This is the fast one.
00:21 quietfanatic That code there only takes .4 seconds to run.
00:22 quietfanatic The slow one is like that but with 170 functions instead of three.
00:23 quietfanatic I mean, you'd expect that to be slow.  The SDL library is very large, and a program writer should probably specificy to link only the functions he wants.
00:24 jnthn Ah, OK. So it takes .4 seconds to do that bit - where is the other 4.6 spent?
00:24 quietfanatic In parsing Link/C probably
00:24 quietfanatic *Link/C.pm
00:25 jnthn Ah, ok
00:25 jnthn Does pre-compiling that module help?
00:26 quietfanatic About 3 seconds is spent parsing that file.
00:26 mepplock joined #perl6
00:26 quietfanatic pre-compiling...
00:26 quietfanatic I'm not sure how to do that.
00:27 quietfanatic ah, there's a --target
00:29 jnthn --target=pir
00:30 quietfanatic Indeed that cuts 3 seconds off.
00:31 quietfanatic Maybe I can also precompile the code...
00:31 quietfanatic the linking code
00:32 quietfanatic That'd take a bit more thinking.
00:32 jnthn quietfanatic: Ah, OK. That makes me feel a little better then. :-)
00:33 Confield left #perl6
00:36 jnthn OK, sleep time...night
00:45 quietfanatic Got math class. :|
01:01 rfordinal joined #perl6
01:06 zloyrusskiy joined #perl6
01:08 sjohnson i think it's time to start a website where i do people's Perl homework for them for paypal dough
01:12 crythias joined #perl6
01:16 orafu joined #perl6
01:43 rhr joined #perl6
01:49 ihrd joined #perl6
01:50 frew_ joined #perl6
01:51 diakopter ... and boy are my arms tired.
01:53 sjohnson from all that perl hacking?
01:53 sjohnson :)
01:53 rhr__ joined #perl6
01:54 am0c joined #perl6
01:56 diakopter "I just flew in from .... "
01:58 ihrd left #perl6
02:04 diakopter chat chat chat
02:07 reqamst joined #perl6
02:08 zloyrusskiy joined #perl6
02:16 tak11 joined #perl6
02:19 payload joined #perl6
02:27 crythias watching csi
02:27 crythias oops wrong window
02:29 crythias I mean, you can care if you want, but I'd rather be punny.
02:32 sjohnson heh
02:32 * sjohnson is interested
02:42 ShaneC joined #perl6
02:47 diakopter rakudo: sub a ($a = %_<hi>) { say $a }; a('boo');
02:48 p6eval rakudo daf221: OUTPUT«boo␤»
02:48 diakopter ww
02:49 justatheory joined #perl6
02:50 lumi joined #perl6
02:54 diakopter rakudo: sub a ($a = %_<hi>) { say $a }; my $hi = 'boo'; a :$hi;
02:54 p6eval rakudo daf221: OUTPUT«src/gc/api.c:253: failed assertion 'PObj_is_PMC_TEST(obj)'␤Backtrace - Obtained 32 stack frames (max trace depth is 32).␤/home/p6eval//p1/lib/libparrot.so.1.6.0 [0x2b500f5dfdb3]␤/home/p6eval//p1/lib/libparrot.so.1.6.0(Parrot_confess+0x68)
02:54 p6eval ..[0x2b500f5dfec8]␤/home/p6eval//p1/lib/libpa…
02:58 * diakopter wants someone else to lookup/know whether that's a known issue
02:58 pugs_svn r28671 | lwall++ | [S02] fix fossil spotted by diakopter++
03:00 diakopter TimToady: is %_ accessible from default arg expr?
03:01 diakopter (or anyone, I mean)
03:01 Tene phenny: tell masak to look at http://blog.sartak.org/2009/10/jiftys-request-inspector.html
03:01 phenny Tene: I'll pass that on when masak is around.
03:05 krishna_ joined #perl6
03:05 colomon_ joined #perl6
03:08 crythias such a weird almost funny ending to csi
03:22 agentzh joined #perl6
03:31 diakopter TimToady: $OPT_stab in viv seems not to do anything any longer... (I can't find the stab (CORE or otherwise) in the result of STD->parse or STD->parsefile)   help me 陽子さん TimToady; you're my only hope?
03:39 TimToady the symbol tables are all accessibly from $STD::ALL->{$symtab_id}->{$varname}
03:39 diakopter where would I go about finding a $symtab_id
03:40 frew__ joined #perl6
03:40 TimToady well, GLOBAL, UNIT, SETTING and CORE are obvious
03:41 diakopter oh. I thought they were numeric. :)  k thx
03:41 TimToady at reduce time you have $::CURPAD
03:41 TimToady and $::CURPKG
03:42 TimToady you can compile a .pm and then look at the .pm.syml to see the various namespaces
03:47 diakopter er, oops; I meant to paste 本屋さん   #pastefail
03:56 justatheory___ joined #perl6
04:06 justatheory_ joined #perl6
04:20 colomon joined #perl6
04:29 zloyrusskiy joined #perl6
04:46 FOAD_ joined #perl6
04:48 ShaneC joined #perl6
04:56 dukeleto the 'next' keyword in NQP seems to have no effect
05:13 quietfanatic joined #perl6
05:14 hercynium joined #perl6
05:24 justatheory joined #perl6
05:35 pdcawley joined #perl6
05:36 dalek nqp-rx: a17b445 | pmichaud++ | src/ (2 files):
05:36 dalek nqp-rx: Add parsing of some basic assertions.
05:36 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/a17b445ee5603392549ec2a3f9306c74d0a4a4e2
05:38 justatheory_ joined #perl6
05:39 pugs_svn r28672 | lwall++ | [STD]
05:39 pugs_svn r28672 | for declaration nodes add in pad and decl entries for pad and declarand
05:39 pugs_svn r28672 | don't allow self-declared placeholders in parameter defaults
05:39 pugs_svn r28672 | add $:foo placeholders to sig
06:01 pmichaud TimToady: are <?before ...>  and <?after ...>  "special" in that they're inlined into a regex?  Or would a grammar still be allowed to override them?
06:02 [particle]1 joined #perl6
06:02 TimToady they're just ordinary methods as far as STD is concerned
06:03 TimToady defined in Cursor
06:03 pmichaud okay
06:03 pmichaud PGE is the same way; wanted to see if I should continue that for the new engine
06:03 TimToady which reminds me, I was going to unlowercase some of the other service methods...
06:03 TimToady but not those
06:04 diakopter r28672: yippee
06:04 TimToady there is, for instance, a _NOTBEFORE method already, for <!foo>
06:04 TimToady diakopter: may still be buggy
06:04 pmichaud if <?after ...> isn't special, how is it to "reverse" the direction of the parse?
06:05 pmichaud wouldn't the method need the ast or parse tree of the ... in order to do that?
06:05 diakopter but Fezzig, there may be rocks ahead.
06:05 TimToady I guess it's special to that extent
06:07 TimToady gimme5 emits _rev nodes for those, so its special that way
06:07 TimToady before doesn't care though
06:07 pmichaud okay
06:07 TimToady could conceivably do it dynamically, but haven't tried
06:08 pmichaud well, it'd be easy to inline <?before ...> to just become a zero width match; might be a performance improvement to be had by doing that
06:08 pmichaud but I'm fine with it continuing to be a method
06:09 TimToady as a data point, STD uses before much, much more than after
06:09 pmichaud right
06:09 pmichaud same for everything I've done
06:09 pmichaud which is partially why I was asking if it's somehow special :)
06:10 TimToady biab & # 15 min or so
06:11 carlin rakudo: say "foo+\\".subst(/ (<!alpha>) /, { sprintf '%%%02X', ord($0) }, :g);
06:11 p6eval rakudo daf221: TIMED_OUT
06:12 carlin Should that not work? Here it just hangs
06:13 pmichaud <!alpha> is zero width
06:13 pmichaud you probably want <-alpha>
06:13 pmichaud rakudo: say "foo+\\".subst(/ (<!alpha>) /, { sprintf '%%%02X', ord($0) }, :g);
06:13 pmichaud rakudo: say "foo+\\".subst(/ (<-alpha>) /, { sprintf '%%%02X', ord($0) }, :g);
06:14 p6eval rakudo daf221: TIMED_OUT
06:14 p6eval rakudo daf221: OUTPUT«foo%2B%5C␤»
06:14 carlin Aha!
06:14 carlin Thanks :-)
06:14 pmichaud <!alpha> means "don't match <alpha> at this point"
06:14 pmichaud <-alpha> means "match a character if <alpha> doesn't match here"
06:20 pdcawley joined #perl6
06:27 TimToady .oO(...)
06:27 FOAD_ joined #perl6
06:27 * pmichaud waves away the clouds forming next to TimToady
06:30 rfordinal left #perl6
06:32 moritz_ good morning
06:33 dalek nqp-rx: 7e3fa98 | pmichaud++ | src/Regex/P6Regex/Grammar.pm:
06:33 dalek nqp-rx: Add parsing of character class assertions.
06:33 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/7e3fa98d28bbeeb74ecf6a627570748181c11730
06:43 diakopter 'tis a latte night
06:43 diakopter i mean
06:43 diakopter leet nightie
06:43 diakopter er
06:43 moritz_ 1337 night? ;-)
06:44 diakopter E2MANYWINE
06:46 dalek book: 5b820d8 | moritz++ | authors.pod:
06:46 dalek book: [authors.pod] description for Moritz (erm, me)
06:46 dalek book: review: http://github.com/perl6/book/commit/5b820d825bccfc5b474133605db901fb2fa879c8
06:47 diakopter book needs the title 'I can haz Perl 6, plz; yip rakudo''
06:54 pugs_svn r28673 | jimmy++ | [zh-cn/syn/S02-bits.pod]added fewer translation to Built-In Data Types
06:59 am0c joined #perl6
07:11 pugs_svn r28674 | lwall++ | [STD] allow placeholders within a where block, even though in a signature
07:24 mariuz joined #perl6
07:25 moritz_ pmichaud: it's been quite some time since you last updated the spectest graph - care to run your magic script in the background for a while?
07:32 dalek nqp-rx: bcdd212 | pmichaud++ |  (5 files):
07:32 dalek nqp-rx: Add support for enumerated character list matching.
07:32 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/bcdd2123e3e87ebfbe5cd2fae818518e333a1f97
07:38 rgrau joined #perl6
07:49 agentzh joined #perl6
07:51 moritz_ jnthn: http://smolder.plusthree.com/app/public_projects/report_details/28742
07:53 TiMBuS joined #perl6
07:55 lumi joined #perl6
08:12 dalek nqp-rx: cef1481 | pmichaud++ | src/ (4 files):
08:12 dalek nqp-rx: Handle negated enumerated charlists.
08:12 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/cef1481ed6d1d27eed273c154e455f102dca4485
08:12 dalek nqp-rx: 1f30c77 | pmichaud++ |  (4 files):
08:12 dalek nqp-rx: Add more backslash sequences: \b, \e, \f, \h, \r, \t, \v and negations.
08:12 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/1f30c77d1730ffe9b2969edf56352e9105e4d307
08:13 sjohnson trying to get trim() into Perl 5 is definitely an uphill battle
08:14 * moritz_ not surprised
08:14 sjohnson i was told this news at the outset
08:14 sjohnson this is harder than getting laid
08:14 sjohnson and i'm still a virgin
08:14 sjohnson .. oh well
08:15 * sjohnson will keep trying
08:24 Matt-W Morning
08:33 sjohnson i had some luck
08:33 sjohnson some guy said it was unlikely, but told me where to start posting msgs, do the patch work
08:33 sjohnson and get the ball rolling
08:33 agentzh joined #perl6
08:34 sjohnson morning Matt-W !
08:34 sjohnson you are the only person I know on the ircs who agrees that perl 5 without a whitespace trimmer is kind of annoying
08:34 sjohnson i thought of a new argument for ppl who say "just write your own regex function".  it is this:  should we then take uc / lc out, because u can use tr// for that?
08:35 * sjohnson laughs maniacally
08:35 carlin What's an example usage of trim?
08:36 carlin Oh I see
08:36 moritz_ sjohnson: uc/lc won't work easily with non-ASCII characters
08:36 sjohnson yet it is in Perl 5
08:36 sjohnson hmm
08:36 * carlin was on the wrong track as to what trim does
08:36 sjohnson nevermind
08:37 sjohnson sorry moritz_  i misread you
08:37 moritz_ erm
08:37 moritz_ sorry
08:37 moritz_ I meant tr/// as an uc/lc replacement
08:37 sjohnson yeah
08:38 sjohnson looks like i am by myself in this
08:38 * sjohnson feels like a homeless alley dog
08:39 moritz_ I'm not arguing against trim, I just invalidate invalid arguments :-)
08:39 sjohnson i need to bring this technology to the people
08:39 sjohnson especially since Python users (imho) are correct in this argument against Perl 5
08:39 sjohnson when they bust out the "whitespace trim" argument
08:41 sjohnson the "bete noire" of Perl 5
08:42 sjohnson ... in my opinion :)
08:42 carlin We trim whitespace by not using Python
08:44 sjohnson moritz_ && carlin, may any of you give me a solid recommendation on how to produce to present my argument, imagining that there is a hypothetical chance it might be implemeneted.  please?
08:45 moritz_ 1) write down why you want it 2) write down why you want it more than other functions that other people want as builtins 3) include a patch that adds it to a core module, preferable Scalar::Util 4) after some years in a core module suggest moving it to "real" core
08:46 dalek nqp-rx: 93f11bb | pmichaud++ | src/Regex/P6Regex/Grammar.pm:
08:46 dalek nqp-rx: Convert := operators to = in P6Regex/Grammar.pm .
08:46 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/93f11bb44e24f3a46057f121789f540028988293
08:46 dalek nqp-rx: f4b488a | pmichaud++ |  (4 files):
08:46 dalek nqp-rx: Add min/max ** quantifiers.  Clean up some tests.
08:46 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/f4b488a729a462a9092f9cb9cfa07088a85e38c9
08:47 masak joined #perl6
08:48 masak good morning, fellow speleologists!
08:48 phenny masak: 03:01Z <Tene> tell masak to look at http://blog.sartak.org/2009/10/jiftys-request-inspector.html
08:48 moritz_ \o/
08:50 sjohnson moritz_: thank you
08:54 sjohnson hi masak
08:55 masak sjohnson: hello sjohnson, you wonderful Perl 6 programmer you
08:55 sjohnson unfortunately i'm nowhere near as smart as you guys
08:55 sjohnson but i am just as excited about it
08:55 sjohnson when it comes to perl 6
08:55 moritz_ smartness is overrated, and hardly measurable
08:55 sjohnson but compliment accepted masak
08:55 masak sjohnson: I don't know how to put this. I'm not smart.
08:55 sjohnson masak: that statement would only be said by a smart man ;)
08:56 masak sjohnson: I was where you was a couple of years ago -- just about to get into Perl 6 programming.
08:56 Matt-W We all start somewhere
08:56 * sjohnson has been using perl 5 for a few years and jumped for joy when i saw what Perl 6 had to offer
08:56 moritz_ I'm with masak on this one. I'm not good with Perl 6 because I might be smart, but because I put a lot of effort into it
08:56 Matt-W And I'm nowhere near the cleverest person here
08:56 sjohnson so at least i have some background
08:56 masak I'm productive with Perl 6 because I try a little every day.
08:57 sjohnson i think i will do my part, and just write my scripts in rakudo
08:57 sjohnson since that seems to be the helpful thing to do, and some ppl have mentioned it
08:57 Matt-W It's incredibly helpful
08:57 masak and fun!
08:57 Matt-W Provided that you report bugs, and questions about the language and libraries
08:58 sjohnson ... and stick camelia posters in public in a tasteful manner
08:58 moritz_ and without wanting to step on pmichaud's toys, but I think he's not writing a very shiny regex engine because he's so smart - he can write one because he wroote another one before it, thought a whole lot about it, pondered design questions for months etc.
08:58 sjohnson perl 6 poster would include "Perl 6:  Coming to a *nix OS near you"
08:59 Matt-W no
08:59 meppl joined #perl6
08:59 Matt-W Because it's for Windows too
09:00 sjohnson told u wasn't smart
09:00 sjohnson *sad face*
09:00 Matt-W jnthn develops Rakudo on Windows!
09:00 sjohnson ... :)
09:00 Matt-W We can't leave out such a huge part of the computer userbase
09:00 * Matt-W -> boring meeting
09:00 sjohnson Matt-W: spike the punch bowl
09:00 sjohnson interesting * 1000
09:03 masak speaking of bug reports...
09:03 masak rakudo: class A { has $s .= new }
09:03 p6eval rakudo daf221: OUTPUT«error:imcc:syntax error, unexpected '\n'␤  in file 'EVAL_23' line 86␤Null PMC access in find_method()␤»
09:03 * masak submits rakudobug
09:04 masak rakudo: class A { method foo() {} }; A.new.foo(42)
09:04 p6eval rakudo daf221: OUTPUT«positional inside named args at position 2␤in method A::foo (/tmp/nrStDB5r0O:2)␤called from Main (/tmp/nrStDB5r0O:0)␤»
09:04 * masak submits LTA rakudobug
09:04 masak rakudo: class A { has $.a; has $.b; method new($a, $b) { self.new(:$a, :$b) } }; say .a, .b for A.new(42, "OH HAI")
09:04 p6eval rakudo daf221: OUTPUT«invalid arg type in named portion of args␤in method A::new (/tmp/WXyq2gkeoa:2)␤called from method A::new (/tmp/WXyq2gkeoa:2)␤called from Main (/tmp/WXyq2gkeoa:0)␤»
09:05 masak above, I tried to delegate to the Object::new method
09:05 masak another attempt:
09:05 masak rakudo: class A { has $.a; has $.b; method new($a, $b) { self.Object::new(:$a, :$b) } }; say .a, .b for A.new(42, "OH HAI")
09:05 p6eval rakudo daf221: OUTPUT«elements() not implemented in class 'Sub'␤in method A::new (/tmp/jMVLQJfBiN:2)␤called from Main (/tmp/jMVLQJfBiN:0)␤»
09:05 masak o.O
09:05 * masak submits rakudobug
09:05 masak both of those should work, no?
09:06 moritz_ rakudo: class A { has $.a; has $.b; method new($a, $b) { self.Object::new(:$a, :$b) } }; say .a, .b for A.new(42, "OH HAI")
09:06 p6eval rakudo daf221: OUTPUT«elements() not implemented in class 'Sub'␤in method A::new (/tmp/CFY8SMYSCI:2)␤called from Main (/tmp/CFY8SMYSCI:0)␤»
09:07 moritz_ masak: aye. There's a (known to me at least) problem with the default new() method disappearing when an own such method is defined
09:07 masak aye.
09:07 masak I knew that too. :)
09:07 masak but now I also know that it cannot be dug up either.
09:07 moritz_ maybe moving Object.new to the setting migth help
09:08 moritz_ from my latest test_summary run:
09:08 moritz_ "total",     27719,     0,   515,  6841, 35075, 38093
09:29 jnthn oh hai
09:29 moritz_ \o/ it's jnthn!
09:30 masak jnthn! \o/
09:31 jnthn sheesh, you folks talked a lot while I slept... :-)
09:31 * jnthn looks confusedly at http://smolder.plusthree.com/app/public_projects/report_details/28742
09:32 jnthn rakudo: say Parameter
09:32 p6eval rakudo daf221: OUTPUT«Parameter()␤»
09:32 moritz_ jnthn: it might have failed to update svn or so
09:32 jnthn rakudo: sub foo($x, $y) { }; say +&foo.signature.params
09:32 moritz_ or maybe a realclean was missing
09:32 p6eval rakudo daf221: OUTPUT«2␤»
09:32 jnthn moritz_: Well, thing is, I didn't change any spectests.
09:33 jnthn moritz_: The spectest only did +&foo.signature.params
09:33 moritz_ aye
09:33 jnthn The only thing that changed is that it was an array of hashes and its now an array of objects.
09:33 jnthn Does anybody else see failures in those two tests?
09:33 moritz_ I'm running it again on that machine now
09:33 moritz_ with a 'make realclean' first
09:34 moritz_ I noticed that most rakudo changes only require a 'make clean', but this branch merge required a 'make realclean'
09:35 jnthn moritz_: The makefile changed.
09:35 jnthn That's my only guess as to the soruce of the issues.
09:35 moritz_ jnthn: yes, but Configure.pl regenerates that
09:35 moritz_ make clean; perl Configure.pl; make # failed after the branch merge
09:37 jnthn Odd.
09:39 jnthn OKies, I need to do @other_task before Rakudo today.
09:40 * jnthn probably shoulda done @other_task yesterday, but was just too into the refactors
09:48 NorwayGeek joined #perl6
10:04 FOAD_ joined #perl6
10:12 pmurias joined #perl6
10:20 flip214 joined #perl6
10:20 moritz_ jnthn: with realclean before everything went fine
10:21 jnthn moritz_: OK, good. Not sure why it was needed...
10:22 flip214 thinking about methods/functions lately again ...
10:23 flip214 Does someone have an opionion whether method calls could be allowed to look in the function list?
10:23 flip214 I read a bit about CLOS some days ago ...
10:24 flip214 and IIUC they just dispatch on the argument types.
10:24 jnthn flip214: I think that some fallback was once spec'd.
10:24 jnthn flip214: And then removed and decided against.
10:24 jnthn Method dispatch is method dispatch. Sub dispatch is sub dispatch.
10:24 flip214 do you know where I can find the discussion?
10:25 masak p6l.
10:26 flip214 beg your pardon?
10:26 jnthn Aye, it will have been discussed there, probably at least once. ;-)
10:26 masak perl6-language.
10:26 jnthn flip214: perl6-language
10:26 jnthn Mailing list.
10:26 jnthn There's archives somewhere... :-)
10:27 flip214 just googling them ...
10:27 flip214 thanks so far
10:27 masak I've been thinking about class metamodels lately. I find it a comforting thought, for some reason, that a grammar may ultimately be defined as a Perl 6 class with a different metamodel.
10:27 masak I want to do that, too.
10:27 masak that is, define my own metaclass.
10:28 mepplock joined #perl6
10:28 moritz_ "I never metamodel not obsessed with reflection" -- chromatic
10:28 masak well, I'm coming in from the practical angle, I believe.
10:29 masak so that I can write something like 'webapp Foo { path '/' { say "OH HAI" } }' or similar.
10:29 moritz_ I've been thinking about a metaclass or representation based ORM system
10:29 masak where 'webapp' is just a fancy keyword meaning 'class, but with my metaclass'.
10:29 masak and 'path' (or whatever) means 'method'.
10:30 jnthn masak: heh heh. Now you AND ruoso want me to support those. :-)
10:30 masak ruoso++
10:30 masak :)
10:30 jnthn masak: I've been refactoring us in that direction for a while.
10:30 masak jnthn++
10:30 moritz_ http://use.perl.org/~Ovid/journal/39728
10:30 jnthn masak: We're not there *yet*, and we'll need pmichaud++'s protoregex work too.
10:30 masak mmm.
10:31 jnthn masak: But "we can has by Rakudo *" is I think quite likely.
10:31 flip214 nothing found about method call => function call. does anybody still remember something about that?
10:31 masak Breave New World.
10:31 masak flip214: I'll dig a bit, hold on.
10:31 moritz_ man, protoregexes will make JSON::Tiny so beautiful it'll make you weep
10:32 moritz_ token value:sym<null> { <sym> } ; method value:sym<null>($/) { make undef }
10:33 jnthn Wow, yes.
10:36 moritz_ currently it does smart matching in the action method, even though a hash would feel "righter". But proto regexes trump both
10:43 moritz_ http://blog.woobling.org/2009/10/roles-and-delegates-and-refactoring.html nothingmuch++'s answer to the roles discussion
11:03 colomon I tried to read that about three times yesterday, and my eyes glazed over before the end every time.
11:06 moritz_ reading the first two thirds is still worth it :-)
11:43 pmurias joined #perl6
11:57 synth joined #perl6
12:04 snearch joined #perl6
12:08 PZt joined #perl6
12:09 MrKrueger joined #perl6
12:09 masak is the category 'precircumfix:' theoretically possible?
12:09 moritz_ sure, it's just a case of prefix
12:10 moritz_ precircumfix:<a b> rougly translates to prefix:<a b> { a ~ b <statementlist> } or so
12:10 moritz_ do you want to parse perl 5 optrees? :-)
12:14 MrKrueger joined #perl6
12:15 jogla joined #perl6
12:15 masak moritz_: no, just a random thought that struck me.
12:15 moritz_ ok
12:22 arthur-_ joined #perl6
12:26 lumi joined #perl6
12:26 payload joined #perl6
12:45 xinming joined #perl6
12:50 JimmyZ joined #perl6
12:58 pmurias perl6: say "a" eq "b"
12:59 p6eval rakudo daf221, sprixel 28674: OUTPUT«0␤»
12:59 p6eval ..elf 28674, pugs: OUTPUT«␤»
12:59 pmurias perl6: say "a" eq "a"
12:59 p6eval elf 28674, pugs, rakudo daf221, sprixel 28674: OUTPUT«1␤»
12:59 pmurias is that correct?
12:59 masak truth is more absolute than falsehood, it seems.
12:59 masak I think it should be 0 and 1, respectively.
13:00 moritz_ 0 is the correct output for False
13:00 masak those are the stringifications of Bool::False and Bool::True, no?
13:00 moritz_ yes
13:00 moritz_ because it's enum Bool <False True>;
13:00 masak aye
13:00 moritz_ that automatically implies that the values for False and True are 0 and 1
13:01 moritz_ perl6: say True.perl
13:01 p6eval pugs, rakudo daf221: OUTPUT«Bool::True␤»
13:01 p6eval ..elf 28674: OUTPUT«Can't locate object method "perl" via package "True" (perhaps you forgot to load "True"?) at (eval 123) line 3.␤ at ./elf_h line 5881␤»
13:01 p6eval ..sprixel 28674: OUTPUT«Sprixel Error: real method calls NYI␤»
13:01 moritz_ perl6: say True.name
13:01 p6eval rakudo daf221: OUTPUT«Method 'name' not found for invocant of class ''␤»
13:01 p6eval ..pugs: OUTPUT«*** No such method in class Bool: "&name"␤    at /tmp/CYhh2d7xV2 line 1, column 5 - line 2, column 1␤»
13:01 p6eval ..elf 28674: OUTPUT«Can't locate object method "name" via package "True" (perhaps you forgot to load "True"?) at (eval 123) line 3.␤ at ./elf_h line 5881␤»
13:01 p6eval ..sprixel 28674: OUTPUT«Sprixel Error: real method calls NYI␤»
13:01 moritz_ wow, all wrong :-)
13:02 masak time to write some code :)
13:15 pugs_svn r28675 | pmurias++ | [mildew-js] passes t/01-sanity/03-equal.t
13:19 masak I must confess something. In thinking of examples for the book, I re-discovered SHRDLU: http://hci.stanford.edu/winograd/shrdlu/
13:20 JimmyZ oh hai, #perl6
13:20 masak I'm not yet sure the example is small enough for the book, but man do I want to implement that.
13:20 masak I've started here: http://github.com/masak/shrdlu
13:20 masak JimmyZ: \o
13:20 JimmyZ masak: 下午好,好久不见咯
13:21 masak 好久不见 indeed.
13:22 moritz_ masak: I miss you in #perl6book
13:22 * masak goes there
13:24 dalek book: 3567eef | moritz++ |  (2 files):
13:24 dalek book: move preface.pod to src/
13:24 dalek book: review: http://github.com/perl6/book/commit/3567eefa65feea44d3a88294b75596b1a995057c
13:24 dalek book: 80a7d80 | moritz++ | outline.pod:
13:24 dalek book: added a basic, rough outline
13:24 dalek book: review: http://github.com/perl6/book/commit/80a7d80dcbffe2361b866feecaca90cb7cf73794
13:26 szabgab joined #perl6
13:29 masak` joined #perl6
13:31 iblechbot joined #perl6
13:32 lumi joined #perl6
13:36 zloyrusskiy joined #perl6
13:39 SmokeMachine joined #perl6
13:40 frew__ joined #perl6
13:47 jogla joined #perl6
13:48 pugs_svn r28676 | pmurias++ | [mildew-js] added test-js make target
13:49 pmurias joined #perl6
13:55 pmichaud good morning, #perl6
13:55 jnthn morning, pmichaud
13:56 Gothmog_ joined #perl6
13:58 KyleHa joined #perl6
13:59 Confield joined #perl6
14:01 Matt-W hi pmichaud
14:14 alester joined #perl6
14:21 Psyche^ joined #perl6
14:37 felipe joined #perl6
14:38 dalek nqp-rx: f12bd0c | pmichaud++ | src/ (2 files):
14:38 dalek nqp-rx: Refactor mark handling in Cursor.  Fixes a bunch of greedy quantifier tests.
14:38 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/f12bd0c7108b41ae067b52ba3af97b5899e66c9b
14:45 masak two questions about -n and -p in Perl 6:
14:45 masak (1) how do I emulate the old, and very nice $line1 .. $line2 behavior? and /regex1/ .. /regex2/?
14:46 moritz_ ff for the latter, I suppose
14:46 masak (2) if I want to declare variables in BEGIN which I then want to use in the readline loop (and I'm running under strict mode), are contextual variables my best bet?
14:47 masak moritz_: it seems to me ff supplies the latter syntax quite well, but that the former syntax will be slightly longer in Perl 6.
14:47 masak moritz_: {$*IN.ins == $line1} ff {$*IN.ins == $line2} or something.
14:48 pmichaud easier would be a smartmatch
14:48 pmichaud $*IN.lineno ~~ $line1 .. $line2
14:49 masak ooh, nice.
14:49 ruoso joined #perl6
14:49 pmichaud (modulo whatever .lineno is called)
14:49 moritz_ .ins
14:50 PerlJam .ins is an odd name
14:50 masak I like it.
14:50 moritz_ or was it .outs?
14:51 pmichaud if someone writes    <[z..a]>  in a regex, (1) is it an error, (2) if yes, what's the error message?
14:51 masak there's also $*OUT.outs
14:51 moritz_ pmichaud: in mainland Perl 6 'z'..'a' is just an empty range
14:51 masak rakudo: 'z'..'a'
14:51 p6eval rakudo daf221:  ( no output )
14:51 moritz_ std: / <[z..a]> /
14:52 p6eval std 28676: OUTPUT«ok 00:02 96m␤»
14:52 masak aye. should be the same in regexland unless specced otherwise.
14:52 pmichaud std parsing of <[...]>  is pretty "loose" at the moment
14:52 masak nevertheless. :)
14:52 moritz_ then keep that question for TimToady ;-)
14:52 pmichaud std: / <[z ......... booga booga - ]> /
14:52 p6eval std 28676: OUTPUT«ok 00:01 95m␤»
14:53 masak rakudo: / <[z ......... booga booga - ]> /
14:53 p6eval rakudo daf221: OUTPUT«src/gc/api.c:253: failed assertion 'PObj_is_PMC_TEST(obj)'␤Backtrace - Obtained 32 stack frames (max trace depth is 32).␤/home/p6eval//p1/lib/libparrot.so.1.6.0 [0x2b6984a87db3]␤/home/p6eval//p1/lib/libparrot.so.1.6.0(Parrot_confess+0x68)
14:53 p6eval ..[0x2b6984a87ec8]␤/home/p6eval//p1/lib/libpa…
14:53 masak \o/
14:53 pmichaud rakudo:  / <[a-z]> /
14:53 p6eval rakudo daf221: OUTPUT«src/gc/api.c:253: failed assertion 'PObj_is_PMC_TEST(obj)'␤Backtrace - Obtained 32 stack frames (max trace depth is 32).␤/home/p6eval//p1/lib/libparrot.so.1.6.0 [0x2af6c97a0db3]␤/home/p6eval//p1/lib/libparrot.so.1.6.0(Parrot_confess+0x68)
14:53 p6eval ..[0x2af6c97a0ec8]␤/home/p6eval//p1/lib/libpa…
14:53 pmichaud that looks to me like a p6eval issue
14:53 pmichaud or an exceptions problem
14:53 moritz_ $ >perl6 -e '/ <[a-z]> /'
14:53 moritz_ Attributes of type 'struct llsig_element **' cannot be subclassed from a high-level PMC.
14:53 moritz_ still LTA
14:54 pmichaud $ ./perl6 -e '/ <[a-z]> /'
14:54 pmichaud perl6regex parse error: Unescaped '-' in charlist (use '..' or '\-') at offset 5, found '-'
14:54 pmichaud in Main (src/gen_setting.pm:3469)
14:54 pmichaud hmmmmmmm.
14:55 pmichaud $
14:55 moritz_ pmichaud: are you on latest master?
14:55 pmichaud no.
14:55 moritz_ since llsig is a new concept, it might well make a difference
14:56 jnthn What on earth is it trying to do with a sig there. :-/
14:56 moritz_ anyway, we need masak for that one ;-)
14:56 masak what? what am I supposed to do? :P
14:56 moritz_ bug it!
14:57 jnthn .oO( oh BUGger )
14:57 * masak bugs it!
14:57 mili joined #perl6
14:57 pmichaud the "Unescaped '-' in charlist" is the correct output.
14:58 lumi joined #perl6
15:03 nihiliad joined #perl6
15:04 pmichaud hmmmm
15:04 pmichaud for some reason "git pull" isn't giving me the sigguts.h file from src/pmc
15:04 masak this sounds familiar.
15:04 KyleHa pmichaud: Having trouble building?
15:05 kidd_ joined #perl6
15:05 masak pmichaud: does your 'git status' show a clean checkout?
15:05 moritz_ pmichaud: git status # make realclean deleted it
15:05 jferrero joined #perl6
15:12 carlin After pulling/rebuilding, code that used to work fine now gives me
15:12 jferrero joined #perl6
15:12 carlin Method '!set_default_param_type' not found for invocant of class 'Signature'
15:13 moritz_ carlin: does 'make spectest' work?
15:13 NorwayGeek joined #perl6
15:15 carlin moritz_: Yip, it's running the spectests
15:15 moritz_ ok, what's the failing code then?
15:16 envi^home joined #perl6
15:17 carlin moritz_: My mwbot's example.pl, so it could be anything in there
15:17 NorwayGeek joined #perl6
15:18 NorwayGeek joined #perl6
15:18 carlin I'll try and narrow it down
15:19 moritz_ wtf? I just did 'make' in rakudo, and 'make install' recompiles actions.pm
15:20 KyleHa I've been trying to figure out the '-j 3' thing, but my make-fu is too weak.
15:20 KyleHa Found a bug in Configure.pl, though.
15:22 moritz_ just reported both build bugs
15:24 moritz_ carlin: I just get "Method 'postcircumfix:[ ]' not found for invocant of class 'Failure'
15:24 moritz_ in Main (src/gen_setting.pm:191)"
15:25 jnthn If you have any pre-compiled modules hanging around, please be sure you toss those and re-compile them.
15:28 carlin jnthn++
15:28 carlin after the deleting the pirs out of JSON::Tiny all is good
15:29 jnthn Note that after my next branch and the merge of that, it'll be the same story.
15:29 dalek rakudo: 1f2e5f4 | (Kyle Hasselbacher)++ | Configure.pl:
15:29 dalek rakudo: [Configure.pl] do or die idiom fix
15:29 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/1f2e5f4ea67166d73ef7a46417a16f7de0934d8c
15:29 jnthn Basically, the PIR we're generating for signature and binding related stuff is changing. A lot.
15:30 moritz_ that's fine. People who want stability can use releases ;-)
15:31 lumi joined #perl6
15:31 [particle] no make realclean?
15:31 carlin Now that I know what to do to fix it, I don't mind :-)
15:32 [particle] that knowledge is best documented somewhere.
15:33 masak "in case of sufficiently large changes in Rakudo, rebuild your PIR files"
15:36 abra joined #perl6
15:36 jnthn [particle]: If people have make realclean targets, or even make clean targets, for their projects built on Rakudo, I expect this would not be an issue.
15:37 * moritz_ rm -rf ~/.perl6/lib/ from time to time
15:38 pmichaud yes, my "git status" shows a clean checkout
15:38 carlin perhaps a way for rakudo to know if the pir its reading is older than its last breaking change?
15:38 moritz_ too much hassle
15:39 pmichaud hmm, now I have a sigguts.h
15:39 pmichaud oh oh oh
15:39 pmichaud I know the problem
15:39 pmichaud make realclean removes all *.h files from src/pmc
15:39 masak nod.
15:40 pmichaud at least, the old one did.
15:40 moritz_ src/pmc/pmc_*.h and src/ops/*.h here, it seems
15:40 pmichaud yes, but previously I think it was   src/pmc/*.h
15:41 pmichaud so if I do a "make realclean" using an older makefile, I lose sigguts.h from my working copy
15:41 pmichaud i.e., I did:   "git pull; make realclean; perl Configure.pl --gen-parrot"
15:41 eMaX joined #perl6
15:42 moritz_ that explains a lot
15:42 jnthn pmichaud: Ah, yes, I changed the makefile...
15:43 jnthn Admittedly, the fact that people pulled and then realcleaned hadn't really occurred to me. :-/
15:43 pmichaud normally I don't realclean, but someone said it was needed :-)
15:43 moritz_ yes, me
15:43 zaphar_ps joined #perl6
15:43 jnthn hehe
15:43 moritz_ but that was bogus actually
15:44 moritz_ it was the broken parallel build that prevented my build to work
15:44 jnthn Well, sorry for causing trouble. :-)
15:44 moritz_ so I thought "let's try a realclean" ;-)
15:44 moritz_ and after that I tried a sequential build
15:44 moritz_ and thought "oh, the realclean helped"
15:44 moritz_ ;-)
15:45 moritz_ oh wow. perlsyn has not a single example of assignment to an array
15:47 pmichaud hardly anybody ever does that.
15:47 pmichaud :-)
15:47 moritz_ oh, perlintro does, though
15:52 TimToady O HAI OH GOES EYE MOOSE
15:54 jnthn OH HAIよう ございます
15:55 TimToady actaully, I misspelled it, shoulda been MOSS
15:55 * diakopter further opens TimToady's intraveneous coffee valve
15:55 jnthn Phew, I've finished my @other_task
15:55 rfordinal joined #perl6
15:56 masak now for our @rakudo_task? :)
15:57 jnthn Indeed.
15:57 jnthn .oO( scope_declarator:joke )
15:58 arnsholt rakudo: say "ø" ~~ m/:a o/
15:58 p6eval rakudo daf221: OUTPUT«␤»
15:58 arnsholt D'oh.
15:59 masak D'øh.
15:59 arnsholt rakudo: "ø" ~~ m/:a o/; say $/.perl
15:59 p6eval rakudo daf221: OUTPUT«Match.new(␤ # WARNING: this is not working perl code␤ # and for debugging purposes only␤ ast  => "",␤ Str => "",␤ from => 1,␤ to   => -2,␤)␤»
16:00 masak that's a failed Match.
16:00 arnsholt Yeah, a match from 1 to -2 doesn't look very successful =)
16:00 masak rakudo: say ?("ø" ~~ m/:a o/)
16:00 p6eval rakudo 1f2e5f: OUTPUT«0␤»
16:00 masak can't recall whether PGE implements :a...
16:00 arnsholt Fun
16:01 arnsholt Good question
16:01 * arnsholt goes digging
16:05 diakopter rakudo: say "aaa" ~~ m/a ** 3..2/;
16:05 p6eval rakudo 1f2e5f: OUTPUT«␤»
16:06 diakopter rakudo: say "aaa" ~~ m/a ** 2..3/;
16:06 p6eval rakudo 1f2e5f: OUTPUT«aaa␤»
16:06 jan___ joined #perl6
16:07 quietfanatic rakudo: say "aaa" ~~ m/a **? 2..3/
16:07 p6eval rakudo 1f2e5f: OUTPUT«aa␤»
16:07 arnsholt rakudo: say "{foo}" ~~ m/'{' ~ '}' foo/;
16:07 p6eval rakudo 1f2e5f: OUTPUT«Could not find non-existent sub foo␤»
16:07 arnsholt rakudo: say "{foo}" ~~ m/'{' ~ '}' 'foo'/;
16:07 p6eval rakudo 1f2e5f: OUTPUT«Could not find non-existent sub foo␤»
16:07 pmichaud ( watch the curlies inside of double quotes)
16:07 [particle] arnsholt: you're putting foo in a closure
16:07 arnsholt Oh, that's magic? Noted
16:08 pmichaud rakudo:  say "{5+4}";
16:08 p6eval rakudo 1f2e5f: OUTPUT«9␤»
16:08 arnsholt rakudo: say "qfooq" ~~ m/'q' ~ 'q' 'foo'/;
16:08 p6eval rakudo 1f2e5f: OUTPUT«qfooq␤»
16:08 * [particle] <3 perl 6
16:10 diakopter rakudo: say "{/./}"
16:10 p6eval rakudo 1f2e5f: OUTPUT«_block58␤»
16:11 masak rakudo: class Perl6 { method love($x) { say self.perl, " <3 $x" } }; Perl6.love("[particle]")
16:11 p6eval rakudo 1f2e5f: OUTPUT«Perl6 <3 [particle]␤»
16:11 masak :)
16:11 [particle] rakudo: my $tag = 'p'; say '<p>text</p>' ~~ m/'<' $tag '>' $<inner=.*?> '</' $tag '>'/;
16:11 p6eval rakudo 1f2e5f: OUTPUT«Null PMC access in get_string()␤in regex PGE::Grammar::_block56 (/tmp/buHImFX19k:1)␤called from Main (/tmp/buHImFX19k:0)␤»
16:11 masak huh.
16:11 [particle] did i goof on $<inner=...> ?
16:11 masak oh, it's the variables thing.
16:12 [particle] ah
16:12 masak [particle]: NYI
16:12 pmichaud lots of issues there :-)
16:12 moritz_ variable interpolation for one
16:12 pmichaud $<inner=.*?>  isn't valid
16:12 moritz_ NYI in regexes
16:12 pmichaud $<inner>=[.*?]
16:12 [particle] rakudo: my $tag = 'p'; say '<p>text</p>' ~~ m/'<' {$tag} '>' $<inner>=[.*?] '</' {$tag} '>'/;
16:12 p6eval rakudo 1f2e5f: OUTPUT«Confused at line 2, near "$tag} '>' "␤in Main (src/gen_setting.pm:191)␤»
16:12 masak good try.
16:12 pmurias joined #perl6
16:12 masak but variable interpolation in regex really isn't implemented.
16:13 * [particle] </3 rakudo :(
16:13 masak awww.
16:13 pmichaud primarily because PGE doesn't know about lexicals yet
16:13 carlin moritz_: the postcircumfix error you got with mwbot is because the $page it was trying to get didn't exist
16:13 pmichaud because lexicals weren't really available when PGE was written :)
16:13 * carlin needs better error handling
16:13 moritz_ pmichaud: will it ever?
16:13 jnthn std: :(Int $x = 42 where { $x >= 42 })
16:13 p6eval std 28676: OUTPUT«[31m===[0mSORRY![31m===[0m␤Unable to parse signature; couldn't find final ')' at /tmp/kJzIDPFyC4 line 1:␤------> [32m:(Int $x = 42 [33m⏏[31mwhere { $x >= 42 })[0m␤    expecting any of:␤      bracketed infix␤  infix stopper␤    param_sep␤      standard stopper␤
16:13 p6eval ..terminator␤Other potential …
16:13 jnthn std: :(Int $x where { $x >= 42 } = 42)
16:14 p6eval std 28676: OUTPUT«ok 00:02 102m␤»
16:14 * [particle] waits for an .innerHTML method, for no good reason
16:14 jnthn ah, that way
16:14 jnthn std: :(Int $x? where { $x >= 42 })
16:14 p6eval std 28676: OUTPUT«ok 00:02 102m␤»
16:14 pmichaud PGE learn about lexicals?  not likely.
16:14 jnthn std: :(Int $x! where { $x >= 42 })
16:15 p6eval std 28676: OUTPUT«ok 00:02 102m␤»
16:15 pmichaud too much work for too little benefit.  The nqp regex engine understands lexicals naturally, since it's written using PAST.
16:15 moritz_ let me guess.. jnthn is writing Signature.perl? ;-)
16:15 jnthn moritz_: oh how'd you guess? :-)
16:15 dalek nqp-rx: 0b0e14d | pmichaud++ |  (6 files):
16:15 dalek nqp-rx: Add greedy form of separator quantifier.  Clean up charlist a bit.
16:15 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/0b0e14d57436c134091c83398bebe89883710025
16:16 moritz_ jnthn: I considered doing it myself :-)
16:16 jnthn moritz_: I'm writing in in Perl too. ;-)
16:16 moritz_ that I considered too ;-)
16:16 jnthn And I expect fixing at least one masakbug.
16:16 [particle] one he hasn't submitted?
16:16 jnthn masak? not submit a bug?
16:16 jnthn <confused look>
16:16 moritz_ masak is buggy? ;-)
16:17 [particle] :)
16:17 masak hm. oh hai.
16:17 * masak backlogs quickly
16:17 jnthn masak: IT WAS COMPLIMENTS ALL THE WAY DOWN.
16:17 jnthn ;-)
16:17 masak oh. :)
16:17 masak for a while there, I thought I had missed a possible bug to submit... :P
16:18 pmurias masak: i seen you mention a perl6 book what's the state of that?
16:18 [particle] join #perl6book
16:18 moritz_ pmurias: it's beeing planned
16:18 moritz_ and written, with a bit of luck ;-)
16:18 moritz_ and effort
16:18 masak pmurias: there's a repo. it's in the /topic of that channel.
16:18 jnthn masak: If you can find the ticket where you complained about Signature.perl generating badness, then I'm probably fixing it at the moment. :-)
16:19 masak jnthn: I'll have a look. I think there are several.
16:19 jnthn masak: I'm re-writing it in Perl 6 now, in the setting.
16:20 jnthn So it'll be easier to fix 'em.
16:20 masak \o/
16:22 gbacon joined #perl6
16:23 masak jnthn: #68524 #68578 #69492 #69516
16:24 pmurias [particle]: where?
16:24 moritz_ freenode
16:24 [particle] freenode
16:25 jnthn masak: wow, epic ticketage
16:26 masak yup.
16:26 masak there are others that are about signatures, but these are the ones I found about signature representations.
16:26 * moritz_ expects quite a few tickets assigned to him in the new future
16:26 [particle] is that based on old future experience?
16:27 jnthn moritz_: oh hai we can has test for signature introspection too? ;-)
16:27 dalek nqp-rx: b7e9863 | pmichaud++ |  (2 files):
16:27 dalek nqp-rx: Add minimal form of quantifier by separator.  Update STATUS.
16:27 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/b7e98630872c8020228c5e0e436c9fb37a1eb291
16:27 moritz_ jnthn: we might, soon ;-)
16:27 jnthn \o/
16:28 pmichaud I'm really liking the way nqp-rx is turning out
16:28 cdarroch joined #perl6
16:28 justatheory joined #perl6
16:28 [particle] me too, it looks easy to hack
16:28 pmichaud I think I just need capturing and non-capturing subrules, and then I can bootstrap
16:28 jnthn pmichaud: Me too - I've been watching the commits and it's like, wow.
16:29 masak aye.
16:29 moritz_ rakudo: my $x := :($a, Int $b, :$c); say $x.perl;
16:29 p6eval rakudo 1f2e5f: OUTPUT«too few arguments passed (0) - 5 params expected␤in Main (/tmp/Qabh4AzEiT:0)␤»
16:29 masak pmichaud's been keeping busy.
16:29 jnthn moritz_: Signature literals don't work yet.
16:29 jnthn moritz_: I expect that'll be fixed in the near future.
16:29 moritz_ jnthn: that's what I thought. Just wanted to check; would've made testing easier
16:31 [particle] what is this, the fourth iteration of a regular expression engine in parrot?
16:32 [particle] it is really showing its maturity
16:32 moritz_ it's the Best Iteration So Far
16:39 moritz_ rakudo: my sub a($x, Int $y?, :$z) { }; say ~(@l>>.optional)
16:39 p6eval rakudo 1f2e5f: OUTPUT«Symbol '@l' not predeclared in <anonymous> (/tmp/ZD2b0iUexu:2)␤in Main (src/gen_setting.pm:191)␤»
16:39 moritz_ rakudo: my sub a($x, Int $y?, :$z) { }; say ~(&a.signature.params>>.optional)
16:39 p6eval rakudo 1f2e5f: OUTPUT«0 2048 2048␤»
16:39 moritz_ jnthn: might I ask for an explanation? ;-)
16:40 moritz_ rakudo: my sub a($x, Int $y?, :$z) { }; say (&a.signature.params>>.optional).perl
16:40 p6eval rakudo 1f2e5f: OUTPUT«[0, 2048, 2048]␤»
16:40 moritz_ hey, testing does find bugs, even in jnthn++'s code ;-)
16:41 pugs_svn r28677 | moritz++ | [t/spec] first real signature introspection tests
16:41 jnthn Hey, the spec only promises that it returns a true value. :-P
16:41 moritz_ no, it promises True
16:42 jnthn aww
16:42 jnthn optional       True if the parameter is optional
16:42 moritz_ I read True as meaning Bool::True
16:42 jnthn Well, it can go either way :-)
16:43 jnthn Heh, let's fix it. If only because you won't be the first person to ask.
16:43 jnthn erm
16:43 jnthn the last
16:43 jnthn you were the first :-)
16:43 moritz_ :-)
16:43 jnthn moritz_: Just write a method new in parameter that booleanizes them I guess :-)
16:44 moritz_ oh, it's in the setting? shiny...
16:44 jnthn Parameter is, yeah.
16:44 meppl joined #perl6
16:46 jnthn Meaning we can't introspect signatures in the stage 1. But I'm not so worried about that now.
16:52 pugs_svn r28678 | kyle++ | [t/spec] Test for RT #68524
16:52 iblechbot joined #perl6
16:53 masak g'ah! pmichaud makes commits to pct-rx faster than I can read them! :)
16:54 pmichaud masak: I could slow down.
16:54 masak nono, it's fine. :)
16:54 masak keep going.
16:54 masak sooner or later you'll have to go to sleep. I'll catch up then.
16:54 pmichaud at some point I will pause to write a blog post about what I'm doing
16:54 pmichaud I'm on weird sleep cycles atm, though.  Last night I was up to 4am coding.
16:54 jnthn +Things that work (2009-10-09, 16h23 UTC): # I SO love how the time is included :-)
16:54 pmichaud Then up again at 9am for more :)
16:55 masak pmichaud++
16:55 masak greedy implementation :)
16:55 pmichaud and I have the house to myself most of tomorrow and Sunday :)
16:55 masak sounds promising.
16:57 pmurias perl6: my $foo = ::Array;$foo.push(1);say $foo.perl;
16:57 pmurias perl6: my $foo = ::Array.new;$foo.push(1);say $foo.perl;
16:57 p6eval elf 28678: OUTPUT«Global symbol "$Array" requires explicit package name at (eval 124) line 3.␤ at ./elf_h line 5881␤»
16:57 p6eval ..sprixel 28677: OUTPUT«Sprixel Error: TypeError: Cannot read property 'TEXT' of undefined␤»
16:57 p6eval ..pugs: OUTPUT«[1,]␤»
16:57 p6eval ..rakudo 1f2e5f: OUTPUT«Array␤»
16:57 p6eval sprixel 28677: OUTPUT«Sprixel Error: TypeError: Cannot read property 'TEXT' of undefined␤»
16:57 p6eval ..rakudo 1f2e5f: OUTPUT«[1]␤»
16:57 p6eval ..pugs: OUTPUT«*** Can't modify constant item: VUndef␤    at /tmp/OS4Lgrnpdu line 1, column 23-35␤»
16:57 p6eval ..elf 28678: OUTPUT«Global symbol "$Array" requires explicit package name at (eval 125) line 3.␤ at ./elf_h line 5881␤»
16:58 pmurias jrockway: when will App::Persistent be CPANised?
16:58 masak pmichaud: I might have said it already, but I think 'frugal' is much nicer than 'eager'. the latter is far too close to 'greedy' in connotation-space.
16:59 pmichaud masak: TimToady gets credit for that :)
16:59 masak ah, I should have guessed. :)
16:59 pmichaud it's also nice because 'f' and 'g' are adjacent
16:59 masak and that's good because...?
16:59 moritz_ you can ++ the one into the other
16:59 masak oh ouch. :)
17:00 pmichaud yes, the pattern does break with 'r' (ratchet)
17:00 pmichaud oh well.  :)
17:01 masak you should name it 'hatchet' :P
17:01 pmichaud Don't tempt TimToady :)
17:01 pmichaud "You think that name is cute today..."
17:01 masak too late. :) I hear he reads this channel.
17:02 pmichaud anyway, I tend to try to make my code match the spec or description whenever possible.  When PGE was written, S05 always used the term "eager", so that's what I used in the code :)
17:02 masak aye.
17:02 masak makes sense.
17:04 pmichaud afk, lunch
17:05 masak time for supper here. :)
17:05 jnthn oh yeah, food...
17:06 Tene I can't have food until an hour later than usual.  Teaching an online class in the wrong time zone.
17:06 jnthn Aww.
17:11 dalek rakudo: 174e0d6 | moritz++ | src/setting/Parameter.pm:
17:11 dalek rakudo: boolify attributes in Parameter
17:11 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/174e0d61c1630183e9f691d5eb0c2e9684c6ee57
17:13 jnthn moritz_: yay :-)
17:13 jnthn moritz_: My patch is almost ready too.
17:14 pugs_svn r28679 | kyle++ | [t/spec] Test for RT #68578
17:14 KyleHa That one looks fixed to me.  Can someone check if my tests are bogus?
17:15 jnthn std: sub foo(:$) {};
17:15 stephenlb joined #perl6
17:15 p6eval std 28677: OUTPUT«ok 00:01 99m␤»
17:15 jnthn lol
17:15 jnthn You actually *can* have an anonymous named parameter.
17:16 jnthn KyleHa: The explanation is bogus, but the test is OK.
17:17 KyleHa What's a good explanation?
17:17 jnthn s/Can't pass block that doesn't do Callable/Can't pass something that isn't typed as returning Callable/
17:17 KyleHa OK, thanks.
17:17 jnthn Callable &x = I want something returning Callable.
17:17 jnthn Callable &x = like Callable[Callable] $x
17:17 [particle] std: sub foo(: $) {};
17:17 p6eval std 28677: OUTPUT«ok 00:01 99m␤»
17:17 [particle] jnthn: which is :$ parsing as?
17:17 jnthn [particle]: oh ouch
17:17 jnthn heck knows.
17:18 [particle] right.
17:18 jnthn [particle]: But I somehow down invocant sep
17:18 jnthn Since there's nothing before it.
17:18 jnthn std: sub foo(: Num $) { }
17:18 p6eval std 28677: OUTPUT«ok 00:01 99m␤»
17:18 jnthn oh?
17:18 jnthn heh
17:18 jnthn A very zen separation.
17:21 jnthn std: sub foo($a, :$) { }
17:21 p6eval std 28679: OUTPUT«ok 00:02 97m␤»
17:21 jnthn Hmm. It could be going either way.
17:21 jnthn (for just :(:$)
17:21 jnthn )
17:25 [particle] std: sub($, :$) {}
17:25 p6eval std 28679: OUTPUT«[31m===[0mSORRY![31m===[0m␤Obsolete use of $, variable; in Perl 6 please use .join() method instead at /tmp/yGpyUMAeRP line 1:␤------> [32msub($,[33m⏏[31m :$) {}[0m␤FAILED 00:01 96m␤»
17:25 [particle] std: sub a($, :$) {}
17:25 p6eval std 28679: OUTPUT«ok 00:02 97m␤»
17:25 [particle] std: sub ($, :$) {}
17:25 p6eval std 28679: OUTPUT«ok 00:01 97m␤»
17:26 jnthn foo( is always a call
17:26 [particle] yep, messed that up
17:26 jnthn :-)
17:26 [particle] but, anonymous is not a problem in perl 6.
17:26 jnthn Yay. Signature.perl re-written in Perl 6. :-)
17:26 jnthn And fixes 3 tickets.
17:27 jnthn Which given the queue now stands at well over 500...is much needed.
17:29 zloyrusskiy joined #perl6
17:33 dalek rakudo: 489f5d1 | jonathan++ |  (3 files):
17:33 dalek rakudo: Implement Signature.perl in the setting, using the introspection interface. Fix three RT tickets along the way.
17:33 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/489f5d1c58fd8dc7a0c0b0ab0bbd3accbb889526
17:33 dalek rakudo: 03f82dd | jonathan++ | :
17:33 dalek rakudo: Merge branch 'master' of git@github.com:rakudo/rakudo
17:33 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/03f82dd819c008f79d2154af703f051e7d0c49ca
17:37 pugs_svn r28680 | kyle++ | Fix test description (jnthn++)
17:37 pugs_svn r28681 | kyle++ | [t/spec] unfudge newly passing test
17:48 pugs_svn r28682 | kyle++ | [t/spec] Test for RT #69516
18:03 jogla joined #perl6
18:10 cotto_work joined #perl6
18:15 pugs_svn r28683 | lwall++ | [CORE.setting] add Parameter type
18:15 pugs_svn r28683 | [STD] enhance LTA messages about malformed defaults, invocants
18:15 pugs_svn r28683 | [STD] allow infix operators to see the current precedence limiter
18:19 ispy_ joined #perl6
18:26 jogla joined #perl6
18:36 moritz_ std: sub b(:x($a)! is rw)
18:36 p6eval std 28683: OUTPUT«[31m===[0mSORRY![31m===[0m␤Missing block at /tmp/OJ65qQemsa line 1 (EOF):␤------> [32msub b(:x($a)! is rw)[33m⏏[31m<EOL>[0m␤    expecting any of:␤     block␤  routine_def␤        terminator␤     trait␤    whitespace␤FAILED 00:01 97m␤»
18:36 moritz_ std: sub b(:x($a)! is rw) { }
18:36 p6eval std 28683: OUTPUT«ok 00:01 97m␤»
18:36 moritz_ rakudo: sub b(:x($a)! is rw) { }
18:36 p6eval rakudo 03f82d:  ( no output )
18:38 jnthn oh, I maybe missed the "is rw" thingies.
18:38 jnthn in Signature.perl
18:38 moritz_ rakudo: sub b(:x(y($a))! is rw) { }
18:39 p6eval rakudo 03f82d: OUTPUT«Unable to parse multisig; couldn't find final ')' at line 2, near ":x(y($a))!"␤in Main (src/gen_setting.pm:191)␤»
18:39 moritz_ for :x($y) the .named_names returns only x, not y - is that correct?
18:39 jnthn moritz_: I believe so
18:40 jnthn moritz_: :x(:y($x)) should (when we can parse it - not yet) give back x and y though.
18:40 moritz_ jnthn: right
18:40 jnthn Actually I'm currently refactoring a couple of things so we can store and process those.
18:41 jnthn And also so type captures can get stored in the signature.
18:41 jnthn But now is nom time. :-)
18:41 moritz_ good nomming to you
18:44 lumi joined #perl6
18:45 moritz_ jnthn: I think it might make sense to provide .positional instead of .named, since positionals can also be named
18:50 pugs_svn r28684 | moritz++ | [t/spec] more signature introspection
18:54 diakopter "What the research team found was that the TDD teams produced code that was 60 to 90 percent better in terms of defect density than non-TDD teams. They also discovered that TDD teams took longer to complete their projects—15 to 35 percent longer."
18:59 KyleHa I wonder if the time difference factors in the time required for the non-TDD team to code with the same defect density as the TDD team.
18:59 glurks joined #perl6
19:00 pugs_svn r28685 | fglock++ | [mp6] Javascript (Firefox, V8) bootstrap
19:03 moritz_ doesn't sound like it
19:03 jnthn moritz_: Hmm, maybe.
19:05 jnthn It's more like "only can be passed named"
19:05 moritz_ should .default work already?
19:07 pugs_svn r28686 | moritz++ | [t/spec] failing tests for .default
19:08 pugs_svn r28687 | fglock++ | [mp6] Javascript - executable update
19:08 diakopter KyleHa: that's a good point; without knowing that bit of information, they wouldn't know whether the non-TDD team had caught the same density of defects.  That is, they're assuming the 'customers/deployment' "testbed" catches & reports all the same defects that tests written by a TDD team would have.
19:10 japhb joined #perl6
19:10 mikehh joined #perl6
19:10 masak joined #perl6
19:10 jferrero joined #perl6
19:10 rgrau joined #perl6
19:10 cosimo joined #perl6
19:10 nbrown_ joined #perl6
19:10 xenoterracide joined #perl6
19:10 sparc joined #perl6
19:10 cotto joined #perl6
19:10 obra_ joined #perl6
19:10 cls_bsd joined #perl6
19:10 sundar joined #perl6
19:10 huf joined #perl6
19:10 silug joined #perl6
19:10 araujo joined #perl6
19:10 jjore_ joined #perl6
19:10 cxreg joined #perl6
19:10 nothingmuch joined #perl6
19:10 Rint joined #perl6
19:10 Helios- joined #perl6
19:10 kolibrie joined #perl6
19:10 rjh joined #perl6
19:12 cxreg2 joined #perl6
19:12 silug_ joined #perl6
19:12 obra__ joined #perl6
19:12 nothingmuch_ joined #perl6
19:13 araujo joined #perl6
19:14 cosimo joined #perl6
19:14 Tene sprixel?
19:15 Tene sprixel: say "hi";
19:15 p6eval sprixel 28683: OUTPUT«hi␤»
19:15 dukeleto sprixel: say sqrt(42)
19:15 p6eval sprixel 28683: OUTPUT«Undef␤»
19:17 pugs_svn r28688 | lwall++ | [viv] operator symbols now are typed as VAST::SYM_infix__S_Plus and such
19:17 pugs_svn r28688 | [viv] outer operator node now takes bare VAST::infix__S_Plus type
19:17 pugs_svn r28688 | [viv] outer chain now types as VAST::Chaining
19:20 pugs_svn r28689 | Util++ | [spec] 13 typos in 8 specs.
19:20 pugs_svn r28690 | Util++ | [docs] 3 typos in 2 files.
19:21 pugs_svn r28691 | Util++ | [examples] 6 typos in 5 files.
19:21 pugs_svn r28692 | diakopter++ | [viv] make --stab (-s) work with new symbol table schema
19:21 pugs_svn r28693 | Util++ | [t/spec] 71 typos in 32 files.
19:22 diakopter o|O
19:23 KyleHa Wow.
19:23 diakopter nice..
19:23 sbp joined #perl6
19:24 diakopter perl6: print "hi"
19:24 p6eval elf 28693, pugs, rakudo 03f82d, sprixel 28688: OUTPUT«hi»
19:24 glurks joined #perl6
19:24 diakopter surprised sprixel works at all with r28688
19:24 diakopter :D
19:25 Tene how's sprixel coming?  What's the most-recent thing that it can now run?
19:26 * diakopter wonders if the stack_trace thing still works
19:28 dukeleto diakopter++ # nice work on sprixel
19:29 diakopter Tene: it has a JS equiv to rakudo's Q:PIR {} -
19:29 diakopter sprixel: sub stack_trace { jseval 'var res=[],node=this; do { res.push(node.T) } while (node=node.invoker); this.result = res.join("->")' }; say stack_trace;
19:29 p6eval sprixel 28688: OUTPUT«term__S_identifier->noun__S_term->statement->statementlist->Sub_invocation->term__S_identifier->noun__S_term->arglist->args->eval_args->term__S_identifier->noun__S_term->statement->statementlist->compilation_unit␤»
19:29 dukeleto whoa nelly
19:32 diakopter sprixel: sub stack_trace { jseval 'var res=[],node=this; do { res.push(node.T) } while (node=node.invoker); this.result = new p6builtin.Str(res.join("->"))' }; say stack_trace; # a little more "safe"
19:32 p6eval sprixel 28688: OUTPUT«term__S_identifier->noun__S_term->statement->statementlist->Sub_invocation->term__S_identifier->noun__S_term->arglist->args->eval_args->term__S_identifier->noun__S_term->statement->statementlist->compilation_unit␤»
19:35 diakopter so since it has that, I'm moving all the "builtin" stuff into "real" setting/*.pm files
19:42 Khisanth joined #perl6
19:43 cotto joined #perl6
19:50 SmokeMachine joined #perl6
19:53 Psyche^ joined #perl6
19:59 ShaneC joined #perl6
20:01 Psyche^ joined #perl6
20:04 pugs_svn r28694 | lwall++ | [STD] other things can end a parameter too
20:05 jnthn TimToady: Glad you're fixing this stuff up, before I try and start sync'ing with it. :-)
20:07 lumi joined #perl6
20:10 TimToady was just an error message tweak, nothing substantive
20:11 jnthn TimToady: it's all nice to have
20:13 alfieANDfred joined #perl6
20:13 diakopter "Dirty mouth?  Be a gift horse!"
20:14 TimToady std: :(Int $x = 42 where { $x >= 42 })
20:14 p6eval std 28693: OUTPUT«[31m===[0mSORRY![31m===[0m␤Default expression must come last at /tmp/alr2wh9tjX line 1:␤------> [32m:(Int $x = 42 [33m⏏[31mwhere { $x >= 42 })[0m␤    expecting any of:␤       bracketed infix␤  infix stopper␤    standard stopper␤ terminator␤Undeclared routine:␤     where
20:14 p6eval ..used at line 1␤FA…
20:19 NorwayGeek joined #perl6
20:20 TimToady std: method bark ($dog = $spot:) {...}
20:20 p6eval std 28694: OUTPUT«[31m===[0mSORRY![31m===[0m␤Can't put a default on the invocant parameter at /tmp/U3wUBoY5hy line 1:␤------> [32mmethod bark ($dog = $spot:[33m⏏[31m) {...}[0m␤    expecting any of:␤   infix or meta-infix (with precedence tighter than item assignment)␤       signature␤Other
20:20 p6eval ..potential…
20:20 TimToady std: method bark (*$dog:) {...}
20:20 dalek rakudo: 837cd09 | jonathan++ | src/ (4 files):
20:20 dalek rakudo: Fix up the signature generator to be handling multiple names for a named arguments. Start storing type capture names in the signature object. Fix signature generation for named slurpy parameters.
20:20 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/837cd09d281ab6a348a011ebe9cf471af855054b
20:20 p6eval std 28694: OUTPUT«[31m===[0mSORRY![31m===[0m␤Invocant is too exotic at /tmp/9XJ8ewCKlO line 1:␤------> [32mmethod bark (*$dog[33m⏏[31m:) {...}[0m␤    expecting any of:␤ constraint␤       trait␤  whitespace␤FAILED 00:01 96m␤»
20:21 TimToady std: method bark (:$dog:) {...}
20:21 p6eval std 28694: OUTPUT«[31m===[0mSORRY![31m===[0m␤Invocant is too exotic at /tmp/E1Tpu3iD7H line 1:␤------> [32mmethod bark (:$dog[33m⏏[31m:) {...}[0m␤    expecting any of:␤ constraint␤       parameter␤       trait␤   whitespace␤FAILED 00:01 97m␤»
20:21 jnthn Do not want exotic dog.
20:24 pugs_svn r28695 | jnthn++ | [spec] Specify introspection of type captures.
20:26 pugs_svn r28696 | jnthn++ | [spec] Wording tweak/typo fix.
20:31 KyleHa I'm looking at S04.  Does it say that testing ANY Failure object for .defined or .true causes THE MAIN exception in $! to be handled?
20:31 KyleHa Er, perhaps not.  It's saying that you test the Failure, and $! marks the corresponding exception as handled.
20:55 jnthn KyleHa: Yeah, apparently $! is aware of all the "active" exceptions.
20:56 KyleHa I was trying to write tests for some of that, and my brain got all twisty.
21:01 lumi joined #perl6
21:04 pugs_svn r28697 | lwall++ | [gimme5] translate sort a little
21:04 pugs_svn r28697 | [STD] sort placeholders without their sigils, duh
21:06 pugs_svn r28698 | kyle++ | [spec/TODO] Task appears to have been done in r28459
21:06 pugs_svn r28699 | kyle++ | [t/spec] Some S04 .pending and .handled tests
21:34 dalek rakudo: f6397bc | jonathan++ | src/ (2 files):
21:34 dalek rakudo: Implement introspection of type captures.
21:34 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/f6397bc20f2736ee8cd1995a587254ed4347ad5c
21:34 dalek rakudo: f99cc4b | jonathan++ | src/setting/Signature.pm:
21:34 dalek rakudo: Make .perl of a Signature include the type captures.
21:34 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/f99cc4b35605d5731ee444d1af32471916dd9b2d
21:41 lumi joined #perl6
21:57 dalek nqp-rx: 7106057 | pmichaud++ | src/PAST/Compiler-Regex.pir:
21:57 dalek nqp-rx: Use if/unless opcodes instead of testing against zero.
21:57 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/7106057bf5922195e434035265fced6b62905d3d
21:57 dalek nqp-rx: 8f22ee4 | pmichaud++ | src/Regex/Cursor.pir:
21:57 dalek nqp-rx: Add match object handling to Cursor marks.
21:57 dalek nqp-rx: review: http://github.com/perl6/nqp-rx/commit/8f22ee46f692a6400141195bb608186eac0364cc
22:08 jnthn pmichaud++ # well commented code
22:12 lumi joined #perl6
22:26 jrtayloriv joined #perl6
22:27 jnthn ffs. MS VC++ is *really* damm stupid sometimes.
22:31 lumi joined #perl6
22:37 dalek rakudo: 3a4d149 | jonathan++ |  (8 files):
22:37 dalek rakudo: Start to stub in the new binder a bit. We add a dynop and also a few other little bits, plus a place for the binding logic, since we'll want to use it from the ops and dynpmcs.
22:37 dalek rakudo: review: http://github.com/rakudo/rakudo/commit/3a4d149bf1c3aa5550b49c661c1e0b77add22120
22:37 PacoLinux joined #perl6
22:37 rdice joined #perl6
22:40 jnthn I moved a few bits around in that last commit, suggest a realclean and reconfigure.
22:40 jnthn ah, and crap, I've just realized what I did there probably ain't really going to work. :-/
22:41 jnthn *sigh*
22:41 jnthn Screw it, I'll do it tomorrow.
22:41 diakopter hugme: hug jnthn
22:41 * hugme hugs jnthn
22:41 jnthn :-)
22:42 * jnthn loves writing code, and hates messing with makefiles and build issues
22:43 jnthn If anybody wants to make binder/bind.c build into a library of its own and get the ops and dynpmcs lib to dynamically link against it, that'd be Very Awesome...
22:43 jnthn I think that's the best thing to do.
22:43 * diakopter looks around for quietfanatic
22:43 * jnthn wonders if anybody else has done dynops and dynops that they wanted to share some C code before now...
22:44 diakopter quietfanatic wrote a dynamic linker/loader
22:44 diakopter that generates pir
22:44 jnthn hehe
22:44 jnthn Delegation win. ;-)
22:44 diakopter er something, I mean
22:45 diakopter something with some of those words, I mean
22:49 lumi joined #perl6
22:58 quietfanatic joined #perl6
23:03 lumi joined #perl6
23:23 lumi joined #perl6
23:24 ispy_ joined #perl6
23:27 pugs_svn r28700 | lwall++ | [STD] don't parse C::D as C: :D
23:45 lumi_ joined #perl6
23:49 rhr joined #perl6
23:50 diakopter std: C: :D
23:50 p6eval std 28700: OUTPUT«ok 00:02 96m␤»
23:50 jnthn std: :P
23:50 p6eval std 28700: OUTPUT«ok 00:02 94m␤»
23:50 jnthn std: :-)
23:50 diakopter std: p: :q
23:50 p6eval std 28700: OUTPUT«[31m===[0mSORRY![31m===[0m␤Confused at /tmp/g3ikMEEC4U line 1:␤------> [32m<BOL>[33m⏏[31m:-)[0m␤    expecting any of:␤ bracketed infix␤  infix stopper␤    noun␤   prefix or noun␤     standard stopper␤ statement end␤  statement list␤   term␤     terminator␤
23:50 p6eval ..whitespace␤FAILED 00:02 102m␤»
23:51 p6eval std 28700: OUTPUT«ok 00:01 96m␤»
23:51 jnthn aww
23:51 moritz_ what's wrong with p: :q?
23:52 moritz_ isn't that just (:q).p?
23:52 jnthn moritz_: oh, ouch
23:52 jnthn I'd parsed it as a label followed by a pair :-)
23:52 diakopter it was ok with p: :q
23:52 diakopter it didn't like :-)
23:52 jnthn moritz_: It was me who broke it by trying to parse a different smiley ;-)
23:52 moritz_ ;-)
23:52 diakopter std: std: std:
23:53 p6eval std 28700: OUTPUT«[31m===[0mSORRY![31m===[0m␤Illegal redeclaration of 'std' at /tmp/UUX66urbfm line 1 (EOF):␤------> [32mstd: std:[33m⏏[31m<EOL>[0m␤FAILED 00:01 95m␤»
23:53 diakopter std: std:
23:53 p6eval std 28700: OUTPUT«ok 00:01 96m␤»
23:53 diakopter rakudo: rakudo: rakudo:
23:53 p6eval rakudo f99cc4: OUTPUT«Confused at line 2, near ": rakudo:"␤in Main (src/gen_setting.pm:204)␤»
23:53 jnthn Rakudo doesn't parse labels yet, afaik.
23:53 diakopter o
23:54 jnthn (because we've no idea what to do with 'em even if we do...)
23:54 diakopter o
23:55 diakopter maybe sprixel needs those next since it knows what to do with 'em
23:56 diakopter sprixel: sprixel: :perlsix
23:56 p6eval sprixel 28700:  ( no output )
23:57 diakopter pugs: pugs: pugs:
23:57 p6eval pugs: OUTPUT«*** ␤    Unexpected ":"␤    expecting "::", dot, "!", word character, "(", "{", term postfix or operator␤    at /tmp/iKbghSKI0X line 1, column 11␤»
23:57 pugs_svn r28701 | Util++ | [docs] Typo correction.
23:57 pugs_svn r28702 | Util++ | [examples] Typo correction.
23:57 diakopter pugs: pugs: 1
23:57 p6eval pugs:  ( no output )
23:57 pugs_svn r28703 | Util++ | [t/spec] 11 typos in 6 files.
23:58 diakopter sprixel: sprixel: goto sprixel
23:58 p6eval sprixel 28700:  ( no output )
23:58 diakopter lol
23:58 diakopter I was hoping it'd say TIMED_OUT as a joke.
23:59 diakopter but alas, it's not in a joking mood.
23:59 moritz_ sprixel: print 'TIMED_OUT'
23:59 p6eval sprixel 28700: TIMED_OUT
23:59 diakopter heh

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

Perl 6 | Reference Documentation | Rakudo