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