🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | 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 8 June 2022. |
|||
00:07
reportable6 left
00:09
reportable6 joined
01:09
evalable6 left,
statisfiable6 left,
quotable6 left,
notable6 left,
bloatable6 left,
sourceable6 left,
releasable6 left,
greppable6 left,
nativecallable6 left,
shareable6 left,
bisectable6 left,
linkable6 left,
coverable6 left,
reportable6 left,
tellable6 left,
unicodable6 left,
benchable6 left,
committable6 left
01:10
tellable6 joined,
releasable6 joined,
notable6 joined,
benchable6 joined,
shareable6 joined,
evalable6 joined,
sourceable6 joined
01:11
unicodable6 joined,
quotable6 joined,
reportable6 joined,
coverable6 joined,
nativecallable6 joined,
linkable6 joined,
statisfiable6 joined,
bloatable6 joined
01:12
bisectable6 joined,
greppable6 joined,
committable6 joined
01:48
swaggboi left
01:49
swaggboi joined
02:06
Kaiepi left
02:09
frost joined,
swaggboi left
02:26
swaggboi joined
02:42
swaggboi left
03:00
swaggboi joined
04:00
sourceable6 left,
greppable6 left,
tellable6 left,
nativecallable6 left,
benchable6 left,
releasable6 left,
shareable6 left,
reportable6 left,
unicodable6 left,
linkable6 left,
notable6 left,
bloatable6 left,
evalable6 left,
committable6 left,
coverable6 left,
bisectable6 left,
statisfiable6 left,
quotable6 left,
sourceable6 joined,
bloatable6 joined,
unicodable6 joined
04:01
committable6 joined,
quotable6 joined,
benchable6 joined,
bisectable6 joined,
notable6 joined,
releasable6 joined,
greppable6 joined,
tellable6 joined,
reportable6 joined,
statisfiable6 joined,
linkable6 joined,
nativecallable6 joined
04:02
evalable6 joined
04:03
coverable6 joined,
shareable6 joined,
wcs left
04:17
swaggboi left
04:35
swaggboi joined
05:28
abraxxa joined
05:30
Sankalp left
05:32
abraxxa left
05:33
abraxxa joined,
Sankalp joined
06:02
Sankalp left
06:03
Sankalp joined
06:06
reportable6 left
06:07
reportable6 joined
06:22
guifa joined
|
|||
guifa | o/ | 06:22 | |
06:32
Sgeo left
07:32
greppable6 left,
nativecallable6 left,
benchable6 left,
bloatable6 left,
sourceable6 left,
bisectable6 left,
committable6 left,
tellable6 left,
shareable6 left,
notable6 left,
reportable6 left,
statisfiable6 left,
unicodable6 left,
linkable6 left,
releasable6 left,
coverable6 left
07:33
quotable6 left,
evalable6 left,
notable6 joined,
statisfiable6 joined,
greppable6 joined,
sourceable6 joined
07:34
shareable6 joined,
coverable6 joined,
benchable6 joined,
reportable6 joined,
linkable6 joined,
bisectable6 joined
07:35
quotable6 joined,
bloatable6 joined,
evalable6 joined,
tellable6 joined,
nativecallable6 joined,
committable6 joined,
unicodable6 joined,
releasable6 joined
07:50
dakkar joined
07:56
Woodi left,
Woodi joined
07:59
DeSade joined,
DeSade left
08:15
archenoth joined
08:18
Oshawott left
08:31
Kaiepi joined
08:54
swaggboi left
09:10
swaggboi joined
09:32
swaggboi left
09:42
avuserow left
09:49
swaggboi joined
10:39
perlbot left,
simcop2387 left
10:41
perlbot joined
10:42
simcop2387 joined
10:53
frost left
10:59
frost joined
11:22
frost left
11:41
frost joined
11:42
better_sleeping[ joined
11:47
ngt joined
11:50
frost left
12:06
reportable6 left
12:08
reportable6 joined
12:09
Xliff joined,
ngt left
12:25
sena_kun left
12:26
sena_kun joined
12:49
morte_ joined
|
|||
Xliff | \o | 12:55 | |
Can the current implementation of macros be used like a sub? | 12:56 | ||
13:01
better_sleeping[ left
|
|||
Xliff | I would like to make a set of need statements reusable. Is that possible with the current implementation? | 13:01 | |
m: use MONKEY-SEE-NO-EVAL; use experimental :macros; macro hai { quasi { say "O, HAI" } }; hai | 13:02 | ||
camelia | O, HAI | ||
Xliff | That works... but this doesn't... | ||
13:02
morte_ left
|
|||
Xliff | use MONKEY-SEE-NO-EVAL; use experimental :macros; my $a = 42; macro a { quasi { $a } }; say a | 13:02 | |
evalable6 | (Mu) | ||
Xliff | I would expect that second one to emit '42'. Can someone tell me what I am doing wrong? | 13:03 | |
jjatria | Xliff: I think the issue is that the value needs to be available at compile time | 13:25 | |
m: use MONKEY-SEE-NO-EVAL; use experimental :macros; constant A = 42; macro a { quasi { A } }; say a | |||
camelia | 42 | ||
jjatria | See the end of docs.raku.org/syntax/macros | 13:26 | |
13:32
wcs joined
|
|||
jjatria | m: use MONKEY-SEE-NO-EVAL; use experimental :macros; macro a($x) { quasi { {{{$x}}} } }; my $a = 42; say a $a | 13:33 | |
camelia | 42 | ||
jjatria | That also works | ||
13:36
morte_ joined
|
|||
Xliff | Ah! Thank you both! | 13:37 | |
Can macros be exported? | 13:38 | ||
m: package A { macro b is export { quasi { say 'HI!' }; }; }; | |||
camelia | ===SORRY!=== Error while compiling <tmp> Use of macros is experimental; please 'use experimental :macros' at <tmp>:1 ------> package A { macro⏏ b is export { quasi { say 'HI!' }; }; } |
||
Xliff | m: use experimental :macros; package A { macro b is export { quasi { say 'HI!' }; }; }; | ||
camelia | ( no output ) | ||
Xliff | m: use experimental :macros; package A { macro b is export { quasi {need NativeCall }; }; }; import A; b; CArray.^name.say | 13:46 | |
camelia | ===SORRY!=== Error while compiling <tmp> Undeclared name: CArray used at line 1. Did you mean 'array', 'Array'? |
||
Xliff | Hmmm.. -- Do I need to worry that the need call is lexicalized in the quasi block, when it should be lexicalized into the calling one? | 13:47 | |
dakkar | I fear that falls under "macros aren't fully implemented" | 14:09 | |
I agree it should affect the caller | |||
14:15
morte_ left
|
|||
Xliff | Ah well. I was hoping there was a way to make my life easier by putting repetitive code like need statements within a macro. | 14:17 | |
All in due time, I guess. | |||
14:18
Xliff left
14:24
perlbot left,
simcop2387 left
14:30
silug left
|
|||
dakkar | m: use experimental :macros; package A { macro b is export { quasi {use NativeCall }; }; }; import A; b; CArray.^name.say | 14:31 | |
camelia | ===SORRY!=== Error while compiling <tmp> Undeclared name: CArray used at line 1. Did you mean 'array', 'Array'? |
||
dakkar | ok, the problem wasn't that `need` doesn't import symbols | ||
14:33
silug joined
|
|||
dakkar | Xliff: github.com/LLFourn/p6-CompUnit-Uti...-exporting may help make your life easier | 14:39 | |
tellable6 | dakkar, I'll pass your message to Xliff | ||
14:43
simcop2387 joined
14:44
perlbot joined
|
|||
jjatria | Looking more into SameSite, I don't think that can be done without access to the public suffix list, which we don't seem to have at the moment in Raku | 14:59 | |
And I guess in that case, the hardest thing would be to make it so that it doesn't go stale (since the list is updated several times a week) | 15:00 | ||
I did see a Rust library that checked for updates every day and auto-minted a release, but I don't think we have any prior art for that sort of thing in zef | 15:01 | ||
15:16
Sgeo joined
15:24
morte_ joined
16:00
eseyman left
16:26
Altai-man joined
16:30
sena_kun left
16:37
dakkar left
17:04
swaggboi left
17:12
MoC joined
17:22
swaggboi joined
17:32
Util joined,
abraxxa left
18:07
reportable6 left
18:09
reportable6 joined
18:34
MoC left
18:47
morte_ left
18:49
abraxxa-home joined
|
|||
lizmat clickbaits rakudoweekly.blog/2022/07/04/2022-...re-videos/ | 19:05 | ||
coleman | Bruce's intro to Raku is helpful for me | 19:29 | |
lizmat | good to hear! | 19:30 | |
19:31
andm joined
|
|||
Geth | planet.raku.org: 062b21a056 | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | perlanetrc perl6.party appears to have been reset |
19:35 | |
19:55
Sankalp left
20:16
Kaiepi left
20:18
Kaiepi joined
20:34
markmarkmark left
|
|||
El_Che | A | 20:35 | |
20:35
markmarkmark joined
20:38
wcs left
20:39
markmarkmark left
20:47
markmarkmark joined
21:16
andm left
21:29
swaggboi left
|
|||
guifa | m: grammar A { token TOP { <b: 1> }; multi token b:x ($c) { $c }; multi token b:y ($c) { $c$c }; }; A.parse('1').say | 21:39 | |
camelia | No such method 'b' for invocant of type 'A'. Did you mean 'wb'? in regex TOP at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
guifa | This feels...not right | ||
if you remove the signature, and replace $c with a . , things are called properly as you'd expect | |||
basically, you can do multi with signatures, or no-multi with signatures, but not multi with signatures | 21:42 | ||
21:46
swaggboi joined
22:01
discord-raku-bot left
22:02
discord-raku-bot joined
|
|||
uzl[m] | lizmat++ for the weekly. Informative as always! | 22:19 | |
22:25
Altai-man left,
abraxxa-home left
23:25
greppable6 left,
statisfiable6 left,
benchable6 left,
nativecallable6 left,
linkable6 left,
notable6 left,
bisectable6 left,
evalable6 left,
coverable6 left,
releasable6 left,
sourceable6 left,
unicodable6 left,
reportable6 left,
committable6 left,
quotable6 left,
tellable6 left,
shareable6 left,
bloatable6 left,
releasable6 joined,
evalable6 joined
23:26
bisectable6 joined,
shareable6 joined,
sourceable6 joined
23:27
tellable6 joined,
linkable6 joined,
nativecallable6 joined,
committable6 joined,
greppable6 joined,
coverable6 joined
23:28
statisfiable6 joined,
notable6 joined,
unicodable6 joined,
quotable6 joined,
reportable6 joined,
benchable6 joined,
bloatable6 joined
23:37
discord-raku-bot left
23:38
discord-raku-bot joined
|