Camelia, the Perl 6 bug

IRC log for #moarvm, 2013-06-15

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

All times shown according to UTC.

Time Nick Message
01:19 FROGGS joined #moarvm
03:01 Jimmy__ joined #moarvm
03:02 Jimmy__ diakopter: ping
03:03 diakopter plong
03:03 diakopter Jimmy__: ^
03:03 Jimmy__ diakopter: not not thread-safe
03:04 Jimmy__ diakopter: http://irclog.perlgeek.de/m​oarvm/2013-06-09#i_7174629
03:04 diakopter but that's why stuff hangs off instance; b/c there could be more than 1 instance
03:05 Jimmy__ diakopter: so https://github.com/MoarVM/Moa​rVM/commit/308e29098e#L7R1233 is not thread-safe also?
03:06 diakopter right
03:06 diakopter any in-process cache needs to hang off instance, unless it's non-managed memory such as the unicode names map
03:07 diakopter (and immutable)
03:09 Jimmy__ diakopter: ok, I'm not good at threads, but per http://irclog.perlgeek.de/m​oarvm/2013-06-09#i_7174629,  and https://github.com/MoarVM/MoarVM/commit/15a​1e63c0c49208011869365168e5c5b41a4c4cc#L0R8 was written by jnthn++, I think we should discuss it with jnthn a bit
03:09 Jimmy__ diakopter: :P
03:09 * Jimmy__ didn't write any threads code...
03:10 diakopter okay yes, it's thread-safe assuming all the threads are of the same MVMInstance
03:10 diakopter but long-term, it would be nice to be multiple-instance-safe
03:11 diakopter for instance
03:11 diakopter a process that's embedding moarvm
03:11 diakopter such as perl
03:11 diakopter might start up thousands of instances one after another if that's what suits it
03:11 Jimmy__ diakopter: you're right. I think there should be tc->instance->mutexs->hllconfig_mutex or something?
03:11 diakopter right
03:12 diakopter no need to make a separate malloc'd table for mutexs-> there.. just make instance bigger
03:12 Jimmy__ diakopter: yes
03:14 diakopter afk 20 min &
03:15 diakopter Jimmy__: there are MANY opportunities for obvious small optimizations in any runtime code that does temporary malloc.. to cache the space
03:15 diakopter feels like 30 or so
03:15 diakopter afk for realz
03:16 Jimmy__ diakopter: ok, I think I understand you
03:17 Jimmy__ by use fork, and with threads, it's not thread safe
03:20 * Jimmy__ still not sure :P
03:21 Jimmy__ but should be similar
03:22 benabik joined #moarvm
03:55 Jimmy__ diakopter: I think some is multiple-instance-safe since they are run once and not use malloc
04:10 Jimmy__ joined #moarvm
04:40 Jimmy__ hmm, may not sure
05:00 diakopter Jimmy__: malloc is okay
05:00 diakopter you just can't store MVMObject process wide
05:00 Jimmy__ diakopter: welcome back  :P
05:00 diakopter or any malloc things that contains MVMObject pointers
05:01 diakopter or any malloc thing that contains pointers to memory managed by 6model reprs
05:01 * Jimmy__ still doesn't know what's wrong when not MVMROOTed
05:01 diakopter changing the subject?
05:01 diakopter or are you asking if those are related?
05:03 Jimmy__ well, I feel a headache whenever I try to understand threads-related things.
05:04 Jimmy__ diakopter: related
05:04 diakopter they're not related
05:05 Jimmy__ or not?
05:06 diakopter wrapping in MVMROOT adds the pointer pointer to a list of roots from which the GC starts as knowing are live
05:07 diakopter so it's just to ensure that if the GC runs somewhere within what you wrapped, that pointer gets updated if the GC moved that object
05:11 Jimmy__ diakopter: BTW, you have a changing to libuv doc?
05:11 diakopter yes; PM me a google ID and I'll add you to view it
05:12 diakopter I mean, they can be public really
05:12 diakopter well in a few days anyway
05:19 Jimmy__ PMed you
05:49 Jimmy__ joined #moarvm
05:49 Jimmy__ diakopter: thanks, I'm sure I undertand MVMROOT part now.  :P
06:41 birdwindupbird joined #moarvm
07:58 eternaleye joined #moarvm
08:03 lizmat joined #moarvm
08:19 Jimmy__ joined #moarvm
08:19 Jimmy__ diakopter: ping
08:26 Jimmy___ joined #moarvm
08:37 Jimmy__ joined #moarvm
09:17 eternaleye joined #moarvm
10:21 cognominal joined #moarvm
10:23 tomyan joined #moarvm
10:28 tgt joined #moarvm
10:38 tomyan joined #moarvm
10:43 cognominal joined #moarvm
10:46 cognominal joined #moarvm
10:54 JimmyZ joined #moarvm
11:15 JimmyZ joined #moarvm
11:22 JimmyZ joined #moarvm
11:24 JimmyZ joined #moarvm
11:47 tomyan joined #moarvm
11:59 tomyan joined #moarvm
12:06 cognominal joined #moarvm
13:12 cognominal joined #moarvm
13:54 cognominal joined #moarvm
13:59 birdwindupbird joined #moarvm
15:02 cognominal joined #moarvm
16:03 Ulti joined #moarvm
17:10 lizmat joined #moarvm

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