🦋 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:03
reportable6 joined
00:04
jpn left
01:03
Manifest0 left
01:04
xinming left
01:06
xinming joined
01:47
jpn joined
01:53
jpn left
02:02
razetime joined
02:15
razetime left
02:34
derpydoo left
|
|||
rf | If I wanted to add a field to a class at run time, how would I do it? | 02:35 | |
I remember there being a way to "extend" a class or something | 02:36 | ||
02:42
jpn joined
02:45
xinming left
02:47
xinming joined,
jpn left
03:11
bigdata left
|
|||
tonyo | you could mix in a role or use the MOP | 03:24 | |
m: class A { has $.x; }; role B { has $.y is rw; method coords() { [self.x, self.y] }; }; my $a = A.new(:x(15)); $a does B; $a.y = 25; dd $a.coords | 03:27 | ||
camelia | [15, 25] | ||
tonyo | m: class A { has $!x; method coords() { self.^attributes; } }; A.^add_attribute(Attribute.new(:name<$!y>, :type(Int), :package(A.WHO))); dd A.new.coords.map(*.name) | 03:29 | |
camelia | ("\$!x", "\$!y").Seq | ||
tonyo | rf: ^^ | ||
rf | What's the difference between does and but | 03:30 | |
m: class A { has $.x; }; role B { has $.y is rw; method coords() { [self.x, self.y] }; }; my $a = A.new(:x(15)) but B; $a.y = 25; dd $a.coords | 03:32 | ||
camelia | [15, 25] | ||
rf | Is there a nice Async hash implementation I can steal somewhere | 03:38 | |
lucs | What is it with this OUTPUT this and OUTPUT that everywhere, all the time. | 03:43 | |
Here, in the docs OUTPUT, OUTPUT, OUTPUT. | |||
Can't «this» be sufficient? | 03:44 | ||
Are people really going to say "Hey, it's ambiguous, I'm not sure what you're sshowing me is what was OUTPUT." | 03:45 | ||
Voldenet | OUTPUT is pretty precise tho | 03:47 | |
lucs | IT'S SO DAMNED NOISY. | 03:48 | |
03:49
jpn joined
|
|||
rf | I like OUTPUT :^) | 03:50 | |
lucs | 😭 | 03:51 | |
Oops, for the IRC folks, that was a 😭 emoji | 03:52 | ||
lucs | $!#@%& Mis-escaping | ||
tellable6 | 2023-03-08T23:23:58Z #raku <rf> lucs: It can't find it because you dont specify its location in META6 | ||
lucs | Er, right. | ||
A :sob: emoji. | 03:53 | ||
Voldenet | rf: `but` is runtime mixin, `does` is closer to a compile-time one | ||
03:54
jpn left
|
|||
rf | m: m: class A { has $.x; }; role B { has $.y is rw; method coords() { [self.x, self.y] }; }; my $a = A.new(:x(15)); $a does B; $a.y = 25; dd $a.coords | 03:54 | |
camelia | [15, 25] | ||
rf | Voldenet: what about that instance? | 03:55 | |
lucs | m: note "Moo" | ||
camelia | Moo | ||
lucs | HEY, THAT WAS STDERR OUTPUT. WHY DOES IT SAY OUTPUT LIKE IF IT WAS STDOUT OUTPUT. | 03:56 | |
(sorry, I'll SHUT UP now) | 03:57 | ||
Voldenet | :D | 03:59 | |
m: class A { has $.x; }; role B { has $.n; }; my $a := A.new(:x(15)); my $b = $a; $a does B(42); say $b.n | 04:01 | ||
camelia | 42 | ||
Voldenet | m: class A { has $.x; }; role B { has $.n; }; my $a := A.new(:x(15)); my $b = $a; my $c = $a but B(42); say $b.n | ||
camelia | No such method 'n' for invocant of type 'A'. Did you mean 'x'? in block <unit> at <tmp> line 1 |
||
Voldenet | `but` creates a copy, `does` works on a container iirc | 04:02 | |
04:06
rf left
05:06
unicodable6 left,
reportable6 left,
releasable6 left,
statisfiable6 left,
bisectable6 left,
shareable6 left,
quotable6 left,
sourceable6 left,
nativecallable6 left,
notable6 left,
committable6 left,
squashable6 left,
benchable6 left,
tellable6 left,
coverable6 left,
bloatable6 left,
evalable6 left,
linkable6 left,
greppable6 left,
shareable6 joined,
committable6 joined,
bloatable6 joined,
benchable6 joined,
bisectable6 joined,
greppable6 joined,
tellable6 joined
05:07
nativecallable6 joined,
sourceable6 joined,
squashable6 joined,
reportable6 joined,
evalable6 joined,
unicodable6 joined
05:08
quotable6 joined,
statisfiable6 joined,
linkable6 joined,
notable6 joined
05:09
coverable6 joined,
releasable6 joined
05:22
jpn joined
05:27
derpydoo joined,
jpn left
05:45
deoac left
06:00
reportable6 left
06:03
reportable6 joined
06:47
tea3po joined
06:50
teatwo left
06:53
tea3po left,
tea3po joined
07:00
jpn joined
07:05
jpn left
07:09
tea3po left
07:10
tea3po joined
07:15
jpn joined
07:44
Bocaneri joined,
Bocaneri is now known as Guest3094
07:45
Sauvin left
08:03
nort left
08:24
derpydoo left
08:41
teatime joined
08:43
teatwo joined
08:44
tea3po left
08:46
teatime left
08:54
guessed joined,
guessed left
09:01
jpn left
09:10
jpn joined
09:17
jpn left
09:19
jpn joined
09:39
Sgeo left
09:59
razetime joined
10:38
razetime left
10:53
Manifest0 joined
11:06
eseyman left
11:15
manu_ joined
11:17
manu_ is now known as eseyman
11:20
n1to joined
12:00
reportable6 left
12:01
reportable6 joined
12:04
squashable6 left
12:07
squashable6 joined
12:20
n1to left
13:20
nativecallable6 left,
quotable6 left,
unicodable6 left,
shareable6 left,
coverable6 left,
committable6 left,
tellable6 left,
bloatable6 left,
reportable6 left,
greppable6 left,
benchable6 left,
bisectable6 left,
statisfiable6 left,
evalable6 left,
notable6 left,
linkable6 left,
sourceable6 left,
squashable6 left,
releasable6 left
13:21
tellable6 joined,
linkable6 joined,
evalable6 joined,
coverable6 joined,
benchable6 joined,
greppable6 joined,
shareable6 joined
13:22
statisfiable6 joined,
reportable6 joined,
unicodable6 joined,
notable6 joined,
bloatable6 joined,
releasable6 joined,
bisectable6 joined
13:23
committable6 joined,
nativecallable6 joined,
sourceable6 joined,
squashable6 joined,
quotable6 joined
13:30
jpn left
13:31
jpn joined
13:39
jpn left
13:41
jpn joined
13:42
tejr left
13:48
tejr joined
14:08
jpn left
14:16
simcop2387 left
14:17
perlbot left
14:20
simcop2387 joined
14:21
perlbot joined
14:29
simcop2387 left,
perlbot left
14:30
perlbot joined
14:32
simcop2387 joined
14:40
rf joined
|
|||
rf | Morning folks, woke up to 9 feet of snow :^) | 14:41 | |
moritz | wow, that's quite a lot... the last time we had snow, I was glad when I found a 9 feet continuous horizontal stretch :-) | 14:42 | |
rf | Yeah, were I live this is fairly common. But the wind is very uncommon 85km/h for the past ~12 hours | 14:43 | |
But supposed to die off in 2-3 hours | |||
14:52
perlbot left,
euandreh1 joined
14:53
perlbot joined
14:54
euandreh left,
euandreh1 is now known as euandreh
14:57
simcop2387 left
|
|||
lucs | Oho! Whereabouts are you? | 14:57 | |
14:58
simcop2387 joined
|
|||
Oho! Whereabouts are you? | 14:58 | ||
rf | I'm I live in a town with 60 people in central Canada | ||
s/I'm// | |||
lucs | According to radar, I think we'll manage to avoid that here in Montreal. | 15:01 | |
rf | Yeah, this is one of the worst blizzards I've seen in terms of wind speed and how long it lasts | 15:02 | |
[Coke] | rf, we got about 1 inch, i think | 15:11 | |
stay safe | 15:12 | ||
rf | Thanks! | ||
15:13
codesections left
15:16
jpn joined
15:21
jpn left
|
|||
rf | Voldenet, I guess I kind of implemented a way to send data between layers of the call stack. I needed it for sessions. Basically every request and response has a stash that is not encoded or anything but exists purely just for the developer | 15:25 | |
tonyo | rf: did you end up messing around with ryml at all? | 15:44 | |
15:47
simcop2387 left
15:48
simcop2387 joined
|
|||
Anton Antonov | @tonyo Apparently @rf did -- that is why is stranded at home (covered with 12 feet snow.) | 15:51 | |
15:51
simcop2387 left
15:52
simcop2387 joined
|
|||
tonyo | must be great then, we got only a foot and a half | 15:54 | |
15:56
simcop2387 left
15:57
perlbot left
|
|||
Anton Antonov | @tonyo I am sorry, but you sound like a snow-apologist... | 16:01 | |
16:01
simcop2387 joined
16:02
perlbot joined
|
|||
tonyo | all hail snow | 16:04 | |
or there'll be consequences | 16:05 | ||
16:08
perlbot left,
simcop2387 left
16:11
jpn joined
|
|||
Anton Antonov | @tonyo Ok. 🙂 I have further puns on the subject, but I will restrain myself. | 16:16 | |
16:17
jpn left
16:21
simcop2387 joined
|
|||
tonyo | : ) | 16:24 | |
16:27
perlbot joined
16:30
codesections joined
|
|||
rf | tonyo: Yeah it's really neat! | 16:49 | |
tonyo: github.com/rawleyfowler/Humming-Bird/pull/50 | |||
Wrote a super basic sessions system that's bundled with HB | |||
In the form of a middleware | 16:50 | ||
16:59
yoreei joined
17:10
yoreei left
17:19
jpn joined
17:24
jpn left
17:31
yoreei joined
17:55
Guest3094 is now known as Sauvin
18:00
reportable6 left
18:01
reportable6 joined
18:20
rf left
18:24
yoreei left
18:26
Sgeo joined
18:36
rf joined
18:48
tea3po joined
18:49
tea3po left
18:50
tea3po joined
18:52
teatwo left
18:55
jpn joined
19:00
jpn left
19:04
ab5tract joined
19:24
euandreh left
|
|||
[Coke] | en.wikipedia.org/wiki/Raku_(progra..._language) - refers to "version 1.0" and says that 6.c is the current version. | 19:33 | |
what are release helper modules? Looks like raku/rakudo might have something that automatically updates Changes.../ | 19:36 | ||
jdv | theres 2 wiki entries i update | 19:37 | |
tellable6 | 2023-03-09T11:54:00Z #raku-dev <lizmat> jdv do you think you can find the time to do a 2023.03 release this month? | ||
jdv | lizmat: no, but someone else could:) im "away" this month. | 19:38 | |
[Coke] | jdv: I imagine those are more rakudo than raku | ||
jdv | right. rakudo and moarvm. | 19:39 | |
19:39
ami52 joined,
ami52 left
19:40
sami17 joined,
sami17 left,
sami17 joined,
sami17 left,
sami17 joined
19:41
sami17 left
19:57
yoreei joined
20:00
yoreei left
20:15
jpn joined
20:19
euandreh joined
20:28
jpn left
20:41
swaggboi left,
xelxebar left,
gordonfish left,
jdv left,
snonux left,
gugod left,
perlmaros left,
goblin left,
exp left,
spacekookie left,
jcallen_ left,
Henry151 left,
daxim left,
atweedie left,
renormalist left,
pierrot left,
ingy left,
_________ left,
eof left,
patrickb left,
perlmaros joined,
snonux joined,
goblin joined,
renormalist joined,
gordonfish joined,
daxim joined
20:42
pierrot joined,
gugod joined,
Henry151 joined,
xelxebar joined,
jcallen joined
20:43
atweedie joined
20:44
swaggboi joined,
summerisle joined,
ingy joined
20:45
_________ joined,
patrickb joined
20:46
exp joined,
jdv joined
21:14
jpn joined
21:18
rf left,
rf_ joined
21:19
jpn left
|
|||
coleman | At the interpreter, when I write `my $x = "hello";` it immediately prints "hello" | 21:21 | |
did it always do this? | |||
Rakudo 2023.02 | 21:22 | ||
If I do `my @d = dir;`, the entire directory contents are printed, for instance, which could be disruptive. Forgive me if it's always been this way, I can't remember the previous behavior. | 21:23 | ||
I have Linenoise installed, if that makes any difference. | |||
[Coke] | in the REPL? yes, it outputs the result of each line | 21:29 | |
21:32
rf_ left
21:33
rf joined
|
|||
Nemokosch | or at least it should; I have seen complex expressions where say became necessary for some reason | 21:53 | |
22:17
jpn joined
22:21
jpn left
22:49
seekr left
23:02
seekr joined
|
|||
rf | Just removed like 500 cubic feet of snow from my driveway | 23:35 | |
23:44
jpn joined
23:49
jpn left
|