»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋 Set by Zoffix on 25 July 2018. |
|||
00:04
w_richard_w joined
00:05
p6bannerbot sets mode: +v w_richard_w
00:06
someuser left,
pyrimidine joined
00:07
dct left,
p6bannerbot sets mode: +v pyrimidine
00:13
someuser joined
00:14
p6bannerbot sets mode: +v someuser,
rgrau joined
00:15
p6bannerbot sets mode: +v rgrau
|
|||
Juerd | rakudoc | 00:22 | |
00:25
rgrau left
00:31
w_richard_w left,
rgrau joined
00:32
p6bannerbot sets mode: +v rgrau
00:53
graphene left
00:54
graphene joined
00:55
p6bannerbot sets mode: +v graphene
00:56
graphene left
00:58
graphene joined
00:59
p6bannerbot sets mode: +v graphene
01:05
kurahaupo joined,
kerframil left,
p6bannerbot sets mode: +v kurahaupo
01:07
kerframil joined,
p6bannerbot sets mode: +v kerframil
01:10
ryn1x joined
01:11
p6bannerbot sets mode: +v ryn1x
01:17
ryn1x left,
ryn1x joined
01:18
p6bannerbot sets mode: +v ryn1x,
kurahaupo left
01:19
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
01:24
telex joined
01:25
p6bannerbot sets mode: +v telex
01:29
kurahaupo left
01:32
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke
01:33
kurahaupo joined,
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
|
|||
tbrowder | rakudoc! excellent | 01:33 | |
01:33
p6bannerbot sets mode: +v kurahaupo
01:44
kurahaupo left
01:57
clarkema left
|
|||
SmokeMachine | .tell pmurias I can be wrong, but I think this is the first "todo app" written in perl6 using memoized dom for the browser! :) perl6.github.io/6pad/?#60b7cb15e67...04d1a5a1d1 | 02:07 | |
yoleaux | SmokeMachine: I'll pass your message to pmurias. | ||
02:23
qiqi joined,
kurahaupo joined
02:24
kurahaupo left,
p6bannerbot sets mode: +v qiqi,
kurahaupo joined
02:25
p6bannerbot sets mode: +v kurahaupo
02:28
kurahaupo left
02:29
kurahaupo joined
02:30
p6bannerbot sets mode: +v kurahaupo
02:32
MasterDuke left
02:34
molaf left
02:41
eater joined
02:42
p6bannerbot sets mode: +v eater
02:46
rouking joined
02:47
eater left,
molaf joined,
p6bannerbot sets mode: +v rouking
|
|||
rouking | I feel like the perl6.org homepage could give a better impression (and possibly should mention the nickname Raku somewhere?) | 02:47 | |
02:47
eater joined
02:48
p6bannerbot sets mode: +v molaf,
p6bannerbot sets mode: +v eater
02:50
eater left
02:51
eater joined,
eater left
|
|||
rouking | maybe mentioning some of the application for which one might use the language, and perhaps more code samples | 02:52 | |
02:52
eater joined,
eater left
03:00
eater joined
03:01
p6bannerbot sets mode: +v eater
|
|||
Geth | advent: titsuki++ created pull request #4: Add titsuki's entry |
03:02 | |
advent: 219a96a3fe | (Itsuki Toyota)++ (committed using GitHub Web editor) | perl6advent-2018/schedule Add titsuki's entry I already have my advent account so I don't need new invitation. |
03:13 | ||
advent: f55d09b4a2 | (Aleks-Daniel Jakimenko-Aleksejev)++ (committed using GitHub Web editor) | perl6advent-2018/schedule Merge pull request #4 from titsuki/patch-1 Add titsuki's entry |
|||
lookatme_q | rouking, they have a official website rakudo.org. Actually I am not know what is Raku mean | 03:15 | |
03:16
eater left
03:18
eater joined
03:19
p6bannerbot sets mode: +v eater
|
|||
AlexDaniel | rouking: maybe consider filing a ticket here: github.com/perl6/perl6.org | 03:23 | |
or maybe even submitting a PR :) | |||
rouking: regarding “Raku”, see this discussion: github.com/perl6/user-experience/issues/31 | 03:24 | ||
03:27
leont left
03:28
kurahaupo left
03:29
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
03:57
kurahaupo_ joined
03:58
p6bannerbot sets mode: +v kurahaupo_,
kurahaupo left
04:03
hythm_ joined,
p6bannerbot sets mode: +v hythm_
|
|||
hythm_ | Hi, is there a module similar to perl5's Tree::DAG_Node? | 04:04 | |
04:09
kurahaupo_ left
04:11
hythm_ left
04:13
Algent24 joined,
Algent24 left
04:52
Cabanossi joined
04:53
p6bannerbot sets mode: +v Cabanossi,
Cabanoss- left
|
|||
Xliff | \o | 04:54 | |
holyghost | hi | ||
Xliff | What brackets can I use as alternatives to s//? | ||
04:57
molaf left
05:43
[particle] joined
05:44
p6bannerbot sets mode: +v [particle]
05:49
kurahaupo joined
05:50
p6bannerbot sets mode: +v kurahaupo
05:57
graphene left
05:58
ryn1x left,
graphene joined
05:59
p6bannerbot sets mode: +v graphene,
Sgeo_ joined
06:00
p6bannerbot sets mode: +v Sgeo_,
kurahaupo left
06:01
Sgeo left
06:02
kurahaupo joined
06:03
ryn1x joined,
p6bannerbot sets mode: +v kurahaupo,
p6bannerbot sets mode: +v ryn1x
|
|||
moritz | s[] = ..., s{} = ...; | 06:11 | |
06:15
ryn1x left,
jmerelo joined,
kurahaupo left
06:16
p6bannerbot sets mode: +v jmerelo
|
|||
holyghost | jmerelo: about the rakudo-star maintainer, do you have one ? | 06:17 | |
you mentioned a few days ago, you needed one | |||
hi BTW | |||
jmerelo | Hi | 06:18 | |
I think that's sorted out | |||
holyghost | ok | ||
06:20
kurahaupo joined
06:21
p6bannerbot sets mode: +v kurahaupo
06:23
robertle left
|
|||
jmerelo | squashable6: status | 06:24 | |
squashable6 | jmerelo, ⚠🍕 Next SQUASHathon in 2 days and ≈3 hours (2018-12-03 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
jmerelo | Hum | ||
Shouldn't Squashathons start on a Friday? | |||
.tell AlexDaniel don't usually Squashathons start on Fridays? | 06:25 | ||
yoleaux | jmerelo: I'll pass your message to AlexDaniel. | ||
jmerelo | squashable6: status | 06:29 | |
squashable6 | jmerelo, ⚠🍕 Next SQUASHathon in ≈3 hours (2018-12-01 UTC-12⌁UTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
jmerelo | That looks about right | ||
06:35
kurahaupo left
06:36
kurahaupo joined
06:37
p6bannerbot sets mode: +v kurahaupo
06:50
kurahaupo left,
kurahaupo joined
|
|||
Geth | doc: 71179be98f | (JJ Merelo)++ | doc/Type/Cool.pod6 Fixes text and examples I fact, it was more wrong than indicated for the OP. Thanks for drawing our attention to this. Closes #2482 |
06:51 | |
synopsebot_ | Link: doc.perl6.org/type/Cool | ||
06:51
p6bannerbot sets mode: +v kurahaupo
|
|||
jmerelo | Here's a guide for doing stuff in Squashathons dev.to/jj/squashing-perl-6-documen...-time-4ojn | 07:01 | |
You might find it useful | |||
We're starting in a while. There's a plush Camelia for the winner! | 07:02 | ||
07:04
kurahaupo left,
kurahaupo joined
07:05
p6bannerbot sets mode: +v kurahaupo
07:15
kurahaupo left
07:16
kurahaupo joined
07:17
p6bannerbot sets mode: +v kurahaupo
07:22
kerframil left
07:27
kurahaupo left
07:28
domidumont joined,
kurahaupo joined
07:29
p6bannerbot sets mode: +v domidumont,
p6bannerbot sets mode: +v kurahaupo
07:39
jmerelo left
07:41
kurahaupo left,
kurahaupo joined,
loops left
07:42
p6bannerbot sets mode: +v kurahaupo
07:51
kurahaupo left
07:52
kurahaupo joined,
xtreak joined,
p6bannerbot sets mode: +v kurahaupo
07:53
p6bannerbot sets mode: +v xtreak
07:55
tobs` joined
07:56
p6bannerbot sets mode: +v tobs`
08:06
kurahaupo left
08:07
kurahaupo joined,
robertle joined
08:08
p6bannerbot sets mode: +v kurahaupo,
p6bannerbot sets mode: +v robertle,
coet[work] joined,
p6bannerbot sets mode: +v coet[work]
08:12
xtreak left
08:14
xtreak joined
08:15
p6bannerbot sets mode: +v xtreak
08:17
rindolf joined,
p6bannerbot sets mode: +v rindolf
08:19
kurahaupo left
08:23
kurahaupo joined
08:24
p6bannerbot sets mode: +v kurahaupo
08:32
holyghost left,
abraxxa joined
08:33
p6bannerbot sets mode: +v abraxxa
08:38
kurahaupo left
08:42
kurahaupo joined
08:43
p6bannerbot sets mode: +v kurahaupo
08:46
xtreak left,
rindolf left
08:57
kurahaupo left
09:00
kurahaupo joined
09:01
|oLa| joined,
p6bannerbot sets mode: +v kurahaupo
09:02
p6bannerbot sets mode: +v |oLa|,
dct joined,
p6bannerbot sets mode: +v dct,
xtreak joined,
xtreak left
09:04
rindolf joined,
p6bannerbot sets mode: +v rindolf
09:05
kurahaupo left
09:09
chakli joined
09:10
p6bannerbot sets mode: +v chakli,
chakli left
09:11
chakli joined,
p6bannerbot sets mode: +v chakli
|
|||
chakli | Does anyone know if cro supports client certificate authentication | 09:12 | |
El_Che | I find nothing on the docs | 09:22 | |
09:23
zakharyas joined
09:24
p6bannerbot sets mode: +v zakharyas
|
|||
mornfall | if i want to extract stuff from XML, would i go for XML::Query? | 09:27 | |
:( no pod in there | |||
also probably not what i wanted ... hm | 09:28 | ||
XML::Parser::Tiny looks okay, let's try that | 09:31 | ||
09:38
scimon joined
09:39
p6bannerbot sets mode: +v scimon
09:40
chakli left
09:41
w_richard_w joined,
w_richard_w left
09:45
kensanata joined,
p6bannerbot sets mode: +v kensanata
|
|||
jnthn | Hmm, is anyone else noticing that modules distributed via CPAN are taking quite a while to be installable at that version with zef? | 09:53 | |
09:55
kurahaupo joined
|
|||
jnthn | I had to wait quite a long time to be able to zef install the latest Inline::Perl5 earlier this week. And yesterday I uploaded a bunch of new Cro modules, and while they're indexed on modules.perl6.org, I can't yet seem to install that version via zef. It even said it was updating cpan mirror along the way. | 09:55 | |
09:56
p6bannerbot sets mode: +v kurahaupo
|
|||
mornfall | um... how do i iterate an Array $foo? | 09:56 | |
jnthn | for @$foo { } | ||
mornfall | oh. | 09:57 | |
jnthn | Generally, $ means "item", so `for $foo { }` can be read as "for this one item foo" | 10:00 | |
mornfall | hmm, and my ( $foo, $bar = '' ) clearly doesn't DWIM | 10:01 | |
($bar ends up being Any) | 10:02 | ||
jnthn | Not if you're assigning, no | ||
m: my ($foo, $bar = '') := \('blah'); dd $foo, $bar; | 10:04 | ||
camelia | "blah" "" |
||
mornfall | so i either init everything with my ( $foo, $bar ) = ( '', '' ) or split the my... sure, i can do that | ||
jnthn | m: my ($a, $b, $c) = '' xx *; dd $a, $b, $c | 10:05 | |
camelia | Str $a = "" Str $b = "" Str $c = "" |
||
jnthn | That way you don't have to write '' repeatedly | ||
mornfall | uh what's  exactly? :\ renders as N/L on top of each other? | ||
jnthn | Just the way the bot here renders a newline | 10:06 | |
mornfall | oh, ouch :p it's a little hard on the eyes | 10:07 | |
10:07
kurahaupo left
10:08
kurahaupo joined
10:09
p6bannerbot sets mode: +v kurahaupo
|
|||
moritz recommends a better font | 10:10 | ||
mornfall | moritz: this is a good font... it's *the* 6x13 | 10:11 | |
you'll have to pry it from my cold dead hands | 10:12 | ||
moritz | well, at the same time you complain about how it renders the  | 10:13 | |
mornfall | at least until i can get my hands on a monitor with 250 ppi or so, which doesn't seem too likely in the forseeable future :( | ||
moritz | otoh it might not even contain that symbol, and use a fallback to render it | ||
mornfall | moritz: it's a fixed-width font... that  thing is apparently very wide in proportional fonts :\ | 10:14 | |
the result is hard to read because everything is squashed on top of each other | |||
10:16
w_richard_w joined
|
|||
mornfall | either way, doesn't matter | 10:16 | |
10:17
p6bannerbot sets mode: +v w_richard_w
|
|||
mornfall | i might live to see a 300 DPI OLED monitor (not sure i'll be able to afford it though) | 10:17 | |
10:20
kurahaupo left,
kurahaupo joined
|
|||
mornfall | on the other hand, slurp( file ).split( /\s+\ ) ♥ | 10:20 | |
El_Che | .words ? | ||
mornfall | maybe that too | 10:21 | |
10:21
p6bannerbot sets mode: +v kurahaupo
|
|||
El_Che | m: say <The quick brown fox>.words | 10:21 | |
camelia | (The quick brown fox) | ||
El_Che | m: say <The quick brown fox>.words.join("") | ||
camelia | The quick brown fox |
||
El_Che | :) | 10:22 | |
mornfall tries to recall what's the difference between s and S | |||
p6doc Regex doesn't say :| | 10:23 | ||
jnthn | The uppercase ones are inverses | 10:24 | |
So, "not whitespace" | |||
mornfall | oh, yeah, that makes sense (words is documented as being .comb( /\S+/ ) which got me confused for a second) | 10:26 | |
not sure why though, i'd find .split a lot more intuitive? | 10:27 | ||
anyhow, .words it is... this is even better :) | |||
anyone know if perl-mode (emacs) is supposed to deal with perl6? because it seems to work suspiciously well | 10:30 | ||
El_Che | github.com/hinrik/perl6-mode | ||
10:30
kurahaupo left
|
|||
mornfall | i know there's a separate perl6-mode ... (there's also cperl-mode) | 10:30 | |
10:31
kurahaupo joined
|
|||
mornfall | (i'm actually using spacemacs, fwiw) | 10:31 | |
10:31
p6bannerbot sets mode: +v kurahaupo
10:38
ufobat joined
10:39
p6bannerbot sets mode: +v ufobat
10:40
kurahaupo left
|
|||
mornfall | for dir( 'eval.meta', test => /\.txt$/ ) { %new{m,\d+,} ~= .slurp; } # i'm never going back to perl5 | 10:41 | |
10:41
kurahaupo joined
10:42
p6bannerbot sets mode: +v kurahaupo
10:45
w_richard_w left
|
|||
mornfall | how do i write filter on an array? | 10:50 | |
El_Che | .grep? | 10:51 | |
jnthn | m: dd [1..10].grep(* > 5) # like this? | 10:52 | |
camelia | (6, 7, 8, 9, 10).Seq | ||
mornfall | yes, that! thanks | ||
10:52
kurahaupo left,
kurahaupo joined
|
|||
mornfall | p6doc Array didn't say | 10:53 | |
El_Che | docs.perl6.org/type/List#routine_grep | ||
10:53
p6bannerbot sets mode: +v kurahaupo
|
|||
jnthn wonders if p6doc includes things that are inherited | 10:56 | ||
mornfall | jnthn: apparently it doesn't, no (p6doc Seq makes a passing mention of grep though) | 10:58 | |
11:05
ranguard joined,
kurahaupo left,
kurahaupo joined
11:06
p6bannerbot sets mode: +v kurahaupo
|
|||
moritz | ... and the Any methods have been "helpfully" removed from the website as well :( | 11:08 | |
mornfall | is there a simple way to ask for an index of something in a list? | 11:11 | |
11:11
Geth joined,
ChanServ sets mode: +v Geth
|
|||
lizmat | @list.first( foo, :k ) | 11:12 | |
11:12
p6bannerbot sets mode: +v Geth
|
|||
lizmat | m: say <a b c d e>.first( "c", :k ) # mornfall | 11:13 | |
camelia | 2 | ||
11:16
kurahaupo left
|
|||
mornfall | lizmat: i have some trouble getting that to work ... it gives me the right thing without :k (as in the value is good), but :k gives me 0 always it seems | 11:16 | |
lizmat | m: say <a b c d e>.first( "c" ) | ||
camelia | c | ||
lizmat | without the :k you get the value it found | 11:17 | |
mornfall | yes, but with :k i always get 0 which is odd... also trying to run the REPL to check gave me MoarVM panic: Unable to allocate memory for callback closure | ||
lizmat | mornfall: which version of Perl 6 are you using ? | 11:18 | |
mornfall | yeah getting rid of Linenoise fixed that panic | ||
lizmat | and also: perhaps provide a gist somewhere of the code that is failing ? | ||
mornfall | This is Rakudo Star version 2018.10 built on MoarVM version 2018.10 | ||
but it's on openbsd, which is possibly unusual | |||
anyway, back to .first | |||
11:18
kurahaupo joined
|
|||
lizmat | m: dd <a b c d e c>.grep( "c", :k ) # alternately, use grep with :k | 11:19 | |
11:19
p6bannerbot sets mode: +v kurahaupo
|
|||
camelia | (2, 5).Seq | 11:19 | |
mornfall | okay in REPL it does what it does here, so there's a bug in my program, most like... i'll sort it out | ||
11:24
qiqi left
11:29
andrzejku_ joined
11:30
p6bannerbot sets mode: +v andrzejku_,
loops joined
11:31
p6bannerbot sets mode: +v loops
|
|||
mornfall | lizmat: oooh, i see my problem... my ( $date, $pid ) = m,([\d|\-]+)\.(\d+),.list; (and then i do .first( $date ) which somehow always returns the first item... the value itself is also wrong of course, i mis-read) | 11:31 | |
since $date is a match, not a string | |||
doing .Str on it fixes the problem | 11:32 | ||
lizmat | mornfall: good to hear you found the problem :-) | ||
11:32
andrzejku left
11:33
andrzejku_ is now known as andrzejku
|
|||
mornfall | any idea why it happens though? i'd expect the Match to coerce into a Str by itself, not to just pair up with all strings happily | 11:33 | |
11:33
kurahaupo left
|
|||
mornfall | oooh, it coerces into a Bool instead? | 11:33 | |
11:34
kurahaupo joined
|
|||
mornfall | nah, it doesn't | 11:34 | |
lizmat | m: dd Match ~~ Iterable | ||
camelia | Bool::False | ||
lizmat | hmmm... | ||
11:34
clarkema joined,
p6bannerbot sets mode: +v kurahaupo
|
|||
lizmat | it maybe because you can consider a Match object as a list of positional matches | 11:35 | |
*mey be | |||
*may be | |||
grrr | |||
11:35
p6bannerbot sets mode: +v clarkema
|
|||
mornfall | dunno, doing a .first( () ) gives Nil (as it should) | 11:36 | |
(the Match is already a single capture, came from a .list of the toplevel Match) | 11:37 | ||
lizmat | m: dd Match.new(list => <a b c d>).first("c", :k) | 11:38 | |
camelia | 2 | ||
lizmat | looks indeed that Match.first will run over the positional captures of the match | ||
mornfall | m: my ( $x ) = "a b c" ~~ /b/; <a b c>.first( $x ) | 11:40 | |
camelia | ( no output ) | ||
mornfall | m: my ( $x ) = "a b c" ~~ /b/; dd <a b c>.first( $x ) | ||
camelia | "a" | ||
mornfall | m: my ( $x ) = "a b c" ~~ /b/; dd <a b c>.first( $x.Str ) | 11:41 | |
camelia | "b" | ||
mornfall | beats me... | 11:42 | |
11:45
kurahaupo left,
kurahaupo joined
11:46
p6bannerbot sets mode: +v kurahaupo
11:57
sena_kun joined,
p6bannerbot sets mode: +v sena_kun
11:58
kurahaupo left
11:59
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
|
|||
mornfall | any idea how to get a union of keys of two hashes? (or two sorted lists for that matter) | 12:04 | |
moritz | unique(%a.keys, %b.keys) # maybe? | 12:05 | |
lizmat | m: dd <a b c d> (|) <d e f> | ||
camelia | Set.new("b","f","e","a","c","d") | ||
lucasb | m: say {a=>1,b=>2} ∪ {b=>3,c=>4} | ||
camelia | set(a b c) | ||
mornfall | hm, i looked for a Set and didn't find it, silly me | 12:06 | |
jnthn | I was going to write what lucasb did but with .keys on. Nice that you don't even need that :) | ||
mornfall | good thing i have ∪ on my keyboard ;-) | ||
cool stuff | 12:07 | ||
lizmat | yeah... if you union 2 lists, it will create the Set on the fly, rather than first create 2 Sets out of the lists | ||
12:10
kurahaupo left
12:11
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
12:12
Aceeri__ joined,
p6bannerbot sets mode: +v Aceeri__
12:21
jjmerelo joined,
p6bannerbot sets mode: +v jjmerelo
|
|||
jjmerelo | squashable6: status | 12:21 | |
squashable6 | jjmerelo, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈23 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
12:22
pecastro joined,
kurahaupo left,
p6bannerbot sets mode: +v pecastro,
kurahaupo joined
|
|||
lizmat | jjmerelo: I'm afraid I won't be able to do much with this Squashathon :-( | 12:23 | |
12:23
p6bannerbot sets mode: +v kurahaupo
|
|||
jjmerelo | lizmat: no problem | 12:23 | |
I am kind of busy, too... | 12:24 | ||
Better luck next time... | |||
squashable6 | 🍕 JJ++ labeled issue “Exceptions: `try` block …” (update): github.com/perl6/doc/issues/2468 | 12:26 | |
🍕🍕🍕 First contribution by JJ++! ♥ | |||
🍕 JJ++ labeled issue “Exceptions: `try` block …” (docs): github.com/perl6/doc/issues/2468 | |||
12:27
qiqi joined
|
|||
squashable6 | 🍕 JJ++ wrote a comment on “gather/take for hashes”: github.com/perl6/doc/issues/2479#i...-443189150 | 12:27 | |
12:28
p6bannerbot sets mode: +v qiqi
|
|||
AlexDaniel | . | 12:28 | |
yoleaux | 06:25Z <jmerelo> AlexDaniel: don't usually Squashathons start on Fridays? | ||
AlexDaniel | jjmerelo: oh wow there was a wrong date or something? | 12:30 | |
jjmerelo | AlexDaniel: there was | ||
I changed the wiki | |||
AlexDaniel | nice | ||
12:34
kurahaupo left
12:36
kurahaupo joined
12:37
p6bannerbot sets mode: +v kurahaupo
|
|||
Geth | doc: 08f511ce5f | (JJ Merelo)++ | writing-docs/EXAMPLES.md Minor revision looking at solving #2314 |
12:46 | |
doc: 31dec6c6db | (JJ Merelo)++ | doc/Programs/01-debugging.pod6 Revised anchoring of dd and examples Refs #1303, but closes #2314. We have simply improved the position of the anchor, but we are not creating a specific page with that URL, since that would have either be hard-coded in the generation or move this function, which is Rakudo specific, somewhere else. |
|||
squashable6 | 🍕 JJ++ closed issue “RFE: dd in the docs”: github.com/perl6/doc/issues/2314 | ||
12:48
kurahaupo left
|
|||
squashable6 | 🍕 JJ++ reopened issue “Problems with p6doc build ”: github.com/perl6/doc/issues/2387 | 12:55 | |
🍕 stmuk++ wrote a comment on “Problems with p6doc build ”: github.com/perl6/doc/issues/2387#i...-443196119 | 12:58 | ||
🍕🍕🍕 First contribution by stmuk++! ♥ | |||
mornfall | (is there a shortcut for .sort.reverse.first?) | 13:00 | |
13:00
coet[work] left
|
|||
sena_kun | m: <a c b>.sort[*-1] | 13:00 | |
camelia | ( no output ) | ||
sena_kun | m: <a c b>.sort[*-1].say | ||
camelia | c | ||
sena_kun | ^ | 13:01 | |
lizmat | m: dd <a b c d c>.first("c", :end, :k) # mornfall | ||
camelia | 4 | ||
lizmat | use the :end named parameter on .first | 13:02 | |
sena_kun | m: say <a c b>.max | ||
camelia | c | ||
lizmat | alernately, reverse the sort condition :-) | ||
mornfall | i think sena_kun won with .max :) | 13:03 | |
thanks both ofc | |||
lizmat | mornfall: aha, yes, but that was not clear from your question :-) | 13:04 | |
mornfall | lizmat: it wasn't clear to me either! :) | ||
13:04
yqt joined
13:05
p6bannerbot sets mode: +v yqt
|
|||
mornfall | (i think i like .first better than [0] ... easier to type for me?) | 13:05 | |
squashable6 | 🍕 JJ++ opened issue “Change page structure of the Debugging page”: github.com/perl6/doc/issues/2483 | 13:08 | |
mornfall | sorry to be such a bother, but it's really quite efficient to ask here... how do i topicalize a thing? (as in, make it $_)? | ||
squashable6 | 🍕 JJ++ labeled issue “Change page structure of the Debugging page” (docs): github.com/perl6/doc/issues/2483 | 13:09 | |
🍕 JJ++ labeled issue “Change page structure of the Debugging page” (update): github.com/perl6/doc/issues/2483 | |||
mornfall | hmm given perhaps | 13:10 | |
13:10
qiqi left
|
|||
sena_kun | `given` or `with`. | 13:10 | |
`with` checks a variable to be defined though | 13:11 | ||
13:12
leont joined
13:13
p6bannerbot sets mode: +v leont
13:18
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
13:20
beeman joined,
p6bannerbot sets mode: +v beeman
|
|||
squashable6 | 🍕 JJ++ labeled issue “RFE: working change in "words" documentation” (docs): github.com/perl6/doc/issues/2340 | 13:25 | |
🍕 JJ++ labeled issue “RFE: working change in "words" documentation” (update): github.com/perl6/doc/issues/2340 | |||
13:25
qiqi joined
|
|||
squashable6 | 🍕 JJ++ labeled issue “RFE: May be have a section on Escape Characters?” (docs): github.com/perl6/doc/issues/2313 | 13:25 | |
🍕 JJ++ labeled issue “RFE: May be have a section on Escape Characters?” (update): github.com/perl6/doc/issues/2313 | |||
13:26
p6bannerbot sets mode: +v qiqi,
lizmat left
|
|||
squashable6 | 🍕 JJ++ labeled issue “A booboo and an rfe in contains documentation” (docs): github.com/perl6/doc/issues/2334 | 13:27 | |
🍕 JJ++ labeled issue “A booboo and an rfe in contains documentation” (update): github.com/perl6/doc/issues/2334 | |||
13:29
kurahaupo left
|
|||
squashable6 | 🍕 JJ++ labeled issue “Need to note unordering-…” (update): github.com/perl6/doc/issues/2174 | 13:29 | |
13:29
kurahaupo joined
13:30
p6bannerbot sets mode: +v kurahaupo
|
|||
squashable6 | 🍕 JJ++ wrote a comment on “classes are just blocks (to some extent)”: github.com/perl6/doc/issues/2481#i...-443206878 | 13:42 | |
13:44
kurahaupo left
13:47
kurahaupo joined
13:48
p6bannerbot sets mode: +v kurahaupo
13:54
rindolf left
13:56
jjmerelo left
13:57
kurahaupo left
14:00
kurahaupo joined
14:01
p6bannerbot sets mode: +v kurahaupo
|
|||
mornfall | when i decode a bungled up utf8 string with utf8-c8... how would I go about replacing the bad chars with X? i tried subst( rx|\...|, "X" ); but that's not really working :\ | 14:02 | |
moritz | mornfall: first look at string after decoding | ||
mornfall | well, the 0x10FFFD char is what i get when i .say the string | 14:03 | |
which is what it should be, but the regex doesn't seem to be too happy about it | 14:04 | ||
moritz | after you've decoded with utf8-c8? sure? | ||
do you have a sample of input bytes that lead to that? | |||
m: say Buf.new(0xFE, 0xFF).decode('utf8-c8') | 14:05 | ||
camelia | xFExFF | ||
moritz | m: say Buf.new(0xFE, 0xFF).decode('utf8-c8').perl | ||
camelia | "xFExFF" | ||
moritz | m: say Buf.new(0xFE, 0xFF).decode('utf8-c8').ords | ||
camelia | (1114109 120 70 69 1114109 120 70 70) | ||
moritz | m: say Buf.new(0xFE, 0xFF).decode('utf8-c8').ords>>.hex | 14:06 | |
camelia | No such method 'hex' for invocant of type 'Int' in block <unit> at <tmp> line 1 |
||
moritz | m: say Buf.new(0xFE, 0xFF).decode('utf8-c8').ords.map(*.base(16)) | ||
camelia | (10FFFD 78 46 45 10FFFD 78 46 46) | ||
moritz | so it seems utf8-c8 produces \x[10FFFD] + 3 characters for every input byte it didn't understand | 14:07 | |
mornfall | I think it's the regex engine that is unhappy | ||
moritz | m: say Buf.new(0xFE, 0xFF).decode('utf8-c8').subst(:g, /\x[10FFFD] .../, '') | 14:08 | |
camelia | xFExFF | ||
moritz | huh | 14:09 | |
mornfall | something something probably the grapheme-based representation biting me in the ass :\ | ||
14:09
rindolf joined
|
|||
jnthn | Yes, the bytes that are in error are turned into synthetic graphemes, so that if you encode with utf8-c8 again it can round-trip them | 14:10 | |
mornfall | have to go, will deal with it later (thanks for looking) | ||
14:10
p6bannerbot sets mode: +v rindolf,
qiqi left
|
|||
jnthn | You could probably do something like /:m \x[10FFFD]/ which matches the grapheme with that base char | 14:11 | |
mornfall | jnthn: yeah, but i would like to just deal with them some other way (this ends up being uploaded into a database somewhere and I don't want non-utf-8 junk in it) | ||
14:12
qiqi joined,
p6bannerbot sets mode: +v qiqi
14:15
kurahaupo left
14:16
kurahaupo joined
14:17
p6bannerbot sets mode: +v kurahaupo
14:18
gregf_ joined,
p6bannerbot sets mode: +v gregf_
14:22
Aceeri__ left
14:31
kurahaupo left,
kurahaupo joined
14:32
p6bannerbot sets mode: +v kurahaupo
14:33
domidumont left
|
|||
moritz | then deal with it :) | 14:35 | |
mornfall | well, it's easier said than done :p i'll look if i can destroy it by going utf8-c8 dec → utf8 enc → kill bad stuff in Buf → utf8 dec | 14:38 | |
but a walkie first | 14:39 | ||
14:44
kurahaupo left
14:45
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
14:49
domidumont joined
14:50
p6bannerbot sets mode: +v domidumont,
abraxxa left
|
|||
moritz | m: say Buf.new(65, 0xFE, 0xFF, 65).decode('utf8-c8').subst(:g, /:m \x[10FFFD]/, '') | 14:52 | |
camelia | AxFExFFA | ||
moritz | m: say Buf.new(65, 0xFE, 0xFF, 65).decode('utf8-c8').subst(:g, /:m \x[10FFFD]/, '(removed)') | 14:55 | |
camelia | AxFExFFA | ||
Geth | advent: ad3dccee64 | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING.md add link to Wordpress help |
14:56 | |
14:58
kurahaupo left
15:02
kurahaupo joined
15:03
p6bannerbot sets mode: +v kurahaupo
15:16
kurahaupo left
15:20
kurahaupo joined
15:21
qiqi left,
p6bannerbot sets mode: +v kurahaupo
15:34
kurahaupo left
|
|||
tbrowder | unless anyone sees problems with my draft advent article here: github.com/tbrowder/Perl6-Advent/b...8-12-04.md | 15:36 | |
i i can publish it as needed if 1 dec (or 2 or 3) is not ready (given sufficient warning, i'm at UTC -6) | 15:38 | ||
[Coke] | tbrowder: github.com/rakudo/rakudo/src/Perl6/ is a 404 | 15:39 | |
otherwise +1 | 15:41 | ||
15:48
kensanata left
15:51
yqt left
|
|||
loops | tbrowder: looks good. Will be great to have those NYI features! | 15:58 | |
16:01
kurahaupo joined
16:02
p6bannerbot sets mode: +v kurahaupo
16:11
robertle left
16:12
kurahaupo left
16:13
kurahaupo joined
16:14
p6bannerbot sets mode: +v kurahaupo
|
|||
mornfall | m: say Buf.new(65, 0xFE, 0xFF, 65).decode('utf8-c8').subst(:g, /<:Co>/, 'X') | 16:14 | |
camelia | AXXA | ||
16:15
scimon left
|
|||
mornfall | moritz: I think the issue is that the whole \x[10FFFD]xHH sequence comes out as a single grapheme | 16:15 | |
since it's classified as Private_Use it is probably to just axe it that way | 16:16 | ||
it is probably safe* | |||
moritz | tbrowder: shouldn't it be make $val; instead of just make; ? | 16:17 | |
16:18
dct left
16:19
molaf joined
16:20
p6bannerbot sets mode: +v molaf
16:23
kurahaupo left,
kurahaupo joined
16:24
p6bannerbot sets mode: +v kurahaupo
16:32
dct joined,
p6bannerbot sets mode: +v dct
16:36
kensanata joined,
p6bannerbot sets mode: +v kensanata
16:38
kurahaupo left,
kurahaupo joined
16:39
p6bannerbot sets mode: +v kurahaupo
16:45
dct left
16:47
tobs` left
16:50
kurahaupo left
16:51
kurahaupo joined
16:52
p6bannerbot sets mode: +v kurahaupo
16:55
zakharyas left
17:03
kurahaupo left
17:04
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
17:13
domidumont left
17:16
kurahaupo left,
kurahaupo joined
17:17
p6bannerbot sets mode: +v kurahaupo
17:27
kurahaupo left,
kurahaupo joined
17:28
p6bannerbot sets mode: +v kurahaupo
17:36
robertle joined,
p6bannerbot sets mode: +v robertle
17:39
kurahaupo left,
kurahaupo joined
17:40
p6bannerbot sets mode: +v kurahaupo
|
|||
tbrowder | moritz: thanks, so corrected | 17:41 | |
17:41
ryn1x joined
17:42
p6bannerbot sets mode: +v ryn1x
|
|||
tbrowder | [Coke]: so corrected, thnx | 17:44 | |
loops: does that intro para read a bit better now? | 17:51 | ||
17:51
kurahaupo left,
kurahaupo joined
17:52
p6bannerbot sets mode: +v kurahaupo
17:53
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
loops | tbrowder: yeah, that's better | 17:53 | |
pmurias | SmokeMachine: do you have a wishlist of stuff you want for rakudo.js/6pad? | ||
yoleaux | 02:07Z <SmokeMachine> pmurias: I can be wrong, but I think this is the first "todo app" written in perl6 using memoized dom for the browser! :) perl6.github.io/6pad/?#60b7cb15e67...04d1a5a1d1 | ||
tbrowder | ok, don't be shy if you want to be specific about changes | 17:54 | |
SmokeMachine | pmurias: real line number on errors | 17:55 | |
pmurias: `use` for custom modules | 17:56 | ||
17:56
pmurias left,
ryn1x left,
ryn1x joined
|
|||
SmokeMachine | pmurias: clean the namespace for each "run" | 17:56 | |
17:57
p6bannerbot sets mode: +v ryn1x
|
|||
SmokeMachine | .tell pmurias real line number on errors; `use` custom modules; clean the namespace for each "run". From the top of my head... that's it | 17:58 | |
yoleaux | SmokeMachine: I'll pass your message to pmurias. | ||
18:00
domidumont joined,
p6bannerbot sets mode: +v domidumont,
jjmerelo joined,
p6bannerbot sets mode: +v jjmerelo
|
|||
jjmerelo | squashable6: status | 18:01 | |
squashable6 | jjmerelo, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈17 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
jjmerelo, Log and stats: gist.github.com/bfc5ad311623761969...b232ab8253 | |||
jjmerelo | Anyone up for squashing bugs? | ||
sena_kun writes posts for Advent | 18:02 | ||
18:02
ryn1x left
18:03
|oLa| left,
kurahaupo left,
kurahaupo joined
18:04
p6bannerbot sets mode: +v kurahaupo
|
|||
kensanata | jjmerelo: As in, the 542 failing new tests for p6-markdown? :) | 18:04 | |
18:05
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
pmurias | SmokeMachine: thank you, wrote that down | 18:05 | |
yoleaux | 17:58Z <SmokeMachine> pmurias: real line number on errors; `use` custom modules; clean the namespace for each "run". From the top of my head... that's it | ||
jjmerelo | kensanata: he | ||
Actually, the squashathon is focused on perl6/doc and related tools. | |||
sena_kun++ | |||
kensanata: I don't really know what to make of that. | 18:06 | ||
On one hand, p6-markdown would be better rewritten. The implementation is LTA | |||
kensanata: Im pretty sure that, with the current implementation, we will still fail 500 of those 542 tests. To pass the rest, a complete rewrite would be much better | 18:07 | ||
kensanata: so probably the best thing would be to fork, use whatever is usable from this implementation, but release a new module that's able to pass all those tests. | 18:08 | ||
kensanata | Yeah. | 18:09 | |
jjmerelo: I have an empty implementation that fails *all* the tests. :) | 18:10 | ||
18:10
gregf_ left
|
|||
jjmerelo | kensanata: a few is definitely better than none. But it's way above my pay grade to rewrite it, either with grammars or porting some existing module (in Perl, for instance). | 18:12 | |
18:14
kurahaupo left,
kurahaupo joined
|
|||
sena_kun | markdown doesn't have a nice grammar, this is why implementing it is a "life is pain" situation. | 18:15 | |
18:15
p6bannerbot sets mode: +v kurahaupo,
patrickb joined
|
|||
kensanata | I am still hoping that CommonMark is better than the Daring Fireball. | 18:15 | |
jjmerelo | sena_kun: right. I started with that module, I added a few stuff I needed for my book, but even doing that was a pain. | 18:16 | |
kensanata | One benefit is that they have over 600 tests that are easy to run. | ||
18:16
p6bannerbot sets mode: +v patrickb
|
|||
jjmerelo | kensanata: it would be great for perl6 to have that kind of thing. | 18:16 | |
sena_kun | hmm, I see some articles. | ||
jjmerelo | Only, well, we do have to do it | ||
18:17
Grauwolf joined,
p6bannerbot sets mode: +v Grauwolf
|
|||
Geth | doc/features/kensanata/squashaton-gather-take: 016acef80c | (Alex Schroeder)++ | doc/Language/control.pod6 Explain how gather/take works with hashes Fixes #2479. |
18:18 | |
squashable6 | 🍕🍕🍕 First contribution by kensanata++! ♥ | ||
jjmerelo | kensanata++ | ||
kensanata | Yikes, I'm not used to bots watching my every move. | 18:19 | |
jjmerelo: a quick review? | 18:20 | ||
18:21
Peter_R left
|
|||
jjmerelo | kensanata: which I did. Looks fine. :-) | 18:22 | |
pmurias | SmokeMachine: thank you for being an early adopter, I'll try to solve at least some of those issues after I fix by fake-running-of-rakudo.js-in-the-browser features that's required for a lot of tests | 18:25 | |
18:25
kurahaupo left
18:26
kurahaupo joined
|
|||
Geth | doc: 016acef80c | (Alex Schroeder)++ | doc/Language/control.pod6 Explain how gather/take works with hashes Fixes #2479. |
18:26 | |
synopsebot_ | Link: doc.perl6.org/language/control | ||
squashable6 | 🍕 kensanata++ closed issue “gather/take for hashes”: github.com/perl6/doc/issues/2479 | ||
18:26
p6bannerbot sets mode: +v kurahaupo
18:27
patrickb left
|
|||
kensanata | I'm looking at github.com/perl6/doc/issues/2388 and reading through the IRC conversation and I don't know what to say about that. Any ideas of what the docs ought to say? | 18:27 | |
jjmerelo | tbrowder: do we need to post the markdown to a gist? Do we do that in order to capture the HTML or something? Will plain git do? | ||
tbrowder | jjmerelo, I put more details on what can be done if Zoffix's Acme::Advent::Highlighter fails | 18:29 | |
jjmerelo | kensanata: Well, that example might help. Some recursive example too. Anything would be better, I guess. | ||
kensanata: come to think of it, a better example with a real use case is always better. But if we can't come up with one, that one might be enough | 18:30 | ||
tbrowder | see github.com/perl6/advent/blob/maste...IBUTING.md | ||
kensanata | I also noticed that I solved the only issue tagged "easy to resolve". We need more issues with that tag. | ||
tbrowder | it would be nice to pin the advent repo in place of the ecosystem (which I thought we were replacing with CPAN!!) | 18:31 | |
jjmerelo | tbrowder: I just added a "search" slot to the advent calendar web site | 18:34 | |
kensanata: the ones related to format and page structure are easy too... | |||
tbrowder: let me see if I understand what you mean by pinning... | |||
tbrowder | pinning: witg github you can "pin" up to 6 repos to be highlighted on the main page | 18:35 | |
currently perl6 shows: nqp, doc, roast, modules.perl6.org, ecosystem, and perl6.org | 18:37 | ||
18:37
Peter_R joined,
p6bannerbot sets mode: +v Peter_R
|
|||
tbrowder | i suggest replacing ecosystem with advent | 18:38 | |
kensanata | jjmerelo: I'm looking at the tag "good first issue" and haven't found any good first issues. For example github.com/perl6/doc/issues/1945 – shouldn't we close this? | ||
jjmerelo: After all, you suggested closign it in Sept. :) | |||
18:39
kurahaupo left
|
|||
jjmerelo | Yep, but the problem is I don't really know if there are some left. | 18:39 | |
Just a short time ago I found some Strange Capitalization | |||
The right thing to do would be to prepare a test for it, whitelisting stuff in some cases. It shouldn't be too hard to extract =head? and look for capitals outside the first word | 18:40 | ||
Boils down to: I wouldn't close it until I'm sure it should be closes, and I'm not going to be sure until a tests says so. If it ain't tested, it's broken. | 18:41 | ||
kensanata | I think finding what the problem actually is makes such an issue not a "good first issue". Another example in this category is this one: github.com/perl6/doc/issues/1923 – I don't even understand how to find the problem. I ran a find . -type f -exec egrep --color -nHi -e "pod[ \r\n\t]+6" {} + and didn't find anyhting related... so problem solved? | ||
jjmerelo: OK, that makes sense. | |||
18:45
jjmerelo left
18:47
patrickb joined
18:48
p6bannerbot sets mode: +v patrickb
18:50
jjmerelo joined,
p6bannerbot sets mode: +v jjmerelo
18:52
zakharyas joined
18:53
p6bannerbot sets mode: +v zakharyas
18:56
molaf left
|
|||
SmokeMachine | pmurias: thank you for doing rakudo.js and 6pad! It's unbelievable how well it's doing! | 19:01 | |
19:02
jast left
19:03
jast joined
|
|||
SmokeMachine | pmurias: what's the fake-running-of-rakudo.js-in-the-browser? | 19:03 | |
19:03
p6bannerbot sets mode: +v jast
19:11
ryn1x joined
19:12
p6bannerbot sets mode: +v ryn1x
|
|||
pmurias | SmokeMachine: in roast a &is_run sub is called a lot, which starts a new rakudo process and runs a bit of code with it | 19:17 | |
SmokeMachine: we can't start new processes in the browser so I need to fake it somehow | |||
timotimo | .o( could use service workers ) | 19:18 | |
web workers* | |||
SmokeMachine | pmurias: would it be a crazy idea to use workers? | ||
timotimo: you stole my idea! :P | 19:19 | ||
19:22
pmurias left
|
|||
SmokeMachine | pmurias: and maybe 6pad could compile the code into a worker too... | 19:23 | |
in a | |||
kensanata | What would be a good way to generate a regular expression that allows me to strip all class and role names from a string? I'm trying to verify that this sentence is correctly capitalized, for example: "Error while trying to coerce a number to a Real type". I was thinking of removing "Real" before checking. | 19:29 | |
timotimo | you can just use .trans for that | ||
mornfall | btw... is it me or is perl6 (rakudo on moar) somewhat slow? | 19:30 | |
timotimo | m: "Error with Foobar and Barbaz".trans(["Error", "Foobar", "Barbaz"] => ["", "", ""]).say | ||
camelia | with and | ||
timotimo | mornfall: it can be; usually there's very simple changes that lets your code run 100x faster or so | ||
moritz | mornfall: depends very much on what you do with it | ||
mornfall | the compiler takes a while (read script startup), but the runtime isn't exactly speedy either :\ | ||
hmm, any pointers to further reading? | 19:31 | ||
kensanata | timotimo: I'm not sure I understand. I already have a test: $title !~~ $title.lc.tc – what I'm lacking is a way to exclude all known class and role names from this test. | ||
timotimo | mornfall: can you give us an example? also, how long does script compilation take for you? you can check by invoking perl6 with --stagestats | ||
also, if you're on a system that's not supported by moarvm's jit (like 32bit x86, or arm, powerpc, ...) then you'll also not have the fastest executions, either | 19:32 | ||
mornfall | the only thing that pops up is Stage parse : 0.561 | 19:33 | |
it's about 150 lines and uses a few modules (HTTP::UserAgent, XML::Tiny, Algorithm::Diff) | |||
timotimo: does it depend on the OS too, or is it the CPU arch only that matters? | 19:34 | ||
says here This is MoarVM version 2018.10 built with JIT support | |||
timotimo | ah, yeah, because calling convention differs at the very least between linux and windows | ||
sounds like a good start | |||
mornfall | NVM_JIT_DISABLE adds about 35% to stage parse, and about 23% to total cpu time | 19:36 |