Conversation with #inferno at Thu Aug 19 19:36:21 2010 on powerman-asdf@irc.freenode.net (irc) (21:55:44) Fish left the room (quit: Remote host closed the connection). (21:56:02) Fish [~Fish@9fans.fr] entered the room. (00:28:01) mennis left the room (quit: Quit: mennis). (00:43:02) anth_x left the room (quit: Ping timeout: 276 seconds). (00:47:26) anth_x [~a@2002:4cbd:c53e:0:21f:5bff:fec0:9d37] entered the room. (01:28:35) Fish left the room (quit: Remote host closed the connection). (01:48:19) dreadlorde [~dreadlord@c-68-42-226-192.hsd1.mi.comcast.net] entered the room. (01:48:48) dreadlorde: I keep getting the error ``emu.c:90: error: expected expression before ‘;’ token (01:48:52) dreadlorde: '' (01:49:36) dreadlorde: when trying to compile inferno from hg. anyone else experience this? looking at the source there doesn't seem to be anything wrong with line 90 in emu/Linux/emu.c (06:20:00) Capso [none@about/networking/128.0.0.0/Capso] entered the room. (06:20:26) Capso: how do you get inferno to plumb out to Plan 9? (06:20:46) Capso: and how do you get inferno's snarf buffer to post to rio's snarf buffer? (06:21:48) anth_x: i don't believe there's a way to directly plumb between the two. they at least used to be different; i don't believe there was ever a harmonization. (06:21:54) anth_x: snarf buffer's easier. (06:22:35) Capso: how do you do the snarf buffer, then? (06:23:32) anth_x: there's two snarf device thingies in inferno. i believe you want the #^ one on /chan/snarf and /dev/snarf. (06:23:48) Capso: do you bind over it? (06:23:59) anth_x: yup (06:24:43) Capso: how do you bind Plan 9's /dev/snarf over inferno's? (06:24:55) Capso: or does emu just use Plan 9's /dev inside inferno too? (06:25:06) anth_x: you don't need to. use #^/snarf (06:26:15) Capso: oh, I see (06:26:20) Capso: so bind #^/snarf /dev/snarf (06:26:28) Capso: and bind #^/snarf /chan/snarf (06:26:59) anth_x: yeah. i think wm only uses the chan one. (06:27:13) Capso: cool (06:27:24) Capso: hmm, and there's no such bind trick for plumb? (06:27:57) anth_x: last time i checked (which was quite a while ago now) there were differences in the rules. (06:28:30) anth_x: although maybe the file trees are the same; the rules would only really matter for starting up. (06:28:57) anth_x: you could, of course, create rules for inferno's plumber that pass things to, say, /n/local/mnt/plumb (06:29:03) anth_x: but that's a tedius setup. (06:29:20) Capso: I'd like to pretty much pass everything to Plan 9 (06:29:40) Capso: cause Plan 9's plumber passes like web stuff to windows or to abaco, depending on which is up, etc. (06:40:30) Capso: anth_x: there is no #^ for me :( (06:47:13) vsrinivas: how about '#*snarf' (06:50:23) Capso: vsrinivas: % ls '#*snarf' (06:50:36) Capso: ls: stat #*snarf: unknown device: snarf (06:50:44) Capso: vsrinivas: this is inferno-npe btw (06:51:34) anth_x: hrm. i wonder if they don't build it in on plan9? (06:51:34) anth_x: i *believe* you can just mount the host's /dev/snarf in and get the same effect on plan9. (06:51:34) anth_x: it's a bit irritating that you couldn't then use the same setup on unix systems. (06:51:57) Capso: oh, you mean mount /dev/snarf from plan9 before starting inferno, then bind that over, inside inferno? (06:53:43) anth_x: that'd likely work. i was thinking bind /n/local/dev/snarf (or wherever you get it from; '#U'?) over /chan/snarf in your inferno startup. (06:54:00) Capso: you don't get the host system from #U sadly :( (06:54:15) Capso: vsrinivas: why in inferno-npe don't I see my Plan 9 host system from #U? (06:54:43) vsrinivas: its #U* (06:54:54) vsrinivas: not #U :D (06:55:06) vsrinivas: hmm, i have no idea why we don't have 'snarf' on p9. (06:55:24) Capso: grr, you guys (06:56:02) anth_x: ? (06:56:09) vsrinivas: (sorry! none of us used it on p9 till recently...) (06:56:14) Capso: by "you guys" I mean the npe team (06:56:27) vsrinivas: in emu/Plan9/emu, add 'snarf' after 'pointer' (06:56:34) vsrinivas: (sorry! /me hides under the table) (06:57:17) Capso: vsrinivas: also, redrawing kinda sucks in inferno-npe (06:57:33) Capso: vsrinivas: try opening Acme in inferno-npe, then hide/display or close it (06:57:51) Capso: the time it takes for it to redraw after the effect is tremendous (06:59:12) Capso: vsrinivas: also, is there any hope to add the capability into emu to make it run off a kfs file? (07:03:26) Capso: vsrinivas: you have to fix more (07:03:37) Capso: vsrinivas: when I do that, I get: (07:04:02) Capso: mk: no recipe to make 'devemu.8' in directory /n/other/os/inferno-npe/emu/Plan9 (07:04:37) vsrinivas: Capso: okay. could you put these as issues on p9. (07:04:41) vsrinivas: *on -npe. (07:04:53) vsrinivas: i'll wander over to my p9 machine right now to look at them. (07:05:04) vsrinivas: (can you tell me more about redraw?) (07:05:33) mycrofti1 is now known as mycroftiv (07:05:45) Capso: that's all I got - try it out (07:05:50) Capso: I don't know any code level details :( (07:06:25) Capso: vsrinivas: sorry! sorry! the last one was my fault! I added 'emu' instead of 'snarf' after 'pointer' (07:07:08) vsrinivas: okay. i'll try it. what graphics card on p9, btw? (07:07:15) vsrinivas: (and is it the latest version of -npe?) (07:07:49) Capso: latest, from mercurial (07:07:56) Capso: well, OK, I haven't updated for a few days (07:08:10) Capso: graphics card is an nVidia GeForce FX 5200 (07:08:11) vsrinivas: okay, post 8/3? (07:08:13) vsrinivas: okay. (07:08:34) vsrinivas: i have an nvidia card too, vganvidia works mostly the same way, i can test wel here. (07:08:59) Capso: vsrinivas: OK, I have problem for you (07:09:06) Capso: vsrinivas: snarfclose: clipwrite is undefined (07:09:13) Capso: snarfread: clipread is undefined (07:10:25) vsrinivas: okay. (07:10:37) vsrinivas: fwiw real inferno-os doesn't have the snarf device on p9 either. (07:11:00) Capso: yeah, it seems to be only in win-x11a.c (07:11:03) vsrinivas: i guess binding it in from p9 is the right answer. (07:11:06) Capso: OK (07:33:34) Capso: wait, how are you supposed to bind '#U*/dev/snarf' /chan/snarf before inferno starts, if /chan/snarf doesn't exist until wm starts? (07:33:45) Capso: I want to do this for my solo charon session (07:45:07) acmeuser [~acmeuser@cpe-24-165-9-243.san.res.rr.com] entered the room. (07:46:13) acmeuser left the room (quit: Remote host closed the connection). (08:03:41) Capso: is there a stub(1) like utility for inferno? (08:08:13) Capso: vsrinivas? (08:09:07) vsrinivas: Capso: yep. what is stub? (08:09:19) vsrinivas: i'm looking at the draw stuff here... acme seems okay, but not great.... (08:09:27) vsrinivas: what res are youy running at? (08:09:34) vsrinivas: *both the emu window and acme (08:09:39) vsrinivas: also, how are you starting charon? (08:09:42) Capso: 1024x786 (08:09:53) Capso: I'm starting it like it says on Tip o' the Day at P9 wiki (08:10:08) vsrinivas: okay. (08:10:14) vsrinivas: oh, the rioimport script one? (08:10:16) Capso: the problem is, /chan/snarf comes up after the wm (08:10:29) Capso: but you can't bind anything after that, cause the wm has to run (08:10:36) vsrinivas: yea. (08:10:38) Capso: so you have to somehow bind before (08:10:43) Capso: yeah, rioimport (08:10:50) vsrinivas: let me look at my charon scripts, one sec (08:10:51) Capso: so how do you do it? (08:10:54) Capso: maybe like... (08:10:59) Capso: chan snarf (08:11:06) Capso: bind -b '#U*/dev/snarf' /chan/snarf (08:11:09) vsrinivas: you could write a wm script (08:11:09) Capso: ... (08:11:11) Capso: like that? (08:11:24) Capso: a wm script? (08:11:33) Capso: what is such a script? (08:11:48) vsrinivas: wm can run a script at startup, i forget how. (08:12:54) Capso: is it wmsetup? (08:13:03) Capso: I thought that was only for wm/wm? (08:13:06) Capso: not other wm stuff? (08:13:13) vsrinivas: oh, fair (08:13:20) vsrinivas: (i just do wm/wm charon, fwiw) (08:13:37) vsrinivas: lets see, -b might work, (08:13:40) Capso: is that any different from wm/charon ? (08:13:46) vsrinivas: no, (08:13:51) Capso: I imagine it's more shit that has to run? (08:13:59) vsrinivas: no rioimport, is all. (08:14:01) vsrinivas: yea, prolly. (08:14:35) Capso: why is there no chan.dis? (08:14:36) Capso: hmm (08:16:58) Capso: vsrinivas: there's a /lib/wmcharon (08:17:04) Capso: which is probably what you mean (08:17:12) Capso: vsrinivas: but that idea doesn't work across the board :( (08:23:56) Capso: vsrinivas: the only way I can think of is, to use stub(1) like tool to create a synthetic /chan/snarf and then bind -b '#U*/dev/snarf' /chan/snarf before the wm program starts (08:24:08) Capso: vsrinivas: so, is there some stub(1) tool for inferno? (08:26:21) vsrinivas: hmm, i don't think so. i've never looked.. (09:26:45) Capso: I made a script that works (10:55:17) Fish-Work left the room (quit: Ping timeout: 265 seconds). (10:58:24) Fish-Work [~Fish@86.65.182.207] entered the room. (11:26:48) acmeuser [~acmeuser@k084.fem.tu-ilmenau.de] entered the room. (11:26:51) acmeuser left the room. (13:02:16) Fish-Work left the room (quit: Ping timeout: 272 seconds). (13:13:23) Fish-Work [~Fish@86.65.182.207] entered the room. (13:22:51) Fish-Work left the room (quit: Read error: Connection reset by peer). (13:23:42) Fish-Work [~Fish@86.65.182.207] entered the room.