»ö« #raku and #raku-dev are OPEN FOR BUSINESS | 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 mst on 15 October 2019.
00:02 lucasb left 00:21 reach_satori joined 00:34 wildtrees left 00:36 Maylay left 00:38 Maylay joined 01:21 khisanth_ left 01:34 khisanth_ joined 01:58 molaf left 02:04 Manifest0 left, Manifest0 joined 02:10 molaf joined 02:27 Maylay left 02:29 Maylay joined 02:36 Maylay left, Maylay joined 02:40 Cabanossi left 02:41 Cabanossi joined 02:56 melezhik joined
melezhik Hi! When the first release of Raku ( new name ) is expected? I am trying to estimate when start to rewrite my code for Raku ... 02:56
03:01 Maylay left
melezhik looks like there is some information here - github.com/perl6/problem-solving/issues/118 03:02
03:03 Maylay joined, rindolf left 03:04 melezhik left 03:08 Maylay left 03:10 Maylay joined 03:12 donpdonp joined, donpdonp left 03:26 Maylay left 03:27 Maylay joined 04:43 Cabanossi left 04:51 Cabanossi joined 04:57 rindolf joined 05:09 wamba joined 05:13 molaf left 05:17 [particle] left 05:22 [particle] joined 05:34 sauvin joined 05:57 Actualeyes left, Actualeyes joined 06:14 abraxxa joined 06:30 wamba left 06:35 domidumont joined 06:42 domidumont left 06:44 domidumont joined 06:52 Xliff joined 06:54 sena_kun joined 06:57 Xliff left 07:20 wamba joined 07:37 wamba left 07:44 marcusr left 07:45 marcusr joined 07:51 wamba joined 08:02 sarna joined 08:34 marcusr left 08:35 marcusr joined 09:55 domidumont left 09:57 zakharyas joined 10:02 rindolf left 10:05 cpan-raku left 10:06 cpan-raku joined, cpan-raku left, cpan-raku joined 10:08 rindolf joined 10:15 donaldh joined 10:22 sarna left 10:24 reach_satori left 10:37 zakharyas left 10:41 zakharyas joined 10:54 zakharyas1 joined 10:56 zakharyas left 11:12 marcusr left 11:13 marcusr joined 11:15 wamba left 11:18 xinming_ left 11:19 xinming_ joined 11:31 zakharyas1 left 11:34 xinming_ left, xinming_ joined 11:41 reach_satori joined 11:43 Cabanossi left 11:49 marcusr left, marcusr joined 11:56 Cabanossi joined 12:14 wamba joined 12:33 domidumont joined 12:46 reach_satori left 12:48 reach_satori joined 12:49 __jrjsmrtn__ joined 12:51 _jrjsmrtn left 12:55 wamba left 12:59 reach_satori_ joined 13:01 reach_satori left, wamba joined 13:07 wamba left 13:13 hythm joined 13:18 lucasb joined 13:31 molaf joined 13:49 finanalyst joined
finanalyst Is there anyone here that could help me with an optimisation issue? I've written a new module to replace Pod::To::HTML but it is 3x slower, and I'm trying to work out why 13:50
timotimo sure 13:53
finanalyst: i'm the moarperf developer, so that's kind of sort of my job :P
finanalyst great. I have run `time raku --doc=HTML small-prog` and got real:0.2ms, user:0.3s,sys:0.0ms, then run `time raku -Ilib --doc=HTML small-prog` and got r:2.1ms, u:3.2ms, s:0.1` 13:56
When I ran raku with --profile, however, the standard module uses more time than the new one 13:57
So, for standard 'The profiled code ran for 139.28ms', while new is 'The profiled code ran for 81.16ms' 13:58
timotimo ok, interesting 13:59
finanalyst This indicates to me that my actual code is more efficient, but that it is calling an inefficient module (Template::Mustache)
timotimo can you try --stagestats to see if there's any precompilation going on?
the profiler should also show time spent in modules you're using
oh, also
the html profiler doesn't do multithreaded stuff
you'll want moarperf for that
finanalyst timotimo: i'll try stagestats, but I can't find module information easilty, the graphs are a bit difficult to interpre 14:00
Both codes use a >> on the pod-tree, but for the simple files there is only one very short Pod::Block, so that should not affect performance 14:01
timotimo would you be willing to give moarperf a try? 14:02
finanalyst I tried both on the largest pod file in docs/ but the same timing ratio seemed to be showing up, eg. my modules is 3x slower
By the way, I have handled double calls to render by the raku compiler using a state variable 14:03
timotimo: moarperf, sure. where and how to get/use it? 14:04
timotimo github.com/timo/moarperf/releases/...646d6875ae
it's a little cro app
you'll want to --profile=/tmp/profile.sql to get a compatible output file
or if your rakudo is a little older it'll be --profile --profile-filename=/tmp/profile.sql
finanalyst looking
I have Rakudo version 2019.07.1 built on MoarVM version 2019.07.1 14:05
do I need to update?
timotimo nope, that's new enough by far
finanalyst timotimo: installation instruction? 14:06
timotimo "zef install --deps-only ."
if you want it faster --/tests will help 14:07
finanalyst great
timotimo then perl6 -I. service.p6 /tmp/profile.sql
if you could check the readme and point out possible improvements, that'd be appreciated
maybe an INSTALLING file?
finanalyst I'll look now. 14:08
14:09 zxcvz joined 14:18 zakharyas joined 14:22 abraxxa left
Woodi hi #perl6 :) 14:26
"PHP7 will release FFI at the end of _next_ month" :) and our lovely lang already have it for how many years ? :) www.phoronix.com/scan.php?page=new...Good-Shape 14:27
14:28 Imple joined 14:29 donaldh left 14:35 wamba joined 14:42 Imple left 14:50 Cabanossi left
finanalyst timotimo: downloaded moarperf and will test and look at help etc. BUT also ran stagestats on both. Big difference 14:56
For standard module, stage parse: 0.133, for myMod, stage parse 2.128 14:57
timotimo stage parse includes loading modules 14:58
in an even newer rakudo --stagestats will display other "nested" stagestats
like for modules that are precompiled on demand
gist.github.com/timo/7636a95326651...056fabc9e1 - here's an example for moarperf 14:59
finanalyst This found the answer mostly. I had a 'no precompilation' in one of my classes for debugging
timotimo perfect
finanalyst Thank you! 15:00
timotimo you're very welcome 15:01
actually, the profiler could totally record the time-since-vm-start-when-profiling-was-initiated 15:02
and the frontend could suggest "hey btw the profiler only recorded the last 5% of execution time; maybe you want to check if compilation is slow?"
finanalyst I think it would have helped if the information from stagestats could be included in the profiler overview 15:03
and like what you just said
15:15 zakharyas left 15:17 reach_satori_ left 15:30 patrickb joined 15:31 domidumont left
timotimo anyway i'm glad we got that sorted; finanalyst, how much faster is your new version? 15:31
15:47 wildtrees joined 16:28 hythm left 17:09 aborazmeh joined, aborazmeh left, aborazmeh joined 17:18 wamba left 17:23 aborazmeh left 17:27 gabiruh joined 17:29 Cabanossi joined 17:31 aborazmeh joined, aborazmeh left, aborazmeh joined 17:44 rindolf left 17:54 rindolf joined 18:01 kaare__ joined 18:24 sauvin left 18:28 molaf left 18:36 aborazmeh left 18:45 gabiruh left, gabiruh joined 19:04 xinming_ left 19:05 xinming_ joined 19:08 rindolf left 19:38 xkr47 joined 19:40 Doc_Holliwood joined 19:42 hythm joined 20:02 Actualeyes left 20:14 jjatria left, jjatria joined 20:15 jjatria left 20:16 sena_kun left, jjatria joined, releasable6 left 20:17 cpan-raku left, cpan-raku joined, cpan-raku left, cpan-raku joined, jjatria left, jjatria joined 20:21 greppable6_ joined, greppable6_ left 20:25 releasable6 joined, wamba joined 20:42 krychu_ joined 20:43 xkr47 left 20:46 molaf joined 21:15 hythm left 21:29 xkr47 joined 22:11 pecastro joined 22:12 Guest51 joined, Guest51 left 22:24 finanalyst left 22:29 krychu_ left 22:43 SCHAPiE joined 22:47 wildtrees left 22:48 patrickb left 22:58 khisanth_ left 23:06 pecastro left 23:17 khisanth_ joined, redable joined 23:19 redable left 23:21 redable joined 23:23 redable left 23:27 redable joined 23:28 redable left 23:31 redable joined 23:32 redable left 23:33 redable joined, redable left 23:47 redable joined 23:53 Actualeyes joined