Go Language Resources Go, golang, go... NOTE: This page ceased updating in October, 2012

--- Log opened Fri Oct 15 00:00:10 2010
00:02 -!- photron [~photron@port-92-201-10-220.dynamic.qsc.de] has quit [Ping
timeout: 264 seconds]
00:03 -!- tvw [~tv@e176002191.adsl.alicedsl.de] has quit [Ping timeout: 245
seconds]
00:16 < exch> Am I correct in assuming to that using TLS/SSL on UDP is a
pointless exercise?  A UDpConn can be wrapped around a UDPConn, but this causes
some problems with accepting incoming connections.  Eg, there net.Conn interface
has no facility to determine the address stored in each individual UDP datagram.
UDPConn has a separate ReadFromUDP() method for this purpose.
00:17 < exch> *A tls.Conn can be wrapped around a UDPConn
00:18 < exch> I'm not sure if this is a deficiency in the net/tls interface
design, or the whole idea of ssl on UDP makes no sense to begin with..
considering it's an inherently unreliable protocol
00:20 < uriel> tls over udp pretty much makes no sense
00:20 < uriel> there seems to be an RFC that specifies some variant of tls
that would work for udp, but never heard of anyone implementing it
00:20 < uriel> see
http://en.wikipedia.org/wiki/Datagram_Transport_Layer_Security
00:20 < exch> hmm fair enough.  I figured as much
00:23 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
00:35 < exch> urgh.  I'm about inclined to just stick with TCP for this
particular job.  Not sure why I opted for UDP in the first place.  It probably
seemed more interesting (it is really).
00:40 -!- kanru [~kanru@118-168-234-222.dynamic.hinet.net] has quit [Ping timeout:
240 seconds]
00:40 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
00:43 -!- itrekkie [~itrekkie@ip72-211-128-31.tc.ph.cox.net] has joined #go-nuts
00:46 -!- nighty__ [~nighty@210.188.173.246] has joined #go-nuts
00:48 < exch> patents galore:
http://arstechnica.com/tech-policy/news/2010/10/patent-troll-takes-over-the-web-can-it-be-stopped.ars
00:48 < exch> in short "patent troll company patents mouse roll-over images
on websites, demands $80K for their usag"
00:48 < exch> +e
00:48 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has quit [Ping
timeout: 250 seconds]
00:48 < skelterjohn> if this will encourage websites to not have roll-over
images, i'm all for it
00:49 < exch> hehe fair enough
00:53 -!- itrekkie [~itrekkie@ip72-211-128-31.tc.ph.cox.net] has quit [Read error:
Connection reset by peer]
00:53 -!- itrekkie [~itrekkie@ip72-211-128-31.tc.ph.cox.net] has joined #go-nuts
00:54 < plexdev> http://is.gd/g2tf1 by [Andrew Gerrand] in go/src/pkg/log/
-- log: fix custom output bug
00:55 < nsf> hehe, in my country software patents do not exist, thank god
00:56 < nsf> although it's worth saying that there are other issues
00:56 < nsf> sweet dreams, good night :)
00:56 -!- mikespook1 [~mikespook@219.137.72.55] has joined #go-nuts
00:56 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
00:56 -!- mikespook1 [~mikespook@219.137.72.55] has quit [Client Quit]
00:57 -!- mikespook [~mikespook@58.61.203.140] has quit [Ping timeout: 272
seconds]
00:59 -!- mikespook [~mikespook@219.137.72.55] has joined #go-nuts
01:00 -!- b00m_chef [~watr@66.183.100.197] has joined #go-nuts
01:03 -!- hoisie [~hoisie@99.13.242.166] has joined #go-nuts
01:05 -!- artefon [~thiago@189.59.187.203] has joined #go-nuts
01:06 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
01:11 < plexdev> http://is.gd/g2umF by [Rob Pike] in go/src/pkg/log/ -- log:
roll back deprecation of old API to apply fix to log.Output in public release.
01:11 < plexdev> http://is.gd/g2umI by [Andrew Gerrand] in 2 subdirs of go/
-- release.2010-10-13.1
01:11 < plexdev> http://is.gd/g2umR by [Andrew Gerrand] in go/ -- tag
release.2010-10-13.1
01:34 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
01:59 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
02:03 -!- b00m_chef [~watr@66.183.100.197] has quit [Ping timeout: 276 seconds]
02:10 -!- artefon [~thiago@189.59.187.203] has quit [Quit: bye]
02:13 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
02:19 < uriel> adg: it would be nice to either have a post about the latest
releases in the official Go blog, or having a news page
02:20 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
02:20 < uriel> or just have a link to
http://golang.org/doc/devel/release.html somewhere in the front page
02:23 < uriel> btw, I don't know how updates to the website work
02:24 < uriel> but this still looks outdated:
http://golang.org/doc/devel/roadmap.html (NaCL and C callback support are both
done AFAIK, and I think I saw you commited a change to update the roadmap
accordingly)
02:25 <@adg> uriel: no, i haven't committed the change yet
02:25 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
02:25 <@adg> uriel: i am wondering whether the simplest thing is to create
an rss-feed of doc/devel/release.html
02:25 -!- Venom_X [~pjacobs@75.92.43.21] has quit [Quit: Venom_X]
02:25 <@adg> uriel: i thought about creating another mailing list,
golang-announce
02:26 < uriel> dunno, the blog currently doesn't get that many updates, so
having new releases posted there would work fine
02:26 < uriel> a golang-announce list would certainly be nice, but I don't
think it would be a substitute for some place in the website that collected
similar news items (mostly releases I guess, but I guess for example it could also
mention conference apperances and so on)
02:27 -!- jmettraux [~jmettraux@211.19.55.177] has left #go-nuts ["Leaving..."]
02:27 < uriel> basically a News page where people can find out what is up
02:27 < uriel> (another item that might come up soon to post in such a page
is Go's participation in GSoC for example)
02:32 < uriel> adg: by the way, I have a couple of suggestions to perhaps
improve/unclutter the new front page a bit, got to sleep now, but if you are
interested we can talk about it some time, or I can play around with some changes
and you can tell me if you like them
03:01 -!- jcao2191 [~Jimmy_Cao@pool-173-74-61-111.dllstx.fios.verizon.net] has
joined #go-nuts
03:01 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Disconnected by services]
03:01 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
03:02 -!- jcao2191 [~Jimmy_Cao@pool-173-74-61-111.dllstx.fios.verizon.net] has
quit [Client Quit]
03:02 -!- niemeyer [~niemeyer@201-40-152-123.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 245 seconds]
03:06 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
03:09 -!- holmescn [ddc0ee09@gateway/web/freenode/ip.221.192.238.9] has joined
#go-nuts
03:13 < holmescn> Some days before, the BFS is talked much.  What about
there days?
03:26 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
03:29 -!- hoisie [~hoisie@99.13.242.166] has quit [Ping timeout: 255 seconds]
03:50 -!- holmescn [ddc0ee09@gateway/web/freenode/ip.221.192.238.9] has quit
[Quit: Page closed]
04:00 < plexdev> http://is.gd/g2Fbk by [Russ Cox] in 4 subdirs of
go/src/cmd/ -- 5l, 6l, 8l: accumulate data image during import
04:01 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Ping
timeout: 260 seconds]
04:16 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
04:16 -!- m_bohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
04:17 -!- gzmask_ [~gzmask@74.198.148.16] has joined #go-nuts
04:17 < gzmask_> where is the source code for "godoc" ?
04:18 -!- m_bohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Read
error: Connection reset by peer]
04:18 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Client
Quit]
04:19 < gzmask_> nvm I found it
04:19 -!- gzmask_ [~gzmask@74.198.148.16] has left #go-nuts []
04:19 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
04:22 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Read error: Connection reset by peer]
04:26 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
04:39 -!- petabit [~89-137259@adsl-99-163-106-141.dsl.hstntx.sbcglobal.net] has
joined #go-nuts
04:41 -!- petabit [~89-137259@adsl-99-163-106-141.dsl.hstntx.sbcglobal.net] has
quit [Remote host closed the connection]
04:43 -!- dj2 [~dj2@2002:63ec:1a4e:0:21f:5bff:fe35:feb5] has quit [Remote host
closed the connection]
04:44 -!- petabit [~89-137228@adsl-99-163-106-141.dsl.hstntx.sbcglobal.net] has
joined #go-nuts
04:47 -!- petabit [~89-137228@adsl-99-163-106-141.dsl.hstntx.sbcglobal.net] has
quit [Killed (idoru (Spam is off topic on freenode.))]
04:51 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
04:54 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten.  Desu~]
05:00 -!- scm [scm@d070201.adsl.hansenet.de] has quit [Ping timeout: 240 seconds]
05:01 -!- aho [~nya@fuld-4d00d729.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
05:02 -!- scm [scm@d070154.adsl.hansenet.de] has joined #go-nuts
05:03 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has quit [Ping timeout: 252
seconds]
05:07 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has joined #go-nuts
05:08 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Ping
timeout: 260 seconds]
05:19 -!- itrekkie [~itrekkie@ip72-211-128-31.tc.ph.cox.net] has quit [Read error:
Connection reset by peer]
05:19 -!- itrekkie [~itrekkie@ip72-211-128-31.tc.ph.cox.net] has joined #go-nuts
05:36 -!- araujo [~araujo@190.38.50.25] has joined #go-nuts
05:36 -!- araujo [~araujo@190.38.50.25] has quit [Changing host]
05:36 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
05:44 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts
05:50 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 265
seconds]
05:55 -!- slashus2 [~slashus2@74-141-107-118.dhcp.insightbb.com] has joined
#go-nuts
06:03 -!- tasosos [~tasosos@188.4.26.132.dsl.dyn.forthnet.gr] has joined #go-nuts
06:04 < Gertm> when I compile go, I get an error message "illegal
instruction" when it tries to do math.Hypot (math.Hypot+0x2c
/home/gert/go/src/pkg/math/hypot_386.s:20).  What could cause that?
06:11 < uriel> Gertm: a bug in your code or in Go's code, sounds like a bug
in the math package, I'd fill it in the issue tracker
06:13 -!- whiz [~work@adsl-70-241-68-27.dsl.hstntx.swbell.net] has joined #go-nuts
06:17 < Gertm> I only get it on that one pc though
06:18 < Gertm> and it's not when compiling my code, it's when compiling the
go release
06:21 < uriel> what release?  have you tried tip?
06:21 < uriel> and what do you mean by 'pc'?
06:24 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 240
seconds]
06:24 < Gertm> ah, it's a cyrix processor
06:24 < Gertm> VIA Samuel 2
06:24 -!- hoisie [~hoisie@c-71-202-45-220.hsd1.ca.comcast.net] has joined #go-nuts
06:24 < Gertm> I'll try the tip, but the release before this one had the
same problem
06:24 < Gertm> I think this cpu just doesn't support that one particular
instruction, could that be possible?
06:25 -!- whiz [~work@adsl-70-241-68-27.dsl.hstntx.swbell.net] has left #go-nuts
[]
06:29 -!- lmoura__ [~lauromour@186.212.106.35] has quit [Read error: Connection
reset by peer]
06:30 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 245
seconds]
06:37 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has quit [Ping timeout: 245
seconds]
06:46 -!- lmoura__ [~lauromour@186.212.96.186] has joined #go-nuts
06:48 -!- hoisie [~hoisie@c-71-202-45-220.hsd1.ca.comcast.net] has quit [Ping
timeout: 255 seconds]
06:53 -!- ExtraSpice [~XtraSpice@78-57-137-162.static.zebra.lt] has joined
#go-nuts
07:05 -!- scoeri [~jdekoste@multicore.vub.ac.be] has quit [Read error: Operation
timed out]
07:07 -!- scoeri [~jdekoste@ssel.vub.ac.be] has joined #go-nuts
07:30 -!- itrekkie [~itrekkie@ip72-211-128-31.tc.ph.cox.net] has quit [Quit:
itrekkie]
07:40 -!- wrtp [~rog@92.17.0.161] has joined #go-nuts
07:41 -!- ikaros [~ikaros@dslb-188-097-076-206.pools.arcor-ip.net] has joined
#go-nuts
07:45 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
07:45 -!- HollyRain [~HollyRain@87.223.104.30] has joined #go-nuts
07:53 -!- res99 [~anonymous@201.237.130.70] has quit [Quit: res99]
07:54 -!- res99 [~anonymous@201.237.130.70] has joined #go-nuts
08:02 -!- mat_ [~mat@mx3.absolight.net] has quit [Read error: Connection reset by
peer]
08:03 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts
08:04 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
08:05 < HollyRain> hi!  I need to store the value of a initial struct but
without loose its value at using a copy of it (where its value is changed)
08:05 < HollyRain> http://www.gopaste.net/?id=1586
08:06 < HollyRain> I know that Go works so, but I need to have the original
value
08:08 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
08:09 < HollyRain> any help?  please
08:13 -!- slashus2 [~slashus2@74-141-107-118.dhcp.insightbb.com] has quit [Quit:
slashus2]
08:15 < nsf> HollyRain: *newSettings = *firstSettings
08:15 < nsf> ?
08:16 -!- ronnyy [~quassel@p4FF1C5B0.dip.t-dialin.net] has joined #go-nuts
08:17 < HollyRain> nsf: in that program does works, but not in another one
08:17 < HollyRain> could be becase its field is a pointer?
08:17 < nsf> yes
08:17 < nsf> you need to copy that field to
08:18 < nsf> manually
08:18 < HollyRain> ahhh ok, thanks
08:18 < nsf> func copyMyStruct(to, from *MyStruct) { to.field1 =
from.field1; copyField2OfMyStruct(to.field2, from.field2); }
08:18 < nsf> etc.
08:19 < nsf> in terms of scripting languages it's called deep copy
08:22 < nsf> s/to/too/
08:22 < nsf> !
08:22 < nsf> :)
08:25 -!- photron [~photron@port-92-201-87-202.dynamic.qsc.de] has joined #go-nuts
08:27 < nsf> "If there are no errors, the function returns false."
08:28 < nsf> what's wrong with this people
08:28 < nsf> :\
08:28 < nsf> I thought it's a weird stuff of the C API, but it's in the C++
API as well
08:29 < nsf> although it makes my life easier, means that treating LLVMBool
as bool where 1 is true and 0 is false, makes sense
08:31 < ampleyfly> aha, so I was right about changing the interpretation
08:32 < nsf> i guess so
08:32 < ampleyfly> not that it makes it less odd :(
08:32 -!- ucasano [~ucasano@host150-147-static.225-95-b.business.telecomitalia.it]
has joined #go-nuts
08:33 -!- Gertm [~Gertm@mail.dzine.be] has quit [Read error: Connection reset by
peer]
08:33 < nsf> well, the thing is, that I'm converting their weird error
reporting style to Go's (which uses os.Error), so I have to dig all the sources
anyway
08:33 -!- Gertm [~Gertm@mail.dzine.be] has joined #go-nuts
08:36 < nsf> haha
08:36 < nsf> now I know the reason why it is that way
08:36 < nsf> verifyModule does this:
08:36 < nsf> return V->Broken;
08:37 < nsf> it should be called isModuleBroken or something
08:38 -!- nighty__ [~nighty@210.188.173.246] has quit [Quit: Disappears in a puff
of smoke]
08:39 < ampleyfly> ayup
08:39 -!- ronnyy [~quassel@p4FF1C5B0.dip.t-dialin.net] has quit [Remote host
closed the connection]
08:40 < nsf> now I'm thinking should I rename it or leave it as it is
08:40 < nsf> ah..  I just use os.Error as a return value instead of bool
08:40 < nsf> s/I/I'll/
08:48 -!- wjlroe [~will@212.169.34.114] has joined #go-nuts
09:02 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout:
240 seconds]
09:04 -!- pvm [~pvm@245.239.17.95.dynamic.jazztel.es] has joined #go-nuts
09:06 < pvm> i have files in different folders and 6g says '../test.go:41:
can't find import: gmp' - how can i tell 6g to search in '..' ?
09:06 < nsf> have you tried '6g -h'
09:06 < nsf> ?
09:07 < nsf> help is useful sometimes
09:07 < nsf> "-I DIR search for packages in DIR"
09:07 < nsf> in your case
09:07 < nsf> -I..
09:08 < pvm> ah, ok
09:16 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
09:24 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
09:27 -!- Gertm [~Gertm@mail.dzine.be] has quit [Read error: Connection reset by
peer]
09:31 -!- Project_2501 [~Marvin@82.84.94.184] has joined #go-nuts
09:32 -!- HollyRain [~HollyRain@87.223.104.30] has left #go-nuts []
09:33 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit:
Leaving]
09:34 -!- mikespook [~mikespook@219.137.72.55] has quit [Quit: Leaving.]
09:37 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
peace in teh middle east]
09:37 -!- DerHorst [~Horst@e176120236.adsl.alicedsl.de] has joined #go-nuts
09:43 -!- Gertm [~Gertm@mail.dzine.be] has joined #go-nuts
09:53 -!- TheMue [~TheMue@p5DDF6F3F.dip.t-dialin.net] has joined #go-nuts
09:59 -!- virtualsue [~chatzilla@nat/cisco/x-hiigqcjsdkwglets] has joined #go-nuts
09:59 -!- pvm [~pvm@245.239.17.95.dynamic.jazztel.es] has quit [Remote host closed
the connection]
10:05 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection
reset by peer]
10:15 -!- Gertm [~Gertm@mail.dzine.be] has quit [Read error: Connection reset by
peer]
10:18 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Quit: Ухожу
я от вас]
10:31 -!- ucasano [~ucasano@host150-147-static.225-95-b.business.telecomitalia.it]
has quit [Quit: ucasano]
10:32 -!- Gertm [~Gertm@mail.dzine.be] has joined #go-nuts
10:32 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts
10:33 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
10:38 -!- peterdn [~peterdn@dhcp-110-228.new.ox.ac.uk] has joined #go-nuts
10:51 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
11:01 -!- ucasano [~ucasano@host150-147-static.225-95-b.business.telecomitalia.it]
has joined #go-nuts
11:05 -!- virtualsue [~chatzilla@nat/cisco/x-hiigqcjsdkwglets] has quit [Ping
timeout: 240 seconds]
11:12 -!- SirPsychoS [~sp@c-24-13-132-255.hsd1.il.comcast.net] has quit [Read
error: Operation timed out]
11:29 -!- yihuang [~yihuang@183.17.174.84] has joined #go-nuts
11:29 -!- yihuang [~yihuang@183.17.174.84] has left #go-nuts []
11:31 -!- DerHorst [~Horst@e176120236.adsl.alicedsl.de] has quit [Remote host
closed the connection]
11:38 -!- Tonnerre [tonnerre@netbsd/developer/tonnerre] has quit [Quit: Lost
terminal]
11:38 -!- Tonnerre [tonnerre@ds1789693.dedicated.solnet.ch] has joined #go-nuts
11:38 -!- Tonnerre [tonnerre@ds1789693.dedicated.solnet.ch] has quit [Changing
host]
11:38 -!- Tonnerre [tonnerre@netbsd/developer/tonnerre] has joined #go-nuts
11:40 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has left
#go-nuts ["Ex-Chat"]
11:41 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Quit: Ухожу
я от вас]
11:41 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts
11:44 -!- noktoborus_ [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts
11:44 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Client Quit]
11:44 -!- noktoborus_ [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Read error:
Connection reset by peer]
11:44 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts
11:49 -!- virtualsue [~chatzilla@nat/cisco/x-faqghbvfsyqwaisd] has joined #go-nuts
11:51 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 265 seconds]
11:57 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
11:59 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
12:10 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 240
seconds]
12:20 -!- niemeyer [~niemeyer@201-40-152-123.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
12:28 -!- ucasano [~ucasano@host150-147-static.225-95-b.business.telecomitalia.it]
has quit [Ping timeout: 264 seconds]
12:38 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
12:47 -!- ucasano [~ucasano@151.12.47.139] has joined #go-nuts
12:48 -!- TheMue [~TheMue@p5DDF6F3F.dip.t-dialin.net] has quit [Quit: TheMue]
12:52 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts
13:03 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
13:06 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
13:21 -!- idr0 [~idr@g225064168.adsl.alicedsl.de] has joined #go-nuts
13:30 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 245 seconds]
13:42 -!- iant [~iant@67.218.105.113] has joined #go-nuts
13:42 -!- mode/#go-nuts [+v iant] by ChanServ
13:44 -!- hoisie [~hoisie@c-71-202-45-220.hsd1.ca.comcast.net] has joined #go-nuts
13:59 -!- femtoo [~femto@95-89-248-43-dynip.superkabel.de] has joined #go-nuts
13:59 -!- dj2 [~dj2@216.16.242.254] has joined #go-nuts
13:59 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
14:01 -!- araujo [~araujo@190.38.50.25] has joined #go-nuts
14:01 -!- araujo [~araujo@190.38.50.25] has quit [Changing host]
14:01 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
14:22 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
14:28 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection
reset by peer]
14:31 -!- fabled [~fabled@mail.fi.jw.org] has quit [Quit: Ex-Chat]
14:32 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com]
has joined #go-nuts
14:43 -!- gzmask [~ray@corwin.cat.uregina.ca] has left #go-nuts []
14:48 -!- gnuvince1 [~vince@70.35.164.66] has joined #go-nuts
14:51 -!- gnuvince [~vince@70.35.161.113] has quit [Ping timeout: 264 seconds]
14:56 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving]
15:03 -!- iant [~iant@67.218.105.113] has quit [Quit: Leaving.]
15:03 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
15:05 -!- hoisie [~hoisie@c-71-202-45-220.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
15:11 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
15:12 -!- iant [~iant@nat/google/x-ddpykrawithbotll] has joined #go-nuts
15:12 -!- mode/#go-nuts [+v iant] by ChanServ
15:12 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving]
15:15 -!- Venom_X [~pjacobs@adsl-99-20-147-171.dsl.aus2tx.sbcglobal.net] has
joined #go-nuts
15:17 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Quit: Ухожу
я от вас]
15:18 -!- anschelsc [~anschel@96.56.250.157] has joined #go-nuts
15:19 < anschelsc> If I want to turn an io.Reader into an io.ReadByter,
should I use bytes.Buffer or bufio.Reader or something else?
15:27 < wrtp> anschelsc: bufio.Reader is what you want
15:38 -!- femtoo [~femto@95-89-248-43-dynip.superkabel.de] has quit [Quit:
Leaving]
15:42 -!- anschelsc [~anschel@96.56.250.157] has quit [Quit: Thanks.]
15:49 -!- noktoborus [debian-tor@gateway/tor-sasl/noktoborus] has joined #go-nuts
15:49 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
15:50 -!- virtualsue [~chatzilla@nat/cisco/x-faqghbvfsyqwaisd] has quit [Ping
timeout: 240 seconds]
15:50 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has joined #go-nuts
15:55 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
15:58 -!- ucasano [~ucasano@151.12.47.139] has quit [Quit: ucasano]
15:59 -!- noktoborus_ [debian-tor@gateway/tor-sasl/noktoborus] has joined #go-nuts
15:59 -!- noktoborus [debian-tor@gateway/tor-sasl/noktoborus] has quit [Quit:
Ухожу я от вас]
15:59 -!- noktoborus_ [debian-tor@gateway/tor-sasl/noktoborus] has quit [Remote
host closed the connection]
16:00 -!- dj2_ [~dj2@216.16.242.254] has joined #go-nuts
16:01 -!- noktoborus [debian-tor@gateway/tor-sasl/noktoborus] has joined #go-nuts
16:02 -!- dj2 [~dj2@216.16.242.254] has quit [Ping timeout: 240 seconds]
16:06 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:26 -!- Project_2501 [~Marvin@82.84.94.184] has quit [Quit: E se abbasso questa
leva che succ...]
16:30 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
16:32 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 245
seconds]
16:34 -!- tshwanson [~pjacobs@adsl-99-20-147-171.dsl.aus2tx.sbcglobal.net] has
quit [Quit: tshwanson]
16:36 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
16:47 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
16:48 -!- ronnyy [~quassel@p4FF1C5B0.dip.t-dialin.net] has joined #go-nuts
16:48 -!- wjlroe [~will@212.169.34.114] has quit [Ping timeout: 240 seconds]
16:50 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit:
Leaving.]
16:51 -!- rlab_ [~Miranda@91.200.158.34] has joined #go-nuts
16:53 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 265 seconds]
16:57 -!- tvw [~tv@e176001035.adsl.alicedsl.de] has joined #go-nuts
16:57 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
16:58 -!- ficoos [~saggi@46-116-129-25.bb.netvision.net.il] has joined #go-nuts
16:59 -!- Tv [~tv@gige.bur.digisynd.com] has joined #go-nuts
16:59 < ficoos> hi, does a channel auto close when for i := range channel {}
exists on break?
17:00 < exch> nope
17:00 < exch> channels have to be closed explicitely
17:01 -!- sacho [~sacho@95-42-88-198.btc-net.bg] has joined #go-nuts
17:02 < Tv> ficoos: that's also the receiving side of the channel, closing
is done by the sending side
17:02 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts
17:02 -!- LentilDave [4ace2653@gateway/web/freenode/ip.74.206.38.83] has joined
#go-nuts
17:02 < ficoos> so I can't do `for item := somelist.Iter() {}` beacuse if I
break the channel stays open
17:03 < exch> You can break all you want.  The channel will just stay open
17:03 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
17:03 < exch> There's ais also no rule stating that the receiving and can't
close a channel, it's just the established protocol to let the sending end do that
17:04 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
17:05 -!- ficoos [~saggi@46-116-129-25.bb.netvision.net.il] has quit [Remote host
closed the connection]
17:05 -!- ficoos [~saggi@46-116-129-25.bb.netvision.net.il] has joined #go-nuts
17:07 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Client Quit]
17:07 < plexdev> http://is.gd/g3rjv by [Russ Cox] in 2 subdirs of
go/src/cmd/ -- 6l, 8l: avoid recursion in asmandsz
17:08 -!- rlab_ [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
17:10 -!- hoisie [~hoisie@c-71-202-45-220.hsd1.ca.comcast.net] has joined #go-nuts
17:11 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
17:12 < ficoos> well, is a channel closed when there are no references to
it?
17:14 < Tv> ficoos: if there are no references to it, it won't matter ;)
17:15 -!- itrekkie [~itrekkie@71-214-190-50.tcso.qwest.net] has joined #go-nuts
17:15 < Tv> sounds like you're stuck thinking about files that are fd's
except with garbage collected object wrappers around them -- channels aren't like
that
17:16 -!- itrekkie [~itrekkie@71-214-190-50.tcso.qwest.net] has quit [Client Quit]
17:16 < Tv> you have no "obligation" to close a channel
17:16 < Tv> it's just a common signal to the reading side that there will be
no more messages
17:16 -!- tensorpudding [~user@99.148.202.191] has left #go-nuts ["ERC Version 5.3
(IRC client for Emacs)"]
17:17 < ficoos> Tv: what about telling the writing side I won't be reading
anymore
17:17 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
17:17 < Tv> ficoos: most people architect their programs to not do that
17:19 < ficoos> Tv: all the Iter() methods some types have will just stay
there forever if you stop reading before you reach the end.
17:19 < Tv> ficoos: exp/iterable was just recently removed from go as a
failed experiment
17:21 < skelterjohn> I don't know if they decided to do this or not, but a
suggestion i have is that if a goroutine is 1) blocked and 2) what it is blocked
on is not connected in some way to an active goroutine, that it should be killed
17:22 < ficoos> Tv: Two day ago, I'll go read the realease notes.  Thanks!
17:22 < skelterjohn> so, with the deprecated Iter() stuff, for instance, if
there is a goroutine that just pumps values onto a channel, and it's blocking
waiting for someone to read, but no one knows about that channel anymore, that it
should disappear and be cleaned up
17:23 < Tv> skelterjohn: that sounds like it might hide some bugs in an ugly
way
17:23 -!- LentilDave [4ace2653@gateway/web/freenode/ip.74.206.38.83] has quit
[Quit: Page closed]
17:23 < skelterjohn> it's guaranteed to never change the behavior of a
program
17:23 < skelterjohn> if done right
17:23 < Tv> skelterjohn: perhaps the send should error out somehow, and you
could handle that one specific error for a quiet shutdown
17:23 < skelterjohn> unnecessary
17:23 < skelterjohn> it will only improve the memory footprint
17:23 < skelterjohn> will not hide or introduce bugs
17:24 < Tv> well the bugs were there already
17:24 < skelterjohn> already that goroutine will be stale and never
reactivate
17:24 < Tv> it just makes them more subtle
17:24 < skelterjohn> no - it really doesn't!
17:24 < skelterjohn> unless you use the amount of memory being used as a bug
indicator
17:24 < skelterjohn> that's the one and only thing that would change
17:24 < Tv> well it's more..  if you start programming with the assumption
that that behavior is ok, you can't use it triggering as a sign of bugs in your
program
17:25 < skelterjohn> i don't follow
17:25 < skelterjohn> if you have a dangling goroutine
17:25 < Tv> what if you didn't intend for that to happen, and would like to
know it happens
17:25 < skelterjohn> there is no way to get that information back
17:25 < skelterjohn> you would never know that it happened if you didn't
intend it
17:25 < skelterjohn> it's just a goroutine in the runtime that never wakes
up
17:26 -!- hoisie [~hoisie@c-71-202-45-220.hsd1.ca.comcast.net] has quit [Ping
timeout: 265 seconds]
17:27 < skelterjohn> cleaning up a dangling goroutine will have identical
behavior to not cleaning it up
17:28 -!- artefon [~thiago@189.59.187.203] has joined #go-nuts
17:28 < soul9> can anyone here show me a doc about the ...  notation?
17:28 <+iant> for a function definition or a function call?
17:28 < Tv> skelterjohn: you are correct on that; however, i find debugging
deadlocks difficult enough, i'd like more help, not my mistakes being sweeped
under the rug
17:29 < soul9> aah found it in the spec
17:29 < soul9> i thought i had searched, but i guess not
17:29 < soul9> iant: don't know yet ;) lemme look at the docs and see if it
elucidates my questions
17:30 < skelterjohn> Tv: sure.  my point is only that my suggestion would
break no code, introduce no bugs, and make the memory footprint smaller in some
cases
17:30 < Tv> skelterjohn: and i'm arguing that right now, you could add the
same detection code, but make it trigger, thus letting me see my deadlocks as
early as possible; if people start relying on that cleanup feature, that will
never be possible again
17:30 < Tv> s/trigger/trigger a panic/
17:31 < skelterjohn> opinions vary
17:31 < skelterjohn> i think it's in line with how the rest of the garbage
collector works
17:31 < Tv> skelterjohn: i wouldn't object in the least if it was explicit
when that is wanted
17:32 < Tv> "i know i will unrecoverably block at some point, just let me
die then"
17:32 < Tv> or even
17:32 < Tv> "this receive/send might block infinitely, if so, kill me"
17:32 < Tv> sort of like the non-blocking send
17:32 < Tv> (/receive)
17:32 < skelterjohn> if that triggered a panic in the goroutine that could
be caught with a recover, that might be ok
17:33 < skelterjohn> i'm still in favor of silent cleanup, though
17:33 < skelterjohn> unless it's main that gets cleaned up
17:33 < skelterjohn> that's a panic right now, and should continue to be so
17:33 < Tv> i'm no language designer, but e.g.  something akin to go/defer:
closing a <- ch
17:33 < Tv> if that'd block forever, exit
17:36 < Tv> but yeah one way of doing it is would be a panic, and then
there's the two design decisions: make the specific "blocks infinitely" panic be
silently eaten by the gc mechanism, or make the code able to catch & handle that
specific panic for a clean shutdown
17:36 < skelterjohn> either way i got shot down when i suggested it to the
ML :)
17:36 < skelterjohn> i forget why
17:37 < skelterjohn> was like 6 months ago
17:37 < Tv> haha
17:39 -!- ronnyy [~quassel@p4FF1C5B0.dip.t-dialin.net] has quit [Ping timeout: 272
seconds]
17:41 < skelterjohn> here it is:
http://groups.google.com/group/golang-nuts/browse_frm/thread/e8a494c088b9ece5/db68690f4669ca60
17:42 -!- Pablosan [9bbcf710@gateway/web/freenode/ip.155.188.247.16] has joined
#go-nuts
17:42 < skelterjohn> oh, the reason was "we're busy" which is reasonable :)
17:43 < Tv> hah, i see my argumentation in that thread
17:43 -!- LentilDave [4ace2653@gateway/web/freenode/ip.74.206.38.83] has joined
#go-nuts
17:46 < skelterjohn> not exactly - RC suggested a panic if all the
goroutines block simultaneously
17:46 < skelterjohn> which is already the case
17:46 < soul9> iant: i was wondering wether i could call a function with X
parameters using an array(or slice) and ..
17:46 < soul9> er s,$,.,
17:49 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
17:49 <+iant> soul9: you can if the function uses ...  itself
17:50 < soul9> ah cool
17:50 <+iant> but if the function takes a fixed number of parameter you need
to write out s[0], s[1], etc.
17:50 < soul9> so calling a function that has ...in it's signature, i can
call with arrrayname...
17:50 < soul9> ?
17:50 <+iant> yes
17:50 < soul9> sweet!
17:50 < soul9> thanks
17:50 < soul9> that simplifies my program by at least 40 lines
17:50 < soul9> \☺/
18:01 < Vovchik> Go Windows IDE
18:01 < Vovchik> http://dl.dropbox.com/u/12236219/GOIDE/GoIDE2.html
18:06 -!- TheMue [~TheMue@p5DDF6F3F.dip.t-dialin.net] has joined #go-nuts
18:15 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
18:20 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
18:26 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
18:30 -!- devrim [~Adium@ip-95-223-189-66.unitymediagroup.de] has joined #go-nuts
18:31 -!- peterdn_ [~peterdn@nat0a.vpn.ox.ac.uk] has joined #go-nuts
18:32 -!- emmanueloga [~emmanuelo@190.244.15.163] has quit [Ping timeout: 276
seconds]
18:33 -!- peterdn [~peterdn@dhcp-110-228.new.ox.ac.uk] has quit [Ping timeout: 255
seconds]
18:34 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has joined #go-nuts
18:36 -!- peterdn_ [~peterdn@nat0a.vpn.ox.ac.uk] has quit [Read error: Connection
reset by peer]
18:36 < MaksimBurnin> Vovchik: cool, but what about autocompletion?
18:36 -!- tvw [~tv@e176001035.adsl.alicedsl.de] has quit [Ping timeout: 245
seconds]
18:38 -!- artefon [~thiago@189.59.187.203] has quit [Ping timeout: 252 seconds]
18:38 -!- LentilDave [4ace2653@gateway/web/freenode/ip.74.206.38.83] has quit
[Ping timeout: 265 seconds]
18:41 -!- femtoo [~femto@95-89-248-43-dynip.superkabel.de] has joined #go-nuts
18:49 < Vovchik> hm
18:50 < Vovchik> i will try to implant something basic soon
18:50 < Vovchik> i just dont have time right nw
18:50 < Vovchik> now
18:50 < gmilleramilar> what toolkit is that done with?
18:51 -!- seromi [~seromi@cpe90-146-191-50.liwest.at] has joined #go-nuts
18:51 -!- seromi [~seromi@cpe90-146-191-50.liwest.at] has quit [Client Quit]
18:51 < gmilleramilar> Vovchik: what toolkit is that done with?
18:52 < Vovchik> AvalonDock and AvalonEdit
18:52 < Vovchik> WPF
18:53 < gmilleramilar> cool.  looks pretty slick
18:54 < skelterjohn> what'd i miss?
18:54 < skelterjohn> i like slick things
18:54 < gmilleramilar> Vovchik was just announcing a Go IDE for windows
http://dl.dropbox.com/u/12236219/GOIDE/GoIDE2.html
18:55 < Vovchik> :D
18:55 < skelterjohn> that's what i inferred - except the windows part (boo!)
18:55 < skelterjohn> i'd like something that would zoom me to lines with
compile errors, and lines that show up in stack traces
18:56 < skelterjohn> i wonder if it's possible to trick xcode to do this
18:57 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
18:57 < Vovchik> i will soon add the source code to this (its pretty dirty
but works fine)
18:59 < cbeck> xcode should be able to, emacs does without problems
19:00 < skelterjohn> first i have to figure out how to tell xcode to compile
19:00 < skelterjohn> right now i just tab over to a terminal
19:02 < EthanG> the only straightforward way I found of compiling a whole
project in xcode was the compile-and-run button
19:02 < MaksimBurnin> The holly war has begun!  Anyway, good job Vovhik,
thanks for your editor, i'll test it at work on monday(can't run on Wine).
19:05 < EthanG> no, just saying what I found, lol.  I think there's a
keybinding / menu entry for just compiling, but I can't get at xcode now
19:06 < EthanG> you can right-click on individual source files to compile
them I think
19:07 -!- emmanueloga [~emmanuelo@190.244.15.163] has joined #go-nuts
19:07 < MaksimBurnin> is there any xcode ports for linux/windows?
19:08 < skelterjohn> not likely
19:08 < skelterjohn> xcode is closed source
19:08 < MaksimBurnin> oh i see...
19:08 < Vovchik> np :D
19:11 < skelterjohn> Vovchik: does your ide use makefiles?  or does it
figure out how to compile on its own?
19:12 -!- unRuhe [~pn@HSI-KBW-095-208-089-084.hsi5.kabel-badenwuerttemberg.de] has
joined #go-nuts
19:14 < Vovchik> it uses gobuild to compile projects and libraries
19:14 < Vovchik> http://code.google.com/p/gobuild/
19:14 < Vovchik> i just edited it to work with windows
19:15 < Vovchik> it can figure out how to compile the project
19:15 -!- hoisie [~hoisie@70-36-139-126.dsl.dynamic.sonic.net] has joined #go-nuts
19:15 < Vovchik> i have added the source code and some little info about how
to manualy create projects
19:16 < MaksimBurnin> can you create a HG/GIT/SVN repo?
19:16 < skelterjohn> i think someone should do an ide based on exp/draw, in
pure go, so it can work wherever someone might want to write gocode
19:17 < MaksimBurnin> skelterjohn, agree.  it would be very good
19:17 -!- idr0 [~idr@g225064168.adsl.alicedsl.de] has quit [Read error: Connection
reset by peer]
19:17 < Vovchik> i agree too :x
19:17 < Vovchik> MaksimBurnin: maybe later
19:18 < MaksimBurnin> someone suggested this yesterday here :-D
19:18 -!- Pablosan [9bbcf710@gateway/web/freenode/ip.155.188.247.16] has left
#go-nuts []
19:18 < yebyen> i'm thrilled that gobuild is really usable now
19:18 < yebyen> i haven't tried it yet though :x
19:18 < yebyen> (embarassing)
19:19 < skelterjohn> is that evolving as some kind of standard?
19:20 < skelterjohn> copying the same makefile all over the place is
annoying
19:21 -!- LentilDave [4ace269a@gateway/web/freenode/ip.74.206.38.154] has joined
#go-nuts
19:23 < ShadowIce> Vovchik: what did you change in gobuild for Windows?
19:24 < skelterjohn> i don't see how to make gobuild install something it
just built
19:24 < Vovchik> cmd.Wait and args passing
19:25 < Gertm> how do I convert from string to []byte easily?
19:25 < MaksimBurnin> []byte("some") i think
19:25 < plexdev> http://is.gd/g3AUt by [Russ Cox] in 4 subdirs of
go/src/cmd/ -- 6l: function at a time code layout
19:26 < plexdev> http://is.gd/g3AUH by [Luuk van Dijk] in go/src/cmd/gc/ --
gc: keep track of real actual type of identifiers.
19:26 < Gertm> doh, ofcourse
19:26 < Gertm> of course* even
19:26 < Vovchik> i used OpenProcess and WaitForSingleObject to replace
cmd.Wait
19:26 < Vovchik> but i think cmd.Wait has been fixed for windows in the last
release
19:28 < MaksimBurnin> i wish i'll never see fork() in a go code :-D
19:31 < napsy> Hello.  can I create a bufio.Reader from *os.File?
19:32 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
19:34 -!- yebyen [~yebyen@martyfunkhouser.csh.rit.edu] has quit [Remote host
closed the connection]
19:34 -!- plainhao [~plainhao@mail.xbiotica.com] has quit [Quit: plainhao]
19:35 -!- noktoborus [debian-tor@gateway/tor-sasl/noktoborus] has quit [Remote
host closed the connection]
19:36 -!- noktoborus [debian-tor@gateway/tor-sasl/noktoborus] has joined #go-nuts
19:36 < TheMue> os.File implements io.Reader, so bufio.NewReader(myFile)
should work
19:37 < napsy> o
19:37 < napsy> ok
19:38 -!- tasosos [~tasosos@188.4.26.132.dsl.dyn.forthnet.gr] has quit [Remote
host closed the connection]
19:39 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
19:42 < skelterjohn> KirkMcDonald: I filed an issue for optparse-go
19:42 < plexdev> http://is.gd/g3C5U by [Russ Cox] in 2 subdirs of
go/src/cmd/ -- 8l: blind attempt to fix windows build
19:43 < napsy> http://gist.github.com/628817 ...  this code runs /bin/ls but
it blocks when I try to read from stdout pipe.  What am I doing wrong?
19:47 < unRuhe> Why does fmt.Scanln("%s",input) not work.  The program just
finished without wanting input
19:48 < skelterjohn> unRuhe: perhaps some more context would be in order
19:48 < unRuhe> i want to type in values
19:48 < skelterjohn> as in, show me some code :)
19:48 < unRuhe> sec
19:51 < unRuhe> http://pastebin.com/79QNbMXh
19:52 < unRuhe> i want to type in a value with the console
19:52 -!- tvw [~tv@e176001035.adsl.alicedsl.de] has joined #go-nuts
19:54 < skelterjohn> use fmt.Scanf
19:54 < skelterjohn> and &input instead of input
19:54 < skelterjohn> http://pastebin.com/pgZ0k2Kq
19:55 < MaksimBurnin> or fmt.Scanln(&input)
19:55 < skelterjohn> also,fmt.Sca
19:55 < skelterjohn> yeah what he said
19:55 < skelterjohn> you have to pass the address of the string
19:55 < skelterjohn> otherwise the information can't get back to you
19:56 < skelterjohn> fmt.Scanln takes no format argument (the "%s")
19:56 < unRuhe> ty u very very much
19:57 < unRuhe> i got it, that & is just like in C actually should have
tried that one myself :D
19:57 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:58 < unRuhe> but shouldn scanln give me an "too much arguments on func
scanln" error?
19:58 < skelterjohn> scanln takes as many arguments as you want to give it
19:58 < unRuhe> oh ure right there were the dots :D
19:59 < unRuhe> okay thx you made all clear to me, I appreciate
20:00 < skelterjohn> our pleasure
20:13 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Read
error: Connection reset by peer]
20:14 < plexdev> http://is.gd/g3EgA by [Rob Pike] in go/src/pkg/log/ -- log:
roll back the rollback of the deprecation of the old interface.
20:17 -!- serverhorror_ [~serverhor@chello080109038110.17.14.vie.surfer.at] has
joined #go-nuts
20:31 < raylu> so i have two lines: "fmt.Println(s)" and "go
fmt.Println(s)", but i only see one print to stdout.  what am i missing?
20:31 -!- Vovchik [~Vova@IGLD-84-229-123-134.inter.net.il] has quit [Ping timeout:
265 seconds]
20:32 < skelterjohn> saying "go foo()" makes no promises about when foo will
execute
20:32 < skelterjohn> and if it doesn't execute before main returns, it will
never execute
20:33 < raylu> oh.  then how do i guarantee that it executes?
20:33 < skelterjohn> synchronization constructs
20:33 < skelterjohn> channels, etc
20:33 < skelterjohn> if you want to have main wait for a goroutine to finish
before it returns, have that goroutine shoot a value on a channel and have main
try to read it
20:33 < Tv> raylu: usual is done := make(chan bool, 1); func foo () { ...;
done <- true }; go foo(); <- done
20:34 < raylu> and if i'm firing off a few (like 3 or so) goroutines in a
loop, i'd have to create an array or somesuch of channels?
20:34 < Tv> or just three variables
20:35 < raylu> or perhaps have one channel that they all read to and have
main read from it 3 times?
20:35 < Tv> sure
20:35 < Tv> a bit harder to figure out who failed to exit, but often done
20:35 < skelterjohn> lots of ways to do it
20:35 -!- Vovchik [~Vova@IGLD-84-229-123-134.inter.net.il] has joined #go-nuts
20:37 < raylu> wait, the problem is that if main exits, the goroutines also
exit, right?  what if i want the goroutines to run indefinitely?
20:38 < raylu> also, what is the 1 in make(chan bool, 1) for?
20:38 < skelterjohn> the only way they can do that is if you have main run
indefinitely
20:38 < skelterjohn> the 1 is the size of the channel's buffer
20:38 < skelterjohn> you don't really need to do that, but it allows your
goroutine to exit immediately, instead of waiting for main to read the channel
20:39 < raylu> oh.  so how do i make main run indefinitely?
20:39 <+iant> for {}
20:39 < raylu> that won't eat up cpu cycles?
20:40 <+iant> <- make(chan int)
20:40 < raylu> throw: all goroutines are asleep - deadlock!
20:41 < skelterjohn> of course they are
20:41 < skelterjohn> you have a program that is supposed to run
indefinitely, doing nothing
20:41 <+iant> time.Sleep(1e12)
20:42 < raylu> is there a non-hacky way to do this, perhaps?
20:42 < skelterjohn> the <- make(chan int) at the end of main() is
probably the best way to do it
20:42 < skelterjohn> but the thing you're trying to do is bad
20:42 < skelterjohn> so it's a bit of a trick question
20:43 < raylu> oh.  it seems so.  making the goroutine actually connect and
wait seems to have fixed it
20:46 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
20:49 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
20:54 -!- serverhorror_ [~serverhor@chello080109038110.17.14.vie.surfer.at] has
quit [Quit: Connection reset by beer!]
20:59 -!- unRuhe [~pn@HSI-KBW-095-208-089-084.hsi5.kabel-badenwuerttemberg.de] has
quit [Quit: Verlassend]
21:12 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
21:22 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
21:27 -!- dj2_ [~dj2@216.16.242.254] has quit [Remote host closed the connection]
21:27 -!- tvw [~tv@e176001035.adsl.alicedsl.de] has quit [Remote host closed the
connection]
21:29 -!- wjlroe [~will@78-86-14-131.zone2.bethere.co.uk] has joined #go-nuts
21:35 -!- wjlroe [~will@78-86-14-131.zone2.bethere.co.uk] has quit [Quit: Get
MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
21:45 -!- tasosos [~tasosos@188.4.26.132.dsl.dyn.forthnet.gr] has joined #go-nuts
21:47 -!- km0r3 [~km0r3@sunjammer.sugarlabs.org] has quit [Quit: leaving]
21:47 -!- gnuvince [~vince@72.0.216.138] has joined #go-nuts
21:49 -!- gnuvince1 [~vince@70.35.164.66] has quit [Ping timeout: 245 seconds]
21:58 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has quit [Ping
timeout: 240 seconds]
21:59 -!- mat_ [~mat@mx3.absolight.net] has quit [Read error: Connection reset by
peer]
21:59 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts
21:59 -!- synth [~cb@obfuscated.us] has joined #go-nuts
21:59 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has joined
#go-nuts
21:59 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving]
22:02 -!- gnuvince1 [~vince@205.239-ppp.3menatwork.com] has joined #go-nuts
22:04 -!- gnuvince [~vince@72.0.216.138] has quit [Ping timeout: 272 seconds]
22:06 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
22:07 -!- femtoo [~femto@95-89-248-43-dynip.superkabel.de] has quit [Quit:
Leaving]
22:08 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
22:10 -!- aho [~nya@fuld-4d00d3f4.pool.mediaWays.net] has joined #go-nuts
22:10 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Client Quit]
22:10 -!- scm [scm@d070154.adsl.hansenet.de] has quit [Ping timeout: 240 seconds]
22:12 -!- scm [scm@d070154.adsl.hansenet.de] has joined #go-nuts
22:16 -!- TheMue [~TheMue@p5DDF6F3F.dip.t-dialin.net] has quit [Quit: TheMue]
22:19 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
22:22 < raylu> so i sort of understand the difference between len(array) and
cap(array), but when does len(array) get changed?  can it ever go down?
22:22 < cbeck> Careful, I have a feeling tht you mean slice, rather than
array
22:23 < raylu> oh, you're right, i do
22:24 < cbeck> And while the length of a given slice will never change, you
might reslice it and get another slice referring to the same array, but with a
different length
22:24 -!- wrtp [~rog@92.17.0.161] has quit [Quit: wrtp]
22:25 < soul9> it's subtle..
22:26 < nsf> it's not
22:26 < raylu> oh.  is the following "reslicing?"
22:26 < raylu> e = e[0 : len(e)+1]
22:26 < nsf> people are just plain lazy in learning new things, even if
those things are _very_ simple
22:26 < nsf> raylu: yes
22:27 < raylu> ok.  this code makes a lot more sense now
22:27 < nsf> 0 can be omitted btw
22:27 < nsf> e = e[:len(e)+1]
22:27 < KirkMcDonald> I thought it was only the right side which could be
omitted.
22:27 < raylu> i'd change it, but the original coder is explicit about 0s
elsewhere too (i assume)
22:28 < soul9> so cap is the length of the underlying array?
22:28 < nsf> KirkMcDonald: there was a change in the language few releases
ago
22:28 < KirkMcDonald> soul9: Yes.  Or at least, the distance between the
start of the slice and the end of the array.
22:28 < nsf> that allows omitting lhs too
22:28 -!- ikaros [~ikaros@dslb-188-097-076-206.pools.arcor-ip.net] has quit [Quit:
Leave the magic to Houdini]
22:28 < KirkMcDonald> soul9: The slice does not have to begin at the start
of the array.
22:28 < soul9> yes
22:28 < soul9> so how do you figure out the start of the array?  :)
22:28 < nsf> soul9: you can't
22:29 < raylu> presumably, you had it at some time in order to get a slice
that's not the start
22:29 < soul9> ok.
22:29 < soul9> yes.  i see.
22:30 -!- niemeyer [~niemeyer@201-40-152-123.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 245 seconds]
22:30 -!- jwillia3 [jlwjr@c-76-16-159-139.hsd1.il.comcast.net] has joined #go-nuts
22:31 < nsf> uhm..  is there any tools for creating documentation for Go?
22:31 < nsf> except godoc
22:31 < nsf> s/is/are/
22:32 < Tv> nsf: maybe you should start by stating why godoc is a bad
choice?
22:32 < nsf> it looks like a daemon and it's not well suited for generating
static (e.g.  html) documentation
22:33 -!- thebarberian [~Master_Co@bas2-streetsville39-2925351941.dsl.bell.ca] has
joined #go-nuts
22:33 < nsf> I'm looking something more like a doxygen
22:33 < Tv> nsf: oh, that's weird
22:33 < nsf> grr..  s/looking/looking for/
22:35 < raylu> the -html option of godoc seems to mention a "command-line
mode"
22:35 < Tv> nsf: as a pythonista, i'm fairly happy with sphinx.pocoo.org for
general technical writing
22:35 < Tv> but it has no clue of go specifics (at this point, at least)
22:35 < nsf> raylu: have tried generating docs using godoc?
22:35 < raylu> no
22:35 < nsf> why people suggesting something without even knowing how it
works
22:35 < nsf> :)
22:36 < nsf> Tv: thanks for the link
22:36 < nsf> I'll check it out
22:36 -!- photron [~photron@port-92-201-87-202.dynamic.qsc.de] has quit [Ping
timeout: 250 seconds]
22:36 < Tv> nsf: because it obviously worked for someone else
22:36 < Tv> namely, golang.org
22:36 < nsf> I haven't seen any 3rd party project that uses godoc
22:37 < nsf> golang.org uses godoc because they've created it
22:37 < nsf> for their needs
22:37 < nsf> and they don't present it as a "general purpose documentation
generator for go"
22:38 -!- gnuvince1 [~vince@205.239-ppp.3menatwork.com] has quit [Ping timeout:
255 seconds]
22:40 -!- gnuvince [~vince@72.0.217.59] has joined #go-nuts
22:40 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
22:43 < nsf> hm..  nice, Go lib has this thing: "go/doc"
22:44 < nsf> I think I'll roll my own simple documentation system :)
22:49 < Tv> nsf: sounds like if you feed a go.ast.File.MergePackageFiles()
result to it, all you need to really provide is the navigation
22:49 < nsf> Tv: go/parser has this thing: ParseDir
22:49 < Tv> ah, even easier
22:50 < nsf> yeah, a bit of html/js sugar and grouping stuff
22:53 -!- gnuvince [~vince@72.0.217.59] has quit [Quit: ""]
23:04 -!- niemeyer [~niemeyer@187.53.254.112] has joined #go-nuts
23:07 < thebarberian> is anyone here using go on fbsd 8.1 amd64?
23:10 * kimelto is
23:11 < kimelto> thebarberian: why?
23:11 < thebarberian> well I have a few questions
23:11 < thebarberian> I am just starting with go
23:11 < raylu> i'm having a bit of trouble with the xml parser and
namespaces
23:12 < thebarberian> kimelto: I am trying two things 1) to build one of the
public packages 2) build my own
23:12 < thebarberian> did you install it from the ports?
23:13 < kimelto> yup, but it is very outdated.
23:13 < thebarberian> when I install it from the ports what am I supposed to
do with the GOROOT dir?
23:14 < kimelto> export GOROOT="/usr/local/lib/go"
23:14 < kimelto> in your ${SHELL}rc
23:14 < kimelto> dont forget GOOS and GOARCH
23:15 < thebarberian> perfect I see it
23:21 < raylu> just kidding; xml.Unmarshal works without specifying
namespaces
23:22 -!- iant [~iant@nat/google/x-ddpykrawithbotll] has quit [Quit: Leaving.]
23:23 < thebarberian> kimelto: I only see the packages there
23:23 < thebarberian> kimelto: I mean in the recommended Makefile everyone
talks about $(GOROOT)/src/Make.$(GOARCH)
23:24 < thebarberian> I noticed that there are some make files in
/usr/local/share/go
23:24 < kimelto> thebarberian: that's right, src is not installed
23:24 < kimelto> thebarberian: exactly, but hey wont work
23:25 < kimelto> as they want to include other makefiles from GOROO/src/
23:25 < thebarberian> I noticed and then I get "/src/blah...  doesn't work"
23:25 < kimelto> but I dont mind as I dont want to use gmake :)
23:26 < thebarberian> :) so it's fine to have a normal make
23:26 < kimelto> sure
23:26 < thebarberian> I mean I had that originally but what about goinstall?
23:27 < kimelto> I dont know, I dont use it.
23:28 < thebarberian> ok fair enough
23:28 < kimelto> pypi, rubygem, ...  not for me ;p
23:28 < thebarberian> :)
23:28 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has quit [Ping timeout:
245 seconds]
23:28 < thebarberian> well it's good to know that these tutorials that show
how to use gomake don't work and it's not me going crazy
23:28 < thebarberian> thanks :)
23:29 < kimelto> you're welcome
23:29 < kimelto> it'll be easier if the src stuff is installed in GOROOT
23:29 < kimelto> but I guess it is not hier(7) compliant
23:30 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout:
250 seconds]
23:30 -!- werdan7_ [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
23:32 -!- niemeyer [~niemeyer@187.53.254.112] has quit [Ping timeout: 245 seconds]
23:33 -!- iant [~iant@67.218.105.113] has joined #go-nuts
23:33 -!- mode/#go-nuts [+v iant] by ChanServ
23:40 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
23:43 < raylu> python has a divmod that returns the quotient and remainder:
http://docs.python.org/library/functions.html#divmod is there something similar in
go?
23:45 < KirkMcDonald> func divmod(a, b int) (div, mod int) { return a / b, a
% b }
23:45 < KirkMcDonald> Sure, it doesn't do the optimization which Python's
divmod does.  But whatever.
23:46 -!- niemeyer [~niemeyer@187.53.254.112] has joined #go-nuts
23:50 < raylu> heh.  ok
23:55 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 245 seconds]
--- Log closed Sat Oct 16 00:00:05 2010