Perl 6 - the future is here, just unevenly distributed

IRC log for #moarvm, 2017-06-04

| Channels | #moarvm index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:03 AlexDani` joined #moarvm
00:05 AlexDani` joined #moarvm
01:48 ilbot3 joined #moarvm
01:48 Topic for #moarvm is now https://github.com/moarvm/moarvm | IRC logs at  http://irclog.perlgeek.de/moarvm/today
04:50 lizmat joined #moarvm
07:36 nine I can't believe how fast rakudo is, considering that a simple getattr has to loop so much...
07:38 moritz it has?
07:39 nine Finding the attribute slot in the object is looping over the inheritance hierarchy to find the requested class, then loop over the attributes to find the one with a matching name
07:41 moritz and I thoght we pre-compute the storage layout for each class individually
07:41 nine I guess that's what spesh does
09:42 cygx joined #moarvm
09:42 cygx o/
09:43 cygx I can no longer build nqp using Strawberry Perl due to a segfault in MVM_nfg_crlf_grapheme() while generating the stage1 nqpmo.moarvm
09:53 Alexdaniel joined #moarvm
10:46 jnthn nine: That's in the most late-bound case; in most cases a hint is provided which allows the whole search to be avoided entirely in favor of a bounds check, and spesh can eliminate the call to get_attribute entirely.
10:48 jnthn (And spesh can do that in cases where the static hint mechanism can't be used too)
11:02 cygx joined #moarvm
11:27 jnthn fwiw, that Strawberry Perl SEGV cygx mentioned happens on Windows under MSVC too
11:27 jnthn I'll take a look tomorrow if nobody beats me to it
11:30 nine jnthn: is it ok to commit this debugging aid? https://gist.github.com/niner/50a724956cd06e2c6f7f91962da2ca23
11:31 nine I got a bit tired of re-discovering how to "what the hell is this obj" in gdb every couple of months...
11:33 jnthn nine: Yes, though perhaps with a #define, and at minimum a comment saying it's not used anywhere in the rest of MoarVM but for debugging, so don't delete it as dead code :)
11:33 nine Gives me: (gdb) call MVM_dump_p6opaque(tc, obj, 0)
11:33 nine Stash->new(#`(from Map) $!storage=BOOTHash, #`(from Hash) $!descriptor, #`(from Stash) $!longname='A')
11:34 nine jnthn: ok, can do :)
11:34 jnthn Nite :)
11:34 jnthn Though, uh, ->new? :)
11:34 nine jnthn: is there any appropriate existing #define ?
11:34 nine Err... I guess 20 years of Perl 5 are hard to ignore ;)
11:34 jnthn nine: I can't think of one; I unified all of the GC debug aids under a single one a while ago
11:38 nine Oh, I could automatically set the #define on Configure.pl --debug
11:38 jnthn Or that
11:38 nine Calling it DEBUG_HELPERS for now
11:38 jnthn I think that makes sense
12:56 timotimo i also had a piece of code in moar-gdb that could print out p6opaque stuff, but it's not in master yet
13:09 domidumont joined #moarvm
13:14 domidumont joined #moarvm
13:28 zakharyas joined #moarvm
13:42 Alexdaniel joined #moarvm
16:37 lizmat joined #moarvm
17:02 domidumont joined #moarvm
17:28 Geth ¦ MoarVM: fd869b7a7c | (Stefan Seifert)++ | 2 files
17:28 Geth ¦ MoarVM: Debugging aid for introspecting P6opaque objects
17:28 Geth ¦ MoarVM:
17:28 Geth ¦ MoarVM: When compiling moarvm with --debug, the MVM_dump_p6opaque(tc, obj)
17:28 Geth ¦ MoarVM: function is available for calling from e.g. a debugger session.
17:28 Geth ¦ MoarVM: review: https://github.com/MoarVM/MoarVM/commit/fd869b7a7c
17:49 MasterDuke joined #moarvm
18:57 Alexdani` joined #moarvm
19:13 zakharyas joined #moarvm
20:00 Alexdani` joined #moarvm
20:07 ggoebel joined #moarvm
20:07 zakharyas joined #moarvm
20:35 d4l3k_ joined #moarvm
20:35 Zoffix joined #moarvm
20:40 geekosaur joined #moarvm
20:54 ilbot3 joined #moarvm
20:54 Topic for #moarvm is now https://github.com/moarvm/moarvm | IRC logs at  http://irclog.perlgeek.de/moarvm/today
21:06 ilmari[m] joined #moarvm
21:54 samcv good * everyone

| Channels | #moarvm index | Today | | Search | Google Search | Plain-Text | summary