Conversation with #inferno at Mon Dec 6 02:31:38 2010 on powerman-asdf@irc.freenode.net (irc) (02:35:36) finn472 left the room (quit: Quit: leaving). (02:47:31) dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] entered the room. (03:37:07) dreadlorde left the room (quit: Ping timeout: 240 seconds). (03:47:29) anth_r left the room (quit: Ping timeout: 260 seconds). (06:16:38) hotaru2k3 [debian-tor@gateway/tor-sasl/hotaru2k3] entered the room. (06:21:20) anth [~a@cpe-76-190-129-110.neo.res.rr.com] entered the room. (06:35:49) anth left the room (quit: Quit: anth). (06:45:22) anth [~a@cpe-76-190-129-110.neo.res.rr.com] entered the room. (07:16:30) hotaru2k3 left the room (quit: Ping timeout: 245 seconds). (07:18:12) hotaru2k3 [debian-tor@gateway/tor-sasl/hotaru2k3] entered the room. (07:19:06) hotaru2k3 left the room (quit: Remote host closed the connection). (07:20:15) hotaru2k3 [debian-tor@gateway/tor-sasl/hotaru2k3] entered the room. (07:37:20) hotaru2k3 left the room (quit: Ping timeout: 245 seconds). (07:41:08) hotaru2k3 [debian-tor@gateway/tor-sasl/hotaru2k3] entered the room. (08:43:37) Gegemon [~ynv@mx1.airis.ru] entered the room. (09:03:52) robot12 [~kazzhilki@proxy10.ts.fujitsu.com] entered the room. (10:02:20) hotaru2k3 left the room (quit: Ping timeout: 245 seconds). (10:03:29) hotaru2k3 [debian-tor@gateway/tor-sasl/hotaru2k3] entered the room. (10:19:02) bvalek2 [c3e41404@gateway/web/freenode/ip.195.228.20.4] entered the room. (11:41:02) fdd [~algol@unaffiliated/fdd] entered the room. (13:38:06) finn472 [~finn472@p4FE8867B.dip0.t-ipconnect.de] entered the room. (14:00:01) finn472 left the room (quit: Quit: leaving). (14:04:40) finn472 [~finn472@p4FE8867B.dip0.t-ipconnect.de] entered the room. (15:48:10) hotaru2k3 left the room (quit: Ping timeout: 245 seconds). (15:54:55) hotaru2k3 [debian-tor@gateway/tor-sasl/hotaru2k3] entered the room. (16:08:10) finn472 left the room (quit: Quit: leaving). (16:30:39) fdd left the room (quit: Quit: 10100011010101000011100101.00.). (16:31:00) robot12 left the room. (16:57:05) Gegemon left the room (quit: Quit: Leaving.). (17:23:29) finn472 [~finn472@p4FE8867B.dip0.t-ipconnect.de] entered the room. (17:24:50) hotaru2k3 left the room (quit: Ping timeout: 245 seconds). (18:42:57) bvalek2 left the room (quit: Quit: Page closed). (19:24:24) Fish [~Fish@coss6.exosec.net] entered the room. (19:25:03) Fish left the room (quit: Client Quit). (20:16:09) bvalek2 [5985141d@gateway/web/freenode/ip.89.133.20.29] entered the room. (20:16:50) powerman: it's funny, in limbo exception block works fine for loops, but not allowed for functions: (20:17:11) powerman: ok: for(;;){…}exception{…} (20:17:27) powerman: not ok: somefunc(){…}exception{…} (20:18:28) powerman: probably it would be nice extension for limbo to allow this syntax (20:18:32) anth: something about that doesn't seem right to me. (20:18:43) anth: lemme check some code... (20:22:20) anth: somefunc(){{realwork}exception{}} (20:22:49) anth: iirc. i'm pretty sure i did that, but i can't find it. (20:23:16) anth: (around the beginning of the year i updated a bunch of 3e-era code that used the old exception stuff to the new model) (20:34:40) anth: i definitely have a few like "somefunc(){ initializations { realwork } exception { handler } }" (20:47:37) powerman: yeah, I too. but, thing is, sometimes exceptions while "initialization" also must be handled. actually, in my code it's usual case, because somefunc() is usually thread, and when thread dies in production code we usually need some sort of handling - either restart that thread or kill overall emu (it will be automatically restarted by supervisor process) (20:48:16) powerman: this lead us to "somefunc(){ { initializations; realwork } exception { handler } }" (20:48:58) powerman: and I see no reason to not write it in way similar to allowed for loops: "somefunc(){ initializations; realwork } exception { handler }" (20:50:20) powerman: when somefunc() is a thread, such exception block looks very clear as handler for destroyed thread (21:25:14) anth: oh, it's certainly clearer in the "for" case. but i can see the reason for the restriction (or guess at one, anyway) (21:41:48) powerman: anth: and? which one possible reason you see? (21:42:24) anth: cleaner parsing. when you're declaring a function, that isn't where the flow is. compare: (21:42:45) anth: while() { (21:42:46) anth: do some work (21:42:46) anth: } exception { (21:42:46) anth: handle exception (21:42:46) anth: } (21:43:09) anth: your flow control is going straight through statements - it hits the while, then the body, then the exception. (21:43:18) anth: somefunc() { (21:43:19) anth: do some work (21:43:19) anth: } # definition ends; control isn't here (21:43:27) anth: flow control is wherever the function's being called from. (21:44:25) anth: "flow control" isn't really right (i'm dealing with an ethernet flow control issue right now) but you know what i mean. (21:44:47) powerman: you mean 'ret' (as asm term)? (21:45:49) powerman: in language syntax there no difference - "while" replaced by "somefunc", that's it (21:46:50) powerman: and actually exception handler for usual blocks and overall functions looks more clear than exception block for loops - because at a glance it doesn't clear is loop will continue after handling exception (21:47:31) powerman: and doesn't clear is exception handler will handle exceptions which may happens in loop expressions (;;) (22:25:33) Fish [~Fish@9fans.fr] entered the room. (23:01:19) hotaru2k3 [debian-tor@gateway/tor-sasl/hotaru2k3] entered the room. (23:23:55) bvalek2 left the room (quit: Quit: Page closed). (23:49:00) Fish left the room (quit: Quit: So Long, and Thanks for All the Fish). (23:57:21) hotaru2k3 left the room (quit: Remote host closed the connection). (00:02:56) mjl-_: hi guys (00:02:59) mjl-_: some early code: (00:03:01) mjl-_: http://www.ueber.net/who/mjl/tmp/vixen0.tgz (00:03:08) hotaru2k3 [debian-tor@gateway/tor-sasl/hotaru2k3] entered the room. (00:03:18) mjl-_: that isn't finished yet, but i'm using it now for editing in inferno (00:03:26) mjl-_ is now known as mjl- (00:06:41) mjl-: i just wanted to get it online. it's not finished yet, and the README points to an url that doesn't exist yet. (00:07:51) mjl-: http://www.ueber.net/who/mjl/tmp/plumber.diff <- change i applied to my plumber to make vixen work a bit better with the plumber (00:08:54) mjl-: oh, vixen is vi for inferno btw (00:08:57) mjl-: off to bed now, o/~~ (00:42:01) anth: why do you need a mips interpreter in inferno? won't that be kinda slow? (01:41:35) finn472 left the room (quit: Quit: leaving). (02:00:04) vpm left the room (quit: Ping timeout: 250 seconds). (02:31:23) The account has disconnected and you are no longer in this chat. You will be automatically rejoined in the chat when the account reconnects.