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

--- Log opened Fri Oct 01 00:00:09 2010
00:02 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Ping
timeout: 276 seconds]
00:10 < nf_> scyth: yes
00:10 < nf_> scyth: we use go-protobuf internally at google
00:11 < msponer> Newbie syntax question: If a function returns a value, can
you assign it's address to a pointer on one line?  For example: var foo *Type =
&(Blah.Copy())
00:11 < scyth> nf_, yeah...  I got it working finally...  2 hours of trouble
though, only to find out that there was distro package of protoc installed which
didn't work with my go :)
00:11 < cbeck> Yes
00:11 < cbeck> msponer: ^^
00:15 < nf_> kronoz is gone now, but for anyone wanting to contribute to the
Go project, there are some issues on the tracker labelled 'HelpWanted' that could
use attention.  they should be pretty straightforward
00:16 < crazy2be> is it possible to modify an array as you are iterating
over it with a range clause?
00:16 < crazy2be> That is, make it so that rather than foo[bar], it's giving
you *foo[bar]
00:22 -!- tvw [~tv@e176004221.adsl.alicedsl.de] has quit [Ping timeout: 245
seconds]
00:23 < cbeck> crazy2be: Not that I know of, besides using the index/key
00:27 < msponer> I am having trouble understanding Address Operators-- what
is addressable.  I am trying to assign the address of a return value of a Copy()
function (from xml.StartElement) into a pointer variable.  The compiler is giving
me a "cannot take the address of x.StartElement.Copy()" when I try it on one line.
Are return values not addressable?
00:27 < msponer> It works as expected if I break this into two lines:
00:27 < msponer> temp := t.Copy()
00:28 < msponer> tStart = &temp
00:28 < msponer> But tStart = &(t.Copy()) gives an error.  Is it not
addressable or is my syntax wrong?
00:32 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
00:33 < nf_> msponer: the return value of t.Copy is on the stack, so you
need to create a variable on the heap to take a pointer to it
00:34 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping
timeout: 265 seconds]
00:34 < nf_> any linux users care to try out these experimental Go binary
releases for me?  http://code.google.com/p/go/downloads/list
00:36 < msponer> nf_: Ok, thank you.  I was not sure if that was
automagically handled or not.
00:37 < scyth> nf_, can it wait for tomorrow?:) almost 3am here :)
00:37 <+iant> think of it this way: you can only take the address of
something which can appear on the left hand side of an assignment statement
00:38 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has joined
#go-nuts
00:39 -!- Tv1 [~tv@gige.bur.digisynd.com] has quit [Ping timeout: 252 seconds]
00:40 < msponer> iant: Got it.  So variables declared within a function are
on the heap?
00:40 <+iant> no, they are only put on the heap if you do in fact take their
address
00:42 < msponer> So the compiler looks forward and see's me taking it's
address on the next line, and silently converts the invisible declaration (from :=
) into a pointer with a malloc (excuse my C terms)?
00:42 <+iant> yoiu could think of it that way, sure
00:42 <+iant> the code is not actually compiled line by line
00:43 < msponer> So if I were to not do an &temp, the := declare/operator
would put it on the stack, right?
00:43 <+iant> right
00:43 < msponer> Ok. Great.  Thanks.  I believe my low level way of thinking
about programming is getting in my way here.
00:44 < scyth> nf_, it doesn't work here (binary release)
00:45 < nf_> scyth: what's the problem?
00:45 < scyth> nf_, can't execute binary
00:45 < scyth> 8g
00:46 < nf_> you're using a 32-bit system?
00:46 < nf_> i'll have to try fixing it in a 32-bit vm
00:46 < scyth> nf_, http://pastebin.com/K4y1gs0J
00:46 < scyth> here's strace
00:47 < nf_> i believe it's because the 8g/8l binaries are output as 64-bit
as they're built on a 64-bit system
00:47 < scyth> yeah
00:47 < scyth> dl/go/bin/8g: ELF 64-bit LSB executable, x86-64, version 1
(SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped
00:51 < scyth> 'night
00:51 -!- scyth [~scyth@rots.in.rs] has quit [Quit: .]
00:53 -!- peterdn [~peterdn@host81-151-238-232.range81-151.btcentralplus.com] has
joined #go-nuts
00:59 < exch> A nice addition for the Go image package perhaps?
http://code.google.com/speed/webp/
01:00 -!- iant [~iant@67.218.106.122] has quit [Quit: Leaving.]
01:01 < nf_> looks like a cool project
01:01 < nf_> hmm i have a long weekend coming up :)
01:02 -!- cenuij [~cenuij@93.26.136.97] has joined #go-nuts
01:02 -!- cenuij [~cenuij@93.26.136.97] has quit [Changing host]
01:02 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
01:03 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
01:04 -!- navigator [~navigator@p54897915.dip.t-dialin.net] has quit [Ping
timeout: 240 seconds]
01:04 -!- crazy2be [~justin@d205-206-130-118.abhsia.telus.net] has left #go-nuts
[]
01:07 -!- aho [~nya@fuld-4d00d63b.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
01:13 < plexdev> http://is.gd/fDfUT by [Ken Thompson] in go/src/cmd/5g/ --
code gen error for
01:14 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
01:19 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has joined #go-nuts
01:23 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
01:28 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
01:38 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
01:45 -!- jhh_ [~jhh@f048195047.adsl.alicedsl.de] has joined #go-nuts
01:47 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
01:47 -!- jhh [~jhh@e179096172.adsl.alicedsl.de] has quit [Ping timeout: 240
seconds]
01:53 -!- ronnyy [~quassel@p4FF1D135.dip.t-dialin.net] has quit [Remote host
closed the connection]
01:53 -!- artefon [~thiagon@150.164.2.20] has quit [Ping timeout: 252 seconds]
01:54 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
01:56 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
02:04 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Ping timeout:
272 seconds]
02:18 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Remote host closed the connection]
02:23 -!- peterdn_ [~peterdn@host81-151-238-232.range81-151.btcentralplus.com] has
joined #go-nuts
02:24 -!- peterdn [~peterdn@host81-151-238-232.range81-151.btcentralplus.com] has
quit [Ping timeout: 240 seconds]
02:37 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts
02:38 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 272
seconds]
02:40 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
02:43 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Client Quit]
02:55 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
02:57 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
03:07 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping
timeout: 240 seconds]
03:07 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
03:14 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
03:14 -!- msponer [~user@cpe-66-75-33-237.san.res.rr.com] has quit [Ping timeout:
240 seconds]
03:15 -!- msponer [~user@cpe-66-75-33-237.san.res.rr.com] has joined #go-nuts
03:17 -!- msponer [~user@cpe-66-75-33-237.san.res.rr.com] has quit [Client Quit]
03:28 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Remote host closed the connection]
03:29 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
03:31 -!- teop [~teop@78.138.171.130] has quit [Ping timeout: 272 seconds]
03:31 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts
03:33 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Remote host closed the connection]
03:33 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
03:45 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Ping timeout: 245 seconds]
03:52 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
03:58 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
03:58 -!- mode/#go-nuts [+v iant] by ChanServ
04:12 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has quit [Quit: major_majors]
04:16 < plexdev> http://is.gd/fDtBA by [Andrew Gerrand] in go/src/pkg/fmt/
-- fmt: add Errorf helper function
04:16 < plexdev> http://is.gd/fDtBV by [Andrew Gerrand] in 4 subdirs of go/
-- Use Errorf where appropriate.
04:28 -!- lmoura_ [~lauromour@187.113.171.176] has quit [Ping timeout: 245
seconds]
04:32 < plexdev> http://is.gd/fDv86 by [Russ Cox] in go/src/pkg/ -- arm:
enable 9 more package tests
04:34 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
04:37 -!- lmoura_ [~lauromour@187.58.107.176] has joined #go-nuts
04:41 < enferex> Is there not a const qualifier for function parameters?
04:43 < cbeck> there is not
04:44 < cbeck> You can pass by value if necessary
04:49 < nsf> enferex: Go doesn't have any type qualifiers at all
04:51 < enferex> Yes its all pass by value/copy, but what about pointers, I
want to pass a pointer and assure it never get manipulated.
04:52 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten.  Desu~]
04:52 -!- lmoura_ [~lauromour@187.58.107.176] has quit [Ping timeout: 245 seconds]
04:53 < nsf> you can't do that
04:54 < nsf> well, you can
04:54 < nsf> by hiding value behind interface with getters
04:57 -!- lmoura_ [~lauromour@187.58.106.117] has joined #go-nuts
04:59 < enferex> gotcha
04:59 < enferex> thanks once again
05:00 -!- tteras_ [~fabled@xdsl-83-150-94-237.nebulazone.fi] has joined #go-nuts
05:01 -!- scm [scm@d070220.adsl.hansenet.de] has quit [Ping timeout: 255 seconds]
05:02 -!- Rugxulo [~Rugxulo@adsl-065-013-115-246.sip.mob.bellsouth.net] has joined
#go-nuts
05:03 -!- scm [scm@d070149.adsl.hansenet.de] has joined #go-nuts
05:03 -!- fabled [~fabled@xdsl-83-150-94-238.nebulazone.fi] has quit [Ping
timeout: 276 seconds]
05:14 -!- lmoura_ [~lauromour@187.58.106.117] has quit [Ping timeout: 245 seconds]
05:16 -!- Kylarr [Kylarr@122-148-63-115.static.dsl.dodo.com.au] has joined
#go-nuts
05:23 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Read error:
Operation timed out]
05:24 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts
05:27 -!- lmoura_ [~lauromour@187.58.103.94] has joined #go-nuts
05:30 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
05:36 -!- lmoura_ [~lauromour@187.58.103.94] has quit [Ping timeout: 264 seconds]
05:45 -!- mumbow [~mumboww@c-98-207-108-218.hsd1.ca.comcast.net] has joined
#go-nuts
05:46 -!- lmoura_ [~lauromour@186.212.110.197] has joined #go-nuts
05:49 -!- lmoura_ [~lauromour@186.212.110.197] has quit [Read error: Connection
reset by peer]
05:50 -!- lmoura_ [~lauromour@187.58.104.68] has joined #go-nuts
06:02 -!- lmoura_ [~lauromour@187.58.104.68] has quit [Ping timeout: 245 seconds]
06:04 -!- lmoura_ [~lauromour@186.212.97.34] has joined #go-nuts
06:08 < uriel> 04:41 < enferex> Is there not a const qualifier for
function parameters?
06:08 < uriel> why on earth would anyone want that?
06:09 < Rugxulo> faster?
06:09 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
06:09 < uriel> isn't it bad enough that such things got added to C and C++
(by people other than the inventors of C, obviously)
06:09 < uriel> Rugxulo: faster?  where is any evidence of that?
06:10 < Rugxulo> don't have a reference near by, lemme search ...
06:13 -!- dju [dju@fsf/member/dju] has quit [Quit: Quitte]
06:14 < uriel> AFAIK 'const' is at best just a hint to the compiler
06:14 < uriel> and it causes all kinds of damage along the way
06:14 < Rugxulo> (from Oberon-07 report): "The new [const] parameter kind
makes it possible to protect the string from being altered without requiring a
copy operation."
06:16 < uriel> Oberon is not C or Go last i checked, I'm not as familiar
with it as I should, but I don't think Oberon strings, or the semantics of const
are equivalent to anyting in Go or C
06:17 < Rugxulo> I know, I'm just saying, if it was worthwhile there (to
them), then ....
06:17 < uriel> if you pass a pointer, and then don't touch/change the data,
it is pretty much the same
06:18 < nf_> pop quiz: what do you guys consider notable go projects?
06:18 < nf_> what non-core libraries and go programs do you use?
06:19 < nf_> Rugxulo: there are definite benefits to being able to dictate
immutability, but it comes at the cost of complexity
06:20 < nf_> Rugxulo: it was decided that const causes more problems than it
solves, so it implemented in go
06:20 < uriel> I like Gelo, but haven't had time to play with it as much as
I would like
06:21 < uriel> sre2 is nice, really looking forward to seeing it as part of
the distribution (although I hate PCRE syntax, but oh well)
06:21 < uriel> ken's C compilers ignore const, and nothing of value was
lost...
06:21 < uriel> (same goest for most other modifiers)
06:23 < nf_> uriel: i don't even understand gelo
06:23 < nf_> it looks...  clever?
06:24 < uriel> it is a bit tcl-like, rather neat
06:26 < uriel> I also like svgo, but i *hate* svg, so...  I'm ambibalent
06:28 < uriel> also, might end up using go-gtk, but i have been waiting and
hopping somebody will provide Tk bindings instead
06:28 < nf_> go-gtk uses unsafe in bad ways
06:29 < nf_> i wish gui toolkits weren't so awful
06:29 < nf_> bbl
06:29 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
06:29 < uriel> can't blame them, having to deal with glib and gtk is already
psychologically unsafe
06:33 -!- lmoura_ [~lauromour@186.212.97.34] has quit [Ping timeout: 252 seconds]
06:34 -!- lmoura_ [~lauromour@187.58.98.141] has joined #go-nuts
06:42 -!- Rugxulo [~Rugxulo@adsl-065-013-115-246.sip.mob.bellsouth.net] has left
#go-nuts []
06:42 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
06:46 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-190.clienti.tiscali.it] has
joined #go-nuts
06:49 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving]
06:53 -!- lmoura_ [~lauromour@187.58.98.141] has quit [Ping timeout: 240 seconds]
06:58 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
07:00 -!- lmoura_ [~lauromour@187.58.109.94] has joined #go-nuts
07:12 -!- ikaros [~ikaros@dslb-094-219-218-241.pools.arcor-ip.net] has joined
#go-nuts
07:20 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error: Operation
timed out]
07:26 -!- mduft [~mduft@gentoo/developer/mduft] has quit [Remote host closed the
connection]
07:31 -!- mduft [~mduft@gentoo/developer/mduft] has joined #go-nuts
07:48 -!- tasosos [~tasosos@178.128.7.204.dsl.dyn.forthnet.gr] has joined #go-nuts
07:57 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
08:02 -!- wrtp [~rog@92.17.55.116] has joined #go-nuts
08:10 -!- lmoura_ [~lauromour@187.58.109.94] has quit [Ping timeout: 245 seconds]
08:12 -!- ronnyy [~quassel@p4FF1CACB.dip.t-dialin.net] has joined #go-nuts
08:21 -!- ikaros_ [~ikaros@188.107.217.195] has joined #go-nuts
08:23 -!- Fish9 [~Fish@86.65.182.207] has quit [Remote host closed the connection]
08:23 -!- lmoura_ [~lauromour@187.59.119.213] has joined #go-nuts
08:25 -!- photron [~photron@port-92-201-107-6.dynamic.qsc.de] has joined #go-nuts
08:25 -!- ikaros [~ikaros@dslb-094-219-218-241.pools.arcor-ip.net] has quit [Ping
timeout: 276 seconds]
08:27 -!- tvw [~tv@e176001214.adsl.alicedsl.de] has joined #go-nuts
08:31 -!- peterdn_ [~peterdn@host81-151-238-232.range81-151.btcentralplus.com] has
quit [Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.2/20100222071121]]
08:38 -!- virtualsue [~chatzilla@nat/cisco/x-mrqaylxdwotcgfsw] has joined #go-nuts
08:47 -!- Fish9 [~Fish@86.65.182.207] has joined #go-nuts
08:49 -!- iZZy_ [~ikaros@188.107.221.179] has joined #go-nuts
08:51 -!- ikaros_ [~ikaros@188.107.217.195] has quit [Read error: Operation timed
out]
09:01 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts
09:01 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 265 seconds]
09:02 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
09:05 -!- res [c9ed8246@gateway/web/freenode/ip.201.237.130.70] has quit [Ping
timeout: 252 seconds]
09:05 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
09:06 -!- ikaros_ [~ikaros@188.107.215.156] has joined #go-nuts
09:09 -!- iZZy_ [~ikaros@188.107.221.179] has quit [Ping timeout: 240 seconds]
09:31 < mpl> nf_: I've been using the bindings for gtk, sql and the plan 9
libs port.  and also gogallery but that's one of my pet projects, so doesn't
really count ;)
09:32 -!- jmettraux [~jmettraux@211.19.55.177] has left #go-nuts ["Leaving..."]
09:34 -!- iZZy_ [~ikaros@188.107.212.206] has joined #go-nuts
09:36 -!- iZZy_ [~ikaros@188.107.212.206] has quit [Client Quit]
09:39 -!- ikaros_ [~ikaros@188.107.215.156] has quit [Ping timeout: 276 seconds]
09:48 -!- sacho [~sacho@90.154.192.225] has joined #go-nuts
10:04 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds]
10:13 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de]
has joined #go-nuts
10:17 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
10:24 -!- tvw [~tv@e176001214.adsl.alicedsl.de] has quit [Ping timeout: 245
seconds]
10:48 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
11:10 -!- photron [~photron@port-92-201-107-6.dynamic.qsc.de] has quit [Ping
timeout: 265 seconds]
11:15 -!- noktoborus_ [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts
11:16 -!- noktoborus_ [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Read error:
Connection reset by peer]
11:27 -!- tvw [~tv@e176001214.adsl.alicedsl.de] has joined #go-nuts
11:31 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de]
has quit [Quit: Shyde]
11:37 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has quit [Quit: Coyote finally
caught me]
11:37 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has joined #go-nuts
11:47 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
11:54 -!- melba [~a@unaffiliated/lazz0] has quit [Quit: new age fun with a vintage
feel]
11:54 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection
reset by peer]
11:56 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
11:59 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the
connection]
12:02 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
12:03 -!- ikaros [~ikaros@188.107.212.174] has joined #go-nuts
12:14 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has left #go-nuts ["Oh
well!"]
12:18 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
12:31 -!- sacho_ [~sacho@95-42-100-208.btc-net.bg] has joined #go-nuts
12:34 -!- sacho [~sacho@90.154.192.225] has quit [Ping timeout: 245 seconds]
12:39 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts
12:44 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
12:44 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
12:51 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
12:58 -!- sacho [~sacho@95-42-100-208.btc-net.bg] has quit [Ping timeout: 240
seconds]
13:05 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 276 seconds]
13:07 -!- sacho [~sacho@213.91.244.15] has joined #go-nuts
13:07 -!- tav [~tav@92.7.157.46] has quit [Ping timeout: 245 seconds]
13:08 -!- wrtp [~rog@92.17.55.116] has quit [Quit: wrtp]
13:10 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
13:12 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:669d] has joined #go-nuts
13:18 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving]
13:20 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
13:22 -!- sacho [~sacho@213.91.244.15] has quit [Read error: Operation timed out]
13:25 -!- wrtp [~rog@92.17.55.116] has joined #go-nuts
13:27 -!- cybergirl [~cybergirl@212-198-248-35.rev.numericable.fr] has joined
#go-nuts
13:28 -!- cybergirl [~cybergirl@212-198-248-35.rev.numericable.fr] has quit
[Client Quit]
13:31 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 255 seconds]
13:34 -!- major_majors
[~major_maj@70-88-123-176-BusName-Monroe.Mi.hfc.comcastbusiness.net] has joined
#go-nuts
13:36 -!- rejb [~rejb@p5B05A897.dip.t-dialin.net] has joined #go-nuts
13:36 -!- rejb [~rejb@p5B05A897.dip.t-dialin.net] has quit [Changing host]
13:36 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
13:36 -!- DerHorst [~Horst@e176098245.adsl.alicedsl.de] has joined #go-nuts
13:37 -!- kanru [~kanru@61-228-154-1.dynamic.hinet.net] has joined #go-nuts
13:38 -!- sacho [~sacho@213.91.244.15] has joined #go-nuts
13:40 -!- iant [~iant@67.218.106.122] has joined #go-nuts
13:40 -!- mode/#go-nuts [+v iant] by ChanServ
13:45 -!- mattn_jp [~mattn_jp@112-68-69-177f1.hyg1.eonet.ne.jp] has joined
#go-nuts
13:53 -!- major_majors
[~major_maj@70-88-123-176-BusName-Monroe.Mi.hfc.comcastbusiness.net] has quit
[Quit: major_majors]
13:59 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
14:02 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
14:07 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts
14:10 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
14:13 -!- cbeck [cbeck@firefly.cat.pdx.edu] has quit [Ping timeout: 265 seconds]
14:14 -!- cbeck [cbeck@firefly.cat.pdx.edu] has joined #go-nuts
14:24 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 272 seconds]
14:24 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
14:36 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
14:42 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
14:46 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
14:46 -!- artefon [~thiago@187.114.52.95] has joined #go-nuts
14:48 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Quit: Venom_X]
14:48 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts
14:48 -!- rlab_ [~Miranda@91.200.158.34] has joined #go-nuts
14:49 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 264 seconds]
14:50 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
14:57 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
15:02 -!- aho [~nya@fuld-4d00d5bc.pool.mediaWays.net] has joined #go-nuts
15:02 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
15:03 < bortzmeyer> If I have to write "for complicated_statement; i < 0;
complicated_statement {" is there a way to write complicated_statement only once?
It has to run before each iteration.
15:04 -!- artefon [~thiago@187.114.52.95] has quit [Quit: bye]
15:06 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Client Quit]
15:06 -!- wrtp [~rog@92.17.55.116] has quit [Ping timeout: 276 seconds]
15:07 -!- eliteSchaf [~sinz@88-117-19-151.adsl.highway.telekom.at] has joined
#go-nuts
15:09 -!- iant [~iant@67.218.106.122] has quit [Ping timeout: 240 seconds]
15:10 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
15:11 -!- wrtp [~rog@92.17.55.116] has joined #go-nuts
15:17 -!- iant [~iant@nat/google/x-vnhcfvfwidfpehfr] has joined #go-nuts
15:17 -!- mode/#go-nuts [+v iant] by ChanServ
15:18 <+iant> bortzmeyer: no, the only way is to use a for loop with no
condition and a break statement
15:19 -!- tteras_ [~fabled@xdsl-83-150-94-237.nebulazone.fi] has quit [Quit:
Ex-Chat]
15:22 -!- fabled [~fabled@xdsl-83-150-94-238.nebulazone.fi] has joined #go-nuts
15:23 < bortzmeyer> iant: OK, thanks :-(
15:24 -!- wrtp [~rog@92.17.55.116] has quit [Quit: wrtp]
15:24 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
15:25 < cbeck> I didn't realize that Condition :== Expression, how does it
handle expressions that eval to a non boolean?
15:26 < cbeck> or does it?
15:27 <+iant> it handles them by reporting a type error
15:29 < napsy> iant: is there a plan when (if) gccgo will be included to the
main gcc distribution?
15:29 <+iant> it should be in the next gcc release, 4.6
15:29 < napsy> ok
15:29 <+iant> I plan to get it committed to mainline this month
15:30 < napsy> nice
15:32 -!- alefnula [~alefnula@188.246.38.197] has joined #go-nuts
15:32 < napsy> what about the gccgo garbage collector, it it ready for
production use?
15:32 <+iant> yes
15:32 <+iant> it's the same as the 6g/8g garbage collector
15:33 < napsy> ok
15:37 < mpl> good news :)
15:40 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Ping timeout: 276
seconds]
15:42 -!- aho [~nya@fuld-4d00d5bc.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
15:44 -!- tasosos [~tasosos@178.128.7.204.dsl.dyn.forthnet.gr] has quit [Remote
host closed the connection]
15:46 -!- res [c9ed8246@gateway/web/freenode/ip.201.237.130.70] has joined
#go-nuts
15:49 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
15:51 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
16:00 -!- sacho [~sacho@213.91.244.15] has quit [Read error: Connection reset by
peer]
16:02 -!- synth [~cb@obfuscated.us] has left #go-nuts []
16:06 < nickaugust> can I read each character as its typed to stdin or does
it have to be by lines?
16:06 -!- ProNihilist
[~anathema@cpc4-cani1-0-0-cust597.14-2.cable.virginmedia.com] has quit [Read
error: Connection reset by peer]
16:10 -!- ProNihilist
[~anathema@cpc4-cani1-0-0-cust597.14-2.cable.virginmedia.com] has joined #go-nuts
16:11 < exch> You should be able to read individual bytes using
bufio.NewReader(os.Stdin).  Don't quote me on that though
16:14 -!- ronnyy [~quassel@p4FF1CACB.dip.t-dialin.net] has quit [Remote host
closed the connection]
16:18 -!- _Horst_ [~Horst@e176098245.adsl.alicedsl.de] has joined #go-nuts
16:18 -!- DerHorst [~Horst@e176098245.adsl.alicedsl.de] has quit [Ping timeout:
245 seconds]
16:22 < cbeck> nickaugust: Usually you can't, the os doesn't return control
until it hits a newline
16:22 < cbeck> I think ReadLine and the like let you get around that though
16:23 < exch> ah right.  stdin is line-buffered iirc
16:24 < exch> presumably ReadLine does some syscall/ioctl stuff which makes
that possible?  You can do that in Go. Wouldn't need to include the full library
bindings for readline
16:25 < cbeck> Maybe, but it'd be quite os dependant, and I wouldn't know
where to start
16:25 < taruti> cbeck: I have some getline code if you are interested
16:26 < taruti> http://bitbucket.org/taruti/getpass/src/tip/getpass.go
16:26 < cbeck> I'll take a look, hanks
16:27 < cbeck> ^thanks
16:28 -!- mattn_jp [~mattn_jp@112-68-69-177f1.hyg1.eonet.ne.jp] has left #go-nuts
[]
16:30 -!- tvw [~tv@e176001214.adsl.alicedsl.de] has quit [Remote host closed the
connection]
16:33 < nickaugust> yeah i use readline now but its overkill for what i
want.
16:36 < exch> I think the gist of this particular case is to set stdin to
'raw' mode, read a character and set it back to normal mode when you're done.
16:38 < nickaugust> exch: hmm..  i'll have a look at that.  thanks
16:39 -!- sacho [~sacho@95-42-125-19.btc-net.bg] has joined #go-nuts
16:41 < exch> Here's a bit of indepth TTY stuff incase you're that
massochistic :) http://www.linusakesson.net/programming/tty/index.php
16:43 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
16:44 < nickaugust> http://wiki.tcl.tk/14693 seems to be a simple overview
as well..  in tcl context.  looks like you can use the stty program to turn raw
mode on and off.  "stty raw" and "stty -raw".  id assume theres corrisponding
system calls
16:44 < nickaugust> exch: thanks
16:45 < exch> Yea, i'm looking for the syscalls to go with that, but no
cookie so far
16:45 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:46 < nickaugust> does termio/getpass do something similar to blank out
passwords?
16:46 < nickaugust> taruti: ^^
16:47 < nickaugust> s/termio/termios
16:47 < cbeck> exch: Maybe read in binary mode?
16:47 < nickaugust> cbeck: what function do you use to do that?
16:50 < cbeck> nickaugust: os.Open with O_NDELAY maybe?
16:50 < nickaugust> hmmm
16:51 * cbeck -> meeting
16:55 < taruti> nickaugust: it has both password reading and with echo
16:57 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
16:59 -!- _Horst_ [~Horst@e176098245.adsl.alicedsl.de] has quit [Remote host
closed the connection]
17:02 < nickaugust> exch: looks like readline builds on termcap
17:04 < exch> hmm
17:06 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 276
seconds]
17:06 -!- niemeyer [~niemeyer@91.189.88.12] has joined #go-nuts
17:10 < nickaugust> exch: from the mailing list per iant:
http://groups.google.com/group/golang-nuts/msg/7a87d8cf4ea2b0d7
17:11 < nickaugust> im just going to call stty because im not really
concerned with portiblity at this point
17:11 -!- eliteSchaf [~sinz@88-117-19-151.adsl.highway.telekom.at] has quit [Quit:
Ex-Chat]
17:12 < exch> Having the termios interface in syscall would be nice
17:13 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
17:13 < nbjoerg> it should be properly abstracted
17:18 < nickaugust> also: http://www.cs.uleth.ca/~holzmann/C/system/ttyraw.c
17:24 -!- scyth [~scyth@zeljko.eunet.rs] has joined #go-nuts
17:25 -!- alefnula [~alefnula@188.246.38.197] has quit [Ping timeout: 245 seconds]
17:27 < skelterjohn> a little light reading?
17:29 < nickaugust> :) try to decide the best way to enable character based
input from stdin rather than line based.  which it seems is a function of the os
17:34 -!- Tv [~tv@gige.bur.digisynd.com] has joined #go-nuts
17:38 -!- felicity [~sam87@41.72.108.18] has joined #go-nuts
17:38 < felicity> hey, i'm new to Go but not programming.what fuction can
one use to get user input, a kind of like getchar equivalent?
17:40 -!- alefnula [~alefnula@188.246.38.197] has joined #go-nuts
17:40 < exch> check out the fmt package.  it has a few Scan functions which
may be of use
17:41 < felicity> exch: okay thanks
17:44 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
17:46 -!- niemeyer [~niemeyer@91.189.88.12] has quit [Ping timeout: 276 seconds]
17:55 -!- alefnula [~alefnula@188.246.38.197] has quit [Quit: Ex-Chat]
18:02 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit:
Leaving.]
18:06 -!- i3d [~i3dmaster@74.125.59.65] has joined #go-nuts
18:06 -!- i3d [~i3dmaster@74.125.59.65] has quit [Changing host]
18:06 -!- i3d [~i3dmaster@unaffiliated/i3dmaster] has joined #go-nuts
18:12 < willdye> "To locate a memory leak, use the following process: 1.
Find the memory leak [...]" </
http://msdn.microsoft.com/en-us/library/ms859415.aspx >
18:13 < bartbes> hehe
18:13 < nsf> :D
18:14 < bartbes> "To create a program, use the folloiwing process: 1.  Write
the code 2.  Create all assets 3.  Submit your code to us 4.  Cry in a corner
while we steal everything"
18:17 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
18:22 -!- jhseu [~jhseu@nat/google/x-wyksuomvrbxarbje] has quit [Remote host
closed the connection]
18:24 -!- teop [~teop@78.138.171.130] has joined #go-nuts
18:27 < MaybeSo> "5.  all your assets are belong to us" ?
18:34 -!- scyth [~scyth@zeljko.eunet.rs] has quit [Quit: .]
18:35 < Soultaker> lol @ willdye
18:36 -!- photron [~photron@port-92-201-107-6.dynamic.qsc.de] has joined #go-nuts
18:36 < Soultaker> I never understood why a big company like Microsoft
cannot afford to hire a couple of semi-decent tech writers to clean up the mess
that is the MSDN.
18:40 < nbjoerg> they have a lot of decent tech writers
18:40 < nbjoerg> but they tend to be busy with more important stuff
18:40 < Soultaker> huh, the MSDN is usually my go-to place when I need to
know something about the Windows API
18:40 < Soultaker> what's more important than that?
18:42 < Soultaker> (if I got a $1 for every piece of sample code I came
across that just doesn't compile...  well I wouldn't be rich, but I could buy a
lot of coffee!)
18:52 -!- John_Doe [~JohnDoe17@ip-109-91-17-73.unitymediagroup.de] has joined
#go-nuts
18:53 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Ping timeout: 272
seconds]
19:06 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
19:07 -!- felicity [~sam87@41.72.108.18] has quit [Quit: leaving]
19:12 < nsf> http://ompldr.org/vNXA0NA/GoGC.png
19:12 < nsf> Go's garbage collector :)
19:12 -!- scyth [~scyth@rots.in.rs] has joined #go-nuts
19:13 < nsf> parsing 10 files at a time, doing that 500 times, saving all
the data (heap is growing)
19:14 < nsf> I can imagine running a first person shooter with that GC
19:14 < nsf> :D
19:14 < nsf> on the other hand
19:14 < nsf> if it won't allocate on a drawing loop
19:14 < nsf> GC shouldn't run
19:15 -!- virtualsue_ [~chatzilla@nat/cisco/x-oepsbjhqlzgxpprl] has joined
#go-nuts
19:16 -!- virtualsue [~chatzilla@nat/cisco/x-mrqaylxdwotcgfsw] has quit [Ping
timeout: 272 seconds]
19:25 < nsf> http://ompldr.org/vNXA0Yw/GoGC2.png <- freeing data every
100 iterations
19:25 -!- plainhao [~plainhao@mail.xbiotica.com] has quit [Quit: plainhao]
19:26 < nsf> overall is better, but far from smooth
19:26 < nsf> expected though..
19:27 < nsf> GC pause time depends a lot on a heap size and generally pretty
high :(
19:29 -!- John_Doe [~JohnDoe17@ip-109-91-17-73.unitymediagroup.de] has quit [Quit:
leaving]
19:33 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten.  Desu~]
19:36 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-190.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
19:37 < nsf> btw, other than GC Go is surprizingly fast
19:38 < nsf> parses all these files: find $GOROOT/src -name "*.go" in 2.0
secs
19:38 < nsf> on a single 2.0ghz core
19:42 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has joined #go-nuts
19:46 < nsf> or I was using python for too long
19:46 < nsf> :D
19:51 -!- wrtp [~rog@92.17.55.116] has joined #go-nuts
19:51 -!- nickaugust [~nick@li181-40.members.linode.com] has quit [Quit: WeeChat
0.3.3]
19:59 -!- aho [~nya@fuld-4d00d71f.pool.mediaWays.net] has joined #go-nuts
19:59 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
20:02 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 240 seconds]
20:06 -!- wrtp [~rog@92.17.55.116] has quit [Ping timeout: 245 seconds]
20:07 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has quit [Quit: Leaving.]
20:09 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has joined #go-nuts
20:09 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping
timeout: 276 seconds]
20:10 < plexdev> http://is.gd/fF1Ow by [Russ Cox] in go/src/ -- Make.pkg:
remove .so before installing new one
20:11 -!- wrtp [~rog@92.17.55.116] has joined #go-nuts
20:17 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has quit [Ping timeout:
255 seconds]
20:18 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has quit [Remote
host closed the connection]
20:18 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has joined #go-nuts
20:19 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has quit [Remote
host closed the connection]
20:20 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has joined #go-nuts
20:23 -!- i3d [~i3dmaster@unaffiliated/i3dmaster] has quit [Quit: leaving]
20:35 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has quit [Quit:
nickaugust]
20:38 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
connection]
20:38 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has joined #go-nuts
20:39 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has quit [Client
Quit]
20:41 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has joined #go-nuts
20:44 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 264 seconds]
20:47 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 240
seconds]
20:49 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
20:55 -!- jhawk28 [~jhawk28@user-142gfrf.cable.mindspring.com] has joined #go-nuts
20:59 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
21:02 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
21:03 < napsy> http://gist.github.com/606863
21:03 < napsy> if I run this the program blocks
21:03 < napsy> am I reading the process output the wrong way?
21:05 < Soultaker> I think r should first be initialized somehow
21:06 < nsf> napsy: use exec.
21:06 < Soultaker> for example, with a pipe.
21:06 < nsf> it automatically creates pipes for you
21:06 < nsf> I can give you an example actually
21:06 < nsf> sec
21:07 < nsf> napsy: if i % 100 == 0 {
21:07 < nsf> oops
21:07 < nsf>
http://github.com/nsf/gocode/blob/master/testing/utils/rename/main.go#L48
21:07 < nsf> here it is
21:08 < nsf> exec.Run returns a proc handle (sort of) and if you're passing
exec.Pipe to it, this handle contains created pipes
21:09 < nsf> then you can do whatever you want
21:09 < Soultaker> B
21:09 < Soultaker> oops
21:09 < Soultaker> what I meant to say was: also don't read data a byte at a
time, it's going to be slow.
21:09 < napsy> nsf: thanks
21:11 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
21:13 -!- jhh [~jhh@f048195047.adsl.alicedsl.de] has quit [Quit: jhh]
21:14 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
21:14 -!- rlab_ [~Miranda@91.200.158.34] has quit [Ping timeout: 255 seconds]
21:18 -!- jhawk28 [~jhawk28@user-142gfrf.cable.mindspring.com] has quit [Remote
host closed the connection]
21:25 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has left #go-nuts []
21:28 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has joined #go-nuts
21:32 -!- synth [~cb@obfuscated.us] has joined #go-nuts
21:34 -!- synth [~cb@obfuscated.us] has left #go-nuts []
21:35 -!- synth [~cb@obfuscated.us] has joined #go-nuts
21:35 -!- synth [~cb@obfuscated.us] has quit [Remote host closed the connection]
21:37 -!- edzuk [~ed@94-194-98-136.zone8.bethere.co.uk] has joined #go-nuts
21:40 -!- edzuk [~ed@94-194-98-136.zone8.bethere.co.uk] has quit [Client Quit]
21:44 < cbeck> Hmm, can someone else using linux/amd64 pull and rebuild?  my
build is failing on bug260
21:46 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
21:48 <+iant> cbeck: worked for me
21:49 <+iant> ....and there is no bug260.go
21:50 < nsf> http://github.com/tav/go/blob/master/test/bugs/bug260.go
21:51 <+iant> whoops, sorry, I was looking in fixedbugs
21:51 <+iant> bug260 is supposed to fail
21:51 <+iant> that is to say, expected to fail
21:51 < nsf> indeed
21:55 < nsf> but if it's really failing then there is a bug in a build
system :)
21:56 -!- ikaros [~ikaros@188.107.212.174] has quit [Quit: Leave the magic to
Houdini]
21:56 < nsf> which seems unlikely
21:57 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
21:58 < jesusaurus> cbeck: it built fine for me on amd64
21:59 -!- gnuvince_ [~vince@70.35.162.240] has quit [Quit: ""]
22:00 -!- virtualsue_ [~chatzilla@nat/cisco/x-oepsbjhqlzgxpprl] has quit [Quit:
ChatZilla 0.9.86 [Firefox 3.5.13/20100914122142]]
22:30 < scyth> http://pastebin.com/SHTuD11d -- is there a better way to
extract value from an unknown/runtime struct type, by knowing field name within
the struct?
22:36 -!- photron [~photron@port-92-201-107-6.dynamic.qsc.de] has quit [Ping
timeout: 240 seconds]
22:40 < exch> You don't have to pass unknownStruct to NewValue() as a
pointer.  that should save you 1 Indirect
22:41 < exch> You should do some error checking though..  an indirect may
yield another ptr value or something entirely different depending on what is
passed into the function
22:41 < exch> If you can guarantee it will always be a struct, then that
will save you some hassle I suppose
22:44 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
22:48 < scyth> exch, I skipped error checking for the sake of readability in
this example.  I know I can pass structure and not pointer, but in that case I
won't be able to modify the values in original struct
22:49 -!- clip9 [clip9@er.en.svarteper.com] has quit [Remote host closed the
connection]
22:50 < scyth> I don't know how fast Indirect() is, but I figure it's
faster/cheaper than copying back and forth
22:50 < scyth> copying the whole struct, that is
22:52 < exch> good point
22:57 -!- Tv [~tv@gige.bur.digisynd.com] has quit [Ping timeout: 265 seconds]
22:58 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
23:01 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Client Quit]
23:11 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
23:15 -!- Tv [~tv@gige.bur.digisynd.com] has joined #go-nuts
23:26 -!- iant [~iant@nat/google/x-vnhcfvfwidfpehfr] has quit [Ping timeout: 265
seconds]
--- Log closed Sat Oct 02 00:00:09 2010