🦋 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:06
reportable6 left
00:07
bigdata left
00:08
reportable6 joined
00:32
[Coke]___ joined
00:34
[Coke] left
00:41
bigdata joined
00:50
bigdata left
01:42
bigdata joined
01:45
deoac joined
02:09
[Coke] joined
02:11
[Coke]___ left
02:16
[Coke]__ joined
02:18
[Coke] left
02:19
deoac left
03:19
reportable6 left,
tellable6 left,
committable6 left,
bisectable6 left,
squashable6 left,
nativecallable6 left,
linkable6 left,
unicodable6 left,
statisfiable6 left,
evalable6 left,
benchable6 left,
bloatable6 left,
greppable6 left,
sourceable6 left,
coverable6 left,
quotable6 left,
notable6 left,
releasable6 left,
shareable6 left
03:20
linkable6 joined,
tellable6 joined,
reportable6 joined,
shareable6 joined,
quotable6 joined,
sourceable6 joined,
benchable6 joined,
nativecallable6 joined,
squashable6 joined,
bisectable6 joined
03:21
statisfiable6 joined,
bloatable6 joined,
notable6 joined
03:22
committable6 joined,
coverable6 joined,
evalable6 joined,
unicodable6 joined,
greppable6 joined
03:23
releasable6 joined
03:46
[Coke]_ joined
03:48
[Coke]__ left
04:48
linkable6 left,
evalable6 left,
linkable6 joined
04:49
razetime joined
04:51
evalable6 joined
05:51
evalable6 left,
evalable6 joined
06:06
reportable6 left
06:08
reportable6 joined
06:23
abraxxa joined
06:24
razetime left,
razetime joined
06:32
razetime left
06:40
Sgeo left
06:45
abraxxa left,
abraxxa joined
07:11
MoC joined
|
|||
nine | lizmat: CompUnit::RepositoryRegistry.file-for-spec | 07:14 | |
07:18
vrurg_ joined,
vrurg left
07:44
lichtkind joined
08:00
razetime joined,
dakkar joined
08:11
MoC left
08:12
sena_kun joined
08:23
vrurg_ left,
vrurg joined
08:42
razetime left
09:18
Altai-man joined
09:19
sena_kun left
09:39
squashable6 left
09:41
squashable6 joined
|
|||
lizmat | nine: thanks | 09:49 | |
10:41
evalable6 left,
linkable6 left
10:42
evalable6 joined
10:44
linkable6 joined
11:15
jetchisel left
11:17
jetchisel joined
|
|||
lizmat clickbaits rakudoweekly.blog/2022/10/03/2022-...g-to-core/ | 11:30 | ||
12:00
saint- joined
|
|||
tbrowder | \o/ | 12:00 | |
12:02
simcop2387 left
|
|||
tbrowder | can anyone show how to dynamically create a Callable object? i would like to be able to create formatter callables to use with DateTime objects. | 12:03 | |
lizmat | before RakuAST lands, EVAL is really the only option, if I understand you correctly | 12:04 | |
12:04
simcop2387 joined
|
|||
lizmat | afk for a few hours& | 12:06 | |
12:07
reportable6 left
12:08
reportable6 joined
|
|||
tbrowder | lizmat: thnx, i'll look into that | 12:15 | |
12:39
bigdata left
12:53
hythm left
|
|||
frost | already read the weekly news, lizmat++ | 13:05 | |
13:07
vrurg left
13:08
vrurg joined
13:10
frost left
13:12
PolarBearXL joined
13:58
Sgeo joined
|
|||
tonyo | tbrowder: do you have a syntax you're trying to get specifically? | 14:01 | |
you can do stuff like: | 14:03 | ||
m: class A { method gist { "a!" } }; my $b = class :: is A { method gist { "b!" } }; A.new.say; $b.say | |||
camelia | a! b! |
||
tbrowder | tonyo: i'll put it in a gist. are you gonna be around a few more minutes? | 14:06 | |
14:07
lichtkind left
|
|||
tonyo | yea | 14:10 | |
day is just starting | |||
14:26
[Coke]_ is now known as [Coke]
|
|||
[Coke] | TIL about 'tmux capture-pane', nifty | 14:28 | |
tbrowder | tonyo: the gist: gist.github.com/tbrowder/ac1857907...c27e9f15cc | 14:35 | |
tonyo | tbrowder: that should already work with a few tweaks, you just want that in a class form? | 14:36 | |
actually, that should just work (thought self was referring to class instance) | |||
tbrowder | i have solved my immediate problem by generating the code with a raku program. it's a known set i need for now, but to be able to create them dynamically would be cool! | 14:38 | |
tonyo | m: class A { method info { "A.info" }; }; my $f = sub ($s) { sprintf "got:%s", .info given $s }; say $f(A.new); | ||
camelia | got:A.info | ||
tonyo | tbrowder: ^ | 14:39 | |
El_Che | will Vadim course be recorded? (aka no time now, but maybe interesting later)? | ||
is it me or it's been a while since the last raku release? | 14:41 | ||
tonyo | if you want to do it with a class at runtime, given you'll know what formatter you want on object instantiation: | 14:43 | |
m: class A { has $.num = 0; has $!formatter; method formatter() { $!formatter() }; submethod TWEAK(|) { $!formatter = self.num < 10 ?? sub { "<10" } !! sub { ">=10" }; } }; A.new(:num(10)).formatter.say; A.new(:num(5)).formatter.say; | 14:44 | ||
camelia | >=10 <10 |
||
[Coke] | El_Che: if I remember correctly, jdv had an issue running Blin that blocked the release. | 14:45 | |
El_Che | I see | ||
[Coke] | I had tried a bit to get Blin setup, but I think the directions had some assumptions I missed. | 14:46 | |
tbrowder | tonyo: very helpful, i'll give it a try, thank you soooo much! | ||
[Coke] | jdv: is there a ticket or gist somewhere with the issue you faced? | 14:48 | |
(ignore that, will move to the -dev channel | |||
El_Che | [Coke]: I find it interesting as well :) | 14:59 | |
15:01
discord-raku-bot left,
discord-raku-bot joined
15:16
Kaipei is now known as Kaiepi
15:17
PolarBearXL left
|
|||
tonyo | tbrowder: any time | 15:53 | |
El_Che | [Coke]: I expect a executive summary :) | 15:56 | |
15:58
rypervenche left
16:00
[Coke]__ joined
16:02
MoC joined
16:03
[Coke] left
16:07
[Coke]__ is now known as [Coke]
|
|||
[Coke] | . | 16:19 | |
[Coke] sees an IRC disconnect that does NOT correspond to a local ISP issue. wow. | |||
Nemokosch | hahaha | 16:20 | |
16:21
MoC left,
Sgeo left,
saint- left,
Manifest0 left,
sftp left,
silug left,
dustinm` left,
ilogger2 left,
eseyman left,
Zero_Dogg left,
perlmaros left,
bdju left,
avar left,
djerius left,
camelia left,
hexology left,
peder left,
bartolin_ left,
tinita left,
GreaseMonkey left,
mykhal left,
BinGOs left,
Grrrr left,
skaji left,
leont left,
gordonfish left,
KotH left,
nicole left,
thowe_ left,
zostay left,
aqua2 left,
Altreus left,
rjbs left,
kawaii_ left,
charsbar left,
leedo_ left,
jcallen left,
Ekho left,
kaskal left,
TieUpYourCamel left,
Tirifto_ left,
oodani left,
human_blip left,
mtj left,
kjp left,
coleman left,
kybr left,
a3r0 left,
gfldex left,
leah2 left
16:22
MoC joined,
Sgeo joined,
saint- joined,
Manifest0 joined,
kaskal joined,
sftp joined,
silug joined,
TieUpYourCamel joined,
Tirifto_ joined,
dustinm` joined,
ilogger2 joined,
eseyman joined,
camelia joined,
Zero_Dogg joined,
oodani joined,
djerius joined,
avar joined,
bdju joined,
perlmaros joined,
human_blip joined,
mtj joined,
kjp joined,
coleman joined,
Ekho joined,
jcallen joined,
leedo_ joined,
charsbar joined,
kawaii_ joined,
rjbs joined,
Altreus joined,
aqua2 joined,
zostay joined,
thowe_ joined,
nicole joined,
KotH joined,
gordonfish joined,
skaji joined,
leont joined,
BinGOs joined,
mykhal joined,
Grrrr joined,
GreaseMonkey joined,
tinita joined,
bartolin_ joined,
peder joined,
hexology joined,
kybr joined,
leah2 joined,
gfldex joined,
a3r0 joined
16:24
[Coke] joined,
discord-raku-bot joined,
vrurg joined,
reportable6 joined,
simcop2387 joined,
jetchisel joined,
linkable6 joined,
evalable6 joined,
squashable6 joined,
Altai-man joined,
dakkar joined,
abraxxa joined,
releasable6 joined,
greppable6 joined,
unicodable6 joined,
coverable6 joined,
committable6 joined,
notable6 joined,
bloatable6 joined,
statisfiable6 joined,
bisectable6 joined,
nativecallable6 joined,
benchable6 joined,
sourceable6 joined,
quotable6 joined,
shareable6 joined,
tellable6 joined,
HvszrStykp joined,
epony joined,
Oshawott joined,
xinming joined,
Colere joined,
dogbert17 joined,
euandreh joined,
Kaiepi joined,
perlbot joined,
MasterDuke joined,
sivoais joined,
Maylay joined,
samcv joined,
wanderer joined,
spacekookie joined,
swaggboi joined,
guifa_ joined,
m_athias joined,
nine joined,
rir joined,
japhb joined,
bpalmer joined,
Geth joined,
RakuIRCLogger joined,
nebuchadnezzar joined,
ProperNoun joined,
andrea[m] joined,
tadzik joined,
Matthew|m joined,
AlexDaniel joined,
CIAvash joined,
jmcgnh joined,
tejr joined,
shmup joined,
DarthGandalf joined,
cnx joined,
goblin joined,
ecocode joined,
smol-hors joined,
lizmat joined,
amenonsen joined,
El_Che joined,
energizer joined,
lucs joined,
synthmeat joined,
alethkit joined,
patrickb joined,
renormalist joined,
tobs joined,
samebchase- joined,
samebchase joined,
justache joined,
gugod joined,
timo joined,
dg joined,
jast joined,
Woodi joined,
xkr47 joined,
merpaderp joined,
moritz joined,
Scotteh joined,
_________ joined,
Sevalecan joined,
gabiruh_ joined,
jjatria joined,
JRaspass joined,
perryprog joined,
donpdonp|z_ joined,
bd3i joined,
andinus joined,
broquaint joined,
solitario joined,
mjgardner joined,
ugexe joined,
pjlsergeant joined,
Voldenet joined,
ingy joined,
pejayes joined,
corwin joined,
patterner____ joined,
dcx joined,
PotatoGim_ joined,
Juerd joined,
eof joined,
SmokeMachine joined,
maettu joined,
tonyo joined,
esh joined,
jdv joined,
tbrowder joined,
rba joined,
dpk joined,
pierrot joined,
sjn joined,
destroycomputers joined,
elcaro joined,
dutchie joined
16:25
vrurg left
|
|||
[Coke] | (I am up to over 200 ISP drops in the last 10 days or so; they finally seem to have stopped around midnight last night) | 16:26 | |
16:26
vrurg joined
16:28
PolarBearXL joined,
abraxxa left,
Xliff joined
16:37
lichtkind joined
16:38
dakkar left
|
|||
Rog | What’s the default precedence level for user-defined infix ops? | 16:54 | |
Specifically relative to infix:<+> | 16:55 | ||
Ah looks to be looser | |||
17:29
coleman left
17:44
coleman joined
17:49
xinming left,
xinming joined
17:50
dextercd joined
17:51
Altai-man left
18:03
xinming left,
xinming joined
18:07
reportable6 left
18:08
reportable6 joined
18:12
sena_kun joined
18:57
sena_kun left
18:59
sena_kun joined
19:05
Zero_Dogg left,
Zero_Dogg joined
19:11
bpalmer` joined
19:13
bpalmer left
19:34
MoC left
|
|||
[Coke] | . | 19:41 | |
jdv | boo | 19:47 | |
Nemokosch | seems like -5 is not a <number> token, and eventually not a <value> token in the grammar of Raku | 20:08 | |
quite shocking news imo | |||
I wanted to fix the "arrow return can't be a negative value" issue but I can't destroy half of the known universe on the way... | 20:09 | ||
moritz | channel your inner Thanos and do it! :-) | 20:22 | |
Nemokosch | :DDD | 20:24 | |
20:34
linkable6 left,
evalable6 left
|
|||
guifa_ | Nemokosch: that was designed to be part of raku's oddly consistent state. -1 is actually negating prefix + value | 20:34 | |
tellable6 | guifa_, I'll pass your message to Nemokosch | ||
20:36
linkable6 joined
20:37
evalable6 joined
20:40
sena_kun left
|
|||
Nemokosch | I subconsciously misread it, as if that was a temporary phase, there is a reason why... | 20:45 | |
it's oddly inconsistent if you expect to be able to pass negative constants as function return values | 20:47 | ||
there even is a "signed integer" token, it's just not a part of numish and consequenty number or value | 20:49 | ||
20:52
sena_kun joined
20:54
sena_kun left
|
|||
[Coke] | Blin is using v6.d.PREVIEW - that's out of date, yes? | 21:05 | |
ok, trying to run Blin with a checkout of Blin next to a checkout of whateverable with "raku -I../whateverable bin/blin.p6" ... I get the same Issue reported here: github.com/Raku/whateverable/issues/386 | 21:08 | ||
21:11
bpalmer` is now known as bpalmer
|
|||
guifa_ | Nemokosch: I think it should be eventually solvable. RakuAST in particular would make inserting a negative value there extremely easy | 21:22 | |
tellable6 | guifa_, I'll pass your message to Nemokosch | ||
gfldex | By carefully stealing ideas from PWC submissions, today I learned that :nth takes a Range. This is very useful indeed! | 21:56 | |
22:05
PolarBearXL left
|
|||
Xliff | m; raku -e 'my $dt = DateTime.now; my $d1 = $dt.earlier( days => $dt.day.pred ); my $sdow = $d1.day-of-week; my @m = (1...$d1.days-in-month); $sdow.say; @m.unshift(" ") for ^$sdow; @m = @m.map({ " " ~ .fmt($_ eq " " ?? "%2s" !! "%02d") ~ " "}).rotor(7, :partial); @m.unshift: <Sun Mon Tue Wed Thu Fri Sat>.map( *.fmt("%4s") ); .say for @m' | 22:42 | |
Hmmm... | |||
m: raku -e 'my $dt = DateTime.now; my $d1 = $dt.earlier( days => $dt.day.pred ); my $sdow = $d1.day-of-week; my @m = (1...$d1.days-in-month); $sdow.say; @m.unshift(" ") for ^$sdow; @m = @m.map({ " " ~ .fmt($_ eq " " ?? "%2s" !! "%02d") ~ " "}).rotor(7, :partial); @m.unshift: <Sun Mon Tue Wed Thu Fri Sat>.map( *.fmt("%4s") ); .say for @m' | |||
camelia | ===SORRY!=== Error while compiling <tmp> Two terms in a row at <tmp>:1 ------> raku -e⏏ 'my $dt = DateTime.now; my $d1 = $dt.ea expecting any of: infix infix stopper postfix statement … |
||
22:43
euandreh left
|
|||
Xliff | m: my $dt = DateTime.now; my $d1 = $dt.earlier( days => $dt.day.pred ); my $sdow = $d1.day-of-week; my @m = (1...$d1.days-in-month); $sdow.say; @m.unshift(" ") for ^$sdow; @m = @m.map({ " " ~ .fmt($_ eq " " ?? "%2s" !! "%02d") ~ " "}).rotor(7, :partial); @m.unshift: <Sun Mon Tue Wed Thu Fri Sat>.map( *.fmt("%4s") ); .say for @m | 22:43 | |
camelia | 6 ( Sun Mon Tue Wed Thu Fri Sat) ( 01 ) ( 02 03 04 05 06 07 08 ) ( 09 10 11 12 13 14 15 ) ( 16 17 18 19 20 21 22 ) ( 23 24 25 26 27 28 29 ) ( 30 31 ) |
||
Xliff | A raku Calendar in one line... :) | ||
Wonder if anyone can make it shorter? | |||
gfldex | I'm not sure if a calendar with less then 12 months would help much. :-> | 22:44 | |
Xliff | It's a single month, silly. :p | 22:48 | |
It can quickly be adapted to do the whole year with very little in the way of change. | 22:49 | ||
But then it wouldn't be wise to leave it as a one liner. | |||
22:57
dextercd left
23:06
lichtkind left
23:15
euandreh joined
23:20
euandreh left
23:24
euandreh joined
|
|||
gfldex | m: $_ = now.Date.truncated-to('month'); $_ = $_ ..^ .later(:1months); put <Su Mo Tu We Th Fr Sa>; .put for (|(' ' xx (.[0].day-of-week)), |$_».day».fmt('%.2d')).rotor(7, :partial); | 23:26 | |
camelia | Su Mo Tu We Th Fr Sa 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
||
Xliff | gfldex: dommit! *shakes fist* | ||
Well done. | 23:27 | ||
I'm going to steal it. | |||
gfldex | Sharing is caring! | ||
Xliff | :) | ||
23:30
euandreh left
|
|||
gfldex | It's wrong tho. .day-of-week starts at Monday. | 23:31 | |
Xliff | Yup. It's why I use ^$sdow | 23:32 | |
23:42
euandreh joined
23:58
epony left
|