»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
00:00 sacomo left
timotimo wow, turns out an array doesn't get entries if you don't put them into it 00:07
00:09 sacomo joined 00:10 p6bannerbot sets mode: +v sacomo, KellerFuchs0 joined 00:11 KellerFuchs0 left
Garland_g[m] I think function pointers are the reverse of what I need here. I need to take a function from perl6-land and store it in a CStruct. 00:14
timotimo right, callbacks 00:16
those also exist
i wonder if the libssh bindings have any of those
as examples
Garland_g[m] My naive implementation looks something like: class Thing is repr('CStruct') { has Pointer $.method; submethod BUILD(method => &method) { $!method = &method } } 00:24
timotimo i think you want an actual callable in there, but i'm not sure 00:25
or perhaps you have to nativecast?
Garland_g[m] Nativecast on &method complains about receiving a P6Opaque (Block) 00:27
timotimo ah, mhm 00:28
Garland_g[m] Trying to assign to a Pointer attribute gives me "cannot assign to an immutable value." 00:31
timotimo that's potentially just missing "is rw"
00:32 nolsen7 joined 00:33 p6bannerbot sets mode: +v nolsen7
Garland_g[m] Whoops. I forgot to add "is rw" to my example, but I have it in my code. 00:36
timotimo OK, i see now that libssh hasn't got CStruct in it 00:37
00:38 nolsen7 left 00:44 hoelzro joined 00:45 p6bannerbot sets mode: +v hoelzro 00:49 hoelzro left 00:51 justJanne22 joined, p6bannerbot sets mode: +v justJanne22 00:52 justJanne22 left 00:57 DarthGandalf left
Garland_g[m] Thanks for all the help. 01:00
timotimo sorry i couldn't give the solution :( 01:01
01:04 DarthGandalf joined, p6bannerbot sets mode: +v DarthGandalf 01:08 ToddAndMargo joined, p6bannerbot sets mode: +v ToddAndMargo
ToddAndMargo Hi All, How do I get "contains" to tell me if a fragment exists starting at the beginning of the string? 01:08
p6 'my $x="-v abc"; if $x.contains( "^-v" ) {say "yes"}else{say "no"};'
timotimo m: my $x = "-v abc"; say $x.starts-with("-v") 01:10
camelia True
ToddAndMargo p6 'my $x="-v abc"; if $x.starts-with( "-v" ) {say "yes"}else{say "no"};' yes 01:12
Thank you!
timotimo no problem :)
01:21 Milos10 joined 01:22 p6bannerbot sets mode: +v Milos10, Milos10 left
ToddAndMargo is there a way to ask .contains to do a logical AND for two fragment in the same call? 02:03
AlexDaniel m: say ‘hello’.contains(‘h’ & ‘o’) 02:05
camelia all(True, True)
AlexDaniel m: say so ‘hello’.contains(‘h’ & ‘o’)
camelia True
AlexDaniel ToddAndMargo: ↑ yes, just use junctions
ToddAndMargo Thank you! what do you mean by "junctions"? 02:06
AlexDaniel ToddAndMargo: 'h' & 'o' creates an AND junction 02:12
ToddAndMargo: see some docs here: docs.perl6.org/type/Junction
02:18 meine joined, p6bannerbot sets mode: +v meine
ToddAndMargo Thank you! 02:19
02:19 meine left 02:51 mancha20 joined, p6bannerbot sets mode: +v mancha20 02:52 mancha20 left 02:53 hoelzro joined, p6bannerbot sets mode: +v hoelzro 03:00 epony left 03:08 matsu left 03:10 Kaiepi left 03:13 cjkinni joined 03:14 p6bannerbot sets mode: +v cjkinni 03:25 spycrab0 left 03:31 Ven` joined 03:32 p6bannerbot sets mode: +v Ven` 03:35 Ven` left 03:56 abrotman11 joined 03:57 p6bannerbot sets mode: +v abrotman11 03:59 abrotman11 left 04:21 inbioz joined 04:22 p6bannerbot sets mode: +v inbioz 04:43 jeromelanteri left 04:59 BackUP16 joined 05:00 p6bannerbot sets mode: +v BackUP16, BackUP16 left 05:17 codebam0 joined 05:18 p6bannerbot sets mode: +v codebam0 05:19 codebam0 left 05:34 molaf joined 05:35 p6bannerbot sets mode: +v molaf 05:41 kaare_ joined 05:42 p6bannerbot sets mode: +v kaare_ 06:23 wamba joined 06:24 p6bannerbot sets mode: +v wamba 06:28 connection joined, p6bannerbot sets mode: +v connection, connection left 06:31 tardisx joined 06:32 p6bannerbot sets mode: +v tardisx 06:41 rindolf joined 06:42 p6bannerbot sets mode: +v rindolf 06:50 buriedalive6 joined 06:51 p6bannerbot sets mode: +v buriedalive6 06:53 buriedalive6 left 07:00 ketralnis joined 07:01 p6bannerbot sets mode: +v ketralnis 07:02 ketralnis left 07:24 epony joined, p6bannerbot sets mode: +v epony 07:35 DarthGandalf left 07:42 DarthGandalf joined, p6bannerbot sets mode: +v DarthGandalf 07:52 sauvin joined, p6bannerbot sets mode: +v sauvin 08:19 wamba left 08:21 Kaiepi joined 08:22 p6bannerbot sets mode: +v Kaiepi 08:25 Rune_K joined 08:26 p6bannerbot sets mode: +v Rune_K 08:27 Rune_K left 08:36 inbioz left 08:39 lizmat joined 08:40 p6bannerbot sets mode: +v lizmat 08:45 ToddAndMargo left, Fuchs2 joined, p6bannerbot sets mode: +v Fuchs2 08:47 Fuchs2 left 08:49 MasterDuke left 08:57 wamba joined, p6bannerbot sets mode: +v wamba 09:00 chek7 joined, p6bannerbot sets mode: +v chek7 09:03 t0ne22 joined 09:04 p6bannerbot sets mode: +v t0ne22 09:09 t0ne22 left, chek7 left 09:24 MetaNova3 joined 09:25 p6bannerbot sets mode: +v MetaNova3 09:29 MetaNova3 left 09:43 inbioz joined 09:44 p6bannerbot sets mode: +v inbioz 09:49 kardam joined, Lasse_ joined, p6bannerbot sets mode: +v Lasse_ 09:50 p6bannerbot sets mode: +v kardam 09:56 molaf left 10:14 kerframil joined, p6bannerbot sets mode: +v kerframil, benjikun left 10:17 ilbelkyr2 joined, ilbelkyr2 left 10:19 benjikun joined 10:20 p6bannerbot sets mode: +v benjikun 10:22 molaf joined 10:23 p6bannerbot sets mode: +v molaf 10:28 j-fish joined 10:29 p6bannerbot sets mode: +v j-fish 10:33 j-fish left 10:46 Kaypie joined 10:47 p6bannerbot sets mode: +v Kaypie 10:48 Kaiepi left
Geth doc: 32d0bbc3f7 | ijneb++ | doc/Language/operators.pod6
consistent whitespace
10:57
synopsebot Link: doc.perl6.org/language/operators
11:06 caa51h left 11:07 Actualeyes joined 11:08 p6bannerbot sets mode: +v Actualeyes 11:10 BlueShark2 joined, p6bannerbot sets mode: +v BlueShark2 11:11 Kaypie left, BlueShark2 left 11:14 Kaiepi joined 11:15 p6bannerbot sets mode: +v Kaiepi 11:16 caa51h joined, p6bannerbot sets mode: +v caa51h 11:33 espadrine joined, jeromelanteri joined, p6bannerbot sets mode: +v espadrine 11:34 p6bannerbot sets mode: +v jeromelanteri 11:38 jeromelanteri left 11:40 inbioz left 11:42 badseed joined, p6bannerbot sets mode: +v badseed 11:43 badseed left 11:45 inbioz joined 11:46 p6bannerbot sets mode: +v inbioz 11:48 jeromelanteri joined, p6bannerbot sets mode: +v jeromelanteri 11:49 inbioz left 11:51 apollojustice15 joined 11:52 p6bannerbot sets mode: +v apollojustice15 11:55 apollojustice15 left 12:00 wamba left 12:02 MasterDuke joined, p6bannerbot sets mode: +v MasterDuke 12:03 MasterDuke left, MasterDuke joined, herbert.freenode.net sets mode: +v MasterDuke, p6bannerbot sets mode: +v MasterDuke 12:04 drakythe joined 12:05 drakythe left 12:20 MasterDuke left 12:27 MasterDuke joined, p6bannerbot sets mode: +v MasterDuke 12:29 MasterDuke left, MasterDuke joined, herbert.freenode.net sets mode: +v MasterDuke, p6bannerbot sets mode: +v MasterDuke, wamba joined 12:30 p6bannerbot sets mode: +v wamba 12:41 wamba left 12:45 gildarts20 joined, gildarts20 left 12:50 spycrab0 joined, p6bannerbot sets mode: +v spycrab0 13:08 araraloren joined, p6bannerbot sets mode: +v araraloren 13:12 molaf left 13:40 Rob__ joined 13:41 p6bannerbot sets mode: +v Rob__ 13:44 myth0d5 joined, p6bannerbot sets mode: +v myth0d5 13:45 dmaestro joined, Dave15 joined, p6bannerbot sets mode: +v dmaestro, p6bannerbot sets mode: +v Dave15 13:46 diogenese0 joined 13:47 p6bannerbot sets mode: +v diogenese0, diogenese0 left 13:51 myth0d5 left, Dave15 left 13:52 wamba joined 13:53 p6bannerbot sets mode: +v wamba 13:57 inbioz joined, p6bannerbot sets mode: +v inbioz 14:17 molaf joined 14:18 p6bannerbot sets mode: +v molaf
Geth doc: 601d8c2a66 | (Douglas L. Schrag)++ | doc/Language/py-nutshell.pod6
Use of sigils consistent between code and description

Examples in py-nutshell use both scalar sigil and sigil-less variables in examples. Fix a couple of cases where the comment or description does not match the code.
14:30
synopsebot Link: doc.perl6.org/language/py-nutshell
14:35 kaare_ left 14:36 programmerq25 joined 14:37 p6bannerbot sets mode: +v programmerq25 14:42 programmerq25 left 14:57 sotona joined 14:58 p6bannerbot sets mode: +v sotona 15:06 bungle24 joined 15:07 p6bannerbot sets mode: +v bungle24 15:09 bungle24 left 15:23 l4z4i joined, p6bannerbot sets mode: +v l4z4i 15:24 l4z4i left 15:30 sotona left 15:33 sotona joined 15:34 p6bannerbot sets mode: +v sotona 15:37 sotona left 15:43 reportable6 left, reportable6 joined 15:44 p6bannerbot sets mode: +v reportable6 15:45 wamba left, jeromelanteri left 15:46 ZofBot left, ZofBot joined, ChanServ sets mode: +v ZofBot 15:47 p6bannerbot sets mode: +v ZofBot, inbioz left 15:52 inbioz joined 15:53 p6bannerbot sets mode: +v inbioz, kaare_ joined, inbioz left, p6bannerbot sets mode: +v kaare_ 15:57 sotona joined 15:58 lizmat left, p6bannerbot sets mode: +v sotona 16:01 sotona left 16:02 Tideflat_ joined 16:03 Tideflat_ is now known as fake_space_whale, p6bannerbot sets mode: +v fake_space_whale 16:10 wamba joined 16:11 p6bannerbot sets mode: +v wamba 16:12 zakharyas joined 16:13 p6bannerbot sets mode: +v zakharyas
stmuk www.programming-idioms.org/ <=- probably should include p6 16:16
timotimo the input field lets you write "Perl6" or "Perl 6" without turning red immediately 16:28
and the preview renders it, too
so maybe that's all it takes
if someone submits like 10 or 20 over the course of a day, surely the webmasters will accept the contributions
whereas if there's only one contribution, perhaps they'll be reluctant to add it immediately 16:29
feel absolutely free to disagree, of course
16:32 leah2 left 16:47 leah2 joined 16:48 p6bannerbot sets mode: +v leah2 16:56 pochi left 17:05 zakharyas left 17:06 zakharyas joined 17:07 p6bannerbot sets mode: +v zakharyas 17:10 Kaiepi left 17:20 Waggie12 joined 17:21 p6bannerbot sets mode: +v Waggie12 17:26 Khisanth left 17:28 Waggie12 left 17:39 Khisanth joined 17:40 p6bannerbot sets mode: +v Khisanth 17:42 pmurias joined 17:43 p6bannerbot sets mode: +v pmurias 17:45 pmurias left 17:46 zakharyas left, pmurias joined 17:47 p6bannerbot sets mode: +v pmurias 17:58 ljharb0 joined 17:59 p6bannerbot sets mode: +v ljharb0 18:00 ljharb0 left 18:06 silug joined 18:07 p6bannerbot sets mode: +v silug
rindolf timotimo: hi 18:07
i've been refactoring some ancient perl 5 code and often when i had to write something a little complex i found myself thinking "fixed in p6" 18:09
moritz \o 18:18
back after them traveling (though not Glasgow) 18:19
18:23 pmurias left 18:25 molaf left 18:34 zakharyas joined
timotimo :) 18:34
18:35 p6bannerbot sets mode: +v zakharyas
moritz (instead Black Forest and Strasbourg) 18:35
18:41 nwc10 joined, DavdiChipman joined, p6bannerbot sets mode: +v DavdiChipman 18:42 p6bannerbot sets mode: +v nwc10
DavdiChipman Hi there. I'm trying to build perl 6 on Cygwin, and it's faiing ot compile. when trying to build NQP. 18:42
I have the stderr output in a file 18:43
timotimo can you put the text up on a nopaste site or something? 18:47
DavdiChipman I wil once I've retried compiling things. 18:48
I saw a path in the error output that made litle sense given the way the source archive was arranged.
18:51 wamba left 18:53 araujo left
DavdiChipman Sorry for taking so long. Here you go: pastebin.com/ubeVGuQu 18:58
jnthn Ah, it isn't even getting to NQP, it's MoarVM that's got a bunch of compiler errors. 18:59
Which isn't so surprising; MoarVM depends on libuv, and until recently that didn't support cygwin. I believe it does now, but probably there's other work needed for that to build on cygwin. 19:00
DavdiChipman Huh, OK... Thanks, jnthn 19:01
jnthn I know little about cygwin, but glancing the errors it seems it's trying to compile uses of the Win32 API
19:01 itaipu joined
jnthn And I guess (though not sure) it's meant to use more POSIX-y things 19:02
19:02 p6bannerbot sets mode: +v itaipu 19:04 xinming_ joined
DavdiChipman I saw that (tryign to use WIn32 API) 19:04
19:05 p6bannerbot sets mode: +v xinming_
DavdiChipman Well, I did get the binary for windows, so.... 19:05
timotimo perl6.org/~timo/ - there's also this ... 19:06
oh wait 19:07
that's 32bit, which not everybody wants
(especially since it's jitless)
.o( rakudo is scared jitless )
DavdiChipman LOL!!!!
19:07 xinming left 19:08 sauvin left
jnthn I think most folks are scared jitless of porting it to x86 :P 19:09
The lack of registers available would probably make that a less than fun exercise.
DavdiChipman *nods* 19:12
19:13 domidumont joined, p6bannerbot sets mode: +v domidumont
DavdiChipman Thank you for your help. 19:14
19:14 DavdiChipman left 19:16 Hello7127 joined 19:17 p6bannerbot sets mode: +v Hello7127, Guest14872 left 19:18 Hello7127 left, espadrine left 19:19 domidumont left 19:20 domidumont joined 19:21 p6bannerbot sets mode: +v domidumont 19:24 domidumont left 19:37 gfldex left 19:38 uzl joined 19:39 p6bannerbot sets mode: +v uzl
uzl The code block (C<Rat>, C<Num>, etc.) inside the table in docs.perl6.org/language/math#Arithmetic. are not being rendered as such. 19:42
Would it be fine to remove them and just display the regular text?
19:46 gfldex joined 19:47 p6bannerbot sets mode: +v gfldex, Kaiepi joined 19:48 p6bannerbot sets mode: +v Kaiepi 19:50 wamba joined, wamba left, holodoc14 joined 19:51 p6bannerbot sets mode: +v holodoc14, holodoc14 left 19:53 Rob___ joined, p6bannerbot sets mode: +v Rob___ 19:54 itaipu left 19:55 Rob__ left 20:03 Lasse_ left 20:05 zakharyas left 20:07 Matrixiumn joined 20:08 Matrixiumn left
timotimo right, formatting codes in tables have been NYI for a long long time 20:09
uzl oh, great to know that. 20:19
timotimo i once tried to implement it, but it wasn't the right way and i didn't try again 20:20
20:20 nortoh joined 20:21 p6bannerbot sets mode: +v nortoh 20:23 jargan joined 20:24 [particle] left, jast left, [particle] joined, p6bannerbot sets mode: +v jargan, marcusramberg left, zakharyas joined 20:25 p6bannerbot sets mode: +v [particle], marcusramberg joined, f3ew left, f3ew joined, p6bannerbot sets mode: +v zakharyas, nortoh left, p6bannerbot sets mode: +v marcusramberg 20:26 p6bannerbot sets mode: +v f3ew
Geth ecosystem: 38228b573d | thundergnat++ (committed using GitHub Web editor) | META.list
Add module Timer to the ecosystem
20:29
doc: uzluisf++ created pull request #2271:
Add minor corrections
20:30
20:31 zakharyas left 20:34 Guest98697 joined, p6bannerbot sets mode: +v Guest98697 20:35 aindilis left
uzl timotimo: I just removed them so they don't show up in the rendered html. 20:38
20:41 aindilis joined, p6bannerbot sets mode: +v aindilis 20:46 zakharyas joined 20:47 uzl left, p6bannerbot sets mode: +v zakharyas 20:59 Ven` joined 21:00 p6bannerbot sets mode: +v Ven` 21:04 Logan0 joined, zakharyas left, p6bannerbot sets mode: +v Logan0 21:05 zakharyas joined, tallguy9 joined, p6bannerbot sets mode: +v zakharyas, p6bannerbot sets mode: +v tallguy9 21:07 tallguy9 left 21:10 lizmat joined 21:11 Logan0 left, p6bannerbot sets mode: +v lizmat 21:14 Ven` left 21:15 kerframil left
Geth ecosystem: bc11fcb678 | thundergnat++ (committed using GitHub Web editor) | META.list
Fixed broken link to no-longer existing META.info
21:17
doc: c1e89ae1f6 | (Luis F. Uceta)++ | 2 files
Add minor corrections

Add minor corrections such as removing dangling period in headers, fixing typo, removing C<> from table components given that are not rendered (NYI), etc.
21:24
doc: f085b09883 | Altai-man++ (committed using GitHub Web editor) | 2 files
Merge pull request #2271 from uzluisf/master

Add minor corrections
timotimo thank you for contributing \o/ 21:25
21:45 rindolf left 21:47 rolig joined 21:48 p6bannerbot sets mode: +v rolig 21:49 rolig left 21:55 ChoHag joined 21:56 p6bannerbot sets mode: +v ChoHag 21:58 zakharyas left 22:12 rodarmor_ left 22:16 grumble left 22:20 grumble joined, p6bannerbot sets mode: +v grumble 22:23 timfi joined, marcoslater joined, p6bannerbot sets mode: +v timfi, p6bannerbot sets mode: +v marcoslater 22:25 marcoslater left, timfi left 22:51 fake_space_whale left 22:52 dylanwh left 22:53 dylanwh joined 22:54 p6bannerbot sets mode: +v dylanwh 23:00 justyns joined, p6bannerbot sets mode: +v justyns 23:01 justyns left, Kazuto joined 23:02 p6bannerbot sets mode: +v Kazuto 23:03 eNigmaFx8 joined, Kazuto left, p6bannerbot sets mode: +v eNigmaFx8 23:05 Raccoon joined 23:06 p6bannerbot sets mode: +v Raccoon 23:11 eNigmaFx8 left 23:14 Raccoon left 23:15 cheapie3 joined 23:16 p6bannerbot sets mode: +v cheapie3 23:17 cheapie3 left 23:18 dct joined, p6bannerbot sets mode: +v dct 23:19 Phanes joined 23:20 p6bannerbot sets mode: +v Phanes 23:28 Phanes left 23:38 [particle]1 joined, p6bannerbot sets mode: +v [particle]1 23:39 [particle] left 23:40 Shanmugamp719 joined 23:41 Shanmugamp719 left 23:44 averell23 joined, averell23 left 23:52 salios joined 23:53 salios left 23:57 bathtub_shark21 joined 23:58 p6bannerbot sets mode: +v bathtub_shark21