🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku Set by ChanServ on 14 October 2019. |
|||
00:00
Cabanossi left
00:04
lucasb left
00:13
Cabanossi joined
00:19
[particle] joined
00:24
AlexDaniel left
00:25
AlexDaniel joined,
AlexDaniel left,
AlexDaniel joined
00:33
splatt9990 left
00:34
[particle]1 joined
00:36
[particle] left
00:41
splatt9990 joined
00:47
empee0 left
00:49
[particle] joined
00:51
[particle]1 left
00:52
splatt9990 left
00:54
splatt9990 joined,
splatt9990 left
00:55
splatt9990 joined,
cpan-raku left
00:56
cpan-raku joined,
cpan-raku left,
cpan-raku joined
01:04
[particle]1 joined
01:05
splatt9990 left
01:06
[particle] left
01:34
molaf left
01:47
molaf joined
01:55
mst left
02:08
KindTwo joined
02:10
KindOne left
02:12
KindTwo is now known as KindOne
02:19
KindOne left,
libertas left
02:20
KindOne joined
02:24
mowcat left
02:29
KindOne left,
KindTwo joined
02:33
aborazmeh joined,
aborazmeh left,
aborazmeh joined,
KindTwo is now known as KindOne
02:44
Cabanoss- joined
02:45
Cabanossi left,
Cabanoss- is now known as Cabanossi
03:40
hacktor joined
04:05
wamba joined
04:27
aborazmeh left
04:37
OpenZen left
|
|||
cpan-raku | New module released to CPAN! Grammar::DiceRolls (0.3.0) by 03TYIL | 04:54 | |
New module released to CPAN! IRC::Client::Plugin::DiceRolls (0.2.0) by 03TYIL | 05:01 | ||
05:37
evalable6 left,
linkable6 left
05:39
evalable6 joined,
linkable6 joined
05:56
Doc_Holliwood joined
06:00
skids left
06:15
Kaiepi joined
06:33
xinming_ left,
xinming_ joined
06:48
brtastic joined
06:55
wamba left
07:00
JJMerelo joined
07:18
brtastic left
07:24
daxim left
07:29
daxim joined
07:40
brtastic joined
07:52
sjm_uk joined
07:53
brtastic left
08:03
rindolf joined
08:07
dyske joined
08:13
lbtjp joined
08:19
lbtjp left
08:21
soursBot joined
08:22
lbtjp joined
08:26
mowcat joined
08:32
Sgeo_ joined
08:34
sena_kun joined
|
|||
Geth_ | doc: 302ffc04cf | (JJ Merelo)++ | doc/Language/typesystem.pod6 Slightly correct API information |
08:35 | |
linkable6 | Link: docs.raku.org/language/typesystem | ||
08:35
lbtjp left,
domm left,
a3f left,
finsternis left,
stoned75 joined
08:36
Sgeo left,
lbtjp joined,
domm joined,
a3f joined
|
|||
Geth_ | doc: 526aa2fdf5 | (JJ Merelo)++ | doc/Language/typesystem.pod6 Clarify auth string |
08:38 | |
linkable6 | Link: docs.raku.org/language/typesystem | ||
08:38
Doc_Holliwood left
|
|||
Geth_ | doc: d77197925d | (JJ Merelo)++ | doc/Language/typesystem.pod6 Change example to reflect common usage. |
08:40 | |
linkable6 | Link: docs.raku.org/language/typesystem | ||
08:44
andrzejku joined
|
|||
bartolin_ | JJMerelo: a quick question: I've stumpled upon the variable names in this example for number context github.com/Raku/doc/blob/d77197925...6#L69-L71. My mind insisted 'but these are strings'. Wouldn't changing the variable names to $not-a-number and $neither-a-number make the example clearer? (You've added the example, so I'm asking. I could do the change.) | 09:09 | |
09:09
aborazmeh joined,
aborazmeh left,
aborazmeh joined
09:13
Sgeo_ left
09:17
dyske left
09:19
dyske joined
09:20
sjm_uk left
09:24
Black_Ribbon left,
Kaiepi left
09:25
leont joined,
Kaiepi joined
09:35
Altai-man_ joined
09:37
andrzejku left
09:38
sena_kun left
09:44
andrzejku joined
09:46
Manifest0 joined
09:47
dyske left
09:48
dyske joined
09:49
libertas joined
09:57
xinming_ left,
xinming_ joined
10:01
sjm_uk joined
10:06
wamba joined
10:09
dyske left
10:10
kensanata joined
10:27
rbt left
10:28
rbt joined
10:38
aborazmeh left
10:39
soursBot left
11:10
andrzejku left
11:22
lbtjp left
11:36
sena_kun joined
11:38
Altai-man_ left
11:39
Maylay left
11:40
Maylay joined
11:43
soursBot joined
11:53
libertas left
11:56
libertas joined,
ShimmerFairy joined
12:03
JJMerelo left
12:06
libertas left
|
|||
cpan-raku | New module released to CPAN! MongoDB (0.43.11) by 03MARTIMM | 12:17 | |
12:35
libertas joined
12:50
woolfy joined
12:59
curan joined
13:13
andrzejku joined
13:14
kensanata left
13:17
stoned75 left
13:18
stoned75 joined
13:21
kensanata joined
13:33
soursBot left
13:35
Altai-man_ joined
13:38
sena_kun left,
andrzejku left
13:54
OpenZen joined
13:58
benlit joined
13:59
benlit left
14:02
benlittle left
14:03
benlit joined,
benlit left
14:04
benlittle joined
14:10
soursBot joined
14:11
RaycatWhoDat joined
|
|||
RaycatWhoDat | Quick question: is there a way to do something like `my Int $max = 5; for 1..$max { .say }`? | 14:12 | |
Or would it be better to just manually `Range.new`? | |||
p6: my Int $max = 5; for 1..$max { .say } | 14:14 | ||
camelia | 1 2 3 4 5 |
||
RaycatWhoDat | dammit | ||
I swear, every time I ask a question here, I run the code in Camelia and it just works | |||
14:15
chloekek joined
|
|||
RaycatWhoDat | p6: say VERSION | 14:16 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Undeclared name: VERSION used at line 1. Did you mean 'Version'? |
||
RaycatWhoDat | p6: say Version | ||
camelia | (Version) | ||
RaycatWhoDat | Hm. | ||
14:17
Doc_Holliwood joined
14:25
woolfy left
14:30
onur joined,
onur left,
wamba left
|
|||
El_Che | RaycatWhoDat: you're just showing of how your brain is a perfect rakudo compiler | 14:31 | |
:) | |||
14:31
wamba joined
14:33
rindolf left
14:38
rindolf joined
14:41
MilkmanDan left
14:42
MilkmanDan joined
|
|||
raku-bridge | <Snoofkin> Version is a type for... you guessed it, a version identifier | 14:44 | |
<Snoofkin> m: say $*RAKU.version | 14:46 | ||
<Snoofkin> well, naturally that wouldn't work over the bridge | |||
<Snoofkin> but that's how you'd ask for the version | |||
14:46
mowcat left
|
|||
raku-bridge | <Snoofkin> But that only gives the language version, so it's more useful to look at $*VM | 14:48 | |
14:50
kensanata left
14:57
pecastro joined
|
|||
RaycatWhoDat | Ah, thanks. El_Che, Snoofkin | 15:03 | |
p6: $*VM.version.say | 15:04 | ||
camelia | v2020.05.35.gf.6.d.04.a.45.b | ||
RaycatWhoDat | Where can I find more information on these $* vars? | ||
El_Che | docs.raku.org/language/variables#D..._variables | ||
RaycatWhoDat | Got it, thanks again. Totally forgot twigils are a thing. | 15:05 | |
So, another thing I'm kinda hoping to get out of this foray into a language is a better understanding of how to be a computer scientist. I've been coding for 10ish years but I seem to be falling short in several deeper conversations about algorithms or data science or what have you. I can understand it in context but I'm having trouble articulating approaches and such. | 15:07 | ||
Y'all wouldn't happen to have any reading material or pointers for that, would ya? | 15:08 | ||
El_Che | RaycatWhoDat: as matter of fact, I do, met look for the url | 15:14 | |
greenteapress.com/wp/think-perl-6/ | |||
you can buy the book, or download the pdf for free | |||
RaycatWhoDat | Oh! Nice. | 15:15 | |
El_Che | if you have programming experience, you can go faster through the book, but it shows some concepts that are good to know | ||
algorhythm and CS book don't need to be language specific if you want to dig deeoer | 15:16 | ||
deper | |||
e | |||
RaycatWhoDat | You tried. | ||
xD | |||
El_Che | and failed :) | ||
RaycatWhoDat | That makes sense, though re: language-agnostic. Just bought that book. I'll give it a good read and see where my head's at after that. | 15:18 | |
15:18
suman joined
15:19
lucasb joined
|
|||
suman | m: my $x = 3; until $x != 1 { say "hello"; $x = $x - 1;} | 15:19 | |
camelia | ( no output ) | ||
suman | I guess it should say hello twice | 15:20 | |
but no output | |||
m: my $x = 3; until $x != 1 { say "hello"; $x = $x - 1;} | |||
camelia | ( no output ) | ||
RaycatWhoDat | Hmm. | 15:21 | |
lucs | suman: At what point does $x become different from 1? That's when the loop stops. | ||
RaycatWhoDat | Doesn't the conditional get fulfilled immediately? | ||
Ah, ninja'd by lucs | |||
Might be looking for `while`. | |||
lucs | suman: You got the logic backwards (who hasn't, many times (/me looks at himself)) | 15:22 | |
RaycatWhoDat | lucs: I feel that on a spiritual level. | ||
Coded myself into a box where the logic is all wrong and the variables don't matter | |||
suman | My logic is start with 3 and not until x is 1 run the loop at the same time decrement x | 15:23 | |
lucs | m: my $x = 3; until $x == 1 { say "hello"; $x = $x - 1;} | ||
camelia | hello hello |
||
lucs | m: my $x = 3; while $x != 1 { say "hello"; $x = $x - 1;} | 15:24 | |
camelia | hello hello |
||
RaycatWhoDat | `until` is one of those keywords that feels where when it isn't postfix | ||
weird* | 15:25 | ||
suman | lucs You nailed it thank you | ||
lucs | You're welcome. | ||
I only use 'until' and 'unless' as postfix, otherwise I get confused :/ | 15:26 | ||
RaycatWhoDat | ^ | ||
lucs | 「action」 unless 「cond」 <---> if ! 「cond」 { 「action」 } | 15:29 | |
「action」 until 「cond」 <---> while ! 「cond」 { 「action」 } | |||
15:31
suman left
|
|||
phogg | I think this is because in English saying "Unless X then Y" is less common than saying "Y, unless X" and so the latter is more natural. Similarly you don't often see sentences starting with "Until," except certain stock phrases e.g. "Until next time" is normal but "Until we are finished we will keep working" is not. | 15:34 | |
15:36
sena_kun joined
15:37
soursBot left,
_jrjsmrtn joined
15:38
Altai-man_ left
|
|||
lucs | phogg: Yep, that's how I feel it. | 15:38 | |
15:38
soursBot joined
15:39
__jrjsmrtn__ left
|
|||
Geth_ | doc: d69724319e | Coke++ | util/update-and-test Don't allow TEST_JOBS > 1 Related to #3466 |
15:58 | |
linkable6 | DOC#3466 [open]: github.com/Raku/doc/issues/3466 [xt] Pod::Cache isn't safe for concurrent access | ||
15:58
aborazmeh joined,
aborazmeh left,
aborazmeh joined
15:59
sjm_uk left
16:01
xinming_ left
16:02
xinming_ joined
16:07
curan left
16:08
aindilis left
16:10
aindilis joined
16:13
finanalyst joined
16:23
xinming_ left
16:25
xinming_ joined
16:36
JJMerelo joined
|
|||
Doc_Holliwood | I think it's common in parent talk. "until you've cleaned your room you will not leave it" =) | 16:37 | |
16:54
mst joined
16:55
suman joined
17:02
Sgeo joined
17:14
Sgeo left
17:19
natrys joined
|
|||
suman | Is it possible to return multiple values from a function ? | 17:26 | |
17:26
andrzejku joined
|
|||
suman | example return a scalar and array | 17:26 | |
This works but it it advisable | 17:29 | ||
return @sequence, "\n", "Total steps: ", $count; | |||
lucs | suman: You can do that if you wish. More details here: docs.raku.org/language/functions#Return_values | 17:34 | |
Note that returning a bunch of values might get a bit hard to manage. | 17:35 | ||
17:35
Altai-man_ joined
|
|||
suman | lucs # This function takes a number and calculates value of the num | 17:37 | |
$number = $number/2; | |||
"Total steps: ", $count; | |||
17:38
andrzejku left,
sena_kun left
|
|||
lucs | I'm not sure I'm following. You might want to paste more complete code in a gist or something. | 17:39 | |
17:41
finsternis joined
17:52
molaf left
17:55
pilne joined
|
|||
lucs & # ... | 17:58 | ||
17:59
daxim left
18:03
kensanata joined
18:06
[particle]1 left
18:07
daxim joined
18:09
gdonald left
18:17
girafe joined
|
|||
[Coke] | m: subset Y is Int|Str; sub foo(--> Y) { ... } # Is this a LTA message? | 18:18 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> No such method 'add_parent' for invocant of type 'Perl6::Metamodel::SubsetHOW' at <tmp>:1 |
||
[Coke] | m: subset Y is Int|Str; # sub not needed | ||
camelia | 5===SORRY!5=== Error while compiling <tmp> No such method 'add_parent' for invocant of type 'Perl6::Metamodel::SubsetHOW' at <tmp>:1 |
||
[Coke] | (I know the syntax is wrong there) | 18:19 | |
18:20
girafe2 left
|
|||
lizmat | [Coke]: I'd say yes, that's LTA error message | 18:20 | |
18:21
gdonald joined
18:22
aborazmeh left
18:31
OpenZen left
18:33
suman left
18:34
rbt left,
rbt joined
|
|||
[Coke] | m: subset Y is Int; # junction also not needed. :) | 18:34 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> No such method 'add_parent' for invocant of type 'Perl6::Metamodel::SubsetHOW' at <tmp>:1 |
||
18:35
OpenZen joined
18:42
soursBot left
18:47
deadmarshal joined
|
|||
deadmarshal | Hi. I've just started reading a bit of Raku and found it very much uglier than perl5. what do you think? 🤔 isn't it harder to read? considering that in this age readability counts amongst people. | 18:49 | |
18:50
KindOne left
18:55
KindOne joined
|
|||
CIAvash | say WHAT now; | 18:55 | |
lizmat | deadmarshal: feels more like a question you should be asking on the #perl channel | 18:58 | |
18:59
daxim left
19:03
daxim joined
19:04
finanalyst left
|
|||
deadmarshal | hmmmm | 19:06 | |
19:08
soursBot joined
19:10
wamba left
19:15
mst left
19:19
mst joined
19:21
lichtkind joined
|
|||
raku-bridge | <tmtvl> say .WHAT with now; # OUTPUT: (Instant) | 19:22 | |
19:26
RaycatWhoDat left,
RaycatWhoDat joined
19:31
aborazmeh joined,
aborazmeh left,
aborazmeh joined
19:36
aborazmeh left,
sena_kun joined
19:38
Altai-man_ left
19:41
Sgeo joined
19:44
molaf joined
|
|||
Geth_ | doc: softmoth++ created pull request #3467: p6doc: Add a deprecation comment to inform developers |
19:47 | |
19:52
[particle] joined
20:07
Kaiepi left,
aborazmeh joined,
aborazmeh left,
aborazmeh joined,
Kaiepi joined,
mowcat joined,
finanalyst joined
20:10
JJMerelo left
|
|||
rypervenche | Sorry for the notive question. I'm looking to have a subroutine run some rsync commands and have different rsync options for each src/dest. What would be the best data structure to have the src, dest, rsync options, etc for each sync that I need to do? I'm guessing maybe an array of hashes or hash of hashes, but I'm curious to know if there's a better way to structure it all. And how I might write it | 20:11 | |
well into my code. | |||
20:12
gdonald left
20:14
stoned75 left
20:15
stoned75 joined,
xinming_ left
20:16
xinming_ joined,
leont_ joined
20:17
gdonald joined
20:18
kensanata left,
chloekek left
20:19
lichtkind_ joined
20:21
leont left,
lichtkind left,
RaycatWhoDat left,
RaycatWhoDat joined
20:23
domm left
20:24
domm joined
20:28
Sgeo left
20:29
rindolf left
20:33
RaycatWhoDat left
20:34
domm left
20:35
domm joined
20:37
RaycatWhoDat joined
20:40
Cabanossi left
|
|||
El_Che | Personally I would write a hash of hashes | 21:07 | |
but you can make objects as well | |||
rypervenche: from my backup script: paste.ubuntu.com/p/xX2rmd7Ns6/ | 21:10 | ||
21:10
rbt left
21:11
rbt joined
21:17
lucasb left
21:22
deadmarshal left
|
|||
Geth_ | doc/sethash-link-set-ops: 98bad76bc3 | (Stoned Elipot)++ | doc/Type/SetHash.pod6 Fix link to set operators |
21:24 | |
doc: stoned++ created pull request #3468: Fix link to set operators |
21:25 | ||
21:35
Altai-man_ joined
21:36
Sgeo joined
21:38
sena_kun left
21:53
BlackChaosNL[m] left,
matiaslina left,
xfix left,
BlackChaosNL[m] joined,
matiaslina joined,
xfix joined,
ecocode left,
veesh left,
marcusr left,
skaji_ left,
cognominal left,
rypervenche left
21:54
ecocode joined,
veesh joined,
marcusr joined,
skaji_ joined,
cognominal joined,
rypervenche joined,
MasterDuke left,
natrys left,
rypervenche left,
MasterDuke joined
21:55
gabiruh left,
perigrin left,
schlaftier left,
vrurg left,
eseyman left,
Woodi left,
[ptc] left,
x[LGWs4x4i]uG2N0 left,
Bucciarati left,
KotH left,
[Coke] left,
gabiruh joined,
perigrin joined,
schlaftier joined,
vrurg joined,
eseyman joined,
Woodi joined,
[ptc] joined,
x[LGWs4x4i]uG2N0 joined,
Bucciarati joined,
KotH joined,
[Coke] joined,
phogg left,
wildtrees[m] left,
AlexDaniel` left,
TeamBlast left
21:56
phogg joined,
AlexDaniel` joined,
wildtrees[m] joined,
TeamBlast joined,
rypervenche joined,
tyil[m] left,
Nasrudin left,
xfix left
21:57
Doc_Holliwood left,
wamba joined,
sno left,
aluaces left,
abraxxa left,
leah2 left,
clem16 left,
simcop2387 left,
guifa left,
tailgate left,
perryprog left,
dudz left
21:58
sno joined,
aluaces joined,
abraxxa joined,
leah2 joined,
clem16 joined,
simcop2387 joined,
guifa joined,
tailgate joined,
perryprog joined,
dudz joined,
leah2 left,
robinsmidsrod left,
a3r0_ left,
nebuchadnezzar left,
vike1 left,
SpiceMan left,
TimToady left,
Benett left,
El_Che left,
b2gills left,
colomon_ left,
dpk left,
tomaw left,
renormalist left
21:59
robinsmidsrod joined,
a3r0_ joined,
nebuchadnezzar joined,
vike1 joined,
SpiceMan joined,
TimToady joined,
Benett joined,
El_Che joined,
b2gills joined,
colomon_ joined,
dpk joined,
tomaw joined,
renormalist joined,
xi joined,
stux|RC-only joined,
Mithaldu joined,
nine joined,
jdv79 joined,
BlackChaosNL[m] left,
matiaslina left,
cpan-raku left,
unclechu left,
soursBot left,
genevino joined
22:00
AlexDaniel` left,
mowotter joined
22:01
wildtrees[m] left,
leah2 joined,
uzl[m] left,
CIAvash left
22:03
mowcat left
22:06
tyil[m] joined,
chloekek joined
22:08
finanalyst left,
stoned75 left
22:09
BlackChaosNL[m] joined
22:10
RaycatWhoDat left,
AlexDaniel left
22:13
AlexDaniel` joined
22:16
chloekek left,
CIAvash joined,
uzl[m] joined
22:18
xfix joined
22:20
matiaslina joined
22:22
Nasrudin joined
22:27
daxim left
22:28
AlexDaniel joined,
AlexDaniel left,
AlexDaniel joined
|
|||
[Coke] | m: say "3.9.2".Version < "3.10.1".Version | 22:31 | |
camelia | True | ||
[Coke] | ^^ Very handy for me at work at the moment | ||
22:33
daxim joined,
wildtrees[m] joined
|
|||
[Coke] | ... once I update my install of rakudo. :| | 22:33 | |
(eh, will just use Version.new) | 22:34 | ||
22:35
unclechu joined
22:37
rbt left
22:38
rbt joined
|
|||
Geth_ | doc: softmoth++ created pull request #3469: create-cli: Minor improvements to enum example |
22:38 | |
22:44
OpenZen left
23:06
pecastro left
23:10
lichtkind_ left
23:16
finanalyst joined
23:35
leont_ left
23:36
sena_kun joined
23:37
Altai-man_ left
|
|||
rypervenche | El_Che: Thanks | 23:40 | |
23:47
xelxebar_ joined,
xelxebar left
|