Conversation with #inferno at Tue Sep 25 00:55:14 2012 on powerman-asdf@irc.freenode.net (irc) (01:07:41) pseud0cod3r [~jpi@unaffiliated/pseud0cod3r] entered the room. (01:09:16) `jpi left the room (quit: Ping timeout: 246 seconds). (01:09:17) raphaelsc left the room (quit: Ping timeout: 246 seconds). (01:09:25) Aram left the room (quit: Quit: .). (01:10:02) raphaelsc [~raphaelsc@187-127-53-4.user.veloxzone.com.br] entered the room. (01:24:39) ecelis left the room (quit: Ping timeout: 268 seconds). (01:24:42) ecelis_ [ecelis@iceland.sdf.org] entered the room. (01:49:28) raphaelsc left the room (quit: Ping timeout: 246 seconds). (02:01:16) ecelis [ecelis@iceland.sdf.org] entered the room. (02:02:05) ecelis_ left the room (quit: Ping timeout: 252 seconds). (02:20:53) redblue [whois@24-230-226-60.tr.cgocable.ca] entered the room. (02:35:59) KBme [~KBme@2001:470:cabe:dead:beef:feed:dead:beef] entered the room. (02:36:55) KBme_ left the room (quit: Remote host closed the connection). (02:45:43) hotaru2k3 [~hotaru@gateway/tor-sasl/hotaru2k3] entered the room. (02:47:45) raphaelsc [~raphaelsc@187-127-53-4.user.veloxzone.com.br] entered the room. (03:50:57) hotaru2k3 left the room (quit: Ping timeout: 276 seconds). (03:56:34) anth_r [none@adsl-99-40-132-129.dsl.bcvloh.sbcglobal.net] entered the room. (04:00:31) hotaru2k3 [~hotaru@gateway/tor-sasl/hotaru2k3] entered the room. (04:29:35) yshurik left the room (quit: Quit: Leaving.). (06:28:58) hotaru2k3 left the room (quit: Quit: ChatZilla 0.9.88.2 [Firefox 14.0/20120619191901]). (06:33:19) Tekk_ [~danny@gateway/tor-sasl/tekk/x-63005509] entered the room. (06:36:27) Tekk_: Is there an actual up to date limbo tk resource anywhere? I was following Descent into Limbo but not even the tk hello world program doesn't compile, complaining about mismatched types between context.screen when it wants a display. I tried a shot in the dark and changed it to context.display, but then my windows wouldn't map :/ (06:36:45) Tekk_: so that's apparently not the right answer (06:39:24) leetspete: Tekk_: Funny you should mention it, I've recently been doing Limbo/Tk. The answer to your question actually depends on how well you know Tk. (06:40:01) Tekk_: leetspete: afraid I don't :/ (06:40:04) leetspete: If you're good with Tk, I'd recommend just looking over some of the sources. (06:40:10) Tekk_: limbo is my first experience with it (06:40:23) leetspete: Same here, actually. (06:40:52) Tekk_: if I had to guess, there was just some update somewhere along the way where "update" won't actually map a window? (06:41:02) Tekk_: which means there's some command I'm missing (06:41:08) leetspete: I basically just worked through a few Tk tutorials on the web, since Tk is Tk (modulo its bridge to Limbo). (06:41:48) leetspete: Update doesn't map a window? That sounds odd. You mean, the window doesn't show up? Everything's packed, no errors came bacK? (06:42:20) Tekk_: yeah, not seeing any errors in my rc window, everything's all packed, nothing shows (06:44:11) leetspete: And--also I am really sorry if this is trivial stuff that you already do--you're checking the return value of tk->cmd? Also, calling tk->onscreen(), I think, let me check... (06:44:58) Tekk_: odd (06:45:03) leetspete: Ah, what I'm doing is tkclient->onscreen(t, nil); (06:45:03) Tekk_: tk->onscreen apparently doesn't exist (06:47:34) leetspete: Sorry for the omission; I'm using tkclient as well. tk's update command doesn't talk to the window manager to get the window onto the screen; I'm not actually sure how that works without tkclient. (06:47:47) Tekk_: it doesn't, apparently :) (06:47:54) leetspete: haha (06:48:46) Tekk_: do you know what tkclient's type is in limbo? (06:48:59) Tekk_: (assuming it's another import/declare) (06:49:36) leetspete: Yeah. include "tkclient.m"; tkclient: Tkclient; (06:49:52) Tekk_: okay, no capitalization on client (06:50:43) leetspete: Yeah, I make that mistake a lot. I'm used to underscores or camel-case, not initial caps. So I'm constantly doing "TkClient", "ReadDir", etc. (06:50:52) Tekk_: yeah (06:52:47) raphaelsc: leetspete: Today I was implementing my kernel's memory management, and it's pretty cool =) (06:53:17) Tekk_: weird (06:53:23) leetspete: raphaelsc: Cool. (06:53:31) Tekk_: leetspete: does tkclient have to be installed separately or is it in the base? I'm getting module not loaded errors (06:53:41) raphaelsc: leetspete, btw, utroz here =) (06:53:58) leetspete: raphaelsc: I guessed. :) (06:54:09) raphaelsc: hehe (06:54:22) Tekk_: have it included, made sure to tkclient: Tkclient, did tkclient = load Tkclient Tkclient->PATH; (06:54:41) leetspete: Tekk_: That was the next question. Hm... (06:56:14) leetspete: Are you loading tk first, calling tkclient->init(), etc? (06:56:49) leetspete: raphaelsc, Tekk_: 'scuse me for a few minutes, going to run to the restroom and have a smoke. (06:57:51) raphaelsc: haha ok (06:58:23) Tekk_: tk is both included and initialized first. tkclient->init() after the initialization results in an error about dereferencing nil. (07:17:56) raphaelsc left the room (quit: Remote host closed the connection). (07:21:15) leetspete: Tekk_: Dang. Can you put the whole thing in a pastebin somewhere? (07:28:23) Tekk_: sure (07:29:16) Tekk_: just let me glance over it once more quickly (07:29:58) Tekk_: leetspete: http://dpaste.com/805560/ (07:34:43) leetspete: Tekk_: I think you don't want to call tk->toplevel if you're using tkclient. (07:35:18) Tekk_: ah, okay. I thought that tkclient would just be a controller or something (07:36:19) leetspete: Or perhaps you don't need to. (07:36:48) leetspete: Actually /appl/wm/date.b is what I used as a somewhat simple example when I was figuring out the mechanics. (07:37:20) Tekk_: thanks for the tip :) (07:38:08) leetspete: One thing is that you're getting your w from tk->toplevel. I'm not sure if it neglects to fill a couple of things in, but tkclient->toplevel returns two values, the toplevel and the control channel. (07:43:10) Tekk_: okay, I have it mapping :) (07:43:18) Tekk_: now I just need to convert to tkclient style events (07:43:34) leetspete: I think it's the usual chan of string stuff. (07:44:23) Tekk_: yeah, I just need to figure out the namechan equivalent (07:45:21) Tekk_: ah (07:45:31) leetspete: Oh, I think you still just call tk->namechan. At least, that works for me. (07:45:36) Tekk_: wait, nevvermind (07:45:54) Tekk_: oh, weird. I was getting compile errors before (07:45:59) Tekk_: I must have misread (07:46:51) leetspete: I just realized that I've been doing Tk like a barbarian. :P (07:46:59) leetspete: Look at code, pull out pieces, fiddle. (07:47:30) leetspete: Very unlike my usual method, haha. I wonder if I've been doing that because that's how I treat HTML. (07:48:01) leetspete: "It is graphics but I am not blitting. It must be magical nonsense." (07:48:34) Tekk_: well you do kind of blit, just pretend update is your blit (07:48:44) Tekk_: after that pretend it's magic ;) (07:49:29) leetspete: haha (08:04:53) Gegemon [~ynv@mx1.airis.ru] entered the room. (08:23:06) doublec: tk is the php of the gui world for me. I copy/paste snippets I find until things work. (08:34:44) pseud0cod3r left the room (quit: Quit: WeeChat 0.3.2). (08:35:32) `jpi [~jpi@unaffiliated/pseud0cod3r] entered the room. (09:55:24) yshurik [~Adium@193.69.63.210] entered the room. (10:36:26) Fish [~Fish@rue92-7-88-164-188-181.fbx.proxad.net] entered the room. (12:01:24) fgudin left the room (quit: *.net *.split). (12:01:30) vpm left the room (quit: *.net *.split). (12:01:31) fgudin [fgudin@odin.sdf-eu.org] entered the room. (12:01:58) vpm [~vpm@blumenthal.vrinimi.int.eu.org] entered the room. (12:40:41) Aram [~aram@unaffiliated/aramdune] entered the room. (12:56:10) Aram left the room (quit: Quit: .). (13:02:38) Aram [~aram@unaffiliated/aramdune] entered the room. (14:23:53) yshurik left the room (quit: Quit: Leaving.). (14:50:01) yshurik [~Adium@161.223.34.95.customer.cdi.no] entered the room. (15:35:30) anth_x: "It is graphics but I am not blitting.  It must be magical nonsense." —awesome. :-) (16:56:05) Gegemon left the room (quit: Quit: Leaving.). (17:46:07) acmeuser [~acmeuser@173.229.1.78] entered the room. (17:46:07) acmeuser left the room. (19:50:55) raphaelsc [~raphaelsc@187-127-53-4.user.veloxzone.com.br] entered the room. (21:07:09) Tekk_: there a way to run limbo out of the inferno vm, directly on linux? (21:07:40) Tekk_: I can kinda run dis bytecodes by using emu and then the path relative to the emulator's root, but that doesn't seem too clean (21:17:52) leetspete: doublec, anth_x: Things of Truth. (21:18:19) leetspete: Tekk_: You can use '#U*' (21:18:56) leetspete: That's a little ugly (semi-intentionally, according to CF), but it gets you the host's filesystem. (21:19:49) leetspete: lc '#U*/' (21:19:55) leetspete: For example. (21:21:11) leetspete: As far as just running a .dis directly, I suspect that you can use Linux's alternative executable support, but I've never tried that. (21:21:41) Tekk_: oh, cool. thanks (21:21:56) Tekk_: actually native .dis sounds like it could be a cool project if I ever wanted to get into linux development (21:22:32) leetspete: Well, it wouldn't be quite native per se. (21:23:01) Fish left the room (quit: Ping timeout: 246 seconds). (21:23:13) Tekk_: native in that linux can execute it directly, not as in translation to native code ;) (21:23:20) leetspete: One second, digging up docs. (21:23:33) Tekk_: no thanks, don't worry about it too much.