Conversation with #inferno at Sun Dec 2 21:18:00 2012 on powerman-asdf@irc.freenode.net (irc) (22:11:22) raphaelsc [~raphaelsc@187-127-54-123.user.veloxzone.com.br] entered the room. (22:43:12) acmeuser [~acmeuser@68.194.207.185] entered the room. (22:43:13) acmeuser left the room (quit: Remote host closed the connection). (22:51:06) dreadlorde left the room (quit: Ping timeout: 264 seconds). (23:16:29) anth_r: powerman-asdf: it's good in many cases, but it's not generalizable. (23:17:13) anth_r: that is, for example (from plan9; i don't have an inferno in front of me to test, but the idea is the same): (23:17:15) anth_r: :; ns | grep '#\|' (23:17:15) anth_r: mount '#|/data1' /mail/fs (23:17:30) anth_r: there's no way to tell what "#|" refers to in that context. (23:18:07) powerman-asdf: anth_r: but it can be unmounted (23:18:15) powerman-asdf: without knowing it's source (23:18:15) anth_r: other things like that, too. i don't believe the attach specifier, if given, shows up anywhere, so all dossrv thing will look the same. (23:18:43) anth_r: powerman-asdf: i'm not sure that's always true. at least not without unmounting *everything* on the target, which you don't always want to do. (23:19:14) anth_r: i mean the "i'm not sure" literally - i don't know. is it? i didn't think so, but i could certainly believe i'm wrong. (23:20:18) powerman-asdf: so, we can: 1) readdir to get all Qid's of same-named file; 2) read first file; 3) in loop, unmount every mount point one-by-one, and check stat() of this file - if it Qid changes, then read next file and continue (23:21:40) anth_r: from the same window as above (again, plan9; inferno could behave differently here): (23:21:42) anth_r: :; unmount '#|/data1' /mail/fs (23:21:43) anth_r: unmount: /mail/fs: not in union (23:22:31) anth_r: #| clearly is, but the #| referred to in the ns table isn't something i can get at. (23:25:39) powerman-asdf: anyway, I decide to try something less invasive (than patch /dis/man to spawn/forkns/unmountall to read INDEX files) first. probably because of FUD you throw on me. :) (23:26:31) anth_r: i think that's probably good. i think if you re-export anything, you'll totally mask the ability to see that, anyway. (23:27:25) powerman-asdf: I run ramfile(4) on /chan/man-{1-10}-INDEX, and join contents of all INDEX files in that ramfile(s), then bind it over man/*/INDEX. This is done in /opt/setup.sh which bind opt packages man/*/ over system /man/*/. (23:27:39) powerman-asdf: here is it: http://pastebin.com/JiVmNp2s (23:32:42) powerman-asdf: not as general as initial idea to patch /dis/man, but, you right - binding something over /man/*/INDEX doesn't always mean "append" operation, sometimes it can be "replace", and in this case general namespace unrolling and appending all INDEX files by /dis/man will do the wrong thing (00:04:12) dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] entered the room. (04:04:36) flazz left the room (quit: Ping timeout: 245 seconds). (04:22:42) raphaelsc left the room (quit: Remote host closed the connection). (07:26:12) dreadlorde left the room (quit: Ping timeout: 248 seconds). (10:16:54) `jpi left the room (quit: Ping timeout: 264 seconds). (10:21:46) `jpi [~jpi@unaffiliated/pseud0cod3r] entered the room. (10:33:53) rogpeppe2 [~rog@92.30.186.158] entered the room. (10:34:29) rogpeppe2 is now known as rogpeppe (11:11:48) leetspete left the room (quit: Ping timeout: 245 seconds). (11:50:34) Gegemon [~ynv@mx1.airis.ru] entered the room. (13:58:29) leetspete [~pete@76.91.33.110] entered the room. (14:05:11) leetspete left the room (quit: Ping timeout: 260 seconds). (14:22:42) leetspete [~pete@76.91.33.110] entered the room. (14:36:41) powerman-asdf: about two weeks ago I've blame here rand->rand() to be not enough random even for gameā€¦ but it turns out it was my mistake. :( (14:38:17) powerman-asdf: I've used sys->millisec() to seed it, and that's was the problem. I think it's include current time, but it isn't, and start from 0 on each emu start - so I've get same seed value often enough, and thus get same random numbers and same/similar generated map in game. (14:38:51) powerman-asdf: using daytime->now() as seed result in much better random numbers from rand->rand() (14:42:54) doublec: good catch! (15:07:06) leetspete left the room (quit: Ping timeout: 265 seconds). (15:19:41) leetspete [~pete@76.91.33.110] entered the room. (15:59:04) Gegemon left the room (quit: Quit: Leaving.). (16:45:49) vsrinivas left the room (quit: Ping timeout: 260 seconds). (16:48:08) vsrinivas [U2FsdGVkX1@batman.acm.jhu.edu] entered the room. (16:55:08) dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] entered the room. (17:20:47) dreadlorde left the room (quit: Ping timeout: 276 seconds). (17:21:17) dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] entered the room. (18:10:53) powerman-asdf: is vim syntax highlight exists for inferno's sh and mkfile syntax? (18:28:25) raphaelsc [~raphaelsc@201.78.103.174] entered the room. (19:10:18) leetspete: powerman-asdf: 'setf make' is 90% working, except the variables and some targets. I don't know of one for the shell, though. (19:11:24) powerman-asdf: for the shell I'm using rc's syntax, but it also only 90% working (${split ...} break it, etc.) (19:12:48) powerman-asdf: anyway. I'll try to learn vim syntax file's syntax and implement them both. :-/ (19:21:42) leetspete: It's a scary syntax...be careful... (19:22:06) powerman-asdf: it's not scary. just feature rich a.k.a. complicated (19:22:17) raphaelsc left the room (quit: Quit: Leaving). (19:22:26) powerman-asdf: been there, done that. many years passed, forget everything :) (20:00:14) raphaelsc [~raphaelsc@201-78-103-174.user.veloxzone.com.br] entered the room. (20:02:49) jbrhee [~jess@76.91.33.110] entered the room. (20:57:24) The account has disconnected and you are no longer in this chat. You will automatically rejoin the chat when the account reconnects.