🦋 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:37 wildtrees left 00:41 sena_kun left 00:45 pmurias left 00:47 pmurias joined 00:49 mahmudov left 00:54 mahmudov joined 00:56 sena_kun joined 01:20 mahmudov left 01:26 mahmudov joined 01:27 pmurias left 02:03 Kaiepi left 02:04 Kaiepi joined
Geth whateverable: 6b42fe9c6e | (Aleks-Daniel Jakimenko-Aleksejev)++ | xbin/Shareable.p6
Expose full commit shas when sharing builds

Requested in github.com/melezhik/RakuDist/issue...-575938842
02:05 shareable6 left 02:08 shareable6 joined 02:35 Doc_Holliwood left 02:36 Doc_Holliwould left 02:43 sena_kun left 02:57 sena_kun joined 03:57 sourceable6 left, nativecallable6 left, reportable6 left, coverable6 left, releasable6 left, shareable6 left, unicodable6 left, greppable6 left, benchable6 left 03:58 benchable6 joined, nativecallable6 joined, reportable6 joined 03:59 shareable6 joined 04:00 greppable6 joined, unicodable6 joined, sourceable6 joined, coverable6 joined, releasable6 joined 04:06 laminowany joined 04:38 laminowany left 04:41 sena_kun left 04:42 rindolf joined 04:57 sena_kun joined 05:10 Ekho- is now known as Ekho 05:51 xinming left, xinming joined 06:19 xinming_ joined 06:22 xinming left 06:33 daxim left 06:40 daxim joined 06:42 sena_kun left 06:58 sena_kun joined 07:58 reportable6 left, benchable6 left, unicodable6 left, releasable6 left, greppable6 left, coverable6 left, shareable6 left, sourceable6 left, nativecallable6 left, squashable6 left, statisfiable6 left, quotable6 left, notable6 left, tellable6 left, committable6 left, bloatable6 left, bisectable6 left, evalable6 left, benchable6 joined, nativecallable6 joined, sourceable6 joined 07:59 tellable6 joined, evalable6 joined, statisfiable6 joined, quotable6 joined, releasable6 joined, notable6 joined, shareable6 joined, bloatable6 joined, coverable6 joined 08:00 greppable6 joined, reportable6 joined, committable6 joined, bisectable6 joined 08:01 squashable6 joined, unicodable6 joined 08:03 epony left 08:31 epony joined 08:32 epony left, epony joined 08:35 wamba joined 08:40 stoned75 left 08:41 sena_kun left 08:50 stoned75 joined 08:57 sena_kun joined 09:04 epony left 09:16 epony joined
Geth doc: 0189217bdb | (JJ Merelo)++ | doc/Type/IO/Handle.pod6
Adapts definitions preparing for #2632
doc: 655da16555 | (JJ Merelo)++ | doc/Type/IO/Handle.pod6
Explain the sub form, which was omitted

Also preparing for #2632
doc: b56071b126 | (JJ Merelo)++ | doc/Type/IO/Handle.pod6
Adds new defined behavior of lines on /proc files, refs #2632
09:33 chloekek joined
Geth doc: 2cdbfe2c64 | (JJ Merelo)++ | doc/Type/IO/Handle.pod6
Rearranges examples in closes, rephrases and reindents.
doc: 4bff6d5370 | (JJ Merelo)++ | doc/Type/IO/Handle.pod6
Fixes compilation error.
tobs has somebody built the docs repo in recent times? I used to `make html-nohighlight` but that and htmlify don't exist anymore. Pod::Utilities and Documentable (taken from the README) are simply not found by zef. Does anyone have some advice? 09:46
moritz only meta advise: look into the README if there are any instructions, and if there either are none, or they don't work, open an issue in the docs repo 09:48
tobs Alright. (I was trying to *close* an issue though :-/) 09:50
moritz the Yaks need shaving, it seems 09:51
mojca So again: should I upgrade rakudo given these problems in tests, or should they be fixed first? paste.macports.org/03e2524f5433 09:59
Geth doc: taboege++ created pull request #3171:
Add NUL byte in NativeCall example
10:18 pmurias joined 10:20 Doc_Holliwood joined, Doc_Holliwould joined 10:21 chloekek left 10:22 pmurias left 10:24 pmurias joined 10:29 xinming_ left 10:30 xinming_ joined
Geth doc: 6f9798b175 | (Tobias Boege)++ | doc/Language/nativecall.pod6
Add NUL byte in NativeCall example

Also clarify when/why this is necessary.
Closes #3169
doc: cf18fa84cd | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | doc/Language/nativecall.pod6
Merge pull request #3171 from taboege/nativecall-gh3169

Add NUL byte in NativeCall example
10:35 chloekek joined
Geth doc: af842276cc | (Tobias Boege)++ | doc/Language/nativecall.pod6
'with the it' → 'with it'
10:41 sena_kun left 10:55 sena_kun joined 11:16 gabiruh joined 11:19 xinming_ left, xinming_ joined 11:23 mahmudov left 11:29 xh-78 joined 11:31 Tirifto joined, mahmudov joined 11:35 pmurias left 11:43 daxim left 11:49 daxim joined 12:34 stoned75 left 12:35 rindolf left 12:36 mahmudov left 12:41 stoned75 joined, rindolf joined, sena_kun left
Geth doc: dumarchie++ created pull request #3172:
Clarify when a Seq .is-lazy
12:51 jmerelo joined 12:57 sena_kun joined
tbrowder .ask Kaiepi are you interested in mentoring for a GSoC project to work on pod improvements? i could maybe help if need be 13:15
tellable6 tbrowder, I'll pass your message to Kaiepi
13:27 chloekek left 13:28 jjmerelo joined
jjmerelo releasable6: status 13:28
tellable6 2020-01-17T19:26:57Z #raku <AlexDaniel> jmerelo: I don't know, stackoverflow just doesn't sound like a resource I'd go to to ask about Raku
releasable6 jjmerelo, Next release will happen when it's ready. 1 blocker. 0 out of 503 commits logged
jjmerelo, Details: gist.github.com/fae83ccc61c57c06de...632ddf464a
13:30 jmerelo left
jjmerelo This year The Perl Foundation is going to participate in Outreachy. I have just prepared the projects page here perl-foundation-outreach.github.io...020-ideas/ 13:36
Good thing about outreachy, it needn't be a strictly code project. It can be documentation, or web, or really anything that can attract someone to our community.
It's addressed specifically at women (both cis and trans), trans men, and genderqueer people to apply 13:37
Check out their page, I think it's great that the Perl Foundation has allocated funds for this this year www.outreachy.org/ 13:38
Mechanism is pretty much the same: You propose projects via a PR, then we upload some selected number of them (probably all) to the outreachy page for the candidates to select 13:39
13:39 jjmerelo left 13:45 gabiruh left
Kaiepi .tell tbrowder, possibly, i'll think about it 13:47
tellable6 Kaiepi, I'll pass your message to tbrowder
13:53 Tirifto left 13:56 pmurias joined 14:04 lucasb joined 14:11 cpan-raku left, chloekek joined 14:14 cpan-raku joined, cpan-raku left, cpan-raku joined 14:22 rir joined 14:23 atroxaper joined
rir Hi. On raku.org, I could not find reference to method calls with trailing colon. I guess this is new in the last 8 or so years. 14:29
Any clues appreciated.
atroxaper rir: Hi. You can call foo($arg1, $arg2); or foo: $arg1, $arg2; 14:30
14:32 mahmudov joined
atroxaper rir: everything from : to ; will be used as arguments. 14:32
rir Thanks. And a bare foo: means what multimethod-wise?
My initial meeting is: self.bless: 14:34
:%opts } # closing statement brace 14:36
jnthn The : here is a "precedence drop"; it means the rest of the statement is interpreted as the argument list 14:37
It's useful if the arguments will span multiple lines, or for example be a block
As in $lock.protect: { #`(many lines of code in the block }
Um, missed the ) of the comment
That way you save needing to worry about a closing ) and the } end of statement rule means no need for a ; either 14:38
atroxaper docs.perl6.org/language/syntax#Precedence_drop
rir Thanks jnthn, atroxaper. Raku is a perl in the difficulty of looking up the !:^&@__ constructs! 14:40
14:41 sena_kun left, rir left
atroxaper jnthn: Hi. I just install a fresh rakudo v2019.11 and cro on a Mac. Try to run raku -e "use Cro::HTTP::Router;" and get '[1] 12345 abort' and Zsh shell or 'Abort trap: 6' in the Bash. Is it known issue? 14:53
s/'and Zsh'/in Zsh/ 14:54
14:56 sena_kun joined 14:57 pmurias left 15:30 pmurias joined 15:35 Kaiepi left 15:36 Kaiepi joined 15:41 gabiruh joined
rindolf atroxaper: hi 16:04
atroxaper: does raku -e "say 12" work? 16:05
jnthn atroxaper: No, and I've no idea what it could be, though if something that straightforward doesn't work I guess the install is pretty broken. 16:08
atroxaper rindolf: sure, yes 16:09
jnthn: going to check in docker.
rindolf atroxaper: ah, ok 16:10
Geth doc: 5dbd830e71 | (Peter du Marchie van Voorthuysen)++ | doc/Type/Seq.pod6
Clarify when a Seq .is-lazy

Even though a cached Seq can be considered a lazy list in the common sense of the word, the .is-lazy predicate has a particular meaning in Raku: it _guarantees_ lazy evaluation, even if the underlying iterator is used to create another Iterable.
perlbot Geth: Error: DBD::SQLite::db do failed: database or disk is full at ./plugins/karma_modify.pm line 68.
doc: c99de01312 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Type/Seq.pod6
Merge pull request #3172 from dumarchie/#3163

Clarify when a Seq .is-lazy
perlbot Geth: Error: DBD::SQLite::db do failed: database or disk is full at ./plugins/karma_modify.pm line 68.
Doc_Holliwould I didnt realize sort blocks have such a huge impact on performance. `sort { $^a <=> $^b } @someints` is apparently roughly 15 times slower than `sort @someints`
am i overlooking something? imgur.com/a/YzcRp1s
look at the diff between "Normal Sort with sort block" and "Normal Sort" 16:20
MasterDuke m: my @a = (^100_000).pick(*); { my @b = @a.sort({ $^a <=> $^b }); say @b[0]; say now - ENTER now; }; { my @c = @a.sort; say @c[0]; say now - ENTER now; } 16:29
camelia 0
Geth doc: jmaslak++ created pull request #3173:
Remove orphan code line
perlbot Geth: Error: DBD::SQLite::db do failed: database or disk is full at ./plugins/karma_modify.pm line 68.
MasterDuke bigger difference than i see on my machine, but not 15x 16:31
Doc_Holliwould i get 2.3 and 1.8 when i run that 16:33
and yet in my script it's super slow 16:35
16:36 jmerelo joined
MasterDuke maybe check a profile 16:36
Doc_Holliwould i dont follow 16:37
MasterDuke perl6 --profile script.raku 16:40
see where is slow. a local profile of just doing those two statements looks pretty similar to me. slowest thing with a bare sort is MERGESORT-REIFIED-LIST, if i do it with a block it's MERGESORT-REIFIED-LIST-WITH which is a little slower 16:41
16:42 sena_kun left
Doc_Holliwould That just hangs 16:44
ah 16:47
MasterDuke creating a profile slows the whole program down by a bit, can you reduce the size of the input? and i wouldn't try profiling your whole script, just a cut down version with the slow sort (and then another cut down version with the fast sort to compare)
Doc_Holliwould my code read in a text file, so i had an array of 10000 strings (that contain ints). so the sort block did a str to int conversion every time 16:48
16:49 domidumont joined 16:56 sena_kun joined
MasterDuke yeah, that would slow things down some. not sure i would expect it to be 15x slower though... 16:57
huh, the block form is way slower for an array of Strs. but `sort(+*)` is just about as fast as if they're Ints 17:01
atroxaper jnthn: it is ok in docker. 17:18
Geth doc: 24889d8dbb | (Joelle Maslak)++ | doc/Type/Exception.pod6
Remove orphan code line
doc: 5752b5c350 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Type/Exception.pod6
Merge pull request #3173 from jmaslak/minor-exception-doc-edit

Remove orphan code line
perlbot Geth: Error: DBD::SQLite::db do failed: database or disk is full at ./plugins/karma_modify.pm line 68.
perlbot Geth: Error: DBD::SQLite::db do failed: database or disk is full at ./plugins/karma_modify.pm line 68.
17:29 ab5tract joined 17:38 xinming_ left 17:40 xinming_ joined
AlexDaniel simcop2387: hey? 17:55
simcop2387 Hello
AlexDaniel simcop2387: look ↑
simcop2387 huh, let me look not sure what did it
Grinnz the ++ 17:58
simcop2387 ok should be better now
Grinnz: i meant the disk
AlexDaniel simcop2387++ 18:01
simcop2387 as always, log files that didn't get rotated
18:03 Poohman left, daxim left, Poohman joined 18:07 daxim joined
rypervenche If I have my $var = "abc123" and I want to see if any of the chars belong to a set in my my $set = set('a' .. 'z'), how could I do that. I feel like I could use $var.comb with (elem) somehow, but I'm not sure how to get it to check each char against the set and then return True or False. 18:08
jmerelo m: my $var = "abc123"; say "a" ∈ $var.comb 18:12
camelia True
jmerelo rypervenche: ^^^^
rypervenche: comb breaks a string into an array, the "element of" operator works in arrays too.
18:14 pmurias left 18:15 pmurias joined
rypervenche jmerelo: So I'm trying to do something like this. The output is False for all 3. gist.github.com/rypervenche/960601...9582ff1b0a 18:18
18:35 Tirifto joined
jmerelo rypervenche: sorry, was occupied elsewhere. Not clear what you want to do, and why you want to do it in a set. $test-pw.comb will return an array. The array cannot belong to any of these sets. 18:40
m: my $digit = (^9).any; my $test-pw = "abc123"; say $test-pw.comb eq $digit 18:41
camelia any(False, False, False, False, False, False, False, False, False)
rypervenche I'm trying to see if $test-pw contains any of the elements of the set. I think maybe I should be doing a smart match...
jmerelo m: my $digit = (^9).any; my $test-pw = "abc123"; say $test-pw.comb.map( * eq $digit ) 18:42
camelia (any(False, False, False, False, False, False, False, False, False) any(False, False, False, False, False, False, False, False, False) any(False, False, False, False, False, False, False, False, False) any(False, True, False, False, False, False, Fals…
18:43 sena_kun left
jmerelo rypervenche: maybe a regex might work better 18:43
rypervenche I'm essentially checking a password to see if it constains a digit, and then to see if it contains lowercase letters, uppercase, and I'll also have a variable with some symbols to check of the password contains at least one symbol as well.
Ok, I'll try that out.
jmerelo rypervenche: you can use & on regexes to make a string match all three
18:47 mahtob joined 18:49 mahtob left 18:50 mahmudov left 18:54 jmerelo left
moritz right, you can do something like $passwd ~~ / .* <[a..z]> .* & .* \d .* & <[|"/&%$]>.* / 18:54
but in the end, it's good form to give different error messages depending on which is missing, so you maybe want three different regexes indepdently 18:55
18:55 jmerelo joined
Doc_Holliwould it's good not to impose arbitrary rules onto the user, that won't help anybody but the attacker 18:57
18:58 sena_kun joined
Doc_Holliwould when you say "at least this and one of that" you are narrowing the search space 18:58
just require a minimum length of 12, or even 18 characters, and maybe check against a dictionary 18:59
El_Che mandatory xkcd link: xkcd.com/936/
Doc_Holliwould correct horse battery staple 19:01
and i didnt even have to click
and i have a lousy memory 19:02
19:06 TreyHarris joined 19:19 Manifest0 left, croRaku joined 19:21 croRaku left 19:23 pmurias left, pmurias joined 19:29 Manifest0 joined 19:33 stoned75 left 19:35 stoned75 joined 19:39 atroxaper left
Geth doc: 3c883cdcde | (Stoned Elipot)++ | doc/Language/regexes.pod6
Add a distinct section for the :ignorecase regex adverb

  ... so that it has its own entry in the toc of /language/regexes
jmerelo stoned75++
I just updated docs.raku.org, will re-generate to include this 19:40
stoned75 hi jmerelo!
btw this has the side effect of adding yet another (sub)page having the same "defect" as the one reported in github.com/Raku/doc/issues/3159 19:42
jmerelo stoned75: yep, I noticed
stoned75: there's still an issue with the names of those subpages.
stoned75 I guess Documentable could use some work on this aspect 19:43
jmerelo stoned75: we'll probably have to check ad-hoc indexes and maybe generate errors or something
stoned75: it needs some work on all aspects
stoned75 eh :)
jmerelo stoned75: I am going to kidnap Antonio next week, or when he finishes his exams to get to work on this.
stoned75 cool ! btw I'll be in fosdem, I'll drop by to say hi! :) 19:44
jmerelo stoned75: ah great!
stoned75: I think I have stand duty on Sunday morning
stoned75 that's cool 19:45
stand spotted on the map ;-) 19:46
jmerelo stoned75: something is wrong with the generation, but I can't really find what 19:48
stoned75: let me check
stoned75 was ok for me :-} 19:50
jmerelo It's OK, I guess... It's generated the page, the date and time has changed, but I still see the old file, even locally. 19:52
stoned75 btw don't you want to run the whole docs generation in the travis pipeline ? or is it too costly ?
oh I tend to kill and restart mojo on each update, as I haven't yet figured out when an updated was picked up 19:53
jmerelo stoned75: the problem is that it's a two-phase thing. documentable start generates the initial cache, then documentable update does the next ones
stoned75: it takes less than it used to, but there are few errors that will be caught generating the documentation that will not be caught by the tests 19:54
stoned75 ok IC 19:56
btw that is the '[io grant]' reference in some commits ? 20:02
jmerelo stoned75: a grant requested by Zoffix Znet in 2017, I think
stoned75: it was used to indicate that those commits were part of the grant.
stoned75: the content of the grant was about speeding up and completing IO in Rakudo 20:03
stoned75: let me see if I find it
stoned75 from the perl foundation ?
jmerelo stoned75: right blogs.perl.org/users/zoffix_znet/20...grant.html
stoned75 that was cool 20:04
20:05 domidumont left
jmerelo stoned75: I regenerated the documentation. docs.raku.org/language/regexes#Ignore works now 20:05
stoned75: and that's another issue for documentable. It does not work some times
jmerelo goes AFK to dinner. See ya!
20:05 jmerelo left 20:41 sena_kun left 20:51 melezhik84 joined
melezhik84 Приветствую! Получилось протестировать API? 20:52
Sorry was not meant to public (((-; 20:53
Went to wrong place ((-:
20:54 lucasb left 20:56 sena_kun joined 20:59 melezhik84 left 21:07 rindolf left
Geth doc: f3ea310143 | (Sterling Hanenkamp)++ | doc/Type/IO/Socket/Async.pod6
Fix minor C<> => L<> typo
21:52 wamba left 22:05 Tirifto left 22:13 chloekek left
Geth doc: tbrowder++ created pull request #3174:
Use better word than 'exposition' and reword the paragraph
22:27 Doc_Holliwood left, Doc_Holliwould left
Geth doc: 699343c65b | (Tom Browder)++ | writing-docs/STYLEGUIDE.md
Use better word than 'exposition' and reword the paragraph
doc: aba1c0fce2 | (Tom Browder)++ (committed using GitHub Web editor) | writing-docs/STYLEGUIDE.md
Merge pull request #3174 from tbrowder/fix-typo

Use better word than 'exposition' and reword the paragraph
22:36 gabiruh left
Geth doc: tbrowder++ created pull request #3176:
Add more info, clean up text and definitions
doc: c0d025b29b | (Tom Browder)++ | CONTRIBUTING_PRs.md
Add more info, clean up text and definitions
doc: 9fdb56f25c | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING_PRs.md
Merge pull request #3176 from tbrowder/fix-pr-doc

Add more info, clean up text and definitions
22:42 sena_kun left
Geth doc: 7b1ac4d525 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING_PRs.md
Use example name
doc: 8b356fea7b | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING_PRs.md
Usable, but not yet perfect
22:45 aluaces left
Geth doc: 07bfebe0ab | (Stoned Elipot)++ | doc/Language/io-guide.pod6
Fix link to phasers will trait
22:51 mojca left 22:52 mojca joined 22:57 sena_kun joined 23:03 ab5tract left 23:07 Tirifto joined 23:33 pmurias left