🦋 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:11 konvertex left 00:16 melezhik left 00:24 Black_Ribbon left 00:25 dmc00 left, tlcu_ left 00:27 aborazmeh left 00:42 lucasb left 01:15 poohman joined 01:29 aborazmeh joined, aborazmeh left, aborazmeh joined 01:31 aborazmeh left 01:32 aborazmeh joined, aborazmeh left, aborazmeh joined 01:39 molaf left 01:50 zacts joined 01:51 molaf joined
zacts hello, are there any good books for learning raku? 02:11
I see this: docs.raku.org/language.html 02:12
but I don't see anything like modern perl for raku
the docs.raku.org seem to contain mainly topic references, at least as I'm skimming it now
02:35 aborazmeh left
timotimo zacts: you can have a look at perl6book.com 02:44
lucs Hmm... Not sure why "Learning Perl 6" is in the "I'm a novice" section. 02:47
Even non-novices should enjoy that book's approach. 02:48
s/is in the/is only in the/ 02:52
02:52 cpan-raku left 02:53 cpan-raku joined, cpan-raku left, cpan-raku joined
zacts timotimo: thanks 02:58
timotimo lucs: i do think the page has a github repo, probably under moritz' user account 03:00
an issue could be raised there 03:01
gotta go, seeya!
03:04 zacts left 03:27 _jrjsmrtn joined, kybr left 03:29 __jrjsmrtn__ left, kybr joined 03:34 zacts joined 04:12 Black_Ribbon joined 04:16 marcusr left 04:17 marcusr joined 04:19 farcas1982regreg joined 04:32 sena_kun joined 04:37 sena_kun left 04:38 sena_kun joined 04:41 brtastic joined 04:55 chloekek joined 04:56 sjm_uk joined 05:04 aborazmeh joined, aborazmeh left, aborazmeh joined 05:06 aborazmeh left 05:07 aborazmeh joined, aborazmeh left, aborazmeh joined 05:17 sauvin joined
moritz lucs: the target audience of "Learning Perl 6" is novices 05:32
it explains loops, strings, arrays, variables and all those other concepts that experienced programmers find very boring
or course, experienced programmers can get joy out of it too, but that's very secondary 05:35
05:40 stoned75 left 05:41 brtastic left 05:59 stoned75 joined 06:02 gnufr33dom left, sjm_uk left 06:04 Altai-man_ joined 06:06 sena_kun left 06:09 stoned75 left 06:11 stoned75 joined, aborazmeh left 06:13 vike1 left 06:15 aborazmeh joined, aborazmeh left, aborazmeh joined 06:16 chloekek left 06:24 brtastic joined
Geth doc: bc05f269ed | (Stoned Elipot)++ | doc/Type/Associative.pod6
Fix link to parameterized roles
doc: ef494fb6f6 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Type/Associative.pod6
Merge pull request #3399 from Raku/fix-link-param-roles

Fix link to parameterized roles
linkable6 Link: docs.raku.org/type/Associative
06:36 vike1 joined 06:40 tejr left, aborazmeh left, tejr joined 06:41 zacts left 06:44 sjm_uk joined 06:49 sjm_uk left 06:50 sjm_uk joined 07:02 rindolf joined 07:03 stoned75_ joined 07:05 tlcu_ joined 07:07 stoned75 left 07:10 dg left 07:16 dg joined 07:18 jjmerelo joined 07:21 kensanata joined 07:26 rindolf left 07:31 rindolf joined 07:35 dakkar joined 07:42 farcas1982regreg left 07:43 tlcu__ joined 07:45 tlcu__ left 07:46 tlcu_ left, Doc_Holliwood joined 07:47 pecastro joined 07:49 MasterDuke left 07:56 Itaipu_ joined 07:57 Itaipu left 08:04 tlcu_ joined, MasterDuke joined 08:05 sena_kun joined 08:07 Altai-man_ left 08:17 konvertex joined 08:19 Itaipu_ left 08:20 Itaipu joined 08:22 vike1 left 08:25 vike1 joined 08:32 alberto joined, alberto is now known as Guest73926
Guest73926 Is -i option still not a thing as described in rosettacode.org/wiki/Globally_repl...files#Raku ? 08:34
m: say 1 ~~ Mu 08:37
camelia True
08:37 chloekek joined
MasterDuke Guest73926: correct 08:38
Guest73926 thanks MasterDuke 08:40
08:43 jjmerelo left
MasterDuke Dwarf: i'm a little surprised the .map didn't work(but i haven't used grammars much), but why are you mapping anyway? your grammar explicitly only has one <dice>. if you change TOP to have <dice>+ then the rest of your program works 08:43
08:52 chloekek left 08:53 tlcu_ left
Dwarf Hm 08:53
That makes sense
08:58 stoned75_ left
moritz points out that dice is already a plural :D 09:19
dakkar diceseseseses 09:25
09:32 dakkar left 09:34 cpan-raku left, cpan-raku joined, cpan-raku left, cpan-raku joined
lizmat weekly: sumankhanal.netlify.app/post/raku/count_dna/ 09:41
notable6 lizmat, Noted! (weekly)
lizmat weekly: news.perlfoundation.org/post/jonathan-2020-04 09:44
notable6 lizmat, Noted! (weekly)
09:45 squashable6 left, squashable6 joined, dakkar joined 09:52 chloekek joined 10:04 Altai-man_ joined 10:07 Guest73926 is now known as aluaces, sena_kun left, MasterDuke left 10:14 patrickb joined 10:18 lichtkind joined
tbrowder moritz: yr next book should be "the joy of raku" 10:21
10:46 mowcat joined 10:47 stoned75 joined
moritz tbrowder: I'm not the right person for that :D 11:02
11:05 stoned75 left, chloekek left 11:06 stoned75 joined
moritz I'm currently working on redoing "Perl 6 Fundamentals" as "Raku Fundamentals" 11:12
lizmat moritz++ 11:13
11:14 Black_Ribbon left 11:15 clarkema joined 11:19 pilne joined 11:24 stoned75 left 11:25 MasterDuke joined, stoned75 joined 11:28 jjmerelo joined 11:42 clarkema left 11:44 clarkema joined 11:49 poohman left, patrickb left 11:51 cpage_ joined, pilne left 11:53 cpage left, cpage_ is now known as cpage 11:54 pilne joined, patrickb joined 12:02 mahafyi joined 12:05 sena_kun joined 12:07 Altai-man_ left 12:09 jjmerelo left 12:10 patrickb left 12:21 guifa left 12:23 mahafyi left
tbrowder moritz: when do expect the book to be out? 12:27
12:28 stoned75 left 12:29 stoned75 joined
moritz Q4 2020 12:29
moritz very distracted by work, family, covid-19 isolation and mood swings 12:30
12:31 samcv left, samcv joined
[Coke] moritz++ 12:42
cpan-raku New module released to CPAN! Fasta (0.0.1) by 03ELIZABETH 13:03
[Coke] is there a URL that lets me see that module? 13:10
(like, on metacpan?)
(also can't see it on modules.raku.org) 13:11
13:11 mowcat left 13:20 stoned75 left
timotimo [Coke]:well, modules.raku.org doesn't update immediately 13:22
lizmat [Coke]: github.com/lizmat/Fasta 13:23
Geth doc: 02cc7e06de | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/classtut.pod6
remove outdated slang phrase, make more pedantic
linkable6 Link: docs.raku.org/language/classtut
tbrowder lizmat++, bio folks must be watching that 13:26
timotimo lizmat: i wonder if splitting on > instead of \n can be faster; a little post-processing to deal with labels that have a > inside them as well maybe 13:27
or split on \n> and handle the very beginning differently
lizmat I understand these files can be large, so I'd like to do it line by line 13:30
13:30 guifa joined
lizmat I'll wait for someone to actually use it and having performance issues :-) 13:31
elcaro when for-looping over an iterable assigned to a scalar, is there any semantic/performace differences between `for $x<>`, `for $x[]`, and `for $x.list` ? 13:36
13:38 stoned75 joined 13:44 MasterDuke left
jnthn for $x<> is a simple removal of the Scalar container, so the most direct; .list will cause storage of elements if it's a Seq, which may be undesirable if wanting laziness. 13:47
13:52 MasterDuke joined 14:04 Altai-man_ joined 14:05 vike1 left 14:07 sena_kun left 14:13 sour joined
cpan-raku New module released to CPAN! Fasta (0.0.2) by 03ELIZABETH 14:20
lizmat [Coke]: its on modules.raku.org now: modules.raku.org/dist/Fasta:cpan:ELIZABETH 14:21
well, 0.01, .02 adds a "sequences" method to create the actual string
14:26 brtastic left
[Coke] lizmat++ 14:31
14:38 melezhik joined 15:06 lichtkind left, dakkar left 15:08 chloekek joined 15:15 molaf left, dakkar joined 15:20 poohman joined 15:24 brtastic joined 15:36 pelev joined 15:37 pelev left, pelev joined, pelev left 15:46 tyil[m] joined 15:48 sour left
jdv79 any general differences between ubuntu and apline that would cause a nativecall to behave differently? 15:48
well, i guess i should c it up to compare. maybe its not raku related. 15:49
melezhik jdv79: if it affects a Raku module?
16:00 stoned75 left 16:05 sena_kun joined 16:07 Altai-man_ left
sena_kun jdv79, alpine uses musl and ubuntu uses glibc? 16:12
mst yep 16:13
16:18 ChanNode joined 16:19 ChanNode left
jdv79 huh, that's bizarre and i'm an idiot. not null terminating a CArray doesn't break on ubuntu but on alpine its randomly "failing" 16:21
16:21 shadowpaste left
jdv79 cool and duh 16:22
16:22 camelCaser left, ccamel joined
jnthn Probably just "luck" in having zeroed memory given to you. I suspect ASAN and valgrind would point it out on either library 16:23
16:25 jjmerelo joined
jdv79 that makes sense, thanks 16:27
jjmerelo Hej 16:28
16:28 shadowpaste joined
jjmerelo What would you say is the equivalent of the __name__ == __main__ in Python in Raku? 16:28
16:28 NODE joined
jjmerelo Best I could come up with is to compare $*PROGRAM to file name 16:29
dakkar in p5 I've used `!defined caller`
jdv79 just curious - why would you want to do that? 16:30
iirc in python its how they flip a file from action like a module or like a program or something.
*acting 16:31
jjmerelo same reason as in python
Load a program to test whatever is defined there without starting the actual main part of the program.
I'm using Cro::HTTP::Test to test a microservice which can be also run independently 16:32
guifa2 For POD, is there any way to link to code objects (classes, methods, or even blocks)? I'm 99.9% sure the answer is no as links only go to other POD documents or URIs, but I feel like it might be a fairly useful thing to do. 16:35
16:35 NODE left
jjmerelo guifa2 there was an ad-hoc way of doing it, but it was obliterated in 2018 16:38
guifa2 Ah. I ask because there are sort of two separate POD annotations — the one that flows with the document, and the one that attaches to classes/methods/etc. It seems like it would be good to be able to link to content of either 16:39
16:39 xinming_ left 16:40 xinming_ joined 16:46 poohman left
jjmerelo guifa2 can you clarify that? 16:46
16:47 NODE joined
jjmerelo Pods and comments are the same in Raku, they are part of the documentation "braid". So if you intersperse declarator blocks with POD blocks, they will both be parsed by the compiler 16:47
dakkar maybe he means the bits you can get via `.WHY` 16:51
16:53 poohman joined
guifa2 dakkar correct 16:57
dakkar guifa2: so you'd like to L<#subname> or L<#classname>
16:58 guifa2_ joined
guifa2_ the .WHY is functionally different, in that it's not really a parallel document that happens to be interleaved with the code, but it's actually literally attached to a single code entity 16:59
s/.WHY/.WHY-style annotations 17:00
dakkar declarator blocks also appear in the $=pod array 17:01
17:01 guifa2 left 17:05 molaf joined
guifa2_ they do — and have a WHEREFORE method, that other pod elements don't 17:08
dakkar correct 17:09
now, I see some problems
the pod6 documentation says that L<> can link to a *section*
but declarator blocks are not (I think) sections
also, they don't get names
so, improvement: have them get the name of the thing they're documenting 17:10
then, make them link targets
we probably don't need namespacing
guifa2_: I think this needs a bug report 17:11
17:12 kensanata left
guifa2_ It possibly needs a bit more, possible a raku problem solving issue — for example, if you do a class with methods, and attach declarator pod to all of them, they are presented as top-level pod elements. That feels....off, I mean, you *can* say $=pod[2].WHEREFORE.package 17:16
to try to figure out that in rendering it might need to be nestled inside of a class 17:17
17:17 dakkar left
guifa2_ But I can't think of how to figure out handling a class within a class — classes don't have equivalent .package methods that I can see 17:18
Geth doc: dc3b549c6e | (Tom Browder)++ (committed using GitHub Web editor) | doc/Type/independent-routines.pod6
add missing space
linkable6 Link: docs.raku.org/type/independent-routines
17:19 vike1 joined 17:27 poohman left 17:31 climatedb joined 17:41 mowcat joined 17:45 ensamvarg_g6 joined 17:52 brtastic left, brtastic joined 17:59 melezhik left 18:04 Altai-man_ joined 18:06 sena_kun left 18:08 abraxxa left 18:10 abraxxa joined 18:26 sauvin left 18:28 poohman joined 18:33 sjm_uk left 18:37 poohman left 18:40 brtastic left 18:50 vrurg joined 18:52 ensamvarg_g6 left 18:54 NODE left 18:55 NODE joined 19:10 molaf left 19:18 brtastic joined 19:25 jjmerelo left 19:30 lichtkind joined 19:32 natrys joined 19:33 aborazmeh joined, aborazmeh left, aborazmeh joined 19:36 aborazmeh left 19:38 [Sno] left 19:40 [Sno] joined 19:57 leah2 left 20:05 sena_kun joined 20:06 Altai-man_ left 20:09 NODE left 20:10 NODE joined 20:13 leah2 joined 20:14 xinming_ left 20:15 xinming_ joined 20:21 leah2 left 20:28 molaf joined 20:32 stoned75 joined 20:35 poohman joined
poohman hello all, 20:35
lizmat poohman o/
poohman do we have a character class for real numbers (with decimal points) in regex or should it done manually 20:36
Hi lizmat
20:36 natrys left
poohman be done manually, I meant 20:37
lizmat I think you need to do that manually, but others like moritz would know for sure
20:38 Altai-man_ joined
poohman ok let me try to do that 20:38
20:40 sena_kun left 20:41 climatedb left, MasterDuke left 20:43 stoned75 left
timotimo a character class "for real numbers" would allow numbers like 000...1 or or 9999.9.9.9999 20:45
20:45 stoned75 joined 20:49 Marcool joined, girafe2 left, leah2 joined 20:50 girafe2 joined 20:51 rindolf left
Marcool hi all, is there anything special other than what's in the docs to know about using the "resources" part of a META6.json with zef on macOS? docs.raku.org/language/variables#i...FRESOURCES 20:53
I just get Nil back from trying to find my resource…
Geth doc/fix-link-label: 587f82d893 | (Stoned Elipot)++ | doc/Type/Associative.pod6
Correct pasto in link label
doc: stoned++ created pull request #3401:
Correct pasto in link label
20:58 leah2 left 21:14 leah2 joined
cpan-raku New module released to CPAN! Fasta (0.0.3) by 03ELIZABETH 21:19
lizmat 9.5x faster for counting bases, but cheating with nqp 21:21
Geth doc: 587f82d893 | (Stoned Elipot)++ | doc/Type/Associative.pod6
Correct pasto in link label
doc: 167ccf1f87 | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | doc/Type/Associative.pod6
Merge pull request #3401 from Raku/fix-link-label

Correct pasto in link label
linkable6 Link: docs.raku.org/type/Associative
21:52 ufobat__ joined
poohman in case all the data members in my class are private, then i will not have a default constructor for the class. Then will new() work? 21:55
21:56 ufobat_ left
poohman m: class A {has $!a;method entry($b) {$!a=$b;method show(){say $!a}};my A $c; $c.entry(10);$c.show(); 21:56
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3y $!a}};my A $c; $c.entry(10);$c.show();7⏏5<EOL>
poohman m: class A {has $!a;method entry($b) {$!a=$b;}method show(){say $!a}};my A $c; $c.entry(10);$c.show();
camelia 5===SORRY!5=== Error while compiling <tmp>
Strange text after block (missing semicolon or comma?)
at <tmp>:1
------> 3ss A {has $!a;method entry($b) {$!a=$b;}7⏏5method show(){say $!a}};my A $c; $c.entr
expecting any of:
poohman m: class A {has $!a;method entry($b){$!a=$b;}method show(){say $!a}};my A $c; $c.entry(10);$c.show(); 21:57
camelia 5===SORRY!5=== Error while compiling <tmp>
Strange text after block (missing semicolon or comma?)
at <tmp>:1
------> 3ass A {has $!a;method entry($b){$!a=$b;}7⏏5method show(){say $!a}};my A $c; $c.entr
expecting any of:
poohman m: class A {has $!a;method entry($b){$!a=$b;};method show(){say $!a};};my A $c; $c.entry(10);$c.show(); 21:58
camelia Cannot look up attributes in a A type object
in method entry at <tmp> line 1
in block <unit> at <tmp> line 1
poohman m: class A {has $!a;method entry($b){$!a=$b;};method show(){say $!a};};my A $c= A.new(); $c.entry(10);$c.show();
camelia 10
poohman sorry had some trouble in my repl 21:59
22:00 stoned75 left 22:01 chloekek left
guifa2_ pooman: the default constructor will work, so long as you don't have "is required" 22:05
m: class Foo { has $!bar }; say Foo.new;
camelia Foo.new 22:06
guifa2_ m: class Foo { has $!bar is required }; say Foo.new;
camelia The attribute '$!bar' is required, but you did not provide a value for it.
in block <unit> at <tmp> line 1
22:06 Black_Ribbon joined, guifa left
guifa2_ (but in the first case, $!bar will remain undefined and may or may not be useful) 22:07
22:08 melezhik joined, MasterDuke joined
melezhik RakuDist now could run module test for multiple rakudo version in one click - repo.westus.cloudapp.azure.com/rakudist2/ 22:09
cc :AlexDaniel`
22:09 brtastic left
AlexDaniel` melezhik: where's 2015.12 ? 22:10
22:11 Altai-man_ left
AlexDaniel` also can you remove the ones that have point releases? That is, no reason to list 2020.05 if there's 2020.05.1, just list 2020.05.1 only 22:11
22:14 poohman left
AlexDaniel` 6c: say $*PERL.compiler.version 22:20
* 6c: say $*PERL
committable6 AlexDaniel`, gist.github.com/f57c1703958a69ed69...54562ab691
AlexDaniel` 6c: say $*PERL
committable6 AlexDaniel`, gist.github.com/6c20d357c5f7fc7056...59de94507d
melezhik :AlexDaniel` is it better now?
AlexDaniel` Altai-man_: interesting! See gist.github.com/Whateverable/f57c1...54562ab691 22:21
tellable6 AlexDaniel`, I'll pass your message to Altai-man_
AlexDaniel` Altai-man_:
tellable6 AlexDaniel`, I'll pass your message to Altai-man_
AlexDaniel` Altai-man_: basically, I think 2020.02.1 was botched a bit. The VERSION wasn't set correctly, for some reason 22:22
tellable6 AlexDaniel`, I'll pass your message to Altai-man_
AlexDaniel` Altai-man_: 2020.05.1 is fine though 22:23
tellable6 AlexDaniel`, I'll pass your message to Altai-man_
AlexDaniel` melezhik: yes, but there's still 2020.05
melezhik fixed
AlexDaniel` also, 2019.07.01 should be 2019.07.1 (not .01 but .1) 22:24
I don't know if it makes a difference but maybe it makes sense to be more precise
melezhik yeah, it's internally is converted into sha's but I'll fix it 22:25
AlexDaniel` that's really great I think, let's see if others find it useful
melezhik yeah, thank you 22:26
AlexDaniel` weekly: Ever wondered if your module works on older rakudo versions? Well, now you can test it with a few clicks: repo.westus.cloudapp.azure.com/rakudist2/
notable6 AlexDaniel`, Noted! (weekly)
AlexDaniel` melezhik: can you add 2018.10 to the list? That was the last release supporting 6.c so maybe it is significant 22:27
melezhik yeah. will do it later 22:28
22:28 mowcat left
melezhik need to go 22:28
AlexDaniel` also maybe 2016.12 (debian oldstable) and 2017.12 so that there's at least one per year :) 22:29
OK so it doesn't work for 2015.12… 22:33
looking at the output, it seems like zef itself doesn't support 2015.12?
what's the oldest version it does support then? 22:34
22:35 mowcat joined
AlexDaniel` anyway I just jumped in briefly to answer melezhik, won't be looking at it deeper now so I hope somebody else does 22:35
22:37 a3r0 left, a3r0 joined
Geth doc: tbrowder++ created pull request #3402:
Add more details of routine sprintf and its format string and *@args
22:42 mowcat left 22:43 mowcat joined
AlexDaniel` weekly: ↑ this was weeklied before, but now there's a much more user friendly list that you can shift-select and test your module on all versions with just one request 22:49
notable6 AlexDaniel`, Noted! (weekly)
22:56 poohman joined, mowcat left 22:57 mowcat joined
poohman guifa - thanks 22:57
23:00 Marcool left 23:07 lichtkind left 23:18 pecastro left 23:27 mowotter joined 23:30 mowcat left 23:32 gfldex joined 23:35 poohman left 23:38 Marcool joined, dustinm` left 23:42 Marcool left 23:56 aborazmeh joined, aborazmeh left, aborazmeh joined