🦋 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,
reportable6 joined
00:04
Guest46 joined
01:02
Kaiepi left
01:04
xinming left
01:14
epony left
01:37
razetime joined
|
|||
Guest46 | things will be hard for C++. Rust, Cpp2, Carbon and now Val. | 01:46 | |
the new kid on the block: www.val-lang.dev/ | 01:47 | ||
02:37
evalable6 left,
linkable6 left
02:38
evalable6 joined
02:39
linkable6 joined
02:57
epony joined
03:15
xinming joined
03:20
xinming left
04:02
euandreh joined
04:05
euandreh left
04:06
xinming joined
04:12
xinming left
04:13
xinming joined
04:18
xinming left
05:18
evalable6 left,
greppable6 left,
reportable6 left,
squashable6 left,
linkable6 left,
sourceable6 left,
tellable6 left,
statisfiable6 left,
coverable6 left,
nativecallable6 left,
notable6 left,
benchable6 left,
quotable6 left,
committable6 left,
shareable6 left,
unicodable6 left,
bloatable6 left,
releasable6 left,
bisectable6 left,
shareable6 joined,
linkable6 joined
05:19
sourceable6 joined,
bisectable6 joined,
unicodable6 joined,
reportable6 joined,
committable6 joined,
nativecallable6 joined,
squashable6 joined
05:20
quotable6 joined,
benchable6 joined,
greppable6 joined
05:21
bloatable6 joined,
releasable6 joined,
tellable6 joined,
evalable6 joined,
statisfiable6 joined,
notable6 joined,
coverable6 joined
05:23
cbk joined
05:39
jpn joined
05:45
jpn left
05:54
jpn joined
06:00
reportable6 left
06:01
Guest46 left
06:02
reportable6 joined
06:22
cbk left
06:39
xinming joined
06:44
xinming left
06:49
abraxxa joined
06:54
abraxxa left,
abraxxa joined
07:08
human-blip joined
07:47
razetime left,
razetime joined
07:53
Kaiepi joined
08:07
jpn left
08:30
sena_kun joined
08:45
Sgeo left
08:48
jpn joined
08:51
sena_kun left
08:53
jpn left
09:09
dakkar joined
09:15
xinming joined
09:21
xinming left
09:26
human-blip left
09:31
human-blip joined
09:53
Abhoerschutz left
09:54
Kernspin left
09:56
Abhoerschutz joined
09:58
Kernspin joined,
GreaseMonkey left
09:59
mtj left,
greaser|q joined
10:07
lichtkind_ joined
10:11
mtj joined
10:24
jpn joined
10:46
frost joined
|
|||
timo | raku-advent.blog/2022/12/06/immuta...n-in-raku/ has a "previous entry" link that points to a day 12, and clicking it actually 404s | 11:03 | |
Nemokosch | this is a logical consequence of yesterday's events that you can find on this chat | 11:07 | |
11:12
renormalist left,
renormalist joined
11:19
squashable6 left
11:21
xinming joined,
squashable6 joined
11:26
xinming left
11:31
razetime left,
razetime joined
11:40
xinming joined
11:46
xinming left,
Xliff joined
|
|||
Xliff | \o | 11:46 | |
Is there a more idomatic way to write this: sub a (&a) { }; a( -> *@a { ... }) | 11:47 | ||
Nemokosch | well, what is this? | 11:55 | |
Xliff | A sub that takes a Callable (ie a callbacki | 11:57 | |
I'd like that to look closer to the one used by Supply.tap | 11:58 | ||
12:00
reportable6 left
|
|||
Nemokosch | what decides the signature? | 12:03 | |
12:03
reportable6 joined
|
|||
Kaiepi | i think i forked Raku/advent on raku-community-modules by accident... doesn't belong there, right? | 12:09 | |
lizmat | no | ||
:-) | |||
Kaiepi | ok, gone now | 12:10 | |
thakns | |||
*thanks | |||
Nemokosch | apropos advent: I think the advent of code repo is quite foggy; it doesn't even match its own instructions | ||
it's sad to see there isn't a sole PR for it or anything | 12:11 | ||
maybe later on today I could make a PR with some functioning instructions and perhaps a script as well for moving the files to where they belong | 12:12 | ||
but then obviously it will be the way I think makes sense | |||
12:24
euandreh joined
|
|||
Geth | doc: tbrowder++ created pull request #4157: correct grammar |
12:31 | |
12:31
xinming joined
12:37
xinming left
12:47
jpn left
|
|||
Geth | doc: tbrowder++ created pull request #4158: fix cross-reference formats |
12:50 | |
doc: b3cf2ce9be | (Tom Browder)++ | doc/Language/classtut.pod6 correct grammar |
12:57 | ||
linkable6 | Link: docs.raku.org/language/classtut | ||
doc: 96fcaf2526 | (Will Coleda)++ (committed using GitHub Web editor) | doc/Language/classtut.pod6 Merge pull request #4157 from tbrowder/typo correct grammar |
|||
13:04
jpn joined
13:38
human-blip left
|
|||
timo | oh i see. wild. | 13:53 | |
14:10
frost left
14:17
derpydoo joined
|
|||
Xliff | Is there a more idomatic way to write this: sub a (&a) { }; a( -> *@a { ... }) | 14:22 | |
I'd like it so that I can call a() like this: a({ ... }) | |||
Nemokosch | why is everything called a? 😅 | 14:30 | |
sorry but I really don't get the essence of your question. You can do a({ ... }) without any magic | 14:31 | ||
what do you need ->*@a for? | |||
gfldex | m: sub foo(&a:(*@a)) {}; foo({;}); | 14:32 | |
camelia | ( no output ) | ||
gfldex | m: sub foo(&a:(*@a)) {}; foo({ &?BLOCK.signature.say }); | 14:33 | |
camelia | ( no output ) | ||
gfldex | m: sub foo(&a:(*@a)) { a(1,2,3) }; foo({ &?BLOCK.signature.say }); | ||
camelia | Too many positionals passed; expected 0 or 1 arguments but got 3 in block <unit> at <tmp> line 1 |
||
gfldex | Xliff: I'm not sure if it would make sense to make the compiler clever enough to DWIM in this case. | 14:34 | |
m: sub foo(&a:(*@a)) { a |(1,2,3) }; foo({ &?BLOCK.signature.say }); | |||
camelia | Too many positionals passed; expected 0 or 1 arguments but got 3 in block <unit> at <tmp> line 1 |
||
gfldex | m: sub foo(&a:(*@a)) { a |(1,2,3) }; foo({ dd @^a; &?BLOCK.signature.say }); | 14:35 | |
camelia | Too many positionals passed; expected 1 argument but got 3 in block <unit> at <tmp> line 1 |
||
gfldex | m: sub foo(&a:(*@a)) { a $(1,2,3) }; foo({ dd @^a; &?BLOCK.signature.say }); | ||
camelia | (1, 2, 3) (@a) |
||
gfldex | Xliff: this ^^^ might work | ||
Nemokosch | why did the slurpy not want to work? | 14:36 | |
gfldex | Because it's a runtime type constraint not a type hint to be used auto-derive a signature. | 14:37 | |
Nemokosch | hmmm, gotcha... I think | 14:41 | |
14:43
NemokoschKiwi joined
|
|||
NemokoschKiwi | m: sub foo(&a:($a, $b)) { a |(1, 2) }; foo({ dd $^a, $^b; &?BLOCK.signature.say }); | 14:44 | |
camelia | 1 ($a, $b) 2 |
||
Nemokosch | hm, maybe not | 14:45 | |
the problem was on the side of the block instance, right? | 14:48 | ||
that didn't provide the signature to be called by | |||
14:48
NemokoschKiwi left
14:49
jpn left
14:57
jpn joined
15:01
Sgeo joined
|
|||
Do yall think one file slot per person per solution is enough for the repository of solutions? | 15:12 | ||
15:59
jpn left
16:00
jgaz joined,
jpn joined
16:11
xinming joined
|
|||
[Coke] | how can I stop getting notifications for a github issue that I (shouldn't have) interacted with? | 16:14 | |
It already shows as not subscribed. | |||
[Coke] tries custom and picking 'reopened' only. | 16:16 | ||
16:17
xinming left
|
|||
Xliff | Nemokosch: Apparently not in my code. a({ ... }) results in an error. | 16:32 | |
tellable6 | Xliff, I'll pass your message to Nemokosch | ||
16:37
perlbot left
|
|||
ugexe | [Coke]: i think if you're watching or starred a repo you will see any updates to any issues | 16:38 | |
16:38
perlbot joined
16:43
euandreh left
|
|||
[Coke] | I hope the override at the ticket level covers this. | 16:48 | |
16:52
xinming joined
17:02
jpn left
|
|||
Nemokosch | Xliff: consider how you call the callback | 17:03 | |
and also if you want to call everything &a... I don't know if shadowing works well in this case | 17:04 | ||
I mean, invoke the callback, and name everything &a - to avoid the ambiguity of "call" | 17:05 | ||
17:07
ToddAndMargo joined
17:16
melezhik joined
|
|||
melezhik | o/ | 17:16 | |
patrickb thanks for binaries ! | |||
17:19
melezhik left
17:29
razetime left,
razetime joined
17:30
cbk joined
17:34
dakkar left
17:48
razetime left
|
|||
[Coke] | m: say $*PERL | 17:57 | |
camelia | Raku (6.d) | ||
[Coke] | do we want a ticket to deprecate that? | 17:58 | |
lizmat | fwiw, I already deprecated it once, but it broke too much code | ||
I think it will be deprecated only in 6.e ? | 17:59 | ||
[Coke] | doc site says "Will be deprecated at some point" which honestly seems like the sort of prognostication we should avoid on the docs site. | ||
Shouldn't deprecation not break anything? | |||
lizmat | I forgot the details... | 18:00 | |
18:00
reportable6 left
18:01
reportable6 joined
|
|||
[Coke] | We should be able to deprecate it *in* 6.e preview right now, yes? | 18:01 | |
We should also have a wiki page for "what's deprecated, when it's getting removed", etc. | |||
will help us keep the docs clear. | 18:02 | ||
That's book-keeping, I can work on that. | |||
Nemokosch | Coke++ | 18:03 | |
lizmat | agree | 18:05 | |
Geth | ¦ doc: coke self-assigned Track Deprecations github.com/Raku/doc/issues/4159 | 18:07 | |
[Coke] | if someone can find me an existing rakudo ticket for $*PERL, I'd appreciate it | 18:08 | |
searching for "$*PERL" seems to be searching for /perl/ | |||
(and create one if one doesn't exist) | 18:11 | ||
18:16
ToddAndMargo left
|
|||
ugexe | I asked chatgpt to write a raku calculator program and it keeps doing stuff like `my $num1 = =$*IN.get;` | 18:18 | |
i.e. using =$ | |||
18:33
melezhik joined
|
|||
melezhik | if someone is interested in testing their module against fresh 2022.12 rakudo here is an example how to do this in SparrowCI - github.com/melezhik/raku-Async-Wor...w.yaml#L30 | 18:33 | |
18:41
abhinav joined
18:43
melezhik left
18:46
[Coke] left
18:48
[Coke] joined
19:22
cbk left
19:28
jpn joined
19:34
jpn left
19:35
jpn left
19:38
jgaz left
19:58
abraxxa left
20:02
derpydoo left
20:31
derpydoo joined
20:32
lichtkind_ left
21:32
linkable6 left,
evalable6 left
21:33
linkable6 joined
21:35
evalable6 joined
21:40
segv joined
21:41
greaser|q left,
greaser|q joined,
greaser|q is now known as GreaseMonkey
21:54
segv left
21:55
euandreh joined
21:59
euandreh left,
euandreh joined
22:00
euandreh left
22:46
eseyman left
22:50
eseyman joined
23:50
squashable6 left,
evalable6 left,
unicodable6 left,
nativecallable6 left,
committable6 left,
greppable6 left,
quotable6 left,
linkable6 left,
shareable6 left,
bisectable6 left,
tellable6 left,
notable6 left,
statisfiable6 left,
benchable6 left,
releasable6 left,
reportable6 left,
coverable6 left,
sourceable6 left,
bloatable6 left
23:51
reportable6 joined,
coverable6 joined,
notable6 joined,
tellable6 joined,
shareable6 joined
23:52
statisfiable6 joined,
nativecallable6 joined,
releasable6 joined,
evalable6 joined,
quotable6 joined,
unicodable6 joined,
bisectable6 joined,
benchable6 joined
23:53
squashable6 joined,
greppable6 joined,
committable6 joined,
bloatable6 joined,
sourceable6 joined
23:54
linkable6 joined
|