»ö« 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:05 kurahaupo_ joined 00:08 kurahaupo_ left, kurahaupo_ joined, kurahaupo left 00:10 kurahaupo_ left, kurahaupo joined 00:26 pierre_ joined 00:32 kurahaupo_ joined 00:33 kurahaupo_ left, kurahaupo_ joined 00:34 kurahaupo left 00:35 kurahaupo joined 00:36 kurahaupo left 00:37 kurahaupo joined, skids joined 00:38 kurahaupo_ left 00:39 kurahaupo_ joined 00:41 kurahaupo left 00:43 captain-adequate left 00:49 vcv joined 00:50 kurahaupo_ left, kurahaupo joined 00:51 kurahaupo_ joined 00:52 kurahaupo_ left, kurahaupo left, kurahaupo joined 00:53 comborico left 00:56 comborico1611 joined 01:22 Kaiepi left 01:23 Kaiepi joined 01:24 cdg joined 01:27 cdg_ left 01:29 cdg left 01:32 comborico1611 left 01:33 w_richard_w joined 01:36 cdg joined 01:40 cdg left 01:45 Kaiepi left, Kaiepi joined 01:46 jeromelanteri joined 02:06 pierre_ left 02:07 kurahaupo_ joined 02:10 kurahaupo left 02:15 pierre_ joined 02:19 Lynx_ left 02:20 pierre_ left 02:21 Lynx_ joined 02:25 pierre_ joined 02:45 ilbot3 left 02:46 espadrine left, cdg joined 02:48 pierre_ left 02:50 cdg left 02:51 pierre_ joined 02:58 ilbot3 joined, ChanServ sets mode: +v ilbot3 03:08 shinobi-cl joined 03:15 ctilmes joined 03:21 vcv left 03:26 ctilmes left 03:38 isBEKaml joined 03:47 kurahaupo_ is now known as kurahaupo
lookatme :) 03:47
04:05 cdg joined 04:15 shinobi-cl left 04:23 cdg left 04:30 athenot_ joined 04:31 athenot left 04:47 eliasr left 04:48 pierre_ left, xtreak joined 04:52 Cabanossi left 04:53 Cabanossi joined 05:01 isBEKaml left 05:04 athenot_ left, troys left 05:07 xtreak left 05:11 mcmillhj joined 05:12 xtreak joined 05:14 Actualeyes joined 05:15 Actualeyes left, mcmillhj left 05:21 Actualeyes joined 05:34 skids left 05:39 khw left 05:44 wamba joined 05:47 curan joined 05:52 dct_ joined 06:01 pierre_ joined 06:18 dct_ left 06:31 domidumont joined 06:33 xtreak left 06:35 kaare__ joined 06:36 domidumont left, kaare_ left 06:40 rindolf joined 06:45 robertle left 06:51 kaare__ is now known as kaare_ 07:06 domidumont joined 07:16 xtreak joined 07:22 darutoko joined 07:27 MilkmanDan left 07:30 MilkmanDan joined 07:31 robertle joined 07:37 xtreak left 07:39 xtreak_ joined 07:40 AlexDaniel joined 07:53 xtreak_ left 07:57 zakharyas joined 08:15 cdg joined, domidumont left 08:16 domidumont joined 08:17 xtreak joined 08:19 cdg left
lookatme How could I get the sum of the anon sub result ? 08:30
m: say sum { $^s.substr(any(0 X..^ $^s.comb)) }("13214")'
camelia 5===SORRY!5=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> 3.substr(any(0 X..^ $^s.comb)) }("13214")7⏏5'
expecting any of:
infix
infix stopper
postfix
statement end
lookatme m: say sum { $^s.substr(any(0 X..^ $^s.comb)) }("13214") 08:31
camelia any(1, 132, 13, 1, 1321)
lookatme m: say { $^s.substr(any(0 X..^ $^s.comb)) }("13214")
camelia any(1, 132, 13, 1, 1321)
lookatme no difference ?
o_O 08:41
08:49 sena_kun joined
moritz m: say sum(any(3, 4)) 08:52
camelia any(3, 4)
moritz sum autothreads over junctions
m: sum(any(3, 4), 10)
camelia ( no output )
moritz m: say sum(any(3, 4), 10)
camelia any(13, 14)
08:56 xtreak left
lookatme I thought it only apply that to .substr :) 09:08
m: say chars { $^s.substr(any(0 X..^ $^s.comb)) }("13214") 09:09
camelia any(1, 3, 2, 1, 4)
moritz there is nothing that implicitly converts a junction to a list 09:10
09:13 pierre_ left 09:14 pierre_ joined 09:20 dakkar joined 09:24 pierre_ left 09:25 xtreak joined, robertle left, pierre_ joined 09:29 pierre_ left 09:35 pierre_ joined 09:38 sjn left 09:39 sjn joined 09:42 aindilis left 09:43 wamba left, aindilis joined 09:51 aindilis` joined 09:54 cdg joined 09:56 domidumont left 09:58 cdg left 09:59 domidumont joined 10:07 scimon joined
Kaiepi anyone with libidn2 and not on *bsd got a minute to test something for me? 10:08
i want to check if an issue i'm having with one of its perl 6 bindings is a problem specific to my os or not
moritz Kaiepi: I'm on Ubuntu Linux and can install libidn2-0 10:09
10:09 eliasr joined
Kaiepi can you install github.com/Kaiepi/p6-Net-LibIDN2 and try running Net::LibIDN2.check_version ? 10:11
it segfaults for me when moar's built with either dyncall or libffi, but i can't see any obvious issue with the code itself
10:12 mcmillhj joined 10:16 zakharyas left
moritz Kaiepi: perlpunks.de/paste/show/5a96818c.bd7.2bd 10:16
10:16 mcmillhj left, zakharyas joined
Kaiepi huh 10:17
moritz fwiw I only had a libidn2.so.0 and created a symlink libidn2.so to it
Kaiepi change the sprintf string to '%02%020000' at this line github.com/Kaiepi/p6-Net-LibIDN2/b...N2.pm6#L11 10:18
moritz # Failed test 'LibIDN2 v2.0.0 or greater must be installed!'
I can install with --force-test if you think it'll do any good 10:19
10:20 zakharyas left 10:21 zakharyas joined
Kaiepi try that 10:21
10:26 wamba joined
Kaiepi oh i screwed up the sprintf string it should be %02x%02x0000 moritz 10:28
that's why the test's failing
moritz I get segfault on .check_version after installing it 10:30
in dc_callvm_call_x64
Kaiepi huh
moritz Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Kaiepi i could've sworn this used to work
libffi gives a more informative stack trace hastebin.com/wixuzuwida.go 10:31
10:32 kaare_ left, kaare_ joined
Kaiepi all i can think of that would be causing that is some problem with encodings 10:40
10:42 w_richard_w left 10:44 wamba left 10:45 cog__ left
Kaiepi p6: my ($a, $b) = (1, 2) 10:46
camelia ( no output )
Kaiepi p6: my ($a, $b) = (1, 2); say $a, $b
camelia 12
Kaiepi p6: constant (A, B) = (1, 2); say A, B 10:47
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing initializer on constant declaration
at <tmp>:1
------> 3constant7⏏5 (A, B) = (1, 2); say A, B
10:53 cog__ joined 10:54 gregf_ joined
Kaiepi how do i apply an array of arguments to a function? 10:58
sena_kun m: sub a($a, $b) { $a.say; $b.say; }; my @a = 1, 2; a(|@a); 10:59
camelia 1
2
sena_kun Kaiepi, did you mean ^? 11:00
Kaiepi yeah like that 11:03
thanks
sena_kun np
11:05 domidumont left 11:06 riatre left 11:13 riatre joined 11:18 xtreak left 11:22 xtreak joined 11:26 pierre_ left, pierre_ joined 11:27 xtreak left, xtreak joined 11:31 pierre_ left 11:32 rindolf left 11:34 jeromelanteri left 11:40 rindolf joined 11:41 Actualeyes left 11:47 jeromelanteri joined
Kaiepi nice, slurpy arguments let me cut the number of lines i needed for this in half hastebin.com/uselayeled.pl 11:53
11:53 zakharyas left 11:55 robertle joined 12:23 aindilis` left, aindilis left, xtreak left 12:24 xtreak joined 12:25 wamba joined 12:33 xtreak left 12:41 wamba left 12:43 domidumont joined 12:47 domidumont left 12:49 garryq1 left, domidumont joined 12:52 domidumont left, domidumont joined 12:56 zakharyas joined, domidumont1 joined 12:59 domidumont left 13:00 xtreak joined 13:07 AlexDaniel left 13:08 jeromelanteri left 13:12 mahafyi joined 13:19 lowbro left 13:24 lowbro joined, lowbro left, lowbro joined 13:31 mahafyi_ joined 13:32 xinming left 13:33 mahafyi left, mahafyi_ is now known as mahafyi, xinming joined 13:38 mahafyi_ joined, mahafyi left, mahafyi_ is now known as mahafyi 13:41 wamba joined
perlawhirl any nqp ninjas about? 13:41
how do i use sprintf? nqp::sprintf('%d',1) tells me that 'd' is not valid in sprintf directive 13:42
lizmat "Directive d not applicable for type VMNull" is the error message ? 13:44
perlawhirl: second arg to nqp::sprintf is a nqp::list 13:45
m: use nqp; say nqp::sprintf("%d",nqp::list(1))
camelia 1
lizmat the error message is LTA, but that's acceptable to nqp, I think 13:46
*for
Kaiepi p6: sub memmem() is native('c') { * }; class Foo { method memmem { memmem } }; Foo.^methods[0].WHAT 13:47
camelia 5===SORRY!5=== Error while compiling <tmp>
Can't use unknown trait 'is native' in a sub declaration.
at <tmp>:1
expecting any of:
rw raw hidden-from-backtrace hidden-from-USAGE
pure default DEPRECATED inlinable nodal…
Kaiepi p6: use NativeCall; sub memmem() is native('c') { * }; class Foo { method memmem { memmem } }; Foo.^methods[0].WHAT
camelia ( no output )
Kaiepi p6: use NativeCall; sub memmem() is native('c') { * }; class Foo { method memmem { memmem } }; say Foo.^methods[0].WHAT
perlawhirl lizmat++
camelia (Method)
Kaiepi p6: use NativeCall; sub memmem() is native('c') { * }; say memmem.WHAT
camelia Cannot locate native library 'libc.so': /usr/lib64/libc.so: invalid ELF header
in method setup at /home/camelia/rakudo-m-inst-2/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 289
in method CALL-ME at /home/camel…
Kaiepi its signature's supposed to be (Sub+{NativeCall::Native[Sub,Str]}) ? 13:48
ok what 13:49
in this core dump i'm looking at i get Sub+{Callable[Str]}+{NativeCall::Native[Sub+{Callable[Str]},Str]}
13:51 vcv joined 13:52 vcv left 13:54 vcv joined
perlawhirl lizmat: one more question if you don't mind. say i'm in a while loop (eg. i = k; i > 0; i--) nqp-style... can i "break" out of the loop early and retain the `i` value 13:57
i kinda worked around it by assigning `i` to another var, and then using that after the while loop ended... but is there a better way
lizmat can you break out of a loop in nqp ? 13:58
perlawhirl yeh?
lizmat ah, yeah
somehow I had in my mind that things like "next" and "last" were HLL constructs 13:59
13:59 cdg joined
perlawhirl ahh, ok.. 13:59
lizmat perlawhirl: really don't know
13:59 athenot joined
perlawhirl i didn't even think to try just `last` 13:59
i was just searching the nqp::ops page and didn't see it
but, yeah... just `last` should work 14:00
lizmat yeah, some things in nqp don't need the "nqp::" prefix :-)
perlawhirl yep... i'm still trying to come to grips with all the parenthesis :D
14:03 cdg left 14:07 dercsar joined
dercsar hello 14:08
lizmat dercsar o/ 14:10
14:10 mcmillhj joined 14:11 athenot_ joined, cdg joined 14:12 athenot left 14:14 AlexDaniel joined 14:15 mcmillhj left 14:18 domidumont1 left 14:20 domidumont joined 14:21 athenot_ left, athenot joined 14:22 TEttinger left, TEttinger joined 14:28 profan left
Geth doc: titsuki++ created pull request #1804:
Show attributes
14:28
doc: 480b0a7772 | (Itsuki Toyota)++ | doc/Language/classtut.pod6
Show attributes
14:29
doc: 7d8729e279 | (Itsuki Toyota)++ (committed using GitHub Web editor) | doc/Language/classtut.pod6
Merge pull request #1804 from titsuki/fix-inheritance

Show attributes
synopsebot Link: doc.perl6.org/language/classtut
14:29 profan joined 14:30 mcmillhj joined, vcv left 14:35 mcmillhj left 14:40 mahafyi left 14:46 mcmillhj joined 14:48 mahafyi joined 14:50 comborico1611 joined 14:51 mcmillhj left 14:55 curan left 14:56 dercsar left, mcmillhj joined 15:00 vcv joined 15:02 xtreak left, skids joined 15:03 athenot left 15:04 xtreak joined 15:05 xtreak left 15:07 silug joined, athenot joined, cog__ left
Kaiepi oh i figured out what that type signature was supposed to be 15:10
p6: use NativeCall; sub memmem(Str, int32, Str, int32 --> int32) is native('c') { * }; say &memmem.WHAT
camelia (Sub+{Callable[int32]}+{NativeCall::Native[Sub+{Callable[int32]},Str]})
15:18 Actualeyes joined 15:23 pharv joined 15:34 kaare_ left 15:35 kaare_ joined 15:38 buggable joined, ChanServ sets mode: +v buggable 15:43 kurahaupo left, kurahaupo joined 15:44 SyrupThinker joined 15:59 Kaiepi left, raschipi joined 16:01 Kaiepi joined 16:02 mahafyi_ joined 16:03 mahafyi left, mahafyi_ is now known as mahafyi 16:04 lowbro left 16:06 buggable left, st_elmo joined
AlexDaniel squashable6: nex 16:09
squashable6 AlexDaniel, I cannot recognize this command. See wiki for some examples: github.com/perl6/whateverable/wiki/Squashable
AlexDaniel squashable6: next
squashable6 AlexDaniel, ⚠🍕 Next SQUASHathon in 1 day and ≈17 hours (2018-03-03 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel whoosh! Time flies 16:10
16:11 cog__ joined, maettu joined 16:13 maettu left, maettu joined 16:15 lizmat_ joined 16:18 comborico1611 left, obfusk_ joined 16:19 wamba left, freeberz_ joined, adelyne_ joined, Brock joined, jnthn_ joined 16:20 Kaffe_ joined, stux|RC-- joined 16:22 hobbified joined, hythm_ joined 16:23 CoderPuppy joined 16:24 samcv_ joined, freeberz left, cpup left, obfusk left, lizmat left, scovit left, shadowpaste left, adelyne left, raydiak__ left, hythm left, Kaffe left, awwaiid left, jnthn left, samcv left, timotimo left, hobbs left, stux|RC left, Celelibi left 16:25 Celelibi joined, robertle left 16:26 unicodable6 left 16:27 greppable6 left, reportable6 left 16:28 quotable6 left, bisectable6 left, benchable6 left, shareable6 left 16:29 shareable6 joined, benchable6 joined, quotable6 joined, bisectable6 joined, aindilis joined 16:30 raydiak__ joined 16:31 timotimo joined, scovit joined 16:35 shadowpaste joined 16:37 maettu left 16:39 maettu joined 16:40 natrys joined 16:41 pharv left 16:42 pharv joined 16:46 thowe left 16:47 riatre left 16:51 pharv left, pharv joined 16:52 cdg left, cdg joined 16:55 SyrupThinker left 16:57 cdg left 16:58 dct_ joined 17:00 m0ltar_ left 17:04 robertle joined 17:05 riatre joined 17:08 m0ltar joined 17:12 mcmillhj left 17:13 wamba joined 17:20 dct_ left 17:22 raschipi left 17:23 raschipi joined 17:24 greppable6 joined, reportable6 joined, unicodable6 joined 17:26 pharv left 17:27 mcmillhj joined, pharv joined 17:30 scimon left 17:31 mcmillhj left 17:32 nekomune left 17:35 samcv_ is now known as samcv 17:38 mcmillhj joined 17:43 mcmillhj left 17:46 kurahaupo left 17:48 dakkar left 17:49 mniip left 17:50 domidumont left, mniip joined 17:52 mcmillhj joined 17:56 mcmillhj left 17:58 pharv left, mcmillhj joined 17:59 pharv joined 18:02 mniip left 18:03 mniip joined 18:04 mcmillhj left 18:05 cdg joined, tobs left 18:06 tobs joined 18:13 mcmillhj joined 18:14 troys joined 18:15 domidumont joined 18:16 athenot left 18:18 m0ltar left, mcmillhj left 18:21 curan joined 18:24 athenot joined 18:25 mcmillhj joined 18:27 ribasushi left, khw joined 18:32 tobs left, tobs joined 18:33 ribasushi joined, athenot_ joined 18:37 athenot left 18:49 athenot_ left, vcv left 18:57 darutoko left, ribasushi left 18:58 pharv left, pharv joined 19:00 pharv left, athenot joined 19:01 ribasushi joined 19:03 comborico1611 joined 19:04 athenot_ joined, xinming left, wamba left 19:05 wamba joined, comborico1611 left, xinming joined, athenot left, Alikzus left, ribasushi left 19:06 pharv joined, zakharyas left 19:10 ribasushi joined 19:15 ribasushi left, comborico1611 joined 19:17 ribasushi joined 19:21 vcv joined 19:28 Ven`` joined 19:35 cdg_ joined 19:38 cdg left, mcmillhj left 19:39 cdg_ left 19:40 mcmillhj joined 19:44 mcmillhj left 19:54 mcmillhj joined 19:58 mcmillhj left 19:59 mcmillhj joined, SyrupThinker joined 20:02 Kaiepi left 20:03 wamba left, wamba joined, Kaiepi joined 20:04 stmuk joined, Kaiepi left 20:05 Kaiepi joined, st_elmo left 20:06 stmuk_ left 20:10 kybr joined 20:11 mcmillhj left 20:12 mcmillhj joined 20:17 mcmillhj left 20:18 domidumont left 20:26 zakharyas joined 20:29 mcmillhj joined 20:34 mcmillhj left 20:42 Ven`` left 20:44 curan left, Kaiepi is now known as kaiepi_test 20:46 mcmillhj joined 20:47 kybr left 20:49 kybr joined
Geth whateverable/master: 8 commits pushed by (Aleks-Daniel Jakimenko-Aleksejev)++ 20:49
20:51 mcmillhj left 20:53 sena_kun left
lichtkind how do you steal a perl 6 module? 20:53
20:56 mcmillhj joined 21:00 AlexDaniel left 21:01 kaiepi_test is now known as Kaiepi
Kaiepi how can i better write the async stuff here? this doesn't feel quite right to me hastebin.com/wimucazodo.rb 21:01
21:03 khw left
moritz lichtkind: you use it without heeding its license? 21:07
21:08 raschipi left 21:09 cdg joined 21:10 cdg left, cdg joined
lichtkind moritz: i was coauthor of a module and want to get my latest fixes into the main line and i was thinking about taking it it over 21:11
or does anybody know her ehow to contact pierre vigier ? thanks 21:14
lizmat_ lichtkind: you don't need to steal anything: just upload one under your name
21:14 lizmat_ is now known as lizmat
moritz lichtkind: how did you manage to co-author a module with somebody you don't know how to contact? 21:15
lichtkind moritz,: becasue for a time he accepted by patches
lizmat, hejho sure but how to set the module adress to my account? 21:16
lizmat i rather talk to him but he doesnt reacted to patch since month
or two
21:16 mcmillhj left 21:17 mcmillhj joined, khw joined 21:18 rindolf left
lizmat lichtkind: what is the module address ? 21:18
what do you mean by that?
lichtkind github.com/pierre-vigier/Perl6-Math-Matrix
lizmat you can also upload your version of the module to CPAN 21:19
and zef will find it
lichtkind i dont want really stal something but i gotta do something since my last patch is just pure maintanance
lizmat modules.perl6.org/dist/App::Mi6:cpan:SKAJI 21:20
lichtkind lizmat so zef prefers CPAN or zef can handle several sources?
ah
thanks
lizmat zef handles multiple sources
21:20 epony left
lizmat not sure which one it will take if it finds two 21:21
but then the person installing will just need ton specify your :auth
lichtkind meaning author
21:21 cdg_ joined
lichtkind aka LICHTKIND 21:22
APic 😸
lichtkind cheers apic cat 21:23
thanks liz and hugs
APic B-)))
*purrrrrrr*
21:25 cdg left 21:30 espadrine joined 21:33 jnthn_ is now known as jnthn 21:35 rindolf joined 21:41 mahafyi left 22:00 Kaiepi left 22:02 zakharyas left, Ven`` joined, Kaiepi joined 22:06 thowe joined, thowe left 22:08 athenot_ left 22:09 Kaiepi left 22:11 athenot joined, mcmillhj left 22:12 natrys left 22:14 Kaiepi joined 22:16 athenot left 22:17 Ven`` left, athenot joined, Ven`` joined, skids left 22:22 rindolf left 22:24 vcv left 22:30 MasterDuke left 22:31 comborico1611 left 22:47 mcmillhj joined 22:51 Ven`` left 22:52 mcmillhj left 23:04 mcmillhj joined 23:05 lichtkind left 23:08 mcmillhj left 23:16 caa51h left 23:17 charsbar left 23:18 timeless left, lichtkind joined, Spot_ left 23:19 mrsolo left 23:20 mrsolo joined, timeless joined, PotatoGim left 23:21 SmokeMachine left 23:22 ggherdov left, charsbar joined, Spot_ joined, rodarmor left 23:23 peteretep left 23:24 ggherdov joined, rodarmor joined, ggherdov left, rodarmor left, SmokeMachine joined, caa51h joined 23:25 rodarmor joined, rodarmor left, peteretep joined, peteretep left, peteretep joined, ggherdov joined 23:26 ggherdov left, PotatoGim joined, peteretep left, jhill_ left, peteretep joined, PotatoGim left, peteretep left, rodarmor joined, peteretep joined 23:27 peteretep left, PotatoGim joined, rodarmor left, peteretep joined, peteretep left, PotatoGim left, rodarmor joined 23:28 ggherdov joined, rodarmor left, peteretep joined, MasterDuke joined, PotatoGim joined, rodarmor joined, jhill_ joined 23:33 espadrine left, MasterDuke left 23:34 MasterDuke joined 23:38 MasterDuke left, martinp2 joined 23:44 pharv left 23:45 martinp2 left, vcv joined 23:46 pharv joined 23:50 mcmillhj joined 23:55 skids joined, mcmillhj left, pharv left 23:56 pharv joined 23:59 kurahaupo joined