Conversation with #inferno at Sat May 7 20:55:06 2011 on powerman-asdf@irc.freenode.net (irc) (00:00:55) Fish- left the room (quit: Quit: So Long, and Thanks for All the Fish). (00:46:09) cbj [cbj@192.94.73.15] entered the room. (00:46:22) cbj left the room (quit: Client Quit). (09:33:58) bvalek2 [59851514@gateway/web/freenode/ip.89.133.21.20] entered the room. (13:37:56) powerman-asdf: is it possible to copy array into new variable in single command, like we can create new array? i.e. replace two last commands in this example with single command? (13:37:56) powerman-asdf: a := array[] of { 1, 2, 3 }; (13:37:56) powerman-asdf: b := array[len a] of int; (13:37:56) powerman-asdf: b[:] = a; (13:43:34) mjl-: powerman-asdf: not that i know (13:46:42) Fish- [~Fish@9fans.fr] entered the room. (16:28:41) vsrinivas left the room (quit: Ping timeout: 240 seconds). (16:38:42) bvalek2 left the room (quit: Quit: Page closed). (16:49:52) powerman-asdf: mjl-: did you ever think about implementing sort of REPL for Limbo? (16:54:41) mjl-: powerman-asdf: yes, i've something for that once (16:54:52) mjl-: but it was a bit ugly, and i stopped using it pretty soon (16:54:55) mjl-: let me see if i still have it (16:55:43) mjl-: ah, found it (16:56:53) mjl-: http://www.ueber.net/who/mjl/tmp/limborun (17:06:09) powerman-asdf: I see, thanks. Ugly part is all about auto-detecting modules/imports/loads, but it can be hardcoded in default template (or in user's default "init/setup" file). And I think it may have sense to try to compile and run after entering each line (just append it to previous lines and silence "unused var" warnings). (17:06:09) powerman-asdf: Also I'm afraid this won't be really useful without ability to dump any variables like deb/stackv does. (17:08:29) powerman-asdf: I had idea to implement it as limbo app, but you probably right - it's better to run as host os command, to be able to input lines with full readline-able line editing and history. (22:27:11) fgudin left the room (quit: Ping timeout: 240 seconds). (22:33:49) vsrinivas [U2FsdGVkX1@batman.acm.jhu.edu] entered the room. (00:17:22) Fish- left the room (quit: Quit: So Long, and Thanks for All the Fish). (09:38:17) robot12 [~kazzhilki@proxy10.ts.fujitsu.com] entered the room. (10:36:52) KBme left the room (quit: Read error: Operation timed out). (10:37:46) KBme [~KBme@2001:470:cabe:666:666:666:666:666] entered the room. (12:51:26) powerman-asdf: i've finally figured out magic bash command to get rid of nasty "Killed" output on each emu exit: (12:51:26) powerman-asdf: sh -c 'emu /dev/stdout 2>/dev/stderr & wait &>/dev/null' (12:55:21) powerman-asdf: this works too: (12:55:21) powerman-asdf: sh -c 'emu /dev/null' (13:12:13) bvalek2 [58805a9d@gateway/web/freenode/ip.88.128.90.157] entered the room. (13:38:09) robot12 left the room (quit: Quit: Leaving.). (16:34:34) mjl- left the room (quit: Read error: Operation timed out). (16:48:05) powerman-asdf: is it possible to find out how many elements stored in buffered channel right now? (17:41:38) vsrinivas left the room (quit: Read error: Operation timed out). (17:43:12) vsrinivas [U2FsdGVkX1@batman.acm.jhu.edu] entered the room. (18:23:53) bvalek2 left the room (quit: Quit: Page closed). (19:43:38) uriel: powerman-asdf: have you seen: https://github.com/bradfitz/campher/ ? (19:44:21) powerman-asdf: uriel: no (19:48:32) wooster: whaaa (19:49:48) powerman-asdf: if Brad embed Perl interpreter into each Go thread, then Go doesn't have light threads anymore :) (19:50:56) powerman-asdf: if he use just one Perl interpreter per all Go threads - Perl will crash very early because it isn't really ready to be used in multithreaded environment (20:31:35) Fish- [~Fish@9fans.fr] entered the room. (23:04:36) eno left the room (quit: Read error: Operation timed out). (23:07:02) eno [~eno@adsl-70-137-136-61.dsl.snfc21.sbcglobal.net] entered the room. (23:07:02) eno left the room (quit: Changing host). (23:07:02) eno [~eno@nslu2-linux/eno] entered the room. (23:53:01) Fish- left the room (quit: Quit: So Long, and Thanks for All the Fish). (08:14:12) robot12 [~kazzhilki@proxy10.ts.fujitsu.com] entered the room. (08:34:55) bvalek2 [50bbd702@gateway/web/freenode/ip.80.187.215.2] entered the room. (09:10:12) Fish- [~Fish@9fans.fr] entered the room. (09:29:59) GriffenJBS left the room (quit: Read error: Operation timed out). (09:34:49) GriffenJBS [~john@adsl-184-32-139-132.mia.bellsouth.net] entered the room. (10:04:23) bvalek2 left the room (quit: Quit: Page closed). (10:56:49) mjl- [mjl@2001:960:7b2::e0e0:1] entered the room. (11:05:50) bvalek2 [578b44a9@gateway/web/freenode/ip.87.139.68.169] entered the room. (17:54:58) bvalek2 left the room (quit: Quit: Page closed). (18:06:43) robot12 left the room (quit: Quit: Leaving.). (19:20:54) powerman-asdf: hm. is anyone knows how file2chan implemented - is it use tcp connection to localhost or something like that? (19:22:14) powerman-asdf: thing is, sys->write() to no-op file2chan server took about 0.000035 sec, which looks very similar to `ping localhost` rtt on my system: (19:22:14) powerman-asdf: 64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.035 ms (19:33:50) powerman-asdf: that's about 70 times slower than transferring data using channels (19:34:27) powerman-asdf: (in similar to file2chan way - send request on one chan then receive reply on another chan) (19:58:46) Gagarin [~chatzilla@dslb-094-220-129-154.pools.arcor-ip.net] entered the room. (20:01:07) Gagarin: hi, just tryed to install inferno (on linux) but "dis/emuinit.dis" seems to be missing. Couldn't find with find. (20:02:27) Gagarin: The strange thing is that this errormessage is the only place "emuinit.dis" is in the strace log, so it seems emu does not even try to open this file. (20:13:14) powerman-asdf: Gagarin: if you using install from vitanuova site, then it's outdated and it's better to use latest from google code (20:13:52) powerman-asdf: after fetching from google code you'll have to compile it (so you'll need mercurial, gcc, etc.) (20:14:05) powerman-asdf: after that you'll have all needed files in place, including emuinit.dis (20:14:11) fgudin [~none@cl-370.mrs-01.fr.sixxs.net] entered the room. (20:14:54) Gagarin: i downloaded it from googlecode, but not the latest source, but the tarball. is that outdated aswell= (20:15:32) powerman-asdf: yep :) it's from 2009, as noted in it's description (20:16:18) Gagarin: oops, yes it see it. Why don't they remove it? It just confuses people like me (20:17:56) Gagarin: BTW: I completly new to inferno. The windowssystem looks very diffrent to rio. Is it network-transparent aswell? (20:53:05) Fish-: the window manager is not very good (20:53:51) Gagarin: does it even have a name, or just "wm"? (20:53:57) Fish-: wm (20:54:04) Gagarin: ok (21:17:55) goozbach: here's one that is difficult to google for (21:18:10) goozbach: I have inferno running hosted on a linux box (21:18:38) goozbach: I'm trying to export /tftpboot (from the linux box) via styx. (21:18:53) goozbach: so I've fired off the styxlisten command from the emu command line (21:19:05) goozbach: what I can't seem to find is how to mount it on the plan9 side (21:21:27) goozbach: isn't it as easy as "mount net!somehost!564 /somewhere"? (21:41:02) powerman-asdf: goozbach: you may have trouble because of auth (21:43:01) powerman-asdf: and try listen+export instead of styxlisten: listen -A 'tcp!*!styx' {export /tftpboot &} (21:54:35) goozbach: those both go on the same line? (21:56:25) goozbach: powerman-asdf: should I use import or mount or bind on the plan9 side? (21:58:12) powerman-asdf: goozbach: yep, it's single command (21:58:45) powerman-asdf: as for plan9 - i've no idea, never used it. surely not bind. (22:03:18) Gagarin: is it possilbe in the infernoshell to make a recusive call? (22:04:20) Gagarin: played a bit around and tryed to implement the ackermann function ack witch calls itself. all i get is "builtin ack not found" (22:13:56) powerman-asdf: ; fn a { a; } (22:13:56) powerman-asdf: ; a (22:14:10) powerman-asdf: [and it hangs, so it probably works :)] (22:16:02) Gagarin: ok, thanks, proably there is a diffrent mistake (22:17:37) Gagarin: http://pastebin.ca/2056405 This is my very first pice of inferno shell code. any idears? (22:48:07) vsrinivas left the room (quit: Quit: leaving). (23:10:04) Gagarin left the room (quit: Remote host closed the connection). (00:27:53) Fish- left the room (quit: Quit: So Long, and Thanks for All the Fish). (02:55:41) goozbach left the room (quit: Ping timeout: 276 seconds). (02:56:40) goozbach [~goozbach@kessel.friocorte.com] entered the room. (03:22:33) goozbach left the room (quit: Ping timeout: 240 seconds). (03:52:29) KBme left the room (quit: Ping timeout: 264 seconds). (03:55:55) goozbach [~goozbach@kessel.friocorte.com] entered the room. (04:00:35) goozbach left the room (quit: Read error: Operation timed out). (04:01:52) KBme [~KBme@2001:470:cabe:666:666:666:666:666] entered the room. (04:04:30) goozbach [~goozbach@kessel.friocorte.com] entered the room. (04:08:57) goozbach left the room (quit: Ping timeout: 240 seconds). (04:11:15) goozbach [~goozbach@kessel.friocorte.com] entered the room. (05:40:14) KBme left the room (quit: Read error: Operation timed out). (06:13:23) KBme [~KBme@2001:470:cabe:666:666:666:666:666] entered the room. (07:47:36) robot12 [~kazzhilki@proxy10.ts.fujitsu.com] entered the room. (09:56:17) bvalek2 [578b44a9@gateway/web/freenode/ip.87.139.68.169] entered the room. (11:17:14) fgudin left the room (quit: Ping timeout: 248 seconds). (14:15:01) powerman-asdf: I've some complex chan type, like "chan of … of … of …" and I've defined own type using "C: type chan of … of … …". Now I can use type C when describing function params, but how to use it to create new chan of that type? "c := C;" doesn't work, "c := C();" doesn't work too, and there are no "make" operator like in Go… (17:12:41) bvalek2 left the room (quit: Quit: Page closed). (17:15:13) robot12 left the room (quit: Quit: Leaving.). (20:03:39) fgudin [~none@digi00070.digicube.fr] entered the room. (20:45:54) Fish- [~Fish@9fans.fr] entered the room. (23:41:00) acmeuser [~acmeuser@h-74-0-107-130.nycmny83.static.covad.net] entered the room. (23:41:28) acmeuser left the room (quit: Remote host closed the connection). (00:26:20) Fish- left the room (quit: Quit: So Long, and Thanks for All the Fish). (01:51:05) vpm left the room (quit: Ping timeout: 276 seconds). (02:59:42) vpm [~vpm@reverse-94.fdn.fr] entered the room. (06:36:26) vpm left the room (quit: Ping timeout: 276 seconds). (07:14:30) vpm [~vpm@reverse-94.fdn.fr] entered the room.