»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend!
Set by sorear on 4 February 2011.
dalek p-jvm-prep: 4337905 | jnthn++ | src/org/perl6/nqp/runtime/Ops.java:
Fix to character class handling.

With this, NQP self-hosted on JVM can do tests 1..20 from t/nqp with only two failures.
00:14
jnthn We get the odd ones from beyond there too...didn't look too hard.
00:25 ikrs joined 00:29 cognominal joined, fgomez left
japhb jnthn, this commit seems strange to me: github.com/jnthn/nqp-jvm-prep/commit/9a5e5a5e1f ... since you're doing ternaries all over the place, why negate the predicate in each case, instead of just switching the branches of the ternary? Or does NQP optimize that away automatically? 00:33
00:34 Exodist joined
jnthn japhb: 'cus I wrote it the wrong way round first time and then wanted to fix it quickly... :) 00:34
I need to reconcile the diffs here with the NQP repo anyway, so I'll take care of it then 00:35
00:37 pmurias left
japhb Makes sense. 00:38
colomon jnthn++ 00:53
00:57 araujo joined, araujo left, araujo joined 01:04 anuby joined
dalek p-jvm-prep: e58bbdb | jnthn++ | src/org/perl6/nqp/runtime/Ops.java:
Fix nqp::defined(...) bug.

Wins a few more tests.
01:10
p-jvm-prep: 1ca4a94 | jnthn++ | nqp-src/QASTNodes.nqp:
Some QASTNode updates I missed earlier.
p-jvm-prep: 4b14a9f | jnthn++ | src/org/perl6/nqp/sixmodel/reprs/VMArrayInstance (4 files):
Fix an array cloning bug.
01:10 cognominal left
p-jvm-prep: 3e0363c | jnthn++ | nqp-src/NQP.pm:
Start loading the regex library.
01:15 skids joined, cognominal joined 01:16 hypolin joined
colomon rn: say "/params/bar" ~~ m{/params/(<-[\/\.]>+)} 01:21
p6eval niecza v24-24-gbdc3343: OUTPUT«===SORRY!===␤␤Unrecognized regex metacharacter / (must be quoted to match literally) at /tmp/pY2LY7fXlu line 1:␤------> say "/params/bar" ~~ m{/⏏params/(<-[\/\.]>+)}␤␤Unhandled exception: Unable to resolve method ast in…
..rakudo f4e96b: OUTPUT«===SORRY!===␤Unrecognized regex metacharacter / (must be quoted to match literally)␤at /tmp/J4gEP8fUjE:1␤------> say "/params/bar" ~~ m{⏏/params/(<-[\/\.]>+)}␤Regex not terminated␤at /tmp/J4gEP8fUjE:1␤------> say "/params/b…
colomon rn: say "/params/bar" ~~ m{"/params/"(<-[\/\.]>+)} 01:23
p6eval rakudo f4e96b, niecza v24-24-gbdc3343: OUTPUT«「/params/bar」␤ 0 => 「bar」␤␤»
01:26 cognominal__ joined 01:27 cognominal left
jnthn Grr. There's some mixin bug that hoses any test that involves named parameters in some way. Not having much look finding it...probably a combination of it being 2:30am and the 15% beer... :) 01:31
Anyways, I think the self-hosted passes at least half of the tests that the cross-compiled does. 01:32
colomon \o/ 01:33
how many is the cross-compiled passing now?
jnthn 57
colomon of?
01:34 cognominal__ left
jnthn There's 65 in t/nqp in the NQP repo, but 3 are Parrot specific, so 62 is the goal I guess. 01:34
colomon sweet
01:34 cognominal__ joined
jnthn The best clue I have on the mixins bug is that it only happens once we hit the mixin cache. 01:35
diakopter jnthn: *wow* it's late 01:36
jnthn diakopter: Yeah :)
But you don't rush a beer this good ;)
(Stout Aged in Isle of Arran Whisky Barrels ;)) 01:38
01:43 Entonian joined
jnthn Yeah, I ain't gonna find this bug tonight... Eh, well...there's tomorrow. :) 01:46
'night o/
uvtc \o
01:48 Entonian left 01:51 Entonian joined 01:53 Entonian left
colomon r: my $a = "'/'params'/'(<-[\/\.]>+)"; say $a; 01:54
p6eval rakudo f4e96b: OUTPUT«'/'params'/'(<-[/.]>+)␤» 01:55
colomon r: my $a = "'/'params'/'(<-[\/\.]>+)"; my $m = / ^ <_capture=$a> $ /; say "/params/bar" ~~ $m
p6eval rakudo f4e96b: OUTPUT«「/params/bar」␤ _capture => 「/params/bar」␤␤»
colomon r: my $a = "'/'params'/'(<-[\/\.]>+)"; my $m = / ^ $a $ /; say "/params/bar" ~~ $m 01:56
p6eval rakudo f4e96b: OUTPUT«#<failed match>␤»
colomon r: my $a = "'/'params'/'(<-[\/\.]>+)"; my $m = / ^ <$a> $ /; say "/params/bar" ~~ $m
p6eval rakudo f4e96b: OUTPUT«「/params/bar」␤␤»
colomon r: my $a = "'/'params'/'(<-[\/\.]>+)"; my $m = / ^ < $a > $ /; say "/params/bar" ~~ $m
p6eval rakudo f4e96b: OUTPUT«#<failed match>␤»
TimToady rosettacode.org/wiki/Old_lady_swall...fly#Perl_6
colomon r: my $a = "'/'params'/'(<-[\/\.]>+)"; my $m = / ^ <$a> $ /; say "/params/bar" ~~ $m
p6eval rakudo f4e96b: OUTPUT«「/params/bar」␤␤»
colomon n: my $a = "'/'params'/'(<-[\/\.]>+)"; my $m = / ^ <$a> $ /; say "/params/bar" ~~ $m
p6eval niecza v24-24-gbdc3343: OUTPUT«「/params/bar」␤␤»
colomon argh
skids What's next, "there's a hole in the bucket Elvira"? 02:01
TimToady feel free to add it to RC :) 02:02
and it's Dear Liza
colomon dear Liza, dear Liza 02:03
skids Oh right. Probably would make a good gag for comments in circular saw code.
02:03 cognominal__ left, cognominal joined
TimToady though it's actually fairly boring compared to the old lady 02:03
colomon doesn't remember why he knows that at all, doesn't think he learned it as a child 02:04
perigrin you listen to a lot of Spearchucker?
colomon nooo......
perigrin oh ... cause there's a great hip hop song that uses it as a refrain
:) 02:05
colomon TimToady: In that last example up there, is the match suppose to capture the bit in parentheses?
About the only hip-hop I have ever listened to intentionally is "A Night at The Hip-Hopera" 02:06
02:08 cognominal left 02:09 cognominal joined 02:17 census left
perigrin colomon: youtu.be/DRfr4LAqi18 is the song ... and it was Spearhead not spearchucker ... must have confused it with M.A.S.H. 02:21
02:21 cognominal left
perigrin wait that's not the right song ... sounds similar at the beginning 02:22
02:22 Chillance joined
colomon rn: my $a = "'/'params'/'<foo=<-[\/\.]>+>)"; my $m = / ^ <$a> $ /; say "/params/bar" ~~ $m 02:22
p6eval rakudo f4e96b: OUTPUT«===SORRY!===␤regex assertion not terminated by angle bracket␤at eval_0:1␤------> my $x = anon regex { ^'/'params'/'<foo=⏏<-[/.]>+>) }␤ expecting any of:␤ scoped declarator␤ new name to be defined␤ single …
..niecza v24-24-gbdc3343: OUTPUT«Unhandled exception: Unrecognized regex assertion at (eval) line 1:␤------> regex {'/'params'/'<foo=⏏<-[/.]>+>)}␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 1443 (die @ 5) ␤ at /home/p6eval/niecza/src/STD.pm6 line 5597 (STD.pan…
02:23 cognominal joined 02:24 mjreed joined
perigrin colomon: here we go youtu.be/U2LnplyZlYI 02:24
sorry about that
colomon no worries 02:29
02:29 lustlife joined
colomon and thank you. 02:30
rn: my $r1 = m/ (\d+) /; my $r2 = m/ (\w+) /; say "123ada" ~~ / <$r1> <$r2> /; 02:39
p6eval rakudo f4e96b: OUTPUT«No such method 'match' for invocant of type 'Any'␤ in block at /tmp/wydZvC5PuO:1␤␤»
..niecza v24-24-gbdc3343: OUTPUT«Unhandled exception: Unable to resolve method match in type Any␤ at /tmp/BX_p179HBn line 1 (mainline @ 3) ␤ at /home/p6eval/niecza/lib/CORE.setting line 4233 (ANON @ 3) ␤ at /home/p6eval/niecza/lib/CORE.setting line 4234 (module-CORE @ 580) ␤ at /home/…
colomon rn: my $r1 = / (\d+) /; my $r2 = / (\w+) /; say "123ada" ~~ / <$r1> <$r2> /;
p6eval rakudo f4e96b, niecza v24-24-gbdc3343: OUTPUT«「123ada」␤␤»
colomon rn: my $r1 = / (\d+) /; my $r2 = / (\w+) /; say "123ada" ~~ / <1=$r1> <2=$r2> /; 02:40
p6eval niecza v24-24-gbdc3343: OUTPUT«===SORRY!===␤␤Unrecognized regex assertion at /tmp/VijFhpIp1k line 1:␤------> my $r2 = / (\w+) /; say "123ada" ~~ / <⏏1=$r1> <2=$r2> /;␤␤Parse failed␤␤»
..rakudo f4e96b: OUTPUT«===SORRY!===␤Unrecognized regex metacharacter < (must be quoted to match literally)␤at /tmp/tsZcf41fhT:1␤------> my $r2 = / (\w+) /; say "123ada" ~~ / <⏏1=$r1> <2=$r2> /;␤Unable to parse regex; couldn't find final '/'␤at /tmp/t…
colomon rn: my $r1 = / (\d+) /; my $r2 = / (\w+) /; say "123ada" ~~ / <a1=$r1> <a2=$r2> /;
p6eval rakudo f4e96b, niecza v24-24-gbdc3343: OUTPUT«「123ada」␤ a1 => 「123」␤ 0 => 「123」␤ a2 => 「ada」␤ 0 => 「ada」␤␤»
02:42 lustlife1 joined 02:43 lustlife left
colomon rn: my $a = "'/'params'/'<foo=<-[\/\.]>+>)"; say eval('"/params/bar" ~~ / <$m> /') 02:43
p6eval niecza v24-24-gbdc3343: OUTPUT«Potential difficulties:␤ $a is declared but not used at /tmp/oA6iiiEU8J line 1:␤------> my ⏏$a = "'/'params'/'<foo=<-[\/\.]>+>)"; sa␤␤Unhandled exception: Variable $m is not predeclared␤ at /home/p6eval/niecza/boot/lib/CORE.setting lin…
..rakudo f4e96b: OUTPUT«Nominal type check failed for parameter '$var'; expected Any but got Mu instead␤ in method INTERPOLATE at src/gen/CORE.setting:10698␤ in regex at eval_0:1␤ in method ACCEPTS at src/gen/CORE.setting:10804␤ in block at eval_0:1␤ in at eval_0:1␤ in sub eval a…
02:43 lustlife1 left
colomon rn: my $a = "'/'params'/'<foo=<-[\/\.]>+>)"; say eval(qq["/params/bar" ~~ / <$a> /]) 02:44
p6eval rakudo f4e96b: OUTPUT«===SORRY!===␤Unrecognized regex metacharacter < (must be quoted to match literally)␤at eval_0:1␤------> "/params/bar" ~~ / <⏏'/'params'/'<foo=<-[/.]>+>)> /␤Unable to parse regex; couldn't find final '/'␤at eval_0:1␤------> …
..niecza v24-24-gbdc3343: OUTPUT«Unhandled exception: Unrecognized regex assertion at (eval) line 1:␤------> "/params/bar" ~~ / <⏏'/'params'/'<foo=<-[/.]>+>)> /␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 1443 (die @ 5) ␤ at /home/p6eval/niecza/src/STD.pm6 lin…
colomon rn: my $a = "'/'params'/'<foo=<-[\/\.]>+>)"; say eval(q["/params/bar" ~~ / <$a> /])
p6eval rakudo f4e96b: OUTPUT«===SORRY!===␤regex assertion not terminated by angle bracket␤at eval_1:1␤------> my $x = anon regex { ^'/'params'/'<foo=⏏<-[/.]>+>) }␤ expecting any of:␤ scoped declarator␤ new name to be defined␤ single …
..niecza v24-24-gbdc3343: OUTPUT«Potential difficulties:␤ $a is declared but not used at /tmp/8W9BLG7WBv line 1:␤------> my ⏏$a = "'/'params'/'<foo=<-[\/\.]>+>)"; sa␤␤Unhandled exception: Unrecognized regex assertion at (eval) line 1:␤------> regex {'/'params'/'<f…
colomon rn: my $a = "'/'params'/'<foo=<-[\/\.]>+>)"; say eval(qq["/params/bar" ~~ / <$a> /]) 02:45
p6eval rakudo f4e96b: OUTPUT«===SORRY!===␤Unrecognized regex metacharacter < (must be quoted to match literally)␤at eval_0:1␤------> "/params/bar" ~~ / <⏏'/'params'/'<foo=<-[/.]>+>)> /␤Unable to parse regex; couldn't find final '/'␤at eval_0:1␤------> …
..niecza v24-24-gbdc3343: OUTPUT«Unhandled exception: Unrecognized regex assertion at (eval) line 1:␤------> "/params/bar" ~~ / <⏏'/'params'/'<foo=<-[/.]>+>)> /␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 1443 (die @ 5) ␤ at /home/p6eval/niecza/src/STD.pm6 lin…
02:47 lustlife joined
colomon so is there a way to compose regexes? 03:14
sorear what? 03:15
03:16 mjreed left
sorear I can't parse what you're trying to do 03:16
colomon sorear: I'm looking at the broken code in Bailador
sorear so what are you trying to do? 03:17
colomon it takes a string like /params/:foo and tries to build a regex which compares the full string and captures the :foo bit
03:18 anuby_ joined, anuby left
colomon it's doing this right now: 03:19
n: my $a = "'/'params'/'(<-[\/\.]>+)"; my $m = / ^ <$a> $ /; say "/params/bar" ~~ $m
p6eval niecza v24-24-gbdc3343: OUTPUT«「/params/bar」␤␤»
colomon apparently that used to capture the "bar" in Rakudo, but they've changed it to match Niecza's behavior. 03:20
so I'm trying to figure out how to get the effect it used to have.
03:22 orafu left 03:23 orafu joined 03:25 uvtc left 03:28 fgomez joined 03:32 cognominal left 03:38 cognominal joined 03:52 _jaldhar joined
colomon n: my $a = "'/'params'/'(<-[\/\.]>+)"; my $m = "/ ^ $a $ /".eval; say "/params/bar" ~~ $m 03:58
p6eval niecza v24-24-gbdc3343: OUTPUT«===SORRY!===␤␤Non-variable $ must be backslashed at /tmp/FSTWRgfKCh line 1:␤------> params'/'(<-[\/\.]>+)"; my $m = "/ ^ $a ⏏$ /".eval; say "/params/bar" ~~ $m␤␤Parse failed␤␤»
colomon n: my $a = "'/'params'/'(<-[\/\.]>+)"; my $m = "/ ^ $a \$ /".eval; say "/params/bar" ~~ $m
p6eval niecza v24-24-gbdc3343: OUTPUT«「/params/bar」␤ 0 => 「bar」␤␤»
colomon oh, that does it nicely in niecza
r: my $a = "'/'params'/'(<-[\/\.]>+)"; my $m = "/ ^ $a \$ /".eval; say "/params/bar" ~~ $m
p6eval rakudo f4e96b: OUTPUT«「/params/bar」␤ 0 => 「bar」␤␤»
colomon and rakudo.
04:17 ilogger2 joined, ChanServ sets mode: +v ilogger2 04:18 Gothmog_ joined 04:37 preflex_ joined 04:38 preflex_ is now known as preflex, benabik joined 04:41 SamuraiJack joined
TimToady rosettacode.org/wiki/Synchronous_co...ncy#Perl_6 04:43
rosettacode.org/wiki/Truncate_a_file#Perl_6 05:22
we have now passed Mathmatica; next victim is Ada :) 05:23
sorear How many languages are ahead of us? 05:26
TimToady we are currently #10 :)
sorear Do you have a ranked list?
TimToady you can run rosettacode.org/wiki/Rosetta_Code/R...ity#Perl_6 for the current standings 05:27
note, this is not really popularity, but more a measure of contributor madness 05:28
sorear you're so MAD 05:29
TimToady tough job, but someone has to do it 05:30
diakopter TimToady: <bump> STDP5 05:38
std: use v6; { use v1; } 05:40
p6eval std 52fe6d2: OUTPUT«===SORRY!===␤Cannot locate module v1 at /tmp/6_ZNDk1ly_ line 1:␤------> use v6; { use v1⏏; }␤Check failed␤FAILED 00:00 42m␤»
diakopter aww
TimToady that would be ossum :)
STD_P5 is one of the many things that have to be done first next :) 05:42
diakopter std: use v999999999999999999999999999999999999999999999999
p6eval std 52fe6d2: OUTPUT«===SORRY!===␤Cannot locate module v999999999999999999999999999999999999999999999999 at /tmp/Ed8W16i_ou line 1 (EOF):␤------> 9999999999999999999999999999999999999999⏏<EOL>␤Check failed␤FAILED 00:00 41m␤»
TimToady I wouldn't mind if someone else championed it for a while
diakopter std: use v6.0 05:43
p6eval std 52fe6d2: OUTPUT«===SORRY!===␤Confused at /tmp/CZCypyT512 line 1:␤------> use v6.0⏏<EOL>␤Parse failed␤FAILED 00:00 40m␤»
diakopter D: 05:44
TimToady the semi is not optional 05:45
diakopter std: use v6.0; 05:46
p6eval std 52fe6d2: OUTPUT«ok 00:00 40m␤»
diakopter .. he was hit by a semi 05:47
.. and his colon fell out 05:50
sorear why is the semi not optional? 05:52
diakopter cuz following stuff might be considered params? 05:53
<I once knew the justification; I've forgotten it>
05:59 quester joined 06:00 rindolf joined
TimToady because it's really switching to a new block in midblock, so the ; is a bit like a { when there really is a block 06:10
probably means we should only allow use v5; at the front like classes and modules, and require a block elsewhere 06:12
diakopter std: package Foo { }; use Foo; 06:14
p6eval std 52fe6d2: OUTPUT«===SORRY!===␤Cannot locate module Foo at /tmp/miC5Alm5v5 line 1:␤------> package Foo { }; use Foo⏏;␤Check failed␤FAILED 00:00 42m␤»
TimToady well, any use can modify the current language for the rest of the block, so I guess 'use v5' isn't so different 06:18
s/use/declaration/ 06:19
diakopter nr: use Test { eval 'use Test;' }();
p6eval niecza v24-24-gbdc3343: OUTPUT«===SORRY!===␤␤'use' with arguments NYI at /tmp/57VhOBzyHG line 1:␤------> use Test { eval 'use Test;' }()⏏;␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 1443 (die @ 5) ␤ at /h…
..rakudo f4e96b: OUTPUT«===SORRY!===␤Null PMC access in get_bool()␤»
diakopter \o/
TimToady who's getting a bool? 06:20
is someone expecting modules to still return 1?
diakopter r: use Test { try eval 'say 66; use Test;'; CATCH { say 55 } }(); 06:22
p6eval rakudo f4e96b: OUTPUT«===SORRY!===␤Null PMC access in get_bool()␤»
diakopter r: use Test { try eval 'BEGIN { say 66; }; use Test;'; CATCH { say 55 } }();
p6eval rakudo f4e96b: OUTPUT«===SORRY!===␤Null PMC access in get_bool()␤»
diakopter r: use Test { try eval 'BEGIN { say 66; }; eval \'use Test;\''; CATCH { say 55 } }(); 06:23
p6eval rakudo f4e96b: OUTPUT«===SORRY!===␤Null PMC access in get_bool()␤»
diakopter o_O
TimToady try for 1..10 { .say; die "dead" when 5 } 06:25
r: try for 1..10 { .say; die "dead" when 5 }
p6eval rakudo f4e96b: OUTPUT«1␤2␤3␤4␤5␤dead␤current instr.: 'throw' pc 333455 (src/gen/CORE.setting.pir:149679) (src/gen/CORE.setting:9303)␤called from Sub 'die' pc 35346 (src/gen/CORE.setting.pir:14008) (src/gen/CORE.setting:578)␤called from Sub '' pc 260 ((file unknown):189751590) (/tmp/jMUs…
TimToady so, why isn't the try trapping the die?
r: try eager for 1..10 { .say; die "dead" when 5 } 06:26
p6eval rakudo f4e96b: OUTPUT«===SORRY!===␤Two terms in a row␤at /tmp/JX1Z2IrRkO:1␤------> try eager for 1..10 ⏏{ .say; die "dead" when 5 }␤ expecting any of:␤ postfix␤ infix or meta-infix␤ infix stopper␤ statement end␤ …
TimToady r: try eager do for 1..10 { .say; die "dead" when 5 }
p6eval rakudo f4e96b: OUTPUT«1␤2␤3␤4␤5␤»
moritz TimToady: because for is lazy
TimToady try should be propagating its sink inward then 06:27
as should other statement prefixes
I think try should perhaps force an eager in any case? 06:28
diakopter r: try .harder 06:29
p6eval rakudo f4e96b: ( no output )
diakopter r: try .again
p6eval rakudo f4e96b: ( no output )
TimToady much like gather forces a sink on the inside 06:30
diakopter r: try .there.is.no
p6eval rakudo f4e96b: ( no output )
tadzik good morning #perl6 06:34
diakopter r: try { ... } 06:36
p6eval rakudo f4e96b: OUTPUT«Stub code executed␤current instr.: 'throw' pc 333455 (src/gen/CORE.setting.pir:149679) (src/gen/CORE.setting:9303)␤called from Sub 'sink' pc 365352 (src/gen/CORE.setting.pir:162408) (src/gen/CORE.setting:10525)␤called from Sub 'MAIN' pc 381 (src/gen/perl6.pir:146) …
diakopter r: try eager { ... }
p6eval rakudo f4e96b: ( no output )
diakopter r: try eager { beaver } 06:37
p6eval rakudo f4e96b: OUTPUT«===SORRY!===␤Undeclared routine:␤ beaver used at line 1. Did you mean '&eager'?␤␤»
diakopter erm
06:37 preflex left 06:38 sqirrel joined
tadzik phenny: tell colomon thanks for the pull request! I'll merge it as soon as I get the opportunity to run tests 06:39
phenny tadzik: I'll pass that on when colomon is around.
06:40 preflex joined
TimToady wonders if eager, sink, hyper, etc should also be statement prefixes 06:40
diakopter rn: my \a=300; eval ('{'x a)~('}'x a) 06:46
p6eval rakudo f4e96b: OUTPUT«(timeout)»
..niecza v24-24-gbdc3343: ( no output )
diakopter rakudo-parrot-- 06:47
tadzik hah, cpanm can install modules from git, given the url 06:48
as neutro did ;)
06:49 genehack left 06:50 genehack joined
diakopter eval `cpanm v6` 06:50
nqp-jvm: .self-host 06:52
07:02 wk joined 07:04 rindolf left 07:05 rindolf joined
dalek ecs: 7d6ac4c | larry++ | S04-control.pod:
make try an eager (or sink) contextualizer
07:14
07:14 rindolf left, rindolf joined 07:18 FROGGS joined 07:27 rindolf left, rindolf joined 07:33 kaleem joined 07:34 wk left, wk joined 07:35 replore_ joined 07:48 rindolf left, replore_ left 07:49 rindolf joined
diakopter awesome! all I have to do to view/render a .ps file is upload it to my Google Drive 07:54
nice find, self!
nwc10 jnthn: nqptest still passes (except for the ICU one) 07:55
07:55 brrt joined
FROGGS renames nwc10 to github-smoke-servicehook 07:56
nwc10++
diakopter ..that's over 12 unary orders of magnitude faster 08:01
nwc10 FROGGS: I don't have any other useful way to contribute
08:02 Liz_ joined
sorear nwc10++ useful indeed 08:02
08:03 wk left, Tedd1^ joined 08:07 Liz_ is now known as lizmat
FROGGS nwc10: I know what you mean :o) 08:08
08:09 ivan`` joined
FROGGS btw, I would be possible and not that hard to automate it... you just need a powerful machine that can rebuild rakudo within a few minutes, and then you can register it at github 08:09
this thing could paste the PASS/FAILED here right after someone committed to nqp and/or rakudo 08:10
DrEeevil that sounds quite easy
08:11 daxim joined 08:13 robinsmidsrod joined, rindolf left 08:14 wk joined 08:15 domidumont joined, jtpalmer joined 08:17 quester left 08:29 ObseLeTe joined 08:30 rindolf joined 08:31 wk left 08:33 domidumont left, domidumont joined 08:44 fhelmberger joined 08:52 Tedd1^ left, Tedd1 joined 09:00 mj41 joined 09:06 ObseLeTe left 09:23 wk joined 09:25 spider-mario joined
dalek kudo/vmarray: c54039f | (Arne Skjærholt)++ | / (8 files):
Start VMArrayHOW, expose it in the grammar.
09:26
p: 3dd264f | (Arne Skjærholt)++ | src/6model/reprs/VMArray. (2 files):
First implementation of compose() for VMArray.
09:28
09:29 fuad joined 09:30 fuad left 09:34 Exodist joined 09:35 dakkar joined 09:38 lizmat left
jnthn morning, #perl6 09:38
arnsholt o/ 09:41
arnsholt sets out to clean up some NQP C warnings
sorear morning jnthn 09:42
nwc10 $ time java -cp 3rdparty/bcel/bcel-5.2.jar:.:bin NQPJVM -e "say(26 ** 6)" 09:50
308915776
jnthn++ 09:51
mmm, perhaps that should be 7. It relates to this:
qr/(|B|BB|C|D|DD|G|GG|H|J|JJ|K|M|N|P|R|S|SS|T)(A|AE|E|EO|EU|I|O|OE|U|WA|WAE|WE|WEO|WI|YA|YAE|YE|YEO|YI|YO|YU)(B|BS|C|D|G|GG|GS|H|J|K|L|LB|LG|LH|LM|LP|LS|LT|M|N|NG|NH|NJ|P|S|SS|T)?/
# Computed re that splits up a Hangul name into LVT or LV syllables
which is one of the fun bits if you want to convert Unicode character names to code points 09:52
jnthn: how big is that brute-force hash that NQP-JVM currently makes for charnames? 09:55
sorear niecza uses algorithmic conversion for hangul
nwc10 And does it have all of /^HANGUL SYLLABLE .*/, qr/^CJK UNIFIED IDEOGRAPH-.*/ and qr/^CJK COMPATIBILITY IDEOGRAPH-.*/ 09:56
Perl 5 does too
sorear Yes.
nwc10 that regex
moritz fwiw the nqp-jvm-prep tests all fail here
t/qast/qast_variable.t ....... 1/9 Exception in thread "main" java.lang.RuntimeException: Wrong number of arguments passed; expected 0..0, but got 1
nwc10 That was more for jnthn - does his hack have those in?
moritz: here too
09:58 kaleem left 10:05 jerome joined
jnthn nwc10: Not sure, didn't check. I didn't really expect the hack to be the Real Solution... 10:07
nwc10 it's a reasonable hack. :-) 10:08
jnthn aye....but a hack
moritz: make nqptest works though ;)
nwc10 my rough estimate is that loading charnames on Perl 5 chews about 12M
sorear how many megs does it permanently add to the git repo tho
jnthn sorear: How many megs does what add? 10:09
nwc10 or was it 10M? Anyway, it's about 20M total, but it loads in a bunch of things
sorear: not much - the hack is to loop over the API that does exist, and hash it for an inverse lookup
jnthn sorear: The 10 lines of Java that build the hash? :)
yes, what's weird is that it knows how to turn codes into names, just not vice versa...
nwc10 anyway, I think I can see a way to build a trie+stuff which gets it down to under 2M
sorear jnthn: I was thinking you committed a copy of the character db
jnthn sorear: No :) 10:10
nwc10 2M of const static data. Good for shared pages in OSes :-)
and demand loading
what's the correct way to access @ARGV in NQP? And does NQPJVM support it yet? 10:11
can we have it for eval bot? I want to spam the channel with backtraces :-) 10:12
jnthn nwc10: sub MAIN(*@ARGV) { ... } is how NQPJVM itself does it 10:14
10:19 not_gerd joined
not_gerd o/ 10:19
how was irclog.perlgeek.de/perl6/2013-02-24#i_6493095 resolved?
has the same issue when building latest NQP
moritz works again here 10:22
10:35 PacoAir joined
not_gerd that build failure is weird 10:57
I'll try to track it down later
bye for now
10:57 not_gerd left 11:03 brrt left 11:04 donaldh joined 11:07 salv01 joined 11:23 am0c joined
timotimo good day 11:30
11:39 kresike joined
kresike hello all you happy perl6 people 11:39
dalek rl6-most-wanted: 633bb02 | (Heiko Jansen)++ | most-wanted/bindings.md:
Bindings to libxml2/xslt for fast XML processing
11:42
rl6-most-wanted: 2fdc6ee | (Tobias Leich)++ | most-wanted/bindings.md:
Merge pull request #1 from heikojansen/master

Fast XML processing
11:46 am0c left 11:47 kaleem joined
timotimo today, i'll push a patch for these error messages: 11:47
r: "" ~~ /m ** -1..1/;
p6eval rakudo f4e96b: OUTPUT«===SORRY!===␤Quantifier quantifies nothing␤at /tmp/CLHYLEz4Wl:1␤------> "" ~~ /m ** ⏏-1..1/;␤ expecting any of:␤ postfix␤ infix or meta-infix␤ infix stopper␤ prefix or term␤ prefix or meta-p… 11:48
timotimo r: "" ~~ /m ** 1..-1/;
p6eval rakudo f4e96b: OUTPUT«===SORRY!===␤Only integers or '*' allowed as range quantifier endpoint␤at /tmp/Z4_IKo7K1U:1␤------> "" ~~ /m ** 1..⏏-1/;␤»
timotimo spectests
nwc10 jnthn: 57 tests now in t/nqp/, and of the 65 in nqp, 3 are parrot specific, so that's only 5 that don't pass 100% ? 11:49
jnthn nwc10: With cross-compiler, yes. 11:51
nwc10: Self-hosting is probably around 25-30 passing 11:52
nwc10 and you're aiming at self-hosting now, before getting back to cross-compiler?
jnthn Don't have a Makefile target for that yet 11:53
I want to try and get the self-host up to the point where the cross-compile is
nwc10 aha
jnthn Given that self-host is the desired solution really. 11:54
nwc10 <mjd-esqe>Am I allowed to say "no shit, Sherlock" on a public channel?</mjd-esqe> :-)
context for that one is groups.google.com/group/comp.lang....d6d9c5cef2 11:55
jnthn is brushing up his git skillz for next week's teaching and just discovered that git push can also operate over FTP! 11:56
I almost want to set it up just for amusement :)
nwc10 can it pull over gopher? 11:59
31 days to patch it if it can't yet
jnthn Not out of the box, but there's a hook for adding more transports... :)
moritz
.oO( git push over avian carriers! )
FROGGS .oO( it definitely should pull over on these cold days ) 12:00
kresike moritz, you read my thoughts :)
12:06 robinsmidsrod left 12:09 robinsmidsrod joined 12:10 shinobicl joined, robinsmidsrod left 12:13 robinsmidsrod joined
dalek p: 63b55a0 | (Timo Paulssen)++ | src/QRegex/P6Regex/Grammar.nqp:
complain about negatives in range quantifiers.
12:13
FROGGS timotimo: a negative range startpoint is allowed? 12:17
ohh, these dont fit the rule, nvm 12:18
timotimo it is?
FROGGS damn, I cant read today ó.ò
timotimo is S02-magicals/perlver.t a good place to put tests that $*VM.perl works?
FROGGS timotimo: line 179 is wrong 12:19
12:19 mjreed joined
FROGGS there is no range at this point 12:20
this throws for a negative quantifier
12:20 SmokeMachine joined
timotimo oh, good point. 12:20
but only the error message is wrong, right?
it's still a good idea to match this and complain, yes?
FROGGS yes, and yes 12:21
timotimo thank you :)
is "negative numbers are not allowed as quantifiers" a good error? 12:22
moritz yes 12:23
12:24 mjreed left
timotimo t/spec/S02-magicals/perlver.t - this parsefails on (at least my) rakudo and is not fudged. i don't understand what's going on. 12:24
dalek ast: ee4707d | (Timo Paulssen)++ | S02-magicals/env.t:
make sure that %*ENV .gist and .perl work.
12:25
12:25 mjreed joined 12:26 kaare_ joined
moritz timotimo: it's not in t/spectest.data 12:26
timotimo oh, i see.
so where can i put a test for $*VM instead?
moritz S02-magicals/vm.t ? 12:27
12:29 SamuraiJack_ joined 12:30 mjreed left, Tene_ joined 12:31 cxreg2 joined 12:35 SamuraiJack left 12:43 PacoAir left
dalek p: 82b7e17 | (Timo Paulssen)++ | src/QRegex/P6Regex/Grammar.nqp:
fix error report with negative quantifiers.
12:51
12:52 mjreed joined 12:53 mjreed left
dalek ast: ed956b4 | (Timo Paulssen)++ | S32-exceptions/misc.t:
properly match post declared grammars.
13:05
13:06 chan_ joined 13:18 PacoAir joined, cognominal joined 13:19 PacoAir left, PacoAir joined 13:30 chan_ left
dalek ast: 937565b | (Timo Paulssen)++ | S02-magicals/vm.t:
simple tests for $*VM, .gist and .perl
13:31
timotimo can someone with a commit bit add that file to spectest.data please?
moritz timotimo: running the tests now, will add it if it succeeds 13:32
timotimo thank you :) 13:33
13:34 census joined
dalek kudo/nom: 22b3cf3 | moritz++ | t/spectest.data:
run S02-magicals/vm.t, timotimo++
13:36
13:43 daxim left, daxim_ joined
timotimo hm, is RT down? 13:45
dalek ast: 7bcdd2b | (Timo Paulssen)++ | S04-statements/for.t:
test for RT #77460
13:45 cognominal left
FROGGS timotimo: no, rt is working here 13:47
timotimo oh, wat? works in firefox, but not in chrome 13:48
moritz
.oO( it's too old to support chrome )
13:49
timotimo nah, i get a DNS r 13:51
resolve error
13:52 am0c joined 13:53 cognominal joined 14:03 am0c left
dalek ast: 4609872 | (Timo Paulssen)++ | S03-operators/assign.t:
add a test for RT #77174 (//=, ||=)
14:06
14:12 am0c joined
timotimo rt.perl.org/rt3//Ticket/Display.html?id=77070 - i'm not sure if the code is actaully right. what it ends up getting is an exception "no matches" 14:18
14:21 Psyche^ joined 14:22 Psyche^ is now known as Patterner, benabik left 14:23 fgomez joined
census Hi! Is anybody familiar with java? I have a .jar file that I'd like to translate into perl6. 14:25
(that is not a perl5 q) 14:26
(perl6 i'll take the translation into . .. perl6 might be able to handle what the code aims to do)
14:28 thou joined 14:30 kaleem left
timotimo though barely a drop of water on a hot stone, I'm closing lots of bugs today :) 14:34
14:35 Liz joined, Liz is now known as Guest5300 14:36 telex joined
FROGGS census: why not just gist the code? so it can be translated within the gist step by step? 14:36
census FROGGS: partly, because I do not even know how to access the code. It is in a .jar format--which appears to be a zipped format--and I'm not sure how to extract the file. 14:37
jnthn That's a zip of *bytecode*. 14:38
Not source code.
14:38 Guest5300 is now known as lizmat 14:39 xinming_ joined
census jnthn: Are you saying that I do not have the correct file, and I need to obtain the source code? 14:39
moritz that would make things much easier
but why do you want to translate it to Perl 6? 14:40
census because i do not know anything about java. so i'm not sure the code in java would be too helpful.
FROGGS census: but you need whatever the jar file provides? 14:41
census FROGGS: in other words, you are saying that I need the source code? (as jnthn was saying, i believe) 14:42
FROGGS census: depends
14:43 toebu joined
jnthn away for a bit 14:43
census depends on . . /
FROGGS census: what is the jar file about?
14:43 Gwyxx joined
geekosaur usually you can't do much with jvm bytecode except run it. sometimes a jar is just resources (e.g. images) and you can just unpack it 14:43
14:44 bluescreen10 joined, grondilu joined
census how would i unpack it? i have right-clicked on it, but do not see an option to extract 14:44
geekosaur guis won't know that much about jar files, but they're just renamed zip files 14:45
a jvm/jre comes with a "jar" command usually, which behaves like "tar" but processes zip files (and manages the metadata entry that should be the first item in a jar file)
14:46 domidumont1 joined
census geekosaur: I think I understand that, but I'm not making the next leap to what to do from there, if there is anything that I can do. 14:47
14:48 domidumont left
geekosaur all I can say to that is to repeat what I said earlier 14:48
[28 09:43] <geekosaur> usually you can't do much with jvm bytecode except run it. sometimes a jar is just resources (e.g. images) and you can just unpack it
14:48 skids joined
census Yes, and you said: "you can just unpack it." 14:49
geekosaur you might also look around for java class decompilers, but I don't really know what you would do with the output eithewr
right, but unpacking it gives you access to any images and such in the jar. I can't tell yu what to do with them afterward...
census oh ok.
14:51 wbook joined
census thank you! 14:51
15:03 wbook left, Gwyxx left 15:05 Gwyxx joined 15:08 Gwyxx left
Ulti .jar is just .zip rename the file to do some windows GUI extract 15:18
then zip it back up once you've played around and rename to .jar and it will work
in the same way open ebook formats are just zip archives of html files 15:19
most jar files also have the .class and .java files side by side assuming its an open source project... 15:20
timotimo i'm not sure the java files will even help that much. it's likely a big undertaking to translate whatever it is. it might potentially use some very advanced jav VM features or something like that, and those aren't easily ported :( 15:27
15:31 am0c left, drKreso joined
drKreso Hi 15:31
While installing Bailador with panda I have failed test : t/03-response-content.t .. 1/7 Not enough positional parameters passed; got 0 but expected 1 in sub at t/03-response-content.t:12 15:32
I tried with --no-tests and it installs, but http server is not working properly (same error on request). So error is real.
Does anyone has any idea on what to try next?
FROGGS uhh 15:33
Error while compiling, type X::::::::S::y::n::t::a::x::::::::M::i::s::s::i::n::g
drKreso It in block at lib/Bailador.pm:84 and App.pm:14
FROGGS weird
(but my fault)
arnsholt jnthn: Do you have any preferences in compiler warnings? Which do you prefer of C++ compat warnings and "dereferencing type-punned pointer will break strict-aliasing rules"? =)
timotimo frohuh, did i do ^H^Hb^H^Hbreak that? 15:34
colomon drKreso: I fixed that last night, but I guess tadzik hasn't pulled my fix yet.
phenny colomon: 06:39Z <tadzik> tell colomon thanks for the pull request! I'll merge it as soon as I get the opportunity to run tests
colomon drKreso: if you're brave, you can try github.com/colomon/Bailador 15:35
15:35 benabik joined
drKreso Hey colomon: You bet I'll try it out ! 15:35
Thanks 15:36
colomon drKreso: no problem. it turned out to be a very interesting, subtle bug.
drKreso Can I install with panda from github ?
arnsholt timotimo: You see my commits to Net::ZMQ?
tadzik I'm looking at panda right now 15:39
15:40 grondilu left 15:41 am0c joined 15:42 cognominal left
tadzik colomon: merged, thanks! 15:44
drKreso: should be fixed now
colomon tadzik: you're welcome, I learned all sorts of things fixing it. :)
tadzik nice :)
15:45 cogno joined
drKreso tadzik: so I can install from panda? 15:45
tadzik drKreso: it should work fine, even without --notests now :) 15:46
colomon and --notests wouldn't have helped, it was definitely a real issue
15:47 cognominal joined
drKreso colomon, tadzik: Yes now it is installing great. Thanks 15:47
tadzik yep
colomon++
timotimo looking at them right now, arnsholt :) 15:48
colomon tadzik: I'm thinking it would be worthwhile to add some more tests of that t/03 functionality. but I'm a little behind the eight-ball with $work atm
arnsholt timotimo: Excellent! 15:49
drKreso I now started perl6 app.pl in examples folder, server boots up on port 3000, but when i do curl or open page it stalls. I am not sure what is still missing from my setup.
timotimo what's the next ste? i'm still stuck with my iperl6c^Hkernel thing :(
drKreso eventualy i get Error 324 (net::ERR_EMPTY_RESPONSE): 15:50
tadzik yeah, it looks like this :/ 15:51
I wonder if it's bailador or the underlying http server 15:52
it's the server :( 15:53
crap
it hangs on .recv() or .read() somewhere, possibly tries to read too much
jnthn back
15:54 FROGGS left 15:56 skids left
jnthn arnsholt: We...get to choose between warnings?! ugh 15:56
arnsholt Yeah, I know
jnthn I guess 'cus we inherit our warnings flags...
arnsholt Yup
jnthn Well, fixing it not to whine about C++ compat has the possible benefit that it builds with a C++ compiler should somebody want to do that... 15:57
arnsholt Yah
drKreso tadzik: Any idea where can I look? 15:59
arnsholt What it doesn't like, if you care, is nqp_nfa_run_{proto,alt} in nqp.ops
jnthn Oh...that does surprise me a bit.
16:00 cogno left
jnthn As in, I didn't think those did any evil... 16:00
arnsholt Not really
They both have "nqp_nfa_run(interp, OBJECT_BODY($2), $3, $4, &total_fates);"
It doesn't like the second argument: passing argument 2 of ‘nqp_nfa_run’ from incompatible pointer type (expected ‘struct NFABody *’ but argument is of type ‘void **’) 16:01
Changing it to "nqp_nfa_run(interp, (NFABody *) OBJECT_BODY($2), $3, $4, &total_fates);" gives the type-pun warning instead
jnthn ah...
'cus of different level of indirection, maybe? 16:02
Perhaps casting it to NFAInstance * and then passing the address of .body within that may help...or may not :) 16:03
.oO( the joy of convincing compilers that you're right... )
arnsholt Right, right. Different number of splats probably
Yeah, I think that'll do it 16:05
The sixmodel stooge object has "void *data" so taking & of that will be void **, but data in the NFAInstance isn't a pointer 16:06
16:09 Targen joined
tadzik drKreso: yes 16:11
16:11 kresike left
tadzik drKreso: HTTP::Easy must have a part where it reads the HTTP request, possibly until it can parse it 16:11
it may be that it eats too big chunks, and somewhere it calls .read() or .recv() on a socket one time too much 16:12
then it hangs
you'll notice that when you terminate curl, then bailador gets the request properly
for example put die() somewhere in your app code, then curl the url and ^C it
so I guess that must be something related to hanging on IO 16:13
(when you close the connection, the read() unblocks)
16:14 SamuraiJack_ left 16:16 gcole joined, SamuraiJack joined 16:23 SunilJoshi joined 16:25 Targen left
colomon tadzik: will you be looking at fixing HTTP::Easy? 16:30
16:30 cogno joined 16:32 thou left
drKreso colomon: http-easy readme example also stalls (on port 8080) 16:34
not good sign :(
colomon drKreso: unfortunately I don't know anything about http-easy. :(
16:35 Targen joined 16:37 lustlife joined 16:45 FROGGS joined 16:52 domidumont1 left, Chillance joined 16:56 Targen left 16:57 cogno left 17:00 cognominal left 17:08 Targen joined 17:11 PacoAir left, domidumont joined 17:13 PacoAir joined
drKreso Hey, I am trying to debug HTTP:Easy, but when I change anything it says "Missing or wrong version of dependency 'lib/HTTP/Easy.pm6" What sort of protection is this? Hash based? What to do if I want to play with it. (Since it's not wokring for me). 17:13
17:15 PacoAir left
timotimo no, just make clean && make 17:17
17:17 PacoAir joined
timotimo that's not a protection, it's just that the modules are precompiled and put into blib/ 17:17
17:18 cogno joined
drKreso It's in panda lib folder? Do I need to download lib from github? How to make my app use that downloaded version instead of panda one? 17:19
jnthn -Ilib or so should do it, I think 17:20
(provided you want it to look in lib)
timotimo oh, right. i usually build my libraries with ufo, sometimes with panda if there's a Build.pm
17:23 lizmat left
drKreso timotimo: Thanks make && make install works nicely 17:27
Now "only" to find problem, considering I don't know anything about perl5, perl6 and HTTP :) 17:28
17:29 domidumont left, domidumont joined 17:30 skids joined 17:32 drKreso left 17:33 cogno left
timotimo i don't know anything about perl5, either. but perl6 is learnable :) 17:33
17:33 am0c left 17:34 daxim_ left 17:39 cogno joined
diakopter hi 17:40
jnthn o/ diakopter 17:41
17:46 am0c joined 17:53 cogno left 17:56 zloyrusskiy joined 18:00 dakkar left, zloyrusskiy left
tadzik colomon: was afk; can try once I get home 18:04
I don't know the code at all though
18:05 SamuraiJack left 18:07 cognominal joined, zacts joined 18:08 SamuraiJack joined 18:11 donaldh left 18:14 wk left 18:17 cognominal left 18:18 SamuraiJack left 18:19 zby_home_ joined, zacts left, cognominal joined 18:23 wk joined
skids
.oO(obviously the right name for NativeCall would have been ṀêŧäłCall </guitar solo>)
18:26
18:35 SmokeMachine left 18:36 SmokeMachine joined 18:51 SunilJoshi left 18:52 cognominal left
[Coke] Nïce. 18:57
19:00 cognominal joined 19:04 census left
FROGGS \m/ 19:04
19:05 Chillance left
timotimo oh yeah \m/ 19:08
19:12 fhelmberger left
cognominal rn: 4! 19:20
19:20 japhb_ joined
p6eval rakudo 22b3cf: OUTPUT«===SORRY!===␤Two terms in a row␤at /tmp/O7Ym5qNF74:1␤------> 4!⏏<EOL>␤ expecting any of:␤ infix or meta-infix␤ infix stopper␤» 19:20
..niecza v24-24-gbdc3343: OUTPUT«===SORRY!===␤␤Negation metaoperator not followed by valid infix at /tmp/8kiTEdjwdP line 1 (EOF):␤------> 4!⏏<EOL>␤␤Parse failed␤␤»
cognominal I thought postfix ! was defined 19:21
19:21 Targen left 19:22 lichtkind_ joined
cognominal nope, just a classic case of overloading as shown by S06-operator-overloading/sub.t 19:22
timotimo :) 19:24
19:24 shinobicl left 19:36 cognominal left 19:37 snearch joined, snearch left 19:38 snearch joined 19:39 cognominal joined 19:40 snearch left 19:41 snearch joined 19:42 snearch left 19:44 snearch joined
[Coke] r: sub postfix:<!>(Str $a) {$a.uc}; sub postfix:<!>(Int $a) {[*]1..$a}; say 3!, "hi"! 19:44
p6eval rakudo 22b3cf: OUTPUT«===SORRY!===␤Two terms in a row␤at /tmp/itExKwfhUL:1␤------> a) {$a.uc}; sub postfix:<!>(Int $a) {[*]⏏1..$a}; say 3!, "hi"!␤ expecting any of:␤ argument list␤ postfix␤ infix or meta-infix␤ infix st…
19:44 snearch left 19:45 snearch joined 19:47 snearch left
diakopter r: multi sub postfix:<!>(Str $a) {$a.uc}; multi sub postfix:<!>(Int $a) {[*] 1..$a}; say 3!, "hi"! 19:47
19:47 snearch joined
p6eval rakudo 22b3cf: OUTPUT«6HI␤» 19:47
diakopter [Coke]: ^^ 19:48
19:49 snearch left
[Coke] mmm, missed a space and the multi. 19:49
diakopter well, I'm not sure the space was necessary 19:50
19:54 census joined
cognominal Guys. That's about time. You should learn to code www.code.org/ says Ashton Kutcher, instead whatever you waste your time on. 19:59
colomon ?
jasonmay I think my career just got punk'd 20:00
census well in the u.s., biology, chemistry, and physics are not all required either 20:01
diakopter _._ 20:02
20:03 ObseLeTe joined
cognominal code.org... when celebrities peddle scientism 20:03
census but are those quotes really true? is computer programming really that fundamental? like it will be essential for everybody in life?
dalek osystem: e2ef125 | Dagur++ | META.list:
Added Time::Duration
20:04
osystem: cf43c40 | colomon++ | META.list:
Merge pull request #19 from dagurval/patch-2

Added Time::Duration
nwc10 What you *really* need is more like this: www.bbc.co.uk/news/education-21261442
cognominal that's a clean job, I have heard. And not that complicated, you deals only with 0s and 1s
diakopter r: my \rick.roll 20:05
p6eval rakudo 22b3cf: OUTPUT«===SORRY!===␤Method 'ast' not found for invocant of class 'NQPMu'␤»
diakopter erm
nwc10 The decision by Education Secretary Michael Gove will mean that computing will count as a science in the English Baccalaureate for secondary school league tables from January 2014 - alongside physics, chemistry, biology and pupils taking double science.
census computer skills are obviously relevant to nearly everybody these days, but it is not clear to me that computer science per se is. why not say that everybody should understand statistics because stats are everywhere? 20:07
And, why is former President Clinton there and not Current President Obama? Nobody should be #1 before President Obama. 20:09
swarley Because not everybody needs to know how to find the Poisson distribution of a normally distributed sample 20:10
cognominal given the current state of technology, it's like saying everyone should learn to count using roman numerals. There is a sweet spot for a technology being taught to the masses and I don't think we are there yet.
jnthn
.oO( The poisson distributed always seemed like a really fishy bit of statistics to me... )
20:11
20:11 rindolf left
dalek p-jvm-prep: b972587 | jnthn++ | src/org/perl6/nqp/ (2 files):
A couple of cloning-related fixes.

Fix the mixins bug that affected various tests with the self-host.
20:11
20:12 breinbaas joined, dvj joined
census It is a very nice idea to have programming everywhere. But I also don't think it is very feasible right now. First, there are hardly enough quality math teachers in the U.S. Teaching algebra is already an issue. Second, it is not cheap to have computers and computer labs in every school. Some school districts are not ready to afford this. 20:12
And the computer labs would not just be for every school, but more so, for every student. So there would be a need for multiple computer labs. Worry of potential theft and vandilism. . . 20:13
timotimo it's not like you have to buy an alienware rig for each student 20:15
hell, get every student a raspberry pi
cognominal in some places in France, they give iPads to the students. It is blind faith like faith in TV for education 40 years ago. iPad ae nice but educational software does not exitt yet. 20:16
PerlJam also, the fed would probably subsidize the purchase of computers
census PerlJam: the fed in what country?
We are practically in an international recession.
and this is in developed countries. what about poorer countries, like sub-sahrahan africa? 20:17
these are places where just having decent textbooks are in an issue.
(I'm sorry if I've hijacked the thread with this discussion that I did not begin.) 20:18
20:23 census_ joined
diakopter n: my \rick.roll 20:24
p6eval niecza v24-24-gbdc3343: OUTPUT«===SORRY!===␤␤Term definition requires an initializer at /tmp/N3SBgennzs line 1:␤------> my \rick⏏.roll␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 1443 (die @ 5) ␤ at /home/…
cognominal jnthn, in France "queue de poisson" is fishy indeed. It means fish tail, a abrupt unwelcome ending, to cut in front (a national automobile sport)
20:24 census left
nwc10 jnthn: the usual nqptests pass on "my" machine. 20:24
20:25 census_ left, census joined 20:27 drKreso joined, drKreso left, uvtc joined, drKreso joined 20:28 Targen joined
drKreso Hi 20:28
uvtc hi, drKreso 20:29
20:29 drKreso left
timotimo diakopter: i'm amused by how "ast" shows up is the \rick.roll thing :D 20:30
diakopter oh LOL I didn't get that; nice 20:34
20:34 bluescreen10 left
timotimo recently i was wondering how hard it'd be to make a "use insults" to get insulting/demeaning exception messages. any input? i couldn't augment the exception classes to change the message method. not really sure why. 20:34
20:38 cognominal left 20:41 zby_home_ left
dalek p-jvm-prep: 056d28c | jnthn++ | Makefile:
Add "make selftest" target.

Runs t/nqp with JVM-hosted NQP. Fails 11 tests that nqptest (which uses cross-compilation) passes.
20:41
p-jvm-prep: 5312f5c | jnthn++ | t/qast/qast_ (16 files):
Unbust make test.
p-jvm-prep: 53cd449 | jnthn++ | src/org/perl6/nqp/sixmodel/KnowHOWMethods.java:
Some missing KnowHOW introspection bits.

Gets self-host passing 53-knowhow.t.
nwc10 hangon - now only 10 fail under selftest? 20:42
jnthn yes
nwc10 that's pretty awesome
timotimo wait what am i reading. that seems amazing! 20:43
PerlJam I feel like one day soon I'm going to wonder "what happened to all of the nqp-jvm-prep commits?" because it will have all been merged into nqp
colomon jnthn++ 20:45
timotimo but but but what when jnthn is finished? what's the next thing to be wildly excited about? :( 20:46
geekosaur pypy port? 20:47
colomon perl 6 being fast enough to replace perl 5 for a lot of us? 20:48
diakopter timotimo: well, rakudo would need porting 20:50
20:50 cognominal joined 20:51 sqirrel left
jnthn Indeed. In that sense, cool as porting NQP is, it's Rakudo that's the Big Goal. 20:51
uvtc Maybe Rakudo on Android? 20:54
FROGGS bindings to Go! 20:56
timotimo so, how long can porting rakudo to jvm take when nqp is self-hosting? 20:58
i would expect that'd just be a bunch of bugs that need ironing out
FROGGS no, rakudo itself uses a bit pir
jnthn And a bit C
FROGGS but not much I suspect
jnthn And coroutines. 20:59
timotimo oh, the C bit, the binding stuff, right?
jnthn And multi-dispatch, and some container bits, etc.
timotimo ok, that's a bit more than i thought :(
FROGGS I dont think that this is a big deal
it's not that C can do some magic Java doesnt 21:00
nwc10 jnthn++
timotimo pointer arithmetic
nwc10 it's acutally only 9 failing selftests
jnthn nwc10: oh?
nwc10 on "my" machine
however, i have to change the command line to this: $(PROVE) --exec="java -cp .:bin:3rdparty/bcel/bcel-5.2.jar NQPJVM" t/nqp/*.t 21:01
$(PROVE) --exec="java -cp .:bin:3rdparty/bcel/bcel-5.2.jar NQPJVM" t/nqp/*.t
and I have no idea how to write a makefile to do that portably
jnthn urgh
nwc10 test summary: pasta.test-smoke.org/452 21:02
no idea how to do that portably without a wrapper written in Perl
21:02 drKreso joined
uvtc Seems like Rust would be good for implementing a language. 21:03
timotimo let's port rakudo to every single language out there. let's start with A ... anything before Ada?
uvtc Sorry; just thinking out loud. Rust looks nice, but fairly low-level. 21:04
21:11 kaare_ left
drKreso HTTP::Easy - uses IO::Socket::INET.new listener…. then while parsing header it has line my $line = $!connection.get.chomp; that waits forever after fetching all parts of header (last being cookie). 21:17
Anybody has any ideas?
FROGGS drKreso: I believe there is a ticket for that 21:18
drKreso On HTTP::Easy? 21:19
FROGGS no, for rakudo
.get can block
moritz: right? 21:20
drKreso FROGGS: Oh so rakudo implements Socket::INET.new?
FROGGS IO::Socket::INET is in rakudo's core, yes 21:23
dalek p-jvm-prep: 60f479a | jnthn++ | src/org/perl6/nqp/jast2bc/JASTToJVMBytecode.java:
Fix busted string handling in assembler.

Fixes various of the remaining self-host failures.
21:24
21:28 cognominal left 21:30 cognominal joined
nwc10 jnthn: down to 4 selftest failures 21:37
t/nqp/32-protoregex.t t/nqp/41-flat.t t/nqp/46-charspec.t t/nqp/56-role.t 21:38
dalek p-jvm-prep: 431f8fb | jnthn++ | nqp-src/QASTNodes.nqp:
Don't hand null strings back from QAST::Op.
jnthn *3 :)
nwc10 oh, did the goalposts just move again? 21:39
21:40 PacoAir left 21:44 cxreg2 is now known as cxreg
drKreso FROGGS: I am unable to find ticket for IO::Socket::INET problems 21:45
21:46 supernovus joined, cognominal left
drKreso I don't know if I am searching at the right place rt.perl.org/rt3/Public/Search/Simp...INET+perl6 21:47
21:50 cognominal joined 21:51 benabik left
supernovus If the behaviour in IO::Socket::INET has changed, I may be able to work around it in HTTP::Easy to make it work for now, but ultimately the best solution is to fix the problem at its source. 21:51
nwc10 yes, 3 21:53
FROGGS drKreso: see rt.perl.org/rt3/Ticket/Display.html?id=116288 21:54
21:54 Tene_ is now known as Tene 21:56 domidumont left
supernovus It appears the final .get() that should return a blank line, just hangs. The IO::Socket::INET stuff definitely needs some work. 21:59
Rebuilding rakudo to see if this issue still applies with the latest build. 22:00
22:02 lustlife left 22:03 SmokeMachine left, cognominal left
drKreso FROGGS: I tried using recv as said in that thread - no difference 22:03
FROGGS is there an example that demonstrates the behaviour? 22:04
drKreso FROGGS: use HTTP::Easy::PSGI; 22:05
my $http = HTTP::Easy::PSGI.new(:port(8080));
my $app = sub (%env)
{
my $name = %env<QUERY_STRING> || "World";
return [ 200, [ 'Content-Type' => 'text/plain' ], [ "Hello $name" ] ];
}
$http.handle($app);
22:06 skids left
supernovus FROGGS: try running the test/test.pl from HTTP::Easy's source repo with HTTP_EASY_DEBUG=1, then connect to localhost:8080/ in your browser. It reads the headers, gets to where there should be a blank line, and freezes. 22:06
22:08 cognominal joined 22:11 uvtc left
FROGGS supernovus: hangs here too 22:14
22:15 cognominal left
supernovus FROGGS: Yeah, I just tried it with a fully reinstalled Rakudo and fresh set of modules. Same issue. 22:17
Gotta run, I'll read the logs later. 22:18
22:18 supernovus left, cognominal joined
drKreso FROGGS, supernovas: good :) At leas I am not the only one 22:19
22:21 Kelder joined 22:23 cognominal left 22:28 cognominal joined 22:36 drKreso left
FROGGS the problem is the call to readline in IO/Socket/INET.pm line 98, I'll investigate tomorrow more, bedtime :/ 22:41
22:43 cognominal left 22:45 slavik1 joined 22:47 FROGGS left
dalek p-jvm-prep: c096b92 | jnthn++ | / (3 files):
Implement getting list of compunit coderefs.

Gets dynamic compilation unbusted, which helps towards fixing the roles test.
22:49
p-jvm-prep: f631cb7 | jnthn++ | src/org/perl6/nqp/runtime/Ops.java:
Correct some errors.
p-jvm-prep: f0e8ea9 | jnthn++ | / (3 files):
Be explicit about what is the mainline.
p-jvm-prep: ccb94a3 | jnthn++ | src/org/perl6/nqp/runtime/Ops.java:
Fix outer-hunt/freshcode interaction bug.
p-jvm-prep: 7d43858 | jnthn++ | nqp-src/nqp-mo.pm:
Fix collisions handling bug in MOP code.

Caught on JVM thanks to it being a bit stricter.
colomon \o/
jnthn Down to 2. 22:50
22:56 sdgvf joined 22:57 benabik joined 23:11 labster joined 23:15 ObseLeTe left
labster r: say 123456789.substr(3) 23:20
p6eval rakudo 22b3cf: OUTPUT«456789␤»
labster r: 123456789.substr(*-3)
p6eval rakudo 22b3cf: OUTPUT«Unable to coerce value for '$start' from WhateverCode to Int; no coercion method defined␤ in method substr at src/gen/CORE.setting:2275␤ in block at /tmp/n5duuOLKwB:1␤␤»
labster r: 123456789.Str.substr(*-3) 23:21
p6eval rakudo 22b3cf: ( no output )
labster r: say 123456789.Str.substr(*-3) 23:22
p6eval rakudo 22b3cf: OUTPUT«789␤»
23:22 Liz joined 23:23 Liz is now known as Guest6149
labster Int.substr ( WhateverCode) seems to have a problem. 23:23
23:24 Guest6149 is now known as lizmat
jnthn Yes, that looks wrong. 23:27
oh... 23:28
I see the bug
cxreg ponders nqp on dalvik 23:31
dalek p-jvm-prep: ce3ee72 | jnthn++ | lib/QAST/JASTCompiler.nqp:
Regex compiler missed negative case of literals.

This was the root cause of the 46-charspec.t parsing bug.
23:32 donaldh joined
dalek kudo/nom: 357e603 | jnthn++ | src/core/Cool.pm:
Remove bogus coercion from Cool.substr.

Found by labster++.
23:40
ast: 87364c3 | jnthn++ | S32-str/substr.t:
Test to cover Cool.substr(WhateverCode) case.
23:42
labster thanks jnthn++ 23:46
23:46 donaldh left 23:47 skids joined