--- Log opened Tue Feb 23 00:00:14 2010 00:01 -!- wuehlmaus [~wuehlmaus@p4FCC5A3B.dip.t-dialin.net] has quit [Ping timeout: 265 seconds] 00:03 -!- wuehlmaus [~wuehlmaus@p4FCC7D21.dip.t-dialin.net] has joined #go-nuts 00:05 -!- powerje [~powerje@2002:4b3c:d6ac:0:213:e8ff:feaa:ae2b] has joined #go-nuts 00:08 -!- warthog [~Marvin@dynamic-adsl-94-36-171-141.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 00:19 -!- powerje [~powerje@2002:4b3c:d6ac:0:213:e8ff:feaa:ae2b] has quit [Quit: exit] 00:21 < adu> smw: if i were you, i would use Write() 00:24 -!- Netsplit *.net <-> *.split quits: nictuku, geocalc, quixoten, adu, rrr, m-takagi_, andy1, cmarcelo, Sherlock, droid001, (+6 more, use /NETSPLIT to show all of them) 00:24 -!- Netsplit over, joins: anticw 00:24 -!- Netsplit over, joins: Sherlock 00:24 -!- GeoBSD [~geobsd@lns-bzn-40-82-251-145-180.adsl.proxad.net] has joined #go-nuts 00:25 -!- irc [~irc@209.17.191.58] has joined #go-nuts 00:25 -!- cmarcelo [~cmarcelo@187.59.118.58] has joined #go-nuts 00:25 -!- cmarcelo [~cmarcelo@187.59.118.58] has quit [Changing host] 00:25 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined #go-nuts 00:25 -!- Netsplit over, joins: m-takagi_ 00:25 -!- nictuku [~nnnnnnict@cetico.org] has joined #go-nuts 00:25 -!- Ortzinator [~ortzinato@unaffiliated/ortzinator] has joined #go-nuts 00:25 -!- fenicks [~christian@log77-4-82-246-228-78.fbx.proxad.net] has joined #go-nuts 00:25 -!- Netsplit over, joins: smw 00:25 -!- Xeon [~chatzilla@118.126.12.53] has joined #go-nuts 00:25 -!- Netsplit over, joins: andy1 00:25 -!- Netsplit over, joins: syd_ 00:25 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts 00:26 -!- dizm [~dizm@121.98.168.127] has left #go-nuts [] 00:26 -!- andy1 [~aolsen@host-19.pl107798-3.fiber.net] has left #go-nuts [] 00:27 -!- stalled [~411@unaffiliated/stalled] has quit [Excess Flood] 00:28 -!- stalled [~411@unaffiliated/stalled] has joined #go-nuts 00:35 -!- KB1JWQ [~KB1JWQ@freenode/staff/kb1jwq] has joined #go-nuts 00:36 -!- skelterjohn [~jasmuth@c-76-124-22-198.hsd1.nj.comcast.net] has joined #go-nuts 00:45 < easytiger> anyone done anything large in go yet? 00:46 -!- syd_ [~sydcogs@118.127.19.220] has quit [Remote host closed the connection] 00:50 -!- syd_ [~sydcogs@118.127.19.220] has joined #go-nuts 00:50 -!- syd_ [~sydcogs@118.127.19.220] has quit [Remote host closed the connection] 00:56 < plexdev> http://is.gd/8Y0ry by [Andrew Gerrand] in go/doc/ -- go_mem: clarified unbuffered channel sync example 00:56 < plexdev> http://is.gd/8Y0rN by [Nigel Tao] in go/src/pkg/xgb/ -- Fix xgb/example.go typo. 01:02 -!- XenoPhoenix [~Xeno@cpc3-aztw22-2-0-cust104.aztw.cable.virginmedia.com] has quit [Quit: "Wait... what?!"] 01:02 -!- XenoPhoenix [daca54f09d@cpc3-aztw22-2-0-cust104.aztw.cable.virginmedia.com] has joined #go-nuts 01:04 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 01:10 -!- easytiger [~gerry@86.171.115.79] has quit [Remote host closed the connection] 01:12 < plexdev> http://is.gd/8Y3JP by [Charles L. Dorian] in go/src/pkg/math/ -- math: add lgamma; in-line special cases of acosh, nextafter 01:16 -!- asmo [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has quit [Disconnected by services] 01:17 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 01:17 -!- asmo_ [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has joined #go-nuts 01:18 -!- ukai [~ukai@220.109.219.244] has quit [Remote host closed the connection] 01:19 -!- rrr [debian-tor@gateway/tor-sasl/rrr] has joined #go-nuts 01:20 -!- b00m_chef__ [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping timeout: 252 seconds] 01:21 -!- sinuhe [~sinuhe@kaptah.deevans.net] has joined #go-nuts 01:21 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has joined #go-nuts 01:22 < smw> For some reason when I run this program: http://pastebin.com/d3663d5bc the variable size is set to 4096. That seems like a very round number. Anyone know what would cause that? 01:27 -!- sinuhe [~sinuhe@kaptah.deevans.net] has quit [Quit: leaving] 01:27 -!- sinuhe [~sinuhe@kaptah.deevans.net] has joined #go-nuts 01:30 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit [Quit: carllerche] 01:31 -!- GeoBSD [~geobsd@lns-bzn-40-82-251-145-180.adsl.proxad.net] has quit [Remote host closed the connection] 01:33 -!- yatoo [~marcus@host86-153-224-40.range86-153.btcentralplus.com] has quit [Ping timeout: 252 seconds] 01:35 -!- sinuhe [~sinuhe@kaptah.deevans.net] has quit [Quit: leaving] 01:35 -!- sinuhe [~sinuhe@kaptah.deevans.net] has joined #go-nuts 01:39 -!- mssm [~mssm@ip-95-221-93-75.bb.netbynet.ru] has quit [Ping timeout: 260 seconds] 01:44 -!- sinuhe [~sinuhe@kaptah.deevans.net] has quit [Quit: leaving] 01:44 -!- sinuhe [~sinuhe@kaptah.deevans.net] has joined #go-nuts 01:48 -!- nutate [~rseymour@cacsag4.usc.edu] has joined #go-nuts 01:48 -!- nutate [~rseymour@cacsag4.usc.edu] has quit [Excess Flood] 01:48 -!- ukai [~ukai@220.109.219.244] has joined #go-nuts 01:48 -!- nutate [~rseymour@cacsag4.usc.edu] has joined #go-nuts 01:50 -!- KirkMcDonald [~Kirk@pysoy/developer/KirkMcDonald] has joined #go-nuts 01:52 -!- cyonyx [~chatzilla@c-76-126-250-10.hsd1.ca.comcast.net] has joined #go-nuts 02:03 -!- skelterjohn [~jasmuth@c-76-124-22-198.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 02:05 < smw> For some reason when I run this program: http://pastebin.com/d3663d5bc the variable size is set to 4096. That seems like a very round number. Anyone know what would cause that? 02:06 < aho> 4kb buffer, i guess 02:07 < smw> Isn't the buffer the variable? 02:07 < smw> how would I get arround the limitation? 02:07 < anticw> it gave you 4k 02:07 < anticw> loop to get more 02:09 < smw> anticw: I am now trying that, and I am getting weird results... 02:10 < smw> let me pastebin what I have now 02:10 < smw> http://pastebin.com/d384ba092 02:12 < anticw> that code doesn't make sense 02:12 < smw> probably... 02:12 -!- Xeon_ [~chatzilla@118.126.12.53] has joined #go-nuts 02:12 < anticw> well, sorry, i take that back 02:13 < anticw> why not just loop reading and bail out on os.EOF & error? 02:13 < anticw> why the copy? 02:13 < smw> What do you mean? 02:13 < smw> I really do not understand this. 02:14 < anticw> each time you get get 2k 02:14 < smw> yeah 02:14 < anticw> into part 02:14 < smw> oh 02:14 < anticw> then you copy that into body ... and update pos 02:14 < anticw> at some point you need body = body[0:pos] 02:14 < anticw> to set then len 02:14 < smw> yeah, that is not really smart. I can take out the part 02:15 -!- Xeon [~chatzilla@118.126.12.53] has quit [Ping timeout: 256 seconds] 02:17 < smw> anticw: it is still only going up to 4096 02:17 < smw> let me pastebin 02:18 < anticw> http://pastebin.com/dea2ec68 02:18 < anticw> does that work? 02:18 < smw> http://pastebin.com/d973375f 02:19 < anticw> what URL are you using? 02:19 < smw> google.com 02:19 < anticw> i just compiled the version i put up ... it looks to work but you get < 4k 02:19 < anticw> there isn't 4k to get 02:19 < smw> ... 02:20 < smw> so where is the 4k comming from? 02:20 -!- kevinwatt [~kevin@59-125-147-75.HINET-IP.hinet.net] has joined #go-nuts 02:20 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined #go-nuts 02:21 < smw> anticw: yours works... 02:22 < smw> anticw: I have no idea why mine failed though 02:22 < anticw> what os? 02:22 < anticw> i dont think you're getting 4k 02:22 < smw> amd64 linux 02:22 < anticw> strace it 02:22 < anticw> pastebin that 02:22 < smw> yours or mine? 02:22 < anticw> your code 02:23 < anticw> well, let me try what you have 02:23 < anticw> why the null byte chopping? 02:23 < anticw> what's that for? 02:24 < anticw> bbl, kids 02:24 < smw> anticw: the null chopping is so that when I print it, I don't get garbage 02:45 -!- skelterjohn [~jasmuth@c-76-124-22-198.hsd1.nj.comcast.net] has joined #go-nuts 02:47 -!- nettok [~netto@200.119.157.1] has joined #go-nuts 02:49 -!- skelterjohn [~jasmuth@c-76-124-22-198.hsd1.nj.comcast.net] has quit [Client Quit] 02:51 -!- shellrie [~shellrie@97.102.104.216] has joined #go-nuts 02:54 < smw> can someone tell me which library to use for running another program from go? 02:55 -!- nutate [~rseymour@cacsag4.usc.edu] has quit [Quit: I'm outta heee-eere] 02:58 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Quit: leaving] 02:59 < sladegen> smw: try exec 02:59 < smw> thanks, I guess I did not see it when I looked though XD 03:00 -!- Venom_X [~pjacobs@cpe-67-9-131-167.austin.res.rr.com] has quit [Quit: Venom_X] 03:01 < sladegen> smw: btw http://go.pastie.org/838061 03:02 < smw> anticw: fixed it for me 03:02 < smw> wow. that is useful 03:03 < sladegen> still can't account for slight difference (probably google reacts differently to wget), anyway, silly low level language ;) 03:03 < smw> thanks for telling me about that 03:11 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Ping timeout: 265 seconds] 03:21 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 248 seconds] 03:26 < anticw> smw: you don't update the length of body after the copy 03:27 < smw> anticw: I just decided to use yours 03:27 < smw> actually, I think I will switch to sladegen's 03:27 < anticw> how is that different? 03:28 < smw> http://go.pastie.org/838061 03:29 < anticw> yeah, that works, you can also use things like io.Copy 03:30 < smw> I wish someone had just told me about bytes.NewBuffer. sladegen did not have to make an example for me :-) 03:30 -!- stalled [~411@unaffiliated/stalled] has quit [Ping timeout: 260 seconds] 03:31 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 03:40 -!- meatmanek [~meatmanek@mesingw.STUDENT.CWRU.Edu] has quit [Quit: Leaving] 03:41 -!- stalled [~411@unaffiliated/stalled] has joined #go-nuts 03:46 -!- Pete_27 [~noname@115-64-1-61.static.tpgi.com.au] has joined #go-nuts 03:46 -!- [Pete_27] [~noname@115-64-1-61.static.tpgi.com.au] has quit [Read error: Connection reset by peer] 03:46 -!- stalled [~411@unaffiliated/stalled] has quit [Ping timeout: 276 seconds] 03:53 -!- X_Serpent_X [~kvirc@ool-45796461.dyn.optonline.net] has joined #go-nuts 04:03 -!- shellrie [~shellrie@97.102.104.216] has quit [Quit: Leaving] 04:03 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined #go-nuts 04:05 -!- stalled [~411@unaffiliated/stalled] has joined #go-nuts 04:21 -!- cyonyx [~chatzilla@c-76-126-250-10.hsd1.ca.comcast.net] has quit [Quit: ChatZilla 0.9.86 [Firefox 3.5.8/20100202165920]] 04:32 -!- X_Serpent_X [~kvirc@ool-45796461.dyn.optonline.net] has quit [Quit: KVIrc 3.2.0 'Realia'] 04:42 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has quit [Quit: Leaving] 04:45 < plexdev> http://is.gd/8YHPU by [Russ Cox] in go/src/pkg/net/ -- net: disable UDP server test 04:45 < plexdev> http://is.gd/8YHQ8 by [Russ Cox] in go/src/pkg/runtime/linux/ -- runtime: work around Linux kernel bug in futex 04:52 -!- sinuhe [~sinuhe@kaptah.deevans.net] has quit [Quit: leaving] 04:56 -!- TMKCodes [~toni@87-93-133-100.bb.dnainternet.fi] has quit [Ping timeout: 248 seconds] 05:01 < plexdev> http://is.gd/8YKHU by [Rob Pike] in go/src/cmd/goyacc/ -- goyacc: fix handling of / and comments in goyacc 05:27 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Ping timeout: 256 seconds] 05:30 -!- asmo__ [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has joined #go-nuts 05:30 -!- asmo_ [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has quit [Read error: Connection reset by peer] 05:36 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 05:39 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts 05:48 -!- kota1111 [~kota1111@gw2.kbmj.jp] has joined #go-nuts 05:51 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined #go-nuts 06:00 -!- GabydeWilde_ [~gabydewil@84-104-135-141.cable.quicknet.nl] has joined #go-nuts 06:02 -!- droid001 [~g1@p4FDCACFC.dip.t-dialin.net] has joined #go-nuts 06:07 -!- Xeon_ [~chatzilla@118.126.12.53] has quit [Read error: Connection reset by peer] 06:08 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 06:11 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 06:15 -!- TMKCodes [~toni@87-95-5-135.bb.dnainternet.fi] has joined #go-nuts 06:21 -!- TMKCodes [~toni@87-95-5-135.bb.dnainternet.fi] has quit [Ping timeout: 256 seconds] 06:26 -!- rthc [~rthc@rrcs-67-52-50-170.west.biz.rr.com] has quit [Ping timeout: 246 seconds] 06:40 -!- KillerX [~anant@145.116.234.40] has joined #go-nuts 06:40 -!- KillerX [~anant@145.116.234.40] has quit [Changing host] 06:40 -!- KillerX [~anant@gentoo/developer/KillerX] has joined #go-nuts 06:54 -!- KillerX [~anant@gentoo/developer/KillerX] has quit [Quit: Leaving.] 07:02 -!- rthc [~rthc@rrcs-67-52-50-170.west.biz.rr.com] has joined #go-nuts 07:10 -!- nettok [~netto@200.119.157.1] has quit [Quit: Ex-Chat] 07:14 -!- trickie [~trickie@94.100.112.225] has joined #go-nuts 07:21 -!- rthc [~rthc@rrcs-67-52-50-170.west.biz.rr.com] has quit [Ping timeout: 246 seconds] 07:27 -!- kaigan|work [~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined #go-nuts 07:32 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts 07:32 -!- asmo__ [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has quit [Remote host closed the connection] 07:33 -!- idea_squirrel [ct2rips@77-21-22-174-dynip.superkabel.de] has joined #go-nuts 07:35 -!- rthc [~rthc@rrcs-67-52-50-170.west.biz.rr.com] has joined #go-nuts 07:38 -!- jophish [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts 07:42 -!- ollins [~ollins@www.inventage.com] has joined #go-nuts 07:42 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]] 07:42 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 07:50 -!- Cyprien__ [Cyprien@131-228.76-83.cust.bluewin.ch] has quit [Ping timeout: 265 seconds] 07:52 -!- ugo [~ugo@host209-110-dynamic.0-87-r.retail.telecomitalia.it] has joined #go-nuts 07:53 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Ping timeout: 252 seconds] 07:56 -!- cyonyx [~chatzilla@c-76-126-250-10.hsd1.ca.comcast.net] has joined #go-nuts 07:56 -!- wrtp [~rog@89.242.205.202] has joined #go-nuts 08:07 -!- path[l] [~path@59.162.86.164] has joined #go-nuts 08:08 -!- asmo [~asmo@c83-248-32-75.bredband.comhem.se] has joined #go-nuts 08:08 -!- asmo [~asmo@c83-248-32-75.bredband.comhem.se] has quit [Read error: Connection reset by peer] 08:08 -!- asmo [~asmo@c83-248-32-75.bredband.comhem.se] has joined #go-nuts 08:20 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts 08:21 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts 08:23 -!- trickie [~trickie@94.100.112.225] has quit [Ping timeout: 246 seconds] 08:24 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Client Quit] 08:24 -!- trickie [~trickie@94.100.112.225] has joined #go-nuts 08:26 -!- jophish [~jophish@hermi.gotadsl.co.uk] has quit [Remote host closed the connection] 08:32 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Quit: Lost terminal] 08:34 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts 08:43 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-171-141.clienti.tiscali.it] has joined #go-nuts 09:02 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts 09:02 -!- dizm [~dizm@121.98.168.127] has left #go-nuts [] 09:02 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Quit: Ex-Chat] 09:05 -!- ugo [~ugo@host209-110-dynamic.0-87-r.retail.telecomitalia.it] has quit [Quit: Leaving.] 09:20 -!- aho [~nya@f052112183.adsl.alicedsl.de] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 09:27 -!- Cyprien__ [~Cyprien@pub1.heig-vd.ch] has joined #go-nuts 09:46 -!- mssm [~mssm@ip-95-221-93-75.bb.netbynet.ru] has joined #go-nuts 09:49 -!- KirkMcDonald [~Kirk@pysoy/developer/KirkMcDonald] has quit [Ping timeout: 264 seconds] 09:51 -!- KirkMcDonald [~Kirk@pysoy/developer/KirkMcDonald] has joined #go-nuts 09:56 -!- Surma [~surma@zb4c3.pia.fu-berlin.de] has joined #go-nuts 09:57 < Surma> Hey guys. I don't know if I'm blind or something, but is there a way to get all the keys used in a map (and/or traverse a map)? 10:00 -!- Cyprien__ [~Cyprien@pub1.heig-vd.ch] has quit [Quit: Quitte] 10:03 -!- rbraley [~rbraley@ip72-222-129-178.ph.ph.cox.net] has quit [Ping timeout: 276 seconds] 10:07 -!- Cyprien_ [~Cyprien@pub1.heig-vd.ch] has joined #go-nuts 10:07 -!- Cyprien_ [~Cyprien@pub1.heig-vd.ch] has quit [Client Quit] 10:08 -!- rbraley [~rbraley@ip72-222-129-178.ph.ph.cox.net] has joined #go-nuts 10:13 -!- rhelmer [~rhelmer@adsl-69-107-87-1.dsl.pltn13.pacbell.net] has quit [Ping timeout: 260 seconds] 10:21 < taruti> for key,value := range mymap { ... } ? 10:23 -!- kota1111 [~kota1111@gw2.kbmj.jp] has quit [Quit: Leaving...] 10:25 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]] 10:36 -!- zab [~zab@60-240-60-119.tpgi.com.au] has joined #go-nuts 10:38 -!- Kashia [~Kashia@port-92-200-133-127.dynamic.qsc.de] has quit [Quit: This computer has gone to sleep] 10:40 -!- yatoo [~marcus@host86-153-224-40.range86-153.btcentralplus.com] has joined #go-nuts 10:47 -!- Surma [~surma@zb4c3.pia.fu-berlin.de] has left #go-nuts [] 11:08 -!- zab [~zab@60-240-60-119.tpgi.com.au] has quit [Quit: zab] 11:10 -!- GeoBSD [~geobsd@lns-bzn-40-82-251-145-180.adsl.proxad.net] has joined #go-nuts 11:10 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined #go-nuts 11:16 -!- easytiger [~gerrys@gi0-0.cr1.vg1.core.bfs.wombatfs.net] has joined #go-nuts 11:18 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 11:21 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Read error: Operation timed out] 11:29 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 240 seconds] 11:30 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Quit: Ex-Chat] 11:42 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 11:45 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Client Quit] 11:52 -!- cyonyx [~chatzilla@c-76-126-250-10.hsd1.ca.comcast.net] has quit [Quit: ChatZilla 0.9.86 [Firefox 3.5.8/20100202165920]] 11:58 -!- afurlan [~afurlan@scorpion.mps.com.br] has joined #go-nuts 12:05 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout: 620 seconds] 12:12 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts 12:15 -!- jhnx [~bd730748@gateway/web/freenode/x-ylzhwxrnrncrkbsy] has joined #go-nuts 12:16 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 12:20 -!- pvandusen [~pdusen@crob4-55.flint.umich.edu] has joined #go-nuts 12:22 -!- pdusen [~pdusen@crob4-55.flint.umich.edu] has quit [Ping timeout: 256 seconds] 12:26 -!- lianj [~lianj@dslb-088-076-245-147.pools.arcor-ip.net] has joined #go-nuts 12:27 -!- stalled [~411@unaffiliated/stalled] has quit [Excess Flood] 12:28 -!- stalled [~411@unaffiliated/stalled] has joined #go-nuts 12:41 -!- ollins_ [~ollins@www.inventage.com] has joined #go-nuts 12:41 -!- ollins [~ollins@www.inventage.com] has quit [Remote host closed the connection] 12:44 -!- scoeri [~jdekoste@prog.vub.ac.be] has quit [Ping timeout: 256 seconds] 12:47 -!- Wiz126 [Wiz126@72.20.224.126] has quit [Ping timeout: 245 seconds] 12:50 -!- cmarcelo [~cmarcelo@200.184.118.130] has joined #go-nuts 12:50 -!- cmarcelo [~cmarcelo@200.184.118.130] has quit [Changing host] 12:50 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined #go-nuts 13:13 -!- asmo [~asmo@c83-248-32-75.bredband.comhem.se] has quit [Remote host closed the connection] 13:21 -!- OpenSpace [~ja@109.93.131.178] has quit [Quit: Leaving] 13:28 -!- scoeri [~jdekoste@134.184.43.1] has joined #go-nuts 13:45 -!- path[l] [~path@122.182.0.38] has joined #go-nuts 13:52 -!- Wiz126 [Wiz126@72.20.223.47] has joined #go-nuts 13:58 -!- Wiz126 [Wiz126@72.20.223.47] has quit [Ping timeout: 240 seconds] 14:20 -!- oal [~olav@5.79-160-122.customer.lyse.net] has joined #go-nuts 14:22 -!- Demp [~Demp@bzq-79-183-68-223.red.bezeqint.net] has quit [Read error: Connection reset by peer] 14:22 -!- Demp [~Demp@bzq-79-183-68-223.red.bezeqint.net] has joined #go-nuts 14:26 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping timeout: 265 seconds] 14:32 -!- OpenSpace [~ja@109.93.131.178] has joined #go-nuts 14:34 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined #go-nuts 14:43 -!- ericvh [~ericvh@2002:4671:4e0e:0:223:6cff:fe93:c616] has joined #go-nuts 14:49 -!- mssm [~mssm@ip-95-221-93-75.bb.netbynet.ru] has quit [Ping timeout: 265 seconds] 14:53 -!- sudi [~chatzilla@dslb-084-056-015-010.pools.arcor-ip.net] has joined #go-nuts 15:00 -!- asmo [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has joined #go-nuts 15:01 -!- iant [~iant@67.218.104.235] has joined #go-nuts 15:01 -!- mode/#go-nuts [+v iant] by ChanServ 15:08 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]] 15:08 -!- mssm [~mssm@ip-95-221-116-216.bb.netbynet.ru] has joined #go-nuts 15:08 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Quit: Ex-Chat] 15:12 -!- path[l] [~path@59.162.86.164] has joined #go-nuts 15:19 -!- TMKCodes [~toni@87-93-94-233.bb.dnainternet.fi] has joined #go-nuts 15:35 -!- skelterjohn [~jasmuth@c-76-124-22-198.hsd1.nj.comcast.net] has joined #go-nuts 15:36 -!- grahame [~grahame@billy.angrygoats.net] has joined #go-nuts 15:40 -!- russell_h [~russell_h@osuosl/staff/russellh] has joined #go-nuts 15:49 -!- skelterjohn [~jasmuth@c-76-124-22-198.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 15:53 -!- Wiz126 [Wiz126@72.20.226.157] has joined #go-nuts 15:59 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 16:00 -!- iant [~iant@67.218.104.235] has quit [Ping timeout: 256 seconds] 16:08 -!- carllerche [~carllerch@99.22.229.11] has joined #go-nuts 16:13 -!- Venom_X [~pjacobs@cpe-67-9-131-167.austin.res.rr.com] has joined #go-nuts 16:17 -!- asmo [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has quit [Remote host closed the connection] 16:19 -!- kaigan|work [~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit [Quit: kaigan|work] 16:25 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]] 16:29 -!- trickie [~trickie@94.100.112.225] has quit [Ping timeout: 276 seconds] 16:29 -!- nanoo [~nano@95-89-189-202-dynip.superkabel.de] has joined #go-nuts 16:29 -!- sinuhe [~sinuhe@hq-nat2.gurulabs.com] has joined #go-nuts 16:35 -!- toni_ [~toni@87-93-136-241.bb.dnainternet.fi] has joined #go-nuts 16:36 -!- gzmask [~gzmask@corwin.cat.uregina.ca] has joined #go-nuts 16:36 -!- TMKCodes [~toni@87-93-94-233.bb.dnainternet.fi] has quit [Ping timeout: 264 seconds] 16:37 < gzmask> what's wrong with my code? I want to list files under current directory: 16:37 < gzmask> file, _ := os.Open("./", os.O_RDWR, 0644) 16:37 < gzmask> 23 dir, _ := file.Stat(); 16:37 < gzmask> 24 fmt.Print(dir); 16:37 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Read error: Connection reset by peer] 16:37 < gzmask> gives me : SIGBUS: bus error 16:37 < gzmask> Faulting address: 0x0 16:37 < gzmask> pc: 0x159f8 16:39 < rsaarelm> I'm pretty sure that's not the way to read directory contents. 16:40 < rsaarelm> You're trying to read the dir as a file, and things don't work that way at the abstraction level you're at. 16:41 < gzmask> hmm, I know, but I follow the documentation on golang.org 16:41 < gzmask> func (file *File) Stat() (dir *Dir, err Error) 16:41 < gzmask> Stat returns the Dir structure describing file. It returns the Dir and an error, if any. 16:41 < uriel> did you try with other mode? 16:42 < gzmask> tried func (file *File) Readdir(count int) (dirs []Dir, err Error), doesn't work too 16:42 < uriel> what os you are on? 16:42 < rsaarelm> Ah, you are supposed to be able to use File for dirs as well? 16:42 < gzmask> mac osX 16:43 < uriel> sounds trange, might be a bug? 16:43 < gzmask> yea, at least the documentation indicates so 16:43 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Quit: nipples rock] 16:43 < gzmask> what OS you uses, uriel? 16:43 < uriel> linux 16:44 < gzmask> does Readdir work there? 16:45 < sinuhe> uriel: Which distro? 16:46 < uriel> gzmask: why don't you use Stat() directly? 16:46 < uriel> (os.Stat()) 16:46 < uriel> sinuhe: does it matter? and btw, I use more than just linux, but for go hacking I use linux 16:47 < sinuhe> uriel: Curiosity only. 16:48 * uriel is learning to pick his battles, arguing over linux distros is not one of his priorities ;) 16:48 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts 16:49 < gzmask> uriel: os.Stat(string) works 16:49 < uriel> (I will just say that Ubuntu, RedHat/fedora, Suse/Novell are all awful) 16:49 < sinuhe> uriel: No flame war intended. 16:49 < gzmask> uriel: file* Stat() deosn't... wired. should I file a bug? 16:50 < uriel> gzmask: you might want to post to the mailing list in any case, there is a test for File.Stat() on a 'normal' file, but not on dirs, so it doesn't seem to be covered by the standard test suite, so there could be an overlooked bug there 16:50 < uriel> yea, at least I would submit a patch adding a test to not only test File.Stat() on 'normal' files 16:51 < gzmask> I tried file.Stat() on normal file. gives empty dir array 16:51 < uriel> even if it is supposed to fail, would be good to test for that then 16:52 < gzmask> where is the test file that uses File.Stat() uriel? 16:53 < uriel> see src/pkg/os/os_test.go TestFstat 16:53 -!- usausa` [~usa@pool-71-116-81-237.snfcca.dsl-w.verizon.net] has joined #go-nuts 16:55 -!- ollins_ [~ollins@www.inventage.com] has quit [Remote host closed the connection] 16:56 < gzmask> in that code, File.Stat() doesn't get verify to return the directory files, it just returns the file statistics 16:56 -!- usausa` [~usa@pool-71-116-81-237.snfcca.dsl-w.verizon.net] has left #go-nuts [] 16:56 < gzmask> anyway, os.Stat() is good enough for my purpose. Thanks uriel 16:57 -!- usa [~usa@pool-71-116-81-237.snfcca.dsl-w.verizon.net] has joined #go-nuts 17:04 < uriel> gzmask: well, as I said, submiting a more complete test would be a good idea, if you are not up to it I might give it a try myself 17:06 < gzmask> hi uriel, I am still very new to the whole corllabrating development thing and still learning. If you can do that, it'll be a lot faster I guess 17:07 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Quit: nipples rock] 17:07 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts 17:07 -!- mejja [~user@c-52b1e555.023-82-73746f38.cust.bredbandsbolaget.se] has joined #go-nuts 17:12 < gzmask> anyone here attending Google IO this year? 17:13 -!- nanoo [~nano@95-89-189-202-dynip.superkabel.de] has quit [Ping timeout: 256 seconds] 17:15 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 17:16 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 17:17 -!- Wiz126 [Wiz126@72.20.226.157] has quit [Ping timeout: 268 seconds] 17:17 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.] 17:18 < anticw> i might 17:19 -!- Link- [~X@194.146.154.114] has joined #go-nuts 17:25 -!- quixoten [~Devin_Chr@c-67-177-8-48.hsd1.ut.comcast.net] has joined #go-nuts 17:27 -!- iant [~iant@2620:0:1000:1601:b9dc:4f0c:23eb:9adf] has joined #go-nuts 17:27 -!- mode/#go-nuts [+v iant] by ChanServ 17:28 -!- c0nfl|ct [~tiago@83.240.134.68] has joined #go-nuts 17:30 <+iant> I'm looking at adding Go support to SWIG 17:31 -!- nanoo [~nano@95-89-189-202-dynip.superkabel.de] has joined #go-nuts 17:31 -!- c0nfl|ct [~tiago@83.240.134.68] has quit [Client Quit] 17:33 -!- Link- [~X@194.146.154.114] has quit [Ping timeout: 240 seconds] 17:33 -!- Cyprien_ [~Cyprien@pub1.heig-vd.ch] has joined #go-nuts 17:38 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts 17:47 -!- vegai [vegai@archlinux/developer/vegai] has joined #go-nuts 17:50 -!- ericvh [~ericvh@2002:4671:4e0e:0:223:6cff:fe93:c616] has left #go-nuts [] 17:50 -!- ericvh [~ericvh@2002:4671:4e0e:0:223:6cff:fe93:c616] has joined #go-nuts 17:52 -!- Cyprien_ [~Cyprien@pub1.heig-vd.ch] has quit [Ping timeout: 240 seconds] 17:55 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This computer has gone to sleep] 18:01 -!- nanoo [~nano@95-89-189-202-dynip.superkabel.de] has quit [Quit: Leaving] 18:04 < skelterjohn> smw: perhaps google made its main page exactly 2^12 bytes? 18:06 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts 18:10 < russell_h> anyone have a second to help me with a *way* noob question? 18:10 <+iant> ask your question and see what happens 18:10 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Client Quit] 18:11 < uriel> russell_h: never ask to ask, just ask 18:12 < russell_h> how do I write an http response to an http connection? I'm trying to make a really simple proxy, and am totally new to Go, etc. Around line 11: http://dpaste.org/BTw6 18:13 < uriel> "Snippet you have searched is not available (anymore)." 18:14 < russell_h> oops, missed the / : http://dpaste.org/BTw6/ 18:14 < russell_h> I don't care about preserving headers at this point either 18:19 -!- b00m_chef__ [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts 18:19 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Ping timeout: 248 seconds] 18:21 -!- carllerche [~carllerch@99.22.229.11] has quit [Quit: carllerche] 18:22 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts 18:22 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts 18:23 -!- rbraley [~rbraley@ip72-222-129-178.ph.ph.cox.net] has quit [Ping timeout: 248 seconds] 18:26 -!- Kashia [~Kashia@port-92-200-133-127.dynamic.qsc.de] has joined #go-nuts 18:29 <+iant> russell_h: I think you want response.Write(c) 18:29 <+iant> in your HelloServer function 18:30 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined #go-nuts 18:34 < russell_h> iant: ah, I think you're right 18:40 -!- no_mind [~orion@122.161.208.225] has joined #go-nuts 18:40 -!- usa [~usa@pool-71-116-81-237.snfcca.dsl-w.verizon.net] has left #go-nuts [] 18:40 < russell_h> iant: thanks, its vaguely sorta working now 18:40 -!- usausa [~usa@pool-71-116-81-237.snfcca.dsl-w.verizon.net] has joined #go-nuts 18:41 -!- yatoo [~marcus@host86-153-224-40.range86-153.btcentralplus.com] has quit [Read error: Connection reset by peer] 18:41 -!- yatoo [~marcus@host86-153-224-40.range86-153.btcentralplus.com] has joined #go-nuts 18:42 < no_mind> looking at the net package documentation, I can see functions for TCP and UDP but I cant figure out how to access raw sockets. Any pointers ? 18:44 < skelterjohn> not meaning to imply that you don't need raw sockets, but... what would you use raw sockets for? 18:44 < skelterjohn> (and I don't have any pointers for you) 18:45 < no_mind> what if I want to write a new protocol ? 18:45 -!- xlq [~xlq@88-106-19-240.dynamic.dsl.as9105.com] has joined #go-nuts 18:47 <+iant> no_mind: support for raw sockets is a TODO 18:47 < no_mind> ok 18:48 < no_mind> I was writing a SMTP client in GO. My earlier implementations in other languages used raw sockets, so that was the first thing I was looking for 18:49 <+iant> you're running SMTP over something other than TCP? 18:49 < no_mind> nope 18:49 <+iant> no_mind: the net package does support TCP sockets 18:49 <+iant> To me "raw socket" means a socket which is not using IP 18:50 < no_mind> iant, same here 18:50 < no_mind> iant, I was planning to write client for some other protocols, which might not use IP 18:50 < no_mind> or tcp 18:51 -!- iant [~iant@2620:0:1000:1601:b9dc:4f0c:23eb:9adf] has quit [Read error: Connection reset by peer] 18:51 -!- iant [~iant@2620:0:1000:1601:b9dc:4f0c:23eb:9adf] has joined #go-nuts 18:51 -!- mode/#go-nuts [+v iant] by ChanServ 18:52 <+iant> Huh, my chat client just crashed 18:52 < xlq> not surprised 18:52 <+iant> ? 19:00 -!- Wiz126 [Wiz126@72.20.226.187] has joined #go-nuts 19:05 < gzmask> try command line base chat client, iant. perfectly suitable for work, if you job is coding and you uses vim 19:06 <+iant> I don't use vim; the advantage of pidgin is that it aggregates my IRC and non-IRC chats in the same interface 19:07 <+iant> there is an emacs IRC client I could use, of course 19:07 < xlq> bitlbee ftw 19:07 < dho> i really hate the pidgin irc interface. 19:08 < no_mind> Xchat still seems to be the most stable IRC client after command line :) 19:09 < vegai> irssi + bitlbee and there you go :) 19:09 < skelterjohn> colloquy on the mac? :) 19:10 < skelterjohn> never had any stability issues 19:10 < no_mind> or write a new Xchat client in GO! 19:10 <+iant> in fairness that is the first time that pidgin has crashed on me in years 19:10 < xlq> an Xchat client? O_o 19:10 <+iant> I'm usually connecting and disconnecting because I'm carrying my laptop around 19:11 < skelterjohn> isn't Xchat a particular client? 19:11 < xlq> yes 19:11 < skelterjohn> with regards to creating a new IRC client in go... I haven't fooled around at all with go and UIs 19:12 < skelterjohn> I know there is a package doing some stuff with X11 19:12 < skelterjohn> but X11 apps usually look like crap on the mac 19:12 < gzmask> I use Conversation on Mac 19:13 < xlq> How can X11 look like crap? It just draws what the client telss it. 19:13 < gzmask> I think he mean X11 app doesn't integrate well on Mac OS 19:14 < gzmask> like Command/Control key binding, look/feel etc. 19:14 < no_mind> oops I meant IRC client :) 19:15 < skelterjohn> also, all X11 windows are attached to the X11 application 19:15 < skelterjohn> so things like cmd-tabbing through them doesn't work the same as other os x apps 19:16 < skelterjohn> it could also be that the X11 libraries people use for UIs tend to look dumb on the mac 19:16 < skelterjohn> when every other window i see looks slick and modern 19:17 < no_mind> X11 needs some modernization 19:18 < skelterjohn> the ideas behind it are great 19:18 < skelterjohn> i love being able to use my lab's workhorse computer from other linux machines with no trouble 19:18 < skelterjohn> and from my mac with some inconvenience 19:19 < skelterjohn> and it's really apple's fault for having the command key for shortcuts rather than the control key 19:20 < gzmask> but the control key's position is so wrong compare to command key 19:20 < skelterjohn> control = pinky 19:20 < skelterjohn> no problem 19:20 < gzmask> try control+z if you have big hands 19:20 < smw> anyone know if there is a smtp lib? 19:20 < skelterjohn> pinky-ring finger 19:20 -!- xlq [~xlq@88-106-19-240.dynamic.dsl.as9105.com] has left #go-nuts ["NULL"] 19:21 < smw> smtp client* 19:21 -!- rhelmer [~rhelmer@adsl-69-107-87-1.dsl.pltn13.pacbell.net] has joined #go-nuts 19:21 < skelterjohn> and my hands are plenty big. i figure. i dunno haven't really done comparisons 19:21 < skelterjohn> but i guess you're right 19:21 < gzmask> after I became a mac user, I mapped my control key to win key 19:21 < skelterjohn> using the thumb on command is a bit more ergonomic 19:21 < gzmask> and feels a lot better that way 19:21 < skelterjohn> since it doesn't immobilize or limit any of your other fingers 19:23 < skelterjohn> but it's really only an issue for me when i have both schemes on the same computer, like with X11 on os x 19:23 < no_mind> smw, I guess nope, that is why I am writing one :) 19:23 < skelterjohn> i don't know how X11 integration works on windows, if at all 19:27 -!- rhelmer [~rhelmer@adsl-69-107-87-1.dsl.pltn13.pacbell.net] has quit [Quit: rhelmer] 19:29 < KirkMcDonald> I think the answer is "with Cygwin." 19:32 < skelterjohn> what about remote desktop sort of stuff 19:32 < skelterjohn> on my mac i can "ssh -X" to a linux machine, and it will all work 19:32 < skelterjohn> can i do that with cygwin? 19:34 < smw> no_mind: I was just about to write one. I read through the RFC :-( 19:35 -!- anticw [~anticw@c-67-169-42-129.hsd1.ca.comcast.net] has quit [Ping timeout: 252 seconds] 19:35 < no_mind> smw, I guess my client should be available over weekend. I have managed to negotiate a connection with SMTP server. 19:36 < smw> no_mind: are you going to submit it as a std lib? 19:36 < KirkMcDonald> skelterjohn: I believe so. 19:36 < skelterjohn> well, that's good, then 19:37 -!- flyfish [~flyfish@pixout.appriss.com] has joined #go-nuts 19:37 < no_mind> smw, yes, wither as a standard lib or over go-lang.cat-v.org . 19:38 < no_mind> smw, I will push the code in git repo tomorrow, so ping me to get the details of git repo. You can test as the code is developed 19:38 < smw> cool 19:39 -!- jhnx [~bd730748@gateway/web/freenode/x-ylzhwxrnrncrkbsy] has quit [Ping timeout: 252 seconds] 19:42 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 246 seconds] 19:48 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Read error: Connection reset by peer] 19:49 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts 19:51 -!- c0nfl|ct [~tiago@248-51.dial.nortenet.pt] has joined #go-nuts 19:54 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 19:56 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving] 19:59 < vegai> hmh, my pre-existing older system-wide installation of go is preventing a successful building of a more recent release... 20:01 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts 20:01 < vegai> or actually, it builds fine but all the tests fail 20:08 < plexdev> http://is.gd/91Enr by [Russ Cox] in go/ -- add Mark Zavislak (Google) to CONTRIBUTORS 20:08 < plexdev> http://is.gd/91EnL by [Mark Zavislak] in 2 subdirs of go/src/pkg/crypto/ -- crypto package documentation fix 20:09 -!- Macpunk [~macpunk@2002:48b1:1add:0:eee:e6ff:fec7:7eaa] has joined #go-nuts 20:09 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:7c95:a111:a971:c5f2] has joined #go-nuts 20:09 -!- gzmask [~gzmask@corwin.cat.uregina.ca] has quit [Remote host closed the connection] 20:14 -!- vegai_ [~quassel@archlinux/developer/vegai] has joined #go-nuts 20:18 -!- wrtp [~rog@89.242.205.202] has quit [Quit: wrtp] 20:18 -!- OpenSpace [~ja@109.93.131.178] has quit [Quit: Leaving] 20:19 -!- Wiz126 [Wiz126@72.20.226.187] has quit [Ping timeout: 265 seconds] 20:20 -!- gzmask [~ray@corwin.cat.uregina.ca] has joined #go-nuts 20:20 < gzmask> how do I get golang on edge? hg update instead of hg update release? 20:24 < vegai> yeah, releases are just tags? 20:25 < gzmask> my guess is that release sets you back to some stable version number 20:26 < gzmask> I am used to subversion so I duno a bout the branch thing 20:26 < vegai> that question mark of mine was misplaced 20:26 < vegai> I meant to assert, not ask :) 20:27 < vegai> and tags are just what they sound like, names for specific revisions 20:28 < gzmask> ok cool. I took away the release tag and the compilation result gives 0 bugs. all cool now. b4 it was 2 known bugs 20:29 < vegai> hg summary will tell you about the revision you're at 20:29 -!- rhelmer [~rhelmer@38.112.6.110] has joined #go-nuts 20:30 < gzmask> yea it does 20:30 < gzmask> what happen if I commit my code revision? 20:31 < gzmask> does it branch from the default? 20:32 < gzmask> I guess I need to password to commit lol 20:37 -!- vegai_ [~quassel@archlinux/developer/vegai] has quit [Remote host closed the connection] 20:37 < skelterjohn> i do "hg pull -u" 20:37 < skelterjohn> i think that's the most recent commit 20:39 < gzmask> is there a documentation team working on docs? The docs for libraries are really lacking 20:39 <+iant> no 20:39 <+iant> but specific complaints, or even better patches, would be helpful 20:40 * gzmask like : func Open(name string, flag int, perm int) (file *File, err Error) 20:40 * gzmask Open opens the named file with specified flag (O_RDONLY etc.) and perm, (0666 etc.) if applicable. If successful, methods on the returned File can be used for I/O. It returns the File and an Error, if any. 20:40 < gzmask> what is other flags? 20:41 <+iant> gzmask: http://golang.org/pkg/os/#Constants 20:42 -!- rhelmer [~rhelmer@38.112.6.110] has quit [Ping timeout: 246 seconds] 20:42 < dho> gzmask: they're the same as arguments to open(2) 20:42 < dho> But I agree, a lot of the documentation could use work. 20:44 < gzmask> ahh i see. If the document style is consistent then I will probably get used to it and know how to search around. Now I am more used to the Rdoc from ruby world, and something like rails guide style docs(scenario based) is really nice to newbs like me too 20:44 -!- asmo [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has joined #go-nuts 20:46 -!- geocalc [~geobsd@lns-bzn-61-82-250-117-230.adsl.proxad.net] has joined #go-nuts 20:47 < gzmask> Hey iant, it feels like your are from google? coz you know these stuff so well. are you working with golang as your full time job? 20:47 <+iant> yes, I work at Google, and, yes, Go is my full time job 20:49 -!- asmo [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has quit [Client Quit] 20:49 < gzmask> I see... is it true that google is using bloom box to power their data center? are you guys planning on releasing some more info at Google IO at May? 20:50 -!- GeoBSD [~geobsd@lns-bzn-40-82-251-145-180.adsl.proxad.net] has quit [Ping timeout: 256 seconds] 20:50 <+iant> I don't actually know anything about a bloom box at Google; I saw the article and I have no reason to think it is wrong, but I don't know 20:50 <+iant> Google is a big company 20:51 <+iant> we will be doing a Go presentation at Google I/O, but I doubt we will be revealing anything new 20:51 <+iant> we are doing development in the open, so there won't be any surprises for people who are following the project 20:52 < gzmask> ah, I guessed so... kinda hoping some native client news from Google IO lol 20:52 <+iant> I think the holdup there is on the Native Client side, they have to implement something for us to do function pointers for closures 20:53 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Read error: Connection reset by peer] 20:54 < gzmask> it feels like for now the native client team is focusing on C codes 20:54 -!- nettok [~netto@proxy.galileo.edu] has joined #go-nuts 20:54 -!- mssm [~mssm@ip-95-221-116-216.bb.netbynet.ru] has quit [Ping timeout: 264 seconds] 20:54 < dho> iant: What does that require, out of curiosity? 20:54 -!- wrtp [~rog@89.242.205.202] has joined #go-nuts 20:54 < dho> I mean, theoretically you can't do async processing in C if that's not supported 20:55 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 20:56 -!- oal [~olav@5.79-160-122.customer.lyse.net] has quit [Read error: Connection reset by peer] 20:56 <+iant> the issue isn't function pointers as in C, it's taking the address of a function literal which refers to variables in the enclosing function 20:56 <+iant> which you can't do in C 20:56 <+iant> in Go that is implemented using a little executable trampoline created at runtime 20:56 < dho> Oh, I see. 20:56 < skelterjohn> trampoline, lol 20:56 < dho> and the safety stuff disallows that 20:56 <+iant> right 20:56 < skelterjohn> i bet that means something to people in the know 20:56 <+iant> skelterjohn: it's a standard term, believe it or not 20:56 < dho> skelterjohn: fairly standard terminology 20:56 < skelterjohn> i don't doubt it 20:56 < skelterjohn> i'm just not in the know 20:57 < skelterjohn> and it sounds funny to me :) 20:57 < dho> it's just a `jumping point' 20:57 < dho> essentially 20:57 < KirkMcDonald> I am much more satisfied with Go's solution to this particular problem than D's. 20:57 < dho> hence the name :) 20:57 -!- afurlan [~afurlan@scorpion.mps.com.br] has quit [Remote host closed the connection] 20:57 < KirkMcDonald> That is, D has separate 'function' and 'delegate' types, and Go just has func types. 20:58 < dho> iant: where is that code, actually? 20:59 < dho> runtime/machdep? 20:59 <+iant> runtime/*/closure.c 20:59 < dho> I've been way out of the loop lately 20:59 < dho> girlfriend left and i've been going through a miniature personal crisis 20:59 <+iant> sorry to hear that 20:59 < dho> still need to fix the freebsd testbeds and stuff 21:00 < dho> why's that implemented in C? 21:00 <+iant> dunno 21:01 < dho> I don't think it's particularly easier to read :\ 21:01 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 21:04 < dho> probably some of the math is a pain in the ass. 21:07 < skelterjohn> happens. 21:08 -!- Cyprien_ [Cyprien@11-3.79-83.cust.bluewin.ch] has joined #go-nuts 21:19 < gzmask> cannot convert b (type [10]uint8) to type string in conversion 21:19 < gzmask> I used string(byte_array), but what is the correct way? 21:22 < Kashia> I think it works with a slice of butes (not array) 21:22 < Kashia> bytes* 21:24 < smw> gzmask: and a slice can probably be made with []byte(something) 21:24 -!- Fraeon [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [Ping timeout: 252 seconds] 21:24 < smw> so string([]byte(something)) 21:24 < gzmask> slice works. ty 21:26 -!- Netsplit *.net <-> *.split quits: jajamana, KB1JWQ, nettok, rrr, mejja 21:26 -!- Netsplit over, joins: nettok 21:27 -!- Netsplit over, joins: jajamana, mejja 21:27 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined #go-nuts 21:27 -!- stalled [~411@unaffiliated/stalled] has quit [Excess Flood] 21:27 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Client Quit] 21:27 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Client Quit] 21:28 -!- Wiz126 [Wiz126@72.20.228.77] has joined #go-nuts 21:28 < Kashia> I'd do string(b[0:]) 21:28 < Kashia> (instead of a second cast) 21:29 -!- stalled [~411@unaffiliated/stalled] has joined #go-nuts 21:29 -!- Chryson [~Chryson@c-71-60-250-12.hsd1.pa.comcast.net] has joined #go-nuts 21:30 < Eridius> you could also just do string(&b) 21:31 < Eridius> taking the address of an array gives you a slice 21:33 < gzmask> but I don't understand why we can't type cast an array of bytes to string. This doesn't feel smart and feels very C-like 21:35 -!- fenicks [~christian@log77-4-82-246-228-78.fbx.proxad.net] has quit [Ping timeout: 245 seconds] 21:35 < Macpunk> well, any given array of bytes isn't necessarily a string 21:35 < Macpunk> and you'd have to pick an encoding, right? or would it just assume it's Unicode whatever 21:35 < Eridius> gzmask: maybe you should ask about it on the mailing list? 21:36 < Eridius> Macpunk: strings are utf8 21:36 < Eridius> Macpunk: you can cast a slice of bytes, at which point it treats it as utf8, or a slice of ints, which it treats as runes 21:37 < skelterjohn> not being able to type cast a byte array to a string sounds c-like? 21:37 < skelterjohn> eh? 21:38 -!- nettok [~netto@proxy.galileo.edu] has quit [Quit: Ex-Chat] 21:38 < skelterjohn> since in C a string is an array of bytes, I don't follow 21:38 < Eridius> yeah I don't get the "not C-like" complaint 21:38 < gzmask> I mean type casting should be smarter 21:38 < Eridius> but regardless, if you think you should be able to cast an array of bytes to a string, ask about it on the mailing list. 21:39 -!- KB1JWQ [~KB1JWQ@freenode/staff/kb1jwq] has joined #go-nuts 21:39 <+iant> A string is really a sequence of bytes 21:39 <+iant> and you can cast an array of bytes to a string 21:40 <+iant> so I'm not sure I understand the objection 21:41 < gzmask> try this code iant: var b [10] byte; fmt.Print(sring(b)); 21:41 < gzmask> gives : cannot convert b (type [10]uint8) to type string in conversion 21:41 < Eridius> gzmask: it's trivial to convert an array to a slice 21:41 < gzmask> still one more thing to remember 21:42 <+iant> var b [10]byte; fmt.Print(string(&b)) 21:42 < Macpunk> Eridius, I see. I was trying to get at what skelterjohn said. :P 21:42 < Macpunk> quite informative though, thank you :-) 21:42 <+iant> but I see what you mean, you can convert a slice but not an array 21:42 < Eridius> iant: I noticed the other day that taking hte address of an array is never defined in the spec, just mentioned in one example 21:42 -!- Netsplit *.net <-> *.split quits: viirya, c0nfl|ct, nighty^, jessta, tedster, quixoten, mfoemmel, rbancrof1 21:42 -!- Netsplit over, joins: jessta 21:42 -!- Netsplit over, joins: viirya 21:43 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:7c95:a111:a971:c5f2] has quit [Quit: Leaving.] 21:43 -!- rbancroft [~rumble@S01060014bf54b5eb.cg.shawcable.net] has joined #go-nuts 21:43 < gzmask> and I am suggesting this might help people to get in golang programming easier. Not that the "&" sign is causing any problem for me now 21:43 -!- Netsplit over, joins: mfoemmel, c0nfl|ct, tedster 21:43 -!- Netsplit over, joins: nighty^ 21:43 < Eridius> gzmask: just think of it as a fucntion, not a cast 21:44 < Eridius> then the requirement to take a specific type makes sense 21:44 < Eridius> though it really takes 2 different slice types.. 21:44 <+iant> Eridius: it's in the Assignment compatibilty section 21:44 < Eridius> iant: I can look again, but I couldn't find it the other day 21:45 < Eridius> I would have expected it to be mentioned in the address operator section 21:46 -!- stalled [~411@unaffiliated/stalled] has quit [Excess Flood] 21:46 -!- rhelmer [~rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has joined #go-nuts 21:46 -!- Macpunk [~macpunk@2002:48b1:1add:0:eee:e6ff:fec7:7eaa] has quit [Ping timeout: 248 seconds] 21:47 -!- stalled [~411@unaffiliated/stalled] has joined #go-nuts 21:47 <+iant> Eridius: it probably should be there too, yes 21:47 <+iant> in assignment compatibility it says "V is a pointer to an array and T is a slice type...." 21:48 <+iant> then down under conversions it says that a conversion succeeds if it is assignment compatible 21:48 <+iant> but I agree that it should be mentioned in the address operator sectin 21:48 < Eridius> ah hah 21:51 -!- fenicks [~christian@log77-4-82-246-228-78.fbx.proxad.net] has joined #go-nuts 21:52 -!- itrekkie [~itrekkie@uawifi-nat-210-24.arizona.edu] has joined #go-nuts 21:55 < plexdev> http://is.gd/922Cu by [Anthony Starks] in go/misc/bbedit/ -- misc/bbedit: treat predeclared identifiers as "keywords" 21:55 -!- Wiz126 [Wiz126@72.20.228.77] has quit [Ping timeout: 256 seconds] 21:55 -!- OpenSpace [~ja@79.101.151.19] has joined #go-nuts 22:00 -!- itrekkie [~itrekkie@uawifi-nat-210-24.arizona.edu] has quit [Quit: itrekkie] 22:02 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts 22:03 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Client Quit] 22:04 -!- nano_ [~nano@95-89-189-202-dynip.superkabel.de] has joined #go-nuts 22:10 -!- iant [~iant@2620:0:1000:1601:b9dc:4f0c:23eb:9adf] has quit [Ping timeout: 240 seconds] 22:12 -!- stalled [~411@unaffiliated/stalled] has quit [Read error: Connection reset by peer] 22:12 -!- scm [justme@d019153.adsl.hansenet.de] has quit [Ping timeout: 256 seconds] 22:13 -!- scm [justme@c178171.adsl.hansenet.de] has joined #go-nuts 22:14 -!- stalled [~411@unaffiliated/stalled] has joined #go-nuts 22:16 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 22:19 -!- iant [~iant@2620:0:1000:1601:b9dc:4f0c:23eb:9adf] has joined #go-nuts 22:19 -!- mode/#go-nuts [+v iant] by ChanServ 22:22 -!- stalled [~411@unaffiliated/stalled] has quit [Ping timeout: 240 seconds] 22:25 -!- stalled [~411@unaffiliated/stalled] has joined #go-nuts 22:26 -!- gzmask [~ray@corwin.cat.uregina.ca] has left #go-nuts [] 22:31 -!- nano_ [~nano@95-89-189-202-dynip.superkabel.de] has quit [Quit: Lost terminal] 22:32 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-171-141.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 22:35 -!- nutate [~rseymour@cacsag4.usc.edu] has joined #go-nuts 22:36 -!- fenicks [~christian@log77-4-82-246-228-78.fbx.proxad.net] has quit [Read error: Connection reset by peer] 22:36 -!- Venom_X [~pjacobs@cpe-67-9-131-167.austin.res.rr.com] has quit [Quit: Venom_X] 22:36 -!- fenicks [~christian@log77-4-82-246-228-78.fbx.proxad.net] has joined #go-nuts 22:39 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Quit: leaving] 22:39 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: ( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )] 22:47 -!- cantor [~quassel@129.123.253.176] has joined #go-nuts 22:47 -!- Fraeon [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined #go-nuts 22:48 -!- cantor [~quassel@129.123.253.176] has quit [Client Quit] 22:49 -!- cantor [~quassel@129.123.253.176] has joined #go-nuts 22:49 -!- expate98 [~user@pool-74-105-215-60.nwrknj.fios.verizon.net] has joined #go-nuts 22:50 -!- flyfish [~flyfish@pixout.appriss.com] has quit [Quit: flyfish] 22:55 -!- c0n [~tiago@248-13.dial.nortenet.pt] has joined #go-nuts 22:59 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 22:59 -!- c0nfl|ct [~tiago@248-51.dial.nortenet.pt] has quit [Ping timeout: 268 seconds] 23:02 -!- c0n [~tiago@248-13.dial.nortenet.pt] has quit [Quit: Saindo] 23:03 -!- idea_squirrel [ct2rips@77-21-22-174-dynip.superkabel.de] has quit [Quit: what would a pirate do?] 23:08 -!- aho [~nya@f050248008.adsl.alicedsl.de] has joined #go-nuts 23:17 -!- Wiz126 [Wiz126@72.20.222.50] has joined #go-nuts 23:18 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 23:20 -!- cantor [~quassel@129.123.253.176] has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.] 23:21 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has quit [Quit: nchaimov] 23:22 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Ping timeout: 252 seconds] 23:24 -!- OpenSpace [~ja@79.101.151.19] has quit [Remote host closed the connection] 23:30 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 23:31 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit: skelterjohn] 23:35 -!- fenicks1 [~christian@log77-4-82-246-228-78.fbx.proxad.net] has joined #go-nuts 23:35 -!- fenicks1 [~christian@log77-4-82-246-228-78.fbx.proxad.net] has left #go-nuts [] 23:38 -!- fenicks [~christian@log77-4-82-246-228-78.fbx.proxad.net] has quit [Ping timeout: 276 seconds] 23:38 -!- \0x90\ [~sasa@dynamic-192-119-242-80.broadband.blic.net] has joined #go-nuts 23:44 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined #go-nuts 23:52 -!- sinuhe [~sinuhe@hq-nat2.gurulabs.com] has quit [Quit: leaving] 23:53 -!- quixoten [~Devin_Chr@c-67-177-8-48.hsd1.ut.comcast.net] has joined #go-nuts 23:54 < \0x90\> syntax highlighting ? 23:54 < \0x90\> joe, vim .. --- Log closed Wed Feb 24 00:00:15 2010