»ö« 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 | |
so I guess it's JITting all right | |||
timotimo | that's good | ||
Xliff | Is there a site for 6pad? | ||
timotimo | moarvm has a built-in profiler; you can either just --profile and it'll spit out an html file you can open that'll turn into a little "web app", or you can --profile --profile-filename=foobar.sql and feed that into the glorious moarperf program: github.com/timo/moarperf/ | 19:37 | |
the "just an html file" has some shortcomings, like poor performance for complex programs, and not doing much with multi-threaded programs | |||
but at least you don't have to run an extra program | |||
anyway, i've gotta go AFK for a bit | |||
find more info about moarperf on my blog: wakelift.de/ :) | 19:38 | ||
mornfall | thanks, will check it out | ||
(already doing a trial run with --profile) | |||
umm, both chromium and firefox kinda fail to render the html :\ | 19:41 | ||
okay it eventually rendered, but the browsers seriously struggle | 19:42 | ||
19:42
jjmerelo left
|
|||
tbrowder | i have to leave, is the first advent article going through? | 19:42 | |
*leave soon | 19:43 | ||
SmokeMachine | Xliff: perl6.github.io/6pad/ | 19:44 | |
Xliff | NM. perl6.github.io/6pad/ | ||
SmokeMachine: LOL! | |||
SmokeMachine++ | |||
SmokeMachine | Xliff: :) | ||
Xliff: and if you want to take a look at my new project: perl6.github.io/6pad/#ada3d7e0a425...426a97039f | 19:45 | ||
tobs | m: say "Error while trying to coerce a number to a Real type".words.tail(*-1).grep({ .self eq .tc }).grep({ Nil R~~ try ::($_) }) | ||
camelia | () | ||
tobs | m: say "Error while trying to Coerce a number to a Real type".words.tail(*-1).grep({ .self eq .tc }).grep({ Nil R~~ try ::($_) }) | 19:46 | |
camelia | (Coerce) | ||
tobs | kensanata: ^ but of course it's prone to false negatives | ||
mornfall | having to install node.js for moarperf makes me somewhat unhappy :| | 19:47 | |
tobs | m: say "Real Cool Bag".words.tail(*-1).grep({ .self eq .tc }).grep({ Nil R~~ try ::($_) }) | 19:48 | |
camelia | () | ||
Kaiepi | lol this issue github.com/rakudo/rakudo/issues/2510 | 19:54 | |
thread | |||
same | |||
Geth | advent: uzluisf++ created pull request #5: Claim spot |
19:55 | |
19:56
ryn1x left
|
|||
Geth | advent: 97dc2e5157 | (Luis F. Uceta)++ (committed using GitHub Web editor) | perl6advent-2018/schedule Claim spot The article can be found here: gist.github.com/uzluisf/268a95ffec...254a3971d1 |
19:57 | |
advent: 537f6a1ac0 | (Will Coleda)++ (committed using GitHub Web editor) | perl6advent-2018/schedule Merge pull request #5 from uzluisf/master Claim spot |
|||
19:58
graphene left,
uzl joined
19:59
p6bannerbot sets mode: +v uzl
20:00
graphene joined,
p6bannerbot sets mode: +v graphene
20:01
molaf joined
|
|||
leont | Oh right. Advent article, still need to claim a date (are they still available?) and write it | 20:02 | |
20:02
Skarsnik joined
|
|||
sena_kun | leont, 8th is available. :) | 20:02 | |
20:02
p6bannerbot sets mode: +v molaf
|
|||
kensanata | m: say "Unsigned Integer (arbitrary-precision)".words.grep({ .self eq .tc }).grep({ Nil R~~ try ::($_) }) | 20:03 | |
camelia | (Unsigned Integer (arbitrary-precision)) | ||
kensanata | m: say "Unsigned Integer".words.grep({ .self eq .tc }).grep({ Nil R~~ try ::($_) }) | 20:04 | |
camelia | (Unsigned Integer) | ||
kensanata | tobs: I've stumbled upon Integer... That isn't a class? | 20:05 | |
lucasb | Int? :) | 20:06 | |
uzl | My draft article for P6 Advent (25th): gist.github.com/uzluisf/268a95ffec...254a3971d1 . Any proofreading (not necessarily now) would be appreciated. | ||
kensanata | lucasb: Yeah. | ||
uzl | m: 3 Rmod 7 | 20:07 | |
camelia | Potential difficulties: Useless use of Rmod in sink context at <tmp>:1 ------> 033 7⏏5Rmod 7 |
||
uzl | m: say 3 Rmod 7 | ||
camelia | 1 | ||
kensanata | My test for sentence capitalization of the docs still has 46 fails out of 375. I wonder how I should proceed, now. | ||
Geth | doc/features/kensanata/test-for-capitalization: c6caf04964 | (Alex Schroeder)++ | t/08-headings.t Added test for consisten header capitalization |
20:08 | |
20:13
uzl left
|
|||
Geth | advent: 123922a5cd | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING.md add important note |
20:16 | |
20:18
ranguard left
|
|||
Geth | advent: 24ade177ee | (Tom Browder)++ (committed using GitHub Web editor) | CONTRIBUTING.md reorder the note |
20:19 | |
squashable6 | 🍕 kensanata++ wrote a comment on commit c6caf049649a: github.com/perl6/doc/commit/c6caf0...t-31519095 | 20:20 | |
Geth | advent: 3405a855a4 | (Tom Browder)++ (committed using GitHub Web editor) | perl6advent-2018/schedule prefer IRC #perl6 nickname |
20:24 | |
squashable6 | 🍕 JJ++ wrote a comment on commit c6caf049649a: github.com/perl6/doc/commit/c6caf0...t-31519130 | ||
mornfall | MoarVM panic: Unable to allocate memory for callback closure | ||
===> Testing [FAIL]: IO::Socket::Async::SSL:ver<0.7.1> | |||
tbrowder | .ask tmtvl are you going to be able to publish on time? | ||
yoleaux | tbrowder: I'll pass your message to tmtvl. | ||
mornfall | :( I bumped the memory limit to 5GiB, but that doesn't seem to be the problem? | 20:25 | |
maybe it ran out of stack? *tries* | 20:26 | ||
sena_kun has a ready blog post | |||
Though I am sure a grammar check won't hurt. | 20:27 | ||
mornfall | nope, 30MiB of stack space didn't help either :( | 20:28 | |
20:33
pmurias joined,
p6bannerbot sets mode: +v pmurias
|
|||
pmurias | SmokeMachine: as a temporary measure before the redeclaration is fix using 'my class Foo {...}' instead of 'class Foo {...}' helps | 20:34 | |
SmokeMachine | pmurias: hum! that makes sense! thanks! | 20:35 | |
Geth | doc/features/kensanata/test-for-capitalization: 8399f8671f | (Alex Schroeder)++ | t/08-headings.t More exceptions for header capitalization |
||
squashable6 | 🍕 kensanata++ wrote a comment on commit c6caf049649a: github.com/perl6/doc/commit/c6caf0...t-31519244 | ||
20:37
zakharyas left
|
|||
mornfall | hmm, the crash is somewhere within libffi... not good :\ | 20:37 | |
20:38
leont left
20:39
robertle left
|
|||
squashable6 | 🍕 AlexDaniel++ wrote a comment on commit c6caf049649a: github.com/perl6/doc/commit/c6caf0...t-31519290 | 20:40 | |
🍕🍕🍕 First contribution by AlexDaniel++! ♥ | |||
20:41
[particle] left
20:46
cpup joined
20:47
[particle] joined,
p6bannerbot sets mode: +v cpup
|
|||
mornfall | oh my bad | 20:47 | |
20:47
p6bannerbot sets mode: +v [particle]
|
|||
squashable6 | 🍕 Skarsnik++ opened issue “Searching Str should poi…”: github.com/perl6/doc/issues/2484 | 20:48 | |
🍕🍕🍕 First contribution by Skarsnik++! ♥ | |||
20:51
[particle] left
|
|||
mornfall | okay rebuilding moar with libffi helped, it was dyncall that was failing | 20:51 | |
20:51
coet[work] joined,
p6bannerbot sets mode: +v coet[work]
|
|||
mornfall | whoever is responsible for rakudo star, it might be a good idea to change the default on openbsd to be libffi? the rakudo star i got out of the box was crippled some :\ | 20:52 | |
Geth | doc/features/kensanata/test-for-capitalization: 7850cd093f | (Alex Schroeder)++ | t/08-headings.t More exceptions for header capitalization |
20:53 | |
doc/features/kensanata/test-for-capitalization: f5d93273e9 | (Alex Schroeder)++ | 2 files Moved heading test from t to xt |
|||
doc/features/kensanata/test-for-capitalization: 1a75b07f81 | (Alex Schroeder)++ | 15 files Fix capitalization in various titles |
|||
squashable6 | 🍕 kensanata++ wrote a comment on commit c6caf049649a: github.com/perl6/doc/commit/c6caf0...t-31519430 | 20:54 | |
AlexDaniel | mornfall: open a ticket! | ||
20:55
[particle] joined
|
|||
mornfall | where? :) | 20:55 | |
AlexDaniel | mornfall: github.com/rakudo/star/ | ||
squashable6: status | |||
squashable6 | AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈15 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day | ||
mornfall | hmm github... i'll have to fix notification mails from that :\ but i can file a ticket, sure | ||
squashable6 | AlexDaniel, Log and stats: gist.github.com/6baefe827d64d2c760...2a5dca90a5 | ||
20:55
p6bannerbot sets mode: +v [particle]
|
|||
AlexDaniel | kensanata: ↑ with that rate you can definitely win :) | 20:55 | |
20:56
domidumont left
|
|||
tbrowder | Wordpress is not very friendly--I finally got my post scheduled for 0001 UTC, 4 dec--fingers crossed | 20:56 | |
kensanata | AlexDaniel: Should have made each capitalization a separate commit... | ||
tbrowder | i can always bump to earlier date now fairly easy if needed | ||
AlexDaniel | kensanata: we look into the content of commits :P | ||
20:56
yqt joined
|
|||
kensanata | A fix is a fix, no matter how small! | 20:57 | |
20:57
coet[work] is now known as coet,
rouking left
|
|||
kensanata | We should use Levenstein distance or something... | 20:57 | |
20:57
p6bannerbot sets mode: +v yqt
|
|||
AlexDaniel | Zoffix: where is huggable? We need some pizza | 20:58 | |
mornfall | AlexDaniel: firefox crashed submitting the issue :( it's cursed | 20:59 | |
AlexDaniel | kensanata: btw check other xt tickets: github.com/perl6/doc/issues?q=is%3...label%3Axt | 21:00 | |
kensanata: especially this one: github.com/perl6/doc/issues/2306 | |||
you'd be surprised how many broken pages we have | |||
21:00
kurahaupo joined
|
|||
mornfall | oh but it got opened... #127 | 21:00 | |
AlexDaniel | well, broken markup that is | 21:01 | |
mornfall: \o/ | |||
21:01
p6bannerbot sets mode: +v kurahaupo
|
|||
kensanata | yay for more tickets | 21:02 | |
21:02
[particle] left
|
|||
kensanata | AlexDaniel: I think I'm done with these issues but I'll remember the xt label. That does seem to be the kind of thing I can work on. :) | 21:02 | |
21:03
Kaiepi left
|
|||
mornfall | tickets up, tickets down, but i can go back to installing moarperf :p | 21:03 | |
though it's kinda late for shaving yaks | |||
AlexDaniel | kensanata: you sure? D#2306 looks fun and extremely useful | 21:06 | |
synopsebot_ | D#2306 [open]: github.com/perl6/doc/issues/2306 [xt] xt test for missing C in C<> (and let's use a whitelist for doc text) | ||
21:07
[particle] joined
|
|||
AlexDaniel | kensanata: it's basically just a check that rendered text doesn't have any weird characters | 21:07 | |
tbrowder | one question about the perl 6 wordpress: is the time i see in the schedule editor UTC or my local time? | ||
AlexDaniel | so alphanumerics, spaces, dots, commas, semicolons, colons and parens are fine, everything else should be banned I think | 21:08 | |
21:08
p6bannerbot sets mode: +v [particle]
|
|||
tbrowder | afkb& | 21:08 | |
kensanata | AlexDaniel: Totally, I agree. It's just that I'm tired and feel like not working on Perl 6 right now. :) | ||
AlexDaniel | kensanata: sure, sure, no pressure. Last time though we had some issues determining the winner… *hint* *hint* *hint* *hint* :) | 21:10 | |
btw I'm not sure how code blocks are filtered out, but I guess other tests have that implemented somehow | 21:11 | ||
kensanata | haha | ||
21:12
rindolf left
21:14
patrickb left
21:15
kurahaupo left,
patrickb joined
|
|||
mornfall | i'm wondering if a college course on perl6 is a thing that'd make sense | 21:15 | |
21:15
kurahaupo joined
21:16
p6bannerbot sets mode: +v patrickb,
p6bannerbot sets mode: +v kurahaupo
|
|||
AlexDaniel | depends on the goals of the course I think | 21:18 | |
lucasb | i.imgur.com/zPDPai3.png <-- camelia at top right | ||
I think I don't like it... any objections to removing it from there? | |||
mornfall | AlexDaniel: teach the language, practice programming | 21:19 | |
AlexDaniel | lucasb: file a ticket! It was added on purpose, so maybe there are reasons for keeping it there | ||
.tell lizmat you win the bet, btw :D | 21:20 | ||
yoleaux | AlexDaniel: I'll pass your message to lizmat. | ||
mornfall | i imagine it'd be 12 exercises in 3 blocks, some text processing, some async work... maybe do something on grammars (i teach python and the middle block is number crunching, not so appropriate for raku, i suppose) | 21:22 | |
the kids generally have some programming experience, but they probably never touched anything perl | |||
kensanata | mornfall: at the Swiss Perl Workshop one of the organizers had a course at a vocational college where he used Perl. As far as I remember, it was basically a securit course. A web app written in Perl, and over the semester the students tried to hack it, without knowing any Perl. It being Perl just made it even more exciting, I think. | 21:24 | |
AlexDaniel | mornfall: oh, that. Maybe. There are other cases when using raku is perhaps more clearly justified, for example if you want to discuss different paradigms without switching the languages too much | 21:25 | |
21:25
kurahaupo left
|
|||
mornfall | kensanata: our security courses somehow try to teach people how to use openssl in C at a time where they barely can write a C program that is not full of buffer overflows :( | 21:25 | |
21:25
graphene left
21:26
kurahaupo joined
|
|||
AlexDaniel | kensanata: btw will you submit it as a PR? | 21:26 | |
kensanata | mornfall: Haha. In that course, it was the reverse: they had to find and exploit a SQL injection in the login form as one of the first steps. That teaches you about SQL injection and about intrusion. | ||
21:26
p6bannerbot sets mode: +v kurahaupo
|
|||
kensanata | AlexDaniel: sure | 21:27 | |
21:27
graphene joined
|
|||
mornfall | AlexDaniel: a course on paradigms is about to be resurrected, but it's not my department and it's probably going to get exercises in C# (not my first choice) | 21:27 | |
21:28
p6bannerbot sets mode: +v graphene
|
|||
AlexDaniel | mornfall: btw, where are you from? | 21:28 | |
mornfall | AlexDaniel: .cz | ||
(fi.muni.cz to be specific, though probably don't look at the website, the english version is google translate /o\) | |||
Geth | doc: kensanata++ created pull request #2485: Added test for consisten header capitalization |
21:29 | |
squashable6 | 🍕 kensanata++ opened pull request “Added test for consisten header capitalization”: github.com/perl6/doc/pull/2485 | ||
🍕 AlexDaniel++ requested a review on pull request “Added test for consisten header capitalization”: github.com/perl6/doc/pull/2485 | |||
AlexDaniel | mornfall: it really depends I think. If that's a course where people learn some basics, then I guess most expect it to be about some mainstream language (like python, or java, or c++, …) | 21:32 | |
Geth | doc/no-faded-camelia: 567308d761 | (Lucas Buchala)++ (committed using GitHub Web editor) | assets/sass/style.scss No faded camelia |
21:33 | |
squashable6 | 🍕🍕🍕 First contribution by lucasbuchala++! ♥ | ||
mornfall | sure, those are all on offer, but so are C#/.NET, Ruby, some R | ||
and Haskell and bits of Prolog | |||
AlexDaniel | Prolog \o/ | ||
mornfall | (a lot of Haskell actually) | ||
ML is sadly missing, and I don't think there's anything Scheme/Racket or LISP in general either | 21:35 | ||
pmurias | mornfall: so Perl 6 would be a part of a dabble in a bunch of languages style course or have it's own | 21:36 | |
? | |||
21:37
kurahaupo left
|
|||
mornfall | also all our electronic teaching agenda is perl5, with 30+k users, but there isn't a single course on perl5 AFAICT | 21:37 | |
pmurias | mornfall: I learned Prolog at uni too | ||
21:37
kurahaupo joined
|
|||
mornfall | pmurias: no, those are all standalone courses | 21:37 | |
21:37
coet left
|
|||
mornfall | (also a good chunk of the workforce that maintains that glob of perl5 is students) | 21:37 | |
21:38
p6bannerbot sets mode: +v kurahaupo
|
|||
AlexDaniel | mornfall: fwiw jjmerelo is also in academia, so consider talking to them too (if you haven't already, I haven't backlogged recently) | 21:39 | |
mornfall | will do (i think they are busy trying to win the plushie tho :p) | 21:41 | |
jnthn | mornfall: Masarykova Uni is in Brno? Did you go to any of the Brno.pm meetups? | ||
jnthn was at one of those earlier in the year... :) | 21:42 | ||
pmurias | mornfall: if the students are writing Perl 5 and are interested in Perl 6 the course might make sense | ||
mornfall: forcing them to use it (if it's a mandatory one) doesn't seem that good | |||
mornfall | jnthn: yes, Brno, and no, wasn't... i'm not a very sociable person :p | 21:43 | |
jnthn | :) | ||
mornfall | pmurias: the mandatory ones are C, C++, Java and Haskell (you can get out of Java or C++ by taking up more math)... the rest is mostly optional | ||
pmurias | mornfall: seems like you should talk to students if they would be interested in it | 21:44 | |
mornfall | pmurias: students are mostly interested in getting through the college with the least amount of effort possible :p | 21:45 | |
21:46
yqt left
|
|||
pmurias | mornfall: really? at our uni there where people even taking harder courses because they where more interesting or even sometimes taking an "elite" harder version of something | 21:47 | |
21:48
kurahaupo left
21:49
kurahaupo joined
|
|||
pmurias | mornfall: it's a hard question of what do you want to teach them. Even choosing if you want to teach computer science or programming is big choice | 21:50 | |
21:50
p6bannerbot sets mode: +v kurahaupo
|
|||
pmurias | mornfall: if you want something super practical it seems JavaScript is missing from the curiculum ;) | 21:55 | |
[Coke] | .seen brrt | 21:56 | |
yoleaux | I saw brrt 26 Nov 2018 21:40Z in #moarvm: <brrt> as I am learning the hard way | ||
21:57
patrickb left
|
|||
mornfall | pmurias: yeah, i'm not teaching javascript :p there's a webdev course though, i think? i know nothing about it | 21:59 | |
22:00
kurahaupo left
22:01
kurahaupo joined
22:02
hythm_ joined,
p6bannerbot sets mode: +v hythm_,
p6bannerbot sets mode: +v kurahaupo
|
|||
hythm_ | I'm getting this error when using SDL2::Raw.SDL_LoadBMP, "can not locate symbol SDL_LoadBMP in native library libSDL2.so" | 22:05 | |
22:06
coet joined,
p6bannerbot sets mode: +v coet
|
|||
hythm_ | I'm sure i have libsdl2 installed | 22:06 | |
Code: gist.github.com/hythm7/a737d61c523...bee46178bb | 22:12 | ||
22:14
Cabanossi left
22:15
Cabanossi joined
|
|||
jnthn | hythm_: Sometimes the -dev package for the library is also needed | 22:15 | |
22:16
p6bannerbot sets mode: +v Cabanossi,
kurahaupo left
22:17
kurahaupo joined,
p6bannerbot sets mode: +v kurahaupo
|
|||
hythm_ | jnthn: the dev package is installed as well. Im running ubuntu and reinstalled perl6 one hour ago, so i think i have latest perl6 | 22:18 | |
I will also try to run from my home desktop later today, it has different distro | 22:19 | ||
22:25
hythm_ left
22:27
benjikun joined
22:28
p6bannerbot sets mode: +v benjikun,
kurahaupo left,
kurahaupo joined
22:29
p6bannerbot sets mode: +v kurahaupo
|
|||
SmokeMachine | pmurias: isn’t there any kind of pollyfill to add bigint to the other browsers? | 22:32 | |
22:33
benjikun left
22:39
kurahaupo left,
kurahaupo joined
22:40
p6bannerbot sets mode: +v kurahaupo
|
|||
mornfall | apparently, i'm spending all my time in subst | 22:43 | |
(yeah, i got moarperf up after some fiddling with DBDish::SQLite...) | 22:44 | ||
22:46
jast left
|
|||
pmurias | SmokeMachine: I'm not using native bigints anymore for the time being | 22:47 | |
SmokeMachine: 6pad/rakudo.js already supports firefox | |||
22:48
jast joined,
p6bannerbot sets mode: +v jast
22:49
kurahaupo left
|
|||
SmokeMachine | pmurias: I mostly use safari... :( | 22:50 | |
mornfall | so i would like to try changinng foo.subst().subst().subst() to using s,,, but apparently my Str is immutable? | 22:51 | |
tbrowder | ah, set desired time zone in Wordpress general settings | ||
mornfall | oh this is on the faq, apparently | 22:52 | |
pmurias | blogs.perl.org/users/pawel_murias/2...pport.html | 22:53 | |
mornfall | ok but this means i can't use s,,, to speed up a chain of .subst calls | 22:54 | |
pmurias | SmokeMachine: I don't think I have a way to even run Safari | 22:55 | |
SmokeMachine: do you have any idea what's causing problems on it? | |||
mornfall | but really, what's wrong with subst? | 22:56 | |
22:57
kurahaupo joined
22:58
p6bannerbot sets mode: +v kurahaupo
|
|||
pmurias | SmokeMachine: did you trying using 6pad recently under safari? | 22:59 | |
23:00
coet left
|
|||
SmokeMachine | pmurias: yes... under safari and under Safari Technology Preview | 23:00 | |
23:01
kensanata left,
Kaiepi joined
23:02
p6bannerbot sets mode: +v Kaiepi
|
|||
pmurias | SmokeMachine: maybe you could paste console logs and I can look tommorow and maybe it's something polyfillable | 23:02 | |
SmokeMachine | pmurias: and that works on chrome under android but not on chrome under iOS (it uses safari engine) | 23:03 | |
23:04
sena_kun left
|
|||
SmokeMachine | pmurias: sure! I’ll do that as soon as I come home... | 23:04 | |
23:05
statisfiable6 joined,
benchable6 joined,
bisectable6 joined
23:06
p6bannerbot sets mode: +v statisfiable6,
p6bannerbot sets mode: +v benchable6,
p6bannerbot sets mode: +v bisectable6
|
|||
timotimo | mornfall: i want to distribute the pre-built javascript with moarperf, but i don't really want to put it into the github repo :/ | 23:09 | |
at least node.js is only a compile-time dependency | |||
23:09
Skarsnik left
|
|||
mornfall | timotimo: any idea what to do about .subst() being slow? i already got rid of the regexes where they were superfluous, but subst just seems to be really slow | 23:09 | |
timotimo | i wasn't able to backlog enough %) | ||
mornfall | yeah node.js wasn't such a big deal in the end | ||
timotimo | subst has many forms; can you use it without an actual regex? | ||
mornfall | okay i think --profile might be lying to me | 23:10 | |
timotimo | it's possible under some circumstances; what are you seeing? | ||
23:11
pmurias left
|
|||
timotimo | oh, hm, i wonder if the moarperf you got is compatible with the profiles 2018.10 spits out | 23:11 | |
mornfall | let me re-do the profile just in case | ||
timotimo | i haven't spent much time making them backward-compatible yet, though i really should | ||
mornfall | timotimo: not entirely, it's complaining about a missing table... | ||
timotimo | oh, and the problem in libffi probably isn't running out of stack space, but trying to make a piece of stack executable | 23:12 | |
surely the error message could point that out, but so far the program has always crashed immediately on startup if execstack isn't allowed on the system | |||
i.e. "tried to load a library that wants executable stack" | 23:13 | ||
mornfall | timotimo: libffi actually works, it's dyncall that's borked | ||
timotimo: i rebuilt moar with libffi and it's okay now | |||
23:13
kurahaupo left
|
|||
timotimo | sorry, wrong way around, then | 23:13 | |
23:14
ryn1x joined
|
|||
mornfall | timotimo: noted that down in rakudo star github, #127 (so that someone can flip the default if possible) | 23:14 | |
23:15
p6bannerbot sets mode: +v ryn1x
|
|||
mornfall | (the rakudo port uses libffi too, and many other ports do, so that is presumably fixed to not execute stack; the rakudo port is old though and rather bare-bones, so i went for star) | 23:15 | |
timotimo | it'd probably be two or three lines of change in the spooky scary buildsystem | ||
23:16
kurahaupo joined
|
|||
mornfall | anyhow, subst, calling it less often on bigger strings (i.e. moving it before .lines) helped some but i guess i hit a limit on that ... removing it altogether doesn't make much of a difference | 23:16 | |
23:16
kurahaupo left
23:17
lizmat joined,
p6bannerbot sets mode: +v lizmat,
kurahaupo joined
|
|||
mornfall | but i don't know what the times in --profile mean... they are absolute times, but don't seem to correspond to either runtime without --profile or runtime with --profile | 23:17 | |
23:17
kurahaupo left
|
|||
timotimo | are they extremely high numbers? | 23:18 | |
mornfall | it said 5s spent in subst, which was about how long the program ran so i mis-read the profile | ||
timotimo | like billions of seconds? | ||
mornfall | i have seen that happen before, but not anymore | ||
timotimo | the overview page ought to tell you how long it took in total; there's a difference between inclusive and exclusive time, too | ||
mornfall | dunno what changed (i nuked all .sqlite3 files and started over) | ||
oh the overview page doesn't work :\ | 23:19 | ||
timotimo | and if you're multithreaded you can get up to cores x runtime in total | ||
mornfall | only 'routines' does | ||
timotimo | a casualty of version mismatch, surely | ||
mornfall | DBDish::SQLite: Error: no such column: first_entry_time (1) ... yeah, version mismatch presumably | ||
timotimo | maybe try reverting moarperf to a state around 2018.10's release date | ||
it'll have less nice in the UI, sadly | |||
mornfall | i can rebuild moar from master if it's reasonably stable | 23:20 | |
23:20
kurahaupo joined
|
|||
timotimo | though we only just released 2018.11 last week; it's only a rakudo compiler release, not a rakudo star release, though | 23:20 | |
so it won't immediately come with zef and such | 23:21 | ||
23:21
p6bannerbot sets mode: +v kurahaupo,
kurahaupo left
|
|||
mornfall | is the bytecode compatible? (i.e. can i dump 2018.11 compiler over 2018.10 star and expect it to work?) | 23:21 | |
anyway, my top routine in the profile is now match | |||
23:21
kurahaupo joined
|
|||
timotimo | no, but if you have installed stuff, it'll recompile from the installed source | 23:22 | |
sorted by inclusive or exclusive time? | |||
allcaps match? i.e. MATCH? | |||
23:22
p6bannerbot sets mode: +v kurahaupo
|
|||
mornfall | exclusive... i don't have my own routines to speak of | 23:22 | |
timotimo | right | ||
mornfall | i think? it went berserk | ||
23:23
kurahaupo left
|
|||
timotimo | i'm compiling a 2018.10 on the side and maybe i can make moarperf understand that version | 23:23 | |
23:23
kurahaupo joined
|
|||
mornfall | no it's match minuscule letters inclusive | 23:23 | |
timotimo | OK | ||
23:24
p6bannerbot sets mode: +v kurahaupo
|
|||
mornfall | almost all calls come from SETTING::Str and/or SETTING::Cool | 23:24 | |
timotimo | right | ||
mornfall | the program only has 78 entries into match, assuming i read this correctly | ||
timotimo | hm, the call graph tab also doesn't work? | 23:25 | |
mornfall | no, same problem as overview (no such column: first_entry_time) | ||
but a good chunk of match's time seems to actually come from subst | 23:26 | ||
i'll nuke the subst and rerun the profile | |||
match is unfazed and the remaining entries are from SETTING::Cool | 23:27 | ||
timotimo | basically everything in Cool just dispatches to something else, after perhaps doing a coercion | 23:28 | |
mornfall | (also 1.6s is slurp, which seems like a lot, but i am slurping many small files, so the overhead probably adds up) | ||
timotimo | like when you call 12345.chars it'll first coerce to Str | ||
how many, and how big? | |||
mornfall | about 1500 files, under 100 bytes on average? | 23:29 | |
timotimo | ah, i see | 23:30 | |
yeah, probably some overhead to that :| | |||
mornfall | i run a regex match on each of the filenames, which is probably most of the match time | ||
timotimo | ah, can very well be | 23:32 | |
when you expand the routine, does the "callers" tab work? or "paths"? | |||
mornfall | okay this is interesting, there are actually 2 matches, one of them was an instance doable with .ends-with, using that instead seems to have made a significant difference | 23:34 | |
callers work, so do callees | |||
and now also paths (that seemed borked before, but it renders something that looks like the intended thing now?) | 23:35 | ||
some of the matches ar in split, that only happens about a dozen times or so, not interesting... | |||
timotimo | it's an... interesting implementation of rendering a tree that i ... came up with | ||
mornfall | the remaining matches on filenames are probably responsible | 23:36 | |
23:36
Zoffix joined,
p6bannerbot sets mode: +v Zoffix
|
|||
timotimo | yeah, starts-with and contains and friends are faster than regex matches by a huge margin | 23:37 | |
23:37
huggable joined,
ChanServ sets mode: +v huggable,
buggable joined,
ChanServ sets mode: +v buggable
|
|||
Zoffix | .pizza AlexDaniel | 23:37 | |
buggable: AlexDaniel | |||
huggable: AlexDaniel | |||
huggable | Zoffix, nothing found | ||
mornfall | i don't have an obvious way of removing them, but i guess i'm okay with the result for now | ||
buggable | New CPAN upload: cro-core-0.8.0.tar.gz by JNTHN modules.perl6.org/dist/Cro::Core:cpan:JNTHN | ||
New CPAN upload: cro-http-0.8.0.tar.gz by JNTHN modules.perl6.org/dist/Cro::HTTP:cpan:JNTHN | 23:38 | ||
New CPAN upload: cro-tls-0.8.0.tar.gz by JNTHN modules.perl6.org/dist/Cro::TLS:cpan:JNTHN | |||
New CPAN upload: cro-websocket-0.8.0.tar.gz by JNTHN modules.perl6.org/dist/Cro::WebSocket:cpan:JNTHN | |||
AlexDaniel | buggable: pizza Zoffix | ||
buggable | Zoffix, enjoy this slice of Margherita pizza, my friend! Yummy 🍕 | ||
New CPAN upload: cro-0.8.0.tar.gz by JNTHN modules.perl6.org/dist/cro:cpan:JNTHN | |||
New CPAN upload: cro-zeromq-0.8.0.tar.gz by JNTHN modules.perl6.org/dist/Cro::ZeroMQ:cpan:JNTHN | |||
New CPAN upload: Algorithm-LDA-0.0.1.tar.gz by TITSUKI modules.perl6.org/dist/Algorithm::L...an:TITSUKI | |||
New CPAN upload: Algorithm-LDA-0.0.2.tar.gz by TITSUKI modules.perl6.org/dist/Algorithm::L...an:TITSUKI | |||
AlexDaniel | Zoffix: thank you! | ||
23:38
p6bannerbot sets mode: +v huggable,
p6bannerbot sets mode: +v buggable,
Zoffix left,
shareable6 left,
bisectable6 left,
evalable6 left,
shareable6 joined
23:39
undersightable6 joined
|
|||
timotimo | i'd love to see the code, but in general, yeah our regexes are frustratingly slow sometimes | 23:39 | |
23:39
p6bannerbot sets mode: +v shareable6,
p6bannerbot sets mode: +v undersightable6
|
|||
timotimo | might be able to parallelize with .hyper ;) | 23:39 | |
mornfall | oh, i failed to notice that i'm using dir's test with a regex... making it a block that uses .ends-with helped some more | 23:40 | |
timotimo | ah, nice | ||
23:40
bisectable6 joined
|
|||
timotimo | yeah, it'll call that rather often, i'm sure | 23:40 | |
23:41
p6bannerbot sets mode: +v bisectable6,
evalable6 joined,
notable6 joined,
ChanServ sets mode: +v notable6
|
|||
mornfall | timotimo: sprunge.us/LJQ9Se this is the current version (sadly, the program isn't much use without data, which i can't share) | 23:42 | |
23:42
committable6 joined,
ChanServ sets mode: +v committable6,
p6bannerbot sets mode: +v evalable6
|
|||
timotimo | make parsing the program faster by removing "use strict;" :D | 23:42 | |
23:42
p6bannerbot sets mode: +v notable6,
releasable6 joined,
ChanServ sets mode: +v releasable6,
daxim left,
p6bannerbot sets mode: +v committable6
|
|||
mornfall | (the exit in the middle is because i was mostly interested in profiling the first part) | 23:43 | |
23:43
p6bannerbot sets mode: +v releasable6
|
|||
timotimo | ah | 23:43 | |
exit tends to cause the profiler to see these billions of seconds results | |||
you could turn that .split( /\: / ) into .split(": ") and it'll even be correcter | 23:44 | ||
mornfall | interesting... it wasn't too happy about the program waiting for network though | ||
timotimo | (since space in regex is no longer significant) | ||
mornfall | oh, damn :) good catch | ||
though yeah, that only runs like 12 times | 23:45 | ||
timotimo | if the filenames are very regular, the $date, $pid split could be made easier, too | ||
mornfall | (correctness is good of course even if it's only 12 times :p) | ||
timotimo | and instead of s,\n$,, i'd probably .chomp | 23:46 | |
that's likely a whole lot faster, too | |||
maybe even consider $_.=chomp for %new.values | 23:47 | ||
instead of going through the keys like that | |||
m: my %foo = <hello world how areyou good daytoyou>; $_ .= uc for %foo.values; say %foo.perl | 23:48 | ||
camelia | {:good("DAYTOYOU"), :hello("WORLD"), :how("AREYOU")} | ||
timotimo | that's not a performance, thing, though. well, it could be, but only barely | ||
mornfall | .=chomp for %new.values; # this seems to work, nice | 23:50 | |
timotimo | ah, i wasn't sure if it would work without an explicit $_ in front | 23:51 | |
glad to see it does | |||
.=foo is one of the really cool syntactical sugars in perl6, IMO | |||
may i interest you in a sub MAIN? :) | |||
mornfall | yeah i have seen it mentioned but didn't think of that | ||
timotimo: well, i'll clean the whole thing up eventually, i just started on perl6 today :p did like two 5-line scripts earlier | 23:52 | ||
timotimo | oh, cool | ||
mornfall | %form is unsightly and all that | 23:53 | |
oh, actually not true, i started yesterday with a react thing | |||
that was fun too :p | |||
timotimo | with %form { .<operance> = 'blok-pis-student-obsah'; .<uco> = $pid; ... } could be of interest? | ||
well, really you'd use "given" since it's not supposed to be an "if"-like | 23:54 | ||
mornfall | okay, i was wondering if i can maybe subscript the topic variable :) | 23:55 | |
timotimo | yup! | ||
tbrowder | jjmerelo: need some admin help for p6 wordpress | ||
timotimo | m: $_ = 5; .++; .say | ||
camelia | 6 | ||
timotimo | you can even postfix operators | ||
tbrowder | moritz: can you help with p6 wordpress admin? | 23:56 | |
mornfall | (text_diff is also a mess, but i wanted to make the thing operational...) | ||
tbrowder | any p6 wordpress admin around? | 23:57 | |
timotimo | unless $pid changes often, i'd probably bind %new{$pid} into a local variable | ||
mornfall | (either way, i think it's feasible that i re-do the rest of the tools in raku as time permits... i really like the language) | ||
timotimo | tbrowder: le moi | ||
mornfall | bind as in :=? | ||
timotimo | yes | ||
then assignment to the variable will land in the hash | |||
mornfall | it doesn't change often, but it's hard to tell whether it did or not since it's re-matched from the filename | 23:58 | |
timotimo | that's fair | ||
tbrowder | can you change time settings so it clearly shows utc and 24-hour time format? that will help clarify advent publishing schedule | ||
timotimo | oh, um | ||
i haven't a single clue how i would do that | 23:59 | ||
tbrowder | go to admn, settings, general and time settings should be there | ||
timotimo | oh, there it is | ||
mornfall | wordpress :( |