Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2014-01-01

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:22 BenGoldberg std: sub infix:<oof> is assoc('list') { join ',', @_ }; say [Roof] 1..4
00:22 camelia std 09dda5b: OUTPUT«ok 00:01 131m␤»
00:22 BenGoldberg rn: sub infix:<oof> is assoc('list') { join ',', @_ }; say [Roof] 1..4
00:22 camelia niecza v24-108-g17d73e4: OUTPUT«Unhandled exception: Excess arguments to ANON, used 2 of 4 positionals␤  at /tmp/d6qf4mFeKO line 0 (ANON @ 1) ␤  at /home/p6eval/niecza/lib/CORE.setting line 2767 (reduceop @ 12) ␤  at /tmp/d6qf4mFeKO line 1 (mainline @ 4) ␤  at /home/p6eval/n…»
00:22 camelia ..rakudo-parrot a77214: OUTPUT«Too many positional parameters passed; got 4 but expected 2␤  in block  at gen/parrot/CORE.setting:16602␤  in sub  at gen/parrot/CORE.setting:16709␤  in block  at /tmp/NtL5TFV2F5:1␤␤»
00:22 camelia ..rakudo-jvm a77214: OUTPUT«Too many positional parameters passed; got 4 but expected 2␤␤»
00:23 scottp joined #perl6
00:27 kurahaupo_mobile joined #perl6
00:28 BenGoldberg r: my @a := gather { .take for ^10 }; say @a.gist
00:28 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«0 1 2 3 4 5 6 7 8 9␤»
00:28 BenGoldberg How do I print @a in a way that doesn't cause it to be reified?
00:29 BenGoldberg That is, so it simply says that it's an Iterable, or whatever, instead of turning into a list of numbers 0, 1, 2, ...
00:30 BenGoldberg Oh, I remember...
00:30 BenGoldberg r: my @a := gather { .take for ^10 }; say @a.DUMP
00:30 camelia rakudo-jvm a77214: OUTPUT«java.lang.RuntimeException: java.lang.StackOverflowError␤␤»
00:30 camelia ..rakudo-parrot a77214: OUTPUT«List<1>(␤    :$!flattens(Mu),␤    :$!items(▶Mu),␤    :$!nextiter(ListIter<3>(␤        :$!list(=List<1>),␤        :$!reified(▶Mu),␤        :$!nextiter(▶Mu),␤        :$!rest(QRPA<4>(GatherIter<5>(␤            :$!reified(▶Any),␤   …»
00:31 BenGoldberg :(
00:31 BenGoldberg Why did jakudo stack overflow?
00:37 hoverboard joined #perl6
01:08 lue r: say (^10).WHAT
01:08 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«(Range)␤»
01:08 PacoAir joined #perl6
01:12 torbjorn whats that weird char after (Range) ?
01:12 torbjorn in cameila's output
01:12 TimToady NL meaning 'newline'
01:12 TimToady U+2424
01:12 torbjorn oh ok. thanks
01:25 jnap joined #perl6
01:28 japhb .oO( In the year 2424 ♫ )
01:29 torbjorn are there Test:: modules for perl6? (or similar functionality)
01:30 lichtkind joined #perl6
01:31 lichtkind i have a prob with packages
01:38 japhb torbjorn: What are you looking for, besides the core Test.pm? (Which IIRC is approximately at the level of Test::More in Perl 5 land, plus some free improvements from Perl 6's stronger type system, .perl, and so forth.)
01:39 japhb lichtkind: What problem, and what kind of packages?
01:40 lichtkind i made in a script a normal package and than used one sub of it and bang got error i cant understand
01:42 lichtkind its not the signatures not the name of subs no nothing
01:42 lichtkind juct cant use the package
01:42 torbjorn core Test is more than i need, thanks
02:08 Vlavv__ joined #perl6
02:14 colomon joined #perl6
02:14 lichtkind i got a "could not find symbol" at runtime
02:15 dayangkun joined #perl6
02:17 kurahaupo joined #perl6
02:19 lichtkind same problem when making seperate module
02:26 jnap joined #perl6
02:44 colomon joined #perl6
03:27 jnap joined #perl6
03:44 unclefester2 left #perl6
03:54 dalek joined #perl6
04:27 jnap joined #perl6
04:43 preflex_ joined #perl6
05:18 ggoebel joined #perl6
05:28 jnap joined #perl6
05:42 japhb lichtkind: Did you add "is export" to each sub declaration that you wanted to use from the importing script?
05:51 [Coke] aw, the moar test run died because of an ssh timeout. whoops.
05:52 * [Coke] kicks off another run.
06:07 [Coke] lots of segfaults.
06:08 [Coke] 42 as of S03-operators/lcm.t
06:08 [Coke] oh. Also, Happy 2014~
06:08 [Coke] !
06:09 BenGoldberg 4Happy new years1!
06:14 BenGoldberg rn: my @H = "Happy New Year, everybody!".comb; for ( (0..255).pick(*) ) { my $f = $_ +> 4; my $b = $_ +& 15; next if $f == $b; print "$f,$b", @H.shift; last unless @H }
06:14 camelia rakudo-parrot a77214: OUTPUT«7,1H5,10a,12p4,12p8,15y7,12 7,6N9,1e0,6w,14 6,2Y,3e2,13a1,11r8,0,,3 ,6e2,11v3,0e,2r9,2y,14b,15o2,14d5,8y0,12!»
06:14 camelia ..niecza v24-108-g17d73e4: OUTPUT«2,15H3,4a2,1p2,5p,3y,1 1,6N,15e,15w,2 8,15Y9,8e6,13a3,5r4,12,0,15 8,13e5,9v6,5e2,6r0,2y7,1b,2o,13d7,5y,6!»
06:14 camelia ..rakudo-jvm a77214: OUTPUT«3,5H4,10a8,7p4,5p9,3y5,6 ,5N,15e7,5w4,11 ,6Y6,1e8,15a9,10r0,4,,15 ,4e5,4v1,6e1,7r2,7y,8b5,2o6,10d,8y2,4!»
06:14 BenGoldberg :)
06:17 BenGoldberg Is it currently possible to embed perl6 into another program?  Or at least, how hard is it?
06:17 ssutch joined #perl6
06:17 * BenGoldberg just installed perl4mirc, and it seems to work ok.
06:18 * BenGoldberg would like to have some sort of perl64mirc, cause it would be pretty darn cool.
06:18 lue You mean in a plugin sense? I wouldn't know. Using nativecall on a C-based plugin API is one possibility...
06:24 atroxaper joined #perl6
06:26 BenGoldberg Well, with perl4mirc installed, I can type "/perl print for sort qw(5 3 1 4 2 9)" and it's run just like a regular irc command.
06:29 jnap joined #perl6
06:40 BenGoldberg 5
06:40 BenGoldberg 3
06:40 BenGoldberg 1
06:40 BenGoldberg 4
06:40 BenGoldberg 2
06:40 BenGoldberg 9
06:40 BenGoldberg oops
06:40 BenGoldberg 1
06:40 BenGoldberg 2
06:40 BenGoldberg 3
06:40 BenGoldberg 4
06:40 BenGoldberg 5
06:40 BenGoldberg 9
06:40 BenGoldberg :)
06:44 lue r: my @a = 0,5,10; say @a X* 1/*
06:44 camelia rakudo-jvm a77214: OUTPUT«Cannot call 'Numeric'; none of these signatures match:␤:(Mu:U \v: Mu *%_)␤  in any  at gen/jvm/BOOTSTRAP.nqp:1201␤  in block  at gen/jvm/CORE.setting:16340␤  in block  at gen/jvm/CORE.setting:7485␤  in block  at gen/jvm/CORE.setting:7210␤  in bl…»
06:44 camelia ..rakudo-parrot a77214: OUTPUT«Cannot call 'Numeric'; none of these signatures match:␤:(Mu:U \v: Mu *%_)␤  in any  at gen/parrot/BOOTSTRAP.nqp:1218␤  in any  at gen/parrot/BOOTSTRAP.nqp:1209␤  in method Numeric at gen/parrot/CORE.setting:997␤  in sub infix:<*> at gen/parrot/…»
06:45 lue n: my @a = 0,5,10; say @a X* 1/*
06:45 camelia niecza v24-108-g17d73e4: OUTPUT«{ ... }␤»
06:45 lue :/
06:56 SamuraiJack_ joined #perl6
07:00 darutoko joined #perl6
07:21 Ben_Goldberg joined #perl6
07:23 wooden joined #perl6
07:23 wooden joined #perl6
07:30 jnap joined #perl6
07:49 grondilu n: sub infix:<o>($x, &f) { f($x) }; my @a = 1, 5, 10; say @a Xo 1/*;
07:49 camelia niecza v24-108-g17d73e4: OUTPUT«{ ... }␤»
07:50 grondilu r: sub infix:<o>($x, &f) { f($x) }; my @a = 1, 5, 10; say @a Xo 1/*;
07:50 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«1 0.2 0.1␤»
07:50 grondilu n: say "hi"
07:50 camelia niecza v24-108-g17d73e4: OUTPUT«hi␤»
08:30 jnap joined #perl6
08:51 _ilbot joined #perl6
08:51 Topic for #perl6 is now »ö« Welcome to Perl 6! | http://perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:,  niecza:, std:, or /msg camelia perl6: ... | irclog: http://irc.perl6.org | UTF-8 is our friend!
09:15 MikeFair joined #perl6
09:26 xinming_ joined #perl6
09:28 dalek rakudo/moar-support: d3c4a7b | (Tobias Leich)++ | src/vm/moar/ops/perl6_ops.c:
09:28 dalek rakudo/moar-support: removed leftover cruft, sorry
09:28 dalek rakudo/moar-support: review: https://github.com/rakudo/rakudo/commit/d3c4a7bd9c
09:43 [Coke] moar: "total",     17247, 10877,   285,   790, 28855, 28494?
09:44 daniel-s_ joined #perl6
09:44 [Coke] http://feather.perl6.nl/~coke/moar.out
10:07 bibifuc do you mean moar pass rate is about 60%?
10:08 timotimo there's lots of false positive passing TODOs, though
10:09 FROGGS the fact that we are running these tests is moar important to me :o)
10:10 FROGGS because that means that we can fiddle with the details
10:10 timotimo yes!
10:10 timotimo exciting times :)
10:10 bibifuc for sure :)
10:10 FROGGS yes :o)
10:39 * masak .oO( may you live in exciting times )
10:45 moritz welcome to the 2014 hunger games. May the odds always be in your favor
10:45 * moritz a bit cynical
10:45 moritz trying to build build nqp-m, I get
10:45 moritz Unhandled exception: Bytecode validation error at offset 24, instruction 4:
10:45 moritz operand type 32 does not match register type 64
10:47 FROGGS moritz: lue gets the same :/
10:47 masak moritz: there was talk on #moarvm about an i32/i64 patch jnthn didn't apply.
10:52 FROGGS what exactly does "StopIteration" as an error message mean?
10:52 filly joined #perl6
10:56 masak means that some internals leaked out, likely to do with lazy lists.
10:57 FROGGS I am about to implement P5's each, works well for Hashes but explodes for lists
10:57 FROGGS I guess I am re-binding the iterator wrong-ish
10:58 FROGGS ohh, now it does something
10:58 usernotexists joined #perl6
11:17 grondilu FROGGS++ for his work on v5 ;-)
11:18 FROGGS :o)
11:23 Rotwang joined #perl6
11:27 PacoAir joined #perl6
11:27 dagurval rp: EVAL 'my $a; my $a;'; say "everything is ok"
11:27 camelia rakudo-parrot a77214: OUTPUT«Potential difficulties:â�¤    Redeclaration of symbol $aâ�¤    at eval_0:1â�¤    ------> [32mmy $a; my $a[33mâ��[31m;[0mâ�¤everything is okâ�¤Â»
11:28 dagurval is there any way to check if my EVAL produced that warning?
11:28 FROGGS rp: EVAL 'my $a; my $a;'; say $!
11:28 camelia rakudo-parrot a77214: OUTPUT«Potential difficulties:â�¤    Redeclaration of symbol $aâ�¤    at eval_0:1â�¤    ------> [32mmy $a; my $a[33mâ��[31m;[0mâ�¤Nilâ�¤Â»
11:28 FROGGS :/
11:30 FROGGS ahh, this is just a warning from the grammar...
11:31 FROGGS rp: EVAL 'my $a; my $a;'; say @*SORROWS
11:31 camelia rakudo-parrot a77214: OUTPUT«Potential difficulties:â�¤    Redeclaration of symbol $aâ�¤    at eval_0:1â�¤    ------> [32mmy $a; my $a[33mâ��[31m;[0mâ�¤Dynamic variable @*SORROWS not foundâ�¤  in method gist at gen/parrot/CORE.setting:12119â�¤  in method gist at gen/parrot/CORE.…»
11:32 fhelmberger joined #perl6
11:33 jnap joined #perl6
11:33 FROGGS rp: my @*WORRIES; EVAL 'my $a; my $a;'; say +@*WORRIES # no chance
11:33 camelia rakudo-parrot a77214: OUTPUT«Potential difficulties:â�¤    Redeclaration of symbol $aâ�¤    at eval_0:1â�¤    ------> [32mmy $a; my $a[33mâ��[31m;[0mâ�¤0â�¤Â»
11:34 dagurval nice try
11:34 tadzik happpy new year, #perl6!
11:35 dagurval I would find it useful to pick up that warning. Perhaps its a spec thingy if #perl6 agrees
11:35 dagurval happy new year!
11:35 FROGGS happy tadzik, new year!
11:38 tadzik nothing says "happy new year" like getting shot in a face by a rogue firework
11:38 FROGGS *g*
11:38 FROGGS timotimo had a near face experience
11:38 FROGGS tadzik: you are well?
11:39 tadzik yeah, nothing serious happened, I just have a red bruise on my cheek
11:39 tadzik but I was pretty shocked, and scared of explosives for the rest of the night
11:39 tadzik idiots with homemade explosives :/
11:40 FROGGS ohh wow
11:40 FROGGS good that this is not allowed here :o)
11:40 tadzik I'm pretty sure it's not allowed here either
11:40 timotimo wow
11:40 tadzik I called the police right away
11:40 timotimo in our case it wasn't even a home-made one
11:41 tadzik what happened?
11:41 timotimo dagurval: you can catch warnings with a CONTROL block
11:41 timotimo tadzik: we were on the 5th floor (which is the 6th floor in some counting systems)
11:41 timotimo we were on the balcony
11:42 FROGGS thing is that the police will get you... my wife's brother once had explosives from Czech Republic, and they were there within a few minutes and he had to pay more that 500 euros
11:42 tadzik ouch
11:42 timotimo one fly-up-and-then-explode-into-happy-colors projectile decided the optimum height to deploy happy colors was ... there
11:42 timotimo nobody was hurt, no hair was burnt and no clothes damaged, fortunately
11:42 timotimo but we were all ... excited :)
11:43 tadzik here I was walking to the party, and right next to some gogo club I saw a petard (is that a word?) thrown, exploding, and then something hit my face
11:43 tadzik I was like 10 meters away
11:43 tadzik could've been a nearby rock for all I know
11:44 dagurval timotimo: ok thanks for the hint, I'll look into it
11:44 tadzik pretty scary
11:44 timotimo wow
11:44 BinGOs petard is a word.
11:45 tadzik thanks, I hope it's not a false friend then :)
11:45 BinGOs http://en.wikipedia.org/wiki/Petard
11:45 * masak .oO( stop throwing rocks at me, you petard! )
11:47 masak tadzik: glad you made it relatively unscathed.
11:47 masak tadzik: I've always been of the opinion that fireworks are stupid and dangerous.
11:49 denisboyun joined #perl6
11:50 spider-mario joined #perl6
11:51 rurban joined #perl6
11:59 rindolf joined #perl6
12:07 FROGGS masak: and expensive
12:07 FROGGS and then there is all that waste...
12:27 xenoterracide joined #perl6
12:33 jnap joined #perl6
12:49 cognominal joined #perl6
13:24 masak for those of you who didn't see it yet: http://alexgaynor.net/2013/dec/30/about-python-3/
13:24 masak and corresponding HN discussion: https://news.ycombinator.com/item?id=6985207
13:25 * FROGGS looks
13:26 masak what scares me is this: Perl 6 *is not even there yet*, at the point of the problem Python 3 is having.
13:27 masak I mean, once Perl 6 implementations are fast enough, and technologically superior to Perl 5 in enough ways and enough interesting ways, we *still* can't tell the community "it's time to use this now".
13:27 masak (I mean, we can tell them, but nothing will happen)
13:28 FROGGS masak: maybe we will be in a better position because Perl6 is totally something else as Perl5?
13:28 masak The Law of Community Upgrades: you can release new better sofware, but you can't upgrade the community.
13:28 FROGGS so there would be a bigger benefit to migrators
13:28 masak FROGGS: no, I think that will make fewer people switch.
13:28 masak FROGGS: maybe it will make more people polyglots, though.
13:28 masak but I doubt that.
13:28 FROGGS well, then just let us attract new ppl :o)
13:29 arnsholt masak: Yeah, that's a concern
13:29 arnsholt OTOH, there are more incentives to move to Perl 6 than Perl 5
13:30 masak how do you mean?
13:30 arnsholt New features and such
13:30 masak or did you mean "...than Python 3"?
13:30 timotimo there's incentives to move to Perl6 from other languages
13:30 arnsholt More incentives to move from Perl 5 to 6, than from Python 2 to 3 I meant, yeah
13:31 masak timotimo: as long as it's fast, well-documented, and reliable. which it often isn't.
13:31 arnsholt Of course, the distance you move is further as well, so it's hard to say
13:31 timotimo it's dynamic, possibly fast, runs (will run) on lots of platforms, has a kick-ass C interop, very powerful parsing, much simplified, unified, unWATified syntax, ...
13:31 FROGGS "Second, I think there's been little uptake because Python 3 is fundamentally unexciting"
13:31 masak *nod*
13:31 FROGGS we can scratch this one for us
13:32 masak "The divergent paths of Python 2 and Python 3 have been bad for our community. We need to bring them back together." -- whoa.
13:32 masak Perl and Python communities, Y U so alike?
13:33 masak Python community: "at least we didn't get stuck in second system hell, like those Perl 6 people"
13:33 masak Perl 6 community: "at least we have a language worthy of upgrading/sidegrading to, unlike those Python 3 people"
13:33 Rotwang [;
13:33 masak later, Python community: "we need to bring py2 and py3 back together"
13:33 timotimo :D
13:33 masak Perl community: "we need to bring Perl 5 and Perl 6 back together"
13:34 masak Python community: "really, those people are libertarian hippie anarchists"
13:34 jnap joined #perl6
13:35 masak Perl community: "whoa, those people need to loosen their tie and get some more curly braces"
13:36 masak Python: "ONE WAY! ONE TRUE WAY! ONE OBVIOUS WAY!"
13:36 masak Perl: "...unless you count all those other ways."
13:36 masak Python: "batteries included"
13:36 masak Perl: "man, I love my cpanm"
13:37 timotimo to be fair, the batteries that are included in py's stdlib are rotten in big parts :P
13:37 Rotwang it somehow reminds me of: http://s2.blomedia.pl/komorkomania.pl/​images/2013/04/IE-eats-glue-154796.jpg
13:37 masak Python: "we're all adults here" (re OO privacy)
13:37 Rotwang but who would be the ie, ruby? [;
13:37 masak Perl: "...because you're not invited, not because I have a shotgun"
13:49 [Keith] joined #perl6
14:06 * lizmat assumes it is safe now to wish everybody a happy 2014
14:07 FROGGS lizmat: happy new year to you too :o)
14:30 masak lizmat: happy/safe 2014!
14:32 diakopter also 2015
14:42 jnthn Happy New Year, #perl6 folks :)
14:42 preflex jnthn: you have 1 new message. '/msg preflex messages' to read it.
14:43 FROGGS happy new year jnthn :o)
14:45 jnthn japhb: Not right at the top, but the only other thing that really competes with them for importance in the async/conc stuff is working on cancellation.
14:45 jnthn japhb: If you are running into a lack of them, that motivates me more. :)
14:46 FROGGS jnthn: are you still considering to come to the gpw2014 in march? pmichaud does not know where to go in march yet, and it looks like your choice could have an influence :o)
14:46 FROGGS jnthn: do you have time for talking about slangs this month?
14:48 jnthn FROGGS: I've got some time for gpw reserved in my schedule. I *may* miss the Wed and only make the Thu/Fri. But could happily hang around on the Sat for further hacking.
14:48 FROGGS cool, that sounds awesome :o)
14:51 jnthn ooh, so Rakudo on Moar now builds on the auto-roast box :)
14:52 raiph joined #perl6
14:52 jnthn Well, the Coke-roast box :)
14:54 masak jnthn! \o/
14:54 masak jnthn: hoppy new year!
14:55 jnthn Anyone getting "operand type 32 does not match register type 64" - build yourselves a new NQP from master :)
14:55 Rotwang joined #perl6
15:00 jnthn masak: samma :)
15:03 cognominal joined #perl6
15:04 ssutch joined #perl6
15:06 ajr joined #perl6
15:09 thou joined #perl6
15:15 moritz that is an nqp from master
15:15 moritz 2013.12.1-5-g61e4135
15:20 zakharyas joined #perl6
15:20 colomon joined #perl6
15:20 FROGGS that built on my box
15:20 * moritz tries again
15:21 jnthn It probably wants at least a make clean in NQP...
15:21 atroxaper joined #perl6
15:21 moritz oh yes, seems to work
15:22 zakharyas1 joined #perl6
15:36 jnap joined #perl6
15:40 colomon joined #perl6
15:43 mtk joined #perl6
15:45 mtk joined #perl6
15:49 cognominal joined #perl6
15:56 * [Coke] wakes up
15:57 colomon Happy New year!
15:57 [Coke] ~~
15:58 Psyche^ joined #perl6
15:59 [Coke] hopefully the daily run will work just fine (that was a one off).
16:00 FROGGS I hope so too
16:00 [Coke] And I imagine a lot of the failures are "tests tht would have worked otherwise except for the explosion"
16:02 jnthn [Coke]: Did you push the yesterday results with the Moar result in it?
16:02 * jnthn sees last results were from 2 days ago...
16:33 [Coke] jnthn: the moar result on feather was a one off.
16:33 jnthn [Coke]: ah, ok
16:34 [Coke] not part of the daily run. (but also, I forgot a push)
16:34 * TimToady blinks at the new year
16:34 dalek rakudo-star-daily: a76b1b3 | coke++ | log/ (5 files):
16:34 dalek rakudo-star-daily: today (automated commit)
16:34 dalek rakudo-star-daily: review: https://github.com/coke/rakudo​-star-daily/commit/a76b1b3a01
16:34 dalek perl6-roast-data: 16ab612 | coke++ | / (6 files):
16:34 dalek perl6-roast-data: today (automated commit)
16:34 dalek perl6-roast-data: review: https://github.com/coke/perl6​-roast-data/commit/16ab61228d
16:34 [Coke] still counts for the new year, however. ;)
16:35 jnthn Why on earth has Rakudo JVM dropped so much in that run? :S
16:37 jnap joined #perl6
16:41 FROGGS rakudo.jvm_summary.out 2724 additions, 383 deletions not shown
16:41 FROGGS huh
16:41 FROGGS ahh, "Please use 'EVAL' instead."
16:42 FROGGS we should fix niecza/pugs and then roast me thinks
16:44 dalek rakudo/moar-support: 9c76f05 | jonathan++ | src/Perl6/Metamodel/BOOTSTRAP.nqp:
16:44 dalek rakudo/moar-support: Fix over-decontainerization.
16:44 dalek rakudo/moar-support: review: https://github.com/rakudo/rakudo/commit/9c76f05fcd
16:47 FROGGS about jvm tests, I guess that is new: S32-str/sprintf.rakudo.jvm aborted 143 test(s)
16:47 FROGGS S32-num/complex.t aborted 470 test(s)
16:47 FROGGS so, maybe the eval-server terminated?
16:50 timotimo greetings, jnthn :)
16:52 [Coke] FROGGS: I don't use the eval server, because it always terminates.
16:52 FROGGS hmmm
16:52 timotimo FROGGS: where and how expensive will gpw be?
16:55 jnthn I think location is Hannover
16:55 moritz aye
16:55 moritz and price is typically betwen 50€ and 100€
16:55 moritz and free for speakers
16:55 timotimo i should speak, then :)
16:55 jnthn Give a talk. Attend free!
16:56 moritz http://act.yapc.eu/gpw2014/preise.html
16:56 moritz na, it's still 40€ for speakers
16:56 jnthn aww
16:57 timotimo that's a managable price, though :)
16:57 jnthn True :)
16:57 moritz much less than accomodation and travel, most likely
16:58 timotimo probably, yes
16:58 timotimo hannover isn't that prohibitive, though :)
16:58 kaare_ joined #perl6
16:58 * jnthn is wondering if he can manage to get a $dayjob assignment in Germany in the same week
16:58 FROGGS getting an affordable room could become a problem
16:58 jnthn Which makes travel to Germany cheaper (for me :-)).
16:59 FROGGS hmmm, we have an office in hannover :o)
17:00 logie joined #perl6
17:00 masak TimToady: <blink>-y new year! ;)
17:00 TimToady Are we there yet?
17:00 [Coke] jussssst a little further.
17:01 masak we are "there" yet, but not for your value of "there".
17:02 arnsholt We're somewhere, but it might not be where you wanted to go =)
17:03 mtk joined #perl6
17:06 [Coke] ah. some of these segfaults may be due to loops that timed out, then segfaulted on exit when they were killed.
17:10 [Coke] r-m: my $a is dynamic; say $a.VAR.dynamic;
17:13 jnthn No r-m yet...
17:13 atroxaper joined #perl6
17:14 [Coke] aw...
17:14 SamuraiJack__ joined #perl6
17:16 moritz we'll get that once moar-support is merged into nom
17:16 moritz without too much extra effort
17:17 moritz [Coke]: locally I get Segmentation fault (core dumped)
17:18 moritz and for just $a.VAR I get Unhandled exception: Invocant requires an instance, but a type object was passed
17:18 espadrine joined #perl6
17:19 [Coke] moritz: ayup. was hoping to be able to show the segfault here. (more from the one off run going into #moarvm
17:23 raiph joined #perl6
17:27 * colomon is attempting to make potsticker wrappers by hand for the first time in a half decade or so...
17:31 logie joined #perl6
17:34 fhelmberger joined #perl6
17:37 BenGoldberg joined #perl6
17:39 dalek rakudo/moar-support: 886a34c | jonathan++ | src/Perl6/Metamodel/BOOTSTRAP.nqp:
17:39 dalek rakudo/moar-support: Fix reporting of anon var bind errors.
17:39 dalek rakudo/moar-support: review: https://github.com/rakudo/rakudo/commit/886a34c907
17:39 dalek rakudo/moar-support: 9b113a3 | jonathan++ | src/Perl6/Metamodel/BOOTSTRAP.nqp:
17:39 dalek rakudo/moar-support: Hopefully fix many .VAR-using tests.
17:39 dalek rakudo/moar-support: review: https://github.com/rakudo/rakudo/commit/9b113a3806
17:41 jnthn bbl
17:45 ajr joined #perl6
17:57 cognominal joined #perl6
17:59 autark joined #perl6
18:11 SamuraiJack__ joined #perl6
18:11 gcole_ joined #perl6
18:25 cooper joined #perl6
18:38 jnap joined #perl6
18:39 timotimo jnthn: do you think we can reasonably get a performance improvement by agressively caching all rules and action methods of a given Grammar.parse once at the beginning and getting - hopefully! - cheaper dispatches during parsing and action method calling?
18:40 timotimo jnthn: also, did you backlog and see my comment about trying to compile-time dispatch methods on WVals?
18:44 Jinendra joined #perl6
18:53 colomon joined #perl6
19:02 [Coke] what's the final word on eval vs. EVAL?
19:02 [Coke] (rakudo says EVAL, roast says eval)
19:03 timotimo we just had a spec change to move to EVAL
19:04 hoverboard joined #perl6
19:06 timotimo https://github.com/perl6/specs/commit/0​b7df09ecc096eed5dc30f3dbdf568bbfd9de8f6
19:12 cognominal you say eval and I say EVAL. let's call the whole thing off   http://www.youtube.com/watch?v=Dnf5HnW8C4E
19:12 kurahaupo joined #perl6
19:13 gcole joined #perl6
19:15 dalek roast: 8fa1e64 | moritz++ | / (14 files):
19:15 dalek roast: star to switch some eval()s to EVAL
19:15 dalek roast: review: https://github.com/perl6/roast/commit/8fa1e64441
19:29 hoverboard joined #perl6
19:29 hoverboard joined #perl6
19:33 SHODAN joined #perl6
19:35 dalek nqp: 876d500 | (Tobias Leich)++ | src/vm/moar/ModuleLoader.nqp:
19:35 dalek nqp: Revert "add nqp language diretory to search path"
19:35 dalek nqp:
19:35 dalek nqp: This reverts commit 41debf41705d3979edaeffb47b804c1d15a1015e.
19:35 dalek nqp: review: https://github.com/perl6/nqp/commit/876d500873
19:44 espadrine joined #perl6
19:51 lumimies_ joined #perl6
19:52 revdiablo joined #perl6
19:52 BenGoldberg j: my @a := gather { .take for ^10 }; say @a.DUMP
19:52 camelia rakudo-jvm a77214: OUTPUT«java.lang.RuntimeException: java.lang.StackOverflowError␤␤»
19:53 BooK_ joined #perl6
19:53 betterwo1ld joined #perl6
19:53 nebuchad` joined #perl6
19:53 breinbaa1 joined #perl6
19:53 cognominal joined #perl6
19:54 census joined #perl6
19:54 pochi_ joined #perl6
19:56 Tene_ joined #perl6
19:59 Alina-malina joined #perl6
20:01 immortal joined #perl6
20:01 immortal joined #perl6
20:03 [Coke]_ joined #perl6
20:03 Util_ joined #perl6
20:03 breinbaas joined #perl6
20:04 xinming joined #perl6
20:05 FROGGS_ joined #perl6
20:07 cognominal__ joined #perl6
20:09 PZt joined #perl6
20:09 Bucciarati joined #perl6
20:09 sorear_ joined #perl6
20:11 logie joined #perl6
20:12 lue hello world o/
20:12 FROGGS_ moritz: you are doing the other evals too? otherwise I'd do it and push a niecza fix
20:12 gcole joined #perl6
20:12 FROGGS_ hi lue
20:12 lue I get the sense that 2014 is gonna be an awesome year for Perl 6 :)
20:14 FROGGS_ :o)
20:15 wooden joined #perl6
20:15 prammer joined #perl6
20:17 ajr joined #perl6
20:17 BooK joined #perl6
20:19 slavik joined #perl6
20:23 timotimo so it seems like python is very commonly used for hacking tasks such as reverse-engineering hardware you're attached to with some simple serial bus or debugger and similar things
20:23 timotimo it would be great to spend a bit of time analysing the specific requirements that make python so popular in that space and see if perl6 has major problems
20:24 abnorman joined #perl6
20:25 stevan___ joined #perl6
20:30 dalek roast: 6a9b16f | (Tobias Leich)++ | S01-perl-5-integration/ (13 files):
20:30 dalek roast: eval => EVAL in S01
20:30 dalek roast: review: https://github.com/perl6/roast/commit/6a9b16fc95
20:32 * jnthn back
20:36 timotimo i bet one part of why python is popular is the excellent turn-around time during development; our very own rakudo is decent in that regard, except it's either running slow (parrot), starting up slow (jvm) or lacks lots of the new features/syntax/semantics (niecza)
20:37 timotimo i think investigating how perl6 currently does with regards to handling binary protocols and data would be an interesting thing
20:37 jnthn japhb++ has been doing work on protobuf which may be informative in that regard
20:38 timotimo maybe coming up with artificial (or even real!) hardware reversing/debugging tasks and implementing them elegantly (or failing to do so and coming up with good notes on what has to be improved and how) would be a good topic for a GPW2014 talk actually
20:40 jnap joined #perl6
20:41 FROGGS_ humm, this an go now, right?  --> #?rakudo skip "multi-dim arrays"
20:41 timotimo we merged that branch?
20:41 timotimo r: my @a[10][10]; say @a;
20:41 camelia rakudo-jvm a77214: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/uXChat3ASy�Shaped variable declarations not yet implemented. Sorry. �at /tmp/uXChat3ASy:1�------> [32mmy @a[10][33m�[31m[10]; say @a;[0m�»
20:41 camelia ..rakudo-parrot a77214: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/Ec3pk4IRgm�Shaped variable declarations not yet implemented. Sorry. �at /tmp/Ec3pk4IRgm:1�------> [32mmy @a[10][33m�[31m[10]; say @a;[0m�»
20:41 lue timotimo: there's probably a couple of binary-data utilities I'll end up trying to write, I'll be sure to let you know how that kind of stuff goes.
20:42 FROGGS_ p: my @array11; @array11[2;0] = 12 # that is the test
20:42 camelia rakudo-parrot a77214: OUTPUT«WARNINGS:␤Useless use of constant integer 2 in sink context (line 1)␤»
20:42 lue (I can tell you right off the bat that properly-implemented native types, e.g. int8, would make things soooo much easier.)
20:42 timotimo FROGGS_: doesn't seem to work :P
20:42 timotimo reminds me of my LoL-slice branch i didn't get to merge yet
20:42 timotimo maybe i should take up work on that again
20:43 FROGGS_ timotimo: we can at least turn it into a todo, rather than a skip...
20:43 timotimo lue: yeah, i bet it would; not being able to $foo++ native types is pretty icky
20:43 timotimo FROGGS_: sounds good. i hope that test does actually fail rather than just warn?
20:43 lue timotimo: not even that.
20:43 Radvendii joined #perl6
20:43 timotimo lue: it doesn't stop there, of course :)
20:43 lue r: my int8 $a = 0x100; say "alive, ", $a;
20:43 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«alive, 256␤»
20:43 FROGGS_ hmmm, it would even pass...
20:44 timotimo wow, that's a wide int8 type!
20:44 timotimo it's probably due to the minimum size of an integer datatype being 2 or 4 bytes and there being a lack of masking
20:45 lue timotimo: if you need to, say, bit shift something, no matter what type you use right now you'd need a 0xFF..F mask to get rid of extraneous bits.
20:45 lue r: my int8 $a = 0x1_0000_0000; say "alive, ", $a;
20:45 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«alive, 4294967296␤»
20:45 BenGoldberg heh
20:45 timotimo yeah
20:45 timotimo i don't know where exactly to look :\
20:45 FROGGS_ p: say "1".eval
20:45 camelia rakudo-parrot a77214: OUTPUT«1␤Saw 1 call to deprecated code during execution.␤======================================​==========================================␤Method eval (from Cool) called at:␤  /tmp/FRJEBABkj4, line 1␤Please use 'EVAL' instead.␤-----------------------…»
20:45 FROGGS_ ohh, the method too
20:45 BenGoldberg r: say "1".EVAL
20:46 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«1␤»
20:46 timotimo i'm not sure where exactly to look to figure out where to add these masks ...
20:47 BenGoldberg r: my int16 $a = 1 +< 17; say $a
20:47 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«131072␤»
20:47 dalek roast: 0bb81f8 | (Tobias Leich)++ | S02- (28 files):
20:47 dalek roast: eval => EVAL in S02, take 1
20:47 dalek roast: review: https://github.com/perl6/roast/commit/0bb81f80ed
20:47 BenGoldberg r: my int32 $a = 1 +< 33; say $a
20:47 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«8589934592␤»
20:47 BenGoldberg r: my int64 $a = 1 +< 65; say $a
20:47 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«0␤»
20:47 BenGoldberg r: my $a = 1 +< 65; say $a
20:47 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«36893488147419103232␤»
20:47 timotimo there's actually masks already in place
20:48 BenGoldberg r: my int $a = 1 +< 65; say $a
20:48 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«0␤»
20:48 dwarring joined #perl6
20:48 timotimo r: my int8 $a = 10; say $a.WHAT; say $a.^methods;
20:49 camelia rakudo-parrot a77214: OUTPUT«(Int)␤Int Num Rat FatRat abs Bridge chr sqrt base expmod is-prime floor ceiling round lsb msb narrow sign conj rand sin asin cos acos tan atan atan2 sec asec cosec acosec cotan acotan sinh asinh cosh acosh tanh atanh sech asech cosech acosech cotanh ac…»
20:49 camelia ..rakudo-jvm a77214: OUTPUT«(Int)␤Int Num Rat FatRat abs Bridge chr sqrt base expmod is-prime floor ceiling round lsb msb narrow atan asin cos acosh acosec conj asec cosec atanh Complex tanh atan2 cis cosech rand acos succ cotan cosh sech acotan roots acosech sinh log log10 sign exp…»
20:49 timotimo not that helpful ...
20:49 timotimo r: my int8 $a = 10; say $a.VAR.WHAT; say $a.VAR.^methods;
20:49 camelia rakudo-parrot a77214: OUTPUT«(Int)␤Int Num Rat FatRat abs Bridge chr sqrt base expmod is-prime floor ceiling round lsb msb narrow sign conj rand sin asin cos acos tan atan atan2 sec asec cosec acosec cotan acotan sinh asinh cosh acosh tanh atanh sech asech cosech acosech cotanh ac…»
20:49 camelia ..rakudo-jvm a77214: OUTPUT«(Int)␤Int Num Rat FatRat abs Bridge chr sqrt base expmod is-prime floor ceiling round lsb msb narrow atan asin cos acosh acosec conj asec cosec atanh Complex tanh atan2 cis cosech rand acos succ cotan cosh sech acotan roots acosech sinh log log10 sign exp…»
20:49 BenGoldberg r: my int64 $a = 10. say $a.DUMP
20:49 camelia rakudo-parrot a77214: OUTPUT«[31m===[0mSORRY![31m===[0m�Decimal point must be followed by digit�at /tmp/8JCaAHmoSp:1�------> [32mmy int64 $a = 10.[33m�[31m say $a.DUMP[0m�Decimal point must be followed by digit�at /tmp/8JCaAHmoSp:1�------> [32mmy int64 $a = 10…»
20:49 camelia ..rakudo-jvm a77214: OUTPUT«[31m===[0mSORRY![31m===[0m�Decimal point must be followed by digit�at /tmp/f5rXzggOP8:1�------> [32mmy int64 $a = 10.[33m�[31m say $a.DUMP[0m�Decimal point must be followed by digit�at /tmp/f5rXzggOP8:1�------> [32mmy int64 $a = 10.[…»
20:49 BenGoldberg r: my int64 $a = 10; say $a.DUMP
20:49 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«10␤»
20:49 dwarring rn: say 'ߞ'.ord
20:49 camelia rakudo-parrot a77214, rakudo-jvm a77214, niecza v24-108-g17d73e4: OUTPUT«2014␤»
20:51 timotimo huh, is it right that copy_to doesn't change the bits of the target?
20:51 jnthn timotimo: Context?
20:51 timotimo looking at vm/parrot/sixmodel/reprs/P6int.c
20:52 * timotimo sprinkles debug outputs everywhere to find out what's wrong
20:53 clkao_ joined #perl6
20:53 timotimo maybe the nativesize trait doesn't actually set the value of the bits property
20:54 BenGoldberg Is it that much easier to add debug outputs, then to run parrot with gdb or whatever?
20:54 timotimo good point. i can try that :)
20:54 timotimo actually. no. i'll go with debug prints :P
20:54 xenoterracide joined #perl6
20:55 BenGoldberg gdp can be a pita to use, I suppose
20:55 BenGoldberg err, gdb
20:55 timotimo r: my native int3 is repr('P6int') is Int is nativesize(3) { }
20:55 camelia rakudo-jvm a77214: ( no output )
20:55 camelia ..rakudo-parrot a77214: OUTPUT«===SORRY!===␤P6int can only handle 1, 2, 4, 8, 16, 32 or 64 bit wide ints.␤»
20:55 timotimo ah, so it *does* pass the nativesize
20:57 dalek roast: 7cac63f | (Tobias Leich)++ | S02- (21 files):
20:57 dalek roast: eval => EVAL in S02, take 2
20:57 dalek roast: review: https://github.com/perl6/roast/commit/7cac63fcab
20:58 ivan`` joined #perl6
20:59 timotimo adding debug outputs to get_int and set_int in P6int is making the compilation a *bit* slower :D
20:59 arnsholt Heh
21:00 arnsholt What's the problem you're debugging?
21:00 lue timotimo: I'd think that forcing Perl 6 to use an X bits only in memory would work, without mask fiddling, right?
21:00 dalek nqp: 70a5d77 | jonathan++ | src/vm/moar/QAST/QASTOperationsMAST.nqp:
21:00 dalek nqp: Add some missing decont markers.
21:00 dalek nqp:
21:00 dalek nqp: The MoarVM ops wrongly attempted to handle this before.
21:00 dalek nqp: review: https://github.com/perl6/nqp/commit/70a5d7765c
21:00 arnsholt Some of the bitsize code in vm/parrot/src/P6int.c is my fault
21:01 timotimo good question, though it does have those masks and i'll now try to figure out why it's not using them.
21:01 jnthn timotimo: What're you trying to make work?
21:01 jnthn timotimo: If it's native lexicals, then those don't get handled via P6int's copy_to...
21:01 timotimo r: my int8 $foo = 1024; say $foo
21:01 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«1024␤»
21:01 timotimo ah, okay. where do i have to look to fix this? will it take me minutes or weeks?
21:02 TimToady neither, most likely
21:02 jnthn Well, I'd rather not just hack somehting in.
21:02 jnthn It needs a design, that includes designing the stuff for the rw-passing case too...
21:02 timotimo that does sound suspiciously like "a long time" :))
21:03 jnthn Well, make $native_int++ work is pretty high on my todo list :)
21:03 timotimo OK, i'll wait for you to do this properly
21:03 timotimo feel free to toss any low-hanging fruit my way in the mean time :)
21:03 jnthn nqp::p6sort on Moar? ;-)
21:03 moritz FROGGS_: feel free to do the rest
21:04 FROGGS_ moritz: k
21:04 dalek roast: bb5077a | (Tobias Leich)++ | S0 (31 files):
21:04 dalek roast: eval => EVAL in S03 and S04
21:04 dalek roast: review: https://github.com/perl6/roast/commit/bb5077a0d5
21:04 timotimo oh my. that's not terribly easy, is it?
21:04 jnthn Dunno, how good are you at implementing mergesort? :)
21:04 FROGGS_ p6sort++
21:04 jnthn In NQP?
21:04 BenGoldberg The masks for native ints don't need to be used everywhere... only when converting from a 'small' native int to a larger one, or to an Int
21:05 timotimo oh, in nqp? that doesn't sound as scary
21:05 timotimo do we want mergesort because it's stable?
21:05 jnthn Yeah. I'm happy with introsort too...
21:06 moritz stable, fairly stable performance, cache-friendly-ish
21:06 jnthn But I guess start with mergesort.
21:06 timotimo hm, timsort isn't stable, right?
21:06 jnthn .oO( timosort )
21:06 * BenGoldberg wants quantum bogosort.
21:06 timotimo BenGoldberg: we lack hardware support for that :)
21:06 BenGoldberg heh
21:07 moritz https://mail.python.org/pipermail​/python-dev/2002-July/026837.html says it's stable
21:07 timotimo jnthn: where would p6sort live? i can imagine i could write an implementation of it in QAST, but i'd rather implement it in actual nqp
21:08 jnthn timotimo: Oh, we'll use the "put it in a proto in src/vm/moar/Perl6/Ops.nqp and reference it through a QAST::WVal" trick
21:09 jnthn timotimo: Want me to stub that bit?
21:09 timotimo i see some other examples of that
21:09 timotimo i think i can copypaste one of them
21:09 timotimo and that's a pretty neat trick :)
21:09 arnsholt timotimo: Link me?
21:10 timotimo i think i remember masak being amazed by it some time ago
21:10 timotimo https://github.com/rakudo/rakudo/blob/moa​r-support/src/vm/moar/Perl6/Ops.nqp#L398
21:11 jnthn timotimo: Yes, that trick
21:11 timotimo $ops.add_hll_moarop_mapping('perl6', 'p6sort', 'p6sort'); <- i can safely replace this line with my implementation?
21:11 jnthn Yes
21:12 jnthn And then toss code from perl6_ops.c
21:12 arnsholt Oooh, that's clever =D
21:12 jnthn (the latter being just cleanup, not essential for i tto work)
21:13 timotimo yeah, sure
21:13 timotimo the args are going to be @data, &comparator, yes?
21:14 jnthn right
21:14 jnthn And @data is just the indexes
21:15 timotimo if there's unary sort, it will already have been ... yeah
21:15 timotimo the comparator knows how to work on indices rather than the original data?
21:15 jnthn yes
21:15 dalek roast: 04daf2d | (Tobias Leich)++ | S0 (40 files):
21:15 dalek roast: eval => EVAL in S05, S06 and S09
21:15 dalek roast: review: https://github.com/perl6/roast/commit/04daf2d67f
21:15 timotimo great. that should be all i need to know to implement it :)
21:17 BenGoldberg There are several sorting algorithms which people have implemented in perl6 and put on the RosettaCode web site.  It shouldn't be too hard to translate the code from http://rosettacode.org/wiki/Sort​ing_algorithms/Merge_sort#Perl_6 to NQP
21:17 jnthn timotimo: Lots of non-sorting tests just happen to use sort (like for comparing hashes)
21:18 jnthn timotimo: So could be quite a few tests there :)
21:18 timotimo should i make a point of not mutating the list? or is it a good idea to do it in-place?
21:18 timotimo since it's just indices anyway, i think it'd be fine
21:21 jnthn timotimo: No reason not to do it in-place.
21:21 timotimo it seems like there's a not-completely-but-practically in-place version that just copies back and forth between two buffers
21:25 masak BenGoldberg: be aware that "Quantum computers are not known to be able
21:25 masak to solve NP-complete problems in polynomial time,
21:25 masak and can be simulated classically with exponential slowdown."
21:26 dalek roast: 06ae909 | (Tobias Leich)++ | S1 (20 files):
21:26 dalek roast: eval => EVAL in S10 to S12
21:26 dalek roast: review: https://github.com/perl6/roast/commit/06ae909794
21:26 * BenGoldberg doesn't think masak gets the joke.
21:26 masak BenGoldberg: in particular, the pop media have hammered away for decades about how quantum computers can "run all the possibilities at once, finding the right answer". they can't.
21:26 masak BenGoldberg: oh, I got it. :)
21:26 BenGoldberg Quantum bogosort is basically defined as: shuffle the data, and if it's not sorted, destroy the universe.
21:27 masak oh, you're a many-universes proponent.
21:27 masak well, I hope you're right about that bit ;)
21:28 BenGoldberg I don't think that there's a non-many-universes definition of quantum bogosort. :)
21:28 jnap joined #perl6
21:29 jnap1 joined #perl6
21:29 timotimo the problem is: if you use quantum bogosort on a meta-universe that doesn't behave like many-universe theory would suggest, you'd destroy the single universe you have if you don't shuffle right :P
21:30 jnthn .oO( all I asked for was a sort routine, and now we're talking about destroying the universe :P )
21:31 masak BenGoldberg: it suddenly occurs to me that the many-worlds hypothesis might be right, *and* some stupid aliens ran too much quantum bogosort on the multiverse, such that there is now only one universe left and quantum bogosort is outlawed, for obvious reasons.
21:33 lue masak: wouldn't some sneaky sorting bandits make off to another multiverse then?
21:34 TimToady you're thinking of time bandits
21:35 BenGoldberg Moving from one universe to another -- or from one multiverse to another -- require one to be very sneaky.
21:35 diakopter also very small
21:37 dalek roast: 5bab36f | (Tobias Leich)++ | / (36 files):
21:37 dalek roast: eval => EVAL in S14 to S32
21:37 dalek roast: review: https://github.com/perl6/roast/commit/5bab36fd62
21:39 masak I always envision some very angry dead Greek philosopher going "it's called *universe* because it holds *everything*, you dorks!"
21:39 masak 'night, #perl6
21:39 jnthn 'night, masak
21:39 BenGoldberg 'night masak
21:40 dagurval r: my %a; say True if True && %a{"a"}:exists
21:40 camelia rakudo-jvm a77214: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/YfBdrBQhtUâ�¤You can't adverb thatâ�¤at /tmp/YfBdrBQhtU:1â�¤------> [32my %a; say True if True && %a{"a"}:exists[33mâ��[31m<EOL>[0mâ�¤    expecting any of:â�¤        pair valueâ�¤Â»
21:40 camelia ..rakudo-parrot a77214: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/OBAHpwTRP6â�¤You can't adverb thatâ�¤at /tmp/OBAHpwTRP6:1â�¤------> [32my %a; say True if True && %a{"a"}:exists[33mâ��[31m<EOL>[0mâ�¤    expecting any of:â�¤        pair valueâ�¤Â»
21:40 dagurval r: my %a; say True if %a{"a"}:exists
21:40 camelia rakudo-parrot a77214, rakudo-jvm a77214: ( no output )
21:40 dagurval bug?
21:41 BenGoldberg Why would it say True?
21:41 BenGoldberg r: my %a; say %a{"a"}:exists
21:41 dagurval the first one should parse
21:41 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«False␤»
21:41 dagurval if I use && in an if statement with adverb it fails
21:42 BenGoldberg my %a; say True if True and %a{"a"}:exists
21:42 BenGoldberg r: my %a; say True if True and %a{"a"}:exists
21:42 camelia rakudo-parrot a77214, rakudo-jvm a77214: ( no output )
21:42 BenGoldberg r: my %a; say True if (True and %a{"a"}):exists
21:42 camelia rakudo-parrot a77214: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/esPTzxjM3Mâ�¤You can't adverb thatâ�¤at /tmp/esPTzxjM3M:1â�¤------> [32ma; say True if (True and %a{"a"}):exists[33mâ��[31m<EOL>[0mâ�¤    expecting any of:â�¤        pair valueâ�¤Â»
21:42 camelia ..rakudo-jvm a77214: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/mVGjrPEj13â�¤You can't adverb thatâ�¤at /tmp/mVGjrPEj13:1â�¤------> [32ma; say True if (True and %a{"a"}):exists[33mâ��[31m<EOL>[0mâ�¤    expecting any of:â�¤        pair valueâ�¤Â»
21:42 BenGoldberg It fails to parse with '&&' (and succeeds with 'and') due to precedence.
21:43 BenGoldberg r: my %a; say True if True && (%a{"a"}:exists)
21:43 camelia rakudo-parrot a77214, rakudo-jvm a77214: ( no output )
21:43 BenGoldberg && has higher precedence than :
21:43 dagurval ah, I see
21:44 BenGoldberg Fortunately, 'and' take only one extra letter to type than '&&'
21:46 timotimo n: say(min(1, 5))
21:46 camelia niecza v24-108-g17d73e4: OUTPUT«1␤»
21:47 dalek Heuristic branch merge: pushed 46 commits to rakudo/moar-support by jnthn
21:48 timotimo jnthn: i pass the values from inside @data to the comparator, not the index into @data, right?
21:48 dagurval rp: my %a; 1 if !%a<hello>:exists
21:48 camelia rakudo-parrot a77214: OUTPUT«Unexpected named parameter 'exists' passed␤  in sub prefix:<!> at gen/parrot/CORE.setting:3728␤  in block  at /tmp/KYj11WKUIV:1␤␤»
21:48 zakalwe joined #perl6
21:48 dagurval this one is also weird. I have to use :!exists
21:48 zakalwe joined #perl6
21:48 dagurval precedence as well?
21:48 dalek rakudo/moar-support: 432e2dc | jonathan++ | src/Perl6/Metamodel/BOOTSTRAP.nqp:
21:48 dalek rakudo/moar-support: Toss unrequired nqp::decont.
21:48 dalek rakudo/moar-support: review: https://github.com/rakudo/rakudo/commit/432e2dc329
21:48 dalek rakudo/moar-support: bffd491 | jonathan++ | src/vm/moar/ops/ (2 files):
21:48 dalek rakudo/moar-support: Flesh out default handling, rw-check.
21:48 dalek rakudo/moar-support: review: https://github.com/rakudo/rakudo/commit/bffd4911ea
21:49 TimToady p: my %a; 1 if not %a<hello>:exists
21:49 camelia rakudo-parrot a77214: ( no output )
21:50 jnthn Or just use "unless" there...
21:51 dalek niecza: 48a8de3 | (Tobias Leich)++ | / (15 files):
21:51 dalek niecza: rename sub and method `eval` to `EVAL`
21:51 dalek niecza: review: https://github.com/sorear/niecza/commit/48a8de3213
21:52 [Coke]_ today's daily run waiting for rakudo.jvm to finish its slow run (still in S06) - moar is about where it was in the one-off run yesterday.
21:52 [Coke]_ 17219 moar vs. 28345 parrot
21:53 jnthn r: say 17219/28345
21:53 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«0.607479␤»
21:53 jnthn Not a bad starting point...
21:53 dagurval nice
21:54 FROGGS_ this morning I had like 43k passing tests in a single v5 test file :o)
21:54 jnthn Let's see if we can get 90% for the January release :)
21:54 FROGGS_ and then I interrupted that test which looped over an ok(1) :o(
21:54 jnthn FROGGS_: :P
21:55 timotimo jnthn: there are very, very many false positives, i suspect
21:55 diakopter [Coke]_: how fast is moar's test run
21:56 jnthn timotimo: In the Rakudo one?
21:56 timotimo yes
21:56 jnthn timotimo: Where from, ooc?
21:56 timotimo for moar; i see so many passing TODOs, that can't be right
21:56 timotimo or did we todo-fudge lots and lots of tests for moar only?
21:56 xenoterracide joined #perl6
21:57 jnthn No, they're probably bogus...
21:57 jnthn Hard to say
21:57 timotimo we just have to make sure we fix the underlying problems soon enough :P
21:57 timotimo i don't think we'll get to 90% proper passes without doing the implementation of gather/take
21:57 * FROGGS_ .oO( hard to print )
21:57 jnthn FROGGS_: Well, you only need to gist of it to say... :P
21:58 FROGGS_ :P
21:58 jnthn timotimo: Yes, that's high on my list of things to take care of once I'm back home.
21:59 timotimo aye
22:00 timotimo i'm getting a Unhandled exception: Invocant requires an instance, but a type object was passed from *somewhere* :\
22:00 timotimo oh duh
22:00 timotimo i forgot to remove that line that was in there previously for the p6sort
22:01 jnthn That is the current "fail to report error" failure...add --ll-exception for more.
22:01 timotimo ah.
22:01 timotimo i bet it came from having the same op registered twice in two different ways
22:02 timotimo and now i notice i never actually return the sorted array %)
22:02 FROGGS_ premature optimization? :P
22:03 lue "/usr/local/include/parrot/5.10​.0-devel/parrot/parrot.h:94:19: fatal error: ffi.h: No such file or directory" I... I think I need to double-check parrot O.o
22:03 smls joined #perl6
22:05 smls happy new year :)
22:05 preflex smls: you have 1 new message. '/msg preflex messages' to read it.
22:07 smls Timtoady: re "0 but true": Yeah I did come across that before in Perl 5, but never used it in my own code. (I thought it was just a hack to make Perl interoperate with Unix libraries?)
22:08 smls I prefer relying on defined'ness, myself
22:10 timotimo huh. i have an inner sub and trying to invoke it gives me "cannot invoke null object"
22:11 lue Could anyone explain how I'm all of a sudden getting issues with ffi.h when trying to compile the perl6 .ops? Where would that come from anyway?
22:11 timotimo oh, i think i misread the stack
22:11 timotimo i think i'm failing to invoke the comparator
22:12 FROGGS_ lue: nqp/parrot/include/parrot/parrot.h:94:#  include <ffi.h>
22:13 FROGGS_ lue: though, mine is 5.9.0
22:13 FROGGS_ but it must be something in parrot itself
22:13 lue FROGGS_: yes, though my issue is it not finding ffi.h
22:14 FROGGS_ lue: so the configure scripts is able to find it, but not the compiler?
22:14 * lue recompiles parrot
22:14 lue This was trying to compile rakudo, by the way, so if NQP uses the same stuff it somehow didn't trigger there.
22:17 FROGGS_ well, rakudo includes parrot.h... so somehow a defined PARROT_HAS_LIBFFI sneaks in
22:18 FROGGS_ maybe grep for PARROT_HAS_LIBFFI ?
22:18 FROGGS_ if you don't have ffi there should be nothing that defines it in parrot, or rakudo
22:21 timotimo jnthn: you think i'm doing something spectacularly wrong if i just accept an &comparator on my nqp-level proto sub and try to invoke that as comparator($a, $b)?
22:21 timotimo or do i have to do my own argument unpacking for some reason?
22:21 dalek rakudo/moar-support: 12c8797 | jonathan++ | src/vm/moar/ops/ (2 files):
22:21 dalek rakudo/moar-support: Use proper thunk API, in turn fixing GC bug.
22:21 dalek rakudo/moar-support: review: https://github.com/rakudo/rakudo/commit/12c8797039
22:21 jnthn timotimo: No, that should work out OK...
22:22 lue I do have libffi though, but no ffi.h ...
22:22 timotimo weird. how come i get "cannot invoke null object"?
22:22 jnthn timotimo: No idea...
22:22 timotimo i'll investigate further
22:23 geekosaur missing dev package?
22:23 lue WTH, libffi? /usr/lib64/<libffi-with-ver>/include/ffi.h
22:24 lue (Still doesn't answer why parrot's decided to stop finding it though)
22:24 lue geekosaur: I'm on gentoo. What are these "dev" packages of which you speak? :)
22:29 geekosaur ah
22:29 timotimo jnthn: i've put a nqp::isnull before the code and it doesn't trigger on &comparator :\
22:30 jnthn timotimo: Then I'd guess that's not the null thing...
22:31 timotimo i'm now inlining my helper sub to do the merging, in the hopes that that was somehow the null
22:31 timotimo but i doubt it :\
22:31 timotimo i should be able to use postcircumfix:<[ ]> for nqp::list_i and friends, yes?
22:31 [Coke]_ diakopter: I don't do timings. seemed slowish.
22:32 FROGGS_ timotimo: why not nqp::atpos ?
22:32 timotimo [Coke]_: i imagine lots of them infiniloop
22:32 timotimo FROGGS_: i can do that.
22:33 dalek rakudo/moar-support: 4c5b07e | jonathan++ | src/Perl6/Metamodel/BOOTSTRAP.nqp:
22:33 dalek rakudo/moar-support: Fix copy-pastos.
22:33 dalek rakudo/moar-support: review: https://github.com/rakudo/rakudo/commit/4c5b07e75d
22:34 [Coke]_ timotimo: (infin) right.
22:44 daniel-s_ joined #perl6
22:46 jnthn Another Moar LHF-ish: something is up with nqp::xor code-gen. Search for "Cannot find method 'result_reg'" in http://feather.perl6.nl/~coke/moar.out
22:48 FROGGS_ I'll take that
22:48 timotimo it is indeed the call to the comparator that gives me a null-invoke
22:48 timotimo directly after the nqp::isnull check gives me 0
22:50 jnthn Odd.
22:51 jnthn timotimo: Can I see the patch so far?
22:51 timotimo sure, one sec
22:52 timotimo https://gist.github.com/timo/af7bc1b6725d1734a6eb
22:53 arnsholt joined #perl6
22:54 daniel-s__ joined #perl6
22:54 jnthn timotimo: Does s/say/nqp::say/ help?
22:54 timotimo let's see
22:54 jnthn timotimo: May be running into weird scoping stuff when the proto is referenced through a QAST::WVal...
22:55 timotimo oh! you may be onto something
22:55 timotimo because it didn't print *any* of the debug strings
22:55 timotimo where it really should have printed at least one
22:55 jnthn aye, it's probably that.
22:58 FROGGS_ nqp-m -e 'nqp::xor(1, 3, 4)'
22:58 FROGGS_ Error while compiling op xor (source text: "nqp::xor(1, 3, 4)"): Cannot find method 'result_reg'
22:58 raiph joined #perl6
23:01 timotimo jnthn: oh, it may be that i have to evaluate the More/Less objects in Int context to properly compare
23:01 timotimo er, actually, compare its int to 1? i guess?
23:01 jnap joined #perl6
23:01 timotimo r: say 1 < 5; say 1 <=> 5;
23:01 camelia rakudo-parrot a77214, rakudo-jvm a77214: OUTPUT«True␤Less␤»
23:01 timotimo p: say (1 <=> 5).Int
23:01 camelia rakudo-parrot a77214: OUTPUT«-1␤»
23:02 jnthn timotimo: Yeah, well I guess they come back 0, > 0 and < 0
23:07 timotimo jnthn: .Int on the return value of comparator(...) and comparing it to -1 still gives me a null invoke; i must be looking at the wrong place
23:10 jnthn timotimo: I'd imagine you can just directly do the comparison...
23:10 timotimo to -1? yeah, i think i could. i want to be extra sure
23:13 smls p: say (1 <=> 5).WHAT; say (1 <=> 5).enums;
23:13 camelia rakudo-parrot a77214: OUTPUT«(Order)␤("Less" => -1, "Same" => 0, "More" => 1).hash␤»
23:13 timotimo oh? i can even get back to the enums that easily?
23:13 timotimo cool beans :)
23:13 smls just discovered it myself :)
23:17 dalek nqp: cd0db4e | (Tobias Leich)++ | src/vm/moar/QAST/QASTOperationsMAST.nqp:
23:17 dalek nqp: dont call .result_reg on something that is a register
23:17 dalek nqp: review: https://github.com/perl6/nqp/commit/cd0db4ea2a
23:18 [Coke] FROGGS++
23:18 jnthn yay
23:22 timotimo oh
23:22 timotimo actually, my call to min may be breaking
23:22 timotimo nqp: nqp::say(nqp::min(5, 8))
23:22 camelia nqp-parrot: OUTPUT«Error while compiling op min (source text: "nqp::min(5, 8)"): No registered operation handler for 'min'␤current instr.: '' pc 57054 (gen/parrot/stage2/QAST.pir:21045) (gen/parrot/stage2/QAST.nqp:3631)␤»
23:22 camelia ..nqp-jvm: OUTPUT«Method 'type' not found for invocant of class 'NQPMu'␤  in coerce (gen/jvm/stage2/QAST.nqp:4205)␤  in as_jast (gen/jvm/stage2/QAST.nqp:2988)␤  in  (gen/jvm/stage2/QAST.nqp:3785)␤  in compile_all_the_stmts (gen/jvm/stage2/QAST.nqp:3773)␤  in as_jast (gen/jvm…»
23:22 camelia ..nqp-moarvm: OUTPUT«Error while compiling op min (source text: "nqp::min(5, 8)"): No registered operation handler for 'min'␤frame_name_1109␤»
23:22 timotimo and there's no nqp:: form of that it seems
23:22 timotimo i can just turn it into a ternary, though
23:26 FROGGS_ failed to load library 'dynext/libperl6_ops_moar.so'
23:26 FROGGS_ :o(
23:27 jnthn FROGGS_: Make sure you've got a latest Moar...
23:27 jnthn You're probably missing a newly exported symbol
23:28 FROGGS_ already rebuilding
23:28 FROGGS_ should be it
23:42 timotimo nqp: my $l := nqp::list(1); say(nqp::atpos_i($l, 0));
23:42 camelia nqp-parrot: OUTPUT«1␤»
23:42 camelia ..nqp-jvm: OUTPUT«VMArray representation does not implement at_pos_boxed_native␤  in  (/tmp/cpjQLHgjQz:1)␤  in  (gen/jvm/stage2/NQPHLL.nqp:1100)␤  in eval (gen/jvm/stage2/NQPHLL.nqp:1086)␤  in evalfiles (gen/jvm/stage2/NQPHLL.nqp:1292)␤  in command_eval (gen/jvm/stage2/NQPHL…»
23:42 camelia ..nqp-moarvm: OUTPUT«MVMArray: atpos expected object register␤frame_name_0␤»
23:43 timotimo hurm.
23:43 timotimo i seem to be using bindpos the wrong way around :)
23:44 timotimo huh, i don't seem to be
23:46 Mouq joined #perl6
23:48 timotimo it says "bindpos expected int register", but ... what?
23:49 timotimo oh, probably my use of nqp::list_i
23:49 FROGGS_ reduce.t does some very weird stuff around test 78 :o)
23:53 timotimo 3 1 3 1 5 5 5 5
23:53 timotimo that totally looks sorted, right?
23:53 lue FROGGS_: I think somehow parrot forgot to -I for libffi?
23:53 FROGGS_ sort of
23:54 FROGGS_ lue: I'd thought your compiler has these paths built in, no?
23:54 FROGGS_ at least that is what I hear from the debian guys often
23:54 lue FROGGS_: apparently not /usr/lib64/<libffidir>/include
23:55 lue Though this is the first time Parrot has whined to me, and I haven't had an update to libffi lately, so...
23:58 lue pkg-config --cflags will give me the appropriate -I option. Hmmm...

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

Perl 6 | Reference Documentation | Rakudo