🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
00:03 quotable6 joined, greppable6 joined, committable6 joined 00:04 shareable6 joined 00:05 linkable6 joined, nativecallable6 joined, tellable6 joined, coverable6 joined 00:36 jjido left 00:50 amenonsen left 00:51 amenonsen joined 01:43 moon-child left 01:44 moon-child joined 02:03 statisfiable6 joined, unicodable6 joined 02:04 squashable6 joined 02:05 reportable6 joined 02:13 squashable6 left 02:14 squashable6 joined
vrurg Xliff, japhb: as promised: vrurg.github.io/2021/10/05/Merging...bols-Issue 03:07
tellable6 2021-10-05T09:27:03Z #moarvm <jnthnwrthngtn> vrurg It's about separate compilation; the compilation of a module should start with an empty GLOBAL and accumulate the things that are `use`d by it.
03:14 evalable6 left, linkable6 left
moon-child is it possible to add candidates to multis in other modules? 03:18
03:18 Juerd left
moon-child m1.rakumod: unit module m1; our proto f(|) {*}; multi f(Int) { say 'int' } 03:18
03:18 juanfra left
moon-child m.raku: use m1; multi m1::f(Num) { say 'num' }; m1::f 5e0 03:18
currently errors
03:19 CIAvash left 03:28 squashable6 left 03:34 juanfra joined 03:37 CIAvash joined 04:16 evalable6 joined 04:30 squashable6 joined 05:12 ufobat joined 05:17 linkable6 joined 05:40 abraxxa-home joined
japhb Very interesting, vrurg, thank you! I think I may have worked around this in MUGS kindof by accident, but it does explain some weirdness that I see when I'm moving packages around. 05:54
06:02 reportable6 left 06:04 reportable6 joined 06:23 Sgeo left 06:57 jjido joined
Xliff m: $*PERL.compiler.version.say 07:19
camelia v2021.09.238.gec.65.ffc.8.d
07:29 jjido left 07:33 patrickb joined
nine moon-child: with what error? 07:33
moon-child: usually you'd export those multis (and the proto) 07:34
moon-child nine: I should clarify, 'm1::f 5e0' errors, claiming there is no matching candidate
'multi m1::f(Num)...' does not error
08:07 dakkar joined
CIAvash moon-child: I wanted to do something similar in the same unit, but it didn't work, the only option I found is `.wrap`: `&m1::f.wrap: sub (|c) { given c { when :(Num) { say 'num' }; default { callsame } } }` 08:26
08:47 Xliff left 08:51 patrickb left 08:54 jjido joined 09:12 patrickb joined 09:18 patrickb left, patrickb joined 09:30 jjido left 09:53 mykhal joined 10:07 linkable6 left 10:09 linkable6 joined 10:14 patrickz joined 10:15 patrickb left 10:22 lizmat_ joined, Geth_ joined, RakuIRCLogger joined 10:23 TempIRCLogger joined 10:24 RakuIRCLogger_ left, Geth joined, TempIRCLogger__ left, lizmat left, Geth left, Geth_ left 10:25 Geth joined, lizmat_ left, lizmat joined 10:46 sena_kun joined 11:39 tejr left 11:40 tejr joined
Geth ¦ examples: Altai-man self-unassigned Change extensions to .p6 github.com/Raku/examples/issues/57 11:45
11:57 jjido joined 12:00 simcop2387_ joined 12:02 perlbot joined, reportable6 left 12:04 reportable6 joined 12:10 jjido left 12:12 cognominal joined 12:31 simcop2387_ is now known as simcop2387 13:37 ggoebel joined
ggoebel Any pointers on how one specifies a dependency on a Perl5 module in the META6.json? 13:38
nine ggoebel: :from<Perl5> 13:40
or in the long hash form: 'from': 'Perl5'
ggoebel so... "depends": ["Spreadsheet::ParseXLSX:from<Perl5>"] ...? 13:42
nine yes
it's poasible that only one form is implemented. can't check now as I'm only on a phone 13:45
ggoebel that is strangely consistent :-) didn't expect that to work. will give it a try 13:46
hmm... zef install Inline::Perl5
===> Searching for: Inline::Perl5
===> Searching for missing dependencies: perl:from<native>
No such method 'as' for invocant of type 'Any'
nine I really need to remove that dependency as distros don't pit libperl.so in the library path 13:47
it's safe to ignore the error via zef command line switch
ggoebel thx
zef --force install Inline::Perl5 gives the same output. i.e. never gets to ===> Installing 13:50
getting further with zef --/depends --/test --force install Inline::Perl5 13:51
installed :-) 13:52
13:55 amulchinock joined 13:56 amulchinock left 14:11 immediate joined 14:12 Sgeo joined 14:13 simcop2387 left, perlbot left 14:17 perlbot joined 14:25 abraxxa left 14:26 simcop2387 joined 14:28 tejr left 14:30 tejr joined
immediate hi, why is the new operator not taking precedence: 14:34
m: sub infix:<^> is equiv(&infix:<**>) { $^a ** $^b }; say 5 * 4 ^ 3 14:35
camelia 8000
immediate expecting 320
moritz_ m: say 4 ^ 3 14:36
camelia one(4, 3)
moritz_ immediate: the problem is that there already *is* an infix:<^>, and raku cannot retroactively change the precedence of an operator 14:37
one could argue that this should raise an error though
(I believe I have argued that in the past)
immediate oh, sorry, thanks...
14:39 Petr joined
lizmat m: sub infix:<^>(\a,\b) is equiv(&infix:<**>) { "foo" } # immediate 14:40
camelia ( no output )
14:40 abraxxa joined
lizmat m: sub infix:<^>(\a,\b) is equiv(&infix:<**>) { "foo" }; say 4 ^ 5 14:41
camelia foo
Petr Nice day )) Anybody can help me? Can i convert html to docx &
lizmat immediate: the problem is that your candidate did not have 2 params
immediate lizmat: didn't it? With $^a and $^b? 14:42
and it gave a result 8000 back as (5 * 4) ^ 3
Petr I cant find any solution for this... 14:43
[Coke] Petr: I don't think raku has any interop with the latest office standard. You might find a solution in perl (that you could then use from Raku) 14:44
If it's a one off.. you should be able to cut and paste it in.)
Petr What about ODT? 14:45
MasterDuke i think tbrowder was working on some modules for office docs
and i think jnthn made a module to work with xls 14:46
lizmat immediate: ah, yes... :-) 14:47
m: sub infix:<^> is equiv(&infix:<**>) { $^a, $^b; "foo" }; say 4^5
camelia foo
lizmat so, I'm not sure why that didn't work for you, immediate 14:48
[Coke] stackoverflow.com/questions/422609...62#4227062 - a python example of using the word itself to do the conversion.
Petr thanks
lizmat aaah... it's about precedence
lizmat goes back to working on the weekly :-)
Petr i hate python ))) 14:49
what about jvm support& 14:50
lizmat there is a JVM backend, but it misses some features 14:51
most notably NFG
14:53 Petr left
ggoebel is this still a good place to ask questions about using comma? 15:22
immediate thanks liz\mat 15:25
sena_kun ggoebel, two its devs are currently here, so yes, pretty much. 15:26
15:50 immediate left
Tirifto Hello! Is there a way to re-dispatch a method call to a role that the given class does? The method resolution order only includes parent classes, but not roles, so stuff like ‘callsame’ doesn’t work. Is anything like it available for roles, too? 16:20
(I guess I could inherit from the role instead, but that feels a bit hacky.) 16:21
MasterDuke maybe explicitly calling `RoleName::method-name()`
Tirifto Ohh, ‘::’, I didn’t realise that was a thing that would work here! 16:24
Or maybe it wouldn’t. :P | Could not find symbol '&remove' in 'Container' 16:28
16:29 melezhik joined
melezhik . 16:29
Tirifto Ahh, yes, I had to do ‘self.RoleName::method-name()’. Thank you, melezhik and MasterDuke! 16:34
16:35 melezhik left 16:37 berber44 joined 16:46 eseyman joined 16:47 dakkar left 16:48 abraxxa-home left 17:05 discord-raku-bot left 17:06 discord-raku-bot joined 17:10 hyperreal joined 17:11 melezhik joined
melezhik I've added "recently upvoted" page to mybfio - feel free to add any interesting Raku projects and upvote them ( one can also write a review if the wish ) - mybf.io/?filter=top 17:12
17:14 patrickz left 17:17 patrickb joined 17:21 melezhik left 17:22 melezhik joined 17:23 melezhik left 17:28 berber44 left 17:35 jjido joined 17:36 Juerd joined
lizmat And yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2021/10/06/2021-40-its-here/ 17:37
17:47 sena_kun left 18:02 reportable6 left 18:10 berber44 joined 18:11 ggoebel left 18:18 [Coke]_ joined 18:20 [Coke] left 18:22 berber44 left 19:15 abraxxa left 19:29 elcaro left 19:32 ggoebel joined 19:34 dg left 19:39 dg joined 19:40 elcaro joined 19:57 berber44 joined 19:59 Xliff joined 20:03 reportable6 joined 20:10 berber44 left 20:26 ufobat left 20:32 [Coke]_ is now known as [Coke] 20:44 patrickb left 21:44 linkable6 left, evalable6 left, linkable6 joined 21:45 evalable6 joined 22:45 linkable6 left, evalable6 left 22:46 evalable6 joined
Juerd Yay! 22:48
22:54 jjido left 23:14 Tirifto left 23:19 Tirifto joined 23:46 linkable6 joined 23:50 Petr joined
Petr hi all) i cant find info about selenium web driver 23:52
Raku is used in production today? Sorry for stupid question )) 23:57