Perl 6 - the future is here, just unevenly distributed

IRC log for #moarvm, 2016-03-26

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

All times shown according to UTC.

Time Nick Message
01:38 colomon joined #moarvm
01:52 timotimo clever bit of the day:
01:52 timotimo how do you compare an int with an Int?
01:53 timotimo obviously you box the int into an Int and do eq_I
02:21 colomon joined #moarvm
02:37 timotimo same for subtraction of a num and a Num ... :(
02:37 timotimo it even boxes, then immediately unboxes again
02:46 geekosaur joined #moarvm
04:26 vendethiel joined #moarvm
05:50 diakopter timotimo: well, the compiler can't prove that the Int isn't bigger than the max int
05:51 diakopter (yet?)
07:46 domidumont joined #moarvm
09:02 vendethiel joined #moarvm
10:32 kjs_ joined #moarvm
11:10 kjs_ joined #moarvm
13:20 colomon joined #moarvm
16:10 lucasb joined #moarvm
16:20 lucasb hello there
16:20 lucasb I was trying to understand that string ropes bug
16:20 moritz howdy
16:20 lucasb oh, hey moritz. thanks for fixing that empty signarture smartmatch bug :)
16:21 moritz lucasb: you're welcome. It turned out to be easy enough for me to do with my rusty skills :-)
16:22 moritz now I'm fighting with vagrant, virtual networks, ansible and debian instead :-)
16:27 lucasb I just wanted to describe my understanding of the string bug.
16:27 lucasb It seems it only happens on the special situation when there's a string with 2 or more strands, with repetitions and when you ask substr for a specific offset into the string.
16:27 lucasb I tried to read the source code of MVM_string_{concatenate,repeat,substring} to understand, but it looks ok.
16:27 lucasb So, my guess is that the bug may live in the MVMGraphemeIter functions, maybe more specific in the MVM_string_gi_move_to function, which is called by the substr function.
16:28 lucasb here is a section of the code: https://github.com/MoarVM/MoarVM/blob/master/src/strings/iter.h#L89-L97
16:29 lucasb in there, you can see 2 lines:
16:29 lucasb MVMuint32 remaining_reps = remaining / rep_graphs
16:29 lucasb gi->repetitions -= remaining_reps
16:29 konobi how goes things on the moarvm front?
16:30 konobi moritz: sounds like you need to get on the docker train
16:31 lucasb when remaining is 1 and rep_graphs is greater than 1, than remaining_reps gets assigned 0
16:31 lucasb and then 0 repetitions is decremented, that's where I think may lie some bug
16:31 moritz konobi: then I struggler with docker, virtual networks, ansible and debian :-)
16:32 moritz *struggle
16:32 konobi moritz: https://github.com/mobify/dmit
16:33 konobi and a lot of what you do with ansible can be done with docker build
16:35 moritz well, I'll eventually jump onto the docker wagon, but not yet
16:35 konobi would be nice to have a perl6/moarvm docker image
16:36 konobi easy dev env for anyone
16:36 moritz konobi: like https://hub.docker.com/r/pmakholm/perl6/ ?
16:37 konobi nice
16:43 mst joined #moarvm
17:05 domidumont joined #moarvm
17:08 domidumont joined #moarvm
17:08 timotimo lucasb: i'm glad you're looking into this bug
17:09 timotimo sadly i'm no wiser than you
17:15 zakharyas joined #moarvm
17:15 lucasb timotimo: I think you're much more wiser than me :)
17:16 lucasb I took several days to read the source and try to understand
17:16 lucasb I hope jnthn can have some time to take a look at it later
17:16 lucasb jnthn: ^^^
17:17 lucasb the commit that introduced that code was https://github.com/MoarVM/MoarVM/commit/56ddb8199a61a4a08e805fe7280ec0db03558342
17:20 lucasb in summary, I think the issue is blindly dividing "remaining / rep_graphs" and expecting that the result will always be greater than 0
17:24 timotimo right, so we want a float division and a ceil?
17:26 lucasb or maybe just a special case: if (remaining < rep_graphs) then ... else do the usual thing
17:26 timotimo seems a little bit smelly to have that. i dunno
18:06 cognominal joined #moarvm
18:21 vendethiel joined #moarvm
19:30 FROGGS joined #moarvm
19:40 geekosaur joined #moarvm
20:38 vendethiel joined #moarvm
21:01 colomon joined #moarvm
21:53 * jnthn is too tired to look at code (been tired all day :S)
21:53 jnthn But I suspect lucasb++ has got it tracked down to the right place...it makes sense
21:53 jnthn Will see if I can make more sense of it once I've more brane :)
21:59 vendethiel joined #moarvm
22:04 geekosaur joined #moarvm
23:01 vendethiel joined #moarvm
23:28 vendethiel joined #moarvm

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