--- Log opened Sat Sep 11 00:00:07 2010
00:08 -!- ikaros [~ikaros@188.107.208.221] has quit [Quit: Leave the magic to
Houdini]
00:16 -!- tensorpudding [~user@99.23.122.78] has joined #go-nuts
00:32 -!- iant [~iant@66.109.106.2] has joined #go-nuts
00:33 -!- mode/#go-nuts [+v iant] by ChanServ
00:35 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
00:38 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 265 seconds]
00:42 -!- jmettraux [~jmettraux@PPPbm5391.kanagawa-ip.dti.ne.jp] has joined
#go-nuts
00:45 -!- markcol [~markcol@74.125.59.1] has quit [Quit: markcol]
00:48 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has joined
#go-nuts
00:48 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has quit
[Changing host]
00:48 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has joined #go-nuts
00:55 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
00:55 -!- rah_ [~robh@ppp-70-247-243-190.dsl.ltrkar.swbell.net] has joined
#go-nuts
00:56 -!- rah_ [~robh@ppp-70-247-243-190.dsl.ltrkar.swbell.net] has left #go-nuts
[]
00:57 -!- acts_as [~acts_as@208.236.105.27] has quit [Quit: acts_as]
01:00 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has quit [Quit:
Lost terminal]
01:00 -!- rhencke [~robh@ppp-70-247-243-190.dsl.ltrkar.swbell.net] has joined
#go-nuts
01:00 < rhencke> go-nuts always reminds me of donuts
01:02 < rhencke> anyone mind entertaining a go question about net.Conn?
01:09 < dj2> it's usually easier to just ask the question instead of asking
if you can ask the question.  if someone knows the answer they'll reply
01:09 < rhencke> ok, thanks
01:09 < rhencke> net.Conn can act as a Reader and a Writer
01:09 < rhencke> i would like to spawn two goroutines..  one managing each
01:10 < rhencke> since things can get sent or received at any time
01:10 < rhencke> is that safe?
01:11 -!- Venom_bbl [~pjacobs@66.54.185.131] has quit [Quit: Venom_bbl]
01:12 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Remote host closed the connection]
01:12 <+iant> rhencke: I think that is safe
01:12 < rhencke> iant: ok, thanks
01:15 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
01:15 < rhencke> ok, that seems to work quite nicely.  thank you.  :)
01:25 -!- jmettraux [~jmettraux@PPPbm5391.kanagawa-ip.dti.ne.jp] has quit [Ping
timeout: 265 seconds]
01:35 -!- niemeyer__ [~niemeyer@187.91.45.129] has quit [Quit: Leaving]
01:35 -!- niemeyer__ [~niemeyer@187.91.45.129] has joined #go-nuts
01:36 -!- niemeyer__ [~niemeyer@187.91.45.129] has left #go-nuts []
01:37 -!- niemeyer [~niemeyer@187.91.45.129] has joined #go-nuts
01:37 < niemeyer> Is there any developer here comfortable with the compiler
piece in Go?
01:41 < niemeyer> There's a bug opened for a while (since December) related
to the reflect package which needs some love.
01:42 <+iant> which issue?
01:43 * niemeyer grabs link
01:43 < niemeyer> http://code.google.com/p/go/issues/detail?id=451
01:44 < niemeyer> I've already invested some time on it through
http://codereview.appspot.com/1752042
01:44 < niemeyer> There are a few different ways to fix it..  the obvious
one won't work
01:45 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has joined #go-nuts
01:45 < niemeyer> It'd be great to have someone who understands this code
better than I do at least making an informed decision
01:46 < niemeyer> I have a pretty neat test runner for Go in advanced stages
which is hanging on this
01:46 -!- aho [~nya@fuld-4d00d4da.pool.mediaWays.net] has joined #go-nuts
01:46 <+iant> Hmmm, I get exactly the same panic when using gccgo
01:47 < niemeyer> Not too surprised..
01:48 < niemeyer> The check in the reflect code is preventing the memory
corruption which would otherwise happen, at least in the gc family
01:49 < niemeyer> Well, actually it's not..  I guess gccgo must be compiling
it improperly too
01:49 -!- ako [~nya@fuld-4d00d1b6.pool.mediaWays.net] has quit [Ping timeout: 276
seconds]
01:51 <+iant> yeah, this is complicated
01:51 <+iant> I guess I don't have time to think about it right now, sorry
01:51 <+iant> the compiler builds these complicated sets of stub functions
01:51 <+iant> I guess that would have to be done manually in reflect.Call
01:51 <+iant> that's my first thought, anyhow
01:56 < niemeyer> iant: Russ disagrees
01:56 < niemeyer> iant: I've actually done pretty much this in the submitted
code
01:57 < niemeyer> iant: Then looked at the compiler
01:57 < niemeyer> iant: There are a few different code paths in the compiler
which would enable fixing it
01:57 < niemeyer> iant: The most obvious one doesn't work because it'll
create a loop
01:58 < niemeyer> iant: So I'm looking for someone that actually understands
this code and can make decisions about it, so that I don't spent more time on
another solution which isn't The Right Way.
01:58 < niemeyer> s/spent/spend
01:58 <+iant> I've never looked at the code which generates reflection
structures in the gc comiler
01:58 <+iant> but it seems suspicious to me that gccgo fails in exactly the
same way
01:58 <+iant> since the code generating the type reflection structures is
completely different
01:59 < niemeyer> iant: Ok, do you know someone at arms length that can be
nudged about it?  :-)
01:59 <+iant> still, russ is usually right
01:59 <+iant> russ is definitely the guy for this stuff in the gc compiler
01:59 < niemeyer> Aw..  he doesn't look very worried :(
01:59 <+iant> he's super busy, of course
01:59 < niemeyer> I know
02:00 < niemeyer> I've been moving forward with a local patch, which isn't
the right one
02:00 < niemeyer> So I can't publish the test runner before this is fixed
02:01 -!- boscop_ [~boscop@f055194206.adsl.alicedsl.de] has joined #go-nuts
02:01 < niemeyer> There are some 1.5k lines of Go code on staging..  :)
02:02 -!- boscop [~boscop@g230109079.adsl.alicedsl.de] has quit [Ping timeout: 276
seconds]
02:04 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the
connection]
02:10 -!- iant [~iant@66.109.106.2] has quit [Quit: Leaving.]
02:12 < niemeyer> Yeah, it was a good chat wasn't it
02:16 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 276 seconds]
02:20 -!- tav [~tav@92.7.143.224] has quit [Quit: Hakuna Matata]
02:21 -!- aho [~nya@fuld-4d00d4da.pool.mediaWays.net] has quit [Ping timeout: 276
seconds]
02:30 -!- aho [~nya@fuld-4d00d744.pool.mediaWays.net] has joined #go-nuts
02:38 -!- g0bl1n [~g0blin@a213-22-18-58.cpe.netcabo.pt] has quit [Quit: g0bl1n]
02:44 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
02:59 -!- rhencke [~robh@ppp-70-247-243-190.dsl.ltrkar.swbell.net] has left
#go-nuts []
03:00 -!- rhencke [~rhencke@ppp-70-247-243-190.dsl.ltrkar.swbell.net] has joined
#go-nuts
03:00 -!- rhencke [~rhencke@ppp-70-247-243-190.dsl.ltrkar.swbell.net] has quit
[Client Quit]
03:02 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
03:16 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
03:16 -!- smw_ [~smw@pool-71-183-88-124.nycmny.fios.verizon.net] has joined
#go-nuts
03:17 -!- KirkMcDo1ald [~Kirk@24.143.227.33] has joined #go-nuts
03:20 -!- KirkMcDo1ald [~Kirk@24.143.227.33] has left #go-nuts []
03:22 -!- KirkMcDonald [~Kirk@pysoy/developer/KirkMcDonald] has joined #go-nuts
03:25 -!- piyushmishra [~piyushmis@117.200.225.46] has quit [Read error:
Connection reset by peer]
03:28 -!- piyushmishra [~piyushmis@117.200.225.19] has joined #go-nuts
03:31 -!- niemeyer [~niemeyer@187.91.45.129] has quit [Ping timeout: 240 seconds]
03:41 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
03:49 -!- smw_ [~smw@pool-71-183-88-124.nycmny.fios.verizon.net] has quit [Remote
host closed the connection]
03:56 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
04:19 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
04:19 -!- mode/#go-nuts [+v iant] by ChanServ
04:30 -!- aho [~nya@fuld-4d00d744.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
04:49 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
04:51 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
04:51 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Ping timeout: 265 seconds]
05:02 -!- scm [justme@d039155.adsl.hansenet.de] has quit [Ping timeout: 258
seconds]
05:03 -!- scm [justme@d070132.adsl.hansenet.de] has joined #go-nuts
05:04 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten.  Desu~]
05:13 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Remote
host closed the connection]
05:14 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds]
05:32 -!- tux21b [~christoph@90.146.60.30] has quit [Quit: exit(EXIT_SUCCESS); //
see ⓎⓄⓊ]
05:33 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 252 seconds]
05:54 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 276
seconds]
06:16 -!- Xiaobo [~chatzilla@61.48.209.91] has joined #go-nuts
06:16 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
06:16 -!- KirkMcDonald [~Kirk@pysoy/developer/KirkMcDonald] has quit [Ping
timeout: 276 seconds]
06:18 -!- KirkMcDonald [~Kirk@pysoy/developer/KirkMcDonald] has joined #go-nuts
06:26 -!- Geekk [~Geekk@bus77-2-82-244-148-145.fbx.proxad.net] has joined #go-nuts
06:38 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
06:42 -!- enherit [~enherit@71-83-188-75.dhcp.lnbh.ca.charter.com] has joined
#go-nuts
06:43 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has joined
#go-nuts
06:44 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
06:59 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
07:00 -!- rlab [~Miranda@91.200.158.34] has quit [Client Quit]
07:03 < cbeck> Am I remembering wrong, or did someone mention that there was
a better regex lib floating out there somewhere?
07:19 -!- jessta [~jessta@124-168-73-10.dyn.iinet.net.au] has quit [Ping timeout:
265 seconds]
07:21 -!- jessta [~jessta@203-214-38-160.dyn.iinet.net.au] has joined #go-nuts
07:22 -!- Xurix [~Luixsia@AToulouse-254-1-7-185.w83-203.abo.wanadoo.fr] has quit
[Quit: Leaving]
07:25 -!- kanru [~kanru@61-228-146-5.dynamic.hinet.net] has quit [Quit: WeeChat
0.3.2]
07:28 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
07:36 -!- yihuang [~yihuang@183.17.178.149] has joined #go-nuts
07:51 < vsmatck> Hm, pastebin.com doesn't appear to have syntax highlighting
for go.
07:52 < nsf> how could they..
07:52 < vsmatck> I just use the C highlighting.  I'm writing a wrapper for
fmt.Printf to print file and line number.  http://pastebin.com/2auH5kiV
07:53 < vsmatck> I'm trying to ehh 'forward' the variable arguments to
printf.
07:53 < vsmatck> nsf: I don't understand what you mean by "how could they".
07:53 < nsf> oh..  that's ok
07:53 < nsf> people don't understand me sometimes
07:54 -!- photron [~photron@port-92-201-69-173.dynamic.qsc.de] has joined #go-nuts
07:54 < vsmatck> I'm impervious to most forms of humor.  So it could be a
combination of factors that led to our disconnect.  heh
07:54 < cbeck> vsmatck: pastie.org has go hilighting
07:54 < nsf> ;)
07:54 < vsmatck> cbeck: sweet.  The topic should linke to pastie.org
instead.
07:55 < nsf> topic was set on 11th of november, year 2009
07:55 < nsf> means no one cares :)
07:56 < vsmatck> http://pastie.org/1151711 That's the same code on
pastie.org
07:56 < nsf> vsmatck: you can simply pass 'a' to other varargs function
07:57 < nsf> the problem is
07:57 < nsf> that you can't do that the way you want
07:57 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it]
has joined #go-nuts
07:57 < nsf> use two function calls instead
07:57 < vsmatck> yeah, it prints this if I do that "?(extra []interface {
}=[foo bar])"
07:57 * vsmatck tries
07:57 < nsf> fmt.Fprintf(os.Stderr, "[%v][%v]", sm[1], line)
07:58 < nsf> and
07:58 < nsf> fmt.Fprintln(os.Stderr, a)
07:58 < nsf> something like that should work
07:58 < vsmatck> nsf: sweeeet.  That works nicely.  :)
07:59 < vsmatck> I use the same setup for logging in my C++ programs.  I've
gotten used to having file/line_no attached to log messages.
08:05 < nsf> http://en.wikibooks.org/wiki/Algorithm_Implementation
08:05 < nsf> hahaha
08:05 < nsf> very nice link for lazy people
08:06 < vsmatck> heh, pulled a python levenshtein function off there
yesterday.
08:06 < nsf> or for those who are very bad at reading math formulas and
better at reading code, like me :(
08:07 < nsf> vsmatck: you won't believe, but I've found that link searching
for levenshtein distance impl
08:07 < nsf> :)
08:07 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
08:07 < vsmatck> That's believeable.  Popular algorithm.
08:12 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
08:21 -!- Geekk [~Geekk@bus77-2-82-244-148-145.fbx.proxad.net] has left #go-nuts
[]
08:23 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has joined #go-nuts
08:42 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
08:43 -!- ronnyy [~quassel@2001:6f8:12c6:2a:224:1dff:fed7:9541] has joined
#go-nuts
08:47 -!- kanru [~kanru@61-228-146-5.dynamic.hinet.net] has joined #go-nuts
08:57 -!- \\localhost [~david@mic92-12-88-161-108-143.fbx.proxad.net] has joined
#go-nuts
09:07 -!- boscop_ [~boscop@f055194206.adsl.alicedsl.de] has quit [Quit:
OutOfTimeException: Allocation of TimeFrame failed due to lack of time.
Terminating...]
09:08 -!- boscop [~boscop@f055194206.adsl.alicedsl.de] has joined #go-nuts
09:16 < plexdev> http://is.gd/f5rbP by [Ian Lance Taylor] in go/test/ --
test: Match gccgo error messages.
09:16 < plexdev> http://is.gd/f5rbV by [Ian Lance Taylor] in 2 subdirs of
go/test/ -- test: Add test for //line (currently fails).
09:17 < plexdev> http://is.gd/f5rc3 by [Rob Pike] in 7 subdirs of go/src/ --
arm: work around reg allocator bug in 5g, in two parts.
09:17 < plexdev> http://is.gd/f5rcj by [Russ Cox] in 3 subdirs of
go/src/pkg/runtime/ -- runtime: fix crash trace on amd64
09:17 < plexdev> http://is.gd/f5rcA by [Jukka-Pekka Kekkonen] in 2 subdirs
of go/src/pkg/ -- websocket: Add support for secure WebSockets
09:17 < plexdev> http://is.gd/f5rcM by [Rob Pike] in go/test/ -- arm build:
try to fix it by removing reference to deleted file syntax/slice.go
09:26 -!- piyushmishra [~piyushmis@117.200.225.19] has quit [Quit: Leaving.]
09:28 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
09:28 -!- \\localhost [~david@mic92-12-88-161-108-143.fbx.proxad.net] has quit
[Ping timeout: 240 seconds]
09:30 -!- DayS` [~david@mic92-12-88-161-108-143.fbx.proxad.net] has joined
#go-nuts
09:42 -!- DayS` [~david@mic92-12-88-161-108-143.fbx.proxad.net] has quit [Ping
timeout: 264 seconds]
09:54 -!- saschpe [~quassel@mgdb-4d0cf14d.pool.mediaWays.net] has joined #go-nuts
10:00 -!- roto [~roto@64.79.202.154] has quit [Read error: Operation timed out]
10:04 -!- roto [~roto@64.79.202.154] has joined #go-nuts
10:29 -!- ikaros [~ikaros@188.107.208.221] has joined #go-nuts
10:32 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
10:33 -!- piyushmishra [~piyushmis@117.200.226.110] has joined #go-nuts
10:44 -!- yihuang [~yihuang@183.17.178.149] has left #go-nuts []
11:00 -!- navigator [~navigator@p54896049.dip.t-dialin.net] has joined #go-nuts
11:00 -!- General1337 [~support@71-84-244-55.dhcp.gldl.ca.charter.com] has joined
#go-nuts
11:03 -!- General13372 [~support@71-84-244-55.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 265 seconds]
11:18 -!- Project_2501 [~Marvin@82.84.71.147] has joined #go-nuts
11:28 -!- mattn_jp [~mattn_jp@180-144-149-31f1.hyg1.eonet.ne.jp] has joined
#go-nuts
11:39 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts
11:42 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it]
has quit [Quit: ucasano]
11:51 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has quit [Remote host
closed the connection]
12:01 -!- femtoo [~femto@95-89-248-82-dynip.superkabel.de] has joined #go-nuts
12:09 -!- wrtp [~rog@92.16.121.84] has joined #go-nuts
12:13 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
12:25 -!- piyushmishra [~piyushmis@117.200.226.110] has quit [Ping timeout: 240
seconds]
12:26 -!- ronnyy [~quassel@2001:6f8:12c6:2a:224:1dff:fed7:9541] has quit [Remote
host closed the connection]
12:30 -!- wrtp [~rog@92.16.121.84] has quit [Quit: wrtp]
12:33 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
12:40 -!- piyushmishra [~piyushmis@117.200.228.104] has joined #go-nuts
12:44 -!- tvw [~tv@e176001201.adsl.alicedsl.de] has joined #go-nuts
13:16 -!- l00t- [~i-i3id3r_@189.105.102.218] has joined #go-nuts
13:18 -!- l00t [~i-i3id3r_@189.105.86.140] has quit [Ping timeout: 265 seconds]
13:20 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds]
13:25 -!- niemeyer [~niemeyer@201.22.223.32.dynamic.adsl.gvt.net.br] has joined
#go-nuts
13:29 -!- tvw [~tv@e176001201.adsl.alicedsl.de] has quit [Ping timeout: 276
seconds]
13:49 -!- tvw [~tv@e176001201.adsl.alicedsl.de] has joined #go-nuts
13:55 -!- mattn_jp [~mattn_jp@180-144-149-31f1.hyg1.eonet.ne.jp] has left #go-nuts
[]
13:56 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving]
13:56 -!- tasosos [~tasosos@193.92.229.85.dsl.dyn.forthnet.gr] has joined #go-nuts
13:59 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
14:03 -!- saschpe [~quassel@mgdb-4d0cf14d.pool.mediaWays.net] has quit [Ping
timeout: 272 seconds]
14:11 -!- saschpe [~quassel@mgdb-4d0cf726.pool.mediaWays.net] has joined #go-nuts
14:21 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
14:21 -!- sukuri [~travis@rrcs-24-227-61-149.se.biz.rr.com] has joined #go-nuts
14:28 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
14:30 -!- ucasano [~ucasano@95.74.0.85] has joined #go-nuts
14:40 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
14:44 -!- saschpe [~quassel@mgdb-4d0cf726.pool.mediaWays.net] has quit [Remote
host closed the connection]
14:47 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
14:53 -!- piyushmishra [~piyushmis@117.200.228.104] has quit [Ping timeout: 240
seconds]
14:56 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:701f] has joined #go-nuts
14:58 -!- niemeyer [~niemeyer@201.22.223.32.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 245 seconds]
15:00 -!- femtoo [~femto@95-89-248-82-dynip.superkabel.de] has quit [Quit:
Leaving]
15:00 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
15:02 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
15:06 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Remote
host closed the connection]
15:07 -!- piyushmishra [~piyushmis@117.200.224.144] has joined #go-nuts
15:18 -!- atsampson [~ats@94-194-126-16.zone8.bethere.co.uk] has quit [Quit: room
rearrangement -- again!]
15:20 -!- sukuri [~travis@rrcs-24-227-61-149.se.biz.rr.com] has quit [Quit:
Leaving.]
15:33 -!- nikki93 [~nikki@78.101.191.39] has joined #go-nuts
15:35 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
15:41 -!- nikki93 [~nikki@78.101.191.39] has quit [Ping timeout: 264 seconds]
15:45 -!- tvw [~tv@e176001201.adsl.alicedsl.de] has quit [Remote host closed the
connection]
15:51 -!- \\localhost [~david@mic92-12-88-161-108-143.fbx.proxad.net] has joined
#go-nuts
15:57 -!- niemeyer [~niemeyer@201.22.223.32.dynamic.adsl.gvt.net.br] has joined
#go-nuts
15:59 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Read error: Connection
reset by peer]
15:59 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts
16:01 -!- ucasano [~ucasano@95.74.0.85] has quit [Ping timeout: 252 seconds]
16:03 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
16:12 -!- ExtraSpice [~XtraSpice@88.118.32.225] has joined #go-nuts
16:15 -!- piyushmishra [~piyushmis@117.200.224.144] has quit [Ping timeout: 240
seconds]
16:16 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection
reset by peer]
16:18 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
16:30 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit:
Leaving]
16:35 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
16:48 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
16:48 -!- nikki93 [~nikki@78.101.177.28] has joined #go-nuts
16:48 < nikki93> wassaa!
16:49 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has quit [Ping
timeout: 252 seconds]
16:49 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has joined
#go-nuts
16:50 < jessta> nikki93: hi
16:51 -!- niemeyer [~niemeyer@201.22.223.32.dynamic.adsl.gvt.net.br] has quit
[Read error: Connection reset by peer]
16:51 -!- niemeyer [~niemeyer@189.27.164.169.dynamic.adsl.gvt.net.br] has joined
#go-nuts
16:54 < nikki93> Go looks fun.
16:55 < nikki93> The lack of operator overloading, proper classes and
multiple inheritance, function overloading based on type makes it bad though.
16:55 < nikki93> Just joking.  :P
16:56 < cbeck> It has multiple inheritence of a sort =p
16:56 < nikki93> Hmm, yeah I've read that things that have the same
interface can automatically be used interchangably?
16:56 < nbjoerg> operator overloading is a feature :)
16:56 < nbjoerg> not having it, Imean
16:56 < Namegduf> nikki93: No.
16:57 < Namegduf> Things that meet an interface can be used as said
interface.
16:57 < nikki93> Namegduf: Yeah ok.  I have to phrase my statements
properly.  :)
16:57 < nikki93> So if I have struct thing_with_int { int i; }; then
anything with an int in it can be a thing_with_int?
16:57 < Namegduf> No.
16:57 < nikki93> Sorry the syntax is wrong, I have yet to learn it.  :)
16:57 < Namegduf> Interfaces are not structs.
16:58 < Namegduf> They are a type of type of their own.
16:58 < Namegduf> And they don't have members.
16:58 < nikki93> Aha now I see.
16:58 < Namegduf> They just have methods.
16:58 < Namegduf> Which is how (since you can define methods on types which
are not structs) you can have types which are not structs meet interfaces.
16:58 < nbjoerg> nikki93: an interface is kind of a type tag + a number of
functions implemented on it
16:59 < nikki93> Hmm, okay.
16:59 < nbjoerg> nikki93: a specific type implements the interface if it
implements all the required function
16:59 < Namegduf> Well, in memory, an interface type is a pointer to the
value stored in the interface, and a pointer to a vtable of methods.
16:59 < nikki93> I have to try this out.  :)
16:59 < Namegduf> A two-word struct, you could think of it as.
16:59 < nbjoerg> nikki93: think of the way interface contracts are done e.g.
in Python
17:00 < nbjoerg> nikki93: you don't normally use polymorphism, but depend on
the impementation of specifically named methods with matching signature
17:00 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Remote host closed the connection]
17:00 < nikki93> nbjoerg: Right - an interface is just a dict, and in Python
it only looks for a specific method /when/ it's called.
17:00 < nbjoerg> yes
17:01 < nbjoerg> in Go that check is essentially moved to compile/link time
17:01 < nikki93> I see.
17:01 < nikki93> So how does it handle it if it's across 'different
compilation units'?
17:01 < nikki93> Like if you compile a library which has some interface.
17:01 < nikki93> It calls functions on that.  Then you link a compiled
version of this library with your own compiled code, later.
17:02 -!- piyushmishra [~piyushmis@117.200.224.221] has joined #go-nuts
17:02 < nikki93> Maybe I just need to read up a bit.  :)
17:02 < nbjoerg> the linker can sort it out
17:02 < nikki93> I'll brb.  I'll try some simple programs in Go first.
17:06 < nikki93> About slices in the tutorial: "What they lack is the
precise control of storage layout of a regular array; if you want to have a
hundred elements of an array stored within your structure, you should use a
regular array.  "
17:06 < nikki93> What does that mean?
17:06 < Namegduf> A slice is a superpointer.
17:06 < Namegduf> A pointer and length, more exactly.
17:07 < nikki93> Oh.
17:07 < Namegduf> (And cap)
17:07 < Namegduf> So if you put a slice in a structure, the thing it has
must be stored elsewhere, and pointed to.
17:07 < Namegduf> This means that an array of this structure does not have
the sliced stuff in a continuous block.
17:08 < nikki93> Ah I see.
17:08 < Namegduf> And that has performance effects, like additional
dereferences, impact on CPU cache...
17:09 < nikki93> This is kind of like C struct s { int arr[10]; }; vs.
struct s { int *arr; };
17:09 < Namegduf> Yes.
17:20 -!- luruke [~luruke@151.53.14.150] has joined #go-nuts
17:22 -!- dju [dju@fsf/member/dju] has quit [Quit: Quitte]
17:28 -!- jhawk28 [~jhawk28@user-142gfte.cable.mindspring.com] has joined #go-nuts
17:34 -!- skelterjohn [~jasmuth@c-68-32-232-108.hsd1.nj.comcast.net] has quit
[Ping timeout: 276 seconds]
17:34 -!- skelterjohn [~jasmuth@c-76-124-23-156.hsd1.nj.comcast.net] has joined
#go-nuts
17:35 -!- jhawk28 [~jhawk28@user-142gfte.cable.mindspring.com] has quit [Remote
host closed the connection]
17:36 < nikki93> How do I write an integer to stdout?  :P
17:36 < cbeck> fmt.Print(i\)
17:36 < nikki93> :O
17:36 < cbeck> err fmt.Print(i)
17:37 < cbeck> or fmt.Println
17:39 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
17:42 -!- atsampson [~ats@94-194-126-16.zone8.bethere.co.uk] has joined #go-nuts
17:49 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
17:54 < nikki93> m := make(map[string]int) ...  now you can put any number
of things in 'm'?  I mean, will it 'grow'?
17:54 < exch> it will grow as needed
17:55 -!- DayS` [~david@mic92-12-88-161-108-143.fbx.proxad.net] has joined
#go-nuts
17:55 -!- wrtp [~rog@92.16.121.84] has joined #go-nuts
17:55 < nikki93> I see.
17:58 -!- \\localhost [~david@mic92-12-88-161-108-143.fbx.proxad.net] has quit
[Ping timeout: 272 seconds]
17:59 -!- enherit [~enherit@71-83-188-75.dhcp.lnbh.ca.charter.com] has quit [Quit:
leaving]
18:03 -!- drhodes [~none@207.3.149.84] has quit [Quit: Lost terminal]
18:07 -!- rickard2 [rickard@v-412-ostermalm-206.bitnet.nu] has left #go-nuts []
18:12 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Remote host
closed the connection]
18:14 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has quit [Quit:
steveno]
18:15 -!- luruke [~luruke@151.53.14.150] has quit [Quit: Leaving]
18:22 -!- wrtp [~rog@92.16.121.84] has quit [Quit: wrtp]
18:23 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has joined
#go-nuts
18:23 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has quit
[Changing host]
18:23 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has joined #go-nuts
18:26 -!- synth [~cb@obfuscated.us] has quit []
18:32 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has quit [Quit:
steveno]
18:32 < nikki93> I've seen 'multiple return' functions in the tutorial func
bla() (ret1 t1, ret2 t2) { /* stuff */ } --- is that some kind of 'tuple' type?
18:35 < nbjoerg> no
18:35 < nbjoerg> x,y := bla()
18:35 < nbjoerg> with x being a t1, y being a t2
18:35 < exch> functions can literally return multiple values
18:37 < nikki93> So it's not returning a single tuple?
18:37 < nikki93> ie, you can't do a = (1, 2) and mess around with a?
18:37 < nikki93> Or *a, *b = 1, 2
18:37 < nbjoerg> excatly
18:37 < nbjoerg> no tuple type
18:38 < nikki93> :(
18:38 < nikki93> This is unbearable.
18:38 < nikki93> I quit go.
18:38 * nikki93 goes into hibernation
18:38 < nbjoerg> haha
18:38 * nbjoerg doesn't see the real need for a tuple type
18:39 * nikki93 doesn't either, he's just messing
18:39 < cbeck> *a, *b = 1, 2 should work just fine
18:39 < exch> tuples as return types just seem like lazyman's hacks to
provide multiple return values :p
18:40 < nbjoerg> cbeck: yes
18:40 < nbjoerg> exch: ack
18:40 < nbjoerg> exch: and can create interesting issues too
18:40 < cbeck> Especially in a statically typed language
18:41 < nbjoerg> cbeck: it is *worse* in a dynamically typed language
18:44 < cbeck> Good point, I suppose haskell does something similar
18:44 < cbeck> Or is my memory failing me
18:45 < nbjoerg> having tuples in statically typed languages is sometimes
neat
18:45 < nbjoerg> but essentially it is just a weaker notation of a structure
18:46 < nbjoerg> so the use for anything but return values is questionable
18:52 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has joined #go-nuts
18:57 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Ping timeout: 245
seconds]
18:57 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts
19:00 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has joined #go-nuts
19:17 -!- virtualsue [~chatzilla@93-97-62-8.zone5.bethere.co.uk] has joined
#go-nuts
19:19 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has quit [Remote host
closed the connection]
19:23 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has joined #go-nuts
19:25 -!- piyushmishra [~piyushmis@117.200.224.221] has quit [Ping timeout: 276
seconds]
19:30 -!- wrtp [~rog@92.16.121.84] has joined #go-nuts
19:39 -!- piyushmishra [~piyushmis@117.200.224.197] has joined #go-nuts
19:41 -!- mafs [~maikeru@unaffiliated/maikeru/x-7708887] has quit [Ping timeout:
276 seconds]
19:44 -!- mafs [~maikeru@unaffiliated/maikeru/x-7708887] has joined #go-nuts
19:46 < wrtp> food for thought: reflect.DeepEqual doesn't do deep equality
on map keys.  should it?
19:54 < plexdev> http://is.gd/f63Xf by [Russ Cox] in 2 subdirs of go/ -- gc:
const nil bug
19:59 -!- Geekk [~Geekk@bus77-2-82-244-148-145.fbx.proxad.net] has joined #go-nuts
20:03 -!- wrtp [~rog@92.16.121.84] has quit [Quit: wrtp]
20:06 -!- snearch [~snearch@f053011127.adsl.alicedsl.de] has joined #go-nuts
20:14 -!- Geekk [~Geekk@bus77-2-82-244-148-145.fbx.proxad.net] has left #go-nuts
[]
20:18 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 240
seconds]
20:29 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:701f] has quit [Ping timeout: 272
seconds]
20:39 -!- synth [~cb@obfuscated.us] has joined #go-nuts
20:42 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
20:45 -!- drhodes [~none@207.3.149.84] has joined #go-nuts
20:53 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 240
seconds]
20:57 -!- kunwon1 [~kunwon1@unaffiliated/kunwon1] has joined #go-nuts
20:59 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
20:59 -!- ikaros [~ikaros@188.107.208.221] has quit [Quit: Leave the magic to
Houdini]
20:59 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Remote host closed
the connection]
21:02 -!- Davidian1024 [~Davidian1@cpe-98-27-192-193.neo.res.rr.com] has quit
[Ping timeout: 264 seconds]
21:03 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has joined #go-nuts
21:05 -!- Davidian1024 [~Davidian1@cpe-98-27-192-193.neo.res.rr.com] has joined
#go-nuts
21:11 -!- aho [~nya@fuld-4d00d3e9.pool.mediaWays.net] has joined #go-nuts
21:11 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:60e9] has joined #go-nuts
21:14 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:60e9] has quit [Client Quit]
21:15 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Remote host
closed the connection]
21:17 -!- piyushmishra [~piyushmis@117.200.224.197] has quit [Ping timeout: 245
seconds]
21:22 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
21:24 -!- niemeyer [~niemeyer@189.27.164.169.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 272 seconds]
21:26 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
21:27 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has joined
#go-nuts
21:27 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has quit
[Changing host]
21:27 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has joined #go-nuts
21:28 -!- snearch [~snearch@f053011127.adsl.alicedsl.de] has quit [Quit:
Verlassend]
21:32 -!- piyushmishra [~piyushmis@117.200.224.239] has joined #go-nuts
21:35 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has quit [Quit:
steveno]
21:41 -!- tav [~tav@92.7.159.22] has joined #go-nuts
21:52 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Ping timeout: 240
seconds]
21:52 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection
reset by peer]
21:53 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts
21:59 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:08 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
22:11 -!- tav [~tav@92.7.159.22] has quit [Quit: tav]
22:12 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:60e9] has joined #go-nuts
22:12 -!- navigator [~navigator@p54896049.dip.t-dialin.net] has quit [Quit:
WeeChat 0.3.3]
22:15 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving]
22:15 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has quit [Remote host
closed the connection]
22:21 -!- viirya_ [~viirya@cml506-25.csie.ntu.edu.tw] has quit [Ping timeout: 245
seconds]
22:22 < steven_t> guys
22:22 -!- virtualsue [~chatzilla@93-97-62-8.zone5.bethere.co.uk] has quit [Ping
timeout: 265 seconds]
22:23 < steven_t> generally if you want to create a struct with several
methods, does it usually make sense to create a factory method like NewMyType() or
should i strive to be able to act on a zeroed struct created with new()?
22:24 -!- peterdn [~peterdn@host86-166-21-20.range86-166.btcentralplus.com] has
quit [Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.2/20100222071121]]
22:24 < nbjoerg> steven_t: depends on how much sense an "empty" instance
makes
22:24 < steven_t> hi
22:25 < exch> that entirely depends on what's in the struct as far as fields
is concerned.  I don't think there is any 'must do this' kind of rule.  if iy has
fields that require initializing, then use the NewT() function
22:25 < exch> *it
22:25 < steven_t> so for example if i want TwitterConn as a struct,
22:25 < nbjoerg> ask yourself the question of the newly allocated structure
can be used for something sensible
22:25 < steven_t> hi
22:26 < exch> I generally provide a NewT() function for all my public types.
whether they need initialization or not.  Mainly just for consistency
22:26 < nbjoerg> a network connection without connect or listen doesn't make
much sense
22:26 < steven_t> hi
22:29 -!- photron [~photron@port-92-201-69-173.dynamic.qsc.de] has quit [Ping
timeout: 258 seconds]
22:37 < steven_t> its difficult to figure out how to use something as simple
as the http package
22:37 < steven_t> i cant find an entry point that makes sense for sending a
simple url request and getting the response
22:39 < steven_t> fnally found it, in a completely strange spot:
http://golang.org/pkg/http/#Response.Get
22:39 -!- luruke [~luruke@151.53.14.150] has joined #go-nuts
22:40 < nbjoerg> the documentation is suboptimal in the structuring
22:40 < steven_t> hi
22:40 < cbeck> http.Get()
22:40 < steven_t> yeah thats what i just linked to
22:41 < cbeck> Yup, didn't see
22:52 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
22:54 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
23:00 -!- General13372 [~support@71-84-244-55.dhcp.gldl.ca.charter.com] has joined
#go-nuts
23:03 -!- tav_ [~tav@92.7.159.22] has joined #go-nuts
23:03 -!- General1337 [~support@71-84-244-55.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 255 seconds]
23:03 -!- Davidian1024 [~Davidian1@cpe-98-27-192-193.neo.res.rr.com] has quit
[Ping timeout: 245 seconds]
23:04 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:60e9] has quit [Read error:
Connection reset by peer]
23:10 < Tv> i have to say, the go makefile situation is pretty murky
23:14 < nbjoerg> yes
23:15 < steven_t> hi
23:15 < nbjoerg> is that some scripted reply?  :)
23:15 < steven_t> ;)
23:22 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts
23:27 -!- luruke [~luruke@151.53.14.150] has quit [Quit: Leaving]
23:31 -!- Project_2501 [~Marvin@82.84.71.147] has quit [Read error: Connection
reset by peer]
23:35 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error:
Connection reset by peer]
23:41 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
23:44 -!- piyushmishra [~piyushmis@117.200.224.239] has quit [Ping timeout: 245
seconds]
23:45 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has quit [Ping timeout: 252
seconds]
23:50 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
23:51 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts
23:59 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
--- Log closed Sun Sep 12 00:00:07 2010