🦋 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:15 fridim left, fridim joined
cpan-raku New module released to CPAN! Font::FreeType (0.3.1) by 03WARRINGD 00:22
01:03 newbie32 joined 01:09 oddp_ left 01:13 molaf left 01:25 molaf joined 02:07 cpan-raku left 02:08 cpan-raku joined, cpan-raku left, cpan-raku joined 02:09 hungrydonkey left, ensamvarg3 joined 02:12 newbie32 left 02:15 usermac joined 02:16 usermac left 02:55 newbie52 joined 03:00 sivoais_ left, sivoais joined 03:16 xinming_ left 03:17 xinming_ joined 03:19 newbie52 left 03:45 aborazmeh joined, aborazmeh left, aborazmeh joined 03:48 kst joined 03:52 mowcat left 03:58 hungrydonkey joined 04:06 hungrydonkey left, yangzq50 joined 04:07 yangzq50 left, yangzq50 joined 04:10 hungrydonkey joined 04:13 xinming_ left, xinming_ joined 04:19 rbt left, rbt joined 04:39 Sgeo left 04:55 yangzq50 left 04:56 yangzq50 joined 05:00 hungrydonkey left 05:11 xinming_ left 05:13 xinming_ joined 05:21 Sgeo joined 05:22 aborazmeh left 05:31 ufobat joined 05:35 xinming_ left, xinming_ joined 05:37 Sgeo left, ufobat left, ufobat joined 05:38 Sgeo joined, wamba joined
samebchase- If I have a list of hashes, what's the best way to destructure each hashes keys in a pointy loop? Say this is my hash: `%foo = %{a => 1, b => 2}` how do I introduce variables `$a` and `$b` which destructure those respective keys? 05:40
I know how to do it in a function signature and in a variable binding. I'm getting tripped up trying to do the same in a pointy loop. 05:42
I am trying something like `for %foo, %foo -> (% (:a(:$a), :b(:$b)) { say $a, $b }` also is there any shortcut where the keys are not expected to be renamed? 05:45
cpan-raku New module released to CPAN! Template::Mustache (1.2.1) by 03SOFTMOTH 05:46
05:48 hungrydonkey joined, maettu left 05:50 maettu joined 06:00 hungrydonkey left, hungrydonkey joined 06:12 hungrydonkey left, hungrydonkey joined 06:18 dolmen joined 06:20 hungrydonkey left 06:26 rindolf joined 06:49 JJMerelo joined
JJMerelo Current list of unanswered (or answered with answers with score <= 0) in StackOverflow stackoverflow.com/questions/tagged/raku Take a look, score up answers if they fit, edit question, and try to help in whatever way you can 06:50
3% unanswered rate is nothing to write home about, but still keeping a high answer record helps newcomers and oldcomers alike 06:51
SmokeMachine m: @a = {:1a, :2b}, {:3a, :4b}; for @a -> % (:$a, :b($another-name)) { dd $a; did $another-name }
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '@a' is not declared
at <tmp>:1
------> 3<BOL>7⏏5@a = {:1a, :2b}, {:3a, :4b}; for @a -> %
SmokeMachine m: my @a = {:1a, :2b}, {:3a, :4b}; for @a -> % (:$a, :b($another-name)) { dd $a; did $another-name } 06:52
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
did used at line 1. Did you mean 'dir', 'die', 'dd'?
SmokeMachine m: my @a = {:1a, :2b}, {:3a, :4b}; for @a -> % (:$a, :b($another-name)) { dd $a; dd $another-name }
camelia 1
2
3
4
06:59 patrickb joined
holyghost weekend time ! 07:06
07:06 holyghost left 07:09 agentzh left, agentzh joined, agentzh left, agentzh joined 07:27 wamba left
samebchase- That is perfect SmokeMachine! Will try it out. Thank you! 07:36
07:40 MasterDuke joined
JJMerelo releasable6: status 07:43
releasable6 JJMerelo, Next release in ≈1 day and ≈11 hours. There are no known blockers. Changelog for this release was not started yet
JJMerelo, Details: gist.github.com/91edeec18cb08fa85f...e897851880
07:45 __jrjsmrtn__ joined 07:47 _jrjsmrtn left 07:51 sena_kun joined 08:22 rbt left 08:23 rbt joined 08:24 vrurg left, pecastro joined 08:25 vrurg joined, yangzq50 left, yangzq50 joined 08:29 vrurg left 08:36 oddp_ joined
patrickb How can I mark a test to not be run automatically during install and similar? 08:42
is this what xt/ is for?
MasterDuke i believe the testing tools usually don't run xt/ test automatically 09:04
patrickb I just read about the Lancester consensus github.com/Perl-Toolchain-Gang/too...g-contexts 09:05
Seems Perl has quite a sophisticated system for this
I suspect we don't.
09:12 Altai-man_ joined 09:14 sena_kun left 09:20 JJMerelo left 09:21 elgalloitaliano left 09:25 kensanata joined 09:29 kktt007 joined 09:32 Sgeo left 09:37 wamba joined 09:41 Black_Ribbon left 09:48 vrurg joined 09:49 vrurg left, vrurg joined 10:09 Petr37 joined 10:22 ShimmerFairy left 10:40 Petr37 left, JJMerelo joined
timotimo .seen lembark 10:47
tellable6 timotimo, I saw lembark 2020-07-03T03:59:19Z in #moarvm: <lembark> Found it: cloned from githup.
timotimo .seen lembark_
tellable6 timotimo, I saw lembark_ 2020-07-03T03:59:19Z in #moarvm: <lembark> Found it: cloned from githup.
timotimo .tell lembark just wanted to check if you got my mails re: the workload that grew too much in memory usage 10:48
tellable6 timotimo, I'll pass your message to lembark
10:56 wamba left 10:58 wamba joined 11:04 markoong joined 11:10 dogbert17 joined 11:13 sena_kun joined 11:14 Altai-man_ left 11:20 aborazmeh joined, aborazmeh left, aborazmeh joined 11:28 markong joined, markoong left 11:32 aborazmeh left 11:36 JJMerelo left 11:44 ufobat left, vrurg left, ufobat joined 11:49 vrurg joined 11:54 xinming_ left, vrurg left, xinming_ joined 12:07 cgfbee left 12:08 wildtrees joined 12:14 hungrydonkey joined 12:18 cgfbee joined 12:23 molaf left 12:25 rbt left 12:26 rbt joined, hungrydonkey left, hungrydonkey joined 12:29 holyghost joined 12:30 vrurg joined
cpan-raku New module released to CPAN! Gnome::Gtk3 (0.29.1) by 03MARTIMM 12:33
New module released to CPAN! Gnome::Gdk3 (0.17.1) by 03MARTIMM
rypervenche Is there a way to have zef use /root/.raku when running as root and install modules there instead of anywhere outside of its home directory? 12:36
12:39 [1]holyghost joined 12:42 holyghost left, [1]holyghost is now known as holyghost 12:46 wamba left 12:58 hungryd13 joined 13:01 hungryd24 joined, hungrydonkey left 13:03 hungryd13 left 13:04 hungrydonkey joined 13:05 hungryd24 left 13:07 jhill left, __jrjsmrtn__ left, jhill joined 13:08 __jrjsmrtn__ joined 13:12 Altai-man_ joined 13:15 sena_kun left
timotimo i believe zef has a --into flag or something like that, but you'll of cours also need to tell rakudo to look in there using RAKUDOLIB or RAKULIB not sure which; it'll be an inst#/root/.raku/something most probably 13:18
13:23 hungryd98 joined 13:26 hungrydonkey left 13:57 molaf joined
rypervenche I'll give it a shot, thanks. 13:58
cpan-raku New module released to CPAN! Terminal::Getpass (0.0.7) by 03TITSUKI 14:00
14:06 kktt007 left, kktt007 joined 14:07 wildtrees_ joined 14:10 wildtrees left 14:15 orinthe6 joined 14:16 orinthe left, orinthe6 is now known as orinthe 14:18 AlexDaniel left 14:21 holyghost left, vrurg left 14:24 vrurg joined 14:27 hungrydonkey joined, hungryd98 left 14:28 yangzq50 left 14:29 yangzq50 joined
[Coke] who "owns" rakudo.org? looking at github.com/perl6/rakudo.org/issues/7 - need to decide if we really do want to be pushing only star vs. compiler, the notes there need to be considered in the scope of the rename, and zoffix noted that at one point rakudo.org was just going to redirect to raku.org 14:44
I don't know if anyone is planning for that last thing to still happen. 14:45
vrurg [Coke]: the redirect thing doesn't look right to me. 14:51
14:51 cpan-raku left 14:52 cpan-raku joined, cpan-raku left, cpan-raku joined
vrurg But the ownership of the repository is better be transferred to rakudo org 14:52
patrickb Coke: I did the last larger rework of rakudo.org. I think there is no real owner of the website. 15:01
I think there currently isn't much of a long term plan wrt the website.
An important bit that changed since that ticket is the relocatable precompiled releases. 15:02
I personally prefer those to the Star bundles. The current website reflects that a little bit. 15:03
[Coke] the problem with putting it into the rakudo org is that then it gets tied up with CLAs.
15:04 xinming joined
[Coke] I did the two low hanging items left in #7 - going to close out that ticket, folks can re-open tickets for any items not covered, I think. 15:04
patrickb I don't think merging rakudo.org back into raku.org is going to happen. I mean, we can do that, but in the past the strong counter argument has always been to not discourage alternative implementations.
[Coke] there's a ticket to move it to the Raku org so at least it's out of perl6/
15:06 hungryd3 joined 15:07 xinming_ left
[Coke] is this done? github.com/perl6/rakudo.org/issues/18 15:07
Altreus Apparently this doesn't work like it did in Perl5 ... how do I call this without exporting it? gist.github.com/Altreus/2c5b59f3bb...d6406ef568 15:08
El_Che There is certainly merit to the different implementation argument, but for most of the world it's very confusing
15:09 SmokeMachine left
[Coke] Altreus: "our sub" 15:09
15:09 SmokeMachine joined
Altreus oh! 15:09
thanks :)
15:09 hungrydonkey left
patrickb I'm not entirely sure what the files page referred to at that time, but I know of no place on rakudo.org, where a hard version is still in use. So I think it's done. 15:10
[Coke] patrickb: can you close out the ticket with that note? Thanks! 15:11
15:11 hungryd3 left 15:13 sena_kun joined 15:14 hungrydonkey joined, Altai-man_ left 15:36 kensanata left 15:39 molaf left 15:55 skids joined 16:04 poga left 16:07 holyghost joined 16:09 patrickb left
guifa2 jnthn: question I had the other day is whether augment by design is supposed to be lexically scoped or if the current functionality (acting globally) is the intended functionality? 16:32
I can see great reasons for both, but one will make my life a lot easier :-) 16:33
jnthn It's global 16:35
In general, OO things and lexical things are orthogonal 16:36
guifa2 jnthn: okay, sweet. I'm finishing up a UserTimezone module that gets me an Olson ID. Since I need the latter for proper date formatting, I think I'm going to have Intl::* augment with an tz-identifier method and wrap the new to set it on creation 16:41
augment DateTime, I mean
[Coke] if you want limited impact from an OO change, you can subclass and use just the subclass in your local scope
guifa2 [Coke] I don't :-) 16:42
[Coke] ok. :)
tbrowder anybody running raku on openbsd? if so, any way to install other than source or rakubrew for up-to-date releases? what do you recommend? thanks. 16:46
jnthn guifa2: Just be aware that augment and preocmpilation do not play well together. 16:47
guifa2 jnthn: makes sense. DateTime stuff will be in beta for a while so I can play around with different strategies for approaching it and see the impacts they have 16:51
Actually 16:53
jnthn: wrapping probably wouldn't have the same precompilation issues would it? so if I wrapped .new and did a mix in? 16:54
16:59 hungrydonkey left
[Coke] tbrowder: rakudo.org/downloads - other platforms - BSD 16:59
Pkgsrc.se provides rakudo packages for NetBSD and other BSD flavors.
17:01 holyghost left
tbrowder [Coke]: thnx, i missed that in my haste. 17:04
17:06 Zero_Dogg left 17:08 Zero_Dogg joined 17:12 Altai-man_ joined 17:14 sena_kun left 17:20 codesections left 17:29 ufobat left 17:46 ensamvarg3 left, HarmtH left, Sgeo joined
SmokeMachine hi jnthn, is there a easy way of extending META6? 17:47
18:04 leont left, cpan-raku left 18:07 cpan-raku joined, cpan-raku left, cpan-raku joined
SmokeMachine jnthn: sorry, wrong person... 18:09
18:13 Black_Ribbon joined 18:24 bocaneri left 18:40 HarmtH joined 18:42 skaji_ left 18:43 skaji_ joined 19:10 marcusr left, marcusr joined 19:13 sena_kun joined 19:14 wamba joined, Altai-man_ left 19:15 kensanata joined
cpan-raku New module released to CPAN! Red (0.1.18) by 03FCO 19:32
19:35 oddp_ left
rypervenche I'm curious how you all do your modules. Up until now I've only been installing modules via zef for my user, however I've recently had the need to run a script as root. Do you all just let zef install into /usr/share/perl6? I normally avoid anything not from my package manager putting things into root-owned directories like that. But forcing zef to use /root/.raku feels kind of hacky. 19:43
And also isn't completely perfect, since p6doc still installed into /usr/share/perl6.
rbt I use rakubrew for development and Docker images to push to other systems. 20:03
20:04 tejr left
SmokeMachine rypervenche: maybe you’d like to take a look at 6pm... 20:04
guifa2 new module! 20:08
.weekly: github.com/alabamenhu/UserTimezone 20:09
lizmat guifa2++
weekly: github.com/alabamenhu/UserTimezone
notable6 lizmat, Noted! (weekly)
lizmat guifa2: don't start with . :-) 20:10
20:10 tejr joined
guifa2 lizmat: I couldn't remember if it was .weekly or weekly: so I hedged my bets and used both. And failed 20:10
lol
20:32 oddp joined
oddp Is design.raku.org/S09.html#User-defi...y_indexing already in raku with an alternative syntax or not yet implemented? 20:33
20:34 dolmen left, dolmen_ joined 20:35 aborazmeh joined, aborazmeh left, aborazmeh joined, guifa2 left
moritz I don't think that's implemented 20:36
lizmat but you *could* implement it, with your own AT-POS / AT-KEY implementation?
oddp Right, good to know. Thanks! 20:37
20:40 guifa2 joined
lizmat oddp: source of inspiration: modules.raku.org/dist/Hash::Agnost...:ELIZABETH 20:42
also: modules.raku.org/dist/Array::Agnos...:ELIZABETH
20:43 squashable6 left, squashable6 joined
oddp Will take a look. Thanks again! 20:47
21:06 Noisytoot left
raku-bridge <theangryepicbanana> Are there any nativecall gods who can help me with this? I would like to be able to inline a forward-declared c-struct in a c-union like this: pastebin.com/FpnHGzXi, but I am getting this unhelpful error message: ===SORRY!=== P6opaque: no such attribute '$!inlined' on type Attribute+{<anon|2>} in a Attribute+{<anon|2>} when trying to bind a value 21:09
21:10 rindolf left 21:12 Altai-man_ joined
timotimo yeah, forward declared won't fly when you try to insert, since at the point the } of the union is parsed it will try to compose, at which point inlined types will need to be finished, too 21:13
can possibly make this work with the MOP? no clue 21:14
21:14 Noisytoot joined
timotimo (or i'm wrong about this completely) 21:14
21:14 sena_kun left
timotimo a full traceback could be helpfuler 21:14
this is happening at the exact spot the attribute that "is inlined" (aka HAS) is declared? 21:15
21:15 MasterDuke left
timotimo pastebin is down? 21:15
oddp yeah, and a lot of other major sites as well. 21:31
lizmat seems cloudflare is down / dropped out of DNS 21:32
21:34 patrickb joined 21:35 cydf joined
timotimo looking forward to the incident report 21:35
kawaii cat escaped into the server room
21:36 cydf left, cydf joined
Kaiepi cloudflaaaare 21:37
timotimo started catting all the logs, that caused a severe load spike they were not ready for
21:41 kensanata left 21:43 theangryepicbana joined 21:44 Noisytoot left
theangryepicbana timotimo: Re "a full traceback could be helpfuler", that is the full traceback 21:45
21:45 Noisytoot joined
theangryepicbana timotimo: Re "this is happening at the exact spot the attribute that "is inlined" (aka HAS) is declared?", yes it is (discord is down btw, which is why I'm here) 21:46
21:46 cpage left 21:48 theangryepicbana left
raku-bridge <theangryepicbanana> (ah nice, it's back up0 21:48
timotimo hey banana 21:51
can you try running with --ll-exception?
21:52 aborazmeh left
raku-bridge <theangryepicbanana> yeah sure 21:52
<theangryepicbanana> timotimo: pastebin.com/YJf3thia 21:54
timotimo mhh need to enhance the linkify script to also handle pastebins 21:57
raku-bridge <theangryepicbanana> timotimo: is it not viewable or somethign? 21:59
timotimo oh sorr 22:01
it's viewable
i got nerdsniped 22:02
raku-bridge <theangryepicbanana> ah ok
timotimo nqp::bindattr_i($attr, $attr.WHAT, '$!inlined', 1); 22:03
22:08 theangryepicbana joined 22:09 theangryepicbana left
raku-bridge <theangryepicbanana> ? 22:09
timotimo ok, the linkify script won't do much with these lines anyway, because stuff in stage2 would need a kind of source map or something 22:17
anyway, i'm a bit too scatterbrained to look up what role may have been mixed into that attribute 22:19
22:19 rir joined
raku-bridge <theangryepicbanana> ok. I can probably just turn the classes into opaque pointers for now, but it'd be nice if there could be a solution at some point 22:20
22:22 cydf left 22:26 markoong joined 22:27 markong left 22:34 aborazmeh joined, aborazmeh left, aborazmeh joined 22:39 wamba left
rir On docs.raku.org the search widget is ineffective when the result set exceeds the browser's height. 22:44
timotimo oh dang 22:46
can you give an example or two for that situation?
like searching for "a" or "n" or so?
22:46 Petr37 joined 22:50 wildtrees_ left 22:52 patrickb left 22:53 wildtrees_ joined 22:56 wildtrees_ left 23:00 orinthe left, rir left 23:07 pilne joined 23:13 sena_kun joined 23:14 Altai-man_ left 23:18 sena_kun left
oddp Is there a way to pass a reduction operator similar to .map(&[*])? 23:20
jnthn No special syntax for it, but {[+] @_} is quite short 23:24
m: sub foo(&x) { x(1,2,3) }; say foo {[+] @_} 23:25
camelia 6
jnthn m: sub foo(&x) { x([1,2,3]) }; say foo {[+] @_} # or by single arg rule, this
camelia 6
oddp Alright, that should do. Thanks a lot! 23:27
23:30 pecastro left 23:32 cydf joined 23:38 oneeggeach joined 23:48 aborazmeh left