--- Log opened Thu Apr 07 00:00:50 2011 00:01 -!- skelterjohn_ [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined #go-nuts 00:02 -!- skelterjohn_ [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Client Quit] 00:04 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Ping timeout: 246 seconds] 00:07 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined #go-nuts 00:09 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-155-46.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 00:15 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 00:17 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 00:19 -!- Tuller [~tuller@c-68-33-63-208.hsd1.va.comcast.net] has joined #go-nuts 00:20 -!- l00t [~i-i3id3r_@189.105.98.19] has joined #go-nuts 00:21 -!- tav [~tav@92.7.141.101] has quit [Ping timeout: 246 seconds] 00:28 -!- tav [~tav@92.7.93.110] has joined #go-nuts 00:29 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts 00:34 -!- artefon [~thiago@189.26.238.224] has quit [Quit: bye] 00:36 -!- Tuller [~tuller@c-68-33-63-208.hsd1.va.comcast.net] has quit [Quit: Computer has gone to sleep.] 00:40 -!- l00t- [~i-i3id3r_@20150129002.user.veloxzone.com.br] has joined #go-nuts 00:40 -!- l00t [~i-i3id3r_@189.105.98.19] has quit [Ping timeout: 248 seconds] 00:44 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined #go-nuts 01:04 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 01:04 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined #go-nuts 01:06 -!- mikespook [~mikespook@219.137.234.21] has joined #go-nuts 01:07 -!- saturnfive [~saturnfiv@210.74.155.131] has joined #go-nuts 01:08 -!- Tuller [~tuller@c-68-33-63-208.hsd1.va.comcast.net] has joined #go-nuts 01:10 -!- iant1 [~iant@67.218.107.170] has quit [Ping timeout: 246 seconds] 01:10 -!- iant [~iant@216.239.45.130] has joined #go-nuts 01:10 -!- mode/#go-nuts [+v iant] by ChanServ 01:14 -!- brad__ [621a78ee@gateway/web/freenode/ip.98.26.120.238] has joined #go-nuts 01:15 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Ping timeout: 246 seconds] 01:15 < brad__> is there anyway to call bufio.ReadString directly from fmt.Printf? Each time I try, it complains about multiple values 01:15 < brad__> multiple values in single value context 01:15 -!- iant [~iant@216.239.45.130] has quit [Quit: Leaving.] 01:18 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-etippyzfkjwhgoqd] has quit [Read error: Operation timed out] 01:19 < hopso> I don't think so. Just do like 01:19 < hopso> a, _ := b.ReadString('\n') 01:19 < hopso> fnt.Printf("%s", a) 01:19 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Read error: Operation timed out] 01:20 < hopso> Of course checking for errors is usually good. 01:20 < brad__> yeah, that seems to work, but kind of annoying 01:21 < hopso> It was at first but it feels natural now. 01:21 -!- nsfx [~nsfx@pool-96-225-70-167.nwrknj.fios.verizon.net] has left #go-nuts ["WeeChat 0.3.4"] 01:22 < brad__> you would think if you were calling a multi value result in a single value context, that it would just output the first value 01:23 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-yzvpkbqokzxjlumf] has joined #go-nuts 01:23 < exch> the error values is there for a good reason. You should really handle it 01:24 < hopso> exch is correct. It's already handed to you so checking it is always a good idea. 01:24 < brad__> if that were true, then go would force exceptions 01:25 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined #go-nuts 01:30 < exch> exceptions open a whole other can of worms 01:30 -!- meanburrito920 [~john@192.5.109.34] has joined #go-nuts 01:30 -!- meanburrito920 [~john@192.5.109.34] has quit [Changing host] 01:30 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts 01:32 < skelterjohn> makes me hungry 01:36 -!- Tuller [~tuller@c-68-33-63-208.hsd1.va.comcast.net] has quit [Quit: Computer has gone to sleep.] 01:36 < hopso> Talking about hunger... I need coffee and a banana. 01:38 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 01:38 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined #go-nuts 01:42 -!- vsayer [~vivek@2001:470:1f04:1a6b:21a:6bff:fe35:d2a5] has joined #go-nuts 01:43 -!- vsayer [~vivek@2001:470:1f04:1a6b:21a:6bff:fe35:d2a5] has quit [Client Quit] 01:48 -!- tensai_cirno [~cirno@77.232.15.216] has joined #go-nuts 01:51 -!- skelterjohn_ [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined #go-nuts 01:52 -!- skelterjohn_ [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Client Quit] 01:54 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Ping timeout: 246 seconds] 01:57 -!- Mr_Dark [~dk@poviko.demon.nl] has joined #go-nuts 01:58 -!- fluf^arr [~camelid@s.pl0rt.org] has joined #go-nuts 01:58 -!- Netsplit *.net <-> *.split quits: Urmel|, davisp, larva_, Namegduf, dforsyth, gmilleramilar, Mr_Dark`, suiside, welterde, espeed, (+6 more, use /NETSPLIT to show all of them) 01:58 -!- Netsplit *.net <-> *.split quits: mthreat, comex, Soultaker, impl, bXi, madari, Innominate, Stiletto, TheSeeker, ivan`, (+3 more, use /NETSPLIT to show all of them) 01:59 -!- Netsplit *.net <-> *.split quits: itrekkie, djcapelis, andman, pTonnerre, Boney, Paradox924X 02:00 -!- Netsplit over, joins: andman, itrekkie, djcapelis, pTonnerre, Boney, Paradox924X 02:00 -!- djbrown [~djbrown@h236n2-g-va-a12.ias.bredband.telia.com] has joined #go-nuts 02:00 -!- Netsplit over, joins: espeed, welterde, ivan`, Urmel|, Namegduf, dforsyth, matti_, davisp, larva_, suiside (+14 more) 02:00 -!- Netsplit over, joins: comex, jlouis 02:03 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has quit [Ping timeout: 240 seconds] 02:03 -!- Paradox924X [~Paradox92@c-68-35-229-34.hsd1.fl.comcast.net] has joined #go-nuts 02:08 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-yzvpkbqokzxjlumf] has quit [Ping timeout: 260 seconds] 02:08 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-cxhwizpkswnzejib] has joined #go-nuts 02:11 -!- mikespook [~mikespook@219.137.234.21] has quit [Ping timeout: 240 seconds] 02:12 -!- mikespook [~mikespook@219.137.234.21] has joined #go-nuts 02:27 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has joined #go-nuts 02:32 -!- hypertux [~hypertux@vps1.joelegasse.com] has quit [Ping timeout: 258 seconds] 02:44 -!- bugQ [~bug@c-67-171-127-76.hsd1.ut.comcast.net] has joined #go-nuts 02:45 -!- venk [~user@203.111.33.203] has quit [Ping timeout: 260 seconds] 02:45 < hopso> Does anyone know good articles about parsers/lexers? 02:48 -!- bugQ [~bug@c-67-171-127-76.hsd1.ut.comcast.net] has quit [Read error: Operation timed out] 02:52 -!- niemeyer_away [~niemeyer@201-11-241-2.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 240 seconds] 02:54 < jessta_> hopso: there are some really good books 02:54 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has quit [Quit: Leaving] 02:55 < hopso> Can't get the well known 'Dragon Book' in my hands any time soon. 02:55 < hopso> I think there's only one of them in the local library and it's reserved for someone else. :/ 02:56 -!- bugQ [~bug@c-67-171-127-76.hsd1.ut.comcast.net] has joined #go-nuts 02:59 < uriel> hopso: you can find it online if you search properly 03:00 < hopso> uriel: Sadly I can't stand reading books on computer screen. But thanks for the tip. 03:02 -!- venk [~user@203.111.33.203] has joined #go-nuts 03:04 < jessta_> hopso: but you're fine with reading articles on a computer screen?... 03:04 < hopso> jessta_: Complete book is a whole different thing. 03:05 < hopso> And book is more comfortable to keep next to me as a reference. 03:07 -!- bugQ [~bug@c-67-171-127-76.hsd1.ut.comcast.net] has quit [Remote host closed the connection] 03:07 -!- bugQ [~bug@c-67-171-127-76.hsd1.ut.comcast.net] has joined #go-nuts 03:10 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has joined #go-nuts 03:10 -!- tensai_cirno [~cirno@77.232.15.216] has quit [Ping timeout: 246 seconds] 03:12 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has quit [Quit: JusticeFries] 03:13 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has joined #go-nuts 03:14 < plexdev> http://is.gd/URvvb4 by [Russ Cox] in go/lib/codereview/ -- codereview: recognize code URL without trailing slash 03:14 < plexdev> http://is.gd/6zT1lP by [Dave Cheney] in go/src/pkg/syscall/ -- syscall: fix typo in mmap comment 03:16 -!- skelterjohn [~jasmuth@c-68-46-33-145.hsd1.nj.comcast.net] has quit [Client Quit] 03:22 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 03:22 -!- mode/#go-nuts [+v iant] by ChanServ 03:27 -!- gaxxx [~woo@219.143.166.16] has joined #go-nuts 03:30 -!- gaxxx [~woo@219.143.166.16] has quit [Remote host closed the connection] 03:33 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping timeout: 260 seconds] 03:33 -!- iant [~iant@216.239.45.130] has joined #go-nuts 03:33 -!- mode/#go-nuts [+v iant] by ChanServ 03:39 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Ping timeout: 258 seconds] 03:46 -!- keithgcascio [~keithcasc@nat/google/x-pfggmkwlepgrfwtv] has quit [Quit: Leaving] 03:47 -!- bugQ [~bug@c-67-171-127-76.hsd1.ut.comcast.net] has quit [Ping timeout: 246 seconds] 03:49 -!- bugQ [~bug@c-67-171-127-76.hsd1.ut.comcast.net] has joined #go-nuts 03:56 -!- vsayer [~vivek@2001:470:1f04:1a6b:21a:6bff:fe35:d2a5] has joined #go-nuts 03:57 -!- nettok [~quassel@200.119.161.172] has joined #go-nuts 04:05 -!- kingfishr [~kingfishr@c-98-207-87-183.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 04:10 -!- tensai_cirno [~cirno@194.186.188.95] has joined #go-nuts 04:10 -!- hopso [~hopso@a91-152-183-181.elisa-laajakaista.fi] has quit [Remote host closed the connection] 04:16 -!- zozoR [~Morten@5634631b.rev.stofanet.dk] has joined #go-nuts 04:19 -!- tensorpudding [~user@99.148.205.193] has quit [Remote host closed the connection] 04:24 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 246 seconds] 04:29 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts 04:29 -!- bugQ [~bug@c-67-171-127-76.hsd1.ut.comcast.net] has quit [Remote host closed the connection] 04:30 -!- cenuij [~cenuij@109.8.21.241] has joined #go-nuts 04:30 -!- cenuij [~cenuij@109.8.21.241] has quit [Changing host] 04:30 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts 04:35 -!- nettok_ [~quassel@200.119.161.234] has joined #go-nuts 04:38 -!- nettok [~quassel@200.119.161.172] has quit [Ping timeout: 246 seconds] 04:39 -!- djbrown [~djbrown@h236n2-g-va-a12.ias.bredband.telia.com] has quit [Changing host] 04:39 -!- djbrown [~djbrown@unaffiliated/djbrown] has joined #go-nuts 04:40 -!- arvindht [c2ed8e11@gateway/web/freenode/ip.194.237.142.17] has joined #go-nuts 04:45 -!- tensai_cirno [~cirno@194.186.188.95] has quit [Ping timeout: 260 seconds] 04:46 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 04:48 -!- simply_b_ [~simply_b@66-189-220-223.dhcp.knwc.wa.charter.com] has joined #go-nuts 04:57 -!- nettok [~quassel@200.119.187.147] has joined #go-nuts 04:59 -!- nettok__ [~quassel@200.119.184.194] has joined #go-nuts 05:01 -!- nettok_ [~quassel@200.119.161.234] has quit [Ping timeout: 240 seconds] 05:03 -!- nettok [~quassel@200.119.187.147] has quit [Ping timeout: 260 seconds] 05:04 -!- edsrzf [~chickench@122-61-221-144.jetstream.xtra.co.nz] has joined #go-nuts 05:06 -!- nettok__ [~quassel@200.119.184.194] has quit [Ping timeout: 260 seconds] 05:12 -!- benjack [~benjack@bb119-74-104-165.singnet.com.sg] has joined #go-nuts 05:17 -!- zozoR [~Morten@5634631b.rev.stofanet.dk] has quit [Remote host closed the connection] 05:27 -!- tensai_cirno [~cirno@80.250.216.102] has joined #go-nuts 05:27 -!- gaxxx [~woo@219.143.166.16] has joined #go-nuts 05:40 -!- zimsim [~simon@87.72.77.195] has joined #go-nuts 05:56 -!- cafesofie [~cafesofie@ool-4a5a6ee5.dyn.optonline.net] has quit [Remote host closed the connection] 06:01 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 06:16 < Namegduf> Argh 06:16 < Namegduf> Why are people still talking about those moronic "datafaces" 06:17 < Namegduf> Horribly complex and ugly and even the claimed benefits are miniscule next to the complexity. 06:20 * Namegduf has been holding himself back from replying because it isn't nice to reply "Your entire proposal is useless and horrible from start to end." 06:22 < nsf> why can't you just ignore it? :) 06:23 < nsf> http://xkcd.com/386/ ? 06:23 < nsf> :) 06:23 < Namegduf> Because it's been spamming my inbox for a goddamn week 06:23 < nsf> unsubscribe 06:24 < nsf> :) 06:24 < Namegduf> At least the other stupid proposals were copying other languages, this one is inventing their own. 06:24 -!- masak [d5bbcdc2@gateway/web/freenode/ip.213.187.205.194] has joined #go-nuts 06:28 < masak> hi. running './all.bash', I seem to get a 6l but no 6g. I don't seem to get an error in the make process. what did I miss? 06:29 < fzzbt> masak: which branch are you on? 06:29 < masak> I did 'hg clone -r release https://go.googlecode.com/hg/ go' 06:32 < fzzbt> works for me 06:32 < masak> 'hg branch' says 'default'. 06:32 < masak> would a nopaste of the './all.bash' output help? 06:33 < Namegduf> nsf: It's usually got SOME interesting content 06:33 < Namegduf> Occasionally 06:33 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 06:33 < nsf> is it? 06:33 < nsf> :) 06:33 < masak> ah. in piping STDOUT to a file, I found the actual error: 'bison: not found'. 06:34 -!- randfur [~AndChat@58.145.148.26] has joined #go-nuts 06:34 < nsf> bison is a compiler generator, like yacc, all major linux distros have it 06:34 < nsf> masak: what's your OS? 06:35 < masak> I'm on a very recent Ubuntu. 06:35 < nsf> then just install bison 06:35 < masak> 'apt-get install bison' worked 06:35 < nsf> good then :) 06:35 < masak> now things seem to be chugging along nicely. 06:38 < masak> yes -- it worked. thanks for your moral support :) 06:38 < nsf> ;) 06:39 < masak> time to try out Google Go. 06:39 < masak> I'll be back. :) 06:39 -!- masak [d5bbcdc2@gateway/web/freenode/ip.213.187.205.194] has quit [] 06:40 < randfur> What is Google Go? 06:40 < nsf> where are we? :) 06:41 < fzzbt> just some crummy board game 06:42 < randfur> Oh did he mean Google's Go? 06:43 < randfur> Thought it might've been some Google API. 06:53 < rm445_> are you mental? :-) 06:55 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts 06:56 -!- randfur [~AndChat@58.145.148.26] has quit [Ping timeout: 240 seconds] 06:58 -!- marten [~marten@62.21.178.171] has joined #go-nuts 07:02 -!- piranha [~piranha@D57D1AB3.static.ziggozakelijk.nl] has joined #go-nuts 07:09 -!- randfur [~AndChat@58.145.148.69] has joined #go-nuts 07:11 -!- tensai_cirno [~cirno@80.250.216.102] has quit [Quit: Leaving] 07:17 <@adg_> yay #go-nuts 07:17 <@adg_> sorry to have been a bit absent lately. so busy, but it will be worth it 07:17 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|] 07:23 -!- randfur [~AndChat@58.145.148.69] has quit [Ping timeout: 240 seconds] 07:26 < jessta_> adg_: is that goinstall goodness? 07:27 <@adg_> uamong some other stuff, yeah :-) 07:44 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has quit [Ping timeout: 248 seconds] 07:49 < taruti> Did someone hack a key-value store library in Go? 07:54 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-cxhwizpkswnzejib] has quit [Ping timeout: 260 seconds] 08:00 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-dofudlzlhutslxmx] has joined #go-nuts 08:02 < jessta_> taruti: someone did, I don't remember what is was called 08:03 -!- waqas [~waqas@jaim.at] has joined #go-nuts 08:04 -!- ExtraSpice [XtraSpice@88.118.35.153] has joined #go-nuts 08:13 < str1ngs> hmm how do I trim '\n' from a byte slice? 08:15 < str1ngs> Printf("%v",string(b[0:len(b)-1])) 08:15 < jessta_> str1ngs: bytes.Trim([]byte("pies\n"),"\n") 08:15 < str1ngs> ah thats it thanks. 08:20 < taruti> hmm. Is there an easy way to split by regex? 08:26 -!- wrtp [~rog@2.97.144.60] has joined #go-nuts 08:27 -!- rbraley [~rbraley@114.250.85.173] has quit [Ping timeout: 252 seconds] 08:36 -!- waqas [~waqas@jaim.at] has left #go-nuts [] 08:40 -!- wrtp [~rog@2.97.144.60] has quit [Quit: wrtp] 08:46 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-169-219.clienti.tiscali.it] has joined #go-nuts 08:48 -!- gaxxx [~woo@219.143.166.16] has quit [Quit: Leaving.] 08:49 -!- gaxxx [~woo@219.143.166.16] has joined #go-nuts 08:50 -!- wrtp [~rog@2.97.144.60] has joined #go-nuts 08:56 -!- wrtp [~rog@2.97.144.60] has quit [Quit: wrtp] 09:01 -!- wrtp [~rog@2.97.144.60] has joined #go-nuts 09:22 -!- katakuna [pie@kjal.demon.co.uk] has quit [Ping timeout: 252 seconds] 09:24 -!- edsrzf [~chickench@122-61-221-144.jetstream.xtra.co.nz] has quit [Remote host closed the connection] 09:24 -!- joelkronander [~joelkrona@c-bf2fe253.617-1-64736c22.cust.bredbandsbolaget.se] has quit [Quit: joelkronander] 09:26 -!- katakuna [~pie@kjal.demon.co.uk] has joined #go-nuts 09:31 -!- mikespook [~mikespook@219.137.234.21] has quit [Quit: Leaving.] 09:31 < xyproto> taruti: Go has regex, but compared to the other languages in the Computer Language Benchmarks Game, it's used in the test where Go performs worse than in the other benchmarks: http://shootout.alioth.debian.org/u32/program.php?test=regexdna&lang=go&id=4 09:33 < xyproto> hm, now it just says "failed" for Go, but I've seen graphs where Go is included for this benchmark, so I think it has worked before 09:34 < xyproto> ah, yes, Go gets a "throw: out of memory" and gets a runtime error in connection with regexps 09:34 < xyproto> no idea why 09:37 < xyproto> when I compile and test the same program with the same input and output here, it works great 09:41 -!- benjack [~benjack@bb119-74-104-165.singnet.com.sg] has quit [Quit: Leaving.] 09:45 -!- Scorchin [~Scorchin@host109-158-114-169.range109-158.btcentralplus.com] has joined #go-nuts 09:47 -!- tvw [~tv@e176002147.adsl.alicedsl.de] has joined #go-nuts 09:47 -!- itrekkie [~itrekkie@ip72-211-131-205.tc.ph.cox.net] has quit [Quit: itrekkie] 09:47 -!- napsy [~luka@193.2.66.6] has joined #go-nuts 09:47 < xyproto> ah, here was the comparison I was looking for. I wonder why Go is comparatively slow when it comes to regexp: http://shootout.alioth.debian.org/u64q/compare.php?lang=go#faster-programs-approximately 09:50 < uriel> xyproto: this has been discussed a thousand times, see gonuts archives 09:50 < xyproto> uriel: ah, news to me, thanks :) 09:50 < uriel> xyproto: most languages use havily optimized over many years (sometimes decades) regexp libs written in C 09:50 < xyproto> uriel: btw, do you happen to know how people profile Go programs? 09:50 < xyproto> uriel: I see. Understandable. 09:51 < uriel> Go's current regexp implementation is basically a toy example 09:51 < uriel> http://golang.org/cmd/prof/ 09:52 < uriel> there is also now support for fancier cpu profiling and stuff, but have not looked into it 09:52 < uriel> again, see archives 09:56 < xyproto> uriel: ok, thanks :) 10:13 -!- TheColonial [~oj@115-64-213-55.static.tpgi.com.au] has joined #go-nuts 10:17 -!- saturnfive [~saturnfiv@210.74.155.131] has quit [Read error: Connection reset by peer] 10:24 < fzzbt> i wish goinstall would know how to uninstall 10:26 -!- joelkronander [~joelkrona@130.236.243.164] has joined #go-nuts 10:27 -!- rbraley [~rbraley@114.250.85.173] has joined #go-nuts 10:30 -!- niekie_ [~niek@CAcert/Assurer/niekie] has quit [Read error: Operation timed out] 10:31 -!- virtualsue [~chatzilla@nat/cisco/x-rkbrhhywvgmsiltk] has joined #go-nuts 10:32 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts 10:33 -!- joelkronander [~joelkrona@130.236.243.164] has left #go-nuts [] 10:40 -!- tensai_cirno [~cirno@77.232.15.216] has joined #go-nuts 10:44 -!- gaxxx [~woo@219.143.166.16] has quit [Remote host closed the connection] 10:55 < wrtp> fzzbt: uninstalling is harder than installing 10:56 < wrtp> because you can't uninstall a dependency if something else is using it 10:56 < wrtp> in general, rm -r $GOROOT/src/pkg/package_path works pretty well 11:03 < kimelto> han syscall is broken on bsd :( 11:03 -!- TheColonial [~oj@115-64-213-55.static.tpgi.com.au] has left #go-nuts [] 11:03 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Read error: Operation timed out] 11:06 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts 11:08 -!- Tuller [~tuller@c-68-33-63-208.hsd1.va.comcast.net] has joined #go-nuts 11:09 -!- saturnfive [~saturnfiv@219.144.192.222] has joined #go-nuts 11:09 -!- saturnfive [~saturnfiv@219.144.192.222] has left #go-nuts [] 11:30 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Read error: Operation timed out] 11:31 < KBme> anyone know of an otp-like supervisor framework for go? 11:33 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts 11:34 -!- Tuller [~tuller@c-68-33-63-208.hsd1.va.comcast.net] has quit [Remote host closed the connection] 11:36 < wrtp> KBme: difficult to do without support from the runtime 11:36 < wrtp> KBme: what does OTP stand for, BTW? 11:37 < KBme> something telecom platform iirc 11:37 < KBme> :) 11:38 < wrtp> ah, "open telecom platform" 11:38 < wrtp> that makes sense 11:38 < wrtp> i'm presuming you're meaning the ability to supervise other processes and do something when they fail 11:39 < KBme> yep 11:39 < KBme> wrtp: exactly, that's what it stands for :) 11:39 < wrtp> i think that something like that will make it into go eventually in some form 11:40 < wrtp> i found myself wishing for something like that recently 11:40 < wrtp> i was catching panics, but the panics were happening in another goroutine, so i couldn't 11:42 -!- vsayer [~vivek@2001:470:1f04:1a6b:21a:6bff:fe35:d2a5] has quit [Read error: Operation timed out] 11:42 < wrtp> the question is what it should look like when, currently, there's no type or value that describes a goroutine 11:44 < wrtp> i wonder if you'd need to allow goroutines to move between supervisor groups 11:48 -!- zerosanity [~josh@8.20.178.82] has joined #go-nuts 11:48 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Quit: No Ping reply in 180 seconds.] 11:51 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts 11:54 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Read error: Operation timed out] 11:57 -!- hjallow [55e29582@gateway/web/freenode/ip.85.226.149.130] has joined #go-nuts 11:57 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has joined #go-nuts 11:58 -!- niekie [quasselcor@CAcert/Assurer/niekie] has joined #go-nuts 12:00 < hjallow> Im using the template in go and would like to iterate over an array structs I have. The structs have some string values and I'd like to print those, how can I do that? Im using {.repeated section Posts}, and then the @-mark, but that prints all those strings. I'd like to go with something like $.Title, where Title would be the variable I would like to print from the struct. How can I do that? 12:02 < wrtp> hjallow: have you tried using @.Title? 12:02 < wrtp> or just {Title} 12:04 < hjallow> wrtp: wow, so simple it was. {Title} made it! Thank you 12:04 < wrtp> np 12:06 -!- vsayer [~vivek@c-67-170-236-166.hsd1.ca.comcast.net] has joined #go-nuts 12:06 -!- napsy [~luka@193.2.66.6] has quit [Quit: Lost terminal] 12:13 -!- artefon [~thiago@189.26.238.224] has joined #go-nuts 12:17 -!- niemeyer_away [~niemeyer@201-11-241-2.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 12:17 -!- saturnfive1 [~saturnfiv@210.74.155.131] has joined #go-nuts 12:18 -!- artefon [~thiago@189.26.238.224] has quit [Ping timeout: 248 seconds] 12:19 -!- jgonzalez [~jgonzalez@173-14-137-134-NewEngland.hfc.comcastbusiness.net] has joined #go-nuts 12:25 -!- zerosanity [~josh@8.20.178.82] has quit [Remote host closed the connection] 12:27 -!- saturnfive1 [~saturnfiv@210.74.155.131] has quit [Read error: Connection reset by peer] 12:31 -!- artefon [~thiago@187.59.211.65] has joined #go-nuts 12:36 < marten> What could be a reason that my program crashes with out of memory and has hundreds of goroutines, even though I never start any? does the fmt package use them? 12:37 -!- plainhao [~plainhao@208.75.85.237] has joined #go-nuts 12:38 < marten> and I have a curious problem. I use the http server package and handle requests. each request handling can take quite some memory, around 70mb 12:39 < marten> however, when issuing many such requests, I eventually get an out of memory error, even though it is always the same request and the handlings are totally independent and sequential with runtime.GC() calls between them 12:39 < marten> anyone else run into this? 12:43 -!- sacho [~sacho@87-126-50-194.btc-net.bg] has joined #go-nuts 12:45 < wrtp> marten: hundreds of goroutines or hundreds of threads? 12:46 < wrtp> what platform are you using? there was an error recently fixed where threads would take loads of memory in error 12:48 -!- zozoR [~Morten@5634631b.rev.stofanet.dk] has joined #go-nuts 12:48 < marten> wrtp: hundres of goroutines 12:49 < marten> wrtp: I use the fmt and zlib packages, I can imagine they generate them? 12:49 < wrtp> marten: no 12:49 < marten> oh, and it's on 386, btw 12:49 < wrtp> what OS? 12:49 < marten> linux 12:50 < marten> most goroutines seem to be started by io.Pipe 12:51 < marten> http server then, I guess 12:52 < wrtp> i can't see any calls to io.Pipe in http 12:53 < wrtp> what are all the goroutines doing? 12:53 < wrtp> could you paste all the stack traces? 12:54 < marten> this is one: http://pastebin.com/BmQTssyf 12:54 < marten> they're all like that 12:54 < wrtp> marten: could you paste *all* the traces? 12:55 < marten> oh, ok, hang on 12:56 -!- ekontsevoy [~ekontsevo@209.20.66.251] has quit [Read error: Operation timed out] 12:56 -!- hypertux [~hypertux@vps1.joelegasse.com] has joined #go-nuts 12:58 < marten> http://pastebin.com/Z9dMjT41 12:58 < wrtp> marten: are you using compress/flat ? 12:58 < wrtp> s/flat/flate/ 12:59 < marten> on another occasion, btw, I got a "throw: out of memory", same kind of trace 12:59 < wrtp> ah, you are 12:59 < wrtp> i know what your problem is 12:59 < wrtp> :-) 12:59 < wrtp> or at least i think i do 12:59 < marten> yes, probably, via zlib 13:00 -!- ekontsevoy [~ekontsevo@209.20.66.251] has joined #go-nuts 13:01 -!- skejoe [~skejoe@188.114.142.217] has joined #go-nuts 13:01 < wrtp> i bet you're not closing the Writer 13:01 < wrtp> (or the Reader) 13:01 < wrtp> that you get from zlib 13:02 < wrtp> hence the goroutines used to manage the pipe aren't cleaned up 13:02 < marten> ah, and they all keep their buffers in memory eh 13:02 < wrtp> no 13:02 < wrtp> there's no buffering in an io.Pipe 13:03 < wrtp> but each goroutine will take memory 13:03 < marten> oic 13:03 < marten> well, you're right, I'll fix that and check the memory usage again 13:03 < wrtp> although i'd have expected many more than a few hundred before it dies 13:03 < wrtp> there's probably other memory hanging around in the compressor too 13:10 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has quit [Quit: JusticeFries] 13:10 < marten> wow, when I add defer dec.Close() (dec is from zlib.NewReader()), memory usage shoots to even greater heights 13:11 < marten> for 1 request (around 4000 new zlib readers): 480MB instead of 50 13:14 < wrtp> wow, you start 4000 zlib readers for 1 request? 13:15 -!- lmoura_ [~lauromour@186.215.206.130] has quit [Ping timeout: 246 seconds] 13:16 < marten> oh, my bad, the deferred call happened outside a loop 13:16 < marten> I guess the garbage collector usually takes care of things some of the time, but couldn't anymore with the defer statement in place 13:17 < marten> on my laptop the memory usage is now quite a bit less, thanks! will try it on the linux server with larger requests now 13:18 < wrtp> marten: did you mean "inside a loop" ? 13:19 < marten> yes, the statement is inside a loop 13:19 < marten> so that's around 4000 defers :*) 13:20 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-154-176.clienti.tiscali.it] has joined #go-nuts 13:20 < wrtp> you know the defer won't actually happen until the function returns, right? 13:20 < marten> yes 13:21 < wrtp> i'm not surprised it used loads more memory! 13:21 < marten> what I mean is that with the deferred close in place, there was always a reference to the zlib reader until all 4000 were done 13:21 < wrtp> it would have prevented GC of dec 13:21 < marten> yes :) 13:23 < marten> so I gather a Close() is not strictly necessary, except for the fact that I create so many zlib readers in a loop? 13:24 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-169-219.clienti.tiscali.it] has quit [Ping timeout: 276 seconds] 13:25 < wrtp> Pipe will leak goroutines unless it gets closed 13:25 < wrtp> it should probably have a finalizer 13:28 < marten> ok, thanks wrtp! that goroutine problem is now gone 13:30 -!- `micro` [~quassel@96-42-224-166.dhcp.roch.mn.charter.com] has joined #go-nuts 13:31 < wrtp> cool 13:34 < marten> memory usage is a lot less now :) still seems to go up more than I'd like though.. (as seen through 'top'). every few requests it suddenly goes up by a few MB. One request takes around 30MB now, but memory usage has risen to 128MB 13:34 < marten> heap fragmentation, etc? 13:35 < wrtp> i don't know. have you tried memory profiling? 13:36 < marten> yes, with http/pprof, but that was before your fix to the zlib code, I'll have to do it again 13:36 < marten> seems to have stabilized around 128MB now 13:39 < xyproto> marten: cat /proc/PID/smaps can be handy, for an overview of memory use, where PID is the pid of your running app 13:41 < xyproto> okay, perhaps not handy, but at least comprehensive ;) 13:42 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 13:42 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts 13:45 < marten> :) 13:47 < xyproto> "effective go" says that make creates slices, maps, and channels only. Is this really true? Is it only those three? For sure? :) 13:47 < xyproto> Or can make be used to allocate&initialize other types as well? 13:47 < xyproto> I just can't believe my eyes ;) 13:48 < marten> I think make() is because new() can't be used for the same thing. new([]int) would give you a *[]int 13:50 < wrtp> xyproto: that's correct 13:50 < wrtp> there was a proposal to have make(*T) be the same as new(T) is now 13:51 < wrtp> i think it was a good idea 13:51 < wrtp> marten: i just did an experiment with finalizers and it looks as if they don't work very well... 13:51 < wrtp> see http://code.google.com/p/go/issues/detail?id=1671 13:52 < wrtp> i think the go GC still has a way to go 13:53 < marten> ah, thanks! yes, so it seems 13:54 < marten> I'm also running into other GC problems on x86. like this: http://code.google.com/p/go/issues/detail?id=1620 13:54 -!- GilJ_ [~GilJ@zeus.ugent.be] has quit [Ping timeout: 252 seconds] 13:54 < marten> and the occasional "malloc/free - deadlock", that shouldn't happen either, right? :) 13:54 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 13:55 < wrtp> BTW the system is generally better trodden in its amd64 target, so if you're having problems with 386, you might try that 13:55 < xyproto> wrtp: thanks for the confirmation. Combining make and new sounds both interesting and sensible. 13:55 -!- lmoura [~lauromour@186.215.206.130] has joined #go-nuts 14:02 < marten> wrtp: yes, I haven't run into any runtime problems on my macbook. It's all on the ec2 server 14:04 < wrtp> marten: which is only 32 bit, right? 14:04 < pTonnerre> And no IPv6 14:05 < marten> yeah 14:07 < marten> I'm going to abandon the daemon-style server, I think and reimplement it as a cgi app. More overhead because of forking and I can't easily cache results, but that way I get a fresh Go process every time 14:09 < wrtp> marten: the go runtime should get better fairly soon - they're prioritising bug fixes currently 14:10 -!- lmoura [~lauromour@186.215.206.130] has quit [Ping timeout: 246 seconds] 14:10 < wrtp> with a view to aiming for a stable release 14:10 < marten> good news, I'll switch back to the daemon asap then :) 14:11 < marten> don't want to think about having to reimplement the server in C(++) :) 14:15 < xyproto> why does fmt.Println() give a memory location for printing the pointer to an int, but not for printing the pointer to a struct? 14:16 < xyproto> if I print the address to an int, I get something like: 0xf8400000c0, but for a struct that's just three numbers, I get: &{0 0 0} 14:16 < xyproto> Is it just because it's friendlier? 14:16 < wrtp> xyproto: yes. if you really want to see the pointer value, use fmt.Printf("%p") 14:16 < xyproto> wrtp: I see. Thanks :) 14:25 -!- lmoura [~lauromour@186.215.206.130] has joined #go-nuts 14:36 -!- simon_ [~simon@87.72.77.195] has joined #go-nuts 14:45 -!- skejoe [~skejoe@188.114.142.217] has quit [Quit: Lost terminal] 14:52 < nsf> uhm.. guys 14:52 < nsf> type X *[10]Y; 14:52 < nsf> type Y X; 14:52 < nsf> is this should be valid or not? 14:52 < nsf> gc rejects that code 14:52 < nsf> but to me it looks valid 14:53 < nsf> since X's size doesn't depend on Y's size 14:53 < nsf> iant: ? 14:53 < nsf> someone? :) 14:54 < wrtp> nsf: yeah, looks like a bug 14:54 < wrtp> type X *[10]X works fine 14:54 < wrtp> and that's just as recursive 14:55 < nsf> yeah 14:55 < wrtp> raise an issue 14:55 < nsf> ok 14:55 < nsf> I'm implementing the same stuff in crawl 14:55 < nsf> and I have the same bug 14:55 < nsf> :D 14:57 -!- wrtp [~rog@2.97.144.60] has quit [Quit: wrtp] 14:58 -!- GilJ [~GilJ@zeus.ugent.be] has joined #go-nuts 15:00 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 15:00 < nsf> does anyone remember where spec says something about recursive types? 15:01 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has joined #go-nuts 15:04 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 15:05 < nsf> can't find it :( 15:05 < nsf> I do remember some comments on that in gofrontend though 15:07 -!- tensorpudding [~user@99.148.205.193] has joined #go-nuts 15:08 -!- dahankzter [~henrik@92.244.3.192] has joined #go-nuts 15:10 < nsf> anyways, I don't see a reason why that's valid behaviour 15:10 < nsf> as wrtp pointed out 15:10 < nsf> type X *[10]X is the same as type X *[10]Y; type Y X; 15:11 < nsf> just a matter of indirection 15:14 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.] 15:16 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts 15:17 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts 15:17 -!- wrtp [~rog@2.97.144.60] has joined #go-nuts 15:18 -!- JusticeFries [~JusticeFr@c-71-229-198-237.hsd1.co.comcast.net] has joined #go-nuts 15:18 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat] 15:19 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts [] 15:23 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts 15:24 -!- jyxent [~jyxent@129.128.191.96] has quit [Read error: Connection reset by peer] 15:24 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 15:25 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 15:25 -!- statik_ [u986@gateway/web/irccloud.com/x-uktqukhxctfqxqrx] has quit [] 15:27 -!- jyxent [~jyxent@129.128.191.96] has joined #go-nuts 15:28 -!- karpar [~user@112.96.225.30] has joined #go-nuts 15:30 -!- piranha [~piranha@D57D1AB3.static.ziggozakelijk.nl] has quit [Quit: Computer has gone to sleep.] 15:37 < nsf> http://ompldr.org/vODVxbg/2011-04-07-214046_796x354_scrot.png 15:37 < nsf> hehe, works in crawl 15:37 < nsf> :P 15:37 < nsf> size matters! 15:37 < nsf> :) 15:37 < nsf> lol 15:38 < aiju> a compiler which requies having $TERM set properly 15:39 < aiju> progress! 15:39 -!- niekie [quasselcor@CAcert/Assurer/niekie] has quit [Read error: Connection reset by peer] 15:39 < nsf> it doesn't 15:39 < nsf> I just use default ASCII escape codes 15:39 < aiju> ... that's an oxymoron 15:39 < nsf> if isatty is false, no color stuff is being dumped 15:40 < nsf> isatty(fileno(stderr)) I mean 15:41 -!- artefon [~thiago@187.59.211.65] has quit [Read error: Connection reset by peer] 15:41 * ww struggles to figure out what type X *X means 15:42 < nsf> ww: don't look at names look at types nature 15:42 < nsf> *X is just a pointer 15:42 < nsf> the type it points to is just a detail 15:42 < nsf> type X *X is a type X which is a pointer, that points to type X 15:42 < nsf> useless feature if used that way 15:43 < nsf> more useful in other scenarios 15:43 < nsf> like: 15:43 < nsf> type X struct { data int; next *X; } 15:43 < nsf> or 15:43 < xyproto> when should one be printing with log.Print* instead with fmt.Print*? 15:43 < nsf> type X func() X; 15:44 < nsf> xyproto: log.* for logging, fmt.* for formatting and printing 15:44 < nsf> makes sense? :) 15:44 < nsf> xyproto: log just provides a bit more flexibility 15:45 < nsf> you can redirect it in a more flexible way 15:45 * ww almost never uses fmt.Print, and only uses fmt.Sprintf for making os.ErrorString 15:45 < aiju> ww: what do you use? 15:45 < nsf> I don't use 'log' packages 15:45 < ww> log 15:45 < nsf> I use fmt.Print :) 15:46 < xyproto> nsf: So far I've been using fmt as well, but I see source code referring to log instead here and there 15:46 < ww> i generally assume the program will be run as a daemon or by cron 15:46 < nsf> fmt.Fprintf(os.Stderr, ...) is my favourite :) 15:46 < ww> and i like to see file.go:lineno in the output 15:46 < xyproto> nsf: traditional and clean :) 15:46 < xyproto> ww: the line number argument is a good one, I think 15:47 -!- str1ngs [~strings@unaffiliated/str1ngs] has quit [Quit: WeeChat 0.3.0] 15:48 < nsf> omg 15:48 < nsf> str1ngs uses archlinux and his weechat says it's 0.3.0 15:48 < nsf> it's really old :) 15:48 < ww> has irc really changed that much recently? :: 15:49 < nsf> ww: in what sense? 15:49 < wrtp> i tend to use log so i can easily distinguish between log messages and genuine uses of fmt 15:49 < xyproto> nsf: 0.3.4 here, I use Arch as well, just ctcp nick version me :) 15:49 < nsf> as a protocol it's all as in RFC :) 15:49 < nsf> xyproto: yeah, me too.. 0.3.4 15:49 < wrtp> seeing import "log" is a sign that i haven't removed the debugging 15:49 < wrtp> also, fmt.Printf isn't entirely thread safe 15:50 < wrtp> you can get interleaved output, which is annoying when you're dealing with thousands of error messages 15:50 < aiju> nsf: the IRC RFC is followed by neither servers nor clients 15:50 < nsf> aiju: :D 15:50 < aiju> it's even worse than HTTP 15:50 < aiju> and yeah, that seems to be possible 15:50 < nsf> aiju: you should be more positive 15:50 < nsf> how about saying "this is awesome" about something? 15:50 < nsf> :) 15:51 < wrtp> nah, aiju is mr negative. that's his role. 15:51 < xyproto> yeah, where's the picture of aiju with a t-shirt saying "There is actually stuff I like"? ;) 15:51 < xyproto> :P 15:51 < xyproto> (ref. an earlier conversation) 15:52 < wrtp> aiju: are you actually uriel by another alias? 15:53 < aiju> wrtp: hahahahahahaha 15:53 < xyproto> I get a syntax error if I try out the panic/recover example code at: http://gonuts.org/doc/go_spec.html#Handling_panics 15:53 < aiju> there are two things i like 15:54 < aiju> both of them meow and one of them likes salami 15:54 < xyproto> aiju: two very strange dogs? 15:54 < aiju> xyproto: :P 15:54 < nsf> cynizm, scepticism and pessimism are qualities of a good software developer actually :) 15:55 < wrtp> xyproto: compiles fine for me 15:56 < xyproto> wrtp: strange. Thanks. I'll double-check everything I've done. 15:56 < xyproto> nsf: I bet it's not the most innovative software developers, but I guess that personality type writes good code 15:58 -!- JusticeFries [~JusticeFr@c-71-229-198-237.hsd1.co.comcast.net] has quit [Quit: JusticeFries] 15:58 < nsf> xyproto: well, I'm referring to one of the famous russian engineer http://en.wikipedia.org/wiki/Sergei_Korolev 15:58 < nsf> "Short of stature, heavily built, with head sitting awkwardly on his body, with brown eyes glistening with intelligence, he was a skeptic, a cynic and a pessimist who took the gloomiest view of the future." 15:58 < nsf> that's the quote 15:58 < nsf> quite a person he was 15:59 < nsf> building a rocket out of sketches and launching it to space in a month :) 15:59 < ww> yeah, but that's russians 15:59 -!- str1ngs [~strings@unaffiliated/str1ngs] has joined #go-nuts 15:59 < nsf> it doesn't matter, the qualities of a person are more or less the same for similar things 16:00 < nsf> if you are a software developer you need to be as pragmatic as possible (imho) 16:00 < nsf> and these qualities help a lot 16:00 -!- aho [~nya@fuld-590c6331.pool.mediaWays.net] has joined #go-nuts 16:00 < xyproto> There are so many people, so equal, but so weird. Some have a third nipple, while others have a beard. 16:01 < nsf> ww: but maybe I'm biased, since I'm russian as well 16:02 < nsf> still I think more about qualities than a concrete person 16:04 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit [Quit: Venom_X] 16:06 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts 16:06 -!- karpar [~user@112.96.225.30] has quit [Quit: Yow! Legally-imposed CULTURE-reduction is CABBAGE-BRAINED!] 16:10 < nsf> He was only ever referred to by the initials of his first two names, SP, or by the mysterious title of "Chief Designer", or simply "Chief". 16:10 < nsf> lol, Master Chief? :) 16:11 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has joined #go-nuts 16:16 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts 16:16 -!- tensai_cirno [~cirno@77.232.15.216] has quit [Remote host closed the connection] 16:16 -!- JusticeFries [~JusticeFr@c-71-229-198-237.hsd1.co.comcast.net] has joined #go-nuts 16:20 -!- kamaji [~kamaji@cpc2-aztw22-2-0-cust775.aztw.cable.virginmedia.com] has joined #go-nuts 16:22 -!- exch [~exch@31.151.123.254] has quit [Read error: Connection reset by peer] 16:23 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the connection] 16:23 -!- tvw [~tv@e176002147.adsl.alicedsl.de] has quit [Remote host closed the connection] 16:23 -!- exch [~exch@31-151-123-254.dynamic.upc.nl] has joined #go-nuts 16:25 -!- ahihi2 [~transient@cs27123003.pp.htv.fi] has quit [Ping timeout: 246 seconds] 16:29 -!- simon_ [~simon@87.72.77.195] has quit [Quit: /dev/null] 16:30 < ww> nsf: znaio, ya toje 16:30 < nsf> hehe 16:30 -!- tensai_cirno [~cirno@77.232.15.216] has joined #go-nuts 16:38 -!- eugenejen [~eugenejen@2001:470:1f07:458:c62c:3ff:fe18:5550] has joined #go-nuts 16:38 -!- eugenejen [~eugenejen@2001:470:1f07:458:c62c:3ff:fe18:5550] has left #go-nuts [] 16:43 -!- marten [~marten@62.21.178.171] has quit [Quit: marten] 16:45 -!- synx` [~dhorn@unaffiliated/synx/x-4957395] has joined #go-nuts 16:45 * synx` slaps dforsyth around a bit with a large trout 16:45 * synx` slaps dforsyth around a bit with a large trout 16:45 < synx`> dforsyth 16:45 < synx`> why you no idle proggit anymore 16:45 -!- saml [~sam@adfb12c6.cst.lightpath.net] has joined #go-nuts 16:46 -!- saml [~sam@adfb12c6.cst.lightpath.net] has left #go-nuts ["Leaving"] 16:49 -!- wrtp [~rog@2.97.144.60] has quit [Quit: wrtp] 16:52 -!- hopso [~hopso@a91-152-180-169.elisa-laajakaista.fi] has joined #go-nuts 16:53 -!- hopso [~hopso@a91-152-180-169.elisa-laajakaista.fi] has left #go-nuts [] 16:53 -!- hopso [~hopso@a91-152-180-169.elisa-laajakaista.fi] has joined #go-nuts 16:54 -!- exch [~exch@31-151-123-254.dynamic.upc.nl] has quit [Read error: Connection reset by peer] 16:54 -!- exch [~exch@31-151-123-254.dynamic.upc.nl] has joined #go-nuts 16:59 -!- ahihi2 [~transient@gprs-prointernet-ff146a00-20.dhcp.inet.fi] has joined #go-nuts 17:00 -!- ako [~nya@fuld-590c68e3.pool.mediaWays.net] has joined #go-nuts 17:00 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 17:00 -!- aho [~nya@fuld-590c6331.pool.mediaWays.net] has quit [Disconnected by services] 17:00 -!- ExtraSpice [XtraSpice@88.118.35.153] has quit [Ping timeout: 276 seconds] 17:05 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 246 seconds] 17:05 < plexdev> http://is.gd/e5fPeU by [Russ Cox] in go/lib/codereview/ -- codereview: drop Author: line on self-clpatch 17:05 < plexdev> http://is.gd/Y0ugNK by [Russ Cox] in go/lib/codereview/ -- codereview: fix clpatch 17:08 -!- JusticeFries [~JusticeFr@c-71-229-198-237.hsd1.co.comcast.net] has quit [Quit: JusticeFries] 17:09 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts 17:12 -!- carrus85 [~carrus85@64.0.193.15] has joined #go-nuts 17:13 -!- virtualsue [~chatzilla@nat/cisco/x-rkbrhhywvgmsiltk] has quit [Ping timeout: 260 seconds] 17:14 -!- niemeyer [~niemeyer@201-11-241-2.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 240 seconds] 17:15 -!- niemeyer [~niemeyer@201-11-241-2.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 17:15 -!- JusticeFries_ [~JusticeFr@c-71-229-198-237.hsd1.co.comcast.net] has joined #go-nuts 17:21 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 17:22 < plexdev> http://is.gd/LqOd6J by [Mikkel Krautz] in go/src/cmd/ld/ -- ld: fix Mach-O bss bug 17:29 -!- ahihi2 [~transient@gprs-prointernet-ff146a00-20.dhcp.inet.fi] has quit [Ping timeout: 252 seconds] 17:31 -!- ahihi2 [~transient@cs181182126.pp.htv.fi] has joined #go-nuts 17:34 -!- keithcascio [~keithcasc@nat/google/x-qixexvzupawgnbax] has joined #go-nuts 17:35 -!- synx` [~dhorn@unaffiliated/synx/x-4957395] has left #go-nuts [] 17:38 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 17:40 -!- tensai_cirno [~cirno@77.232.15.216] has quit [Quit: Leaving] 17:45 -!- tensai_cirno [~cirno@77.232.15.216] has joined #go-nuts 17:46 -!- JusticeFries [~JusticeFr@c-71-229-198-237.hsd1.co.comcast.net] has quit [Quit: JusticeFries] 17:52 -!- imsplitbit [~imsplitbi@64.39.4.132] has joined #go-nuts 17:53 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 246 seconds] 17:59 < taruti> Is there a timeframe for better GC? 18:09 -!- tensorpudding [~user@99.148.205.193] has quit [Read error: Connection reset by peer] 18:09 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 18:17 -!- itrekkie [~itrekkie@ip72-211-131-205.tc.ph.cox.net] has joined #go-nuts 18:22 -!- zimsim [~simon@87.72.77.195] has quit [Quit: /dev/null] 18:24 < plexdev> http://is.gd/uzuCbi by [Mikkel Krautz] in go/src/cmd/ld/ -- ld: fix Mach-O X86_64_RELOC_SIGNED relocations 18:26 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts 18:28 -!- tensorpudding [~user@99.148.205.193] has joined #go-nuts 18:28 -!- cafesofie [~cafesofie@ool-4a5a6ee5.dyn.optonline.net] has joined #go-nuts 18:30 -!- thiago__ [~thiago@bananal.lbd.dcc.ufmg.br] has joined #go-nuts 18:30 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X] 18:32 -!- skejoe [~skejoe@188.114.142.217] has joined #go-nuts 18:33 -!- cirno_ [~cirno@77.232.15.216] has joined #go-nuts 18:33 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has quit [Ping timeout: 260 seconds] 18:37 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:fde4:d9fc:df41:dcd2] has joined #go-nuts 18:39 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat] 18:46 -!- ssteel [824c20d1@gateway/web/freenode/ip.130.76.32.209] has joined #go-nuts 18:50 -!- arvindht [c2ed8e11@gateway/web/freenode/ip.194.237.142.17] has quit [Ping timeout: 252 seconds] 18:50 -!- brad__ [621a78ee@gateway/web/freenode/ip.98.26.120.238] has quit [Ping timeout: 252 seconds] 18:51 -!- hjallow [55e29582@gateway/web/freenode/ip.85.226.149.130] has quit [Ping timeout: 252 seconds] 18:51 -!- awidegreen [~quassel@c-0acfe555.08-2-73746f39.cust.bredbandsbolaget.se] has joined #go-nuts 18:52 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Read error: Connection reset by peer] 18:52 -!- ssteel [824c20d1@gateway/web/freenode/ip.130.76.32.209] has quit [Ping timeout: 252 seconds] 18:54 -!- Adys [~Adys@unaffiliated/adys] has quit [Read error: Operation timed out] 18:54 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts 18:55 -!- thiago__ [~thiago@bananal.lbd.dcc.ufmg.br] has quit [Read error: Operation timed out] 18:56 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has joined #go-nuts 19:05 -!- TheMue [~TheMue@p5DDF5589.dip.t-dialin.net] has joined #go-nuts 19:11 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Read error: Connection reset by peer] 19:11 < plexdev> http://is.gd/ym8aUR by [Mikio Hara] in go/src/pkg/syscall/ -- syscall: fix build 19:12 < aiju> how hard is it to not break the build? 19:12 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts 19:12 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 19:14 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 276 seconds] 19:17 -!- meanburrito920 [~john@192.5.109.34] has joined #go-nuts 19:17 -!- meanburrito920 [~john@192.5.109.34] has quit [Changing host] 19:17 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts 19:17 -!- LuitvD [~me@beigetower/luitvd] has joined #go-nuts 19:17 < LuitvD> hello! :) 19:18 < LuitvD> what's wrong with this bit: http://paste.pocoo.org/show/367414/ 19:19 < LuitvD> I'm not quite sure what causes this, so I hope someone here can enlighten me :) 19:20 < TheMue> The b []byte is not used 19:20 < TheMue> due to the b, err := ... declaring a new b 19:21 -!- Venom_X [~pjacobs@adsl-99-20-147-171.dsl.aus2tx.sbcglobal.net] has joined #go-nuts 19:21 < TheMue> := is declaration and assignment in one step 19:22 -!- cirno_ [~cirno@77.232.15.216] has quit [Quit: Leaving] 19:22 -!- tensai_cirno [~cirno@77.232.15.216] has quit [Quit: Leaving] 19:25 -!- JusticeFries [~JusticeFr@c-71-229-198-237.hsd1.co.comcast.net] has joined #go-nuts 19:27 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has quit [Quit: bye] 19:27 < skejoe> Any easy way to draw an image.Image onto an X11 window using exp/draw? 19:28 < niemeyer> LuitvD: You can use _ in an assignment, when you don't care about the variable 19:28 < LuitvD> TheMue: so I should add var err os.Error before b, err := ... and change it to = instead of := to avoid this? 19:28 < niemeyer> _, err := ... 19:28 < niemeyer> LuitvD: ^ 19:28 < LuitvD> niemeyer: yeah, but I do want the b outside the nested function 19:28 < LuitvD> outside the for {} here 19:29 < LuitvD> (but an if block in my other code) 19:29 < hopso> "var err os.Error" and "=" 19:29 -!- Hassium [~dsc@89.211.198.113] has quit [Ping timeout: 252 seconds] 19:29 < skelterjohn> skejoe: as I recall, the only way to draw onto an x11 window with exp/draw is to manipulate an image.Image 19:29 < niemeyer> LuitvD: Ah, yes.. the error message has saved you in that case. You're declaring a *local* b 19:29 < TheMue> why do you use a for-loop? 19:29 < niemeyer> LuitvD: You want "=" indeed 19:29 < niemeyer> TheMue: LOL 19:30 < LuitvD> TheMue: it's just to put it in a block for the example 19:30 < LuitvD> TheMue: in my "real" code it's an if block 19:30 < TheMue> ok 19:30 < skelterjohn> skejoe: ah, a draw.Image, which embeds an image.Image 19:31 < LuitvD> TheMue: but thanks for pointing out a performance flaw in my example there ;-) 19:31 < TheMue> I would have used a different structure. I'm mostly avoiding declarations with var. instead I often return directly. 19:31 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 19:32 < skelterjohn> i find the only time i use var is for globals, and for when i want to avoid shadowing another variable when the LHS has multiple elements 19:32 < napsy> Hello. Is there a guarantee for net.conn.Read() to read all the incoming data or is it like C's read()? 19:32 < TheMue> skelterjohn: yep, exactly 19:32 < skelterjohn> napsy: It almost certainly just calls C's read() 19:32 < skelterjohn> but i haven't looked 19:32 < skejoe> skelterjohn: the problem is that exp/draw only has Draw(...) which draws a single color rectangle onto the screen. 19:33 < LuitvD> TheMue: I'm just not thinking static enough yet, coming from extensive use of Python 19:33 < aiju> napsy: there is a ReadAll somewhere 19:33 < skejoe> skelterjohn: ah wait. 19:33 < napsy> skelterjohn: so I have to repeat Read() to get all data? 19:33 < skejoe> "// Screen returns an editable Image for the window." 19:33 -!- tensai_cirno [~cirno@77.232.15.216] has joined #go-nuts 19:33 < skelterjohn> if you can put your image.Image into theWindow.Screen().Image, you're set 19:33 < aiju> napsy: io.ReadFull 19:33 < TheMue> LuitvD: Hehe, I'm from Python, Smalltalk, Erlang, all dynamic. 19:33 < skelterjohn> napsy: what aiju said 19:34 < napsy> hum so I have to create a Reader from my connection? 19:34 < LuitvD> TheMue: lol, I'm trying hard to get used to explicitly declaring variables in the scope I use them 19:34 < aiju> napsy: the connection is a reader 19:34 < aiju> io.ReadFull(connection, buffer) 19:34 < napsy> oh ok 19:35 < TheMue> LuitvD: One of the powerful elements of Go is :=. 19:35 < LuitvD> TheMue: true, but that's what makes it dangerous too (my problem with this piece of code was because of it) 19:36 < skelterjohn> it's important to know what an operator does before you use it 19:36 < LuitvD> hehehe 19:36 < TheMue> LuitvD: Hmm, never had any problem. Using a meaningful variable name helps 19:36 < LuitvD> oh I know, I just overlooked a consequence 19:36 < aiju> skelterjohn: that's an answer to many problems ;P 19:36 < LuitvD> hahah 19:37 < LuitvD> "don't use it before you know what it does" 19:37 < LuitvD> thanks for the great advice, I'm off hacking again :) 19:39 -!- Hassium [~dsc@89.211.240.206] has joined #go-nuts 19:41 < skejoe> skelterjohn: uhm could you help me do that? :) 19:41 < skelterjohn> my quick look at the godoc didn't suggest anything other than looping and setting pixels 19:42 < skelterjohn> which is an unsatisfying solution, obviously 19:42 < skelterjohn> the exp/draw stuff is not particularly polished (like anything in exp) 19:42 < skejoe> Yeah that's what I thought too. 19:43 < skejoe> But I will do that. Thanks. 19:44 -!- sacho [~sacho@87-126-50-194.btc-net.bg] has quit [Read error: Connection reset by peer] 19:44 < plexdev> http://is.gd/s07GZf by [Russ Cox] in go/src/pkg/syscall/ -- syscall: freebsd/386 Syscall9 (fix build) 19:44 < plexdev> http://is.gd/BHwhtk by [Russ Cox] in go/src/pkg/syscall/ -- syscall: fix freebsd/386 again 19:49 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4] 19:53 -!- zozoR [~Morten@5634631b.rev.stofanet.dk] has quit [Remote host closed the connection] 19:55 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 19:57 < hopso> I'm having hard time trying to wrap my head around channels. I never know if I should use them or not. 19:58 < skelterjohn> they're certainly not the only tool to use 19:58 < skelterjohn> in general, communication between goroutines should be done using channels 19:58 < skelterjohn> they can be used for other things as well 20:02 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Ping timeout: 240 seconds] 20:04 -!- plainhao [~plainhao@208.75.85.237] has quit [Quit: plainhao] 20:07 -!- skejoe [~skejoe@188.114.142.217] has quit [Quit: Lost terminal] 20:09 -!- pothos_ [~pothos@111-240-166-37.dynamic.hinet.net] has joined #go-nuts 20:10 -!- pothos [~pothos@111-240-167-241.dynamic.hinet.net] has quit [Read error: Operation timed out] 20:11 -!- pothos_ [~pothos@111-240-166-37.dynamic.hinet.net] has quit [Read error: Connection reset by peer] 20:11 -!- archevan [~archevan@67.69.227.99] has quit [Ping timeout: 246 seconds] 20:12 -!- pothos [~pothos@111-240-166-37.dynamic.hinet.net] has joined #go-nuts 20:13 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts 20:23 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:fde4:d9fc:df41:dcd2] has quit [Quit: Leaving.] 20:24 -!- tav_ [~tav@2.96.36.110] has joined #go-nuts 20:24 -!- tav [~tav@92.7.93.110] has quit [Ping timeout: 246 seconds] 20:24 -!- jgonzalez [~jgonzalez@173-14-137-134-NewEngland.hfc.comcastbusiness.net] has quit [Ping timeout: 240 seconds] 20:29 -!- JusticeFries [~JusticeFr@c-71-229-198-237.hsd1.co.comcast.net] has quit [Quit: JusticeFries] 20:36 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 20:43 -!- alexandere [~alexander@eijg.xs4all.nl] has joined #go-nuts 20:44 -!- dahankzter [~henrik@92.244.3.192] has quit [Read error: Connection reset by peer] 20:44 -!- JusticeFries [~JusticeFr@c-71-229-198-237.hsd1.co.comcast.net] has joined #go-nuts 20:46 -!- iant [~iant@70.36.246.130] has joined #go-nuts 20:46 -!- mode/#go-nuts [+v iant] by ChanServ 20:47 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Read error: Connection reset by peer] 20:49 -!- Fish [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the Fish] 20:53 -!- JusticeFries [~JusticeFr@c-71-229-198-237.hsd1.co.comcast.net] has quit [Quit: JusticeFries] 20:54 -!- wrtp [~rog@2.97.144.60] has joined #go-nuts 20:59 -!- iant [~iant@70.36.246.130] has quit [Quit: Leaving.] 21:00 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-155-93.clienti.tiscali.it] has joined #go-nuts 21:00 -!- wrtp [~rog@2.97.144.60] has quit [Quit: wrtp] 21:01 -!- Mr_Dark [~dk@poviko.demon.nl] has quit [Read error: Connection reset by peer] 21:01 -!- Mr_Dark [~dk@poviko.demon.nl] has joined #go-nuts 21:02 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 21:03 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-154-176.clienti.tiscali.it] has quit [Ping timeout: 246 seconds] 21:03 -!- Venom_X [~pjacobs@adsl-99-20-147-171.dsl.aus2tx.sbcglobal.net] has quit [Ping timeout: 246 seconds] 21:04 -!- Venom_X [~pjacobs@adsl-99-20-147-171.dsl.aus2tx.sbcglobal.net] has joined #go-nuts 21:05 -!- TheMue [~TheMue@p5DDF5589.dip.t-dialin.net] has quit [Quit: TheMue] 21:11 -!- ako [~nya@fuld-590c7467.pool.mediaWays.net] has joined #go-nuts 21:14 -!- aho [~nya@fuld-590c68e3.pool.mediaWays.net] has quit [Ping timeout: 246 seconds] 21:20 -!- joelkronander [~joelkrona@c-bf2fe253.617-1-64736c22.cust.bredbandsbolaget.se] has joined #go-nuts 21:21 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 21:21 -!- iant [~iant@70.36.246.130] has joined #go-nuts 21:21 -!- mode/#go-nuts [+v iant] by ChanServ 21:21 -!- iant [~iant@70.36.246.130] has quit [Client Quit] 21:21 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined #go-nuts 21:25 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Quit: Computer has gone to sleep.] 21:29 -!- Stiletto [stiletto@69.195.144.4] has joined #go-nuts 21:32 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 21:33 -!- awidegreen [~quassel@c-0acfe555.08-2-73746f39.cust.bredbandsbolaget.se] has quit [Remote host closed the connection] 21:38 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal] 21:43 -!- imsplitbit [~imsplitbi@64.39.4.132] has quit [Quit: Bye!] 21:46 -!- LuitvD [~me@beigetower/luitvd] has quit [Quit: Leaving] 21:48 -!- hopso [~hopso@a91-152-180-169.elisa-laajakaista.fi] has quit [Remote host closed the connection] 21:50 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Ping timeout: 258 seconds] 21:52 -!- tav [~tav@2.96.36.110] has quit [Ping timeout: 246 seconds] 21:53 -!- artefon [~thiago@187.59.211.65] has joined #go-nuts 21:55 -!- Stiletto [stiletto@69.195.144.4] has quit [Ping timeout: 260 seconds] 21:59 -!- Tuller [~tuller@c-68-33-63-208.hsd1.va.comcast.net] has joined #go-nuts 21:59 -!- tav [~tav@92.7.121.92] has joined #go-nuts 22:00 -!- JusticeFries_ [~JusticeFr@c-71-229-198-237.hsd1.co.comcast.net] has joined #go-nuts 22:01 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 246 seconds] 22:04 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 22:05 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-155-93.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 22:11 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 22:18 -!- marchdown_ [~marchdown@46.138.162.76] has joined #go-nuts 22:20 -!- marchdown [~marchdown@46.138.173.90] has quit [Ping timeout: 276 seconds] 22:21 -!- Venom_X [~pjacobs@adsl-99-20-147-171.dsl.aus2tx.sbcglobal.net] has quit [Quit: Venom_X] 22:31 -!- JusticeFries_ [~JusticeFr@c-71-229-198-237.hsd1.co.comcast.net] has quit [Quit: JusticeFries_] 22:31 -!- shvntr [~shvntr@113.84.145.254] has joined #go-nuts 22:36 -!- shvntr [~shvntr@113.84.145.254] has quit [Ping timeout: 258 seconds] 22:42 -!- shvntr [~shvntr@123.89.103.252] has joined #go-nuts 22:45 -!- alexandere [~alexander@eijg.xs4all.nl] has quit [Quit: alexandere] 22:53 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 246 seconds] 22:56 -!- katakuna [~pie@kjal.demon.co.uk] has quit [Ping timeout: 252 seconds] 23:02 < plexdev> http://is.gd/vUkxva by [Russ Cox] in 2 subdirs of go/ -- gc: bug327 23:09 -!- virtualsue [~chatzilla@nat/cisco/x-dzhtakmvlnliccpo] has joined #go-nuts 23:10 -!- bren2010 [~bren2010@24-179-18-179.dhcp.ahvl.nc.charter.com] has joined #go-nuts 23:11 < bren2010> I have the 2 programs: http://pastebin.com/jTBCX7vE and http://pastebin.com/6P6jmQng Can anybody help me figure out why the second one can't read anything that the first one is writing to the UDP socket? :/ 23:18 -!- TheColonial [~oj@115-64-213-55.static.tpgi.com.au] has joined #go-nuts 23:18 < skelterjohn> you're ignoring errors 23:18 < skelterjohn> perhaps if you inspected the error values, you'd know what went wrong 23:19 < skelterjohn> _ing errors is a bad habit to get into 23:19 -!- TheColonial [~oj@115-64-213-55.static.tpgi.com.au] has left #go-nuts [] 23:21 < skelterjohn> i mean, it's not a big deal when you're just trying to see if something makes sense 23:21 < skelterjohn> but if it doesn't work, bren2010, the first thing you should do is inspect the errors 23:21 < bren2010> mhmm 23:21 < bren2010> That's what I'm working on doing now. 23:22 < skelterjohn> a standard thing to do is to have a deferred function that checks the error, and to return if something returns an error that isn't nil 23:23 < bren2010> All of the places where errors could be are nil. 23:23 < skelterjohn> then nothing went wrong, clearly :) 23:23 < bren2010> But... 23:23 < skelterjohn> a jok 23:23 < skelterjohn> e 23:23 < bren2010> :p 23:25 -!- keithcascio [~keithcasc@nat/google/x-qixexvzupawgnbax] has quit [Quit: Leaving] 23:25 < skelterjohn> are you sure you're getting anything from extCon? 23:26 < skelterjohn> and what is printed with fmt.Println(n)? 23:26 < bren2010> Yes. fmt is printing IRC info to the terminal. 23:26 < bren2010> However many bytes where sent that time. 72, 64, etc. 23:26 < skelterjohn> but you're getting non-zero numbers there, is what i'm asking 23:27 < bren2010> Yes. 23:27 < skelterjohn> what does the other end print out? 23:27 < bren2010> Nothing. 23:28 < skelterjohn> have you looked at what udpaddr ends up being? 23:29 < bren2010> In which file? 23:29 < skelterjohn> either/both 23:31 < bren2010> first one: fmt.Println(udpaddr) = 127.0.0.1:4000 23:31 < bren2010> second one: fmt.Println(udpaddr) = 127.0.0.1:4001 23:32 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 23:33 < skelterjohn> i'm putting together a small example test 23:33 < skelterjohn> will be a min 23:33 < bren2010> Ok. 23:33 -!- keithgcascio [~keithcasc@nat/google/x-vtwvbtqugqcwkpky] has joined #go-nuts 23:44 < skelterjohn> my smaller example appears to have the same problem 23:45 < skelterjohn> the client's read does not return 23:45 < bren2010> :\ 23:45 < bren2010> Why do you think that is? 23:46 < skelterjohn> i dunno, never tried any UDP stuff with go before 23:46 < skelterjohn> might be doing something silly 23:49 < skelterjohn> a search in $GOROOT/src doesn't show any good examples of using UDP 23:51 -!- virtualsue [~chatzilla@nat/cisco/x-dzhtakmvlnliccpo] has quit [Quit: ChatZilla 0.9.86.1 [Firefox 4.0/20110318052756]] 23:51 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has joined #go-nuts 23:52 < skelterjohn> aha 23:52 < skelterjohn> foudn the error i think 23:53 < bren2010> :o 23:53 < bren2010> What is it? 23:53 < skelterjohn> nope 23:53 < skelterjohn> nevermind 23:53 < bren2010> <_< 23:53 < skelterjohn> but searching brought me to https://groups.google.com/forum/#!topic/golang-nuts/mGBeZ5Fphpc 23:57 < skelterjohn> this is the code i was using to test, btw http://pastebin.com/wHRi76TM 23:58 -!- itrekkie [~itrekkie@ip72-211-131-205.tc.ph.cox.net] has quit [Quit: itrekkie] --- Log closed Fri Apr 08 00:00:50 2011