»ö« 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.
00:04 cdarroch left 00:05 jtbraun1 joined 00:07 cognominal joined 00:09 awwaiid left 00:14 molaf_ joined 00:16 pjcj left 00:17 pjcj joined
diakopter rakudo: gist.github.com/839726 00:17
p6eval rakudo 10d86d: OUTPUT«(timeout)» 00:18
00:18 ponbiki left
diakopter timeout on 1690? 00:18
00:18 molaf left
diakopter (1691 I mean) 00:18
Tene phenny: ask jnthn if I should expect to need to write my own repr for cardinal, or if I should be able to get by on P6opaque at first. 00:21
phenny Tene: I'll pass that on when jnthn is around.
Tene phenny: thanks; you're very helpful
donri p6opaque mo?
00:22 ponbiki joined 00:25 MayDaniel left
Tene donri: The Perl 6 specification includes representation polymorphism. You should be able to use objects mostly without caring about how they're actually represented in memory, and various ways in which you should be able to indicate what sort of memory representation you want. P6opaque is the primary representation used for objects in the nom refactor of rakudo. 00:27
donri: The traditional example of representation polymorphism is packing of native types. If you have "my int @foo[10];", where the lowercase "int" indicates a native type instead of the Perl 6 class Int, you should be able to represent the storage of that array with a contiguous hunk of memory the length of 10 native ints 00:29
00:29 jtbraun1 left
Tene Instead of having a separate container, attributes, separate storage, etc. for each int object 00:29
donri: Similarly, P6object should be able to inline attributes of native types in arbitrary classes. 00:30
donri: Does that sufficiently satisfy your curiosity? 00:32
donri: I'm trying to use 6model (the object model being developed for the nom refactor of rakudo) for Cardinal, the Ruby compiler that treed and I have worked on. 00:33
donri but do you get an int or an Int?
Tene donri: I'm sorry? I need more context for that question.
donri my int @foo
Tene Right, but what about it? That's an array that stores ints. 00:34
donri i guess that's what you meant with the "use without caring about repr"
that you can use these ints as Ints 00:35
but why would Int need more storage than ints?
diakopter b/c the runtime needs to know the type of scalars that are boxed 00:37
Tene donri: a few things... Int is unsized, and can hold arbitrarily-large values, etc.
donri ah 00:38
00:38 envi joined, rdesfo joined
Tene Using int as a type annotation tells Perl 6 that it can do optimization to hold only that much, and that it's a value type, so the details can all be optimized out, etc. 00:38
perlcabal.org/syn/S09.html#Compact_structs 00:39
diakopter perlcabal.org/syn/S09.html#Compact_arrays especially
Tene rakudo: class ColorInt is Int { has $.color is rw }; my Int $x = ColorInt.new(); 00:41
p6eval rakudo 10d86d: ( no output )
Tene rakudo: class ColorInt is Int { has $.color is rw }; my Int $x = ColorInt.new(:color("cyan")); say $x.color 00:42
p6eval rakudo 10d86d: OUTPUT«cyan␤»
Tene donri: I'm not sure if I actually answered your question there. 00:44
diakopter my answer holds at a most basic level...
donri rakudo: my int $x = 5; say $x.WHAT 00:45
p6eval rakudo 10d86d: OUTPUT«===SORRY!===␤Malformed my at line 22, near "int $x = 5"␤»
diakopter not yet implemented
donri ah :)
diakopter perlesque: my int $x = 5; say $x.GetType
p6eval perlesque: OUTPUT«System.Int32␤»
Tene nqp: my int $x := 5;
p6eval nqp: ( no output )
Tene nqp: my int $x := 5; say $x.WHAT; 00:46
p6eval nqp: OUTPUT«Confused at line 1, near "say $x.WHA"␤current instr.: 'parrot;HLL;Grammar;panic' pc 17541 (gen/hllgrammar-grammar.pir:4828)␤»
Tene nqp: my int $x := 5; say($x.WHAT());
p6eval nqp: OUTPUT«invoke() not implemented in class 'Integer'␤current instr.: '_block11' pc 41 (EVAL_1:30198797)␤»
Tene nqp: my int $x := 5; say($x.WHAT);
p6eval nqp: OUTPUT«Can only use get_what on a RakudoObject␤current instr.: '_block11' pc 0 (EVAL_1:8)␤»
Tene There are still some issues, as you can see. :)
diakopter perlesque has int (but not Int) 00:47
(but it does have BigInteger, as I showed there today in the hamming example)
perlesque: gist.github.com/839752 00:48
Tene nqp: my int @foo[10]; @foo[0] := 1;
p6eval perlesque: OUTPUT«First 20 Hamming numbers: ␤1␤2␤3␤4␤5␤6␤8␤9␤10␤12␤15␤16␤18␤20␤24␤25␤27␤30␤32␤36␤1691st Hamming number: 2125764000␤One millionth Hamming number: 519312780448388736089589843750000000000000000000000000000000000000000000000000000000␤Elapsed: 00:00:10.2479716␤»
nqp: ( no output )
Tene nqp: my int @foo[10]; @foo[0] := 1; my $x := @foo[0]; say($x.WHAT);
p6eval nqp: OUTPUT«Can only use get_what on a RakudoObject␤current instr.: '_block11' pc 0 (EVAL_1:15104808)␤»
Tene although, that was binding and not assignment
So, reasonable that it's an int and not an Int 00:49
donri rakudo: say int.^methods
p6eval rakudo 10d86d: OUTPUT«Could not find sub &int␤ in main program body at line 22:/tmp/fSMIb0G4Kd␤»
diakopter by "not yet implemented", I meant "not yet implemented *at all*, as in all native types"
donri yea :) 00:50
bedtime, thanks
diakopter l8r
Tene nqp: say(int.HOW.methods(int)); 00:51
p6eval nqp: OUTPUT«Method 'methods' not found for invocant of class 'RakudoObject'␤current instr.: '_block11' pc 38 (EVAL_1:18)␤»
diakopter nqpclr: say(int.HOW.methods(int));
that's odd 00:52
nqpclr: say(int.HOW.methods(int));
someone killed p6eval for the first time in a long time 00:53
00:53 mtk left 00:54 donri left 00:56 woosley joined, p6eval left, p6eval joined, ChanServ sets mode: +v p6eval
diakopter ok whatevs 00:56
I guess someone removed/renamed the nqpclr target
01:01 mtk joined 01:11 gbacon joined 01:12 gbacon left 01:30 jferrero left, qiuhw joined 01:35 ponbiki left 01:36 lamstyle left 01:38 dsp_ left, HarryS left 01:46 rdesfo left 01:54 plobsing_ joined, ponbiki joined 01:56 am0c left 01:57 plobsing left 02:04 noganex left
sorear good * #perl6 02:05
02:06 noganex joined 02:08 stkowski left 02:09 am0c joined, whiteknight left
diakopter sorear: hi 02:10
02:13 jtbraun1 joined 02:24 jaldhar joined 02:31 jtbraun1 left 02:36 lamstyle joined, dsp_ joined 02:42 lue joined
lue hello world! o/ 02:42
sorear HI! 02:44
02:45 HarryS joined
colomon \o 02:48
02:57 takadonet1 joined
takadonet1 hey all 02:57
colomon \o 02:58
sorear hello takadonet1 03:00
takadonet1 sorear: how are you sir?>
03:04 stifynsemons joined
diakopter odd; dalek didn't report my commit/push to S05 03:05
03:06 agentzh joined
sorear takadonet1: busy 03:06
diakopter ... and ... I'm getting angry pink unicorns from github web ui
sorear diakopter: I'll check it out 03:07
oh
takadonet1 just hit refresh and it works in time
sorear diakopter: 502 spam from dalek's request log
diakopter (but the push occurred sucessfuly)
502 spam?
sorear HTTP 502 Bad Gateway errors while polling github 03:08
it looks like dalek hasn't received any pushes since 13 minutes ago 03:09
the last one was dukeleto on a #parrot-reported project
diakopter oh well; github outage-ish; I'm sure it'll resolve itself 03:10
sorear *cough* decentralized version control *cough*
diakopter HUB
dukeleto yeah, github timed out on an ssh push a few mins ago, but seems to be catching up
dalek ecs: 0296008 | diakopter++ | S05-regex.pod:
--nits
sorear if github ever stayed down for more than 6 hours I'd set up a git-daemon on appflux
it's just... it never does that 03:11
diakopter oh, there it is
dalek p-rx: 43c77a0 | dukeleto++ | / (14 files):
Remove remnants of svn
sorear or maybe feather
03:30 Chillance left 03:36 _twitch joined 03:38 lue left 03:41 Solarion left, Solarion joined
dalek ecza: 755eb94 | sorear++ | docs/announce.v3:
Add draft of v3 announcement
03:48
03:55 qiyong joined
qiyong does perl6 have use? 03:56
takadonet1 yes
rakudo: use Test; 03:57
p6eval rakudo 10d86d: ( no output )
takadonet1 std: use Test;
p6eval std 4608239: OUTPUT«Compiled lib/Test.pm6␤ok 00:01 119m␤»
colomon rakudo: my @a := 1..*; @a.unshift(101); say ~@a[^10] 03:59
p6eval rakudo 10d86d: OUTPUT«Method 'unshift' not found for invocant of class 'Range'␤ in main program body at line 22:/tmp/0G2hzMycM4␤»
colomon rakudo: my @a := 1...*; @a.unshift(101); say ~@a[^10]
p6eval rakudo 10d86d: OUTPUT«101 1 2 3 4 5 6 7 8 9␤»
colomon aha!
crude but effective.
04:06 nadim left 04:07 nadim joined
takadonet1 night all 04:11
04:12 takadonet1 left
colomon phenny: tell masak Have sort of better Hamming. Tried to use lazy lists, but it doesn't. Wacky. Not happy with it. gist.github.com/840013 04:18
phenny colomon: I'll pass that on when masak is around.
diakopter rakudo: gist.github.com/840013 04:20
p6eval rakudo 10d86d: OUTPUT«(timeout) 1 2␤1␤@hamming: 2 3 5␤2␤@hamming: 3 4 5 6 10␤3␤@hamming: 4 5 6 9 10 15␤4␤@hamming: 5 6 8 9 10 12 15 20␤5␤@hamming: 6 8 9 10 12 15 20 25␤6␤@hamming: 8 9 10 12 15 18 20 25 30␤8␤@hamming: 9 10 12 15 16 18 20 24 25 30 40␤9␤@hamming: 10 12 15 16 18 20 24 25 27 30 40
..45␤10␤@ham…
diakopter oh, heh
colomon It doesn't have an end yet. 04:22
it does work, I think.
diakopter input 1691 ? 04:23
colomon rakudo: gist.github.com/840013
p6eval rakudo 10d86d: 04:24
..OUTPUT«(timeout)␤6␤8␤9␤10␤12␤15␤16␤18␤20␤24␤25␤27␤30␤32␤36␤40␤45␤48␤50␤54␤60␤64␤72␤75␤80␤81␤90␤96␤100␤108␤120␤125␤128␤135␤144␤150␤160␤162␤180␤192␤200␤216␤225␤240␤243␤250␤256␤270␤288␤300␤320␤324␤360␤375␤384␤400␤405␤432␤450␤480␤486␤500␤512␤540␤576␤600␤625␤640␤648␤675␤720␤729␤750􏿽xE2􏿽x90
colomon I did all this work to have the sorted-merge use lazy lists, then didn't ever call it with a lazy list. :) 04:25
It's not really the elegant solution I hoped for. 04:26
diakopter i'm curious whether you looked at the port I did
(from the Java example)
colomon I only looked at the rosetta code version.
04:26 Su-Shee left
diakopter the Java one you mean? 04:27
04:27 nymacro joined
colomon no, the perl 6 one. 04:27
diakopter oh..
colomon rosettacode.org/wiki/Hamming_numbers#Perl_6
diakopter yes, I ported one to perlesque 04:28
04:28 Su-Shee joined
colomon bed time. 04:28
diakopter perlesque: gist.github.com/839752
p6eval perlesque: OUTPUT«First 20 Hamming numbers: ␤1␤2␤3␤4␤5␤6␤8␤9␤10␤12␤15␤16␤18␤20␤24␤25␤27␤30␤32␤36␤1691st Hamming number: 2125764000␤One millionth Hamming number: 519312780448388736089589843750000000000000000000000000000000000000000000000000000000␤Elapsed: 00:00:10.3346182␤»
04:29 nadim left, nadim joined
dalek rixel: 82a2db5 | diakopter++ | sprixel/src/ (4 files):
grammar, parsing progress
04:31
04:46 jtbraun1 joined 04:47 knewt2 left, knewt2 joined 04:49 jtbraun1 left 05:04 JimmyZ joined 05:07 satyavvd joined 05:10 Mowah joined 05:13 Mowah left
sorear rakudo: .say for grep * %% any (2,3,5), ^*; # the most elegant Hamming in Perl 6. Doesn't work in Niecza yet. 05:15
p6eval rakudo 10d86d: ( no output )
sorear I guess it doesn't work in Rakudo either
oh
rakudo: .say for grep * %% any(2,3,5), ^*; # the most elegant Hamming in Perl 6. Doesn't work in Niecza yet.
p6eval rakudo 10d86d: OUTPUT«Can't take numeric value for object of type Whatever␤ in 'Any::Numeric' at line 1462:CORE.setting␤ in 'prefix:<^>' at line 7467:CORE.setting␤ in main program body at line 22:/tmp/zW1UmjCRcQ␤» 05:16
sorear rakudo: .say for grep { $_ %% any(2,3,5) }, ^*;
p6eval rakudo 10d86d: OUTPUT«Can't take numeric value for object of type Whatever␤ in 'Any::Numeric' at line 1462:CORE.setting␤ in 'prefix:<^>' at line 7467:CORE.setting␤ in main program body at line 22:/tmp/D4wBzjNTAF␤»
05:16 PZt left
sorear rakudo: .say for grep * %% any(2,3,5), ^Inf; 05:16
p6eval rakudo 10d86d:
..OUTPUT«(timeout)␤6␤8␤9␤10␤12␤14␤15␤16␤18␤20␤21␤22␤24␤25␤26␤27␤28␤30␤32␤33␤34␤35␤36␤38␤39␤40␤42␤44␤45␤46␤48␤50␤51␤52␤54␤55␤56␤57␤58␤60␤62␤63␤64␤65␤66␤68␤69␤70␤72␤74␤75␤76␤78␤80␤81␤82␤84␤85␤86␤87␤88␤90␤92␤93␤94␤95␤96␤98␤99␤100␤102␤104␤105␤106␤108␤110␤111␤112␤114␤115􏿽xE2
sorear ... why isn't 1, 2, 3, 4, 5 in that 05:17
05:18 PZt joined 05:27 JimmyZ left
dalek ast: f8f23b9 | jimmy++ | S04-statements/try.t:
added test for RT #68728
05:29
05:36 masonkramer left, masonkramer joined 05:37 JimmyZ joined 05:39 kanishka joined 05:40 kaare_ joined
dalek ast: 96654ce | jimmy++ | S0 (2 files):
s/tab/space/ for tests
05:51
05:52 jtbraun1 joined
sorear Where are the spectests for m//? 06:14
06:14 zostay left 06:15 dju__ joined 06:16 stifynsemons left 06:17 zostay joined
JimmyZ grep -r 'm/' S* 06:19
06:19 dju_ left 06:23 fhelmberger joined
dalek ecza: 2a38770 | sorear++ | / (3 files):
Fudge m// to return Match object (moritz)
06:33
06:44 jtbraun2 joined 06:46 jtbraun1 left 06:48 jtbraun1 joined 06:51 jtbraun2 left 06:53 cjk101010 joined 06:57 justatheory left, jtbraun2 joined, justatheory joined 06:58 jtbraun2 left 06:59 jtbraun2 joined 07:00 jtbraun1 left, jtbraun2 left 07:02 justatheory left 07:03 wtw joined 07:05 Tedd1 joined 07:13 flatwhatson_ joined 07:20 TiMBuS joined
dalek ecza: 7016f56 | diakopter++ | docs/announce.v3:
slight tweaks to docs/announce.v3
07:24
07:30 hatseflats left, donri joined 07:31 hatseflats joined 07:38 envi left 07:39 pjcj left 07:42 wtw left, Gothmog_ left 07:43 Gothmog_ joined 07:47 dju__ left, skangas left, dual left, stepnem left, clkao left, domidumont left, flatwhatson left, perigrin left, fith left, jasonmay left, starcoder2 left, mj41 left, Khisanth left, zb left, gabiruh left, BinGOs left, PerlJam left, Maddingue left, necrodearia left, uniejo left, ascent_ left, TimToady left, nsh- left, jpr5 left, krakan_ left, revdiablo left 07:48 fhelmberger left
moritz_ good morning 07:52
07:53 dju__ joined, skangas joined, dual joined, stepnem joined, clkao joined, domidumont joined, flatwhatson joined, perigrin joined, fith joined, jasonmay joined, starcoder2 joined, mj41 joined, Khisanth joined, zb joined, gabiruh joined, BinGOs joined, PerlJam joined, Maddingue joined, necrodearia joined, uniejo joined, ascent_ joined, TimToady joined, nsh- joined, jpr5 joined, krakan_ joined, revdiablo joined, wtw joined, donri left, donri joined 07:55 shi joined 07:58 cosimo left 08:00 wtw left, wtw joined
tadzik good morning 08:05
donri BEGIN { another-day } 08:08
tadzik yay, list of NLPW talks! 08:11
and they said it'll be all Dutch, hehe
moritz_ where's the list? 08:15
08:22 pjcj joined 08:23 tylercurtis left 08:24 cjk101010 left, PZt left, takesako left, PacoLinux left, Patterner left, tornadovj left, Kovensky left, gimix left, bacek left, dalek left, hugme left, jdhore left, larsen_ left, Tene left, frodwith left, avuserow left, Raynes left, cjk101013 left, [particle] left, sjohnson left, tadzik left, patch left, mdxi left, dju__ left, skangas left, dual left, stepnem left, clkao left, domidumont left, flatwhatson left, perigrin left, fith left, jasonmay left, starcoder2 left, mj41 left, Khisanth left, zb left, gabiruh left, BinGOs left, PerlJam left, Maddingue left, necrodearia left, uniejo left, ascent_ left, TimToady left, nsh- left, jpr5 left, krakan_ left, revdiablo left
donri So I have a binding to a lazy @primes, '.say for @primes' dies with "Cannot resume dead coroutine." 08:28
@primes[^100] works but does nothing until all are computed
bug, feature or wrong idiom? 08:29
08:30 cjk101010 joined, PZt joined, takesako joined, PacoLinux joined, Patterner joined, tornadovj joined, Kovensky joined, gimix joined, bacek joined, dalek joined, hugme joined, jdhore joined, larsen_ joined, Tene joined, frodwith joined, avuserow joined, Raynes joined, cjk101013 joined, [particle] joined, sjohnson joined, tadzik joined, patch joined, mdxi joined, calvino.freenode.net sets mode: +vv dalek hugme
dalek ast: 5e3e35d | moritz++ | S02-builtin_data_types/array (2 files):
move array shape tests to a separate file
08:32
ast: ba7e504 | moritz++ | S04-statements/try.t:
[try.t] update test plan
08:34
JimmyZ moritz_: S32-str/split-simple2.t can be removed? 08:35
08:36 dju__ joined, skangas joined, dual joined, stepnem joined, clkao joined, domidumont joined, flatwhatson joined, perigrin joined, fith joined, jasonmay joined, starcoder2 joined, mj41 joined, Khisanth joined, zb joined, gabiruh joined, BinGOs joined, PerlJam joined, Maddingue joined, necrodearia joined, uniejo joined, ascent_ joined, TimToady joined, nsh- joined, jpr5 joined, krakan_ joined, revdiablo joined
moritz_ JimmyZ: why should it? 08:36
JimmyZ moritz_: there was a comment in spectest.data.
S32-str/split-simple2.t # CHEAT! simplified version of split-simple.t
moritz_ well, if all the tests in split-simple2.t are also in split-simple.t, and all implementations (ie rakudo and niecza) run both files successfully, then yes 08:37
JimmyZ moritz_: yes . 08:40
08:42 mtk left
dalek ast: 13da501 | jimmy++ | S32-str/split-simple2.t:
removed S32-str/split-simple2.t
08:42
ast: dd8b0e0 | jimmy++ | S0 (3 files):
Merge branch 'master' of github.com:perl6/roast
08:49 mtk joined
JimmyZ moritz_: github.com/rakudo/rakudo/pull/12 08:50
dalek tpfwiki: (Hongwen Qiu)++ | www.perlfoundation.org/perl6/index....le_project 08:53
qiyong does perl6 use cpan too? 09:09
donri qiyong: modules.perl6.org/ 09:10
09:10 kanishka left
dalek kudo: 58e40e0 | zhuomingliang++ | t/spectest.data:
removed unneeded S32-str/split-simple2.t

Signed-off-by: Moritz Lenz [email@hidden.address]
09:15
09:28 dakkar joined 09:42 qiuhw left 09:45 daxim joined 09:49 Mowah joined
dalek ast: a3ccf3d | jimmy++ | S04-statements/loop.t:
added test for RT #71466
09:53
tadzik moritz_: rt.perl.org/rt3/Public/Bug/Display.html?id=68728 can you close this? 09:55
moritz_ *done* 09:56
JimmyZ++
tadzik moritz_++ 09:57
moritz_ rakudo: my $x = "test"; given $x { say $_; m/(e.)/; say $/ 09:58
p6eval rakudo 10d86d: OUTPUT«===SORRY!===␤Unable to parse blockoid, couldn't find final '}' at line 22␤»
moritz_ rakudo: my $x = "test"; given $x { say $_; m/(e.)/; say $/ }
p6eval rakudo 10d86d: OUTPUT«test␤es␤»
dalek ast: 5ac6379 | moritz++ | S05-match/capturing-contexts.t:
correct and unfudge tests for RT #66252
09:59
donri colomon: paste.pocoo.org/show/343204 actually faster than yours now 10:00
10:02 woosley left
moritz_ rakudo: say False.name 10:05
p6eval rakudo 10d86d: OUTPUT«Method 'name' not found for invocant of class 'Bool'␤ in main program body at line 22:/tmp/TWhiL7DijE␤»
moritz_ rakudo: for 1,2,3 -> $a, $b = $a { say $b } 10:06
p6eval rakudo 10d86d: OUTPUT«2␤3␤»
moritz_ rakudo: map -> $a, $b = $a { say $b }, 1, 2, 3
p6eval rakudo 10d86d: ( no output ) 10:07
moritz_ rakudo: sink map -> $a, $b = $a { say $b }, 1, 2, 3
p6eval rakudo 10d86d: OUTPUT«2␤3␤»
JimmyZ I think there are 3 tickets can be closed. 10:08
moritz_ which tickets? 10:10
rakudo: say (1..10).sort(&rand)
p6eval rakudo 10d86d: OUTPUT«too many arguments passed - 0 params expected␤ in 'rand' at line 2197:CORE.setting␤ in <anon> at line 2870:CORE.setting␤ in 'List::sort' at line 2857:CORE.setting␤ in 'Any::sort' at line 1516:CORE.setting␤ in main program body at line 22:/tmp/RviGAaOt65␤»
moritz_ rakudo: say (1..10).sort(-> { rand }) 10:11
p6eval rakudo 10d86d: OUTPUT«Too many positional parameters passed; got 2 but expected 0␤ in <anon> at line 2:/tmp/4X5volmbBZ␤ in <anon> at line 2870:CORE.setting␤ in 'List::sort' at line 2857:CORE.setting␤ in 'Any::sort' at line 1516:CORE.setting␤ in main program body at line 22:/tmp/4X5volmbBZ␤»
JimmyZ moritz_: RT #71466 and RT #77904 can be closed too. 10:12
moritz_ std: break
p6eval std 4608239: OUTPUT«===SORRY!===␤Undeclared routine:␤ 'break' used at line 1␤Check failed␤FAILED 00:01 117m␤»
moritz_ std: succeed
p6eval std 4608239: OUTPUT«ok 00:01 117m␤»
moritz_ done. 10:13
rakudo: sub { say "hello" }.() 10:14
p6eval rakudo 10d86d: OUTPUT«===SORRY!===␤Confused at line 22, near "sub { say "␤»
moritz_ rakudo: say (1..10).sort(&rand)
p6eval rakudo 10d86d: OUTPUT«too many arguments passed - 0 params expected␤ in 'rand' at line 2197:CORE.setting␤ in <anon> at line 2870:CORE.setting␤ in 'List::sort' at line 2857:CORE.setting␤ in 'Any::sort' at line 1516:CORE.setting␤ in main program body at line 22:/tmp/AC7esk_qLX␤»
moritz_ rakudo: my $a = 1; repeat while $a< 10 { $^a.defined.say; }
p6eval rakudo 10d86d: OUTPUT«Null PMC access in type()␤ in main program body at line 2:/tmp/TEqYiRR4Wf␤»
JimmyZ rakudo: my @a = 1..10; say ~(@a>>.trans((1..26) => (14..26,1..13))) 10:18
p6eval rakudo 10d86d: OUTPUT«(timeout)»
10:22 sbp is now known as phennytest
moritz_ phenny: tell patrickas about rt.perl.org/rt3/Ticket/Display.html?id=71366 -- want to hack on MAIN again? :-) 10:22
phenny moritz_: I'll pass that on when patrickas is around.
10:22 phennytest is now known as sbp 10:23 sbp is now known as phennytest, phennytest is now known as sbp 10:25 sbp is now known as phennytest, phennytest is now known as phennytext, phennytext is now known as sbp
moritz_ rakudo: say 1.+WHAT 10:28
p6eval rakudo 10d86d: OUTPUT«get_iter() not implemented in class 'Sub'␤ in main program body at line 22:/tmp/FLQf7UM_SH␤»
moritz_ rakudo: sub my() { }; my(my $b) 10:30
p6eval rakudo 10d86d: OUTPUT«Too many positional parameters passed; got 1 but expected 0␤ in 'my' at line 1:/tmp/whlyIjxKyO␤ in main program body at line 22:/tmp/whlyIjxKyO␤»
arnsholt Nice =) 10:32
moritz_ rakudo: my @arr; @arr[42] = 's'; say (+@arr).WHAT 10:33
p6eval rakudo 10d86d: OUTPUT«Int()␤»
10:34 zostay left, zostay joined
moritz_ rakudo: @_.=[3] 10:34
p6eval rakudo 10d86d: OUTPUT«===SORRY!===␤Can not use .= on a non-identifier method call at line 22, near ""␤»
moritz_ std: @_.=[3] 10:35
p6eval std 4608239: OUTPUT«===SORRY!===␤Placeholder variable @_ may not be used outside of a block at /tmp/OzwupoQ_zo line 1:␤------> @_⏏.=[3]␤Check failed␤FAILED 00:01 119m␤»
moritz_ std: sub f { @_.=[3] }
p6eval std 4608239: OUTPUT«ok 00:01 120m␤»
10:38 coldhead left, am0c left 10:48 mberends joined
dalek ast: ff620eb | jimmy++ | S05-transliteration/trans.t:
added test for RT #83674
10:50
ast: c907b99 | jimmy++ | S05-match/capturing-contexts.t:
Merge branch 'master' of github.com:perl6/roast
Juerd agentzh: Your ~/public_html/a.html is a Twitter login page and we received phishing alerts so your account is now disabled
agentzh: Please let me know if you happen to know the cause; either way, please contact me and I can re-enable your account 10:51
agentzh Juerd: oh, that might be an accident.
Juerd: sorry about that. 10:52
Juerd Accident in which way? :)
agentzh Juerd: i might be using "curl twitter.com > a.html" under the ~/public_html/ directory.
Juerd I see
Don't do that :)
agentzh Juerd: i won't :) 10:53
Juerd I'll reenable everything if you're convinced your password and/or ssh key haven't leaked :)
JimmyZ rakudo: say 3 !+ 4 10:54
p6eval rakudo 58e40e: OUTPUT«===SORRY!===␤Can't negate + because it is not iffy enough at line 22, near " 4"␤»
agentzh Juerd: i think they haven't leaked :)
moritz_ std: for 0 { when ARRAY {} } 10:55
p6eval std 4608239: OUTPUT«===SORRY!===␤Function 'ARRAY' needs parens to avoid gobbling block at /tmp/jgnK5axnNL line 1:␤------> for 0 { when ARRAY⏏ {} }␤Missing block (apparently gobbled by 'ARRAY') at /tmp/jgnK5axnNL line 1:␤------> for 0 { when ARRAY
..{}⏏…
perplexa rakudo: exit 10:56
p6eval rakudo 58e40e: ( no output )
perplexa :p
Juerd agentzh: Account's re-enabled. I've moved ~/public_html/a.html to ~/public_html_a.html
agentzh Juerd: thanks :)
moritz_ rakudo: say 'a' ~~ /:i 'A'/ 11:01
p6eval rakudo 58e40e: OUTPUT«a␤»
11:02 envi joined 11:10 tzhs joined
dalek ast: 3e93462 | jimmy++ | S0 (2 files):
added tests for RT #73386
11:10
11:11 agentzh left
dalek ast: 9c2a090 | moritz++ | S05-modifier/ignorecase.t:
[ignorecase.t] :i should descend into quotes (RT #76750)
11:11
11:20 perplexa left 11:29 qiyong left 11:41 JimmyZ left, ab5tract joined 11:46 JimmyZ joined 12:07 MayDaniel joined 12:13 satyavvd left 13:02 tzhs left, tzhs joined, ab5tract left
takadonet morning all 13:07
colomon \o 13:08
moritz_ o/ 13:11
13:19 _twitch left 13:31 perplexa joined 13:33 karupanerura joined 13:34 _twitch joined 13:38 plainhao joined 13:39 bluescreen joined 13:42 kaare_ left 13:44 satyavvd joined 13:46 JimmyZ left 13:49 JimmyZ joined 13:50 risou joined
donri yay haskell solved it in eight seconds 13:52
takadonet bah 13:54
moritz_ plus the two hours you need to convince your compiler that your types are correct :-)
donri when even my optimized perl 6 hadn't found a solution in 67 minutes I sorta gave up :(
moritz_: hahaha yea. more like 30 minutes but yea.
mathw well you have to give it some leeway 14:09
haskell compilers have actually had optmisation work done
14:09 cjk101010 left 14:10 benabik joined 14:12 cjk101010 joined 14:30 tzhs left 14:33 nymacro left
JimmyZ rakudo: my %h = { has-b => 42 } 14:34
p6eval rakudo 58e40e: ( no output )
colomon rakudo: my %h = { has-b => 42 }; say :%h.perl 14:37
p6eval rakudo 58e40e: OUTPUT«"h" => {"has-b" => 42}␤»
moritz_ there was a ticket about that not working, for which I've added the 'testneeded' tag today :-) 14:38
colomon moritz_++ 14:40
dalek ast: 2633e61 | jimmy++ | S02-builtin_data_types/hash.t:
aadded test for RT #75694
ast: 08187ac | jimmy++ | S05-modifier/ignorecase.t:
Merge branch 'master' of github.com:perl6/roast
moritz_ JimmyZ: if you 'git pull --rebase' you can avoid those unneeded merge commits 14:41
JimmyZ moritz_: ok, thanks.
I hate it too.
benabik Rebasing is your friend. I use it _constantly_. Awesome for making your commits look perfect before anyone else see them. :-D 14:43
moritz_ aka "good cheating"
14:43 kanishka joined
benabik You just have to remember not to rebase anything you've pushed out. That's not so friendly. 14:43
JimmyZ wonders why --rebase is not default.
14:43 bluescreen left
donri mathw: not giving up on perl 6, i know rakudo and parrot haven't had much optimizations done and this is an expensive problem 14:44
mathw :)
benabik JimmyZ: Because rebasing is very evil for already pushed branches.
JimmyZ: Although you can make it default for you: 'git config --global branch.autosetuprebase true' 14:45
JimmyZ: (Leaving off --global will make it default only for the current repo.)
mathw Because git supports many many workflows, and some of them break horribly if you rebase in the wrong places
JimmyZ can't automatic rebase when it's needed? 14:46
benabik Git defaults to the safe option. Altering history is cheating and is not guaranteed to give you back exactly what you put in. 14:47
Also, if anyone has made commits on top of the ones you're rebasing, they can have a real problem syncing back up. 14:49
JimmyZ rakudo: @_.=[3]
p6eval rakudo 58e40e: OUTPUT«===SORRY!===␤Can not use .= on a non-identifier method call at line 22, near ""␤»
dalek : a79e6eb | moritz++ | misc/dalek-conf.json:
[dalek] remove repo that is covered by post commit hooks
14:55 bluescreen joined 14:58 bluescreen left 15:03 karupanerura left
moritz_ \o/ new MoR chapter! 15:05
15:05 shi left
dalek ast: d8455c9 | jimmy++ | S02-builtin_data_types/array.t:
added test for RT #75342
15:05
15:07 kaare_ joined 15:13 bluescreen joined, wtw left 15:17 ColloquyUser joined 15:27 jtbraun1 joined, MayDaniel left 15:29 dju__ left, dju joined 15:36 jtbraun1 left 15:38 satyavvd left
sorear good * #perl6 15:47
15:49 Rotwang joined, jtbraun1 joined
sorear donri: I can give you speed :> 15:50
donri Do it! 15:51
sorear well, you'll have to leave rakudo/parrot behind 15:52
tadzik and there's no coming back 15:54
moritz_ niecza is faster, it just has a horrible startup time
sorear and runs about 1/30 of the tests 15:55
15:55 risou left
tadzik how many does rakudo run? 15:55
sorear ~30,000
15:55 risou joined
sorear nobody knows how many tests there are, so I was comparing to rakudo 15:55
JimmyZ ~33600 15:56
moritz_ JimmyZ: how did you get that number?
dalek ast: 58c1a6a | moritz++ | S02-builtin_data_types/array.t:
[array.t] explicit test plan again
sorear moritz_: mono --aot run/*.dll run/Niecza.exe helps a fair amount; I usually run that before spectests 15:57
JimmyZ do you mean the number of passing tests?
moritz_ Got a SIGABRT while executing native code. This usually indicates 15:58
a fatal error in the mono runtime or one of the native libraries
used by your application.
15:58 pyrimidine joined
moritz_ sorear: that's what I get when I run the aot compilation :-/ 15:58
tadzik sorear: so niecza does run 30% of those 30_000?
sorear tadzik: no, it runs about 1_100
3%, 1/30
moritz_ I suspect that another 1k tests are only a few LHFs away from being run in niecza 15:59
or probably many more 16:00
sorear moritz_: the aot compiler stuff does seem a bit flaky still ... this is why I'm switching back to safe code, so I know who to blame 16:03
16:04 risou_ joined, risou_ left, risou_ joined, risou left
benabik moritz_: LHF? 16:04
moritz_ benabik: low-hanging fruit 16:05
benabik Ah.
sorear niecza: "foo" ~~ /<sym>/; 16:09
p6eval niecza v2-102-g7016f56: OUTPUT«Unhandled exception: Illegal undef in cgop str␤ at /home/p6eval/niecza/boot/lib/SAFE.setting line 377 (SAFE die @ 2)␤ at /home/p6eval/niecza/src/CgOp.pm6 line 8 (CgOp CgOp._cgop @ 5)␤ at /home/p6eval/niecza/src/CgOp.pm6 line 215 (CgOp CgOp.str @ 2)␤ at
../home/p6eval/niecza/src/C…
sorear not sure crashing is the best result there :)
moritz_ I'd expect "can't find method sym for invocant of type Cursor" or something 16:10
rakudo: say 1.notdef 16:11
p6eval rakudo 58e40e: OUTPUT«Bool::False␤»
moritz_ hm, I can't find notdef in the spec anymore
Date: Fri Jul 30 19:46:36 2010 +0000
[S02, S32] kill off .notdef
by masak++
16:13 jtbraun1 left
JimmyZ there are many .notdef in spectests. 16:13
moritz_ then we should slowly kill it off 16:14
flussence what's the fix, s/notdef/defined.not/?
moritz_ !$thing.defined
flussence but that's harder to sed for :)
there should probably be a test file to check that removed features are actually gone 16:15
(it'd also be useful as a reference if someone's old code breaks as a result) 16:16
16:16 Patterner left
JimmyZ flussence: the spec is not freezed 16:17
donri sorear: would it run github.com/dag/euler/blob/master/Perl%206/3.pl ?
16:17 spq joined 16:18 Psyche^ joined, Psyche^ is now known as Patterner
donri niecza: gist.github.com/840636 16:19
p6eval niecza v2-102-g7016f56: OUTPUT«===SORRY!===␤␤Unhandled trait copy at /tmp/26iDEzSiTE line 8:␤------> my @primes := 2, 3, -> $a is copy ⏏{␤␤Unhandled trait Any() at /tmp/26iDEzSiTE line 8:␤------> my @primes := 2, 3, -> $a is copy
..⏏{␤␤Undeclared routines:␤ '…
donri Guess not.
moritz_ you can rewrite it to not use 'is copy'
donri niecza: gist.github.com/840636
yea
p6eval niecza v2-102-g7016f56: OUTPUT«===SORRY!===␤␤Undeclared routines:␤ 'all' used at line Any()14␤ 'sqrt' used at line Any()13,22␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/SAFE.setting line 377 (SAFE die @ 2)␤ at /home/p6eval/niecza/src/STD.pm6 line
..1152 (STD P6.comp_un…
moritz_ guess it doesn't do junctions yet 16:20
sorear I recently added .notdef to make spectests happier
yeah no junctions.
dukeleto ~~
moritz_ sorear: so it goes... hope it wasn't too much effort :-) 16:21
sorear parse erorr
donri niecza: gist.github.com/840636
p6eval niecza v2-102-g7016f56: OUTPUT«===SORRY!===␤␤This macro cannot be used as a function at /tmp/NwBO1OWwJd line 14:␤------> } until [&&]⏏ @primes.map: {␤␤Undeclared routine:␤ 'sqrt' used at line Any()13,22␤␤Unhandled exception: Check failed␤␤ at
../home/p6eval/niecza/boot/lib…
dalek ast: b6cb10e | moritz++ | S (7 files):
niecza unfudges
donri niecza: gist.github.com/840636 16:22
p6eval niecza v2-102-g7016f56: OUTPUT«===SORRY!===␤␤This macro cannot be used as a function at /tmp/82W_JLJLxU line 14:␤------> } until [&&]⏏ @primes.map: {␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/SAFE.setting line 377 (SAFE die @ 2)␤
..at /home/p6ev…
donri ok i give up
moritz_ flussence: fwiw most occurrences in the test suite are of the form ok $thing.notdef, which can be easily changed to nok $thing.defined 16:23
sorear donri: no sequence operator, no Array.max, no sqrt
also [&&] doesn't actually make sense
donri no .sqrt either?
moritz_ sorear: it makes sense, it just doesn't short-circuit 16:24
16:24 JimmyZ left
sorear moritz_: are you saying [&&] should be silently dwimfudged to [?&] ? 16:25
daxim perl6:say82..1
moritz_ in the case of success [&&] returns the last value, not True as [?&] does
rakudo has a macro-ish and an a sub form of infix:<&&> 16:26
the latter only for use with meta operators
16:28 daxim left 16:39 isBEKaml joined 16:40 fhelmberger joined 16:42 starcoder left, _dev0_ left, _dev0_ joined 16:43 awwaiid joined, meraxes left 16:44 nadim left, nadim_ joined, starcoder joined, sftp left 16:45 sftp joined 16:46 kanishka left 16:47 knewt2 left, knewt2 joined, kolibrie left, kolibrie joined, y3llow_ joined, p6eval left 16:48 p6eval joined, ChanServ sets mode: +v p6eval 16:49 y3llow left, y3llow_ is now known as y3llow 16:51 meraxes joined, icwiener joined
dalek ast: 08f1960 | moritz++ | S (7 files):
start to remove .notdef
16:52
sorear moritz++
moritz_ $ moritz@jacq:~/p6/rakudo/t/spec>ack -w notdef|wc -l 16:53
53
still way to go
but first I need to drive home
bbl&
16:55 cjk101010 left 16:56 MayDaniel joined 17:04 risou joined 17:06 jtbraun1 joined 17:07 risou_ left
dalek ecza: 39b83a2 | sorear++ | src/niecza:
Accept and ignore is unary etc on regexes
17:09
ecza: 891071d | sorear++ | src/ (2 files):
Implement a variant of viv's 'endsym' function
17:12 MayDaniel left 17:17 pigdude joined 17:19 justatheory joined 17:21 proller_ joined 17:27 impious joined, impious left 17:34 jaldhar left, jaldhar joined
moritz_ news.perlfoundation.org/2011/02/hag...truct.html please leave your comment on that page 17:36
17:36 masonkramer left 17:37 cdarroch joined, cdarroch left, cdarroch joined 17:50 bluescreen left
jdhore moritz_, i'm working on fixing some of the notdef's in roast 17:53
17:58 jtbraun1 left
jdhore moritz_, pastebin.com/ANQvjnxC 18:06
18:06 ab5tract joined
jdhore Well...Or someone who has commit access to roast ^^ 18:07
18:11 ColloquyUser left 18:14 risou left 18:36 krunen left 18:38 dakkar left
colomon jdhore: noted, I'll try to give them a run later this afternoon. (want to make sure I've got an up-to-date working build and spectest first, which will take a bit!) 18:55
18:58 benabik left 19:02 benabik joined 19:06 shi joined, charsbr__ left 19:09 MayDaniel joined 19:16 isBEKaml left 19:21 cjk101010 joined 19:23 benabik left 19:25 pigdude left 19:30 pigdude joined 19:32 charsbar joined, charsbar left 19:33 mberends_ joined, charsbar joined 19:40 Tedd1 left 19:47 envi left 19:52 MayDaniel left 19:54 MayDaniel joined 19:56 cjk101010 left 20:04 Axius joined
diakopter phenny: tell TimToady nm about the mark/accent; we fixed it 20:06
phenny diakopter: I'll pass that on when TimToady is around.
20:10 ColloquyUser joined 20:23 ColloquyUser left 20:24 ColloquyUser joined
moritz_ jdhore: what's your github ID? 20:29
jdhore moritz_, jdhore 20:30
20:30 molaf_ left
moritz_ hugme: add jdhore to perl6 20:30
hugme hugs jdhore. Welcome to the perl6 github organization
jdhore :D 20:31
moritz_ jdhore: you now have commit access yourself :-)
jdhore :)
moritz_ colomon++ could have done that too
jdhore how do you change what URL a git repo is using locally?
ah, .git/config 20:32
moritz_ right, the new URL should be [email@hidden.address] 20:33
jdhore Yep
dalek ast: 2544bcf | (JD Horelick)++ | S (24 files):
Remove most remaining .notdef's.
jdhore :D
20:33 JodaZ joined
jdhore hmm, i prolly should change my git username 20:34
dalek ast: 07b93fe | moritz++ | S02-builtin_data_types/array.t:
[array.t] fix plan, moritz--
20:35
20:36 MayDaniel_ joined, dju left
moritz_ \o/ commits from two new committers in a few days 20:37
20:39 MayDaniel left 20:42 ColloquyUser left 20:43 MayDaniel_ left
jdhore :) 20:43
Vim makes life so painless :) 20:44
20:46 alester joined 20:49 masak joined
masak hi zebras 20:49
phenny masak: 22 Feb 23:29Z <diakopter> ask masak take a look at the clog from here - hamming perlesque
masak: 22 Feb 23:30Z <diakopter> tell masak (blatantly ported from the Java solution)
masak: 04:18Z <colomon> tell masak Have sort of better Hamming. Tried to use lazy lists, but it doesn't. Wacky. Not happy with it. gist.github.com/840013
masak diakopter++
nice! people took up the mini-challenge :) 20:50
colomon++
tadzik question: Rakudo is written in Perl 6. What happens when we lose the first compiler? :) 20:53
masak we'll just use the second? 20:54
tadzik I mean, when we run out of the working compilers, what will we do?
20:54 jferrero joined
masak the question seems to ignore that the compilers usually build themselves via bootstrapping from smaller languages such as nqp. 20:55
Tene Anyone know if there's a specific reason that the spec doesn't define some of the more-obvious unicode math ops, like ≠ ?
I mean, it's obviously not completely adverse to unicode, what with «» etc.
masak Tene: the spec doesn't define any ops outside of latin-1.
20:56 mtk left
tadzik masak: so when Rakudo builds, it first builds some part of itself using nqp, and then builds the Rakudo-Rakudo? 20:56
masak yes.
similarly, nqp-rx bootstraps itself from PGE, which is written in PIR. 20:57
so it's something like Parrot -> PIR/IMCC -> PGE -> nqp/rx -> Rakudo -> Rakudo's setting. 20:58
hm, the first 'Rakudo' could say 'Rakudo grammar/actions' 20:59
[Coke] masak: It's all so simple!
masak [Coke]: :)
21:00 Axius left
masak diakopter: huh. I didn't look at the Java solution before posting my challenge, but it's nice to see it (and your solution) corresponds to my idea. 21:02
nice premature optimization on the bitshift :P
Tene masak: these days, nqp bootstraps itself with nqp 21:04
21:04 mtk joined
Tene masak: there's a compiled-to-pir version of nqp that's built and shipped with parrot, the stage0 compiler 21:04
masak right. that's the one I was thinking of. 21:07
I'm actually not entirely sure what the role of the stage0 compiler is. I just assumed it was used to build nqp-rx the first time around. 21:08
I meant to start writing the p5 post tonight, but I'm too exhausted after $dayjob. hopefully tomorrow night. 21:09
colomon: your solution uses lazy lists, whereas the mini-challenge was to write a version without them. did I miss something? :) 21:12
colomon moritz_: (re roast commit bit for jdhore) I always forget I can do that!
masak: A) was ignoring your challenge
masak: B) actually, my core code does NOT use lazy lists.
jdhore :D
colomon The sorted-merge function takes care to allow lazy lists, but the hamming function never uses them. 21:13
masak colomon: oh, I saw gather/take and assumed it did. sorry 'bout that :)
21:13 dju joined, dju left, dju joined
colomon masak: no worries. :) 21:13
masak goes to sleep
'night, #perl6
21:14 dju left, masak left
colomon I'm profoundly unsatisfied with the code I wrote for that, actually. 21:14
'night!
21:16 coldhead joined
Tene rakudo: say any(1 ... Inf) > 10; 21:17
Shame we don't have lazy junctions. That should be easy to implement.
p6eval rakudo 58e40e: OUTPUT«(timeout)»
colomon Tene++: well volunteered.
;)
Tene colomon: Not today, unfortunately. 21:18
21:18 aesop left
colomon Tene: tomorrow would be plenty fast enough, I'm sure. ;) 21:18
Tene colomon: First I'd have to read the spec pretty thoroughly to make sure it's permitted. 21:20
21:20 mberends_ left
Tene Our current impl explicitly calls .eager. 21:20
I don't know if there's a good reason to do that or not. 21:21
rakudo: say any(1 ... 30) > 10;
p6eval rakudo 58e40e: OUTPUT«any(Bool::False, Bool::True)␤»
colomon I wouldn't be surprised if it's not permitted, actually.
Tene Why? 21:22
moritz_ well, it can short-circuit as soon as the answer is determined
Tene Exactly why I expected it to work lazily, moritz
moritz_ ie at least one True for an any() junction, at least one false for a none() junction etc.
21:23 rdesfo joined 21:24 aesop joined
Tene colomon: additionally, it would be impolite for me to pick LHF like that, when it could be left for a new contributor to do. 21:25
21:25 molaf joined
colomon Tene: I'm sure you'd be forgiven. 21:29
moritz_ now Tene is trying wriggle his way out... :-) 21:30
21:42 amkrankr1leuen joined 21:44 MayDaniel joined 21:45 sftp_ joined 21:50 maja_ joined 21:51 coldhead left, kolibrie left, _twitch left, pjcj left, mkramer1 left, Solarion left, VXZ left, jjore left, MayDaniel left, jferrero left, Rotwang left, kaare_ left, HarryS left, lamstyle left, plobsing_ left, jevin left, TiMBuS left, zykes- left, szabgab left, betterworld left, cookys_ left, pochi left, pmichaud left, dukeleto left, szbalint left, Grimnir_ left, Juerd left, Util left, bbkr left, rblackwe left, breinbaas left, molaf left, knewt2 left, starcoder left, donri left, hatseflats left, yahooooo left, estrabd left, JohnGalt2600 left, barika left, ruoso left, rbuels left, chitragupt left, simcop2387 left, tewk left, nothingmuch_ left, jql left, diakopter left, allbery_b left, apejens left, rdesfo left, silug left, Helios- left, moritz_ left, cxreg left, rokoteko left, lestrrat left, broquaint left, woldrich left, hcchien left, cibs left, aloha left, Trashlord left, amkrankruleuen left, aesop left, ab5tract left, sftp left, drbean left, cschimm1 left, s1n left, pothos left, maja left, saaki left, Su-Shee left, nrr left, Vlavv left, jtbraun left, REPLeffect left, _ilbot left, kst left, robinsmidsrod left, bhwu left 21:54 coldhead joined, jferrero joined, kolibrie joined, Rotwang joined, kaare_ joined, _twitch joined, pjcj joined, TiMBuS joined, HarryS joined, lamstyle joined, plobsing_ joined, mkramer1 joined, jjore joined, VXZ joined, Solarion joined, jevin joined, zykes- joined, szabgab joined, betterworld joined, cookys_ joined, pochi joined, pmichaud joined, dukeleto joined, szbalint joined, Grimnir_ joined, Util joined, Juerd joined, breinbaas joined, rblackwe joined, bbkr joined, kfo_ joined, kfo left 22:02 shi left 22:11 starcoder joined, Su-Shee joined, hcchien joined, broquaint joined, rokoteko joined, lestrrat joined, moritz_ joined, cxreg joined, woldrich joined, Helios- joined, silug joined, pothos_ joined, aloha joined, Guest36953 joined, rhr joined, molaf joined, aesop joined, ab5tract joined, knewt2 joined, donri joined, hatseflats joined, apejens joined, allbery_b joined, diakopter joined, jql joined, nothingmuch_ joined, simcop2387 joined, chitragupt joined, rbuels joined, ruoso joined, tewk joined, barika joined, JohnGalt2600 joined, estrabd joined, yahooooo joined, nrr joined, Vlavv joined, drbean joined, jtbraun joined, cschimm1 joined, s1n joined, REPLeffect joined, _ilbot joined, kst joined, robinsmidsrod joined, saaki joined, bhwu joined, felipe left 22:12 dolmen joined, donaldh joined 22:13 ashleydev is now known as 5EXAB63D5, ashleydev joined, icwiener left 22:14 kaare_ left 22:15 5EXAB63D5 left, meraxes left, perplexa left, meraxes_ joined, pnu_ joined 22:17 rhr left, SAABGZD joined, Alias_ joined 22:19 slavik2 joined 22:21 jasonmay left, snarkyboojum_ joined, aesop_ joined 22:22 meteorjay is now known as 5EXAB6STD, kst` joined, meteorjay joined, cschimm1_ joined, jasonmay joined 22:23 ggoebel joined, cognominal_ joined 22:24 Su-Shee_ joined, MOAR-f00li5h joined, drbean_ joined 22:25 nrr` joined 22:27 coldhead` joined, phenny is now known as 5EXAB9GLR, jnthn is now known as 5EXAB8SHT, Solarion_ joined, robinsmidsrod is now known as 15SAAAHTE, mkramer joined 22:28 ggoebel left, pnu_ left, coldhead left, kolibrie left, _twitch left, pjcj left 22:29 mkramer1 left, Solarion left, VXZ left, jjore left, ggoebel joined, coldhead` is now known as coldhead, aesop left, ab5tract left, drbean left, cschimm1 left, s1n left, saaki left, Su-Shee left, nrr left, Vlavv left, jtbraun left, REPLeffect left, _ilbot left, kst left, 15SAAAHTE left, bhwu left, jjore_ joined 22:31 amkrankr1leuen left, Gothmog_ left, cognominal left, 5EXAB9GLR left, pnu left, f00li5h left, tomaw left, Alias left, 5EXAB8SHT left, slavik1 left, 5EXAB6STD left, snarkyboojum left, snarkyboojum_ is now known as snarkyboojum, Mowah left 22:33 rhr joined, VXZ joined 22:35 ab5tract joined, saaki joined, Mowah joined, bhwu joined, ggoebel left, pjcj joined, amkrankruleuen joined 22:36 jnthn joined, phenny joined, jtbraun1 joined, pnu joined, robinsmidsrod joined, phenny left, phenny joined, phenny left, Vlavv_ joined, Mowah left, proller_ left, phenny joined 22:37 kolibrie joined, Mowah joined, _ilbot joined, aesop_ left, aesop_ joined, MOAR-f00li5h left, MOAR-f00li5h joined 22:38 s1n joined, pigdude left 22:39 donri left, donri__ joined, saaki left, plainhao left, bhwu left 22:40 skangas_ joined 22:41 Gothmog_ joined, perplexa joined 22:43 drbean_ left, skangas left, skangas_ is now known as skangas 22:44 drbean joined 22:45 coldhead left, Mowah left, Mowah joined 22:47 perplexa is now known as Guest9160, donri__ left 22:48 donri joined, _twitch joined 22:49 aesop joined, aesop_ left
donri rakudo: say [&&] ^Inf ... * > 10 22:50
p6eval rakudo 58e40e: OUTPUT«0␤»
donri no wait how did tene write that test 22:51
22:51 coldhead joined 22:54 aesop left, aesop joined
donri rakudo: say [&&] ^Inf 22:54
p6eval rakudo 58e40e: OUTPUT«(timeout)»
22:56 cosimo joined
donri anyways tene figured out why my code was so slow: junctions not short-circuiting 22:56
Tene donri: what test?
donri Tene: you tested junctions here earlier
Tene 14:15 < Tene> rakudo: say any(1 ... Inf) > 10; 22:57
donri ah
rakudo: say [&&] True, False
p6eval rakudo 58e40e: OUTPUT«Bool::False␤»
donri rakudo: say [&&] (^Inf).map: ?* 22:58
p6eval rakudo 58e40e: OUTPUT«(timeout)»
22:58 bluescreen joined
donri not sure what i'm getting at anyway xD 22:59
donri tired
but [&&] is similar to all() and i'm wondering if it short-circuits
23:00 MayDaniel joined
donaldh Does anyone know about argument captures? 23:00
donri rakudo: say \(1, 2, :foo).perl
p6eval rakudo 58e40e: OUTPUT«\(1, 2, "foo" => Bool::True)␤»
donaldh I'm trying to assign to a positional in a capture, but it's readonly 23:01
PerlJam donaldh: An introductory question usually goes no where. Just ask the question you really want to ask.
donaldh: show code. 23:02
donaldh rakudo: my $var; my $capture = \($var); for $capture.list.values -> \$x { $x = 'Hello' }; 23:03
p6eval rakudo 58e40e: OUTPUT«Cannot modify readonly value␤ in '&infix:<=>' at line 1␤ in <anon> at line 22:/tmp/sU4kw4tJ17␤ in main program body at line 1␤»
donri rakudo: my $var; my $capture = \($var is rw); for $capture.list.values -> \$x { $x = 'Hello' }; 23:04
p6eval rakudo 58e40e: OUTPUT«===SORRY!===␤You can't backslash that at line 22, near "($var is r"␤»
donaldh donri: yup, I've tried that.
donri rakudo: my $var; my $capture = \($var); for $capture.list.values -> \$x is rw { $x = 'Hello' };
p6eval rakudo 58e40e: OUTPUT«Cannot modify readonly value␤ in '&infix:<=>' at line 1␤ in <anon> at line 22:/tmp/JIBab7ZY3n␤ in main program body at line 1␤»
23:05 ab5tract left
donaldh I've simplified the example. It was based on: sub sqlite3_open( Str $filename, OpaquePointer $ppDB is rw ) 23:05
I'm trying to extend Zavolaj to initialize out parameters, i.e. those marked is rw. 23:07
23:08 tomaw joined 23:09 felipe joined, Guest36953 left
donri donaldh: can't you set a default or make optional? 23:09
23:10 Trashlord joined 23:11 kst` is now known as kst
donri but i'd think you'd usually write a wrapper api on top of the nativecalls 23:11
donaldh Currently I have to do this: my $db = pir::new__Ps('UnManagedStruct'); my $status = sqlite3_open( "test.db", $db ); 23:12
I want to avoid having to initialize $db by embedding that behaviour in Zavolaj. 23:13
donri: github.com/jnthn/zavolaj/
donri oh zavolaj *is* nativecall? 23:16
i thought it was sqlite3 via nativecall
donaldh Yes.
23:16 stifynsemons joined
donri perl6advent.wordpress.com/2010/12/1...om-perl-6/ 23:16
suggests wrapper api
donaldh perhaps that's the only viable approach. 23:20
donri i think the whole point of the "is native" subs is to represent the functions in natural perl 23:21
it needs that information to even work, at least without .h files
23:23 jaldhar left
donaldh Yes, that's right. "is native" is a multi trait that is implemented to do some high magic. 23:23
23:23 jaldhar joined
donaldh I have extended it to understand "is rw" parameters and generate the necessary NCI call signatures. 23:24
I would like it to 'autovivify' the "is rw" out parameters, but all I have to work with is an immutable capture. 23:26
23:30 Mowah left 23:31 Rotwang left, MayDaniel left 23:32 cibs joined 23:36 alester left 23:42 cibs left 23:44 maja_ left 23:48 spq left 23:51 maja joined 23:53 stifynsemons left 23:54 maja left, jtbraun1 left 23:55 donri left 23:56 maja joined 23:59 envi joined