Camelia, the Perl 6 bug

IRC log for #moarvm, 2013-07-11

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

All times shown according to UTC.

Time Nick Message
02:37 jlaire_ joined #moarvm
04:53 JimmyZ so the mascot of MoarVM is cat?
05:00 birdwindupbird joined #moarvm
05:32 diakopter heh no
05:35 JimmyZ :P
06:06 FROGGS joined #moarvm
06:07 FROGGS o/
06:10 diakopter o/
06:19 FROGGS jnthn: hi, can you comment on this? https://gist.github.com/FROGGS/5964614
09:32 jnthn FROGGS: +1
09:36 FROGGS \o/
09:56 JimmyZ FROGGS++
10:07 colomon joined #moarvm
10:18 colomon joined #moarvm
12:04 lizmat joined #moarvm
12:31 cognominal joined #moarvm
14:53 cognominal joined #moarvm
15:05 dalek MoarVM: 65a2167 | (Tobias Leich)++ | / (5 files):
15:05 dalek MoarVM: added nqp::open op and use MVM_open_* constants in tests
15:05 dalek MoarVM: review: https://github.com/MoarVM/MoarVM/commit/65a2167d8a
15:09 JimmyZ \o, FROGGS++
15:09 FROGGS thanks again :o)
15:11 JimmyZ :P
15:48 diakopter .ask FROGGS you didn't commit the test changes?
15:48 yoleaux diakopter: I'll pass your message to FROGGS.
15:48 diakopter .tell FROGGS nm; I was looking at the gist from yesterday; oops
15:48 yoleaux diakopter: I'll pass your message to FROGGS.
15:55 FROGGS joined #moarvm
15:58 diakopter FROGGS: .
15:58 FROGGS diakopter: .
15:58 yoleaux 15:48Z <diakopter> FROGGS: you didn't commit the test changes?
15:58 yoleaux 15:48Z <diakopter> FROGGS: nm; I was looking at the gist from yesterday; oops
15:58 FROGGS :o)
15:59 benabik joined #moarvm
17:25 FROGGS jnthn: I have problems adding the nqp op handler for getstdin because moar's op has the same name, and I run into a recursion...
17:26 FROGGS jnthn: how can I avoid this? can I somehow have an op that calls moar's op directly?
17:27 FROGGS jnthn: I tried to build a MAST::InstructionList instead of QAST::Stmts, but I have to pass the filehandle and I have no idea how to use MAST::Local
17:39 benabik joined #moarvm
18:00 FROGGS at least, I dont know what to pass to :index()
18:00 diakopter FROGGS: why would it recurse?
18:01 diakopter you can have the nqp op handler and then write a same-named moarvm op
18:01 FROGGS I think when I call nqp::getstdin(), its op is getstdin, so it calls itself
18:01 diakopter no
18:01 diakopter the nqp:: goes away
18:02 FROGGS then I dont know where the recursion comes from
18:02 diakopter paste your code?
18:02 diakopter nopaste?
18:02 FROGGS hold on
18:06 diakopter ?
18:07 FROGGS https://gist.github.com/FR​OGGS/988eca5c90eef2082ddf
18:09 diakopter heh
18:09 diakopter why are you generating qast? :)
18:10 diakopter (generating qast during qast->mast should only be used rarely in exceptional circumstances)
18:12 diakopter what are you wanting nqp::getstdin to do?
18:13 diakopter call the moarvm op getstdin?
18:13 jnthn One thing I wanted to do with the IO stuff is make them use BOOTIO or so ratehr than taking the type object in the ops all over the place...
18:15 diakopter I'd be able to help better if I knew what you were trying to do
18:15 ssutch joined #moarvm
18:17 * diakopter feels not very helpful at the moment
18:19 diakopter FROGGS: u around?
18:19 FROGGS I am now ($kids)
18:20 FROGGS well, I need to pass the type object as jnthn said, and therefor I'm using QAST
18:20 FROGGS I tried using MAST, but I dont know how to make a MAST::Local
18:20 FROGGS I guess that piece would go in BOOTIO then
18:21 jnthn Yeah, I think I maybe started cleaning the ops up there...not sure
18:21 diakopter why do you need qast to pass bootio?
18:21 itz joined #moarvm
18:22 FROGGS ahh, now I see, there already is BOOTIO
18:25 diakopter FROGGS: what do you mean "that piece would go in BOOTIO"
18:26 FROGGS nvm, I thought I have to create something, but it is already there
18:27 diakopter FROGGS: I still don't know what you want nqp::getstdin to do
18:28 FROGGS it will return the STDIN filehandle
18:29 diakopter ok.
18:29 diakopter you need to simply refactor the moarvm built-in getstdin op, then
18:29 diakopter and map it directly
18:30 diakopter (not have any expansion done in qast->mast)
18:30 FROGGS k
18:30 diakopter lemme do it real quick
18:31 diakopter what params is it supposed to take? any?
18:33 FROGGS diakopter: np, I can do it
18:43 diakopter ok.. but what parameters is it supposed to take?
18:48 FROGGS none
18:50 TimToady "getstdin" seems like it's a bit undergeneralized, at least on systems that can map an integer file descriptor to a filehandle
18:52 jnthn Thinking file descriptors are integers is probably differently undergeneralized... ;)
18:52 lizmat joined #moarvm
19:03 lizmat_ joined #moarvm
19:11 lizmat joined #moarvm
19:18 ssutch_ joined #moarvm
19:24 FROGGS would that be acceptable? https://gist.github.com/FR​OGGS/19e3b5f2a0c27c59f36a
19:35 lizmat joined #moarvm
19:49 lizmat joined #moarvm
20:01 FROGGS okay, at least getstdout and getstderr seems to do what it should
20:07 FROGGS jnthn: I'm going to push my stuff to a branch...
20:19 lizmat joined #moarvm
20:45 diakopter FROGGS: that diff looks good
20:46 FROGGS okay, cool
20:46 FROGGS diakopter: thanks
20:49 diakopter did you push it? I didn't see dalek say anything
20:50 FROGGS no, I didnt, need to fix the tests first
20:51 diakopter ok. wait, MVMint64 encoding_flag = 1;
20:52 diakopter at some point we'll be making that editable, I think
20:52 diakopter setencoding or something
20:52 FROGGS setencoding is called after getting the filehandle from open or getstdin
20:56 diakopter FROGGS: oh, I didn't know that existed yet
20:59 colomon joined #moarvm
21:05 dalek MoarVM: dbb497d | (Tobias Leich)++ | / (10 files):
21:05 dalek MoarVM: make getstdin, getstdout and getstderr argless
21:05 dalek MoarVM: review: https://github.com/MoarVM/MoarVM/commit/dbb497d09e
21:10 diakopter FROGGS: note that the MVMOSHandle repr and all its related ops will change wildly this year
21:10 diakopter dramatically different factorings to do things correctly threadsafely and using the libuv (probably) interfaces
21:12 FROGGS yeah, jnthn told me a bit about that
21:17 * diakopter wonders what I missed
21:47 lizmat joined #moarvm
22:13 lizmat joined #moarvm
22:33 lizmat joined #moarvm
22:35 FROGGS joined #moarvm
23:37 ssutch joined #moarvm

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