--- Log opened Mon Oct 04 00:00:00 2010 --- Day changed Mon Oct 04 2010 00:00 < exch> And then just do some guess work as to which one to use. Easy enough if there's only one ethernet card. For multiple interfaces, I'll just add an option to have the user explicitly specify which interface to use 00:00 < Rennex> well, that'll probably work for hostnames that do resolve to multiple addresses, but again it's probably a dead end because the own hostname typically just points to loopback 00:00 < exch> fair enough 00:00 < Rennex> you do know that for listening sockets 0.0.0.0 listens on all of them, right? :) 00:01 < Rennex> all interfaces i mean 00:01 < exch> yea I do. But I need the actual address 00:01 < exch> Or find a different way to deal with NAT client resolution 00:06 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 00:06 < Rennex> seems to me that finding out the IPs of the interfaces is platform-dependent 00:06 < exch> yup 00:07 < Rennex> and often missing in other multiplatform languages too :) 00:19 < exch> mm I could use the hostname itself. Not sure how reliable that is though. It doesnt have to be unique within a lan network 00:19 < exch> In essence, I need a way to identify the source of UDP packets coming from potentially multiple clients behind the same public IP. 00:20 < exch> the port number can not be used, because some NAT routers randomly reassign those (UDP is connectionless, so this is perfectly acceptable behaviour) 00:21 < exch> My original plan was to use the least significant 2 bytes of the local LAN IP. eg '192.168.2.102' -> 2 and 102 00:21 < exch> But that requires me to actually know what it is :) 00:22 < exch> A simple 'random' session key embedded in the UDP packets is another option, but that adds a considerable amount of overhead 00:27 -!- jdp [PHUNK@24.238.32.162.res-cmts.segr.ptd.net] has quit [] 00:40 -!- nickaugust [~nickaugus@199.228.121.70.cfl.res.rr.com] has joined #go-nuts 00:42 -!- nictuku [~nictuku@cetico.org] has joined #go-nuts 00:43 < Tv> exch: listen on 0.0.0.0 and ask for the address of that? 00:43 < Tv> exch: i happily use netchan.NewExporter("tcp", "0.0.0.0:0") and pass the .Addr() of that to others 00:44 < exch> hmm. I'll give that a try 00:44 < Rennex> exch: hmm, afaik if you connect() a udp socket to some ip, the socket's own address will be one that would be used to send packets to that network 00:44 < Tv> yeah 00:45 < exch> the .Addr() yields only 1 address though. Will that always be the non-loopback one? 00:46 < exch> provided it's available ofcourse 00:46 < Tv> exch: Go has no influence on that, so you're at the OS's mercy 00:49 < exch> hmm. conn.LocalAddr() yields "[::]:1234" That's not very helpful 00:49 < Tv> exch: what are you connecting *to*? 00:50 < exch> UDP doesn't connect to anything. There's just a socket listening for incoming data 00:50 < Tv> you *can* connect one 00:50 < Tv> it acts as a default destination 00:51 < Soultaker> it also filters incoming traffic iirc? 00:51 < Tv> basically, the OS is saying it's not picking a source address until you connect somewhere 00:51 < exch> hm 00:51 < Tv> btw i realized my earlier netchan .Addr mention isn't valid; i've only done it on one machine :( 00:52 < exch> ah now this is better. ListenUDP() doesnt yield anything useful. DialUDP() to some remote server does 00:53 < exch> conn.LocalAddr() = "192.168.2.101:58614" 00:53 < exch> nice, thanks 01:11 -!- cenuij [~cenuij@93.26.136.97] has joined #go-nuts 01:11 -!- cenuij [~cenuij@93.26.136.97] has quit [Changing host] 01:11 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts 01:12 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 01:15 < scyth> is it possible to convert int to []byte and vice versa? 01:15 < exch> scyth: either use the encoding/binary package, or do it manually with some bitfiddling 01:20 < scyth> exch, encoding/binary will do it, thanks 01:24 -!- ronnyy [~quassel@p4FF1DE94.dip.t-dialin.net] has joined #go-nuts 01:25 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has left #go-nuts [] 01:25 -!- Bombe [~droden@freenet/developer/Bombe] has quit [Excess Flood] 01:25 -!- Bombe [~droden@weltgehirnmaschine.de] has joined #go-nuts 01:29 -!- scyth [~scyth@rots.in.rs] has quit [Quit: Leaving] 01:42 -!- jserver [~jserver@pool-71-167-243-229.nycmny.east.verizon.net] has left #go-nuts [] 01:54 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined #go-nuts 02:09 -!- ronnyy [~quassel@p4FF1DE94.dip.t-dialin.net] has quit [Remote host closed the connection] 02:26 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 02:27 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined #go-nuts 02:59 -!- k0re [k0re@we.will.never-be.afraid.org] has quit [Ping timeout: 240 seconds] 03:00 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds] 03:12 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Remote host closed the connection] 03:34 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 03:40 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 03:56 -!- eikenberry [~jae@ivanova.zhar.net] has quit [Quit: End of line.] 03:56 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping timeout: 264 seconds] 03:57 -!- iant [~iant@216.239.45.130] has joined #go-nuts 03:57 -!- mode/#go-nuts [+v iant] by ChanServ 03:57 -!- nickaugust [~nickaugus@199.228.121.70.cfl.res.rr.com] has quit [Ping timeout: 240 seconds] 04:07 < plexdev> http://is.gd/fJqZr by [Alex Brainman] in go/ -- add _testmain.go to .hgignore 04:07 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 04:12 -!- Bombe [~droden@weltgehirnmaschine.de] has quit [Changing host] 04:12 -!- Bombe [~droden@freenet/developer/Bombe] has joined #go-nuts 04:13 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts 04:35 -!- jhh [~jhh@f049170079.adsl.alicedsl.de] has joined #go-nuts 04:39 -!- emmanueloga [~emmanuelo@host52.190-30-10.telecom.net.ar] has joined #go-nuts 04:41 -!- emmanueloga [~emmanuelo@host52.190-30-10.telecom.net.ar] has quit [Excess Flood] 04:43 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Ping timeout: 255 seconds] 04:46 -!- Wiz126 [Wiz126@h62.126.232.68.ip.windstream.net] has quit [Ping timeout: 264 seconds] 04:47 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has quit [Ping timeout: 265 seconds] 04:47 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-190.clienti.tiscali.it] has joined #go-nuts 04:48 -!- enferex [~enferex@users.757.org] has quit [Ping timeout: 264 seconds] 04:48 -!- enferex [~enferex@users.757.org] has joined #go-nuts 04:51 -!- Wiz126 [Wiz126@h62.126.232.68.ip.windstream.net] has joined #go-nuts 04:51 -!- emmanueloga [~emmanuelo@190.244.15.163] has joined #go-nuts 04:54 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten. Desu~] 04:59 -!- ProNihil1st [~anathema@cpc4-cani1-0-0-cust597.14-2.cable.virginmedia.com] has joined #go-nuts 05:00 -!- ProNihilist [~anathema@cpc4-cani1-0-0-cust597.14-2.cable.virginmedia.com] has quit [Ping timeout: 265 seconds] 05:01 -!- scm [scm@d070054.adsl.hansenet.de] has quit [Ping timeout: 265 seconds] 05:02 -!- scm [scm@d071195.adsl.hansenet.de] has joined #go-nuts 05:05 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 05:19 -!- emmanueloga [~emmanuelo@190.244.15.163] has quit [Ping timeout: 252 seconds] 05:20 -!- emmanueloga [~emmanuelo@190.244.15.163] has joined #go-nuts 05:25 -!- emmanueloga [~emmanuelo@190.244.15.163] has quit [Excess Flood] 05:38 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 05:45 -!- sacho [~sacho@95-42-78-66.btc-net.bg] has quit [Quit: Ex-Chat] 06:04 -!- gnuvince1 [~vince@205.252-ppp.3menatwork.com] has joined #go-nuts 06:05 -!- aho [~nya@fuld-4d00d3c3.pool.mediaWays.net] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 06:08 -!- gnuvince_ [~vince@70.35.162.240] has quit [Ping timeout: 276 seconds] 06:15 -!- gnuvince1 [~vince@205.252-ppp.3menatwork.com] has quit [Ping timeout: 265 seconds] 06:17 -!- gnuvince_ [~vince@70.35.161.113] has joined #go-nuts 06:20 -!- Zoopee [alsbergt@zoopee.org] has quit [Read error: Connection reset by peer] 06:35 -!- tasosos [~tasosos@178.128.6.12.dsl.dyn.forthnet.gr] has joined #go-nuts 06:36 -!- XenoPhoenix [xenophoeni@silenceisdefeat.com] has quit [Ping timeout: 252 seconds] 06:36 -!- XenoPhoenix [xenophoeni@silenceisdefeat.com] has joined #go-nuts 06:37 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has quit [Read error: Connection reset by peer] 06:37 -!- Altercato [~Altercati@ogygia.ethanschoonover.com] has joined #go-nuts 06:37 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has quit [Ping timeout: 252 seconds] 06:38 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has joined #go-nuts 06:39 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts 06:40 -!- ucasano [~ucasano@95.231.79.71] has joined #go-nuts 06:41 < plexdev> http://is.gd/fJD20 by [Alex Brainman] in 3 subdirs of go/src/pkg/ -- os: make tests work on windows 06:42 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts 06:45 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has joined #go-nuts 07:07 -!- tasosos_ [~tasosos@79.103.42.168.dsl.dyn.forthnet.gr] has joined #go-nuts 07:07 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout: 265 seconds] 07:09 -!- tasosos [~tasosos@178.128.6.12.dsl.dyn.forthnet.gr] has quit [Read error: Operation timed out] 07:11 -!- tasosos_ [~tasosos@79.103.42.168.dsl.dyn.forthnet.gr] has left #go-nuts [] 07:11 -!- tasosos_ [~tasosos@79.103.42.168.dsl.dyn.forthnet.gr] has joined #go-nuts 07:11 -!- tasosos_ [~tasosos@79.103.42.168.dsl.dyn.forthnet.gr] has left #go-nuts [] 07:11 -!- tasosos [~tasosos@79.103.42.168.dsl.dyn.forthnet.gr] has joined #go-nuts 07:17 -!- tasosos [~tasosos@79.103.42.168.dsl.dyn.forthnet.gr] has quit [Remote host closed the connection] 07:17 -!- Fish9 [~Fish@86.65.182.207] has joined #go-nuts 07:23 -!- photron [~photron@port-92-201-83-215.dynamic.qsc.de] has joined #go-nuts 07:23 < ucasano> hi 07:23 < ucasano> I am trying to compile a go program 07:24 < ucasano> friday it worked fine 07:24 < ucasano> today, after go upgrade in the weekend 07:24 < ucasano> it is not working anymore 07:24 < ucasano> I always get the following: 07:24 < ucasano> Makefile:1: /Users/giovanni/go/src/Make.386: No such file or directory 07:24 < ucasano> any ideas? 07:25 < ucasano> Make.386 does not exist in go/src tree 07:25 -!- emmanueloga [~emmanuelo@190.244.15.163] has joined #go-nuts 07:39 -!- prip [~foo@host36-126-dynamic.36-79-r.retail.telecomitalia.it] has quit [Read error: Connection reset by peer] 07:40 -!- prip [~foo@host36-126-dynamic.36-79-r.retail.telecomitalia.it] has joined #go-nuts 07:52 -!- ronnyy [~quassel@p4FF1C944.dip.t-dialin.net] has joined #go-nuts 08:05 -!- ikaros [~ikaros@188.107.212.174] has joined #go-nuts 08:08 -!- photron [~photron@port-92-201-83-215.dynamic.qsc.de] has quit [Ping timeout: 264 seconds] 08:08 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 08:13 -!- tasosos [~tasosos@79.103.42.168.dsl.dyn.forthnet.gr] has joined #go-nuts 08:15 -!- emmanueloga [~emmanuelo@190.244.15.163] has quit [Ping timeout: 276 seconds] 08:18 -!- emmanueloga [~emmanuelo@190.244.15.163] has joined #go-nuts 08:21 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts 08:23 -!- emmanueloga [~emmanuelo@190.244.15.163] has quit [Quit: WeeChat 0.3.3-dev] 08:29 -!- peterdn [~peterdn@dhcp-110-228.new.ox.ac.uk] has joined #go-nuts 08:49 -!- wrtp [~rog@92.17.34.115] has joined #go-nuts 08:49 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined #go-nuts 08:50 -!- fabled [~fabled@xdsl-83-150-94-238.nebulazone.fi] has quit [Ping timeout: 240 seconds] 08:57 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 08:58 -!- Robbo_ [~robbo@CPE-58-166-67-209.lnse5.cht.bigpond.net.au] has quit [Remote host closed the connection] 09:00 -!- sacho [~sacho@ip-6-190.interbild.net] has joined #go-nuts 09:03 -!- fabled [~fabled@xdsl-83-150-94-237.nebulazone.fi] has joined #go-nuts 09:12 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 276 seconds] 09:13 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving] 09:18 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 09:33 -!- ikaros_ [~ikaros@188.107.214.200] has joined #go-nuts 09:35 -!- ikaros [~ikaros@188.107.212.174] has quit [Read error: Operation timed out] 09:35 -!- sacho [~sacho@ip-6-190.interbild.net] has quit [Quit: Ex-Chat] 09:38 -!- ucasano [~ucasano@95.231.79.71] has quit [Read error: Connection reset by peer] 09:38 -!- ucasano_ [~ucasano@95.231.79.71] has joined #go-nuts 09:50 -!- gmurphy [~gmurphy@203-206-29-72.dyn.iinet.net.au] has joined #go-nuts 09:57 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Read error: Connection reset by peer] 09:58 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts 10:00 -!- gmurphy [~gmurphy@203-206-29-72.dyn.iinet.net.au] has left #go-nuts [] 10:00 < plexdev> http://is.gd/fJT7b by [Rob Pike] in go/src/pkg/fmt/ -- fmt: allow %d on []byte 10:01 -!- snacks [~gmurphy@203-206-29-72.dyn.iinet.net.au] has joined #go-nuts 10:02 -!- snacks [~gmurphy@203-206-29-72.dyn.iinet.net.au] has left #go-nuts [] 10:03 -!- gmurphy [~gmurphy@203-206-29-72.dyn.iinet.net.au] has joined #go-nuts 10:05 -!- gmurphy [~gmurphy@203-206-29-72.dyn.iinet.net.au] has left #go-nuts [] 10:06 -!- gmurphy [~gmurphy@203-206-29-72.dyn.iinet.net.au] has joined #go-nuts 10:14 -!- gmurphy [~gmurphy@203-206-29-72.dyn.iinet.net.au] has quit [Quit: Laters] 10:17 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 264 seconds] 10:18 -!- scyth [~scyth@zeljko.eunet.rs] has joined #go-nuts 10:24 -!- ikaros_ [~ikaros@188.107.214.200] has quit [Quit: Leave the magic to Houdini] 10:27 -!- ikaros [~ikaros@188.107.214.200] has joined #go-nuts 10:34 -!- yihuang [~yihuang@183.17.161.215] has joined #go-nuts 10:35 -!- yihuang [~yihuang@183.17.161.215] has left #go-nuts [] 10:40 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Read error: Connection reset by peer] 10:40 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts 10:47 -!- mduft [~mduft@gentoo/developer/mduft] has quit [Remote host closed the connection] 10:48 -!- mduft [~mduft@gentoo/developer/mduft] has joined #go-nuts 11:01 -!- ucasano_ [~ucasano@95.231.79.71] has quit [Ping timeout: 276 seconds] 11:05 -!- ikaros [~ikaros@188.107.214.200] has quit [Quit: Leave the magic to Houdini] 11:18 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Ping timeout: 265 seconds] 11:18 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 11:21 -!- yihuang [~yihuang@183.17.161.215] has joined #go-nuts 11:21 -!- yihuang [~yihuang@183.17.161.215] has quit [Client Quit] 11:29 -!- welterde [welterde@thinkbase.srv.welterde.de] has quit [Excess Flood] 11:33 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Read error: Connection reset by peer] 11:35 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts 11:41 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Read error: No route to host] 11:42 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts 11:43 -!- welterde [welterde@thinkbase.srv.welterde.de] has joined #go-nuts 11:48 -!- artefon [~thiago@189.59.162.141] has joined #go-nuts 11:49 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 11:57 -!- emmanueloga [~emmanuelo@190.244.15.163] has joined #go-nuts 12:06 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts 12:11 -!- artefon [~thiago@189.59.162.141] has quit [Quit: bye] 12:16 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined #go-nuts 12:20 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving] 12:20 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has quit [Ping timeout: 240 seconds] 12:22 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has joined #go-nuts 12:25 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts 12:32 -!- tasosos [~tasosos@79.103.42.168.dsl.dyn.forthnet.gr] has quit [Ping timeout: 255 seconds] 12:37 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 12:43 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 12:44 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined #go-nuts 12:44 -!- tasosos [~tasosos@79.103.7.89.dsl.dyn.forthnet.gr] has joined #go-nuts 12:44 -!- prip [~foo@host36-126-dynamic.36-79-r.retail.telecomitalia.it] has quit [Ping timeout: 276 seconds] 12:51 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection reset by peer] 12:52 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has joined #go-nuts 12:53 -!- skejoe [~skejoe@188.114.142.231] has quit [Read error: Operation timed out] 12:53 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts 12:55 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts 12:57 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 12:57 -!- prip [~foo@host247-125-dynamic.36-79-r.retail.telecomitalia.it] has joined #go-nuts 12:59 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it] has joined #go-nuts 13:01 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Ping timeout: 245 seconds] 13:04 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts 13:06 -!- ronnyy [~quassel@p4FF1C944.dip.t-dialin.net] has quit [Remote host closed the connection] 13:09 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Quit: No Ping reply in 180 seconds.] 13:12 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined #go-nuts 13:14 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts 13:14 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving] 13:18 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 264 seconds] 13:21 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Remote host closed the connection] 13:31 -!- drhodes [~none@207.3.149.84] has quit [Ping timeout: 265 seconds] 13:38 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 13:40 -!- sacho [~sacho@95-42-78-66.btc-net.bg] has joined #go-nuts 13:55 -!- DerHorst [~Horst@e176108158.adsl.alicedsl.de] has joined #go-nuts 14:05 -!- aho [~nya@fuld-4d00d326.pool.mediaWays.net] has joined #go-nuts 14:08 < adg> ucasano: you need to update those makefiles 14:09 < ucasano> hi, I already did it 14:09 < ucasano> now everything works fine 14:09 < ucasano> thanks 14:09 < ucasano> but I saw many go modules (i.e. gomysql from github) 14:09 < adg> ood :) 14:10 < ucasano> do not changed makefiles, yet :( 14:10 < adg> old unmaintained stuff is broken 14:10 < adg> go-musql-client-library is up to date 14:11 < adg> and looks like a good implementation 14:19 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 14:22 -!- kevinwat1 [kevin@59-125-147-75.HINET-IP.hinet.net] has left #go-nuts [] 14:22 -!- kevinwatt [kevin@59-125-147-75.HINET-IP.hinet.net] has joined #go-nuts 14:26 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 14:51 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 14:56 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts 14:56 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving] 15:04 -!- artefon [~thiago@dhcp49.usuarios.dcc.ufmg.br] has joined #go-nuts 15:05 -!- DerHorst [~Horst@e176108158.adsl.alicedsl.de] has quit [Remote host closed the connection] 15:09 < scyth> in an event driven server app, would it be faster to have dedicated goroutine which loops on read from channel of type *DataFrame (which holds connection details too) and on each read to do the actual write on connection, or is it faster to call writeData(*DataFrame) which does lock()/unlock() on connection resource? 15:12 < exch> Channels are not very fast unfortunately. I faced the same choice yesterday in my UDP network lib. It used some goroutines and channels to pass incoming data round. After I changed it to just pass the data to a function directly with appropriate locking, the performance increased considerably 15:13 < exch> performance, in this case, meaning the amount of UDP packets it was able to process and send out per second 15:14 < scyth> yeah, that was my concern too, as I'm not familiar with low level channel implementation, but I figured.. it doesn't come in a natural way 15:16 < exch> It's a shame really. channels are a nice way to represent 'safe' cross-thread communication, but their performance (or lack thereof) doesn't motivate me to use them :< 15:17 < scyth> yeah.. I love the idea too... and I would definitely use them wherever performance is not critical point 15:17 < exch> yea 15:17 < exch> Unfortunatly it is in a game oriented network library 15:17 < exch> low latency > everything else 15:18 < nsf> Go won't work for games until it will have low latency GC :) 15:18 < nsf> it has* 15:18 < nsf> :( 15:18 < exch> that's the next point, but not something I can fix myself :p 15:18 < exch> In the meantime I can make sure my end of the work is as fast as it can be :) 15:18 < nsf> hopefully it won't take as long as it took for mono 15:19 < nsf> mono 2.8 will finally contain their new GC 15:19 < nsf> :P 15:19 < scyth> what's GC?:) 15:19 < exch> garbage collector 15:19 < nsf> they've started designing it in 2005 or something 15:19 < exch> lol 15:19 < exch> that's pretty poor 15:19 < scyth> :)) 15:19 < nsf> sadly, yes 15:20 < exch> Granted though, I have no idea what kind of blakc magick and trickery is needed to write a reliable and fast GC. It might just be that difficult to do :p 15:20 < exch> s/kc/ck 15:21 < nsf> well, it's the same level of hackery that is required to do other things for go like goroutines and growable stacks 15:21 < nsf> although, maybe I'm wrong 15:22 < exch> As far as I understand the issue, there's also a significant difference between a good GC and a good concurrent GC 15:22 < nbjoerg> writing a good GC is very hard work 15:22 < nsf> true 15:22 < nsf> true for hard work and for good concurrent gc 15:22 < nbjoerg> and writing concurrent GCs is even harder 15:22 < nbjoerg> especially if you want to allow dealing with a mixed language envrionment 15:23 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.] 15:25 < nsf> I don't like the fact that if you have a garbage collected language you have to live with GC implementation it has 15:25 < nsf> of course I can do manual memory management with Go 15:25 < nsf> but in that case I can't use any libraries 15:25 < nsf> which is not good :) 15:25 < exch> You might as well use C then ;) 15:25 < nsf> true 15:26 < nsf> but Go has other advantages over C other than GC 15:26 < exch> true 15:27 < nsf> in C you're basically forced to write things like LLVMPassManagerMakeMeHappy(passmanager, ...); 15:27 < nsf> it's not fun :D 15:27 < nsf> I thought it's good because source code is grep friendly 15:27 < nsf> but it turns out that methods can be nice too 15:28 < nsf> if there are no type hierarchies and overloading 15:30 < nsf> basically I want a language like that :D without all the experimental or costly stuff (goroutines, channels, GC, interface -> interface conversions), but with all other good stuff :D 15:30 < nbjoerg> what makes you think that GC is more expensive than the altneriatves? 15:30 < nsf> a lack of good implementation 15:31 < nbjoerg> well, you could sit down and hook up boehm-gc if you want 15:31 < nsf> I don't believe that it's much better than simple M&S GC 15:31 < nbjoerg> it is the reference implementation of a good M&S 15:32 < nbjoerg> as opposed to a simple one 15:32 < nsf> the problem is, that it still has the latency issue 15:32 < nsf> and it doesn't work for realtime graphics 15:33 < nbjoerg> it's not like manual memory management is without issues 15:33 < nsf> of course 15:33 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts 15:33 < nbjoerg> the 90% solution is RC of course 15:33 < nsf> I agree :) 15:35 < nsf> Go is nice because it also allows you to mix those 15:35 < nsf> the problem is that low level language for Go is still C 15:35 < nsf> C is nice, but it is possible to make a better version of it 15:35 < nsf> imho 15:36 -!- wrtp [~rog@92.17.34.115] has quit [Ping timeout: 265 seconds] 15:36 < nsf> at least fix the obvious issues like grammar, preprocessor as a part of the language 15:36 < nsf> add module system :) 15:36 < nbjoerg> the C interface is primarily needed because Go still lacks a proper compiler 15:36 < nbjoerg> and I don't think even gcc-go really falls into that category 15:37 < nbjoerg> the preprocessor is one of the biggest items in C 15:37 < nbjoerg> it would be unusable without 15:37 < nsf> but what do we have other than C? C++? D? 15:37 < scyth> java :D 15:37 < nsf> they can't really fullfil a need for a good low level language 15:39 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 255 seconds] 15:40 < nsf> anyway, I think that kind of thing (a fix-C-issues language) is pretty much obvious, someone just should Go for it :D personally I don't feel like I can handle it 15:40 -!- wrtp [~rog@92.17.34.115] has joined #go-nuts 15:41 < exch> I'm guessing that many have already tried. C has been around for a while after all 15:41 -!- acts_as [~acts_as@208.236.105.27] has joined #go-nuts 15:41 < exch> Since we're still stuck with C/C++, I guess it was more difficult than first anticipated :p 15:41 < nsf> yes, but for some reason most people are trying to add new features on top of C also 15:41 < nsf> like take a look at Java, D, C++, C# 15:42 < nsf> I think the Java is the simplest language of all these 15:42 < scyth> I disagree... C should not be *fixed. It's just impossible 15:42 < nsf> I'm not saying that C should be fixed 15:42 < nsf> I'm talking about the language which has all C issues fixed 15:42 < nsf> at least obvious ones 15:42 < nsf> and what is more important 15:42 < nsf> without any new features 15:43 < scyth> nsf, like what? 15:43 < nsf> preprocessor, grammar issues 15:43 < nbjoerg> .oO(why do people believe that the preprocessor is a flaw?) 15:43 < scyth> that's not really that much of a codestopper 15:44 < nsf> nbjoerg: maybe it's not a big issue, but the combination of both is definitely 15:44 < exch> 'fixing issues' is a bit ambiguous though. Whre does something stop being a fix and starts being a new feature? I'm sure some people would argue that lack of 'OO' in C was also an issue that was 'fixed' with c++ 15:44 < nbjoerg> exch: issues with manual memory management vs GC 15:45 < nsf> well, that's the problem 15:45 < Namegduf> The preprocessor is a flaw because it lets you make code whose semantics don't match the languages. 15:45 < nbjoerg> exch: difficulty of correct concurrent programming vs providing new primitives 15:45 < nsf> we need someone who knows what to fix :D 15:45 < scyth> nbjoerg, that's one thing that must not be touched if we want it to stay low level 15:45 < Namegduf> Or, rather, that's one argument against. 15:45 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts 15:45 < nsf> in fact imho Go is very close to that 15:45 < nbjoerg> Namegduf: actually, with C99 the output has to be a valid token stream 15:45 < nsf> at least to my idea of a perfect low level language 15:46 < Namegduf> nbjoerg: The output is largely irrelevant. 15:46 < nbjoerg> there is no perfect low level langauge 15:46 < nbjoerg> Namegduf: output of the preprocessor, I mean 15:46 < Namegduf> nbjoerg: Yeah, but the problem I named was with the input. 15:46 < Namegduf> You can make code which doesn't at all match the language's actual rules because the preprocessor is doing odd things. 15:47 < nsf> nbjoerg: have you tried to make a tool for a C language? like autocompletion or semantic preserving renaming or even a documentation generator 15:47 < nbjoerg> Namegduf: you would castrate it enough to make it useless if you insist that preprocessor input is valid C 15:47 < nsf> it is not trivial with preprocessor 15:47 < Namegduf> nbjoerg: Precisely why I said preprocessors in general had that as a flaw, not preprocessors whose input is invalid C. 15:47 < nbjoerg> nsf: sure, it isn't 15:47 < nsf> because one can compile a source code with -D flag and it can change the whole meaning of the source code 15:47 < nbjoerg> see above, that's why it is useful 15:48 < nbjoerg> and that's what it is used for in the real world too 15:48 < Namegduf> It seems to me like it'd be better to solve the problems the preprocessor solves directly rather than through a glorified compiletime find and replace (or that plus much more complex rules) 15:49 < nbjoerg> if you remove the preprocessor's capabilities, you easily end up with things like Go's runtime module 15:49 < nbjoerg> which is a lot of copy&paste between Linux and FreeBSD for example 15:50 < nsf> true 15:50 < Namegduf> If they liked they could just split the files better, I think. 15:50 < nsf> but preprocessor isn't a good solution for that 15:50 < Namegduf> A preprocessor also adds to the complexity of the language the preprocessor's own language, so if you consider complexity to be a bad thing. 15:50 < Namegduf> It at the least has a whole bunch of costs for the gain it provides, and that's why people sometimes dislike it. 15:50 < Namegduf> I'm not arguing it doesn't provide useful things sometimes. 15:51 < Namegduf> I think you could probably achieve that with a much more minimalistic, much more obvious preprocessor (like, say, just #ifdef and #endif), though, or through totally different methods. 15:51 < nbjoerg> the C preprocessor adds a lot less issues for tools than e.g. C++ templates :) 15:51 < nsf> I like to use pp for trash coding: #define DEF_E(tt) struct expr *e = malloc(sizeof(struct expr)); e->type = tt 15:51 < nsf> :P 15:52 < nbjoerg> some issues of it can be solved a lot better, *cough* modules 15:52 < nsf> I like D's module system 15:52 < nsf> Go's too 15:53 < nsf> but D's kind of more featureful :) 15:53 < Namegduf> I don't want to go back to a language whose specification I can't read through and understand properly in an afternoon. 15:53 < Namegduf> (Of course, I have to, but that's life) 15:54 -!- ronnyy [~quassel@p4FF1C944.dip.t-dialin.net] has joined #go-nuts 15:57 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Read error: Connection reset by peer] 16:06 -!- aho [~nya@fuld-4d00d326.pool.mediaWays.net] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 16:09 -!- babusri [~Babu@122.166.173.101] has joined #go-nuts 16:10 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts 16:18 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 264 seconds] 16:22 -!- tasosos [~tasosos@79.103.7.89.dsl.dyn.forthnet.gr] has quit [Ping timeout: 276 seconds] 16:25 -!- kanru [~kanru@118-168-236-242.dynamic.hinet.net] has joined #go-nuts 16:28 -!- wrtp [~rog@92.17.34.115] has quit [Quit: wrtp] 16:36 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 16:36 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 16:38 -!- tasosos [~tasosos@79.103.7.89.dsl.dyn.forthnet.gr] has joined #go-nuts 16:40 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 16:56 -!- nsf [~nsf@jiss.convex.ru] has quit [Ping timeout: 276 seconds] 16:56 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 17:00 -!- mnemoc [~amery@shell.opensde.net] has joined #go-nuts 17:00 -!- wrtp [~rog@92.17.34.115] has joined #go-nuts 17:01 -!- wrtp [~rog@92.17.34.115] has quit [Client Quit] 17:07 -!- wrtp [~rog@92.17.34.115] has joined #go-nuts 17:08 -!- wrtp [~rog@92.17.34.115] has quit [Client Quit] 17:15 -!- emmanueloga [~emmanuelo@190.244.15.163] has quit [Ping timeout: 265 seconds] 17:19 -!- ronnyy [~quassel@p4FF1C944.dip.t-dialin.net] has quit [Remote host closed the connection] 17:20 < scyth> any info on when (*TCPListener) File() will be out there? -- to export fd 17:21 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 265 seconds] 17:21 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it] has quit [Quit: ucasano] 17:22 -!- photron [~photron@port-92-201-91-38.dynamic.qsc.de] has joined #go-nuts 17:29 -!- ikaros [~ikaros@188.107.214.200] has joined #go-nuts 17:38 -!- redbrain [~redbrain@94.229.66.234] has quit [Quit: leaving] 17:39 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has joined #go-nuts 17:39 -!- napsy [~luka@88.200.96.18] has quit [Read error: Operation timed out] 17:46 -!- gzmask [~ray@corwin.cat.uregina.ca] has joined #go-nuts 17:48 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has quit [Quit: derferman] 17:48 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 17:49 -!- Tv [~tv@gige.bur.digisynd.com] has joined #go-nuts 17:55 -!- scyth [~scyth@zeljko.eunet.rs] has quit [Quit: Leaving] 17:59 -!- kanru [~kanru@118-168-236-242.dynamic.hinet.net] has quit [Ping timeout: 240 seconds] 18:00 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts 18:01 -!- emmanueloga [~emmanuelo@190.244.15.163] has joined #go-nuts 18:12 -!- rlab_ [~Miranda@91.200.158.34] has joined #go-nuts 18:13 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds] 18:14 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 18:15 -!- artefon [~thiago@dhcp49.usuarios.dcc.ufmg.br] has quit [Quit: bye] 18:17 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 18:19 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the connection] 18:20 -!- artefon [~thiago@dhcp49.usuarios.dcc.ufmg.br] has joined #go-nuts 18:39 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts 18:44 < uriel> 15:43 < nbjoerg> .oO(why do people believe that the preprocessor is a flaw?) 18:44 < uriel> nbjoerg: because it is 18:45 < uriel> nbjoerg: ask dmr himself, and he will tell you it was a big mistake 18:45 < uriel> I think I have heard rob call the c preprocessor one of the most costly mistakes in the history of software 18:47 < uriel> 15:35 < nsf> the problem is that low level language for Go is still C 18:47 < uriel> nsf: wtf does that mean? 18:48 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds] 18:48 < nsf> I mean if you want to write something without using GC and still have access to some kind of libraries 18:48 < nsf> for Go, you have to use C, more or less 18:48 < nsf> certainly 18:49 < nsf> makes sense? :) 18:50 < nsf> runtime for Go is written in C 18:52 < uriel> nsf: there is nothing that says the Go runtime must be in C 18:52 < KirkMcDonald> C is a useful FFI. 18:52 < nsf> but Go devs use C for some reason 18:52 < uriel> iant has mentioned a few times that it will likely get rewriten in Go 18:52 < KirkMcDonald> Everything speaks C, more or less. 18:53 < uriel> nsf: it would have made no sense to use anything else for bootstrapping 18:53 < uriel> also, it is not quite 'C', it is ken's C 18:53 < nbjoerg> it's not C 18:53 < uriel> there is a reason there are a set of C compilers as part of the Go toolchain 18:53 < KirkMcDonald> (Now if only they could work out the whole callback issues...) 18:53 < nbjoerg> and the difference (especially the ABI difference) is annoying enough 18:53 < nsf> uriel: I don't think that runtime will be rewritten in Go 18:54 < uriel> but again, eventually it is quite likely that the whole thing will be pure Go, it is just a matter of time, and it helps bootstrapping things if one builds the toolchain and runtime with a language that is not changing every week 18:54 < uriel> nsf: why not? again, iant has suggested that is likely to happen eventually, and would make very much sense 18:54 < nsf> we'll see 18:55 -!- Fish [~Fish@9fans.fr] has quit [Ping timeout: 265 seconds] 18:55 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 18:55 < uriel> we will see, but I certainly can't see any reason why that can't be done, once the language is stable enough 18:55 < nsf> libraries 18:56 < nsf> :) 18:56 < uriel> ? 18:56 < nsf> Go's libraries depend on GC 18:56 < nsf> well, maybe I'm wrong 18:56 < nsf> nevermind 18:57 < uriel> ?? 19:01 -!- Guest70307 [~irc@209.17.191.58] has quit [Quit: leaving] 19:01 -!- irc [~irc@209.17.191.58] has joined #go-nuts 19:08 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 19:13 < skelterjohn> the question of writing the runtime in go or not is independent of the question of whether or not go can interface to C libraries via GV 19:13 < skelterjohn> GV = GC 19:14 < skelterjohn> the runtime is, in the end, a binary. the language it began as can change 19:34 -!- Dejv [~Dejv@77.240.177.8] has joined #go-nuts 19:36 -!- plainhao [~plainhao@mail.xbiotica.com] has quit [Quit: plainhao] 19:38 -!- Dejv [~Dejv@77.240.177.8] has quit [Client Quit] 19:39 < dahankzter> Isn't the pattern for a Makefile i go, to include Make.${GOARCH}? 19:39 < dahankzter> If so I am just curious as to where it is? I have not got any such file 19:40 -!- Dejv [~Dejv@77.240.177.8] has joined #go-nuts 19:45 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 19:52 -!- Dejv [~Dejv@77.240.177.8] has left #go-nuts [] 19:56 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 264 seconds] 19:58 -!- scyth [~scyth@rots.in.rs] has joined #go-nuts 19:58 < dahankzter> works better(?) using Make.inc 19:58 < dahankzter> hmmm 19:58 -!- artefon [~thiago@dhcp49.usuarios.dcc.ufmg.br] has quit [Quit: bye] 19:59 -!- wjlroe [~will@212.169.34.114] has joined #go-nuts 19:59 < wjlroe> Hi, how can you use tls.Dial or similar and tell it to not verify the server's cert? 20:13 < wjlroe> never mind 20:13 < wjlroe> tls.Dial apears to not use the RootCAs 20:26 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Read error: Operation timed out] 20:28 -!- ikaros [~ikaros@188.107.214.200] has quit [Quit: Leave the magic to Houdini] 20:29 -!- wjlroe [~will@212.169.34.114] has quit [Ping timeout: 240 seconds] 20:29 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection reset by peer] 20:39 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten. Desu~] 20:40 < scyth> when sending strings over network from a go app acting as a client, does receiving server needs to understand unicode? I don't get this part.. can someone explain? 20:42 < skelterjohn> typically when you send something over the network, you send a []byte 20:42 < skelterjohn> try examining what you get when you turn a string into a []byte 20:42 < skelterjohn> that should make it clear 20:43 -!- ProNihil1st [~anathema@cpc4-cani1-0-0-cust597.14-2.cable.virginmedia.com] has quit [Ping timeout: 240 seconds] 20:45 -!- ProNihilist [~anathema@cpc4-cani1-0-0-cust597.14-2.cable.virginmedia.com] has joined #go-nuts 20:49 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit: Leaving.] 20:57 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 20:58 -!- dragonball_ [~dragonbal@unaffiliated/dragonball] has joined #go-nuts 20:58 < uriel> scyth: Go strings are UTF-8, so you don't need to worry about anything as long as the other end understands utf-8 20:58 < uriel> (unlike with utf-16 and other such braindamage, where you have to worry about endianness and other such nonense) 20:59 < scyth> uriel, yes.. that's kinda problem I guess 20:59 < uriel> well, any software that can't handle utf-8 in this day and age is pretty much broken 20:59 -!- dragonball_ [~dragonbal@unaffiliated/dragonball] has quit [Client Quit] 21:00 -!- tasosos [~tasosos@79.103.7.89.dsl.dyn.forthnet.gr] has quit [Remote host closed the connection] 21:01 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit: skelterjohn] 21:03 < scyth> I agree, but having options to encode to some other encoding would be nice I guess 21:03 < nbjoerg> there are enough reasons for compatibility to have to do with !Unicode 21:06 < scyth> fair enough, just wanted to be sure that utf-8 bytes are comming out 21:15 -!- wrtp [~rog@92.17.34.115] has joined #go-nuts 21:16 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the connection] 21:19 -!- ExtraSpice [~XtraSpice@88.118.34.223] has quit [Ping timeout: 240 seconds] 21:20 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection] 21:22 -!- wjlroe [~will@78-86-14-131.zone2.bethere.co.uk] has joined #go-nuts 21:28 -!- wrtp [~rog@92.17.34.115] has quit [Quit: wrtp] 21:29 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts 21:30 -!- ExtraSpice [~XtraSpice@88.118.34.223] has quit [Read error: Connection reset by peer] 21:33 -!- emmanueloga [~emmanuelo@190.244.15.163] has quit [Ping timeout: 252 seconds] 21:36 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 21:40 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 21:47 -!- jhh [~jhh@f049170079.adsl.alicedsl.de] has quit [Quit: jhh] 21:49 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 21:49 < mpl> whoa, forgetting the parens around the condition of a case statement is bad... 21:50 < KirkMcDonald> mpl: Eh? 21:52 -!- emmanueloga [~emmanuelo@190.244.15.163] has joined #go-nuts 21:52 < mpl> KirkMcDonald: something like that: "switch { case foo <= 1.0: blabla" gave me something weird that got fixed with "switch { case (foo <= 1.0): blabla". 21:54 < KirkMcDonald> That is... strange. 21:57 <+iant> you shouldn't need parentheses there as far as I can see 21:59 < mpl> iant: oh it compiled fine, only I got some very weird result 21:59 < mpl> let me see if I can reproduce it in a simple case. 22:01 -!- artefon [~thiago@189.59.162.141] has joined #go-nuts 22:02 -!- rlab_ [~Miranda@91.200.158.34] has quit [Ping timeout: 265 seconds] 22:06 -!- willdye1 [~willdye@fern.dsndata.com] has joined #go-nuts 22:06 -!- willdye [~willdye@fern.dsndata.com] has quit [Read error: Connection reset by peer] 22:06 -!- raylu [raylu@c-24-131-193-106.hsd1.pa.comcast.net] has left #go-nuts [] 22:11 < mpl> damn, can't do it anymore. I guess I was too sleepy... 22:13 < nsf> http://www.2600.com/googleblacklist/ 22:14 < nsf> :D 22:16 < mpl> I guess I didn't notice since it annoyed the hell out of me right away so I turned it off immediately. 22:16 < nsf> the live search thing? 22:17 < mpl> yah 22:17 < nsf> I like it :) 22:17 < mpl> good for you then. 22:18 < nsf> good night, sweet dreams :) 22:18 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 22:28 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts 22:42 -!- willdye1 [~willdye@fern.dsndata.com] has quit [Read error: Connection reset by peer] 22:44 -!- cinghialino [~Marvin@dynamic-adsl-94-36-177-190.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 22:45 -!- photron [~photron@port-92-201-91-38.dynamic.qsc.de] has quit [Ping timeout: 240 seconds] 22:46 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 22:56 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 264 seconds] 23:03 -!- bmizerany [~bmizerany@208.66.27.62] has joined #go-nuts 23:03 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Ping timeout: 240 seconds] 23:05 -!- kanru [~kanru@118-168-236-242.dynamic.hinet.net] has joined #go-nuts 23:09 -!- jmettraux [~jmettraux@211.19.55.177] has joined #go-nuts 23:09 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 23:17 -!- bmizerany [~bmizerany@208.66.27.62] has quit [Remote host closed the connection] 23:17 -!- sabayonuser [~sabayonus@static-98-141-17-231.dsl.cavtel.net] has joined #go-nuts 23:19 -!- sabayonuser [~sabayonus@static-98-141-17-231.dsl.cavtel.net] has left #go-nuts [] 23:21 -!- jacekm [jacekm@parrot.dobremiasto.net] has joined #go-nuts 23:23 -!- cenuij [~cenuij@93.26.136.97] has joined #go-nuts 23:23 -!- cenuij [~cenuij@93.26.136.97] has quit [Changing host] 23:23 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts 23:24 < jacekm> func handle(queue chan *Request) { 23:24 < jacekm> for r := range queue { 23:24 < jacekm> process(r) 23:24 < jacekm> } 23:24 < jacekm> } 23:24 < jacekm> func Serve(clientRequests chan *clientRequests, quit chan bool) { 23:24 < jacekm> // Start handlers 23:24 < jacekm> for i := 0; i < MaxOutstanding; i++ { 23:24 < jacekm> go handle(clientRequests) 23:24 < jacekm> } 23:24 < jacekm> this example from effective go is borked, isn't it? 23:30 < exch> that seems a little odd 23:31 < exch> why 'go handle(clientRequests)' is in a loop and how 'chan *clientRequests' is passed as 'chan *Request' seems wrong 23:32 < jacekm> i think only the latter is wrong 23:32 < jacekm> for loop spawns workers 23:32 < exch> ah right 23:34 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X] 23:35 -!- jessta [~jessta@124-148-191-114.dyn.iinet.net.au] has quit [Ping timeout: 276 seconds] 23:43 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection reset by peer] 23:46 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 23:51 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection reset by peer] 23:57 -!- napsy [~luka@88.200.96.18] has joined #go-nuts --- Log closed Tue Oct 05 00:00:09 2010