🦋 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.
wayland76 [Coke]: Thanks! 00:02
00:03 librasteve joined
wayland76 weekly: wayland.github.io/blog/raku/Reachi...nguage.xml 00:06
notable6 wayland76, Noted! (weekly)
00:08 librasteve left 00:21 librasteve joined 00:26 librasteve left 00:39 librasteve joined 00:43 jjido left 00:44 librasteve left 00:46 vasko4 joined 00:49 Manifest0 left 01:01 vasko4 left 01:02 yewscion left, vasko4 joined 01:04 yewscion joined 01:12 librasteve joined 01:17 librasteve left 01:30 librasteve joined
guifa SmokeMachine how would I set the parent class for objects created with that HOW? 01:50
01:51 hulk joined, kylese left 02:03 yewscion left 02:04 yewscion joined 02:15 hulk left, kylese joined
SmokeMachine guifa: add_parent? On this case (github.com/FCO/Red/blob/29f70d9c86...umod#L179) I added a role instead of a parent… but you can do that on compose, or on new_type… 02:17
02:33 librasteve left 02:47 librasteve joined
guifa ah I was thinking about using set_default_parent 02:48
akin to the grammar
02:51 librasteve left 03:02 yewscion left 03:05 yewscion joined 03:20 librasteve joined 03:45 kylese left 03:47 kylese joined 04:00 Aedil joined 04:03 yewscion left 04:04 yewscion joined 04:06 Aedil left 04:11 Aedil joined 04:12 PipStuart left 04:26 yewscion left, librasteve left 04:27 yewscion joined 04:39 librasteve joined 04:44 librasteve left 04:56 librasteve joined 05:01 librasteve left 05:02 yewscion left 05:05 yewscion joined 05:20 yewscion left 05:21 lichtkind joined 05:27 yewscion joined 05:29 librasteve joined 05:33 librasteve left 05:36 lizmat left 05:48 lizmat joined 06:01 librasteve joined 06:02 yewscion left 06:05 yewscion joined 06:07 librasteve left 06:25 librasteve joined 06:27 yewscion left 06:29 librasteve left 06:34 yewscion joined 06:43 Aedil left 06:47 lizmat left 06:48 Sgeo_ joined 06:49 toddr left 06:50 corwin left 06:51 Sgeo left 06:52 lucerne5 joined, toddr joined, lucerne left, lucerne5 is now known as lucerne 06:54 librasteve joined 06:58 yewscion left 06:59 librasteve left 07:05 librasteve joined 07:08 yewscion joined 07:17 corwin joined 07:24 yewscion left 07:30 yewscion joined 07:36 lizmat joined
wayland76 Question: What's the official DockerHub image for Raku that tracks the latest release? 07:41
07:42 lichtkind left
Xliff \o 07:52
In the test module. How can I get subtest() to NOT output to the terminal?
07:59 lichtkind joined 08:02 yewscion left 08:04 lichtkind left 08:05 yewscion joined
Xliff In Test.pm6, we have subtest() doing "_diag "Subtest" ~ ($desc ?? ": " ~ $desc !! ''), :force-informative;' as its first instruction. For raw terminal based tests this causes problems. Can we make this go to $output, instead? 08:19
08:19 librasteve left 08:20 lizmat left 08:23 Aedil joined 08:31 librasteve joined
disbot3 <librasteve> Sussy: to answer your question So what is the niche or I would say the blue ocean we are looking for? It has been decided? 08:40
08:45 yewscion left
disbot3 <librasteve> there are several promising directions - eg (i) raku Grammar fit for LLM-DSL, (ii) raku one-liners, (iii) unicode regexes, (iv) minority language coding and docs, (v) raku as the purest possible expression of HTMX ... the common thread here is that all of these have an external community (LLM folks, Unix folks, regex folks, non-English coders, HTMX adherents) into which we can evangelise ... but I would say that open source 08:47
is an exercise in cat herding and that this is more a process of throw stuff at the wall and see what sticks
08:48 yewscion joined
disbot3 <librasteve> I'm putting my tuits into (v) btw and channeling my Matt Mullenweg anger into making a opinionated and distinctive web development library for coders (harcstack.org) 08:49
08:50 librasteve_ joined 09:03 yewscion left 09:05 yewscion joined 09:18 Sussy joined
wayland76 ...and an improved raku.org :) 09:20
09:21 Sussy left
disbot3 <librasteve> indeed - improving friction to easier adoption 09:29
09:38 wayland76 left, wayland joined 09:55 yewscion left 10:05 yewscion joined
disbot3 <holmdunc> wayland76: If you click the vertical "..." icon in the YouTube playlist then "Show unavailable videos" then more detailed info is shown for the status of each video. 10:13
<holmdunc> IMO YouTube made the change to hide unavailable videos in the UI by default because it reflected badly on YT themselves when peoples' carefully curated playlists ended up peppered with deleted videos (taken down to due to YT's terms of service) 10:14
10:44 jjido joined 10:50 Sgeo_ left 11:02 yewscion left 11:04 yewscion joined
wayland holmdunc: Yes; my point is, there were 14 videos I could see there, and now they've been made private. I want to know if this is intentional or accidental. 11:12
11:15 yewscion left 11:20 Manifest0 joined 11:48 librasteve left 11:55 librasteve joined 11:59 librasteve left
Xliff In Test.pm6, we have subtest() doing "_diag "Subtest" ~ ($desc ?? ": " ~ $desc !! ''), :force-informative;' as its first instruction. For raw terminal based tests this causes problems. Can we make this go to $output, instead? 12:00
To rebuild the test module, do I have to recompile raku or is there a workaround? 12:06
12:12 librasteve joined
apogee_ntv Raku experts: I'm working with Image::PNG::Portable, it's a pure Raku PNG reader/writer that was adopted by community libs. Is there a good way to optimize read/write functions? The naive implementation works but is very slow. 12:32
On an aside PNG is very hard to do concurrently if I want to add filters because the filters create dependencies between lines. 12:33
13:43 jjido left 13:46 librasteve left 13:58 librasteve joined 14:04 librasteve left 14:06 librasteve joined
Xliff Ack! subtest() swallows any exception!? 14:07
Not good.
14:13 librasteve left 14:16 sgrs_ joined, sgrs_ left 14:31 jjido joined 14:44 librasteve joined
guifa SmokeMachine: alright, I now have the window set up for some slightly more generic operations, I'll post the code if you want to play with it once I workout the JS -> Raku bridge 14:56
I think what I'll do is install an variable called 'Raku' that the webpage can communicate back with 14:58
15:00 apac joined
SmokeMachine \o/ 15:03
guifa Right now it's just message sending without direct responses but I might be able to enable that too 15:10
15:19 librasteve_ left 15:27 jjido left 15:50 librasteve left 15:53 sorenson left 15:56 sorenson joined 15:58 librasteve joined 16:06 apac left 16:11 librasteve left 16:27 arkiuat joined 16:29 librasteve joined
arkiuat wayland, I like your raku-as-first-language blog post 16:29
it's been so long since I first learned that I have no clue what a good raw-beginner's tutorial or bootcamp text should look like 16:30
16:34 librasteve left 16:38 jjido joined 16:43 librasteve joined
disbot3 <romdav55_30502> Hi, i send a pull request to Template6 module, but now i see, it's in the Module Adoption List, how can i Adopt it? 16:44
16:48 librasteve left 17:01 librasteve joined 17:03 guifa left 17:18 librasteve left 17:19 guifa joined 17:22 apac joined 17:39 librasteve joined, lichtkind joined 17:59 El_Che left 18:00 El_Che joined 18:05 librasteve left 18:14 jjido left, librasteve joined 18:21 librasteve left 18:28 mc2 joined
mc2 hello everyone 18:28
18:32 librasteve joined 18:40 jjido joined 18:43 MasterDuke joined 18:49 arkiuat left 18:54 arkiuat joined 18:56 librasteve left 18:59 arkiuat left 19:10 arkiuat joined 19:11 Sgeo joined 19:12 sorenson left 19:14 arkiuat left 19:15 librasteve joined
apogee_ntv Xliff: How's notcurses treating you? How can I help? :D 19:23
19:28 arkiuat joined 19:32 sorenson joined 19:33 arkiuat left 19:39 apac left 19:40 jjido left 19:46 arkiuat joined 19:51 arkiuat left 20:01 arkiuat joined 20:06 arkiuat left 20:11 apac joined 20:17 lizmat joined 20:19 arkiuat joined 20:21 jjido joined
tbrowder m: my $w = True; my $res = !$w; say $w 20:22
camelia True
lizmat tbrowder: what did you expect ? 20:25
m: my $w = True; my $res = !$w; say $res
camelia False
tbrowder m: my $w = True; my $res = $w.comb.head eq '!' False !! True; say $res;
camelia ===SORRY!=== Error while compiling <tmp>
Two terms in a row
at <tmp>:1
------> $w = True; my $res = $w.comb.head eq '!'<HERE> False !! True; say $res;
expecting any of:
infix
infix stopper
postfix
s…
tbrowder yes, thanx
Xliff apogee_ntv: Well, you should be able to see the progress at github.com/Xliff/raku-Terminal-NotCurses 20:29
apogee: It's in a semi-usable state now, but packaging beyond my system hasn't been a priority so the install might be... dicey 20:30
apogee: What distro are you on?
20:35 lizmat left, lizmat_ joined
apogee_ntv Xliff: Mac OS :D 20:35
Xliff LOLOL! 20:36
OK. Let's see how close we can get you.
Do you have notcurses installed? If so, what version?
apogee_ntv 3.0.16 20:37
It looks like
Xliff :s 20:38
I'm porting 3.0.6
Once done, I'll make the jump.
There's a chance I might make it earlier, but that would mean me needing to start from scratch.
It might be best if you want to fork the repo. Then you could create a branch for 3.0.16 and see how much work needs to be done to switch over. 20:39
The big problem is generating the static.c file that's in the repo. That has to come from notcurses.h
20:44 MasterDuke left
apogee_ntv How did you generate it? 20:53
It might be worth building notcurses as part of the module so we're not depending on people having the right version installed? 20:57
Similar to how I did it with hf tokenizers?
github.com/m-doughty/Raku-Tokenizers (not sure this is the right way to do it but it works) 20:58
That way if we target 3.0.6 we can just create 3.0.6 dylib or so file and always link against that? 21:00
ingy is there an env var to override rakudo writing to ~/.raku ? 21:24
disbot3 <librasteve> @romdav55_30502 - fork it, change to your auth, bump the version and fez it 21:31
Xliff apogee_ntv: I'm not against that approach. 21:33
21:44 librasteve_ joined 21:49 Aedil left 21:55 librasteve left 22:22 apac left 22:23 Xliff left 22:29 librasteve joined 22:33 lichtkind left 22:35 jjido left, librasteve left
apogee_ntv My next big one is ONNX, there's a lib on raku.land but its just a bunch of CLI scripts, no classes or anything. 22:36
22:36 jjido joined 22:42 jjido left 22:51 librasteve joined 22:55 sorenson left 22:56 librasteve left 23:01 jjido joined 23:06 jjido left, sorenson joined 23:23 librasteve joined 23:32 librasteve left 23:50 simcop2387 left 23:53 librasteve_ left