🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
00:00 reportable6 left 00:02 reportable6 joined 00:04 xwu1 left 00:25 deoac left 00:49 xwu1 joined 01:03 dogbert17 left 01:05 rf left 01:06 dogbert17 joined 01:13 kst left 01:46 guifa joined 02:08 guifa left 02:25 guifa joined
guifa can you use the EXPORT sub to push out a multi sub without clobbering the other versions of it? 03:02
03:25 linkable6 left, evalable6 left 03:27 evalable6 joined, linkable6 joined
_elcaro_ No reason who that shouldn't work 04:08
04:14 guifa left 05:14 reportable6 left, linkable6 left, coverable6 left, nativecallable6 left, tellable6 left, quotable6 left, benchable6 left, evalable6 left, bisectable6 left, unicodable6 left, sourceable6 left, greppable6 left, statisfiable6 left, shareable6 left, notable6 left, squashable6 left, committable6 left, sourceable6 joined, quotable6 joined 05:15 tellable6 joined, squashable6 joined, linkable6 joined, committable6 joined, nativecallable6 joined, shareable6 joined, evalable6 joined, bisectable6 joined 05:16 reportable6 joined, coverable6 joined, benchable6 joined, statisfiable6 joined, unicodable6 joined 05:17 notable6 joined, greppable6 joined 06:00 reportable6 left 06:09 abraxxa joined 06:44 ab5tract joined 06:49 xwu1 left 07:00 MoC joined 07:13 jpn joined 07:15 jpn left, jpn joined 07:18 Vyrus joined 07:19 RonaldR34g4m left 07:21 jpn left 07:23 jpn joined 07:24 jpn left 07:25 jpn joined 07:26 jpn left, jpn joined 07:30 jpn left 07:31 xwu1 joined, jpn joined 07:57 Sgeo left 08:22 tea3po joined 08:25 teatwo left, simcop2387 left, perlbot left 08:31 simcop2387 joined 08:32 perlbot joined 08:37 jpn left 08:39 jpn joined 08:44 jpn left 08:57 xwu1 left 08:59 xwu1 joined 09:11 abraxxa left 09:16 wayland76 joined 09:21 jpn joined, xwu1 left 09:30 tailgate left, tailgate joined 10:14 Manifest0 joined 11:10 xkr47 left, xkr47 joined 11:30 jpn left 11:46 jpn joined 11:47 reportable6 joined 11:52 tbrowder_ left, tbrowder_ joined, jpn left 12:00 reportable6 left 12:07 MoC left 12:24 jpn joined, RonaldR34g4m joined, Vyrus left 12:32 jpn left
su.shi custom operators are super slow to start up, is there anyway to precompile them or something? 12:35
seems like it's just the circumfix operator 12:36
i love this language so much 12:37
12:40 jpn joined
now if only i could make a custom operator do word quoting 12:41
antononcube @sushi I assume you want unary operator. (Instead of using the Q-lang.) 12:45
su.shi i would like to be able to define something like sub prefix:<`>(*@a) {...} and use it like `my words to pass; instead of `<my words to pass>; 12:46
nemokosch yeah that sounds beyond what operators can do 12:52
basically you want to create a slang
antononcube @sushi Hmm... you might be able to do this: ` my words to pass; , say, using RakuAST. 12:58
su.shi ah not worth it for the little script im writing 13:00
ill have to look into it sometime thoguh
13:06 MoC joined
antononcube @sushi Here is what the Yoda persona prompt of "LLM::Prompts" could generate: > Smart, choosing your battles is. Life, approach to, a wise one. 13:07
13:19 teatwo joined 13:23 tea3po left 13:28 jpn left 13:34 jpn joined 13:35 reportable6 joined 14:31 DarthGandalf left 14:34 DarthGandalf joined
leont getting pinged because I have a highlight for sushi (because of a very different channel) 😅 14:52
That's Audrey on the right, right? twitter.com/chheplo/status/1699766659060568487
14:57 xwu1 joined 15:19 xwu1 left
[Coke] wow, looks like! 15:21
[Coke] composes a name-drop email for the architecture team at work! :) 15:24
15:26 xinming left 15:28 xinming joined 15:29 xwu1 joined 15:45 xinming left 15:47 xinming joined 15:48 xwu1 left 15:55 xwu1 joined 16:00 Sgeo joined
[Coke] time.com/collection/time100-ai/630...drey-tang/ is the direct link to her. 16:01
16:07 jpn left
japhb audrey-tang++ # As usual! 16:16
El_Che impressive 16:28
17:07 linkable6 left, evalable6 left 17:08 evalable6 joined 17:10 linkable6 joined 17:19 jgaz left 17:47 wayland joined 17:48 wayland76 left 17:53 manu_ is now known as eseyman 18:00 reportable6 left 18:01 reportable6 joined 18:13 charsbar left, charsbar joined 18:27 dutchie left 18:28 dutchie joined 18:39 guifa__ left 18:44 lucerne joined 18:48 lucerne left 18:49 lucerne joined 19:33 xwu1 left 19:42 xwu1 joined 20:20 swaggboi joined, tea3po joined 20:21 swaggboi left 20:22 Vyrus joined 20:23 swaggboi|2 joined, teatwo left 20:24 swaggboi|2 left, wayland left, RonaldR34g4m left, swaggboi joined, wayland joined 20:28 jgaz joined
tbrowder__ is any mac user running any version earlier than Big Sur (11.7.8)? 20:51
21:20 deoac joined 21:28 MoC left 21:30 swaggboi left 21:47 swaggboi joined 22:07 Xliff joined
Xliff \o 22:07
Hi. I want to create a Promise that runs a piece of code that I can kick off at a later date. 22:08
tbrowder__ ok, what is the easy way with raku to copy a file. docs specify copying a path to a path. so to copy file "a/foo" to dir "b" we have to "copy a/foo, b/foo". what a pain. why can't raku "copy a/foo, b/"?
Xliff tbrowder: Why not make a sub? 22:09
sub copyFile ($a, $b) { $a.IO.copy($b) }
$a and $b are filenames
22:23 GK74 joined, GK74 left
Xliff gist.github.com/Xliff/976f3808165c...f5cd14aa85 22:30
antononcube @tbrowder " @Anton Antonov a sensitive question on yr recent speech in russia, any sense of Russian scientists' opinions on invasion?" -- The conference I attended (and gave presentation at) was in St. Petersburg, Russia, but I did my participation online. (I think 95% attended in person) So, it is somewhat difficult for me to judge what people think about the invasion, without having my own biases and 22:31
Xliff m: sub a { say 42 }; my @a = (); a( |@a ) 22:33
camelia 42
tbrowder__ Xliff: ah, a sub, that's a good idea, 22:40
antonantonov: thanks, i assumed you were there for some reason 22:41
Xliff: i'll try it but i don't think it will work with dirs 22:45
22:47 Voldenet left
tbrowder__ this is a kludge one-liner: copy $patha, "$somedir/{$patha.IO.basename}" 22:47
that works, but making that a sub is a good idea. but still, raku should handle it better 22:48
i think i filed an issue long ago and it got shot down 22:49
22:53 Voldenet joined 22:56 jpn joined
tbrowder__ no, i didn't. so what do ppl think about having raku's "copy" allow coping to a directory? posix does, why not raku? 22:57
23:05 jpn left
tbrowder__ antononcube: ^^^ 23:14
antononcube @tbrowder Thank you for your interest! 🙂 23:17
@tbrowder I am "in the middle" of using "Text::Utils". 23:18
tbrowder__ antononcube: i bought wolfram’s giant book not long after it came out. i thought he had solved the universe with his magic. you have piqued my interest again in the wolfram products. prices have come down a lot and the relations/transforms you’ve shown between raku and wolfram are intriguing. 23:42
i know a woman who uses an excel spreadsheet in weird ways to create weekly schedules for our local senior center. i tried to help her with automating some of the process with raku but didn’t have much luck. wolframs ability to wrangle data from multiple binary sources may make a relook worthwhile. 23:47
antononcube @tbrowder Yes, WL can help. I just released today another version of the WL paclet "DataReshapers": resources.wolframcloud.com/PacletR...Reshapers/ . 23:49
@tbrowder My point is actually, that WL has a more general take on what datasets are -- they do not consider tabular data that important. (At least initially.) Hence, I have been make some paclets and presentations on how to streamline data wrangling in WL. 23:51
Well, I apply the same workflows in Raku too.