🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
00:00 Doc_Holliwould left, pecastro left 00:02 sena_kun joined 00:04 Altai-man_ left 00:12 blah69 joined
blah69 I have two questions. Is there a way to delete a variable, and is there a way to print all the variables in current scope (I'm not sure if I'm saying this correctly). 00:12
00:14 oddp left
[Coke] not like there is for hash elements, no 00:17
(regarding the deletion)
eery You can set it to (Any), which is the value an "undefined"/unset variable has 00:18
[Coke] (by default) 00:19
I am sure there is some UPPERCASE:: thing you can poke into for the variables in the current block.
blah69 Gotcha. Python has locals() and globals() which will return list of variables. I'm not sure if theres anything similar in raku.
jnthn m: { my ($a, $b) = 1, 2; dd MY::.kv } # you can get hold of variables like this
camelia ("\$b", 2, "\$a", 1, "\$*DISPATCHER", Mu, "\$_", Any).Seq
tellable6 2020-06-27T23:32:11Z #raku-dev <AlexDaniel> jnthn can you file a ticket about signal()? You definitely can describe it better than me. Thanks! colabti.org/irclogger/irclogger_lo...06-27#l194 00:20
jnthn You'll see a few implicitly declared ones too
The set of symbols in a lexical scope is fixed at compile time, so there's no way to actually delete one.
[Coke] jnthn++ 00:21
blah69 jnthnthanks 00:22
jnthnt hanks
jnthn thanks
00:23 blah69 left 00:34 softmoth joined 00:44 zacts left 00:45 Doc_Holliwood joined
Doc_Holliwood *cough* 00:45
cpan-raku New module released to CPAN! Math::Combinatorics (0.0.4) by 03ELCARO 00:53
00:56 MMitchell joined 00:57 MMitchell left 01:07 molaf left 01:13 samcv left, samcv_ joined 01:14 lucs left, lucs joined 01:16 zacts joined 01:19 MilkmanDan joined, molaf joined 01:38 bocaneri left, Doc_Holliwood left 01:41 stux|RC left 01:43 zacts left 01:44 stux|RC joined 01:51 bocaneri joined 02:01 Altai-man_ joined 02:03 sena_kun left 02:05 Manifest0 left 02:06 Manifest0 joined 02:49 reach_satori left 02:53 zacts joined 03:06 hungryd36 joined 03:18 zacts left, zacts joined, reach_satori joined 03:23 lucasb left
SmokeMachine vrurg: hi! Why the iOS issue was closed? 03:26
03:28 ben17 joined 03:50 khoguan joined
khoguan Hello, whould you tell me how to zef install Text::CharWidth, which is in CPAN but not in p6c and zef search fails to find it. 03:55
04:02 sena_kun joined 04:03 Altai-man_ left 04:10 rbt left, rbt joined 04:19 camelCaser left 04:20 camelCaser joined 04:23 brtastic joined 04:28 khoguan left 04:32 zacts left 04:45 molaf left 04:46 wamba joined 05:11 OpenZen left 05:37 ben17 left 05:41 leah2 left 05:44 skids left 05:48 brtastic left 05:55 [particle] left 05:57 leah2 joined 06:01 Altai-man_ joined 06:04 sena_kun left 06:07 vike left 06:28 Doc_Holliwood joined 06:30 brtastic joined 06:36 wamba left 07:05 aborazmeh joined, aborazmeh left, aborazmeh joined 07:17 soursBot joined 07:23 rindolf joined 07:42 JJMerelo joined 07:46 bocaneri left 07:53 cpan-raku left 07:55 cpan-raku joined, cpan-raku left, cpan-raku joined 07:59 bocaneri joined, bocaneri left, bocaneri joined 08:02 sena_kun joined 08:04 Altai-man_ left 08:07 vike joined, andrzejku joined 08:08 Sgeo left 08:09 soursBot left 08:12 sno left 08:31 soursBot joined 08:49 aborazmeh left 09:00 samcv_ left 09:01 samcv joined 09:02 finanalyst joined 09:06 oddp joined 09:11 brtastic left 09:13 dolmen joined 09:14 JJMerelo left 09:21 dolmen left 09:27 chloekek joined 09:30 JJMerelo joined
nine SmokeMachine: I guess vrurg closed it because no one was gonna work on it anyway. Porting to such a platform won't happen because someone is seeing an issue and thinks "let's get our issue count down" but because someone is interested in doing it or simply curious and there they won't need a ticket. 09:45
09:52 pecastro joined, kensanata joined 10:01 Altai-man_ joined 10:04 sena_kun left 10:17 molaf joined 10:19 wamba joined 10:22 hungryd36 left
Geth ecosystem: 284a164761 | (Jonathan Stowe)++ | META.list
Rename repo of GD
10:32
10:37 chloekek left 10:43 hungrydonkey joined 10:46 JJMerelo left 10:47 Doc_Holliwood left 10:50 chloekek joined 10:59 vike left 11:01 wamba left 11:10 vike joined 11:24 dataangel left 11:25 dataangel joined 11:35 kensanata left, cpan-raku left, cpan-raku joined, raku-bridge left, raku-bridge joined, MasterDuke left, MasterDuke joined, kawaii left, kawaii joined, lizmat left, lizmat joined, samcv left, samcv joined 11:36 timotimo left, timotimo joined 11:44 AlexDaniel joined, AlexDaniel left, AlexDaniel joined 11:45 andrzejku left 11:48 bdju left 11:49 bdju joined 11:53 soursBot left 11:54 soursBot joined 12:02 sena_kun joined 12:03 aborazmeh joined, aborazmeh left, aborazmeh joined, Altai-man_ left 12:10 Doc_Holliwood joined 12:15 hungryd21 joined 12:16 hungrydonkey left
SmokeMachine nine: that makes sense. 12:50
12:55 wamba joined 12:58 rbt left 12:59 rbt joined 13:04 aborazmeh left 13:35 molaf left 13:50 soursBot left 13:53 aborazmeh joined, aborazmeh left, aborazmeh joined
cpan-raku New module released to CPAN! Red (0.1.10) by 03FCO 13:53
13:53 titsuki joined 13:54 andrzejku joined, bocaneri left 14:01 Altai-man_ joined 14:02 OpenZen joined 14:04 sena_kun left 14:05 sno joined 14:07 soursBot joined, bocaneri joined 14:08 shlomif joined 14:11 rbt left, rbt joined, rindolf left, wamba left 14:26 shlomif is now known as rindolf 14:29 titsuki left
Geth ¦ problem-solving: AlexDaniel assigned to jnthn Issue Raku needs a modern doc format that is familiar to most people github.com/Raku/problem-solving/issues/207 14:31
14:31 aborazmeh left
Geth ¦ problem-solving: lizmat unassigned from jnthn Issue Raku needs a modern doc format that is familiar to most people github.com/Raku/problem-solving/issues/207 14:53
15:00 stoned75 left 15:01 telex left 15:03 telex joined 15:05 titsuki joined 15:09 Doc_Holliwood left 15:15 sjm_uk left, sjm_uk joined 15:27 andrzejku left 15:37 PavelB joined 15:45 __jrjsmrtn__ joined 15:47 patrickb joined, _jrjsmrtn left 15:50 MilkmanDan left 15:56 MilkmanDan joined, soursBot left 15:57 soursBot joined 16:01 rustemb joined 16:02 sena_kun joined
rustemb hello! 16:03
16:04 Altai-man_ left
softmoth Hi! 16:04
rustemb how are you?
softmoth All, the docs (Language/02-reading-the-docs) mention "It is planned to add a feature for C<p6doc> (in conjunction with C<META6.json> changes) to extract B<all> Raku pod in files included with the installed distribution." I'm currently the main developer for p6^H^Hrakudoc, and would love to know if there's any discussion on this archived somewhere. 16:06
16:06 titsuki left, chloekek left
softmoth rustemb, I'm doing well, thanks! Writing you from my travel trailer in the mountains of Georgia, USA, on a beautiful afternoon. 16:07
rustemb Awesome! 16:08
[Coke] softmoth: do you mean docs.raku.org/programs/02-reading-docs ? 16:10
softmoth Oops, yes.
[Coke], generally I was looking to see if there's anything defined in distribution.meta saying "here's the docs users might care to read" 16:11
AFAIK, App::Mi6 has a setting that lets you declare which file it uses to produce README.md. I assume skaji would have used META if something were defined there. So I suspect this has been discussed but never formalized. 16:12
16:15 soursBot left
softmoth It's easy enough to do a heuristic like "search everything in .meta<provides resources> for .lines.starts-with('=head1')" which would probably be close to what users want. 16:17
16:18 soursBot joined
softmoth But I think that should either be formalized & documented for module authors ("All files with .extension eq any(«rakudoc rakumod '' pod6») containing at least one line that starts with '=head1' will be concatenated [in what order?] as top-level documentation for the distribution." As I write it out, it seems insufficient. It does feel like there should be a "documentation" key similar to "provides"; e.g., "documentation" 16:34
: { "zef" : ["bin/zef", "lib/Zef/CLI.rakumod" ], "Zef::CLient" : "lib/Zef/Client.rakumod" }
But probably this has been hashed out already previously, I'm just not sure where to look (an open issue on Raku/doc or something? 16:36
)
16:38 JJMerelo joined
softmoth JJMerelo, Hi! Maybe you know about what I just wrote? colabti.org/irclogger/irclogger_lo...06-28#l228 16:42
16:43 kensanata joined
softmoth (RE: META6.json describing what docs are available in a distribution) 16:43
JJMerelo No, there's nothing that I know of
But it would be great if your rakumod could do something like that. 16:44
rakudoc, sorry
ShimmerFairy softmoth: if you're talking about things like "install the README.rakudoc of a module", then it's worth noting that pure-document files can be written as "modules" that don't actually contain code. 16:45
Just slap a "unit module MyModule::README;" (with whatever module name you like of course) in the ambient text and you're good to go. 16:46
JJMerelo What shimmerfairy says is correct 16:47
You don't even need to name it anything at all. Just put it in the "provides" section and it will be precompiled and installed
it would be nice if that was processed by rakudoc. I don't know if it is, to be fair.
softmoth I've rewritten rakudoc's guts pretty much, since none of that was working anyways. 16:48
JJMerelo softmoth++
softmoth So it will definitely process those things once I'm through with it.
JJMerelo That would be great. 16:49
ShimmerFairy The closer we can get to texinfo's `info` program, the better (it's the neatest part of texinfo IMO) 16:50
softmoth ShimmerFairy, I may ask for your feedback in a little bit, if you're available for that. 16:54
(little bit: a week, maybe?0
ShimmerFairy sure. I'm thinking of starting work on Pod again soon (probably in my old SUPERNOVA repo), so my mind's in the documentation space again. 16:55
guifa So I came into a weird situation: in a test file, I parse a grammar using :args(,,). When I call the test file directly, (raku t/foo.t) the test passes and works fine. But when zef calls it, the arg disappears after the first time that it’s used (it’s passed along to a token) 16:58
16:59 melezhik joined
melezhik .tell JJMerelo NP, you can take a look at this meanwhile - sparrowdo.wordpress.com/2020/06/22...g-sparrow/ 16:59
tellable6 melezhik, I'll pass your message to JJMerelo
softmoth ShimmerFairy: Good. We may need a big cleanup metaproject. There's: several attempts at a Pod::TreeWalker fix for all the Pod::To::* not-implemented-here redundancy; the cry for a low-level rewrite (move Pod to NQP language braid) to remove a bunch of Pod parsing limitations and make $=pod contents much richer; the /doc split (Raku/doc #2983); rakudoc & maintaining a doc index for speedy lookups; modules.raku.org docs display 17:02
& searching; ...
JJMerelo melezhik I've got to turn the new book to Apress in two weeks time. 17:03
melezhik yeah, I see , NP
tellable6 2020-06-27T17:52:54Z #raku <JJMerelo> melezhik I'm swamped now (with the book and other things). Let me get back to you later.
JJMerelo I'm almost there, but not quite yet. So until July 15th, I'm afraid I can't do a lot of stuff...
melezhik I just shared what I've already got , at least from my point of view to the problem ...
ShimmerFairy Yeah, I'm working out writing essentially a "new" S26 at the moment; apart from some minor syntax fixups that I'd like to have, my main interest is working out the AST of a Pod document, and how you pipe that to rendered output (specifically how to avoid the combinatorial explosion of custom blocks/M<> codes and output formats)
softmoth guifa, "after the first time that it's used" makes me think this may be an issue with precompilation somehow. Is there a constant that shouldn't be baked into the pre-compiled bytecode? 17:04
guifa softmoth: I’m not sure. I haven’t examined the precomp yet, it’s just surprising that zef would get different results. If I use —force-install, the code actually runs fine FWIW 17:06
I’m going to try this afternoon to golf it down if I can 17:07
17:08 chloekek joined 17:10 melezhik left 17:16 rustemb left
sena_kun JJMerelo, ping? 17:31
softmoth ShimmerFairy, I'm very interested in that S26 work, if you want to bounce ideas off of someone. 17:32
17:33 chloekek left
ShimmerFairy softmoth: Yeah, I'll show it soon. I will say though, the main addition I'd like to make is being able to do things like =defn<The Term> the meaning , since I've never liked defn's weird "the first line of text is special" behavior, and that <> attachment can be used by other blocks for other neat things. 17:34
(defn's old behavior would still be supported for backwards-compat of course)
softmoth Nice. My main itch is that code annotations float out at the top level, making them impossible to format properly. E.g., github.com/softmoth/perl6-pod-to-m...-611251062 17:38
But IIRC there's a significant chunk of cool stuff in S26 that isn't implemented (or is implemented in a different way that isn't quite as cool). 17:39
I know tbrowder has worked a bunch on Tables and some other low-level stuff, but there's a limit to what can be done without fixing NQP. 17:40
ShimmerFairy Declarator blocks (those #| and #= things) have always been kind of weird (I don't consider them a kind of block declaration while existing S26 does because of this). Pod could definitely stand to be a bit more doxygen-esque for documenting declared things :)
what about NQP gets in the way of Pod, ooc?
And I actually want to add some kind of =rawtable block for LaTeX-esque raw tables (not necessarily stealing LaTeX syntax tho), for when you can't be bothered to make visually pretty tables. (They'd be easier on the parser too.) 17:42
softmoth It's been over a year since I looked at it, but I seem to recall the pod bits are extracted as just flat strings and then parsed separately, so things like pairs are not parsed the way Raku defines them, you have to use very simple pair syntax or it breaks. And other similar hacks with has dereference, etc.
ShimmerFairy My description of colonpair/fatarrow stuff limits what types of data you can use, and they have to be literal values, to avoid that icky run-code-in-documentation business. 17:44
I would like to keep Pod parsing in Rakudo as much as possible, simply because the more that's put in NQP, the more NQP objects you have to wrap up in Raku wrappers that expose all the same methods and attributes. 17:45
17:45 lucasb joined 17:47 rindolf left
JJMerelo sena_kun pong 17:48
softmoth ShimmerFairy, fair enough, there's probably a way to do it well outside of the main Perl6 grammar. Probably that needs to be reflected in the design doc; right now (from reading comments in the code and my impression from S26) it is viewed as a hacky shortcoming rather than a planned separation of concerns.
JJMerelo But very busy at the moment...
sena_kun JJMerelo, oh, was hoping you are having some nice rest on Sunday. Any ideas when it'll be cool for you to re docs? 17:49
JJMerelo Probably late next week...
ShimmerFairy softmoth: Pod is theoretically its own grammar on the language braid, it's just not done that way in practice at the moment in rakudo. And doing work in my own repo naturally suggests a separated grammar/actions collection :) 17:50
sena_kun JJMerelo, I see. Will ping you then in this case. o7
JJMerelo sena_kun :-) OK 17:52
sena_kun JJMerelo, just to clarify, I am not sure how busy you are, what will be really helpful is "look at a couple of drafts and write maybe 5-10 sentences of feedback", nothing more involved on this stage. If you are really busy beyond than, then hope you are doing fine. :) 17:54
JJMerelo I'm afraid yes. 17:55
17 days to Apress book deadline.
sena_kun I see. Good luck with your deadline!
17:55 rindolf joined
JJMerelo Thanks! 17:56
17:57 lichtkind joined 18:01 Altai-man_ joined 18:02 wamba joined, hungryd21 left 18:03 sena_kun left 18:18 soursBot left 18:25 soursBot joined 18:38 soursBot left 18:46 soursBot joined 18:50 JJMerelo left 18:52 lichtkind left 19:06 soursBot left 19:10 rbt left 19:11 rbt joined 19:12 soursBot joined 19:23 soursBot left 19:28 soursBot joined 19:29 softmoth_ joined 19:30 abraxxa joined 19:31 softmoth left 19:33 kensanata left, soursBot left 19:35 abraxxa left 19:36 abraxxa joined 19:47 PavelB left 20:01 wamba left 20:02 sena_kun joined 20:04 Altai-man_ left 20:05 xinming_ left, xinming_ joined 20:11 oneeggeach joined
cpan-raku New module released to CPAN! LibUSB (0.0.2) by 03GARLANDG 20:26
20:32 dolmen joined 20:34 molaf joined 20:36 softmoth_ left 20:37 softmoth_ joined, softmoth_ left 20:38 softmoth_ joined 20:59 kensanata joined 21:19 oneeggeach left 21:32 bocaneri left 21:44 aborazmeh joined, aborazmeh left, aborazmeh joined 21:46 mowcat joined 21:48 kensanata left, bocaneri joined 21:52 tejr left 21:58 tejr joined 22:01 Altai-man_ joined 22:04 sena_kun left 22:11 dolmen left 22:15 patrickb left 22:16 PavelB joined 22:32 aborazmeh left 22:37 rindolf left 22:54 pecastro left 22:58 mowcat left, mowcat joined 23:03 mowcat left, mowcat joined 23:05 softmoth_ left 23:16 aborazmeh joined, aborazmeh left, aborazmeh joined, finanalyst left 23:18 BuildTheRobots left 23:20 BuildTheRobots joined 23:29 cgfbee left 23:32 mithaldu_ left 23:35 mithaldu_ joined 23:39 aborazmeh left 23:40 hungrydonkey joined 23:41 aborazmeh joined, aborazmeh left, aborazmeh joined 23:43 cpan-raku left 23:44 cpan-raku joined, cpan-raku left, cpan-raku joined