🦋 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. |
|||
wayland | If zef says a package is installed, but when I "use" it I get: Could not find <module> then are there any thoughts as to what it might be? Specifically, the module contains only a role, not a class, and I'm using rakubrew. | 00:24 | |
00:29
japhb joined
01:16
japhb left
01:34
yewscion joined
01:39
yewscion left
01:56
dano left,
dano joined
01:57
hulk joined
01:58
kylese left
02:05
Guest72 left
02:15
hulk left,
Guest72 joined,
kylese joined
|
|||
wayland | Also, do we have a method that gets called when a role is composed into a class? | 03:36 | |
03:45
kylese left,
stanrifkin_ joined
|
|||
Guest72 | there's the COMPOSE phaser, though I don't know how implemented it is or not. might be a better way to do it | 03:45 | |
03:48
kylese joined,
stanrifkin left
|
|||
wayland | I saw that; might be useful. I actually want to trigger something at TWEAK time, I think. | 04:18 | |
(I ignored it because it said it wasn't implemented) | 04:25 | ||
Guest72 | just curious, what are you trying to accomplish? | 04:28 | |
04:43
yewscion joined
04:50
yewscion left
|
|||
Xliff | wayland: If you are able to get a quick demo working, I'd appreciate a look at it. I'm also thinking about using it for a project. | 04:54 | |
wayland: (Speaking about Terminal::Widgets) | |||
.seen japhb | 04:55 | ||
tellable6 | Xliff, I saw japhb 2025-05-11T23:06:53Z in #moarvm: <japhb> Imagine `substr($a, 3, 4) ~ substr($q, 10, 1) x 25` | ||
05:01
yewscion joined
|
|||
Xliff | nm | 05:01 | |
m: role B { submethod TWEAK { say "Moo" }; }; class A { }; my $a = A.new but B | 05:04 | ||
camelia | Moo | ||
Xliff | m: role B { submethod TWEAK { say "Moo" }; }; class A { }; my $a = A.new but B; my $b = A.new but B; | 05:05 | |
camelia | Moo Moo |
||
Xliff | ^^ wayland | ||
05:06
yewscion left
|
|||
Xliff | m: role B { submethod TWEAK { say "Moo" }; }; class A { submethod BUILD { say "COW"; }; submethod TWEAK { say "MILK" }; }; my $a = A.new but B; | 05:06 | |
camelia | COW MILK Moo |
||
Xliff | m: role B { submethod TWEAK { say "Moo" }; }; class A { submethod BUILD { say "COW"; }; submethod TWEAK { say "MILK" }; }; my $a = A.new; say $a; $a = $a but B; | 05:08 | |
camelia | COW MILK A.new Moo |
||
05:17
yewscion joined
05:20
arkiuat left
05:21
yewscion left
05:22
arkiuat joined
05:25
Guest72 left
05:27
arkiuat left
05:36
stanrifkin_ left
05:40
arkiuat joined
|
|||
wayland | Xliff: I can do you one better (or worse :p ). There's already an example at github.com/japhb/Terminal-Widgets/.../form.raku . I probably won't get onto this for another week or two, so that's probably your best option in the short term. | 05:43 | |
m: role roleA { submethod TWEAK() { say "Role TWEAK for {self.^name}"; } }; class B does roleA { submethod TWEAK() { say "B TWEAK"; } }; class C does roleA {}; my $a = roleA.new(); my $b = B.new(); my $c = C.new(); | 05:45 | ||
camelia | Role TWEAK for roleA B TWEAK Role TWEAK for C |
||
wayland | Interesting; with "but" it runs both TWEAKs, but with "does", it doesn't. | 05:46 | |
Voldenet | hm, github.com/japhb/Terminal-Widgets/.../form.raku totally doesn't work for me | 05:47 | |
05:49
wayland left
|
|||
Voldenet | or rather, it does render some boxes, but then every single example stops responding | 05:52 | |
05:57
yewscion joined
|
|||
Xliff | wayland: Yes, my take on that is that when you use "does", all methods are composed at the same time... even with submethods. | 05:58 | |
tellable6 | Xliff, I'll pass your message to wayland | ||
05:58
wayland76 joined
|
|||
Xliff | Voldenet: Yeah, I'm trying to use the lower level interface (IE, without the "with $builder" block) and it's giving me other errors. | 05:59 | |
Voldenet | I take back "not responding", it does respond to SIGWINCH and resizes boxes | 06:00 | |
but so the main loop is very likely working fine | |||
wayland76 | Well, maybe I'll be making some PRs, then, but not for another few weeks, I think. | ||
tellable6 | 2025-05-24T05:58:15Z #raku <Xliff> wayland: Yes, my take on that is that when you use "does", all methods are composed at the same time... even with submethods. | ||
Voldenet | I'm betting that I get the same errors, just they don't get printed anywhere | 06:01 | |
06:02
yewscion left
06:13
yewscion joined
06:18
yewscion left
06:28
Aedil left
06:39
euandreh joined
06:44
yewscion joined
06:45
arkiuat left
06:49
yewscion left
06:57
arkiuat joined
07:01
euandreh1 joined
07:02
euandreh left
07:03
euandreh joined
07:06
euandreh1 left
07:16
yewscion joined
07:21
yewscion left
07:41
yewscion joined
07:46
yewscion left
07:57
euandreh1 joined
08:00
euandreh left,
euandreh1 is now known as euandreh
08:06
arkiuat left
08:12
yewscion joined
08:18
yewscion left,
arkiuat joined
08:19
yewscion joined
08:23
yewscion left
08:38
euandreh left,
euandreh joined
08:40
yewscion joined
08:43
arkiuat left
08:45
yewscion left
08:53
linkable6 left
08:55
arkiuat joined
08:59
arkiuat left
09:02
arkiuat joined
09:07
arkiuat left
09:10
tejr left,
tejr joined
09:16
Sgeo left
09:19
oodani left
09:20
oodani joined
09:21
arkiuat joined
09:26
arkiuat left
09:27
euandreh left,
euandreh joined
09:28
japhb joined
09:38
arkiuat joined
09:43
arkiuat left
09:54
arkiuat joined
09:58
arkiuat left
10:04
Aedil joined
10:06
nine left,
nine joined
10:20
yewscion joined,
arkiuat joined,
notable6 left,
notable6 joined
10:27
yewscion left
10:49
shareable6 left,
shareable6 joined
10:53
yewscion joined
10:58
yewscion left
11:01
unicodable6 left
|
|||
wayland76 | m: $_ = "not ok"; m:s/not ok/ and print "woo!" | 11:02 | |
camelia | woo! | ||
wayland76 | Throws errors in RakuAST. | 11:03 | |
Reported as a bug: github.com/rakudo/rakudo/issues/5885 | 11:07 | ||
11:07
evalable6 left
11:21
yewscion joined
11:27
yewscion left
11:54
yewscion joined
12:00
yewscion left
12:11
euandreh left
12:19
yewscion joined
12:23
euandreh joined
12:31
yewscion left
12:47
stanrifkin joined
12:49
yewscion joined
12:53
shareable6 left
12:54
yewscion left
12:55
_________ left,
apac joined
13:03
yewscion joined,
_________ joined
13:07
wayland76 left,
wayland76 joined
13:08
yewscion left
13:48
yewscion joined
13:53
yewscion left
13:59
euandreh left,
euandreh1 joined
14:01
euandreh1 is now known as euandreh
14:05
yewscion joined
14:09
yewscion left
14:14
apac left,
arkiuat left,
yewscion joined
14:22
yewscion left
14:43
arkiuat joined
14:47
yewscion joined
14:48
arkiuat left
14:51
stanrifkin left
14:52
yewscion left
15:13
apac joined
15:16
arkiuat joined
15:20
yewscion joined
15:21
arkiuat left
15:24
yewscion left
15:25
yewscion joined
15:29
yewscion left
15:32
yewscion joined
15:35
arkiuat joined
15:37
yewscion left
16:04
yewscion joined
16:09
yewscion left
|
|||
[Coke] | does anyone have access to an alpine linux that can test that HEAD is working? | 16:11 | |
lizmat | perhaps melezhik | ||
tellable6 | Sorry kid, that's not my department. | ||
16:16
tellable6 left
|
|||
[Coke] | .ask melezhik do you have access to an alpine linux that can test that HEAD is working? | 16:18 | |
i'll see if that's an azure option | |||
nope | 16:19 | ||
16:24
releasable6 left
16:26
yewscion joined
|
|||
melezhik. | [Coke]: are you talking about building Rakudo from source on Alpine? HEAD commit , right ? | 16:28 | |
[Coke] | Yes. | 16:29 | |
To address this ticket: | |||
github.com/rakudo/rakudo/issues/5864 | |||
That commit was re-merged just after the latest release, but I don't think any of the underlying issues were addressed. | |||
rakudo head now has that updated version of mimalloc again | 16:30 | ||
melezhik. | Ok. I see. I need to tweak my sparky build to allow build from head , it used to be , but things changed | 16:34 | |
16:35
yewscion left
|
|||
Wait a sec actually , I found some hidden “treasure” )) sparky.sparrowhub.io/project/rakudo-head | 16:36 | ||
Hopefully it will work ) | |||
16:40
arkiuat left
|
|||
Here we go - sparky.sparrowhub.io/report/rakudo-head/24671 | 16:41 | ||
It shows logs in realtime via web socket , so welcome to the show )) | |||
It though does abit more then just building Rakudo from source - raw.githubusercontent.com/melezhik...e.arm.head Hopefully it’s what you are looking for | 16:44 | ||
The build script is in here - raw.githubusercontent.com/melezhik...udo-sha.sh | 16:45 | ||
Upsss still has this 16:42:32 :: #13 152.5 3rdparty/mimalloc/src/prim/unix/prim.c:34:12: fatal error: linux/prctl.h: No such file or directory | 16:46 | ||
For HEAD | |||
And … it builds on ARM if that matters | 16:47 | ||
I control Dockerfile so let me know if we need any apk packages | 16:48 | ||
Need any -> need to add any | 16:50 | ||
16:51
arkiuat joined
|
|||
Added linux-headers and run new build | 16:55 | ||
sparky.sparrowhub.io/report/rakudo-head/24677 | 16:56 | ||
17:00
arkiuat left
|
|||
librasteve | o/ ... I am reintegrated Air::Component with FCOs latest Cromponent - sonce they are such a wizard with MOP, trits etc (and I am not), I am not I have got a little stuck | 17:02 | |
you will note the named argument :$http-method on the is accessible trait ... here in the source github.com/librasteve/Cromponent/b...akumod#L20 | 17:03 | ||
17:03
apac left
17:04
yewscion joined
|
|||
I am trying to specify 'PUT' via syntax method search(:$needle) is accessible(:http-method('PUT')) { ... | 17:04 | ||
but i just get an (inappropriate) error Can't use unknown trait 'is' -> 'accessible' in method declaration. ... works fine if I just take the default with method search(:$needle) is accessible { ... | 17:06 | ||
please can someone help? | |||
17:07
TheAthlete joined
17:09
yewscion left
17:11
arkiuat joined
17:15
arkiuat left
17:21
yewscion joined
17:26
yewscion left
17:27
stanrifkin joined
17:28
TheAthlete left,
notable6 left,
notable6 joined,
stanrifkin left
17:30
arkiuat joined
|
|||
melezhik. | I am doing Raku/Sparrow regexp crash course for none Raku people. Not considering myself a Raku regexp guru I would appreciate any feedback . Thanks 🙏 git.resf.org/melezhik/sparrow_task.../README.md | 17:37 | |
Starting from regular expressions section … | 17:38 | ||
17:46
yewscion joined
|
|||
[Coke] | "More or one symbols | 17:51 | |
" | |||
17:51
yewscion left
|
|||
[Coke] | Would read more naturally as "One or more" | 17:51 | |
melezhik. | Coke: ++ | 17:52 | |
Did my build help? I guess the error stays the same … | |||
[Coke] | if we can *see* the error, that'll help whoever is trying to fix the mimalloc issue. | 17:55 | |
Problem was it seems fine on whatever brand of linux folks were testing on when committing | |||
melezhik. | Yeah. What do you mean by see error ? | 17:56 | |
/usr/include/sys/prctl.h:88:8: error: redefinition of 'struct prctl_mm_map' | 17:57 | ||
Is it enough ? | |||
librasteve | oh this works ... method search(:$needle) is accessible{:http-method('PUT')} { clue was the :%accessible arg in the signature being a Hash | 18:00 | |
18:02
yewscion joined
18:07
yewscion left
18:08
apac joined
18:11
stanrifkin joined
18:28
yewscion joined
18:32
stanrifkin left
18:33
euandreh left,
euandreh joined
18:37
yewscion left
|
|||
[Coke] | Folks - anyone has any ideas about what sort of improvements the websites need, please ping me. | 18:38 | |
18:47
euandreh left
18:50
Sgeo joined
|
|||
melezhik. | The doc site ? | 18:59 | |
19:03
yewscion joined
19:08
yewscion left
|
|||
librasteve | raku.org needs a rewrite | 19:25 | |
19:45
yewscion joined
19:50
yewscion left
20:02
Aedil left
20:14
MasterDuke joined
20:46
jetchisel left
20:47
jetchisel joined
20:51
tejr left
20:54
MasterDuke left
20:56
tejr joined
|
|||
[Coke] | any site. | 21:09 | |
21:13
apac left
21:22
jetchisel left
21:23
jetchisel joined
21:27
yewscion joined
21:34
wayland76 left,
wayland76 joined
21:35
yewscion left
21:58
wayland joined
21:59
wayland76 left
22:02
yewscion joined
22:08
yewscion left
22:21
yewscion joined
22:26
yewscion left
22:31
yewscion joined
22:36
yewscion left
|
|||
wayland76 | [Coke] do you mean content, aesthetics, or technology? | 22:37 | |
22:47
yewscion joined
22:52
yewscion left
23:18
yewscion joined
23:23
yewscion left
23:33
yewscion joined
23:37
yewscion left
|
|||
antononcube | Or HTMoLogy. | 23:47 |