»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
00:00 mcmillhj left 00:12 SmokeMachine left, hoelzro_ left, scott left, agwind left, rouking left, Exodist left, alpha6 left, nebuchadnezzar left, S007 left, CIAvash[m] left, mtj_ left, daxim left, lizmat left, raydiak left, Kaiepi left, khw left, AlexDaniel left, athenot left, SourceBaby left, p6lert left, synopsebot left, Geth left, dalek left, notable6 left, speedChicken left, jferrero left, bisectable6 left, llfourn_ left, aeruder left, jcallen_ left, cosimo left, Praise left, TeamBlast left, mingdao left, stmuk left, jalbo_ left, dustinm` left, troys left, jeek left, wmoxam left, khisanth_ left, kaare_ left, vike left, tyil left, xinming_ left, tt left, lookatme left, ilbelkyr left, APic left, [particle]1 left, Util left, nativecallable6 left, reportable6 left, quotable6 left, undersightable6 left, TEttinger left, committable6 left, greppable6 left, shareable6 left, squashable6 left, benchable6 left, unicodable6 left, coverable6 left, evalable6 left, lucs left, kybr left, gabiruh_ left, epony left, phogg left, yoleaux left, stux|RC-only left, donpdonp left, erdic left, samcv left, Voldenet left, noganex left, KotH left, joy left, DarthGandalf left, damnlie left, ecocode left, Matthew[m] left, thgilfodrol left, statisfiable6 left, bloatable6 left, lumimies left, albongo left, kst` left, kurahaupo left, Herby_ left, b2gills left, avar left, imcsk8 left, syntaxman left, SCHAPiE left, g- left, sjn left, riatre left, tadzik left, reu left, Grauwolf left, wictory[m] left, eliasr left, ilbot3 left, ambs left, cognominal left, Possum left, salva left, ribasushi left, MasterDuke left, pharv_ left, dogbert17 left, bartolin left, grumble left, afresh1 left, giraffe left, mniip left, Sgeo__ left, protium left, telnet left, lichtkind left, leah2 left, obfusk left, releasable6 left, telex left, ccakes left, mempko left, TreyHarris left, rjbs left, jast left, dogbert2 left, El_Che left, eythian left 00:14 scott joined, Altreus joined, imcsk8_ joined, mephinet joined, tomaw_ joined, eater joined, mcmillhj joined, japanoise joined, f3ew_ joined, dpk joined, hoelzro joined, jnthn_ joined, jhill_ joined, iviv joined, SmokeMachine joined, [particle]1 joined, lichtkind joined, pharv_ joined, Herby_ joined, MasterDuke joined, lizmat joined, raydiak joined, Kaiepi joined, troys joined, khw joined, AlexDaniel joined, Util joined, athenot joined, Voldenet joined, eliasr joined, SourceBaby joined, synopsebot joined, p6lert joined, Geth joined, dalek joined, weber.freenode.net sets mode: +vvvv SourceBaby synopsebot Geth dalek, dogbert17 joined, afresh1 joined, notable6 joined, bartolin joined, speedChicken joined, quotable6 joined, reportable6 joined, nativecallable6 joined, jeek joined, wmoxam joined, rjbs joined, weber.freenode.net sets mode: +v notable6, ilbot3 joined, leah2 joined, khisanth_ joined, obfusk joined, kaare_ joined, undersightable6 joined, giraffe joined, vike joined, tyil joined, reu joined, noganex joined, ambs joined, b2gills joined, TEttinger joined, jferrero joined, committable6 joined, releasable6 joined, cognominal joined, bisectable6 joined, xinming_ joined, jast joined, tt joined, llfourn_ joined, lookatme joined, mniip joined, telex joined, Sgeo__ joined, aeruder joined, ilbelkyr joined, jcallen_ joined, greppable6 joined, statisfiable6 joined, weber.freenode.net sets mode: +vvvv ilbot3 releasable6 bisectable6 statisfiable6, squashable6 joined, shareable6 joined, unicodable6 joined, benchable6 joined, evalable6 joined, coverable6 joined, bloatable6 joined, ccakes joined, avar joined, cosimo joined, Praise joined, protium joined, lucs joined, mempko joined, weber.freenode.net sets mode: +v bloatable6, kybr joined, TeamBlast joined, APic joined, gabiruh_ joined, epony joined, phogg joined, KotH joined, mingdao joined, imcsk8 joined, syntaxman joined, SCHAPiE joined, stmuk joined, jalbo_ joined, dustinm` joined, TreyHarris joined, telnet joined, Possum joined, dogbert2 joined, yoleaux joined, Grauwolf joined, ecocode joined, joy joined, stux|RC-only joined, thgilfodrol joined, donpdonp joined, albongo joined, lumimies joined, tadzik joined, wictory[m] joined, g- joined, salva joined, sjn joined, kst` joined, El_Che joined, Matthew[m] joined, DarthGandalf joined, eythian joined, ribasushi joined, damnlie joined, erdic joined, grumble joined, samcv joined, u-ou joined, sivoais_ joined, huf joined, atta joined, SHODAN joined, weber.freenode.net sets mode: +v yoleaux, krunen joined, smash joined, ccntrq joined, john_parr joined, geekosaur joined, timotimo joined, ingy joined, zostay joined, mst joined, itaylor57 joined, perigrin joined, BuildTheRobots joined, mack[m] joined, chansen_ joined, jsimonet joined, roguelazer joined, esh joined, timeless joined, ggherdov joined, xi- joined, pnu__ joined, cpup joined, tobs joined, tbrowder_ joined, daemon joined, musca` joined, pmichaud joined, huggable joined, buggable joined, tinita joined, webstrand joined, riatre joined, cgfbee joined, go|dfish joined, m0ltar joined, a3f joined, simcop2387 joined, perlbot joined, ilmari[m] joined, mirlur[m]1 joined, bhm joined, japhb joined, skaji joined, peteretep joined, kipd joined, mrsolo joined, weber.freenode.net sets mode: +vv huggable buggable, caasih joined, PotatoGim joined, rodarmor joined, jnap_ joined, mithaldu_ joined, profan joined, caa51h joined, nightfrog joined, Spot_ joined, charsbar joined, stux|RC-- joined, Kaffe joined, awwaiid joined, jantore joined, DrForr joined, Juerd joined, avalenn joined, Bucciarati joined, Gothmog_ joined, masak joined, Garland_g[m] joined, unclechu joined, AlexDaniel` joined, domm joined, klapperl joined, Ulti joined, zoosha joined, Grrrr joined, breinbaas joined, jkramer joined, BinGOs joined, andrewalker joined, robinsmidsrod joined, gfldex joined, sunnavy joined, [Coke] joined, samebchase joined, [ptc] joined, ponbiki joined, ilmari joined, pierrot joined, moritz joined, integral joined, leedo joined, literal joined, cibs joined, freeze joined, BooK_ joined, kshannon joined, bonsaikitten joined, xxpor_ joined, hcit joined, diegok joined, hahainternet joined, nativecallable6 left, spider-mario joined, undersightable6 left, shareable6 left, squashable6 left, benchable6 left, unicodable6 left, coverable6 left 00:15 mcmillhj left, committable6 left 00:16 imcsk8 left, scott is now known as Guest78496, Altreus is now known as Guest14802, reportable6 left, quotable6 left, greppable6 left, kent\n joined 00:18 yoleaux left 00:19 yoleaux joined, ChanServ sets mode: +v yoleaux 00:22 mcmillhj joined 00:23 wictory[m] left, ilmari[m] left, Matthew[m] left, tadzik left, mack[m] left, mirlur[m]1 left, unclechu left, Garland_g[m] left, AlexDaniel` left 00:26 mcmillhj left 00:27 cognominal left 00:29 cognominal joined
Kaiepi how would i write a test for if perl6 is exiting with a code? 00:31
6
typo sorry
00:32 mienaikage joined
timotimo you have to run a perl6 compiler (or just the script) via run or Proc::Async for that purpose 00:33
MasterDuke i think there are some tests in rakudo's t directory or in roast that do that
Kaiepi would they work for tests for the repl? 00:34
timotimo yeah, we do have repl tests already
Kaiepi i know, i'm adding tests for the changes i'm making 00:35
i'm ensuring pressing ^D twice in a row works 00:36
lookatme m: use soft; &say.wrap(-> |c { put c; nextsame; }); say 123
camelia 123
Attempt to return outside of any Routine
in block <unit> at <tmp> line 1

123
lookatme Argument of wrap can not be a anon sub ? 00:37
or a block
m: use soft; &say.wrap(sub (|c) { put c; nextsame; }); say 123
camelia 123
123
lookatme this fine
00:37 w_richard_w joined 00:38 aborazmeh joined, aborazmeh left, aborazmeh joined
Kaiepi i think what i can do is make a proc for the repl, then test for whether it dies or not 00:38
lookatme m: try "say 123".EVAL; 00:39
camelia 123
lookatme m: try "say abc".EVAL;
camelia ( no output )
AlexDaniel e: try "say abc".EVAL;
evalable6
AlexDaniel e: try "say ‘abc’".EVAL;
evalable6 abc
lookatme yeah, how about EVAL :)
00:41 pharv_ left 00:42 pharv joined, mcmillhj joined 00:46 pharv left, mcmillhj left
Geth doc: 91b5c7beb2 | cfa++ | xt/links-not-links.t
Remove trailing whitespace.
00:50
00:53 char_var[buffer] joined 00:55 skids joined 00:57 char_var[buffer] left 01:01 mcmillhj joined 01:05 mcmillhj left 01:06 pharv joined, epony left, Herby_ left 01:10 herby_ joined, pharv left 01:12 nativecallable6 joined, ChanServ sets mode: +v nativecallable6, coverable6 joined, unicodable6 joined, committable6 joined, ChanServ sets mode: +v unicodable6, ChanServ sets mode: +v committable6, undersightable6 joined, benchable6 joined, ChanServ sets mode: +v benchable6, squashable6 joined, shareable6 joined, epony joined 01:16 quotable6 joined, ChanServ sets mode: +v quotable6, reportable6 joined, greppable6 joined, aborazmeh left 01:17 AlexDaniel` joined, mirlur[m] joined, wictory[m] joined, tadzik joined, CIAvash[m] joined, mack[m] joined, unclechu joined, Matthew[m] joined, ilmari[m] joined, Garland_g[m] joined 01:18 mcmillhj joined
herby_ tyil: the speed increase in the new version of assixt is great 01:21
tyil :D
its been making my time working on other modules much more enjoyable 01:22
it went from ~13s parse time to ~0.15
I got some help from samcv in figuring out why it was so slow 01:23
herby_ i was about to ask, why was it slow?
tyil so feel free to give her some credit too :>
01:23 mcmillhj left
tyil I changed two parts 01:23
01:24 aindilis joined
tyil for one, I updated Hash::Merge to expose subs that did not augment the Hash class 01:24
that used to make it unable to use precompilation
so it would always have to parse, making it slow
the other part was that I used to load all classes 01:25
which has been turned into lazy loading the classes it needs to perform a task
my next project is a querybuilder, so I dont have to put hardcoded queries into programs 01:27
almost got update, insert and select queries working with it
01:28 agwind joined, rouking joined, Exodist joined, alpha6 joined, nebuchadnezzar joined, S007 joined, mtj_ joined, daxim joined, olinkl joined, dylanwh joined, rgrau joined, maettu joined, marcusramberg joined
tyil and next week at my semi-local perl monger meetup I'll look for some feedback and look into the possibilities of giving a talk at the perl conference 01:28
herby_ that's good stuff.
tyil I hope so, yeah :D 01:29
01:30 FROGGS_ joined, reportable6 left, greppable6 left, japanoise left 01:31 greppable6 joined, reportable6 joined
tyil its already 3:30 am 01:31
time to sleep I guess
01:31 squashable6 left, shareable6 left, undersightable6 left, coverable6 left, evalable6 left
tyil good night ~ 01:31
01:31 FROGGS left, ilmari[m] left, eater left
herby_ o/ 01:32
01:32 mirlur[m] left, mienaikage left, AlexDaniel` left, CIAvash[m] left, mack[m] left, wictory[m] left, tadzik left 01:33 unclechu left, Matthew[m] left, Garland_g[m] left, mcmillhj joined, japanoise joined 01:34 eater joined 01:35 greppable6 left, reportable6 left, reportable6 joined, greppable6 joined 01:38 mcmillhj left 01:40 g- left 01:43 g- joined 01:45 mcmillhj joined 01:46 athenot left 01:47 ilbot3 left, mienaikage joined, mienaikage left 01:49 mcmillhj left 01:50 athenot joined 01:54 mienaikage joined 01:55 ilbot3 joined, ChanServ sets mode: +v ilbot3 01:58 mcmillhj joined 02:03 mcmillhj left 02:12 mcmillhj joined 02:17 mcmillhj left 02:27 AlexDaniel` joined, tadzik joined 02:28 mirlur[m] joined, mack[m] joined, CIAvash[m] joined, unclechu joined, Matthew[m] joined, wictory[m] joined, ilmari[m] joined, Garland_g[m] joined, evalable6 joined, undersightable6 joined, shareable6 joined, squashable6 joined, mcmillhj joined 02:33 mcmillhj left 02:42 mcmillhj joined 02:46 epony left 02:47 mcmillhj left 02:53 mcmillhj joined 02:58 mcmillhj left 03:00 herby_ left 03:09 epony joined 03:10 eliasr left 03:11 mcmillhj joined 03:15 mcmillhj left 03:23 mcmillhj joined 03:27 pharv joined 03:28 mcmillhj left 03:32 pharv left 03:43 mcmillhj joined 03:48 mcmillhj left, yoleaux left 03:49 yoleaux joined, ChanServ sets mode: +v yoleaux 04:01 mcmillhj joined 04:06 mcmillhj left 04:13 pierre_ joined 04:18 mcmillhj joined
Kaiepi how do i post a thread to the perl6 mailing list? 04:20
04:21 skids left 04:23 mcmillhj left 04:32 mcmillhj joined 04:37 mcmillhj left 04:40 Malcolm joined 04:42 Malcolm left 04:50 yangh joined 04:51 mcmillhj joined 04:53 khw left 04:55 yangh left, mcmillhj left 05:14 coverable6 joined 05:20 sauvin joined 05:27 pharv joined 05:32 pharv left, epony left 05:33 mcmillhj joined 05:37 mcmillhj left 05:46 mcmillhj joined 05:48 troys left 05:51 mcmillhj left 05:53 AlexDaniel left 05:56 domidumont joined 06:06 mcmillhj joined 06:11 amalia___ joined, mcmillhj left 06:12 abraxxa joined 06:13 abraxxa1 joined 06:16 abraxxa left 06:17 mcmillhj joined 06:22 mcmillhj left 06:27 lizmat_ joined 06:30 lizmat left 06:31 pierre_ left, mcmillhj joined 06:32 pierre_ joined, pierre_ left 06:33 pierre_ joined 06:36 mcmillhj left 06:38 jmerelo joined
jmerelo Hi y'all 06:40
06:41 Actualeyes left 06:53 Actualeyes joined, jalbo_ left 06:58 Ven`` joined 07:00 wamba joined
donpdonp say "hello jmerelo" 07:06
evalable6 hello jmerelo
jmerelo :-) 07:07
07:13 sauvin is now known as Sauvin
jmerelo Working on old perl6/doc issues today... Anyone wants to have an issue assigned, just ask. Or don't. I'll assign them anyway :-) 07:14
07:17 mcmillhj joined 07:22 mcmillhj left 07:28 pharv joined 07:31 mcmillhj joined 07:32 darutoko joined 07:33 pharv left 07:36 mcmillhj left
Geth doc: 9156582edc | (JJ Merelo)++ | doc/Type/Signature.pod6
Converts "below" to link to section it refers to.

Which would close #1883. Incidentally, it works towards solving #1416 by adding a reference to **@. The second concept mentioned there, **% is not actually documented, but we can document it right there.
07:36
synopsebot Link: doc.perl6.org/type/Signature
07:40 rindolf joined 07:42 Ven`` left 07:43 athenot_ joined 07:45 athenot left 07:47 Ven`` joined, mcmillhj joined 07:50 lizmat_ is now known as lizmat 07:52 mcmillhj left 07:59 mcmillhj joined 08:04 mcmillhj left 08:13 mcmillhj joined 08:18 mcmillhj left 08:25 mcmillhj joined 08:30 mcmillhj left 08:31 speedChicken left
jmerelo So, kind of a slow day, huh? 08:38
08:40 speedChicken joined 08:41 mcmillhj joined 08:43 |oLa| joined
jmerelo Is there some way to collect "How do I..." questions from the IRC bot? Can we have a "HowDoIAble"? 08:44
08:46 mcmillhj left
Juerd Followed up quickly by isitpossibletoable 08:48
jmerelo Juerd: :-) Point is, I would like to collect those questions, and answers, for the documentation. If possible, automatically. Or as automatically as possible. 08:49
09:00 mcmillhj joined 09:05 mcmillhj left 09:06 mcmillhj joined 09:08 abraxxa1 is now known as abraxxa 09:10 mcmillhj left 09:16 sena_kun joined
Geth perl6-most-wanted: b05b4eaea8 | (JJ Merelo)++ | most-wanted/documentation.md
Update and link to roadmap
09:19
09:20 w_richard_w left
jmerelo "Most wanted" link from modules just drops you into a GitHub page. Should we turn that into a proper web? 09:22
09:29 pharv joined 09:31 jnthn_ is now known as jnthn 09:33 pharv left 09:35 pierre_ left 09:36 pierre_ joined 09:39 Ven` joined 09:40 pierre_ left, Ven`` left 09:42 wamba left
Kaiepi sorry to ask again, but how do i post threads on one of the perl mailing lists? 09:43
i'm already subscribed to it
lizmat which perl mailing list do you mean? there's many of them :-)
El_Che you send a mail to the address you got when you subscribed with from the email address you subscribed 09:44
lizmat send an email to the posting email address of the list?
Kaiepi the users one 09:45
that'd be [email@hidden.address] right?
09:46 athenot_ left
jmerelo Kaiepi: you need to be subscribed, probably. We can help you right here if you want, too. 09:48
timotimo already subscribed, see above
Kaiepi i've already subscribed
jmerelo Kaiepi: you need to send email from the same email address you are subscribed, using your email client. 09:49
Kaiepi alright, i think i got it 09:50
thanks
jmerelo Kaiepi: Glad to be of help :-)
09:52 donpdonp left, eliasr joined 09:53 athenot joined 09:58 wamba joined 09:59 cpage_ joined 10:02 cpage left, cpage_ is now known as cpage 10:13 Ven` left 10:17 Ven`` joined 10:22 wamba left, wamba joined 10:24 markong joined 10:31 donpdonp joined 10:43 Ven`` left, Ven`` joined 10:44 pierre_ joined
jmerelo There seems to be a single scholarly article on Perl 6, from 2007 and by Audrey Tang dl.acm.org/citation.cfm?id=1190218 10:45
10:48 pierre_ left 11:00 Ven`` left, Ven`` joined, Ven`` left
Kaiepi p6: use NativeCall; my $ptr = cglobal('c', 'printf', Pointer); nativecast(:(Str), $ptr)('test') 11:01
camelia Cannot locate native library 'libc.so': /usr/lib64/libc.so: invalid ELF header
in block at /home/camelia/rakudo-m-inst-2/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 680
in block <unit> at <tmp> line 1
Kaiepi huh
buggable New CPAN upload: Lingua-Stopwords-0.0.3.tar.gz by CHSANCH cpan.metacpan.org/authors/id/C/CH/...0.3.tar.gz
Kaiepi m: use NativeCall; my $ptr = cglobal('c', 'printf', Pointer); nativecast(:(Str), $ptr)('test') 11:02
camelia Cannot locate native library 'libc.so': /usr/lib64/libc.so: invalid ELF header
in block at /home/camelia/rakudo-m-inst-2/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 680
in block <unit> at <tmp> line 1
Kaiepi welp i'll paste what i get i guess
oh, printf doesn't write to stdout with sub printf(Str --> int32) is native { * } either 11:08
different fds? 11:09
jmerelo p6: say (Bool.roll xx 32).hyper.sum 11:27
camelia 21
jmerelo p6: say (Bool.roll xx 64).hyper.sum
camelia 30
jmerelo p6: my $start = now; say (Bool.roll xx 1024).hyper.sum; say "Time: ", now - $start; 11:28
camelia 512
Time: 0.0642494
jmerelo p6: my $start = now; say (Bool.roll xx 2048).hyper.sum; say "Time: ", now - $start;
camelia 1035
Time: 0.0512425
jmerelo p6: my $start = now; say (Bool.roll xx 65536).hyper.sum; say "Time: ", now - $start; 11:29
camelia 32778
Time: 0.2149424
jmerelo p6: my $start = now; say (Bool.roll xx 2**34).hyper.sum; say "Time: ", now - $start;
camelia MoarVM panic: Memory allocation failed; could not allocate 71139328 bytes
jmerelo p6: my $start = now; say (Bool.roll xx 2**32).hyper.sum; say "Time: ", now - $start;
El_Che jota-jota energy boost
camelia MoarVM panic: Memory allocation failed; could not allocate 70090752 bytes
jmerelo p6: my $start = now; say (Bool.roll xx 2**17).hyper.sum; say "Time: ", now - $start; 11:30
camelia 65390
Time: 0.4147548
jmerelo p6: my $start = now; say (Bool.roll xx 2**17).hyper.sum; say "Time: ", now - $start;
camelia 65426
Time: 0.3164581
jmerelo p6: my $start = now; say (Bool.roll xx 2**16).hyper.sum; say "Time: ", now - $start; 11:31
camelia 32793
Time: 0.18517156
jmerelo It's not parallelizing much, right? Takes almost twice as much for twice the size.
p6: my $start = now; say (Bool.roll xx 2**16).sum; say "Time: ", now - $start;
camelia 32660
Time: 0.045990
jmerelo p6: my $start = now; say (Bool.roll xx 2**18).sum; say "Time: ", now - $start; 11:32
camelia 131158
Time: 0.14542349
jmerelo And it's four times as slow as the sequential version. Am I missing something?
moritz parallelization has a lot of overhead 11:37
for somethiing as fast as Bool.roll, you need a huge batch size for it to make sense 11:38
m: : my $start = now; my $result = (Bool.roll xx 2**16).hyper.sum; say "Time: ", now - $start; 11:39
camelia 5===SORRY!5=== Error while compiling <tmp>
Bogus statement
at <tmp>:1
------> 3:7⏏5 my $start = now; my $result = (Bool.rol
expecting any of:
colon pair
moritz m: my $start = now; my $result = (Bool.roll xx 2**16).hyper.sum; say "Time: ", now - $start;
camelia Time: 0.18563355
moritz m: my $start = now; my $result = (Bool.roll xx 2**16).hyper(batch => 2**14).sum; say "Time: ", now - $start;
camelia Time: 0.10231314
moritz m: my $start = now; my $result = (Bool.roll xx 2**16).sum; say "Time: ", now - $start;
camelia Time: 0.042404
moritz you probably can't speed up something so fast with a pretty generic parallization method 11:40
if you could tell the parallelizer "this is all identical, speed it up", it could probably to a better job 11:41
jmerelo moritz: so we'd have to look for single-element heavyweight operations, right?
moritz jmerelo: right 11:42
m: sub count-primes($upto) { (2..$upto).grep(&is-prime).elems }; say count-primes(1e5) 11:43
camelia (timeout)
moritz m: sub count-primes($upto) { (2..$upto).grep(&is-prime).elems }; say count-primes(1e3) 11:44
camelia 168
11:44 ccntrq left
moritz m: sub count-primes($upto) { (2..$upto).grep(&is-prime).elems }; say count-primes(5e3) 11:44
camelia 669
moritz m: my $start = now; my $result = (Bool.roll xx 2**16).hyper(batch => 2**14).sum; say "Time: ", now - $start;
camelia Time: 0.1067636
jmerelo p6: my $start=now; ( (Bool.roll xx 64 ) xx 512).hyper.map( *.sum ); say now-$start; 11:47
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
now used at line 1. Did you mean 'not', 'HOW'?
11:47 flw joined 11:48 ccntrq joined
flw py: say 3; 11:49
jmerelo p6: my $start=now; ( (Bool.roll xx 64 ) xx 512).hyper.map( *.sum ); say now - $start;
camelia 0.0622274
11:49 xtreak joined
jmerelo p6: my $start=now; ( (Bool.roll xx 64 ) xx 1024).hyper.map( *.sum ); say now - $start; 11:49
camelia 0.0908485
jmerelo moritz: now this is cool :-) 11:50
p6: my $start=now; ( (Bool.roll xx 256 ) xx 2048).hyper.map( *.sum ); say now - $start;
camelia 0.1775111
jmerelo WTF
p6: my $start=now; my @sums = ( (Bool.roll xx 256 ) xx 2048).hyper.map( *.sum ); say now - $start;
camelia 0.21646196
jmerelo p6: my $start=now; my @sums = ( (Bool.roll xx 1024 ) xx 2048).hyper.map( *.sum ); say now - $start; 11:51
camelia 0.43274324
11:52 bbkr joined 12:02 flw left
jmerelo moritz: This hyper is opening a world of possibilities. Thanks. 12:10
Kaiepi unrelated, but why does running fcntl($*OUT.native-descriptor, 0) return -1 when running from a file, and something like 15 when run from the repl instead? 12:13
jmerelo p6: say fcntl($*OUT.native-descriptor, 0) 12:16
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
fcntl used at line 1
jmerelo p6: use NativeCall; say fcntl($*OUT.native-descriptor, 0)
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
fcntl used at line 1
Kaiepi p6: use NativeCall; sub fcntl(int32, int32 --> int32); fcntl($*OUT.native-descriptor, 0) 12:17
camelia 5===SORRY!5=== Error while compiling <tmp>
A unit-scoped sub definition is not allowed except on a MAIN sub;
Please use the block form. If you did not mean to declare a unit-scoped sub,
perhaps you accidentally placed a semicolon after routi…
Kaiepi p6: use NativeCall; sub fcntl(int32, int32 --> int32) is native { * }; fcntl($*OUT.native-descriptor, 0)
camelia ( no output )
12:17 |oLa| left
jmerelo p6: use NativeCall; sub fcntl(int32, int32 --> int32) is native { * }; say fcntl($*OUT.native-descriptor, 0) 12:17
camelia 13
12:18 pierre_ joined
jmerelo Kaiepi: probably a question for StackOverflow. I really have no idea. 12:18
Kaiepi: same as above. If a question goes unanswered here, it's better to go there. There are several perl6 answerers on duty, only asynchronously.
12:19 |oLa| joined 12:20 |oLa| left 12:21 |oLa| joined 12:22 pierre_ left 12:29 hankache joined
Kaiepi alright, thanks 12:32
[Coke] presumably because $*OUT is wrapped in an object when dealing with the repl.
[Coke] checks.
[Coke] has weird presumptions, apparently. 12:34
backing up a step: what does $*OUT.native-descriptor return for you in both cases? 12:35
I get "1" here in both cases (indicating it's just the plain stdout)
12:38 stmuk_ joined
[Coke] I get 15 in a file, 132 in the REPL. 12:38
what OS are you on, OOC? 12:39
12:40 stmuk left
[Coke] started out not thinking about what fcntl was actually doing here. 12:40
12:45 releasable6 left, releasable6 joined 12:46 Ven`` joined, mcmillhj joined 12:48 pierre__ joined
Kaiepi i'm on openbsd [Coke] 12:51
12:51 xtreak left
Kaiepi 1 -> 0 in the file, 1 -> 15 in the repl 12:53
*1 -> -1
lichtkind mäsak thank but nevermind i found a way you just have to capsulate it in a submethod
12:55 xtreak joined, xtreak left
lichtkind masak++ 13:00
13:03 dct joined 13:07 pecastro joined, Zoffix joined
Zoffix Kaiepi: that sounds like a bug. I always get 1 on Linux 13:07
Kaiepi damn
Zoffix Why damn? Bugs are exciting \o/ :) 13:08
Kaiepi true, this delays being able to write Editline though
Zoffix Hm, -1 comes cause handle->body.ops->introspection gives false 13:10
Kaiepi: so you get false for $*OUT.t in REPL too? 13:12
13:12 mcmillhj left
Kaiepi nope, True 13:13
Zoffix :S
ok, then that's not where it comes from :)
(the -1 I mean)
13:15 mcmillhj joined
Zoffix Well, I've no idea what I'm doing, but IIRC you know C, maybe you can figure out. 13:16
Kaiepi: it's basically coming from this function: github.com/MoarVM/MoarVM/blob/mast...file.c#L64
13:16 cdg joined
Zoffix Kaiepi: and the nqp op is mapped to this function: github.com/MoarVM/MoarVM/blob/mast....c#L58-L72 13:17
Kaiepi thanks
El_Che Kaiepi: i.imgflip.com/27fje7.jpg 13:20
Kaiepi lol 13:28
13:30 vcv joined 13:34 Zoffix left
Geth doc: maettu++ created pull request #1887:
Hyper race methods: explain batch and degree
13:35
13:38 Ven`` left 13:40 khw joined 13:42 Sauvin left 13:54 abraxxa left, robertle_ joined 13:59 donpdonp left, donpdonp joined, Kaiepi left
lichtkind masak, no i didnt found it my example would be: class C {has Int $.attr = 2; subset Pint of Int where {$_ > $.at()}; submethod at {$!attr}; method useit(Pint $a){say $a}}; C.new().useit(3) 14:00
14:00 Kaiepi joined
lichtkind p6: class C {has Int $.attr = 2; subset Pint of Int where {$_ > $.at()}; submethod at {$!attr}; method useit(Pint $a){say $a}}; C.new().useit(3) 14:01
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable $.at used where no 'self' is available
at <tmp>:1
------> 032; subset Pint of Int where {$_ > $.at()7⏏5}; submethod at {$!attr}; method useit(P
lichtkind that is what i get too
14:02 robertle_ left, robertle_ joined 14:12 maettu left 14:14 skids joined 14:16 Kaiepi left 14:17 Ven`` joined 14:23 Kaiepi joined 14:35 zakharyas joined 14:37 xi- left 14:38 xi- joined 14:51 Kaiepi left 14:52 Kaiepi joined
Kaiepi what great timing for my keyboard to go berserk 14:52
El_Che there a limit on how much utf8 shortcuts it can takes ;) 14:53
14:57 hankache left
[Coke] m: class C { has Int $.attr = 2; submethod at {$!attr}; method useit(Int $a where * > self.at){say $a}}; C.new().useit(3) 14:59
camelia 3
[Coke] I don't think you can have a dynamic reference like you're trying to get in the subset, so you have to put it into the sig.
14:59 Kaiepi left
[Coke] m: class C { has Int $.attr = 2; submethod at {$!attr}; method useit(Int $a where * > self.at){say $a}}; C.new().useit(3); C.new().useit(1); 15:00
camelia 3
Constraint type check failed in binding to parameter '$a'; expected anonymous constraint to be met but got Int (1)
in method useit at <tmp> line 1
in block <unit> at <tmp> line 1
15:02 pierre__ left 15:08 domidumont left 15:11 Ven`` left 15:14 sauvin joined 15:17 Kaiepi joined
Kaiepi yeah, my arrow keys are broken and my up key decided to spam constantly 15:18
not fun to make stop
15:19 ExtraCrispy joined
El_Che hopefully it's not a laptop keyboard 15:22
(and in that case not a mac)
15:30 zakharyas left 15:34 khisanth_ left 15:47 khisanth_ joined 15:49 domidumont joined
Kaiepi it is, but it's a thinkpad 15:56
15 minute job to replace
timotimo thinkpads are fantastic for this reason
Kaiepi exactly
i had an hp pavilion that was utter hell to repair at one point 15:57
~120 screws to remove to replace the keyboard
timotimo ugh 15:58
Kaiepi .tell zoffix, didn't end up being a bug, just differences in how openbsd handles fcntl that i wasn't aware of 15:59
yoleaux Kaiepi: What kind of a name is "zoffix,"?!
Kaiepi wait what's the command
timotimo just no punctuation after the name 16:02
Kaiepi .tell zoffix didn't end up being a bug, just differences in how openbsd handles fcntl that i wasn't aware of 16:03
yoleaux Kaiepi: I'll pass your message to zoffix.
Kaiepi thanks
16:08 ExtraCrispy left 16:10 pierre_ joined 16:15 pierre_ left 16:16 troys joined 16:20 vcv left 16:24 mcmillhj left 16:27 aindilis left, aindilis joined 16:33 fzeffhj joined
fzeffhj jmerelo , Kaiepi : 16:33
m: use NativeCall; sub fcntl(int32, int32 --> int32) is native { * }; say fcntl($*OUT.native-descriptor, 0) xx 5
camelia (13 -1 -1 -1 -1)
fzeffhj m: use NativeCall; sub fcntl(int32, int32, int32 --> int32) is native { * }; say fcntl($*OUT.native-descriptor, 0, 0) xx 5
camelia (13 14 15 16 17)
16:33 fzeffhj left 16:34 AlexDaniel joined 16:38 mcmillhj joined
jmerelo Still a bit perplexed with the inner workings of Channels and threads. Maybe you can help answering this stackoverflow question stackoverflow.com/questions/495779...-a-channel 16:38
jnthn jmerelo: The *entire point* of react/whenever is that one message is processed at a time 16:40
If you want multiple workers, start them
(start react in a loop for the amount of them you want)
jmerelo jnthn: I thought it meant you *started* processing messages one at a time. 16:41
jnthn: I'll try that, but it didn't work... In fact, I did *start* inside the whenever block. Still only one thread.
Kaiepi m: $*VM.osname
camelia ( no output )
16:41 dct left
Kaiepi m: say $*VM.osname 16:41
camelia linux
jmerelo jnthn: if I do start react whenever { do stuff } for ^10; still the same thing. Single thread. 16:42
16:43 mcmillhj left
jnthn And if it's (start react whenever { do stuff }) for ^10 ? 16:43
Kaiepi going off the man pages the linux version of fcntl doesn't care about making the dest fs use the source fd's flags
16:44 dct joined, |oLa| left
jmerelo jnthn: checking that 16:44
jnthn: that did the trick. Thanks. 16:45
jnthn: please answer anyway at stackoverflow so that we can all give you a bit of karma :-)
jnthn Will do, still hunting a tricky bug at the moment :) 16:46
16:46 mcmillhj joined
jmerelo jnthn: and here I have my concurrent evolutionary algorithm running thanks to you. You're awesome. 16:47
jnthn Yay. :) Welcome :)
lichtkind jnthn, is there a way to created subtype that uses data of class attribute (got allways no self accessable) ? 16:51
jnthn No 16:52
Kaiepi is there a way to force a library's symbols to get loaded before another's, when the latter depends on them? 16:58
what i mean is moar complains that symbols don't exist for the latter if i try to load it 16:59
16:59 Geth left 17:00 Geth joined, ChanServ sets mode: +v Geth
jmerelo Kaiepi: example? 17:00
lichtkind jnthn++ thanks (even it does make me decisevly not happy)
Kaiepi hastebin.com/acemijured.coffeescript 17:02
editline wants some symbols from curses since it expects programs using it to be compiled with both depending on how editline's built 17:03
jmerelo Kaiepi: But it seems like the problem is that the library is not loaded, not the order of loading... Isn't that what it says in line 11? 17:04
Kaiepi yeah
it still needs to get loaded before editline though
jnthn Kaiepi: Perhaps just try to call a symbol from that library for force it to be loaded 17:06
17:07 th324 joined 17:08 rindolf left 17:09 maettu joined
AlexDaniel maettu: o/ 17:09
17:13 vcv joined 17:17 st_elmo joined, wamba left 17:21 th324 left, pierre_ joined 17:24 g- left, [particle]1 left 17:25 [particle] joined, dct left, pierre_ left
Geth doc/master: 5 commits pushed by (Matthias Bloch)++, (Jonathan Worthington)++, (Aleks-Daniel Jakimenko-Aleksejev)++ 17:33
AlexDaniel squashable6: next 17:35
squashable6 AlexDaniel, ⚠🍕 Next SQUASHathon in 6 days and ≈16 hours (2018-04-07 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
17:38 epony joined
jmerelo AlexDaniel: is it going to be Rakudo-exclusive? Can we join in to work on the documentation? 17:41
17:43 coverable6 left, squashable6 left, reportable6 left, quotable6 left, greppable6 left, releasable6 left, notable6 left, undersightable6 left, nativecallable6 left, bloatable6 left, benchable6 left, bisectable6 left, statisfiable6 left, unicodable6 left, committable6 left, shareable6 left, evalable6 left
AlexDaniel jmerelo: well, every second month is a doc squashathon: github.com/rakudo/rakudo/wiki/Mont...Squash-Day 17:44
you're free to work on docs ofc, but the point this time is to close testneeded tickets :) 17:45
[Coke] (commits always welcome!)
AlexDaniel buggable: tag testneeded
buggable AlexDaniel, There are 48 tickets tagged with TESTNEEDED; See fail.rakudo.party/t/TESTNEEDED for details
AlexDaniel + also: github.com/rakudo/rakudo/issues?ut...testneeded
Kaiepi jnthn that did the trick
Geth doc: 2ab1c59411 | (Will "Coke" Coleda)++ | doc/Type/Iterable.pod6
remove trailing whitespace
17:47
doc: 0ab46fe702 | (Will "Coke" Coleda)++ | doc/Type/Iterable.pod6
Prefer Ameringlish.
synopsebot Link: doc.perl6.org/type/Iterable
jmerelo AlexDaniel: OK. Might want to give it a try, anyway. 17:48
17:49 nativecallable6 joined, notable6 joined, ChanServ sets mode: +v notable6, greppable6 joined, releasable6 joined, bloatable6 joined, committable6 joined, evalable6 joined, coverable6 joined, quotable6 joined, ChanServ sets mode: +v committable6, ChanServ sets mode: +v evalable6, ChanServ sets mode: +v coverable6, ChanServ sets mode: +v quotable6, reportable6 joined, unicodable6 joined, bisectable6 joined, benchable6 joined, ChanServ sets mode: +v unicodable6, ChanServ sets mode: +v bisectable6, ChanServ sets mode: +v benchable6, squashable6 joined, ChanServ sets mode: +v squashable6, shareable6 joined, ChanServ sets mode: +v shareable6 17:50 statisfiable6 joined 17:54 dct joined 17:56 espadrine joined 18:03 cdg left, pharv joined 18:04 pharv left 18:05 pharv joined 18:07 pharv_ joined 18:09 dct left 18:10 pharv left 18:20 domidumont left, rindolf joined 18:23 amalia___ left 18:24 zakharyas joined
El_Che wishes that p6 would pick the best syntax for task instead of going out of the way to backwards compatible with p5 (see: github.com/perl6/doc/issues/1380), or compatible with itself (see the key value combinations) 18:33
mostly is not about TIMTOWTWDY, but about having 5 spellings for the same word 18:34
18:34 Bowlslaw joined
El_Che :127foo is like the phone message spelling in my eyes 18:35
Bowlslaw does perl have a 'flag' reading function, like opt()? so if i call my script with a cmd line argument and a flag? 18:36
yoleaux 29 Mar 2018 23:03Z <Zoffix> Bowlslaw: well, first `$dbh.prepare("select price from $table")` is an unsafe statement. You need to quote $table properly. I don't use DBIish, but there should be some method to quote stuff (placeholders might work too). As for the sum, `my $total = $sth.allrows».head.sum`
lizmat :2nd :3rd :4th # read better
Bowlslaw ???
evalable6 Stub code executed
in block <unit> at /tmp/o68Dey4P6L line 1
timotimo :D
Bowlslaw ahh what's happening
El_Che lizmat: if you're 14and a lousy typist :)
timotimo say "what if i forgot to put a m: in front?" 18:37
hum?
lizmat !!!
???
evalable6 Stub code executed
in block <unit> at /tmp/LlkxHgj1hK line 1
timotimo Bowlslaw: evalable6 judges messages that look like perl6 code to be "accidentally forgot to put an m: in front"
lizmat weird
timotimo so it just helpfully runs it for you instead
say 99 + 1
evalable6 100
El_Che lizmat: :2nd is cute but it does not look useful. You really want a pair met the key nd??? 18:38
lizmat that part is where the developer gets tortured :-) 18:39
El_Che paying any price in complexity for that is weird
lizmat: it tortures the readers that has to know all the variations
timotimo what i really like is for things like datetime.later; :10seconds, :5days 18:40
that reads really good to me
Bowlslaw lol
timotimo it's a syntactical feature that you can use when it makes sense, but don't have to use anywhere it wouldn't 18:41
El_Che Pair.new('key', 'value'); 'key' => 'value'; :key<value>; :foo(127); :127foo; :key;:!key; 18:42
maybe I am getting old :)
timotimo: it's not the shortcut itself, but the added complexity in an already complex language 18:43
it adds up
timotimo the straw that broke the butterfly's back?
El_Che hehe 18:44
timotimo: perl 5 is simple in comparison :)
Bowlslaw ??? 18:46
evalable6 Stub code executed
in block <unit> at /tmp/Uxh61dspAq line 1
lizmat m: dd Pair.new(:key<key>, :value<value>)
camelia :key("value")
Bowlslaw why is '???' perl code?
O_o
lizmat m: dd ??? 18:47
camelia Stub code executed
in block <unit> at <tmp> line 1
0
El_Che dd ...
lizmat hmmm...
El_Che dd {...}
evalable6 -> ;; $_? is raw { #`(Block|94792552303488) ... }
El_Che dd {???}
lizmat Bowlslaw: docs.perl6.org/routine/%3F%3F%3F
evalable6 -> ;; $_? is raw { #`(Block|94830811845696) ... }
timotimo there's ???, !!! and ... that you can put in code that doesn't yet do something. one of them notes, one of them warns, one of them throws ... i think?
m: ??? "oh my" 18:48
camelia oh my
in block <unit> at <tmp> line 1
Bowlslaw oh, haha, cool 18:51
18:52 darutoko left
Bowlslaw i like the #| comment 18:52
18:55 st_elmo left 19:06 vcv left 19:11 dct joined
Guest14802 I'm confused by this line github.com/maros/oarm-p6/blob/mast...rm.pm6#L21 19:21
oh heck
19:22 Guest14802 is now known as Altreus, pierre_ joined
Altreus uh what's my nickserv password 19:22
19:22 Altreus is now known as Guest66879
Ulti ******* 19:22
Guest66879 um 19:23
weechat has done this automatically since time began
and I can't work out how :D
lizmat Altreus: it show that the "is oarm_table" trait on a class mixes in the Oarm::TableHOW role into the HOW of that class 19:24
Guest66879 I'm confused by the use of ^mixin on something that's already a HOW
is it a metametaobject?
19:25 tomaw_ is now known as tomaw
timotimo yeah, that'd be one extra .HOW 19:25
lizmat yup, it calls the method "mixin" on the HOW of the classHOW
.oO( Perl 6 is turtles all the way down )
timotimo but yeah, you want to change the HOW, so you add something to it via its own HOW
19:26 Guest66879 is now known as Altreus, Altreus left, Altreus joined
Altreus There we go 19:26
19:26 vike left
timotimo was it hunter2? 19:26
Bowlslaw lol
19:26 pierre_ left
Altreus It might have been once but it's not now :P 19:26
OK so it is intentionally changing the howhow 19:27
I just need to understand better
lizmat hmmm better phrased as: it's changing the HOW by calling a method from the HOW.HOW
Altreus back to the docs :)
I need to better understand the metaobject to understand what it means at 2 cuils 19:28
so I'mma read that
lizmat Altreus++
[Coke] buh. github.com/perl6/doc/blob/coke/bui...#L164-L168 is dying with "Cannot find method 'Nil' on object of type List" on the require call there. I swear this worked the last time I poked at this (probably last rakudo release) 19:31
19:41 zakharyas left
Altreus OK I understand to some extent the concept of metaclasses and I think I know what might happen if you mess with the metametaclass, but I don't really understand the difference between the methods in Oauth::Table and those in Oauth::TableHOW (except that the latter is mixed into the HOWHOW when I declare a table) 19:44
I mean this could be one of those decisions that's TIMTOWTDI
I guess since it's incomplete it's also unclear
I'm just wondering why put it all in TableHOW instead of just doing it right there in the trait_mod 19:45
19:45 comborico joined
Altreus now I ask, I realise that's a common question about normal programming and the answer is reuse 19:45
I may be rubber-ducking slightly, sorry :) 19:46
19:46 dct left
lizmat
.oO( some rubber ducks might learn from this as well :-)
19:46
19:53 kurahaupo joined
Altreus elsewhere we can see my @oarm_columns = self.HOW.oarm_columns().list; 19:53
I suppose the author considered the structure of the table to be meta
I think I can dig it 19:55
19:56 Kaypie joined, Kaiepi left 20:00 Kaypie left, Kaiepi joined 20:01 dct joined 20:02 Kaiepi left 20:03 Kaiepi joined 20:12 cdg joined
Geth doc/master: 4 commits pushed by (Ronald Schmidt)++ 20:14
20:17 cdg left
Altreus I think I have reached the level of my understanding because I don't know where Oauth::X::Record comes from or if it's just not done yet 20:18
20:18 pharv_ left 20:19 mcmillhj left
Altreus oh I found it 20:19
wtf ack
xD I acked for Oauth 20:20
20:20 pharv joined 20:21 sauvin left 20:22 Kaiepi left 20:23 vcv joined, Kaiepi joined 20:25 Kaiepi left 20:26 Kaiepi joined 20:27 vcv left
Altreus this has also taught me how to autogenerate a resultset class for a result type 20:27
20:30 jmerelo left 20:32 mcmillhj joined 20:35 sena_kun left 20:36 sena_kun joined, sena_kun left 20:39 mcmillhj left 20:40 cdg_ joined 20:47 pharv left, pharv joined 20:53 Kaiepi left, Kaiepi joined 21:05 skids left 21:15 cdg_ left, pierre joined 21:17 pharv left 21:18 pharv joined 21:20 pierre left
Geth whateverable: 9b747bc43e | (Aleks-Daniel Jakimenko-Aleksejev)++ | 2 files
Uncomment now passing tests

These tests were SEGV-ing because of a rakudo bug. It is now fixed. See github.com/rakudo/rakudo/issues/16...-377584146
22:02
22:07 cdg joined 22:10 pharv left 22:24 kurahaupo_ joined 22:27 wamba joined, kurahaupo left
Geth whateverable: 1d76409d4e | (Aleks-Daniel Jakimenko-Aleksejev)++ | t/benchable.t
Bump the timeout a little

This is actually a bug in benchable (#299), as it uncompresses the build for every iteration (instead of uncompressing just once). Old revisions (e.g. 2015.12^) are now in long-term storage mode, so it takes more time. Bumping the timeout just a little bit (10s is default) makes the test pass.
22:30
22:39 kurahaupo_ left, kurahaupo joined 22:41 giraffe left 22:47 cdg left 22:48 cdg joined, rindolf left 22:49 kurahaupo left 22:50 kurahaupo joined, pharv joined 22:54 Bowlslaw left, cdg left 23:03 kurahaupo left 23:04 kurahaupo joined 23:05 lichtkind left 23:07 skids joined 23:13 comborico left 23:15 pierre joined
Kaiepi took me a little too long to notice i could just abstract this so people don't have to deal with flags manually hastebin.com/erotilotej.pl 23:16
23:17 lichtkind joined, kurahaupo left 23:18 kurahaupo joined
Kaiepi i'll probably just give the flags their own methods instead of this mess 23:19
23:20 pierre left, [particle]1 joined 23:21 [particle] left 23:30 kurahaupo left, kurahaupo joined 23:41 kurahaupo left 23:42 kurahaupo joined 23:44 lichtkind left 23:45 [particle] joined, giraffe joined, [particle]1 left 23:51 dct left 23:53 markong left 23:56 kurahaupo left