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

--- Log opened Fri Jul 30 00:00:05 2010
00:01 -!- artefon [~thiago@189.107.202.101] has quit [Quit: bye]
00:07 -!- artefon [~thiago@189.107.202.101] has joined #go-nuts
00:14 -!- artefon [~thiago@189.107.202.101] has quit [Ping timeout: 248 seconds]
00:27 -!- User46 [~User@96.18.162.93] has joined #go-nuts
00:27 -!- User46 [~User@96.18.162.93] has quit [Client Quit]
00:28 -!- mues747187 [~mues747@96.18.162.93] has joined #go-nuts
00:28 -!- mues747187 [~mues747@96.18.162.93] has quit [Client Quit]
00:28 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts
00:30 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
00:33 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 260 seconds]
00:36 -!- kanru [~kanru@118-168-235-195.dynamic.hinet.net] has quit [Read error:
Operation timed out]
00:43 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
00:46 -!- artefon [~thiago@189.107.202.101] has joined #go-nuts
00:47 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has quit [Quit: LeNsTR]
01:07 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Read error: No
route to host]
01:12 -!- photron [~photron@port-92-201-147-162.dynamic.qsc.de] has quit [Read
error: Operation timed out]
01:24 -!- artefon [~thiago@189.107.202.101] has quit [Quit: bye]
01:25 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
01:27 -!- Bombe [~droden@weltgehirnmaschine.de] has quit [Excess Flood]
01:28 -!- Bombe [~droden@weltgehirnmaschine.de] has joined #go-nuts
01:29 -!- aho [~nya@fuld-4d00d072.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
01:30 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
01:34 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit
[Quit: carllerche]
01:37 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
01:43 -!- ender2070 [~ender2070@bas22-toronto12-2925102709.dsl.bell.ca] has quit
[Ping timeout: 265 seconds]
01:53 -!- ender2070 [~ender2070@bas22-toronto12-2925106745.dsl.bell.ca] has joined
#go-nuts
01:55 -!- derferman [~derferman@dsl092-048-218.sfo4.dsl.speakeasy.net] has quit
[Quit: derferman]
01:56 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
01:58 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 276 seconds]
02:08 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
02:10 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
02:21 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit:
skelterjohn]
02:28 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
connection]
02:29 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
02:34 -!- b00m_chef__ [~watr@75.156.21.228] has joined #go-nuts
02:41 -!- inittab [~dlbeer@ip-118-90-119-42.xdsl.xnet.co.nz] has joined #go-nuts
02:47 -!- nighty__ [~nighty@210.188.173.245] has joined #go-nuts
02:49 -!- Innominate [~sirrobin@cpe-076-182-074-143.nc.res.rr.com] has quit [Ping
timeout: 260 seconds]
02:54 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has joined
#go-nuts
03:03 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
03:07 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Remote host
closed the connection]
03:11 -!- Innominate [~sirrobin@cpe-076-182-074-143.nc.res.rr.com] has joined
#go-nuts
03:25 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
03:32 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has quit
[Quit: derferman]
03:33 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Remote
host closed the connection]
03:33 -!- Guest56937 [~luka@212.235.174.112] has quit [Ping timeout: 258 seconds]
03:41 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has joined
#go-nuts
03:50 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
03:57 -!- b00m_chef__ [~watr@75.156.21.228] has quit [Remote host closed the
connection]
04:27 < araujo> mm
04:27 < araujo> anyone there????
04:30 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
04:31 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has quit [Ping timeout: 240
seconds]
04:33 -!- tumdum [~iubdwe@ats201.neoplus.adsl.tpnet.pl] has joined #go-nuts
04:41 -!- Sacho [~sacho@213.91.244.15] has joined #go-nuts
04:44 < cw> maybe
04:48 -!- tumdum [~iubdwe@ats201.neoplus.adsl.tpnet.pl] has quit [Ping timeout:
260 seconds]
04:49 < araujo> type Any interface{} ; type T struct { val int } ; func f ()
Any { t := new(T); t.val = 2; return t }
04:50 < araujo> is this valid?  ...  what kind of conversion do I need to do
to make it working if not?
04:53 < cw> sorry, im a bit distacted
04:54 < cw> araujo: did you try it?  it should work
04:54 < araujo> I can see the advantage of types like interface{} ..  useful
for containers and such, but as far as it seems, it requires always some kind of
type assertion or casting?, if it is so, ...  I see this a bit not convenient , to
keep casting back and forth ....
04:54 < cw> araujo: why would you cast back and forth?
04:55 < cw> araujo: can you give a more concrete example?  is this in order
to do 'generics' like things?
04:55 < araujo> cw, well, not this exact code, but I am just making an
example here of my other code
04:55 < araujo> cw, I mean, that every time I need to (re-)use the object I
need to cast it to Any or to T
04:56 < cw> leave it as Any then
04:56 < araujo> ok, so, that code snippet I wrote here should work as it is
right?
04:56 < cw> yes
05:00 < araujo> mmm...  ok..  seems working now..  though I slightly
simplified the code
05:00 < araujo> I think I must have some pointer craziness around ....  :P
05:02 < cw> i dont encourage people to use pointers heavily
05:02 < cw> in Go you can avoid them somewhat more than in C for example
05:03 -!- scm [justme@d070052.adsl.hansenet.de] has quit [Ping timeout: 260
seconds]
05:05 -!- scm [justme@d071175.adsl.hansenet.de] has joined #go-nuts
05:05 < araujo> that is true ..  I am not much of a fan of them either
05:06 < araujo> mmm....  it works now ...  mmm...  re-wrote some type
signatures here and there and got it working
05:06 < araujo> mm I think a (*) was messing around
05:07 -!- roop [~roop@122.167.39.121] has joined #go-nuts
05:28 -!- tumdum [~iubdwe@ats201.neoplus.adsl.tpnet.pl] has joined #go-nuts
05:37 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping
timeout: 240 seconds]
05:39 -!- roop [~roop@122.167.39.121] has quit [Read error: Connection reset by
peer]
05:43 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has joined #go-nuts
05:50 -!- wrtp [~rog@92.17.51.177] has quit [Quit: wrtp]
05:54 < plexdev> http://is.gd/dSgzC by [Rob Pike] in go/src/pkg/fmt/ --
fmt.Print: fix bug in placement of spaces introduced when ...T went in.
05:54 < plexdev> http://is.gd/dSgzK by [Robert Griesemer] in 2 subdirs of
go/test/ -- bug299: parenthesized receiver types/anonymous fields are illegal
05:54 < plexdev> http://is.gd/dSgA3 by [Robert Griesemer] in
go/src/pkg/scanner/ -- scanner: better comment
05:54 < plexdev> http://is.gd/dSgAt by [Russ Cox] in go/ -- A+C: Yuusei
Kuwana (individual CLA)
05:54 < plexdev> http://is.gd/dSgAG by [Yuusei Kuwana] in go/src/pkg/mime/
-- mime: add AddExtensionType
05:54 < plexdev> http://is.gd/dSgBi by [Andrew Gerrand] in 2 subdirs of go/
-- doc: update front page and go_learning.html
05:54 < plexdev> http://is.gd/dSgBS by [Robert Griesemer] in 2 subdirs of
go/ -- go_spec: don't allow parens around the literal type of composite literals
05:54 < plexdev> http://is.gd/dSgCz by [Robert Griesemer] in 2 subdirs of
go/test/ -- bug300: literal types must not be parenthesized
05:54 < plexdev> http://is.gd/dSgCZ by [Joe Poirier] in 4 subdirs of go/ --
cov and prof: implement windows version (just function stubs and build mods)
05:54 < plexdev> http://is.gd/dSgDn by [Andrew Gerrand] in 4 subdirs of go/
-- misc/builder: support for uploading tarballs to googlecode
05:54 < plexdev> http://is.gd/dSgDI by [Andrew Gerrand] in 2 subdirs of go/
-- release.2010-07-29
05:54 < plexdev> http://is.gd/dSgE7 by [Andrew Gerrand] in go/ -- tag
release.2010-07-29
05:57 -!- tumdum [~iubdwe@ats201.neoplus.adsl.tpnet.pl] has quit [Ping timeout:
276 seconds]
05:58 -!- roop [~roop@122.167.51.5] has joined #go-nuts
05:59 < nsf> yay, new release
06:11 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
06:32 -!- bjarneh [~bjarneh@135.80-203-19.nextgentel.com] has joined #go-nuts
06:34 -!- Guest44152 [~luka@212.235.174.112] has quit [Ping timeout: 276 seconds]
06:41 -!- wrtp [~rog@92.17.51.177] has joined #go-nuts
06:42 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
06:43 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
06:56 -!- roop_ [~roop@122.172.186.147] has joined #go-nuts
06:56 -!- roop [~roop@122.167.51.5] has quit [Read error: No route to host]
06:56 -!- roop_ [~roop@122.172.186.147] has left #go-nuts []
07:03 < nsf> what is the best way to make a copy of a map?
07:03 < nsf> does built-in 'copy' work for maps too?
07:15 -!- snearch [~snearch@f053009166.adsl.alicedsl.de] has joined #go-nuts
07:35 < chressie> nsf: 'copy' does not copy maps, but it should be a three
liner with a for-loop ;) (see
<http://golang.org/doc/go_spec.html#Copying_slices>)
07:37 -!- snearch [~snearch@f053009166.adsl.alicedsl.de] has quit [Quit:
Verlassend]
07:41 -!- wrtp [~rog@92.17.51.177] has quit [Ping timeout: 240 seconds]
07:42 < plexdev> http://is.gd/dSqlx by [Kai Backman] in go/misc/arm/ -- arm:
add gdb support to android launcher script
07:42 < plexdev> http://is.gd/dSqlB by [Kai Backman] in 2 subdirs of go/ --
arm: bugfixes (stack clobbering, indices)
07:47 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 245
seconds]
07:49 < nsf> chressie: yep, I did the for loop
07:49 -!- wrtp [~rog@92.17.51.177] has joined #go-nuts
07:50 < nsf> I just thought that knowing internal representation of maps it
can be done much faster
07:50 < nsf> without having to reinsert all the values
07:51 < nsf> anyway, thanks :)
07:51 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 264 seconds]
07:52 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
07:53 -!- mlip [~mlip@62.218.44.194] has joined #go-nuts
07:55 -!- ender2070 [~ender2070@bas22-toronto12-2925106745.dsl.bell.ca] has quit
[Remote host closed the connection]
07:55 -!- ender2070 [~ender2070@bas22-toronto12-2925106745.dsl.bell.ca] has joined
#go-nuts
07:55 < mlip> any gccgo wiz here ? ;)
07:56 < mlip> stage 2 to 3 compare fails
07:58 -!- wrtp [~rog@92.17.51.177] has quit [Ping timeout: 260 seconds]
07:58 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2]
07:59 < plexdev> http://is.gd/dSrTW by [Kai Backman] in go/test/ -- fix
build
08:02 -!- wrtp [~rog@92.17.51.177] has joined #go-nuts
08:11 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
08:20 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
08:30 -!- photron [~photron@port-92-201-235-163.dynamic.qsc.de] has joined
#go-nuts
08:33 -!- wrtp [~rog@92.17.51.177] has quit [Ping timeout: 252 seconds]
08:39 -!- ikaros [~ikaros@drms-4d01401c.pool.mediaWays.net] has joined #go-nuts
08:39 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds]
08:45 -!- wrtp [~rog@92.17.51.177] has joined #go-nuts
08:56 -!- Guest60687 [~luka@212.235.174.112] has quit [Quit: Lost terminal]
09:00 -!- wrtp [~rog@92.17.51.177] has quit [Read error: Connection reset by peer]
09:01 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
09:03 -!- wrtp [~rog@92.17.51.177] has joined #go-nuts
09:06 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
09:11 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 276 seconds]
09:14 -!- wrtp [~rog@92.17.51.177] has quit [Ping timeout: 265 seconds]
09:16 -!- path[l] [UPP@120.138.102.50] has quit [Quit: path[l]]
09:22 -!- wrtp [~rog@92.17.51.177] has joined #go-nuts
09:40 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
09:47 < plexdev> http://is.gd/dSBXo by [Kai Backman] in go/test/ -- arm:
disable another flaky test.
09:59 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
09:59 -!- mogoh [~mogoh@ip-95-223-58-126.unitymediagroup.de] has joined #go-nuts
10:00 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 248
seconds]
10:01 -!- mogoh [~mogoh@ip-95-223-58-126.unitymediagroup.de] has quit [Quit:
Verlassend]
10:01 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts
10:03 -!- path[l] [~path@122.182.0.38] has quit [Read error: Connection reset by
peer]
10:03 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
10:04 -!- nighty__ [~nighty@210.188.173.245] has quit [Remote host closed the
connection]
10:04 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
10:06 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Quit: leaving]
10:07 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts
10:13 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
10:14 -!- bjarneh [~bjarneh@135.80-203-19.nextgentel.com] has quit [Read error:
Connection reset by peer]
10:15 -!- bjarneh [~bjarneh@135.80-203-19.nextgentel.com] has joined #go-nuts
10:16 < mlip> iant ?
10:32 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Ping timeout: 260
seconds]
10:33 -!- ikaros [~ikaros@drms-4d01401c.pool.mediaWays.net] has quit [Quit: Leave
the magic to Houdini]
10:45 -!- bjarneh [~bjarneh@135.80-203-19.nextgentel.com] has quit [Quit: bjarneh]
10:45 -!- bjarneh [~bjarneh@135.80-203-19.nextgentel.com] has joined #go-nuts
10:48 -!- bjarneh [~bjarneh@135.80-203-19.nextgentel.com] has quit [Client Quit]
10:50 < taruti> What is a good idiom for writing state machines in Go?
10:52 < wrtp> taruti: a case statement?
10:52 < wrtp> taruti: continuation passing?
10:52 < wrtp> taruti: gotos?
10:52 < wrtp> there are lots of possibilities
10:53 < rsaarelm> taruti:
http://groups.google.com/group/golang-nuts/browse_thread/thread/3fc5ecf0381ea384/34cbc2a3ef5c0a65
10:53 < taruti> just wondering what is the "preferred" style.  using a for {
switch stateVar { ...  } } works certainly
10:54 < taruti> thanks
10:59 -!- ExtraSpice [~XtraSpice@88.118.32.225] has joined #go-nuts
11:00 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]]
11:03 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
connection]
11:04 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
11:05 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Quit: leaving]
11:06 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts
11:16 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 276
seconds]
11:18 -!- mlip [~mlip@62.218.44.194] has quit [Ping timeout: 276 seconds]
11:23 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
11:30 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2]
11:34 -!- artefon [~thiago@189.107.202.101] has joined #go-nuts
11:38 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]]
11:39 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
11:46 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]]
11:47 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
11:52 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
12:01 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has quit [Quit: LeNsTR]
12:12 -!- tumdum [~iubdwe@ats201.neoplus.adsl.tpnet.pl] has joined #go-nuts
12:14 < taruti> Currently web.go is the most popular web framework?
12:17 < exch> the only one with some decent development behind it I believe
12:17 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
12:28 -!- tommo [50b135f2@gateway/web/freenode/ip.80.177.53.242] has joined
#go-nuts
12:29 -!- tommo [50b135f2@gateway/web/freenode/ip.80.177.53.242] has left #go-nuts
[]
12:29 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
12:29 -!- erus` [50b135f2@gateway/web/freenode/ip.80.177.53.242] has joined
#go-nuts
12:29 < erus`> hello?
12:30 < erus`> http://pastebin.com/GmhwYYma in main : what am i doing wrong?
12:31 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
12:35 < erus`> is there an example anywhere of listening sockets?
12:39 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
12:43 < hokapoka> When declaring return values for a func, is it possible to
also delcare it's default value.  Say I return worked bool, Can I set it to
default to true / false?
12:44 < napsy> yes if you name the return variables
12:45 < hokapoka> That's what I was trying to show in my pre line.
12:46 < hokapoka> take this example : func foo() (worked bool, count int)
12:46 -!- Sacho [~sacho@213.91.244.15] has quit [Ping timeout: 258 seconds]
12:46 -!- scm [justme@d071175.adsl.hansenet.de] has quit [Ping timeout: 240
seconds]
12:46 < hokapoka> If I wanted to set worked to either true / false by
default and count to default to some vlaue say 150.
12:47 < hokapoka> Not sure if I ever would just wondering if it's possible.
12:48 -!- erus` [50b135f2@gateway/web/freenode/ip.80.177.53.242] has quit [Quit:
Page closed]
12:52 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has joined
#go-nuts
12:54 -!- tumdum [~iubdwe@ats201.neoplus.adsl.tpnet.pl] has quit [Ping timeout:
248 seconds]
12:59 -!- napsy [~luka@212.235.174.112] has quit [Quit: Lost terminal]
13:00 -!- Sacho [~sacho@213.91.244.15] has joined #go-nuts
13:04 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
13:11 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
13:11 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
13:15 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 240 seconds]
13:19 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
13:21 -!- tumdum [~iubdwe@ats201.neoplus.adsl.tpnet.pl] has joined #go-nuts
13:25 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
13:25 -!- mlip [~mlip@85-127-233-220.dynamic.xdsl-line.inode.at] has joined
#go-nuts
13:27 -!- wrtp [~rog@92.17.51.177] has quit [Ping timeout: 276 seconds]
13:37 -!- wrtp [~rog@92.17.51.177] has joined #go-nuts
13:42 -!- wrtp [~rog@92.17.51.177] has quit [Ping timeout: 248 seconds]
13:50 -!- jb55 [~jb55@64.231.42.71] has left #go-nuts []
13:54 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2]
13:55 < exch> you can't declare it to a custom default value.  It will just
be initialized to the default for the particular type.  For bool that is false
13:57 -!- wrtp [~rog@92.17.51.177] has joined #go-nuts
13:59 -!- scm [justme@d071175.adsl.hansenet.de] has joined #go-nuts
14:06 -!- wrtp [~rog@92.17.51.177] has quit [Ping timeout: 260 seconds]
14:15 -!- wrtp [~rog@92.17.51.177] has joined #go-nuts
14:17 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has joined
#go-nuts
14:22 < chressie> hokapoka: you have to spend the extra line: worked, count
= true, 150
14:24 -!- tumdum [~iubdwe@ats201.neoplus.adsl.tpnet.pl] has quit [Ping timeout:
240 seconds]
14:25 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
14:26 -!- wrtp [~rog@92.17.51.177] has quit [Ping timeout: 240 seconds]
14:28 < hokapoka> chressie / exch I thought as much, liek I said, only
wondering.
14:28 < hokapoka> Thanks.
14:30 -!- wrtp [~rog@92.17.51.177] has joined #go-nuts
14:49 -!- lmoura [~lauromour@200.184.118.130] has quit [Ping timeout: 258 seconds]
15:02 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has joined #go-nuts
15:05 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 264 seconds]
15:17 -!- antonkovalyov [~antonkova@94.141.65.228] has joined #go-nuts
15:19 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
15:29 -!- ender2070 [~ender2070@bas22-toronto12-2925106745.dsl.bell.ca] has quit
[Remote host closed the connection]
15:31 -!- artefon [~thiago@189.107.202.101] has quit [Quit: bye]
15:31 -!- k-bal [~Marius@dslb-084-063-027-061.pools.arcor-ip.net] has joined
#go-nuts
15:32 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
15:36 -!- vorotemn [~quassel@81-224-251-55-no149.tbcn.telia.com] has joined
#go-nuts
15:37 -!- vorotemn [~quassel@81-224-251-55-no149.tbcn.telia.com] has quit [Remote
host closed the connection]
15:47 -!- kanru [~kanru@61-228-156-64.dynamic.hinet.net] has joined #go-nuts
16:04 -!- lmoura [~lauromour@200.184.118.130] has joined #go-nuts
16:04 -!- k-bal [~Marius@dslb-084-063-027-061.pools.arcor-ip.net] has quit [Read
error: Connection reset by peer]
16:06 -!- k-bal [~Marius@dslb-084-063-027-061.pools.arcor-ip.net] has joined
#go-nuts
16:16 -!- Sacho [~sacho@213.91.244.15] has quit [Remote host closed the
connection]
16:18 -!- carllerche [~carllerch@99.13.242.166] has joined #go-nuts
16:19 -!- kanru [~kanru@61-228-156-64.dynamic.hinet.net] has quit [Ping timeout:
264 seconds]
16:23 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:24 -!- nickaugust [~nickaugus@114.232.121.70.cfl.res.rr.com] has joined
#go-nuts
16:26 < nickaugust> hey im trying to instal gocouch and I get this error
http://sprunge.us/DjbH so I do this "cat gocouch.go | head -60 | tail -5" and it
responds: http://sprunge.us/JISb any ideas what the problem is here?
16:26 < nickaugust> install rather
16:32 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
16:38 -!- allengeorge [~allengeor@74.12.150.7] has joined #go-nuts
16:41 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
16:45 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
16:57 -!- nickaugust [~nickaugus@114.232.121.70.cfl.res.rr.com] has quit [Quit:
WeeChat 0.2.6]
17:02 -!- boscop [~boscop@g226255238.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
17:05 -!- boscop [~boscop@f055203021.adsl.alicedsl.de] has joined #go-nuts
17:08 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 260 seconds]
17:08 -!- allengeorge [~allengeor@74.12.150.7] has quit [Quit: allengeorge]
17:10 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
17:10 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
17:10 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
17:18 -!- allengeorge [~allengeor@74.12.150.7] has joined #go-nuts
17:21 -!- Byron [~Byron@cpe-98-155-138-202.hawaii.res.rr.com] has joined #go-nuts
17:25 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
17:32 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Quit: (◣_◢)
BigBrowser is watching ⓎⓄⓊ]
17:41 -!- angasule [c80571ea@gateway/web/freenode/ip.200.5.113.234] has joined
#go-nuts
17:43 -!- a2800276 [~tbe@xdsl-78-34-150-71.netcologne.de] has joined #go-nuts
17:45 -!- atsampson [~ats@193.60.168.73] has joined #go-nuts
17:49 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Quit: Ex-Chat]
17:50 -!- gnuvince_ [~vince@64.235.207.135] has quit [Quit: What the fruit is
goin' on here!?]
17:51 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
18:05 -!- derferman [~derferman@dsl092-048-218.sfo4.dsl.speakeasy.net] has joined
#go-nuts
18:06 -!- carllerche [~carllerch@99.13.242.166] has quit [Quit: carllerche]
18:12 -!- lmoura [~lauromour@200.184.118.130] has quit [Ping timeout: 258 seconds]
18:17 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined
#go-nuts
18:19 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping
timeout: 260 seconds]
18:20 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has joined #go-nuts
18:38 < plexdev> http://is.gd/dToXr by [Russ Cox] in 3 subdirs of
go/src/pkg/runtime/ -- runtime: do not fall through in SIGBUS/SIGSEGV
18:38 -!- lmoura [~lauromour@200.184.118.130] has joined #go-nuts
18:40 -!- ronnyy [~quassel@p4FF1D7A4.dip.t-dialin.net] has joined #go-nuts
18:40 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
18:40 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
18:40 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
18:43 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
18:44 -!- mertimor [~mertimor@p4FE759B1.dip.t-dialin.net] has joined #go-nuts
18:45 -!- mertimor [~mertimor@p4FE759B1.dip.t-dialin.net] has quit [Remote host
closed the connection]
18:51 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Remote
host closed the connection]
19:01 -!- ronnyy [~quassel@p4FF1D7A4.dip.t-dialin.net] has quit [Remote host
closed the connection]
19:09 -!- lmoura [~lauromour@200.184.118.130] has quit [Ping timeout: 258 seconds]
19:13 < k-bal> can anyone tell me why this fails?
http://pastebin.com/BuS47KUv
19:14 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:22 -!- tvw [~tv@e176004174.adsl.alicedsl.de] has joined #go-nuts
19:26 -!- saracen [~saracen@81-5-140-201.dsl.eclipse.net.uk] has quit [Ping
timeout: 264 seconds]
19:27 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
19:29 < i__> k-bal: not all packages are goinstallable
19:29 < k-bal> i__: thanks for the pointer
19:32 -!- lmoura [~lauromour@200.184.118.130] has joined #go-nuts
19:35 -!- napsy [~luka@212.235.174.112] has quit [Read error: Connection reset by
peer]
19:35 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
19:39 -!- mxweas [~max@166.205.139.103] has joined #go-nuts
19:40 < plexdev> http://is.gd/dTupo by [Russ Cox] in go/ -- CONTRIBUTORS:
add wcn@google.com alias to match with code review
19:40 < plexdev> http://is.gd/dTupz by [Bill Neubauer] in
go/src/pkg/websocket/ -- websocket: fix bug involving spaces in header keys
19:43 < mlip> i__: (guessing you are ian) could you have a short look at the
latest ml post regaring gccgo ?
19:48 -!- mxweas [~max@166.205.139.103] has quit [Read error: Connection reset by
peer]
19:48 -!- mxweas [~max@166.205.139.103] has joined #go-nuts
19:50 < i__> mlip: i'm not ian :P
19:52 -!- mxweas [~max@166.205.139.103] has quit [Client Quit]
19:54 -!- aho [~nya@fuld-4d00d239.pool.mediaWays.net] has joined #go-nuts
19:55 -!- mxweas [~max@166.205.139.103] has joined #go-nuts
19:56 -!- mxweas [~max@166.205.139.103] has quit [Client Quit]
19:56 < mlip> i__: damn ;)
20:00 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
20:14 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
20:19 < allengeorge> http://gist.github.com/501239
20:19 < allengeorge> I'm trying to create a generic String() function for a
base struct (let's call it MessageBase), which when embedded in other structs will
print out the name of the enclosing struct.  Is this possible?
20:20 < allengeorge> Example of what I'm trying to do shown in the gist
link...
20:21 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
20:26 -!- lmoura [~lauromour@200.184.118.130] has quit [Ping timeout: 258 seconds]
20:27 < exch> Will fmt.Printf("%#v\n", msg) solve your problem?
20:27 -!- a2800276_ [~tbe@xdsl-78-35-70-237.netcologne.de] has joined #go-nuts
20:27 < exch> it'll print something like
main.Msg{MessageBase:main.MessageBase{a:123, b:456}}
20:27 -!- angasule [c80571ea@gateway/web/freenode/ip.200.5.113.234] has quit
[Quit: Page closed]
20:28 < exch> or "%T" if you just want the 'main.Msg' bit
20:29 -!- a2800276 [~tbe@xdsl-78-34-150-71.netcologne.de] has quit [Ping timeout:
260 seconds]
20:31 < allengeorge> I'll try it right now
20:32 < exch> you wont even need the embedding stuff that way.  Unless you
need to embed the fields
20:34 < allengeorge> I do need to embed the fields.  I'm trying to create a
suite of messages.  All of them will have val1 and val2 but others will have 1) no
additional values 2) one or two additional values
20:34 < exch> fair enough
20:34 < allengeorge> Unfortunately %T didn't work - it printed out the base
type, in this case *MessageBase
20:35 < exch> If you need finegrained control over what type is what, have a
look at the reflect package.
20:36 < allengeorge> Oh...I don't think it can be done
20:36 < allengeorge> I'm looking at a PDF and this is what it says:
20:37 -!- napsy [~luka@212.235.174.112] has quit [Read error: Operation timed out]
20:38 < allengeorge> that the receiver will be the address of the _embedded
struct_ not the enclosing struct
20:38 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
20:39 < exch> true, but using %#v on the enclosing type, also prints the
full name of the embedded type and it's fields
20:40 < exch> That would mean you'd have to implement String() for all
subtypes though,..  provided you want to do something special with that value
20:40 -!- lmoura [~lauromour@200.184.118.136] has joined #go-nuts
20:43 < allengeorge> Although I could do that it seems like there should be
a better way.  Is there an alternative that I'm not seeing or that I'm unaware of?
20:48 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
20:53 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Ping timeout: 276
seconds]
20:53 -!- smw [~smw@pool-71-183-88-124.nycmny.fios.verizon.net] has quit [Quit:
Leaving]
20:56 -!- macroron [~macroron@c-98-242-168-49.hsd1.fl.comcast.net] has joined
#go-nuts
20:57 < exch> Not as far as I can see.  You'll either have to contend with
weeing both the encapsulating and embedded type fully printed, or implement
String() in all subtypes
20:57 -!- nomo [~nomo@mobile-166-137-137-108.mycingular.net] has joined #go-nuts
21:00 -!- NfNitLoop [~bip@2001:470:b9cc:beef::1] has quit [Ping timeout: 252
seconds]
21:01 -!- NfNitLoop [~bip@2001:470:b9cc:beef::1] has joined #go-nuts
21:02 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
connection]
21:03 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
21:03 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has quit [Quit: Disappears
in a puff of smoke]
21:07 < exch> You have to define String() on the encapsulating type anyways,
if you want it to print additional fields only present in that particular type
21:11 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode]
21:11 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
21:15 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
21:18 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined
#go-nuts
21:18 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit
[Remote host closed the connection]
21:26 -!- ExtraSpice [~XtraSpice@88.118.32.225] has quit [Ping timeout: 240
seconds]
21:36 < allengeorge> exch: That's unfortunate - it looks like I'll have to
define String() and MarshalJSON() for all my message types then
21:40 -!- ExtraSpice [~XtraSpice@88.118.32.225] has joined #go-nuts
21:41 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode]
21:42 -!- path[l] [UPP@120.138.102.50] has joined #go-nuts
21:44 -!- path[l] [UPP@120.138.102.50] has quit [Read error: Connection reset by
peer]
21:44 -!- path[l] [UPP@120.138.102.50] has joined #go-nuts
21:44 < allengeorge> Is reflection the only way I can get the type of an
interface?  (I don't want to use a type switch)
21:45 < allengeorge> Basically I have a func that returns an interface type,
and I'd like to verify that the concrete type of the object is the one I'm
expecting (I'm writing a unit test)
21:45 < allengeorge> Apparently I can't do if m.(type) == *MyMessageType
21:46 < exch> you can use somthing like this: if v, ok := myval.(MyStruct);
ok { yay(v) }
21:47 < exch> Basically the same idea as a typeswitch, just without the
switch
21:47 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
21:50 -!- Adys [~Adys@unaffiliated/adys] has quit [Client Quit]
21:50 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
21:51 < allengeorge> Ah - that looks a lot better - thanks!
21:51 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
21:52 < allengeorge> I totally forgot about doing something like that
21:58 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Remote host closed
the connection]
22:00 -!- rogue780 [~rogue780@c-68-34-234-213.hsd1.md.comcast.net] has joined
#go-nuts
22:05 -!- mlip [~mlip@85-127-233-220.dynamic.xdsl-line.inode.at] has left #go-nuts
[]
22:21 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
22:21 -!- macroron [~macroron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
22:24 -!- k-bal [~Marius@dslb-084-063-027-061.pools.arcor-ip.net] has left
#go-nuts []
22:41 -!- wrtp [~rog@92.17.51.177] has quit [Ping timeout: 265 seconds]
22:42 -!- rogue780 [~rogue780@c-68-34-234-213.hsd1.md.comcast.net] has quit [Quit:
Leaving]
22:45 -!- wrtp [~rog@92.17.51.177] has joined #go-nuts
22:52 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has
quit [Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.2/20100222071121]]
22:53 -!- gnuvince [~vince@70.35.171.116] has quit [Quit: Via SOAP!  VIA SOAP!!]
22:53 -!- gnuvince [~vince@70.35.161.32] has joined #go-nuts
22:53 -!- Byron [~Byron@cpe-98-155-138-202.hawaii.res.rr.com] has quit [Ping
timeout: 240 seconds]
22:54 -!- antonkovalyov [~antonkova@94.141.65.228] has quit [Remote host closed
the connection]
22:56 -!- ronnyy [~quassel@p4FF1D7A4.dip.t-dialin.net] has joined #go-nuts
22:56 -!- wrtp [~rog@92.17.51.177] has quit [Ping timeout: 245 seconds]
22:57 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Ping timeout: 248
seconds]
22:57 -!- wrtp [~rog@92.17.51.177] has joined #go-nuts
23:03 -!- ExtraSpice [~XtraSpice@88.118.32.225] has quit [Quit: Leaving]
23:07 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
23:10 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
23:42 -!- allengeorge [~allengeor@74.12.150.7] has quit [Quit: allengeorge]
23:44 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 245 seconds]
23:44 -!- tvw [~tv@e176004174.adsl.alicedsl.de] has quit [Read error: Connection
reset by peer]
23:45 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
23:52 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 265
seconds]
23:59 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
--- Log closed Sat Jul 31 00:00:05 2010