»ö« 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 p6bannerbot sets mode: +v Ven`
vrurg_ timotimo: but no slurpy? 00:01
m: my $c = -> $v, *%h { say "$v with ", %h }; $c( pi, a=>1, b=>2);
camelia 3.141592653589793 with {a => 1, b => 2}
vrurg_ is confused... 00:02
Fails when calling a method with Capture.
00:02 JJJ000 left
timotimo slurpy also works 00:03
can you show more closely how you're doing it, and what the error is?
00:04 Ven` left
vrurg_ timotimo: a bit too complex to extract the essence. Gonna try figure it out. Basically, it ends with something like: instance.$method(|(@invoke-params.Capture)); 00:04
instance is a class instance. params could be a mixture of positional and named ones. 00:05
timotimo OK, can you perhaps print the result of @invoke-params.Capture? i suppose it should just be the same as what Array.Capture would do? 00:06
00:07 broquaint joined, p6bannerbot sets mode: +v broquaint
vrurg_ Just working on it. ;) Test takes a bit to complete. 00:08
timotimo OK!
vrurg_ \(:attribute("\$!bar"))
The block is defined like this: has $.bar is mooish(:lazy, :builder(-> $s, *%h {"block builder"}));
00:08 DarthGandalf left
vrurg_ Block signature is reported as ($). So, I get: Unexpected named argument 'attribute' passed 00:09
timotimo oh? that doesn't seem right :) 00:10
vrurg_ absolutely agrees.
Hope it's not right with my code.
timotimo can you somehow output bar's builder block as early as possible to see if it changes for some reason? 00:11
00:11 jeromelanteri joined, p6bannerbot sets mode: +v jeromelanteri 00:12 jlf23 joined
vrurg_ timotimo: working on it. Use of same attribute name all across a test suite makes it somewhat tricky to catch the right one. ;) 00:12
It's definitely lost somewhere as trait_mod gets the right signature. Ok, I'll trace it down to the moment where it's lost first. 00:14
00:16 jlf23 left 00:21 DarthGandalf joined, p6bannerbot sets mode: +v DarthGandalf
vrurg_ My fault, same error from another location. No signature was harmed while filimg this code... 00:24
timotimo ah, OK 00:25
vrurg_ filming
timotimo yeah, it's sometimes hard to figure out what got called when you get an error about signatures
sometimes --ll-exception helps, but not always
00:25 spycrab0 joined, p6bannerbot sets mode: +v spycrab0
vrurg_ timotimo: thanks a lot! I'm still having issues with some syntax, so get easily confused in problematic situations. 00:26
00:27 devmikey left
timotimo if you ever stumble upon an error message that we should try to improve, please speak up :) 00:27
vrurg_ Sure I will. Filled three bug reports in two weeks (though the last one happend to be inteded behavior :) ). 00:31
00:38 aborazmeh joined, aborazmeh left, aborazmeh joined, p6bannerbot sets mode: +v aborazmeh 00:44 hph^ joined 00:45 p6bannerbot sets mode: +v hph^
buggable New CPAN upload: AttrX-Mooish-v0.2.5.tar.gz by VRURG modules.perl6.org/dist/AttrX::Mooish:cpan:VRURG 01:11
01:33 dylanwh joined 01:34 p6bannerbot sets mode: +v dylanwh 01:36 molaf left 01:49 molaf joined, p6bannerbot sets mode: +v molaf 01:57 Guest73014 joined 01:59 Guest73014 left 02:01 lizmat left 02:04 aborazmeh left 02:29 lookatme_q left 02:37 lookatme_q joined 02:38 p6bannerbot sets mode: +v lookatme_q 02:45 spycrab0 left 02:55 Khisanth left 03:01 rindolf joined 03:02 p6bannerbot sets mode: +v rindolf 03:08 Khisanth joined 03:09 p6bannerbot sets mode: +v Khisanth
SmokeMachine I just wrote a new "test" for the `Red ORM` API... its based on the `DBIx::Class`'s Artist/CD/Track example. If some one could criticise, it would help a lot! github.com/FCO/Red/wiki/CD-sample 03:18
03:27 Ven` joined 03:28 p6bannerbot sets mode: +v Ven` 03:32 Ven` left
MasterDuke SmokeMachine: i've never used an ORM, so i don't really know how to evaluate it, but you might want to ask lizmat to mention it in the weekly, especially if you're looking for comments 03:43
AlexDaniel SmokeMachine: you can even weekly: it 03:47
SmokeMachine MasterDuke: that’s a good idea! 03:48
benjikun what's the command to add stuff to the list for weeklies 03:50
is it weekly:
or am I imagining that this is a thing 03:51
SmokeMachine AlexDaniel: wouldn’t that be a little too invasive?
benjikun I don't think it would be 03:52
AlexDaniel weekly:
notable6 AlexDaniel, 1 note: 2018-08-15T17:48:18Z <AlexDaniel>: wakelift.de/2018/08/15/the-first-p...c-release/
benjikun start a thread on /r/perl6 maybe for it
AlexDaniel benjikun: it's a thing
benjikun phew that's what i thought
AlexDaniel SmokeMachine: not at all, especially if you yourself write some text for liz to include :)
SmokeMachine AlexDaniel: my English isn’t good enough for that... 03:53
AlexDaniel SmokeMachine: just draft something, I believe stuff is rephrased to fit anyway 03:54
benjikun I get some pretty good responses over time on /r/perl6 and the email group
SmokeMachine AlexDaniel: I’ll try it! Thanks! 03:56
benjikun: www.reddit.com/r/perl6/comments/97...h=82c628e4 04:11
benjikun SmokeMachine: upvoted 04:12
SmokeMachine :) 04:13
04:27 hu1go joined, p6bannerbot sets mode: +v hu1go 04:32 JJJ000 joined, p6bannerbot sets mode: +v JJJ000 04:45 zgrepc joined 04:46 zgrepc left 04:52 hu1go left 05:06 Sagan7 joined 05:07 Sagan7 left 05:11 molaf left 05:17 sauvin joined, p6bannerbot sets mode: +v sauvin 05:40 curan joined, p6bannerbot sets mode: +v curan 05:54 Ven` joined, spycrab0 joined, p6bannerbot sets mode: +v spycrab0 05:55 p6bannerbot sets mode: +v Ven` 05:58 Ven` left 06:06 Summertime left 06:07 Summertime joined, p6bannerbot sets mode: +v Summertime 06:09 vrurg_ left 06:35 abraxxa joined 06:36 p6bannerbot sets mode: +v abraxxa 06:45 lizmat joined 06:46 p6bannerbot sets mode: +v lizmat
El_Che SmokeMachine: I am not a heavy user, but like someone on the reddit thread recommended, I would suggest looking at other APIs. I like this one: gorm.io/docs/models.html 06:46
benjikun Yeah that's probably a good idea
El_Che SmokeMachine: I like it because it makes my usecase very simple. It matches tables to datatypes (structs) and the querying is very similar to regular SQL. 06:47
those 2 things pretty much cover all of my ORM usage :)
I like the getting rid of the SQL boilerplate approach 06:48
06:48 jeromelanteri left
El_Che (instead of "Our ORM can model the world" :) ) 06:48
06:59 zakharyas joined 07:00 p6bannerbot sets mode: +v zakharyas 07:07 Ven` joined 07:08 p6bannerbot sets mode: +v Ven`, kerframil joined, p6bannerbot sets mode: +v kerframil 07:12 Ven` left 07:16 benchable6 joined, p6bannerbot sets mode: +v benchable6 07:20 lizmat left 07:25 rdococ24 joined 07:28 rdococ24 left 07:36 sno left 07:38 sno joined 07:39 p6bannerbot sets mode: +v sno 07:42 siso_ joined 07:43 rindolf left 07:44 siso_ left 07:50 rindolf joined 07:51 p6bannerbot sets mode: +v rindolf 07:56 badet0s20 joined 07:59 badet0s20 left 08:07 grumble left 08:08 rindolf left 08:10 grumble joined, p6bannerbot sets mode: +v grumble 08:11 ilmari_ left, unclechu[m] left, AlexDaniel` left, MitarashiDango[m left, sena_kun joined, EuAndreh[m] left, tyil[m] left, CIAvash[m] left, hph^ left, grumble left 08:12 p6bannerbot sets mode: +v sena_kun 08:13 hph^ joined, hph^ left, hph^ joined, hph^ left, committable6 left, bisectable6 left 08:14 hph^ joined, hph^ left, hph^ joined, hph^ left, rindolf joined, shareable6 left, greppable6 left, statisfiable6 left, nativecallable6 left, hph^ joined 08:15 hph^ left, p6bannerbot sets mode: +v rindolf 08:17 cxreg left, MitarashiDango[m joined, p6bannerbot sets mode: +v MitarashiDango[m 08:18 f3ew joined 08:19 p6bannerbot sets mode: +v f3ew 08:21 JJJ000 left 08:22 Ven` joined 08:23 p6bannerbot sets mode: +v Ven` 08:26 cxreg joined 08:27 p6bannerbot sets mode: +v cxreg, govg joined 08:29 govg left 08:31 gurmble joined, p6bannerbot sets mode: +v gurmble 08:32 gurmble is now known as grumble 08:36 koto joined 08:37 p6bannerbot sets mode: +v koto 08:39 sena_kun left 08:47 ExtraCrispy joined 08:48 p6bannerbot sets mode: +v ExtraCrispy 08:52 Luneburg joined, p6bannerbot sets mode: +v Luneburg
Luneburg I noticed an error in the solutions section in the ThinkPerl book 08:54
benjikun What's the error/code? 08:55
08:55 berFt7 joined, AlexDaniel-old[m joined, p6bannerbot sets mode: +v AlexDaniel-old[m, mirlur[m] joined, unclechu[m] joined, wictory[m] joined, AlexDaniel` joined, p6bannerbot sets mode: +v mirlur[m], p6bannerbot sets mode: +v unclechu[m], CIAvash[m] joined, p6bannerbot sets mode: +v wictory[m], p6bannerbot sets mode: +v AlexDaniel`, p6bannerbot sets mode: +v CIAvash[m], Matthew[m] joined, lance_w[m] joined, tyil[m] joined, p6bannerbot sets mode: +v tyil[m], p6bannerbot sets mode: +v Matthew[m], p6bannerbot sets mode: +v lance_w[m], ilmari_ joined, EuAndreh[m] joined, tyil[m]1 joined, p6bannerbot sets mode: +v EuAndreh[m], p6bannerbot sets mode: +v ilmari_, p6bannerbot sets mode: +v tyil[m]1, Garland_g[m] joined, p6bannerbot sets mode: +v Garland_g[m]
Luneburg benjikun: page 341, exercise A6 08:55
08:55 berFt7 left
Luneburg If you try to run it with inputs that should work, it returns false 08:56
I think the error is in the 6th line of code (excluding whitespace)
*exercise A5.6 08:57
benjikun I think you're correct :P 09:01
doesn't work for me either
Luneburg benjikun: I think the 6th line of code should be: return False if substr($word1, $i, 1) ne substr($word2, $j, 1); 09:03
benjikun you're correct
hmmm 09:04
I'm not sure if the writers are in here atm
09:04 spycrab0 left
benjikun btw you can just use `flip` if you wanted the easier already-made solution :P 09:04
m: say 'cat' eq 'tac'.flip; 09:05
camelia True
09:05 lizmat joined
Luneburg benjikun: Yeah, the book likes to torture you a bit 09:05
benjikun Yeah, makes sense for learning and all ofc 09:06
good catch
09:06 p6bannerbot sets mode: +v lizmat 09:11 nativecallable6 joined, bisectable6 joined, committable6 joined, statisfiable6 joined 09:12 p6bannerbot sets mode: +v nativecallable6, p6bannerbot sets mode: +v bisectable6, p6bannerbot sets mode: +v committable6, p6bannerbot sets mode: +v statisfiable6 09:23 lizmat left 09:42 pmurias joined, robertle joined, p6bannerbot sets mode: +v pmurias 09:43 p6bannerbot sets mode: +v robertle 09:48 pmurias_ joined 09:49 p6bannerbot sets mode: +v pmurias_ 09:51 pmurias left 09:56 benjikun left 10:21 iDanoo3 joined 10:22 iDanoo3 left 10:23 NyanCat21 joined 10:26 Dworf joined, NyanCat21 left, p6bannerbot sets mode: +v Dworf 10:31 Dworf left 10:48 curan left, lizmat joined 10:49 p6bannerbot sets mode: +v lizmat, pmurias_ left 10:50 lizmat left 10:52 lizmat joined, pmurias joined, lizmat left 10:53 p6bannerbot sets mode: +v pmurias 11:19 lizmat joined, pmurias left 11:20 p6bannerbot sets mode: +v lizmat 11:24 lizmat left 11:26 zakharyas left 11:33 kerframil left 11:38 robertle left 11:46 Death91610 joined 11:49 jast left 11:51 Death91610 left 11:58 pskosinski11 joined, pskosinski11 left 12:01 cylon512_ joined 12:03 cylon512_ left 12:11 aborazmeh joined, aborazmeh left, aborazmeh joined, p6bannerbot sets mode: +v aborazmeh 12:15 abraxxa left 12:16 abraxxa joined 12:17 p6bannerbot sets mode: +v abraxxa 12:23 araraloren joined, pmurias joined, p6bannerbot sets mode: +v araraloren, p6bannerbot sets mode: +v pmurias 12:24 pmurias left
araraloren o/ 12:25
12:27 blackberry9900 joined 12:28 pmurias joined, p6bannerbot sets mode: +v blackberry9900, p6bannerbot sets mode: +v pmurias 12:32 aborazmeh left
Altreus it says pod6 must begin with =begin pod 12:39
Is this actually true or can I start with =head2 like perl5?
cos that was very useful
It made inline documentation 3 lines long rather than 5 12:40
tadzik where does it say that?
cos it's wrong :)
Altreus docs.perl6.org/language/pod
tadzik =begin starts a pod block, that must end in an =end
araraloren evalable6: gist.githubusercontent.com/araralo...sprintf.p6
evalable6 araraloren, Successfully fetched the code from the provided URL
tadzik but there's other kinds of blocks
evalable6 (signal SIGHUP) «timed out after 10 seconds» 12:41
Altreus right but I can't do =head2 whatever\n\ndescription\n\n=end pod
tadzik nope
Altreus ah
tadzik but you may like paragraph blocks
araraloren The compile hang on with above code ^^
tadzik they end with a blank line
Altreus This says they end with the next block command 12:42
oh my mistake
I stopped reading
Although the POD6 is shorter, it seems less clean: gist.github.com/Altreus/77e9f5d737...3e8ac235a1 12:43
ah drat, now I need new vim folding rules 12:44
;_;
tadzik Altreus: do a =for head2\nThis is how you might describe a method called pod6\n\n 12:45
should be equivalent
or even =head2 This is how you might describe a method called pod6\n
Altreus well then you lose =head2 pod6
tadzik oh right 12:46
hm
Altreus can't do a quick header-with-paragraph without begin & end
which is fine
tadzik true
Altreus most of the time I look for my vim folds anyway :)
ah!
but in perl5, my vim fold says -- =head2 pod5
in perl6 it's always going to say -- =begin pod
Anyway I already extended POD5 to make it good :P 12:47
It didn't need fixing again
someone should have asked :D
tadzik Altreus: gist.github.com/tadzik/9655a59cf65...f5066b8266 :) 12:48
Altreus golly
a) wat
b) does it work for properties too
tadzik should work for everything
Altreus I just found declarator blocks
I can dig it
tadzik including function arguments
kind of works for function arguments, though not in the way I expected the output to look 12:49
araraloren I don't like that POD* 12:50
I prefer AsciiDOC or MarkDown
Altreus This format, however, will not translate to a multi-line display by perl6 -doc.
:(
tadzik oh? Hm
Altreus araraloren: actually I went to the effort of extending POD5 precisely because I didn't like markdown 12:51
It didn't suit blog posts, which seemed silly
araraloren oh, so I like AsciiDoc much than markdown
Altreus never tried asciidoc :)
unless that's the Java one with /**
12:52 lizmat joined
araraloren OH, It's powerful than the markdown 12:52
Altreus also: trust Perl6 to not only get smilies in, but also hash-pipes
araraloren and can represent everything in the web
12:53 p6bannerbot sets mode: +v lizmat, guest3546 joined 12:57 guest3546 left 12:58 blackberry9900 left 12:59 zakharyas joined 13:00 p6bannerbot sets mode: +v zakharyas 13:01 zakharyas1 joined 13:02 p6bannerbot sets mode: +v zakharyas1, ajvpot4 joined 13:03 sotona joined 13:04 p6bannerbot sets mode: +v sotona, zakharyas left 13:05 uzl joined, zakharyas joined 13:06 p6bannerbot sets mode: +v uzl, p6bannerbot sets mode: +v zakharyas
uzl Hello, #perl6! 13:06
yoleaux 15 Aug 2018 07:03Z <tyil> uzl: any looping construct should work, so you can map, or filter out entries with grep
uzl I was able to do with map. Thanks, tyil! 13:07
13:07 ajvpot4 left 13:08 zakharyas1 left
uzl Luneburg: I don't know if you're using the printed version of TP6 but in the latest pdf, that error has been fixed. This is the book's repo: github.com/LaurentRosenfeld/thinkp...aster/book 13:08
.tell Luneburg I don't know if you're using the printed version of TP6 but in the latest pdf, that error has been fixed. This is the book's repo: github.com/LaurentRosenfeld/thinkp...ster/book. You might want to file an issue if find more errors. 13:10
yoleaux uzl: I'll pass your message to Luneburg.
tyil uzl: :D 13:11
13:13 cog joined 13:14 p6bannerbot sets mode: +v cog
tobs I have to chase 17k bitstrings through a large symmetry group by tomorrow and don't even remember what all the multiprocessing.foo means in this python code base. My kingdom for a simple .race 13:16
13:16 cognominal-p6 left, vrurg joined 13:17 p6bannerbot sets mode: +v vrurg
araraloren Anyone intersting on it, the code or compile hang on cause by the format string of sprintf 13:20
evalable6: gist.githubusercontent.com/araralo...sprintf.p6
evalable6 araraloren, Successfully fetched the code from the provided URL
(signal SIGHUP) «timed out after 10 seconds»
timotimo hm, are you sure it's the sprintf that does it, and not for example stringifying $type or $name, or calling self.perl? 13:22
hm, the arguments passed to match aren't complex
so it wouldn't be that
Geth doc: 468a61dc61 | (JJ Merelo)++ | htmlify.p6
Finalizing #2265

Following @coke suggestions, which would actually close that thing (it was already closed, so no more closing)
araraloren yeah, I am not sure, but without the line or with correctly format string, it is fine
timotimo what's wrong about the format string, just not enough arguments? 13:23
13:23 sotona left
timotimo it could very well be that it throws an exception and the matchByName and matchByExt taps just don't do any error handling at all 13:23
so the pipelines just get stuck perhaps?
araraloren no, it missing %s in the format string 13:24
without the line, it can print something
evalable6: gist.githubusercontent.com/araralo...sprintf.p6
evalable6 araraloren, Successfully fetched the code from the provided URL
(signal SIGHUP) «timed out after 10 seconds» 13:25
araraloren oh, the code is hang on too, but can print something, seems like evalable6 not print them
13:25 w_richard_w joined
timotimo perhaps it's vulnerable to timing differences 13:26
araraloren that's another problme of the script
13:26 p6bannerbot sets mode: +v w_richard_w
araraloren timing difference ? 13:26
timotimo yeah, a race condition perhaps
araraloren The code is running in different thread ? 13:27
the react block and the other code ?
timotimo hm, not really
araraloren I thought they were in one thread :/ 13:28
timotimo also, i don't think the "return" inside your matchBy functions will work right
araraloren hmm, so they can't do what coroutine do ? 13:29
timotimo how about sprinkling some CATCH { .say } in your code?
oh, the reason is just that you're using a pointy block there
and pointy blocks are transparent to "return"
you can just turn it into an anonymous sub
araraloren oh 13:30
I got your mean
timotimo cool 13:31
that's solve the script hang on trouble
timotimo cool
araraloren but in another hand, it still can not compile with the `incorrectly sprintf sentence` 13:32
13:33 sotona joined
araraloren Need I setup a issue for Rakudo or ? 13:33
timotimo is it a compile-time error?
jnthn I'm sure I've seen an issue with sprintf not being threadsafe before now
13:33 p6bannerbot sets mode: +v sotona
araraloren timotimo yeah, many exception 13:34
but not ending if I not catch it
jnthn maybe that's it
anyway, it is so appreciate that you guys solve the hang on trouble :) 13:37
Geth doc: 612f995bd4 | (JJ Merelo)++ | doc/Type/Metamodel/Finalization.pod6
Reindexes DESTROY and change of format
13:39
synopsebot Link: doc.perl6.org/type/Metamodel::Finalization
13:51 Tison joined, p6bannerbot sets mode: +v Tison 13:54 sotona left, justif12 joined
pmurias rakudo.js setting nows builds after merge and fixing up after rescalar changes :) 13:55
Tison perl6.org/archive/rfc/109.pod 13:56
13:57 jeromelanteri joined, p6bannerbot sets mode: +v jeromelanteri
Tison Recently I got thoughts like this, even Rakudo Perl 6 has announced production ready so we would no change so basic concepts, but I still wonder how important '@' and '%' "as a sigil" 13:57
b2gills .tell scimon where clauses can be a statement that is smartmatched automatically (watching livestream) `subset IntOrRat of Numeric where Int|Rat` 13:58
yoleaux b2gills: I'll pass your message to scimon.
Tison In fact we have types like Array and Hash, and if you want declare context, right hand side @ % is ok
13:58 justif12 left
b2gills Tison: @ and % are necessary in signatures 13:59
Geth doc: 3e340e727d | (JJ Merelo)++ | util/manage-page-order.p6
Adds overview, closes #2185
timotimo .tell scimon i think you had a test for /Hello world/ and expected it to match "Hello world", but whitespace in perl6 regex aren't significant; i think rakudo is supposed to warn about that, though?
yoleaux timotimo: I'll pass your message to scimon.
b2gills sub ( *@all-positional *%all-named
timotimo b2gills: could have gone with what python does and have *@all-pos, **@all-named 14:00
or with $ in that case
wait
.tell scimon sorry, that was actually meant for lancew
yoleaux timotimo: I'll pass your message to scimon.
b2gills I should say it was delayed livestream 14:01
Tison m: sub f(Array $x) { say $x.elems }; f([0,1,2]);
camelia 3
Tison b2gills: are they?
14:01 sotona joined
b2gills m: sub f(Array $x) { say $x.elems }; f(0,1,2); 14:01
camelia 5===SORRY!5=== Error while compiling <tmp>
Calling f(Int, Int, Int) will never work with declared signature (Array $x)
at <tmp>:1
------> 3sub f(Array $x) { say $x.elems }; 7⏏5f(0,1,2);
b2gills m: sub f(Array *$x) { say $x.elems }; f(0,1,2);
camelia 5===SORRY!5=== Error while compiling <tmp>
Calling f(Int, Int, Int) will never work with declared signature (Array $x)
at <tmp>:1
------> 3sub f(Array *$x) { say $x.elems }; 7⏏5f(0,1,2);
b2gills m: sub f(*Array $x) { say $x.elems }; f(0,1,2); 14:02
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3sub f(*7⏏5Array $x) { say $x.elems }; f(0,1,2);
14:02 p6bannerbot sets mode: +v sotona
b2gills m: sub f(*@x) { say $x.elems }; f(0,1,2); 14:02
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$x' is not declared. Did you mean '@x'?
at <tmp>:1
------> 3sub f(*@x) { say 7⏏5$x.elems }; f(0,1,2);
b2gills m: sub f(*@x) { say @x.elems }; f(0,1,2);
camelia 3
jnthn Also @foo and Array $foo are *not* the same thing; the latter is an itemized array
Tison right, here is a basic concept named container :-)
jnthn Plus initialization differences 14:03
b2gills It is very common for new people to question why certain decisions where made. That tends to drop off quickly. 14:04
14:04 Zoffix joined, p6bannerbot sets mode: +v Zoffix
Zoffix Tison: @/% are not Array/Hash, they're Positional/Associative 14:04
Array/Hash is just what you get by default when you *assign* to them. You can also bind to them
Tison thanks for your point out ~ 14:05
Zoffix Tison: they also offer default container values
14:05 uzl left
b2gills m: sub ( @a ) { say @a.^name }( Buf.new() ) 14:05
camelia Buf
Zoffix Tison: IIRC there's actually an example somewhere in perl6advent.wordpress.com/2017/12/02/ that shows just how much typing the `@` shortcut on variables saves
14:08 Luneburg left
Tison yes, someone calls it “Huffman coding” 14:08
14:08 Zoffix left 14:14 Tison left
Altreus why does p6doc try to compile the code? Could not find API::Discord::Types at line 1 14:19
that's with `p6doc lib/API/Discord.pm6`
14:22 w_richard_w left
lizmat Altreus: to make sure it's valid code ? 14:27
Altreus but it is valid code
doesn't seem like the p6doc's job
that's perl6 -c's job 14:28
It's valid code if I run it with perl6 -I lib
but p6doc doesn't have -I lib
lizmat ah, then maybe you need something like "=for code :skip-test"
pmurias b2gills: IMHO a lot of the decisions in the Perl 6 where heavily influenced be preserving the Perl 5 flavor 14:29
Altreus I don't follow what's happening
I rather thought the point of p6doc was to read the POD, irrespective of whether the code is valid or not
lizmat or ":preamble<class API::Discord::Types {};>
Altreus no but I mean 14:30
what if it's valid if I install it, but not valid if it's in dev?
should I ... have a git hook that removes these things?
I guess there's probably PERL6LIB, right?
pmurias Altreus: isn't 14:31
Altreus that seems to have worked
pmurias a some documentation generated from the code instead of taken from the pod?
Altreus hmm
pmurias Altreus: you can attach Pod to classes and methods 14:32
Altreus It doesn't like the #| form of documentation when attached to a has
they all come up as "class Attribute.new" 14:33
instead of the name of the property
looks like pod6 processing needs work :) 14:35
14:35 skids joined
Altreus still, fairly neat 14:35
I mean I don't even remotely like the way it renders it
14:36 p6bannerbot sets mode: +v skids
Altreus took me years to figure out a nice way of writing pod5 so that it was both legible and semantic ^-^ 14:36
14:38 troys joined 14:39 p6bannerbot sets mode: +v troys 14:47 lizmat left, benjikun joined 14:48 p6bannerbot sets mode: +v benjikun 14:50 planigan joined, SerpentSpeech joined, p6bannerbot sets mode: +v planigan 14:51 sotona left 14:52 SerpentSpeech left 14:54 planigan left 14:56 lizmat joined 14:57 p6bannerbot sets mode: +v lizmat 15:00 [particle] joined 15:01 p6bannerbot sets mode: +v [particle] 15:03 zakharyas left 15:04 zakharyas joined 15:05 zakharyas left 15:06 zakharyas joined 15:07 p6bannerbot sets mode: +v zakharyas
Altreus where does p6doc come from? is it part of rakudo? 15:08
benjikun Altreus: Included with rakudostar 15:09
Altreus I'm trying to determine where to open issues :)
benjikun Altreus: github.com/perl6/doc 15:10
here probably
yeah, there 15:11
Altreus That's for bugs in p6doc itself, not in the docs for p6?
benjikun both
Altreus grand :) 15:12
15:14 molaf joined, molaf left 15:15 sarna joined 15:16 p6bannerbot sets mode: +v sarna
sarna o/ 15:16
15:18 sotona joined 15:19 p6bannerbot sets mode: +v sotona
araraloren o/ 15:19
15:20 gtodd left
tyil benjikun: I'm trying to read the article referenced in www.reddit.com/r/perl6/comments/95..._mistake/, but it seems the post has been removed from your site :( 15:20
benjikun Yeah I had to switch servers and the posts dir was in .gitignore lol 15:21
and I stupidly didn't realize that in the process
for sure, there will be more Perl6 postings to come on there, though
tyil ah
too bad :(
benjikun I couldn't find a cached version of that specific post on google cache / wayback machine sadly either :( 15:22
stmuk Altreus: DEBUG=1 p6doc Foo.pm should help you
benjikun or in my browser memory
tyil post new things soon, so it feels less empty!
benjikun I need to :P
stmuk basically p6doc is a wrapper to execute perl6 --doc
sarna hey tyil o/
tyil hey
:>
sarna how's the lispy thing?
Altreus but it doesn't pass -I to perl6 ;)
tyil currently on hold, sarna
Altreus PERL6LIB was necessary
tyil I didnt feel like I could make it pretty enough 15:23
if I make something to show off, it needs to be pretty
sarna tyil: fair enough :D 15:24
tyil I'll probably give it a new shot later in my life
but for now I'll focus on a couple existing projects that need some love as well
(mainly p6man and assixt)
also at the perl conference rn, writing out notes to consider publishing them as a blog post
stmuk Altreus: it does it some cases
github.com/perl6/doc/blob/master/bin/p6doc#L67 15:25
sarna tyil: ah, definitely, these are far more important than some scheme implementation 15:28
15:31 ptx08 joined 15:32 robertle joined 15:33 p6bannerbot sets mode: +v robertle 15:36 ptx08 left 15:37 kerframil joined, p6bannerbot sets mode: +v kerframil 15:42 araraloren left 15:48 lizmat left
Altreus stmuk: it doesn't accept a -I to pass to perl6 is what I meant :O 15:52
stmuk maybe it should 16:01
16:04 zakharyas left 16:05 kerframil left 16:06 ExtraCrispy left 16:11 molaf joined 16:12 p6bannerbot sets mode: +v molaf
Altreus hmm I don't like that pod6 keeps hard line-breaks 16:15
I only put them in to keep my code neat
but now the "manpage" that comes out of it has some long lines and many short ones
stmuk Altreus: did p6doc API/Discord.pm6 work for you? 16:16
timotimo i think only some blocks keep hard line breaks around
like code or input or something?
Altreus no, I can only get it to work if I use PERL6LIB
timotimo: normal paragraphs do 16:17
uh
hmm
stmuk Altreus: what is the exact command you are using and the error message?
Altreus stmuk: I have to use PERL6LIB because lib/API/Discord.pm6 doesn't compile unless it can find API::Discord::Types, which it can't
stmuk ah 16:18
Altreus So I have to tell it where to look
timotimo hm, that may not be intentional
16:18 natrys joined
Altreus timotimo: I think I'm wrong 16:18
It's re-wrapping it for me 16:19
It's just, not all things are being wrapped in the first place
16:19 MilkmanDan left, MilkmanDan joined, p6bannerbot sets mode: +v MilkmanDan, p6bannerbot sets mode: +v natrys
stmuk Altreus: which module is this? 16:21
timotimo that's probably an artifact of what pod renderer you're using?
Altreus not many things seem to have pod
um I'll tell you when github comes back 16:23
github.com/kawaiiforums/p6-api-discord/tree/pod
sarna Altreus: hey, is the discord lib usable yet?
Altreus no
I'm writing the docs so I know what gaps to fill in
sarna :^(
Altreus it stays online though :D
sarna I'll keep an eye on it thought :^) 16:24
Altreus we fixed resume
sarna: there's the github :)
sarna Altreus: I've just starred it :^) 16:25
stmuk Altreus: I think p6doc can only work with installed modules 16:28
16:37 Ven` left
stmuk I don't really see how it could resolve all module deps otherwise. In your case the PERL6LIB "fix" only works since you have Cro installed 16:39
16:42 scimon joined, scimon left 16:43 kerframil joined, p6bannerbot sets mode: +v kerframil, Praise left 16:45 sarna left 16:49 rdv joined, rdv is now known as Guest99012, p6bannerbot sets mode: +v Guest99012 16:58 Guest99012 left 16:59 itaipu left 17:10 sotona left
SmokeMachine Hi! is there any way to implement it? www.reddit.com/r/perl6/comments/97...me/e4avd91 17:10
17:11 SCHAPiE left
tyil Altreus: which file are you trying to render the pod doc of? 17:11
17:12 natrys left
tyil Altreus: if you can provide a link to the repo I'd like to take a look at the pod issue 17:16
17:16 Ckat3 joined 17:17 uzl joined, Facilitating joined, p6bannerbot sets mode: +v uzl
stmuk tyil: the link is above 17:19
its the "pod" branch in the repo
the probably is "perl6 --doc" can't run the code in the absence of installed dependencies 17:20
s/probably/problem
17:20 Ckat3 left 17:21 Facilitating left
tyil yeah, p6man has the same issue, perl6 --doc=Text as well 17:21
and both p6doc and p6man rely on perl6 --doc behaviour
I had a hacky solution to work around this, but decided to use perl6 --doc instead because that was what p6doc used 17:22
maybe I should go back and implement the hacky solution to extract pod before trying to parse it 17:23
stmuk yeah pod6 needs to be displayed in a "dumb" way (although this is probably against the whole idea of pod6) 17:24
tyil because I dont think Pod should fail to render because the actual code might contain issues, especially when the iissue is simply a use which was not found
17:24 uzl left
stmuk if I were a github admin I wouldn't want to have to run code to render pod6 17:25
tyil (fwiw, my hacky solution was to just look for a =begin pod and start saving lines to a temp file until I find a =end pod, then try to render that temp file) 17:26
maybe I can discuss it with jj, he's around here anyway 17:28
SmokeMachine m: class P does Positional { method STORE(|) {}; method relates { ::?CLASS.new } }; class C { has @.a is P = .relates } 17:33
camelia 5===SORRY!5=== Error while compiling <tmp>
Defaults on compound attribute types not yet implemented. Sorry.
Workaround: Create/Adapt TWEAK method in class C, e.g:
method TWEAK(:@!a = (initial values)) { }
at <tmp>:1
17:37 imcsk8_ is now known as imcsk8 17:38 kerframil left 17:39 justsomeguy joined, p6bannerbot sets mode: +v justsomeguy, SCHAPiE joined, p6bannerbot sets mode: +v SCHAPiE
stmuk tyil: I think jnthn mentioned his IDE used a grammar which allowed syntax errors in order to allow work in progress while editing 17:46
rendering uninstalled docs could be something similar
17:49 vike1 left 17:56 MilkmanDan left 17:57 MilkmanDan joined, p6bannerbot sets mode: +v MilkmanDan 18:15 vike joined 18:16 p6bannerbot sets mode: +v vike 18:19 spycrab0 joined, p6bannerbot sets mode: +v spycrab0
tbrowder_ Altreus: can you show us the pod6 that has unwanted linebreaks? 18:25
18:26 justsomeguy left 18:30 sauvin left 18:38 sotona joined 18:39 p6bannerbot sets mode: +v sotona 18:46 natrys joined
tbrowder_ regarding pod6 and working code: a separate pod6 parser external to p6 was recently discussed on #perl6-dev and jnthn and others were against it. the pod6 declarator blocks should not have line breaks unless the pod6 has non-breaking spaces in which case they may. declarator block formatting is a feature request i believe. 18:46
18:46 p6bannerbot sets mode: +v natrys 19:07 sotona left 19:12 kerframil joined, p6bannerbot sets mode: +v kerframil 19:13 natrys left 19:26 natrys joined, sotona joined, p6bannerbot sets mode: +v natrys 19:27 [Sno] joined, lizmat joined, p6bannerbot sets mode: +v sotona 19:28 p6bannerbot sets mode: +v [Sno], p6bannerbot sets mode: +v lizmat 19:29 sno left
robertle I am doing Duration.new(2.rand) and it works often, but sometimes gives me Type check failed in assignment to $!tai; expected Rat but got Num (1534447726.7543569e0) 19:35
which I find surprising: I would have thought that rand always gives me back the same type, but also that duration does take a num, not only a rat...
buggable New CPAN upload: Sparrowdo-Cordova-OSx-Build-0.0.1.tar.gz by MELEZHIK cpan.metacpan.org/authors/id/M/ME/...0.1.tar.gz 19:41
19:43 sotona left 19:48 sotona joined 19:49 p6bannerbot sets mode: +v sotona, sotona left 20:00 dogbert17 joined 20:01 p6bannerbot sets mode: +v dogbert17
MasterDuke robertle: what's your perl6 --version? 20:03
20:11 eliasr joined, p6bannerbot sets mode: +v eliasr
b2gills m: for ^1000 { my $rand = 2.rand; try { Duration.new($rand) } // say $rand } 20:14
camelia ( no output )
b2gills star: for ^1000 { my $rand = 2.rand; try { Duration.new($rand) } // say $rand } 20:15
camelia ( no output )
MasterDuke i've run 12 million iterations, no failures yet
20:22 nhandler6 joined
robertle MasterDuke: 2018.04.1-33-ga957b712c built on MoarVM version 2018.04-39-gc702f4c66 20:23
what? wait
why do I have such an old one?
I was expecting .06
MasterDuke robertle: how frequently does it happen? 20:24
robertle I seed my rand, so it happens every time I run it, after only a handful of iterations. let me check
MasterDuke ah, nice, then we could bisect it 20:25
20:25 nhandler6 left
robertle MasterDuke: gist.github.com/robertlemmen/877b0...336b527f42 20:28
MasterDuke committable6: 6c gist.github.com/robertlemmen/877b0...tfile1.txt 20:29
committable6 MasterDuke, Successfully fetched the code from the provided URL
MasterDuke, gist.github.com/28d5489d61b59f9c7e...23da462c13
MasterDuke ah, does still happen on HEAD 20:30
robertle: mind filing an issue in the rakudo repo? 20:33
robertle will do
MasterDuke robertle++
robertle R#2221 20:37
synopsebot R#2221 [open]: github.com/rakudo/rakudo/issues/2221 duration ctor or addition with duration sensitive to rat/num rand (?)
20:47 lizmat left
buggable New CPAN upload: Sparrowdo-VSTS-YAML-Cordova-0.0.7.tar.gz by MELEZHIK modules.perl6.org/dist/Sparrowdo::V...n:MELEZHIK 20:51
21:01 skids left 21:02 lizmat joined, p6bannerbot sets mode: +v lizmat 21:04 mrdata14 joined 21:08 mrdata14 left
buggable New CPAN upload: Sparrowdo-Cordova-OSx-Build-0.0.2.tar.gz by MELEZHIK modules.perl6.org/dist/Sparrowdo::C...n:MELEZHIK 21:31
21:48 stmuk_ joined 21:49 p6bannerbot sets mode: +v stmuk_ 21:50 stmuk left 21:59 pmurias left 22:01 rindolf left
tbrowder_ .ask Altreus can you please file a rakudo issue on the pod6 problem, 22:05
yoleaux tbrowder_: I'll pass your message to Altreus.
22:07 Raccoon joined, Raccoon left 22:14 pmurias joined, p6bannerbot sets mode: +v pmurias 22:21 koto left 22:31 natrys left 22:40 lucasb joined 22:41 p6bannerbot sets mode: +v lucasb
lucasb o/ 22:41
lucasb wants to spend more time with P6 22:42
will there be a release this weekend?
timotimo outlook positive 22:44
lucasb nice! 22:45
timotimo releasable6: status
releasable6 timotimo, Next release in ≈1 day and ≈20 hours. 2 blockers. 81 out of 445 commits logged (⚠ 11 warnings)
timotimo, Details: gist.github.com/27d22acb5eb6ef0d57...62f79aac48
22:46 kerframil left
lucasb ^^ look! lowercase hashs! :) 22:47
and rakudo installs those hashy filenames as uppercase, like 84D9B14D532447225425A06C8065C422465F168D
can I make a formal suggestion to lowercase those dir and filenames created inside the installation directory? 22:48
git uses lowercase, obviously. I know these names aren't supposed to be user-facing, but sometimes you stumble upon them, no? 22:49
It's a comestic change, but I think it's easier on the eyes to see them lowercase, when you stumble upon a wall of hashs 22:50
If I submit this request, will I get some support? Any opinion? 22:52
timotimo i wonder how existing repositories should be handled then 22:55
lucasb search both for uppercase and lowercase, but creates always as lowercase (?) 22:57
timotimo startup is already slow :(
22:58 hoffentlichja joined, p6bannerbot sets mode: +v hoffentlichja
AlexDaniel c: 9a45b2b say 42 22:58
committable6 AlexDaniel, ¦9a45b2b: «42␤»
AlexDaniel c: 9A45B2B say 42
committable6 AlexDaniel, ¦9A45B2B: «42␤»
lucasb not thinking about backwards compatibility for a second, would this have a chance in 6.next?
AlexDaniel so it should be changed because you think lowercase strings look better? 22:59
lucasb a little too subjective? :) 23:00
23:00 hoffentlichja left
lucasb but yeah, I think they look better 23:01
ooc, do you?
jnthn I guess uppercase kinda shouts "GO AWAY", which is kinda on point :P 23:02
lucasb 40-char hashes are scary enough already 23:06
AlexDaniel lucasb: so we're now at 2000+ open tickets
:)
lucasb do you mean if we keep opening tickets for superfluous things like these? 23:09
I agree it's silly
jnthn No, I think AlexDaniel means we're already there ;)
AlexDaniel last week was 2003 → 2010 gist.github.com/82e3048c9a494e9534...fa3c4cc0e0 23:10
more stats here: github.com/rakudo/rakudo/wiki/Ticket-updates
lucasb ah, thanks
I was looking at R issues only, almost 500 23:11
23:11 pmurias left
lucasb but anyway, this change, if accepted, would be just a "lc" inserted somewhere :) 23:11
AlexDaniel I believe it can't be that simple :) 23:12
and I'm serious 23:13
jnthn I believe we do have the ability to version precomp repos, so we can do such changes 23:14
But yeah, it probably won't be "just insert an lc"
AlexDaniel m: say ‘9A45B2B’.fc 23:15
camelia 9a45b2b
Kaiepi how can i write a CStruct for this? hastebin.com/xovahahori.cpp 23:40
never mind, i don't need it for ICMP 23:45
lucasb my second request is this: 23:51
Consider the 3 installation paths 23:52
install/share/perl6/{core,site,vendor}/
expect, there is NO "core" subdirectory. It's mixed with the parent dir of both site and vendor 23:53
Kaiepi wait, yes i do need *mbuf 23:54
lucasb I wish the relevant directories to be nested under a "core" subdirectory (or any other name), just to keep the dir structure in the same hierarchy level
Kaiepi i want to be able to use the icmp.c functions 23:55
lucasb *except
Kaiepi i can do icmp without icmp.c, but the functions would be useful to have
SmokeMachine m: class P { has &.bla; method STORE(|c) { say "STORE: ", c } }; multi trait_mod:<is>(Attribute $attr, Bool :$related) { $attr does role :: { method type { P } } }; class C { has Int @.a is related = say C.^attributes }; say C.^attributes; say C.new # why is it being converted to an array? is it the closure returning the array? 23:57
camelia (P @!a)
(P @!a)
C.new(a => Array[Int].new(Bool::True))
Kaiepi is there a CUnion repr?
tls is being fucky with me, i can't google it 23:58