--- Log opened Wed Apr 27 00:00:50 2011
00:02 -!- KBme [~KBme@2001:470:1f13:94::3] has quit [Read error: Operation timed
out]
00:05 -!- artefon [~thiago@189.59.207.132] has joined #go-nuts
00:17 < plexdev> http://is.gd/KHWmMh by [Andrew Gerrand] in
go/misc/dashboard/builder/ -- builder: build multiple targets in parallel
00:17 -!- niemeyer_away [~niemeyer@189-10-219-9.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
00:22 -!- bakkal [~hawk@41.141.170.119] has joined #go-nuts
00:26 -!- KBme [~KBme@2001:470:cabe:666:666:666:666:666] has joined #go-nuts
00:32 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
00:36 -!- sjansen [~sjansen@ip65-44-231-178.z231-44-65.customer.algx.net] has quit
[Ping timeout: 252 seconds]
00:41 -!- nkdnstbr [~nkdnstbr@cpe-173-172-231-83.rgv.res.rr.com] has quit [Read
error: Operation timed out]
00:43 -!- nick [~nkdnstbr@cpe-173-172-231-83.rgv.res.rr.com] has joined #go-nuts
00:45 -!- mbejar [~mbejar@9.Red-79-159-118.staticIP.rima-tde.net] has quit [Ping
timeout: 240 seconds]
00:48 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the
connection]
00:49 -!- sjansen [~sjansen@ip65-44-231-178.z231-44-65.customer.algx.net] has
joined #go-nuts
00:51 -!- Guest94970 [~nkdnstbr@cpe-173-172-231-83.rgv.res.rr.com] has quit [Ping
timeout: 240 seconds]
00:51 -!- iant [~iant@66.109.105.216] has quit [Quit: Leaving.]
00:53 -!- sjansen [~sjansen@ip65-44-231-178.z231-44-65.customer.algx.net] has quit
[Read error: Operation timed out]
00:57 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
01:00 -!- mikespook [~mikespook@183.47.230.163] has joined #go-nuts
01:04 < plexdev> http://is.gd/ysEX8J by [Andrew Gerrand] in 2 subdirs of
go/src/ -- goinstall: support GOPATH; building and installing outside the Go tree
01:10 -!- nkdnstbr [~nkdnstbr@cpe-173-172-231-83.rgv.res.rr.com] has joined
#go-nuts
01:12 -!- JusticeFries [~JusticeFr@c-76-25-153-220.hsd1.co.comcast.net] has joined
#go-nuts
01:17 -!- dreadlorde [~dreadlord@24.11.39.160] has joined #go-nuts
01:17 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Ping timeout:
252 seconds]
01:20 -!- l00t [~i-i3id3r_@20150129006.user.veloxzone.com.br] has joined #go-nuts
01:20 -!- l00t [~i-i3id3r_@20150129006.user.veloxzone.com.br] has quit [Remote
host closed the connection]
01:21 -!- l00t [~i-i3id3r_@20150129006.user.veloxzone.com.br] has joined #go-nuts
01:24 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
01:24 -!- niemeyer_away [~niemeyer@189-10-219-9.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
01:41 -!- imsplitbit [~imsplitbi@12.43.172.10] has joined #go-nuts
01:44 -!- dreadlorde [~dreadlord@24.11.39.160] has quit []
01:47 -!- mikespook [~mikespook@183.47.230.163] has quit [Ping timeout: 276
seconds]
01:48 -!- mikespook [~mikespook@183.47.230.163] has joined #go-nuts
01:48 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
01:48 -!- artefon [~thiago@189.59.207.132] has quit [Read error: Connection reset
by peer]
01:51 < plexdev> http://is.gd/aRoO9u by [Russ Cox] in go/doc/ -- doc:
mention make version in install.html
02:05 -!- nixness [~dsc@dyn-86-36-41-74.wv.qatar.cmu.edu] has joined #go-nuts
02:06 -!- foocraft [~dsc@dyn-86-36-41-74.wv.qatar.cmu.edu] has quit [Ping timeout:
240 seconds]
02:11 < |Craig|> how do I get a list of files in a directory in go?
02:17 < delinka> File.Readdir
02:17 < delinka> in "os" package
02:18 < |Craig|> thanks
02:20 -!- kr [~Keith@204.14.152.118] has quit [Ping timeout: 240 seconds]
02:25 -!- JusticeFries [~JusticeFr@c-76-25-153-220.hsd1.co.comcast.net] has quit
[Quit: JusticeFries]
02:30 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Quit:
skelterjohn]
02:46 -!- Transformer [~Transform@ool-4a59e397.dyn.optonline.net] has joined
#go-nuts
02:49 -!- Transformer [~Transform@ool-4a59e397.dyn.optonline.net] has quit [Excess
Flood]
02:49 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has quit [Ping
timeout: 240 seconds]
02:58 -!- gtaylor [~gtaylor@99-5-124-9.lightspeed.gnvlsc.sbcglobal.net] has joined
#go-nuts
03:01 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has joined #go-nuts
03:04 -!- boscop [~boscop@g225193090.adsl.alicedsl.de] has joined #go-nuts
03:07 -!- keithcascio [~keithcasc@nat/google/x-vipfepxhhumsaeai] has quit [Quit:
Leaving]
03:26 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has joined
#go-nuts
03:27 -!- jarsen [~jarsen@76.8.206.217] has joined #go-nuts
03:41 -!- gedevan [~gedevan@83.167.106.253] has joined #go-nuts
03:48 -!- iant [~iant@71.133.8.30] has joined #go-nuts
03:48 -!- mode/#go-nuts [+v iant] by ChanServ
03:55 -!- jarsen [~jarsen@76.8.206.217] has quit [Remote host closed the
connection]
03:57 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has joined
#go-nuts
03:58 -!- jarsen [~jarsen@76.8.206.217] has joined #go-nuts
04:00 -!- niemeyer_away [~niemeyer@189-10-219-9.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
04:06 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 276 seconds]
04:14 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
04:15 -!- gedevan [~gedevan@83.167.106.253] has quit [Quit: Leaving...]
04:17 -!- iant [~iant@71.133.8.30] has quit [Ping timeout: 260 seconds]
04:17 -!- iant [~iant@216.239.45.130] has joined #go-nuts
04:17 -!- mode/#go-nuts [+v iant] by ChanServ
04:18 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services]
04:18 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
04:24 -!- gtaylor [~gtaylor@99-5-124-9.lightspeed.gnvlsc.sbcglobal.net] has quit
[Quit: gtaylor]
04:30 -!- nkdnstbr [~nkdnstbr@cpe-173-172-231-83.rgv.res.rr.com] has quit [Read
error: Operation timed out]
04:31 < jarsen> so I think I've got all my env variables set up correctly
yet when I'm trying to compile the simple helloworld program I'm running into the
"can't find import: fmt" error.  I'm running on dawrin amd64.  any ideas?
04:32 < cbeck> What does 'echo $GOROOT' say?
04:33 < jarsen> /home/jarsen/go
04:34 < Guest70369> jarsen: have you set and exported GOROOT, GOARCH and
GOOS ?
04:34 < jarsen> yup.  GOARCH=amd64 and GOOS=darwin
04:35 < jarsen> i also set GOHOSTOS and GOHOSTARCH
04:35 < jarsen> and GOBIN=/home/jarsen/go/bin
04:35 < Guest70369> jarsen: you don't need the latter if you're not trying
to cross compile
04:36 < jarsen> the GOHOST* or GOBIN?  or both?
04:36 < Guest70369> gohost...
04:37 < _dfc> bah, nick conflict
04:38 < jarsen> do I need to define GOBIN?
04:38 < _dfc> if you like
04:39 < _dfc> env.sh will set it to $GOROOT/bin if you don't
04:39 < _dfc> i do this
04:39 < _dfc> GOROOT=/home/dfc/go
04:39 < _dfc> GOBIN=${GOROOT}/bin
04:39 < _dfc> PATH=$PATH:${GOBIN}
04:39 < _dfc> most of the time you can avoid defining any of these variables
04:39 < _dfc> and the build will work
04:39 -!- l00t [~i-i3id3r_@20150129006.user.veloxzone.com.br] has quit [Quit:
Leaving]
04:39 < _dfc> but ify ou have problems it's the first thing people will ask
you to check
04:40 < _dfc> so best to stick them in your ~/.profile and be done with it
04:40 < jarsen> yeah, i've got all those exporting from my .zshrc
04:41 < jarsen> and if I env | grep GO they're all there
04:41 < _dfc> should work then
04:42 < _dfc> cd $GOROOT/src && ./make.bash
04:42 < jarsen> hahaha
04:42 < jarsen> i got it I bet :)
04:43 < jarsen> duh.  i'm on os x...  i'm not in /home/jarsen
04:43 < jarsen> i'm in /Users/jarsen/
04:43 -!- benjack [~benjack@bb121-6-49-43.singnet.com.sg] has joined #go-nuts
04:45 < jarsen> that did the trick.  thanks.
04:47 < _dfc> ahh, yes, good catch
04:47 < _dfc> either you're previous build failed
04:47 < _dfc> or it poo'ed in your filesystem
04:51 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
04:54 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Ping timeout: 250
seconds]
05:04 -!- jarsen [~jarsen@76.8.206.217] has quit [Remote host closed the
connection]
05:08 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
05:17 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
05:24 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has joined #go-nuts
05:25 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Quit:
skelterjohn]
05:30 -!- damikin11 [~damikin11@cpe-24-30-179-173.socal.res.rr.com] has joined
#go-nuts
05:37 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
05:47 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit:
Leaving.]
05:51 -!- mbejar [~mbejar@9.Red-79-159-118.staticIP.rima-tde.net] has joined
#go-nuts
05:54 -!- ExtraSpice [XtraSpice@88.118.35.153] has joined #go-nuts
05:58 -!- KBme [~KBme@2001:470:cabe:666:666:666:666:666] has quit [Read error:
Operation timed out]
06:03 -!- KBme [~KBme@2001:470:cabe:666:666:666:666:666] has joined #go-nuts
06:04 -!- Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has quit [Read error:
Connection reset by peer]
06:15 -!- Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has joined #go-nuts
06:16 -!- imsplitbit [~imsplitbi@12.43.172.10] has quit [Quit: Bye!]
06:21 -!- fmoo [~Adium@66.220.144.74] has quit [Quit: Leaving.]
06:25 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
06:28 -!- fmoo [~Adium@66.220.144.74] has joined #go-nuts
06:30 -!- hopso [5b9a092a@gateway/web/freenode/ip.91.154.9.42] has joined #go-nuts
06:31 -!- kr [~Keith@c-24-5-193-165.hsd1.ca.comcast.net] has joined #go-nuts
06:41 -!- dju [dju@fsf/member/dju] has quit [Quit: Quitte]
06:49 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has quit
[Quit: JusticeFries]
07:05 -!- piranha [~piranha@213.125.26.179] has joined #go-nuts
07:13 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:13 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has quit [Read
error: Connection reset by peer]
07:19 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has joined
#go-nuts
07:25 -!- sebastianskejoe [~sebastian@188.114.142.217] has joined #go-nuts
07:27 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Ping
timeout: 260 seconds]
07:29 -!- fmoo [~Adium@66.220.144.74] has quit [Quit: Leaving.]
07:30 -!- dohug [~dohug@c-24-130-172-237.hsd1.ca.comcast.net] has joined #go-nuts
07:31 -!- dave [~dfc@eth59-167-133-99.static.internode.on.net] has joined #go-nuts
07:34 -!- _dfc [~dfc@eth59-167-133-99.static.internode.on.net] has quit [Ping
timeout: 240 seconds]
07:35 -!- Guest62325 [~dfc@eth59-167-133-99.static.internode.on.net] has quit
[Ping timeout: 252 seconds]
07:35 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts
07:41 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
07:41 -!- dohug [~dohug@c-24-130-172-237.hsd1.ca.comcast.net] has left #go-nuts []
07:44 -!- petrux [~petrux@151.13.206.1] has joined #go-nuts
07:46 -!- mbejar [~mbejar@9.Red-79-159-118.staticIP.rima-tde.net] has quit [Ping
timeout: 250 seconds]
07:47 -!- gregschlom [~quassel@118.68.165.201] has joined #go-nuts
07:51 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has quit
[Ping timeout: 240 seconds]
08:00 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has joined
#go-nuts
08:02 -!- ako [~nya@fuld-590c6008.pool.mediaWays.net] has joined #go-nuts
08:03 -!- aho [~nya@fuld-590c7733.pool.mediaWays.net] has quit [Disconnected by
services]
08:04 -!- napsy [~luka@193.2.66.6] has joined #go-nuts
08:05 -!- snearch [~snearch@f053004004.adsl.alicedsl.de] has joined #go-nuts
08:06 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
08:29 -!- ako [~nya@fuld-590c6136.pool.mediaWays.net] has joined #go-nuts
08:30 -!- joelkronander
[~joelkrona@c-bf2fe253.617-1-64736c22.cust.bredbandsbolaget.se] has joined
#go-nuts
08:32 -!- aho [~nya@fuld-590c6008.pool.mediaWays.net] has quit [Ping timeout: 240
seconds]
08:32 -!- ayo [~nya@fuld-590c617c.pool.mediaWays.net] has joined #go-nuts
08:33 -!- Guest10097 [~nya@fuld-590c617c.pool.mediaWays.net] has quit [Read error:
Connection reset by peer]
08:35 -!- ako [~nya@fuld-590c6136.pool.mediaWays.net] has quit [Ping timeout: 250
seconds]
08:41 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Ping timeout: 260
seconds]
08:42 -!- kr [~Keith@c-24-5-193-165.hsd1.ca.comcast.net] has quit [Quit: WeeChat
0.3.2]
08:46 -!- virtualsue [~chatzilla@nat/cisco/x-mkwjzifopgnntbcw] has joined #go-nuts
08:48 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has quit [Quit:
Leaving.]
08:49 -!- joelkronander
[~joelkrona@c-bf2fe253.617-1-64736c22.cust.bredbandsbolaget.se] has quit [Quit:
joelkronander]
08:49 -!- nictuku [~yvesj@unaffiliated/nictuku] has quit [Read error: Operation
timed out]
08:51 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has joined #go-nuts
08:53 -!- pingveno1 [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping
timeout: 252 seconds]
08:53 -!- a2800276 [~a2800276@80.187.216.16] has joined #go-nuts
08:53 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping
timeout: 240 seconds]
09:00 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
09:03 -!- Scorchin [~Scorchin@host109-156-220-65.range109-156.btcentralplus.com]
has joined #go-nuts
09:07 -!- gregschlom [~quassel@118.68.165.201] has quit [Ping timeout: 276
seconds]
09:08 -!- petrux [~petrux@151.13.206.1] has quit [Ping timeout: 264 seconds]
09:11 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
09:12 -!- pingveno1 [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
09:13 -!- damikin11 [~damikin11@cpe-24-30-179-173.socal.res.rr.com] has quit
[Remote host closed the connection]
09:14 -!- gregschlom [~quassel@118.68.165.201] has joined #go-nuts
09:17 -!- benjack [~benjack@bb121-6-49-43.singnet.com.sg] has quit [Quit:
Leaving.]
09:25 -!- gregschlom [~quassel@118.68.165.201] has quit [Ping timeout: 240
seconds]
09:35 -!- _dfc [~dfc@202.81.69.153] has joined #go-nuts
09:36 -!- gregschlom [~quassel@118.68.165.201] has joined #go-nuts
09:36 -!- petrux [~petrux@151.13.206.1] has joined #go-nuts
09:43 -!- gregschlom [~quassel@118.68.165.201] has quit [Ping timeout: 240
seconds]
09:51 -!- wrtp [~rog@92.17.70.99] has joined #go-nuts
09:52 -!- joelkronander [~joelkrona@130.236.243.164] has joined #go-nuts
09:52 -!- sebastianskejoe [~sebastian@188.114.142.217] has quit [Ping timeout: 248
seconds]
09:53 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts
09:53 -!- lk [5b9a07e9@gateway/web/freenode/ip.91.154.7.233] has joined #go-nuts
09:58 -!- joelkronander_ [~joelkrona@130.236.243.164] has joined #go-nuts
09:58 -!- joelkronander [~joelkrona@130.236.243.164] has quit [Read error:
Connection reset by peer]
09:58 -!- _dfc [~dfc@202.81.69.153] has quit [Quit: Silly man, I am a Baron!]
10:01 -!- ab3 [~abe@83.101.90.66] has quit [Ping timeout: 276 seconds]
10:01 -!- mbejar [~mbejar@59.Red-83-39-52.dynamicIP.rima-tde.net] has joined
#go-nuts
10:04 -!- sebastianskejoe [~sebastian@188.114.142.217] has joined #go-nuts
10:06 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
10:09 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has joined #go-nuts
10:33 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has quit [Quit:
This computer has gone to sleep]
10:35 -!- petrux [~petrux@151.13.206.1] has quit [Quit: leaving]
10:36 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
joined #go-nuts
10:41 -!- hopso [5b9a092a@gateway/web/freenode/ip.91.154.9.42] has quit [Ping
timeout: 252 seconds]
10:46 -!- clawtros [~user@CPE00222d75f090-CM00222d75f08d.cpe.net.cable.rogers.com]
has joined #go-nuts
10:48 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds]
10:49 < clawtros> what kind of scope does something that's been deferred
get?
10:49 < aiju> the scope it's in?
10:50 < clawtros> ha, inarguable.
10:51 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts
10:51 < Namegduf> Being deferred doesn't modify scope.
10:52 < jessta_> clawtros: defered things are the same as when they were
deferred
10:52 < jessta_> defer f(g)
10:52 < jessta_> g= 5
10:53 < jessta_> ummm...g=new(sometype)
10:54 < jessta_> doesn't modify the aobve g
10:55 < clawtros> ahaa, this is making more sense.  was just reading about
it and had a weird idea for using it to make memoization prettier.  it is early.
10:58 -!- Project_2501 [~Marvin@82.84.88.10] has joined #go-nuts
10:59 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
11:02 -!- mbejar [~mbejar@59.Red-83-39-52.dynamicIP.rima-tde.net] has quit [Ping
timeout: 250 seconds]
11:05 -!- huin [~huin@91.84.64.19] has joined #go-nuts
11:18 -!- clawtros [~user@CPE00222d75f090-CM00222d75f08d.cpe.net.cable.rogers.com]
has left #go-nuts ["ERC Version 5.3 (IRC client for Emacs)"]
11:24 -!- gregschlom [~quassel@118.68.165.201] has joined #go-nuts
11:30 -!- napsy [~luka@193.2.66.6] has quit [Quit: leaving]
11:38 -!- kamaji [~kamaji@cpc2-aztw22-2-0-cust775.aztw.cable.virginmedia.com] has
quit [Quit: leaving]
11:42 -!- artefon [~thiago@189.59.207.132] has joined #go-nuts
11:42 -!- lk_ [5b9a092a@gateway/web/freenode/ip.91.154.9.42] has joined #go-nuts
11:44 -!- lk [5b9a07e9@gateway/web/freenode/ip.91.154.7.233] has quit []
11:48 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
12:15 -!- niemeyer [~niemeyer@189-10-219-9.pltce701.dsl.brasiltelecom.net.br] has
joined #go-nuts
12:24 -!- wrtp [~rog@92.17.70.99] has quit [Quit: wrtp]
12:27 -!- Saskwach [~nathan@dhcp-0-25-9c-d3-a7-c7.cpe.townisp.com] has quit [Quit:
Leaving]
12:33 -!- ab3 [~abe@83.101.90.66] has joined #go-nuts
12:35 < xyproto> Hi, I wrote some code to make map[string]string more
comfortable to deal with.  Critique&comments are welcome.
http://go.pastie.org/1839067
12:36 < exch> 'for i,_ := range' is the same as 'for i := range'
12:36 < xyproto> exch: ah, good point.  thanks
12:38 < exch> in (m *StringMap) Strings(), you are not actually modifying
what the receiver points to.  So probably no need to use a pointer receiver
12:40 < exch> in the StringMap.String() method, you are concatenating
strings in a loop.  If there are a lot of entries in the map, that bit of code can
become pretty slow.  lot's of reallocations because strings are immutable.  It's
probably faster to use a bytes.Buffer to accumulate the new data
12:41 -!- phoeton [~phoeton@p579BD5B9.dip.t-dialin.net] has joined #go-nuts
12:42 < exch> Ther'es a cut-off point there where s += "foo" repetition
becomes less efficient/speedy than the bytes.Buffer approach.  Perhaps its worth
some testing to see at how many elements that starts to happen
12:42 < exch> s/Ther'e/There'/
12:43 < xyproto> exch: I see.  I seem to recall the s += approach not being
great at scaling.
12:44 < xyproto> exch: and for Strings(), it could rather be (m StringMap)
Strings(), if I understand you correctly?
12:44 < exch> yes
12:44 < exch> that way there is no need for the pointer dereferences when
you do *m
12:45 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts
12:45 < ww> is there a particular benefit to having it not be a pointer
receiver?
12:45 < ww> or just save on one extra character in the source file?
12:45 < ww> ah....
12:45 < ww> typed that at the same time :)
12:45 < exch> StringMap is a map, which is already a referenc etype of
sorts.  If you don't actually modify the m variable itself, there is really no
need to use a pointer receiver
12:47 < ww> sure.  haven't looked at the code in question.  i find i almost
always have a pointer receiver, but then i deal in structs mostly
12:48 < xyproto> exch: would it be best to initialize a byte.Buffer with
NewBuffer or NewBufferString?  I could not find a function for just initializing
to a specific size.
12:48 < xyproto> exch: NewBuffer(make([]byte, 123)) ?
12:49 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
12:49 < exch> That could work
12:49 < exch> I normally just do: var b bytes.Buffer
12:49 < xyproto> exch: ah, read some more documentation, seems like
NewBuffer(make([]byte, 0, 123)) is the way.
12:49 < exch> it's ready for use then
12:50 < xyproto> exch: but when you have the desired length, it would be
better to provide it right away, for efficiency?
12:50 < exch> I would imagine so
12:51 < ww> buffer needs a Resize() method
12:51 < ww> so you don't have to allocate a throw-away buffer just to
initialise it which seems rather silly
12:52 < xyproto> ww: or just NewBufferWithSize(123)
12:52 -!- huin [~huin@91.84.64.19] has quit [Quit: leaving]
12:53 < xyproto> Capacity instead of size, though
12:53 < ww> sure, though i would imagine that to be implemented as { var b
Buffer; b.Resize(123); return &b } :P
12:54 < xyproto> is buffer.WriteString(value + ", ") or
buffer.WriteString(value); buffer.WriteString(", ") most efficient?
12:56 < xyproto> ww: I guess it could be implemented with a throwaway byte
slice as well?
12:57 < ww> sure, modulo needless alloc/free churn
12:57 < ww> i think the second will be more efficient if value is long
12:58 < ww> there will be a crossover in the append (allocate / copy) vs.
extra function call tradeoff
12:59 < ww> i suspect but don't know that that tradeoff happens for
relatively small values of "long"
12:59 < ww> so i'd tend to opt for the second way
13:01 < xyproto> ok, here's the new version that uses a buffer :)
http://go.pastie.org/1839160
13:01 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
13:04 -!- sebastianskejoe [~sebastian@188.114.142.217] has quit [Quit: Lost
terminal]
13:21 < skelterjohn> a throwaway buffer?  I thought that
NewBuffer(aByteSlice) used that byte slice as its buffer
13:25 -!- gregschlom [~quassel@118.68.165.201] has quit [Ping timeout: 258
seconds]
13:26 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Quit: Lost
terminal]
13:28 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 252 seconds]
13:28 < plexdev> http://is.gd/la68Sn by [Russ Cox] in go/src/cmd/gopack/ --
gopack: preserve safe flag when not adding unsafe objects to archive
13:29 -!- arun [~arun@unaffiliated/sindian] has quit [Read error: No route to
host]
13:29 < xyproto> skelterjohn: you're right.  It's not thrown away.  Here's
the definition of NewBuffer: func NewBuffer(buf []byte) *Buffer { return
&Buffer{buf: buf} }
13:35 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
13:36 < skelterjohn> cool, makes sense
13:38 -!- dj2 [~dj2@216.16.242.254] has joined #go-nuts
13:39 -!- iant [~iant@67.218.109.241] has joined #go-nuts
13:40 -!- mode/#go-nuts [+v iant] by ChanServ
13:40 < phoeton> Sorry for the silly question, but why would I put that
piece of code in a function in the first place?
13:41 < phoeton> Seems to me like I can use that way of getting a new buffer
directly without the need for a function call?
13:44 -!- arun__ [~arun@2001:610:110:4e2:280:5aff:fe69:e130] has joined #go-nuts
13:44 < exch> what function do you mean?
13:44 -!- iant [~iant@67.218.109.241] has quit [Ping timeout: 260 seconds]
13:45 -!- arun__ [~arun@2001:610:110:4e2:280:5aff:fe69:e130] has quit [Changing
host]
13:45 -!- arun__ [~arun@unaffiliated/sindian] has joined #go-nuts
13:46 -!- iant [~iant@216.239.45.130] has joined #go-nuts
13:46 -!- mode/#go-nuts [+v iant] by ChanServ
13:47 < kafo> exch: He probably means bytes.NewBuffer()
13:51 < exch> ah.  Buffer.buf is a private field.  It can only be directly
accessed from inside the bytes package.  So &Buffer{buf: mybuf} would not work
from outside the package.
14:05 -!- r_linux [~r_linux@189.38.220.35] has joined #go-nuts
14:06 -!- gregschlom [~quassel@118.68.165.201] has joined #go-nuts
14:15 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Quit:
skelterjohn]
14:16 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
14:17 < phoeton> Oh sorry for not responding.
14:17 < phoeton> Thanks for the explanation, still not used to looking at
argument capitalization ;)
14:22 < xyproto> I think it's unfortunate that "e" or "E" is used in
floating point numbers (like 1e9), as e is usually 2.71828...
14:24 < ab3> how can I create a io.Reader from an handle (int32)?
14:25 < exch> ab3: what does the handle represent?
14:25 < ab3> a stdin
14:25 < ab3> from syscall
14:26 < exch> mm You can cretae an os.File from an integer handle with
os.NewFile(fd int, name string)
14:27 < exch> not sure if that works with the handle from a syscall though
14:27 < ab3> k, i will try that
14:28 -!- Project-2501 [~Marvin@82.84.92.98] has joined #go-nuts
14:30 -!- gregschlom [~quassel@118.68.165.201] has quit [Ping timeout: 276
seconds]
14:31 -!- Project_2501 [~Marvin@82.84.88.10] has quit [Ping timeout: 240 seconds]
14:31 < xyproto> how can I use the reflect package to get a tag from a field
in a struct?
14:32 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds]
14:33 -!- snearch_ [~snearch@f053004004.adsl.alicedsl.de] has joined #go-nuts
14:33 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts
14:34 < kafo> Are there any working SDL, OpenGL or similar library bindings
for Windows?
14:34 <+iant> xyproto: when you get a StructField, you can look at the Tag
field
14:34 -!- jbooth1 [~jay@209.249.216.2] has joined #go-nuts
14:34 <+iant> you get a StructField via Field or FieldByName or whatever on
the reflect.Type
14:35 -!- evildho [~dho@onager.omniti.com] has quit [Ping timeout: 246 seconds]
14:35 < xyproto> iant: Ok, but if I have a variable of a struct type, called
x, what is the call to get a reflect.Type from x?
14:35 < xyproto> iant: I read the documentation, but thought it was hard to
find
14:36 <+iant> xyproto: call reflect.TypeOf(x) to get a reflect.Type for x
14:36 -!- joelkronander [~joelkrona@130.236.243.164] has quit [Ping timeout: 248
seconds]
14:36 < xyproto> iant: ok, thx!
14:36 -!- evildho [~dho@onager.omniti.com] has joined #go-nuts
14:37 < xyproto> iant: ah, reflect.Typeof worked
14:42 -!- sjansen [~sjansen@ip65-44-231-178.z231-44-65.customer.algx.net] has
joined #go-nuts
14:43 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts
14:49 -!- distributed [d9c03e02@gateway/web/freenode/ip.217.192.62.2] has joined
#go-nuts
14:50 -!- snearch [~snearch@f053004004.adsl.alicedsl.de] has quit [Quit:
Verlassend]
14:53 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
14:55 -!- a2800276 [~a2800276@80.187.216.16] has quit [Ping timeout: 240 seconds]
14:55 < phoeton> I think there must be something wrong with the default
godoc formatting or something.
14:56 < phoeton> The way the package documentation for the standard library
is formatted in HTML might need a little tweaking.
14:56 < skelterjohn> what are you referring to?
14:56 -!- ExtraSpice [XtraSpice@88.118.35.153] has quit [Read error: Connection
reset by peer]
14:57 < phoeton> Lately, many people have been asking for a particular piece
of functionality _after_ reading exactly the place where it is explained and where
you are supposed to find that information, saying they couldn't find it.
14:57 < phoeton> While I didn't experience these problems myself in any of
the package documentation, I think the mere fact that these questions seem so
common warrants a second look at the documentation layout.
14:58 < skelterjohn> it's mostly with the spec, i think
14:58 < skelterjohn> and specs are classically hard to read
14:58 < skelterjohn> but i think go's is better than most
14:58 < phoeton> I think there might be two things one could simply do in
the source code comments in the standard library to make the documentation more
accessible without even having to change anything about godoc itself.
14:59 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
14:59 < phoeton> And I'm particularily referring to the standard library
here, which is the surprising thing.  I really didn't mean the language spec
itself.
14:59 < phoeton> That seems to be easy enough to read already.
14:59 -!- iant [~iant@216.239.45.130] has quit [Quit: Leaving.]
14:59 < phoeton> The ideas for comments were:
15:00 < phoeton> Include a line in the top which few of the exported types,
constants and functions one would almost always be dealing with when using that
package,
15:01 < skelterjohn> i think a code example wiki would be nice
15:01 < phoeton> and maybe include a short but well documented usage example
covering as much as possible of the functionality in a seperate go file.
15:01 < phoeton> Or a code example wiki, but then you would again have one
more place to look.
15:02 < phoeton> I actually find the documentation completely satisfying
myself, so I can't help but think that minor tweaks like these would diminish the
problems some people seem to experience in understanding http://golang.org/pkg/
15:03 -!- ExtraSpice [XtraSpice@88.118.35.153] has joined #go-nuts
15:03 < phoeton> What do you guys think?
15:03 < skelterjohn> there was a go-nuts thread about this a few weeks ago
15:03 < phoeton> Did it reach any sort of conclusion?
15:04 < skelterjohn>
https://groups.google.com/d/topic/golang-nuts/18RLxVIrRb0/discussion
15:05 < phoeton> Again, the thing that worries me is not the absence of
conclusive documentation, but the fact that several times a day in this very
chatroom people ask questions about documented things even _after_ consulting
exactly the right page in http://golang.org/pkg/
15:05 < skelterjohn> the obvious answer is to make fun of people's reading
skills
15:07 < phoeton> I really don't think that's the way to go ;)
15:07 -!- iant [~iant@nat/google/x-pwyikbfuqlqlmikg] has joined #go-nuts
15:07 -!- mode/#go-nuts [+v iant] by ChanServ
15:07 < aiju> thway to *go*
15:07 < aiju> hahaha
15:07 < aiju> *the way
15:08 < phoeton> I think if something like this happens with that frequency
it could potentially say something bad about the documentation.
15:08 < phoeton> Though I would actually need to find someone who has
problems with the documentation in its current state and is willing to contribute
to find out what that is.
15:09 < xyproto> I think what's mostly lacking is a sentance or two that
demonstrates a typical use case.
15:09 < xyproto> *sentence
15:11 < phoeton> Well, while I rather like the idea of including code
examples with the standard library packages, I also think that they might not be a
sufficient replacement for a descriptive line under every type and function in the
godoc package "table of contents", where people are concerned who are already
heaving difficulty finding information in the current documentation.
15:12 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
15:12 < phoeton> Oh that sentence came out rather convoluted.
15:12 < phoeton> I'm sorry for being so foreign ;)
15:13 < phoeton> Sure hope my bad writing doesn't pain you too much.
15:13 < kafo> At first I had problems with the documentation but that was
because I had barely used doxygen/javadoc/godoc type of documentation before.
Mostly learned stuff in tutorial form and others' code.
15:16 < aiju> phoeton: the code is the documentation
15:16 < aiju> godoc is already waaaay to nice ;P
15:16 < xyproto> executable code is the documentation, a disassembly should
be more than enough ;)
15:16 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
15:16 < phoeton> I read code myself, too.
15:17 < aiju> xyproto: no, pure binary
15:17 < aiju> disassemblers are for kids
15:17 < xyproto> aiju: no, just cards with holes in them ;)
15:17 < phoeton> Do you really think that is what we should be telling
people who come here looking for help?
15:17 < aiju> i was serious, the go code is fairly readable
15:17 < xyproto> the go source and the comments are actually quite handy
15:17 < xyproto> but, finding the simple use case is usually the hard part
15:18 < xyproto> and that is nowhere in the code
15:18 < aiju> i don't think there is a place in the reference for that eithe
15:19 < exch> the _test.go files usually contain use-cases
15:19 -!- anticw [~anticw@c-67-169-68-180.hsd1.ca.comcast.net] has quit [Ping
timeout: 258 seconds]
15:20 < xyproto> exch: that is true, but as far as I can tell, they are not
as accessible as the documentation or the go source code.  The go source code is
nice and easy to access by clicking on function names in the documentation.
15:20 < exch> I also make a habit of always including a thorough README file
with every lib/program
15:28 -!- piranha [~piranha@213.125.26.179] has quit [Quit: Computer has gone to
sleep.]
15:29 -!- gedevan [~gedevan@83.167.106.253] has joined #go-nuts
15:30 < phoeton> READMEs are awesome, but I think making the best use
possible of the godoc tool, at least for the standard library, might set a nice
example for developers in general.
15:30 < phoeton> Remember: the way the stdlib is documented will set the
tone for many other package documentations out there.
15:31 < phoeton> I hate documentation verbosity for verbosity's sake, but if
it really is the case that so many non-stupid, non-lazy people are having
problems, one should consider going a tad higher.
15:32 < exch> it's true.  the tests and READMEs are not very useful in a
godoc environment
15:33 < phoeton> Another useful thing might be to promote _short_ codewalks
more, as I think they are a nice idea, and include specific codewalks not for
tasks or production examples, but individual stdlib packages.
15:33 -!- awidegreen [~quassel@c-cfc5e555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
15:33 < phoeton> What I'm trying to find out here, by the way, is where to
best allocate my energy and motivation for improving documentation.
15:35 -!- Project_2501 [~Marvin@82.84.80.170] has joined #go-nuts
15:38 -!- Project-2501 [~Marvin@82.84.92.98] has quit [Ping timeout: 258 seconds]
15:38 -!- res99 [~anonymous@201.237.130.70] has joined #go-nuts
15:40 < ww> is there a way to globally install a panic handler to make sure
the tracebacks get put into a logfile instead of going to stderr
15:40 < ww> my daemon crashed and i don't know why :(
15:40 < ww> i imagine a nil dereference somewhere but who knows
15:41 < xyproto> ww: ./myapp 1>&2 alloutput.txt
15:41 < xyproto> ww: I guess it would be possible to set up recover somehow,
but I dubt it's a good idea
15:41 < xyproto> *doubt
15:41 < ww> xyproto: yeah sure.  except that it runs as a daemon and closes
its fds in normal way...
15:42 < ww> i could change it to not do that i suppose...
15:42 < phoeton> ww: then you need to use a recover.
15:42 < xyproto> ww: do you use log.Println() and friends?
15:42 < ww> xyproto: yes
15:42 < ww> phoeton: but it isn't clear where to put the recover - the panic
may happen in who knows which goroutine that the http server has started
15:43 < xyproto> ww: have you tried using log.SetOutput to a file, for
instance?
15:43 < ww> i'd prefer not to put recovers everywhere :)
15:43 < ww> xyproto: yes, that's exactly what it does
15:43 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined
#go-nuts
15:43 < xyproto> ww: oh.
15:43 < ww> but it doesn't catch a panic which is i imagine what happened
15:43 < ww> (the thing was running for two weeks without problems, so who
knows...)
15:44 < skelterjohn> i typically put a recover in main, though that doesn't
help with goroutines
15:45 < Namegduf> I tend to put recover around things handling user
requests, but not try to recover everywhere.
15:45 < Namegduf> Recover is only useful if the rest of the server is left
in a defined state
15:45 < Namegduf> Otherwise it can be worse than a quick fail if you corrupt
data somewhere.
15:45 < Namegduf> Hard to guarantee everywhere.
15:45 < Namegduf> It is kinda tricky, though.
15:46 < ww> actually...  i already have a wrapper that sets certain http
headers...  so could do it there
15:46 < ww> and i cannot see any case in which this particular server could
get into an inconsistent state so it should be safe enough
15:46 < Namegduf> Yeah.
15:47 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 252 seconds]
15:48 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined
#go-nuts
15:48 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
15:49 < ww> printing out the result of recover will just print whatever
argument panic() may have gotten, right?
15:49 < ww> is there a way to get the call stack?
15:50 < ww> basically i want to put the same thing that would have ended up
in stdout to the log file, maybe without the non-panicing goroutines
15:50 < Namegduf> Good question.
15:51 < ww> aha
15:51 < ww> http://golang.org/pkg/runtime/debug/#Stack
15:51 -!- DeedleFake [~Deedles@c-98-251-36-162.hsd1.ga.comcast.net] has joined
#go-nuts
15:54 -!- joelkronander
[~joelkrona@c-bf2fe253.617-1-64736c22.cust.bredbandsbolaget.se] has joined
#go-nuts
15:57 -!- Scorchin [~Scorchin@host109-156-220-65.range109-156.btcentralplus.com]
has quit [Quit: Scorchin]
15:57 < phoeton> ww:Does that actually solve your problem?
16:01 < ww> phoeton: good enough:
16:01 < ww> https://gist.github.com/944544
16:02 -!- distributed [d9c03e02@gateway/web/freenode/ip.217.192.62.2] has quit
[Quit: Page closed]
16:02 < phoeton> ww: Cool.  Somehow I had imagined your problem to be much
more complex than that.
16:03 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
16:03 < ww> only works because there's a specific place where i can put the
recover - i already have an appropriate wrapper and hopefully that's above where
the panic happens
16:04 < ww> also the stack trace is not quite right, it's actually line 10
that caused the panic not line 9 but it is probably close enough to serve the
purpose
16:07 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has joined #go-nuts
16:08 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
16:08 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
16:08 < phoeton> ww: sounds good.  Hope it works out for you.
16:08 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined
#go-nuts
16:09 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
quit [Quit: leaving]
16:11 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined
#go-nuts
16:11 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
16:12 -!- artefon [~thiago@189.59.207.132] has quit [Quit: bye]
16:12 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
16:13 < DeedleFake> Hi. I'm trying to pipe the stdout of one command into
the stdin of another.  I figured I could probably just use io.Copy(), but it's not
working.  I think that the problem is that the command I'm piping stuff into is
waiting for an EOF on the input before processing the input and exiting.  Any
ideas?
16:13 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined
#go-nuts
16:14 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has quit [Read
error: Operation timed out]
16:14 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has joined #go-nuts
16:15 < phoeton> DeedleFake: would it work to manually put an EOF in the
end?
16:15 < DeedleFake> I tried that, although I'm not sure I'm doing it right.
How should I do it?
16:15 < ww> ofp.Close()?
16:16 < DeedleFake> Tried that too.
16:16 < ww> ofp.Flush() (though i would think this is implied by close...)
16:18 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
16:18 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has quit [Ping
timeout: 252 seconds]
16:21 < Namegduf> It is.
16:21 < DeedleFake> Syncing it first works.  Thanks.
16:22 < phoeton> DeeldeFake: Invoking Close() on your PipeWriter should
result in EOF on subsequent reads, according to io documentation, so it is really
strange that Close() shouldn't work.
16:22 < Namegduf> Huh.
16:22 < Namegduf> My best guess is that io.Copy() just stops when the input
stops, rather than copying across a close.
16:23 < DeedleFake> I just tried Close() it without Sync(), and it works
now.  Weird.  Whatever.  Thank you for the help.
16:23 < phoeton> DeedleFake: Just out of interest: could you post the
original code with Close() that didn't work?
16:24 < phoeton> Maybe you found a genuine bug here, because syncing
shouldn't really make the difference most of the time.
16:24 < DeedleFake> I just tried it again with Close() and it works now, so
I have no idea what I did wrong the first time.
16:24 < aiju> EOF is a write with zero bytes
16:24 -!- huin [~huin@91.84.64.19] has joined #go-nuts
16:25 < aiju> hm no
16:26 < phoeton> aiju: EOF is something different depending on where it is
defined, sometimes it's -1, but it can also be a type of error.
16:26 < aiju> phoeton: if you're reading, EOF is just getting no data back
16:27 < aiju> but pipes do buffering, so you can't just write zero bytes
16:27 -!- krutcha [~krutcha@remote.icron.com] has joined #go-nuts
16:27 < phoeton> aiju: Actually no, EOF is getting no data back AND getting
os.EOF as an error.
16:27 < aiju> i'm talking about the low-level interface
16:27 < phoeton> aiju: Oh, I get it.
16:27 < aiju> read() on *nix is guaranteed to return data except on EOF
16:27 < vegai> vai ootas, kerkesinkhn
16:27 < vegai> oopsie
16:29 < DeedleFake> Thanks for the help.
16:29 -!- DeedleFake [~Deedles@c-98-251-36-162.hsd1.ga.comcast.net] has quit
[Quit: Ex-Chat]
16:29 < ww> which end of the pipe did you close?
16:30 < phoeton> Was that finnish, vegai?
16:31 < vegai> phoeton: yes
16:32 < phoeton> Oh, cool.
16:32 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
16:32 < phoeton> vegai: Are you finnish yourself?
16:33 < vegai> yes
16:33 < phoeton> Cool!  Do you have a Kääpiösnautserimme?
16:33 * vegai laughs
16:33 < phoeton> (Only finnish word I know...)
16:34 < phoeton> (and the snautser part isn't really all that finnish...)
16:34 < phoeton> (… kind of embarrassing, now that I think about it)
16:34 < vegai> "Do you have a our miniature schnauzer"
16:34 < phoeton> Yes.
16:34 < phoeton> Oh it says our miniature schnauzer?
16:34 -!- DerHorst [~Horst@e176102168.adsl.alicedsl.de] has joined #go-nuts
16:35 < vegai> yeah, -mme inflects it like that
16:35 < phoeton> I always thought it's only miniature schnauzer.  Damn you,
compositing languages!
16:35 -!- dj2 [~dj2@216.16.242.254] has left #go-nuts []
16:35 < phoeton> Well, I'm one to talk, being a native german speaker.
16:35 < vegai> I was just wondering about this earlier today: aiomme = we
will try, aioimme = we tried
16:36 < vegai> that must be fun for foreigners who're learning the language
16:36 < phoeton> with nice words like
Donaudampfschifffahrtsgesellschaftskapitän.
16:36 < vegai> yeah, th'tas cool too
16:36 < Namegduf> Can you actually say that out loud without running out of
breath?
16:36 < Namegduf> I'd asphixiate.
16:36 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has joined
#go-nuts
16:36 < aiju> hahaha
16:37 < phoeton> Yeah, I think finnish is said to be rather hard.
16:37 < aiju> vegai: well, this is nice compared to japanese
16:37 < aiju> where one spoken word may have 40 completely random meanings
:)
16:37 < Namegduf> And all but 1 are intensely socially embarassing.
16:37 < aiju> haha
16:37 < phoeton> We have a finnish guy doing his PhD thesis at our Institute
of Theoretical Linguistics here, he always uses finnish examples in his papers.
16:37 < Namegduf> They won't tell you.  But they'll JUDGE YOU.  Internally.
16:38 < vegai> well, the good thing is that the language is mostly regular
16:38 * Namegduf only speaks English, which he remains convinced is probably the
worst language.
16:38 < Namegduf> It's about as regular as Perl's regexes.
16:38 < vegai> I suppose the bad thing is tha a lot of things can be
composed together
16:38 < phoeton> vegai: Latin is mostly regular, too, doesn't make it easy
;)
16:38 < Namegduf> I was once learning Latin
16:38 < aiju> english is one of the easiest languages ever
16:39 < vegai> aiju: I'm not so sure..  depends
16:39 < vegai> I'm just finishing a course on english grammar
16:39 < vegai> then again, almost nobody learns english through grammar
studies
16:39 < phoeton> Well, I guess reading germanic languages like English is
easy enough.  Pronunciation in English is weird though.
16:39 < aiju> it is
16:40 < Namegduf> No, pronunciation in every other language is weird.
16:40 < Namegduf> :P
16:40 < aiju> german pronounciation is also weird
16:40 < phoeton> English is the only language I know of where every written
vowel is pronounced like two vowels.
16:40 < Namegduf> I mean at least by default we pronounce all our letters,
unlike some languages
16:40 < aiju> Namegduf: -ou- in pronounce
16:41 < Namegduf> aiju: Yeah, typo.
16:41 < aiju> no, i'm questioning your statement
16:41 < aiju> do you say the -ou-?  ;)
16:41 < Namegduf> As "ow"
16:41 < Namegduf> Yes
16:41 < phoeton> Instead of a you say äi, instead of e you say i, instead of
i you say ai, instead of u you say "you", instead of o you say ou.
16:41 < phoeton> Ever noticed?
16:42 < aiju> german vowels are weird as well
16:42 < Namegduf> When reading out letters, yeah
16:42 < Namegduf> In words, it varies
16:42 < Namegduf> Long e and short e and fun.
16:42 < phoeton> See, it's totally unregular.
16:42 < Namegduf> Yeah.
16:42 < Namegduf> It's partly because we absorb words like a sponge.
16:42 < aiju> then again, this is nothing compared to japanese, where a
single kanji can have up to 35 pronounciation
16:42 < aiju> +s
16:42 < Namegduf> Sometimes keeping half the pronounciation.
16:42 < phoeton> German vowels are pronounced exactly like their IPA glyphs.
16:43 < aiju> phoeton: no, they're not
16:43 < aiju> phoeton: if you say any word like that, it sounds shitty
16:43 < aiju> you have to respect open/closed vowels
16:43 < Namegduf> The big irregularity is where letters are combined.
16:43 < phoeton> aiju: do you mean dialects or standard german=
16:43 < aiju> standard german
16:44 < Namegduf> "ou" to "ow"
16:44 < Namegduf> (With a very weak 'w')
16:44 < aiju> anyway, afk
16:44 -!- iant [~iant@nat/google/x-pwyikbfuqlqlmikg] has quit [Read error:
Operation timed out]
16:44 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
16:45 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-177-205.clienti.tiscali.it] has
joined #go-nuts
16:46 -!- iant [~iant@nat/google/x-fdzrfuptpznwrtmj] has joined #go-nuts
16:46 -!- mode/#go-nuts [+v iant] by ChanServ
16:46 < phoeton> me too, making french toast.
16:49 -!- Project_2501 [~Marvin@82.84.80.170] has quit [Ping timeout: 260 seconds]
16:52 -!- tvw [~tv@e176002032.adsl.alicedsl.de] has joined #go-nuts
17:00 -!- gregschlom [~quassel@118.68.165.201] has joined #go-nuts
17:02 < plexdev> http://is.gd/Y43yrf by [Rob Pike] in 3 subdirs of go/ --
tutorial: replace the forever loops with finite counts in sieve programs.
17:12 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has joined #go-nuts
17:15 -!- rutkowski [~adrian@078088209137.walbrzych.vectranet.pl] has joined
#go-nuts
17:16 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
17:16 -!- artefon [~thiago@150.164.9.146] has joined #go-nuts
17:17 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:749f:556b:46f0:eeae] has joined
#go-nuts
17:17 -!- Urmel| [~11087Urme@82-136-196-44.ip.telfort.nl] has quit [Read error:
Connection reset by peer]
17:18 -!- TheMue [~TheMue@p5DDF7AE2.dip.t-dialin.net] has joined #go-nuts
17:19 -!- zimsim [~simon@87.72.77.195] has joined #go-nuts
17:21 -!- dasd [~11087Urme@82-136-196-44.ip.telfort.nl] has joined #go-nuts
17:24 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Read error:
Connection reset by peer]
17:24 -!- gregschlom [~quassel@118.68.165.201] has quit [Ping timeout: 252
seconds]
17:26 -!- zimsim [~simon@87.72.77.195] has quit [Ping timeout: 240 seconds]
17:26 < delinka> can I name packages with . in them, or can I organize them
into directories a la Java?
17:26 < skelterjohn> package files can have a .
17:26 < skelterjohn> package names, ie from the "package" statement in the
source, must be identifiers
17:26 < skelterjohn> which cannot have a .
17:27 < skelterjohn> you can put the .a file wherever you want - the import
path just has to match that
17:28 < delinka> oh, right, I forget I'm not importing "some.nested.package"
but "some/nested/package"
17:28 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts
17:31 < exch> that has always irked me abuot java namespaces..  importing
stuff like com.foo.bar.I.like.cake.and.then.some And only the very last bit
actually has any code in it, making all the nesting completely superfluous
17:31 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
17:31 < exch> There's something to be said for organizing code, but java
convention just seems to go completely out of control in that regard :p
17:40 -!- zimsim [~simon@87.72.77.195] has joined #go-nuts
17:40 -!- zozoR [~Morten@90.185.81.29] has joined #go-nuts
17:41 -!- eiro [~marc@phear.org] has quit [Ping timeout: 240 seconds]
17:42 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has joined
#go-nuts
17:43 -!- anticw [~anticw@24.5.65.155] has joined #go-nuts
17:47 -!- anticw [~anticw@24.5.65.155] has quit [Ping timeout: 260 seconds]
17:48 -!- a2800276 [~a2800276@xdsl-78-34-251-216.netcologne.de] has joined
#go-nuts
17:53 < skelterjohn> it was the fact that you'd make them basically reverse
web addresses
17:53 < skelterjohn> edu.myschool.mydepartment.mylab.myproject.mylibrary
17:54 < skelterjohn> though now there are *actual* urls in the import
17:54 < skelterjohn> so i don't know that go has improved upon this issue :)
17:56 -!- jyxent [~jyxent@129.128.191.96] has quit [Read error: Connection reset
by peer]
17:57 -!- TheMue [~TheMue@p5DDF7AE2.dip.t-dialin.net] has quit [Quit: TheMue]
17:58 -!- TheMue [~TheMue@93.223.122.226] has joined #go-nuts
17:58 -!- gtaylor2 [~gtaylor@99-5-124-9.lightspeed.gnvlsc.sbcglobal.net] has
joined #go-nuts
18:05 -!- phoeton [~phoeton@p579BD5B9.dip.t-dialin.net] has quit [Quit: phoeton]
18:06 < homa_rano> in java's defense, urls totally should have been
organized that way
18:09 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has quit [Quit:
Lost terminal]
18:10 -!- jyxent [~jyxent@129.128.191.96] has joined #go-nuts
18:15 < dahankzter> but java packages does not have to match the directory
right?
18:16 < kafo> Damn I feel stupid
18:18 < kafo> Been playing around with debugger to find and reverse an
encryption for few days and only now realised I should put breakpoint in the data
buffer on write.
18:23 -!- sebastianskejoe [~sebastian@89.249.0.154] has joined #go-nuts
18:23 -!- arun__ [~arun@i172010.upc-i.chello.nl] has joined #go-nuts
18:25 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 250 seconds]
18:28 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Ping timeout:
252 seconds]
18:30 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts
18:39 -!- anticw [~anticw@c-67-169-68-180.hsd1.ca.comcast.net] has joined #go-nuts
18:39 < xyproto> is there any plans to support negative indexes in slices,
like in Python?  It's very handy.  x[:-2] is x without the two last items.  A step
would be handy too.  x[::-1] is the slice in reverse.  x[1::2] is all odd
elements.
18:40 < xyproto> sorry, x[0::2] is all odd elements.
18:42 < Namegduf> No.
18:43 < Namegduf> Indexes aren't numbers per se, they're arbitrary
expressions.
18:43 < Namegduf> And while an explicitly written negative index is clear
enough...
18:43 < krutcha> I'd honestly rather see x[:len(x)-2] than the -2 shortcut
18:43 < Namegduf> An expression outputting a negative number is likely an
error.
18:43 < Namegduf> Or *too* likely an error.
18:43 < Namegduf> Steps are not implementable.
18:43 < skelterjohn> negative indices will never be part of go
18:44 < Namegduf> Slicing does not copy.
18:44 < Namegduf> Steps would require slicing to copy.
18:44 < skelterjohn> that has been made clear by the devs
18:44 < KirkMcDonald> Namegduf: Or adding a "stride" attribute to slices.
18:44 < KirkMcDonald> Namegduf: And multiplying everything by the stride...
18:44 < KirkMcDonald> Etc.
18:44 < Namegduf> That too, but it'd increase the size of all of them and be
kinda silly for what is a really really uncommon desire.
18:44 < KirkMcDonald> Which would be madness.
18:44 < skelterjohn> that would actually be pretty useful for matrices
18:45 < skelterjohn> if you stored your matrix in a flat array, that would
make column vectors easy to isolate
18:45 < skelterjohn> gomatrix already does this, but it's all wrapped up
18:45 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Read error:
Connection reset by peer]
18:46 -!- arun_ [~arun@i172010.upc-i.chello.nl] has quit [Changing host]
18:46 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts
18:47 < xyproto> krutcha: I agree that it has some readability-advantages
18:47 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Quit: Leaving]
18:47 < xyproto> skelterjohn: ok, I didn't know.  Thanks
18:47 -!- pingveno1 [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Quit:
leaving]
18:47 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Quit:
leaving]
18:48 -!- eiro [~marc@phear.org] has joined #go-nuts
18:48 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
18:51 -!- artefon [~thiago@150.164.9.146] has quit [Ping timeout: 260 seconds]
18:56 -!- a2800276 [~a2800276@xdsl-78-34-251-216.netcologne.de] has quit [Ping
timeout: 260 seconds]
19:00 -!- rutkowski [~adrian@078088209137.walbrzych.vectranet.pl] has quit [Quit:
WeeChat 0.3.3-dev]
19:00 -!- zozoR [~Morten@90.185.81.29] has quit [Read error: Connection reset by
peer]
19:02 -!- a2800276 [~a2800276@xdsl-78-34-222-170.netcologne.de] has joined
#go-nuts
19:03 -!- mbejar [~mbejar@80.174.196.32.dyn.user.ono.com] has joined #go-nuts
19:07 -!- jyxent [~jyxent@129.128.191.96] has quit [Read error: Connection reset
by peer]
19:09 -!- keithcascio [~keithcasc@nat/google/x-lmccnaqvxvonitvr] has joined
#go-nuts
19:10 -!- jyxent [~jyxent@129.128.191.96] has joined #go-nuts
19:16 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
19:29 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has joined #go-nuts
19:30 -!- virtualsue [~chatzilla@nat/cisco/x-mkwjzifopgnntbcw] has quit [Ping
timeout: 260 seconds]
19:33 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
19:34 -!- mbejar [~mbejar@80.174.196.32.dyn.user.ono.com] has quit [Ping timeout:
250 seconds]
19:36 < plexdev> http://is.gd/An5ujE by [Evan Shaw] in 2 subdirs of
go/src/pkg/ -- http/fcgi: New package
19:40 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
19:51 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has joined #go-nuts
19:52 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has quit [Ping timeout: 248
seconds]
19:52 -!- pharris [~Adium@rhgw.opentext.com] has quit [Ping timeout: 240 seconds]
19:53 < plexdev> http://is.gd/6oOjms by [Peter Mundy] in go/src/pkg/runtime/
-- runtime: fix mkversion to output valid path separators
19:58 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
19:59 -!- ExtraSpice [XtraSpice@88.118.35.153] has quit [Read error: Connection
reset by peer]
20:12 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X]
20:16 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping
timeout: 240 seconds]
20:18 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:749f:556b:46f0:eeae] has quit
[Quit: Leaving.]
20:18 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
20:21 -!- kafo [5b9a092a@gateway/web/freenode/ip.91.154.9.42] has quit [Ping
timeout: 252 seconds]
20:23 -!- virtualsue [~chatzilla@host81-139-80-186.in-addr.btopenworld.com] has
joined #go-nuts
20:32 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has joined
#go-nuts
20:33 -!- virtualsue [~chatzilla@host81-139-80-186.in-addr.btopenworld.com] has
quit [Ping timeout: 250 seconds]
20:35 -!- sebastianskejoe [~sebastian@89.249.0.154] has quit [Quit: Lost terminal]
20:40 -!- virtualsue [~chatzilla@64.103.25.233] has joined #go-nuts
20:44 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
20:45 -!- a2800276 [~a2800276@xdsl-78-34-222-170.netcologne.de] has quit [Quit:
a2800276]
20:46 -!- huin [~huin@91.84.64.19] has quit [Quit: leaving]
20:50 -!- snearch_ [~snearch@f053004004.adsl.alicedsl.de] has quit [Quit:
Verlassend]
21:00 -!- r_linux [~r_linux@189.38.220.35] has quit [Quit: leaving]
21:04 -!- DerHorst [~Horst@e176102168.adsl.alicedsl.de] has quit [Remote host
closed the connection]
21:06 -!- welterde [welterde@thinkbase.srv.welterde.de] has quit [Ping timeout:
240 seconds]
21:06 -!- [dmp] [~dennis@unaffiliated/dmp/x-546784] has quit [Ping timeout: 240
seconds]
21:07 -!- [dmp] [~dennis@unaffiliated/dmp/x-546784] has joined #go-nuts
21:08 -!- a2800276 [~a2800276@xdsl-213-196-209-176.netcologne.de] has joined
#go-nuts
21:09 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
21:11 < plexdev> http://is.gd/bP9tSs by [Brad Fitzpatrick] in 2 subdirs of
go/src/pkg/http/cgi/ -- cgi: improve Location response handling
21:12 -!- artefon [~thiago@189.59.207.132] has joined #go-nuts
21:12 -!- mbejar [~mbejar@80.174.196.32.dyn.user.ono.com] has joined #go-nuts
21:13 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
21:18 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 250 seconds]
21:19 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
21:19 -!- welterde [welterde@thinkbase.srv.welterde.de] has joined #go-nuts
21:20 -!- JusticeFries [~JusticeFr@173.8.247.218] has joined #go-nuts
21:21 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
21:22 -!- awidegreen [~quassel@c-cfc5e555.08-2-73746f39.cust.bredbandsbolaget.se]
has quit [Read error: Connection reset by peer]
21:22 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has quit [Remote
host closed the connection]
21:26 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 264 seconds]
21:27 -!- tvw [~tv@e176002032.adsl.alicedsl.de] has quit [Remote host closed the
connection]
21:27 -!- imsplitbit [~imsplitbi@sccc-66-78-236-243.smartcity.com] has joined
#go-nuts
21:28 < plexdev> http://is.gd/KWEcjv by [Gustavo Niemeyer] in
go/src/pkg/reflect/ -- reflect: Fix Copy of arrays
21:28 < plexdev> http://is.gd/xN0S3W by [Brad Fitzpatrick] in
go/src/pkg/http/ -- http: keep gzip reader inside eofsignaler
21:28 -!- TheMue [~TheMue@93.223.122.226] has quit [Quit: TheMue]
21:31 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
21:34 -!- zimsim [~simon@87.72.77.195] has quit [Remote host closed the
connection]
21:35 -!- kr [~Keith@204.14.152.118] has joined #go-nuts
21:45 -!- tvw [~tv@e176002032.adsl.alicedsl.de] has joined #go-nuts
21:47 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Quit:  /(bb|[^b]{2})/]
21:48 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
21:48 -!- a2800276 [~a2800276@xdsl-213-196-209-176.netcologne.de] has quit [Quit:
a2800276]
21:49 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
21:49 -!- krutcha [~krutcha@remote.icron.com] has quit [Quit: Leaving]
21:56 -!- virtualsue [~chatzilla@64.103.25.233] has quit [Ping timeout: 260
seconds]
22:00 -!- exch [~exch@31-151-123-254.dynamic.upc.nl] has quit [Read error:
Operation timed out]
22:00 -!- exch [~exch@31-151-123-254.dynamic.upc.nl] has joined #go-nuts
22:01 -!- jyxent [~jyxent@129.128.191.96] has quit [Ping timeout: 246 seconds]
22:04 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit:
Leaving.]
22:07 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-177-205.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
22:07 -!- bakkal [~hawk@41.141.170.119] has quit [Ping timeout: 240 seconds]
22:08 -!- jyxent [~jyxent@129.128.191.96] has joined #go-nuts
22:08 -!- SecretAgent [sa@28.158.143.98.nitemare.name] has quit [Quit: leaving]
22:10 -!- xb95 [~xb95@dreamwidth/staff/mark] has joined #go-nuts
22:12 -!- SecretAgent [sa@28.158.143.98.nitemare.name] has joined #go-nuts
22:16 -!- gtaylor [~gtaylor@99-5-124-9.lightspeed.gnvlsc.sbcglobal.net] has quit
[Quit: gtaylor]
22:17 -!- keithcascio [~keithcasc@nat/google/x-lmccnaqvxvonitvr] has quit [Quit:
Leaving]
22:22 -!- a2800276 [~a2800276@xdsl-213-196-209-176.netcologne.de] has joined
#go-nuts
22:24 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
22:28 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
22:28 -!- mbejar [~mbejar@80.174.196.32.dyn.user.ono.com] has quit [Ping timeout:
250 seconds]
22:31 -!- nkdnstbr [~nkdnstbr@cpe-173-172-231-83.rgv.res.rr.com] has joined
#go-nuts
22:35 -!- nick___ [~nkdnstbr@cpe-173-172-231-83.rgv.res.rr.com] has joined
#go-nuts
22:36 -!- nkdnstbr [~nkdnstbr@cpe-173-172-231-83.rgv.res.rr.com] has quit [Ping
timeout: 240 seconds]
22:44 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
22:45 < plexdev> http://is.gd/OfYfPO by [Brad Fitzpatrick] in
go/src/pkg/http/ -- http: put a limit on POST size
22:45 < plexdev> http://is.gd/nkv5jz by [Brad Fitzpatrick] in 5 subdirs of
go/src/pkg/ -- ioutil: add Discard, update tree.
22:46 -!- imsplitbit [~imsplitbi@sccc-66-78-236-243.smartcity.com] has quit [Quit:
Bye!]
22:48 -!- joelkronander
[~joelkrona@c-bf2fe253.617-1-64736c22.cust.bredbandsbolaget.se] has quit [Ping
timeout: 240 seconds]
22:50 -!- JusticeFries [~JusticeFr@173.8.247.218] has quit [Ping timeout: 260
seconds]
22:54 -!- fmoo [~Adium@66.220.144.74] has joined #go-nuts
23:17 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Remote
host closed the connection]
23:18 -!- tvw [~tv@e176002032.adsl.alicedsl.de] has quit [Remote host closed the
connection]
23:18 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
23:22 -!- iant [~iant@nat/google/x-fdzrfuptpznwrtmj] has quit [Quit: Leaving.]
23:26 -!- fmoo1 [~Adium@66.220.144.74] has joined #go-nuts
23:26 -!- fmoo [~Adium@66.220.144.74] has quit [Read error: Connection reset by
peer]
23:26 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has quit [Quit:
Leaving.]
23:27 -!- fmoo1 [~Adium@66.220.144.74] has quit [Client Quit]
23:28 < plexdev> http://is.gd/l5O3Fj by [Brad Fitzpatrick] in
go/src/pkg/archive/tar/ -- tar: use ioutil.Discard
23:28 -!- fmoo [~Adium@66.220.144.74] has joined #go-nuts
23:31 -!- iant [~iant@216.239.45.19] has joined #go-nuts
23:31 -!- mode/#go-nuts [+v iant] by ChanServ
23:32 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
23:32 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 260 seconds]
23:34 -!- iant1 [~iant@66.109.105.216] has joined #go-nuts
23:36 -!- iant [~iant@216.239.45.19] has quit [Ping timeout: 248 seconds]
23:40 < ab3> hello
23:41 < ab3> whats wrong with this: http://dpaste.com/536502/
23:41 -!- mode/#go-nuts [+v iant] by ChanServ
23:43 <+iant> ab3: strings = append(strings, strings1[i:]...)
23:43 <+iant> note that ...
23:44 -!- niemeyer [~niemeyer@189-10-219-9.pltce701.dsl.brasiltelecom.net.br] has
quit [Ping timeout: 240 seconds]
23:44 < ab3> what does the ...  do?
23:44 < ab3> any doc on it?
23:45 < exch> it essentially 'unpacks' your slice of strings into the
individual elements.  It allows a list of elements to be treated as individual
vararg parameters
23:46 <+iant> ab3: http://golang.org/doc/effective_go.html#printing , look
for ...
23:46 < exch> without the ...  you are in effect trying to add an ellement
of type '[]string' to a list that holds only 'string'
23:46 -!- res99_ [~anonymous@201.237.130.70] has joined #go-nuts
23:47 -!- res99 [~anonymous@201.237.130.70] has quit [Read error: Connection reset
by peer]
23:47 < ab3> ok, i am reading it now
23:47 < jessta_> one of my favourite features
23:47 < ab3> its kind of like *l in python
23:47 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
23:47 < ab3> where l is a list
23:52 < KirkMcDonald> Does that only work on variadic parameters?
23:52 < KirkMcDonald> (The Go thing, not the Python thing.)
23:52 < KirkMcDonald> (I'm aware that the Python thing works on anything.)
23:53 < exch> It only makes sense for functions which take variadic
arguments
23:54 < KirkMcDonald> func f(a, b, c string) {} args := []string{"one",
"two", "three"}; f(args...) // this is what the Python thing would allow
23:55 <+iant> that does not work in Go
23:56 < jessta_> that would be scary in Go, since the slice might not be
len(3)
23:56 <+iant> the ....  in Go gives you something that you can not do in any
other way
23:57 <+iant> it doesn't provide an alternative way to do something you can
do otherwise
23:57 < exch> i'm guessing ...  is one of those necessary edge case
'features' that just couldn't be avoided
23:57 < |Craig|> it could be made to work with fixed sized arrays, but that
would provide anything new
23:57 < |Craig|> *wouldn't
23:59 < KirkMcDonald> I agree that it makes much less sense in Go than it
does in Python.
--- Log closed Thu Apr 28 00:00:50 2011