--- Log opened Tue Aug 03 00:00:01 2010
--- Day changed Tue Aug 03 2010
00:00 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
00:00 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
00:02 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
00:05 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
00:06 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit:
skelterjohn]
00:06 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
00:08 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
00:10 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
00:10 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
00:15 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
00:17 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
00:17 < allengeorge> [sigh] Maybe it's because I'm dealing so much with JSON
messages, but interfaces are getting really annoying
00:17 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
00:18 * allengeorge is taking a break
00:18 -!- 45PAAVR9K [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has quit [Ping
timeout: 264 seconds]
00:26 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
00:27 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
00:31 -!- ZincSaucier [~quassel@c-76-126-34-217.hsd1.ca.comcast.net] has joined
#go-nuts
00:31 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
00:31 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
00:32 -!- ZincSaucier_ [~quassel@c-76-126-34-217.hsd1.ca.comcast.net] has quit
[Ping timeout: 240 seconds]
00:36 -!- RobertLJ_ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
00:36 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
00:36 -!- nekschot [bla@212-123-134-143.ip.telfort.nl] has quit []
00:38 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
00:41 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
00:43 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
00:43 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
00:44 -!- ExtraSpice [~XtraSpice@88.118.32.225] has quit [Ping timeout: 240
seconds]
00:44 -!- mikespook [~mikespook@219.137.73.218] has joined #go-nuts
00:46 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
00:46 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
00:50 -!- RobertLJ_ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit
[Remote host closed the connection]
00:52 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
00:53 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
00:55 -!- RobertLJ_ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
00:55 -!- nickaugust [~nickaugus@114.232.121.70.cfl.res.rr.com] has joined
#go-nuts
00:57 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
00:59 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
01:02 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
01:04 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
01:05 -!- ukai [~ukai@nat/google/x-qskobdogswruxawa] has quit [Read error:
Connection reset by peer]
01:05 < plexdev> http://is.gd/dZg5N by [Nigel Tao] in go/src/pkg/image/ --
image: introduce Gray and Gray16 types, and remove the named colors
01:06 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 240 seconds]
01:07 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
01:07 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
01:08 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
01:12 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
01:12 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
01:17 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
01:17 -!- hstimer [~hstimer@70.90.170.37] has quit [Quit: hstimer]
01:18 -!- artefon [~thiago@189.107.227.111] has quit [Quit: bye]
01:19 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
01:19 -!- Makoryu [~vt920@pool-71-174-191-10.bstnma.fios.verizon.net] has joined
#go-nuts
01:22 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
01:22 < plexdev> http://is.gd/dZhYm by [Andrew Gerrand] in
go/misc/dashboard/ -- builder: update script so it doesn't create tar-bombs
01:23 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
01:27 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
01:27 -!- jlolofie [~jlolofie@128.252.233.244] has joined #go-nuts
01:27 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
01:28 -!- Bombe [~droden@weltgehirnmaschine.de] has quit [Changing host]
01:28 -!- Bombe [~droden@freenet/developer/Bombe] has joined #go-nuts
01:30 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit
[Quit: carllerche]
01:32 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping
timeout: 240 seconds]
01:32 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
01:32 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has joined #go-nuts
01:33 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
01:35 -!- windy828 [windy828@67-61-255-21.cpe.cableone.net] has joined #go-nuts
01:37 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
01:37 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has joined
#go-nuts
01:38 -!- derferman [~derferman@dsl092-048-218.sfo4.dsl.speakeasy.net] has quit
[Quit: derferman]
01:38 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
01:39 -!- windy828 [windy828@67-61-255-21.cpe.cableone.net] has quit [Client Quit]
01:41 -!- jlolofie [~jlolofie@128.252.233.244] has quit [Quit: leaving]
01:42 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
01:42 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
01:47 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
01:48 -!- ako [~nya@fuld-4d00d0af.pool.mediaWays.net] has joined #go-nuts
01:50 -!- hstimer [~hstimer@2002:4c67:9b0d:0:226:bbff:fe05:dd9b] has joined
#go-nuts
01:51 -!- aho [~nya@fuld-4d00d166.pool.mediaWays.net] has quit [Ping timeout: 265
seconds]
01:52 -!- hstimer [~hstimer@2002:4c67:9b0d:0:226:bbff:fe05:dd9b] has quit [Client
Quit]
01:52 -!- boscop_ [~boscop@g225198028.adsl.alicedsl.de] has joined #go-nuts
01:53 -!- boscop [~boscop@g227139238.adsl.alicedsl.de] has quit [Disconnected by
services]
01:53 -!- boscop_ [~boscop@g225198028.adsl.alicedsl.de] has left #go-nuts []
01:53 -!- boscop [~boscop@g225198028.adsl.alicedsl.de] has joined #go-nuts
01:55 -!- hstimer [~hstimer@2002:4c67:9b0d:0:226:bbff:fe05:dd9b] has joined
#go-nuts
01:55 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
01:56 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
01:56 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
01:56 -!- angasule [~angasule@190.2.33.49] has quit [Read error: Connection reset
by peer]
01:58 -!- aht [~AndChat@125.234.49.50] has joined #go-nuts
01:59 -!- aht [~AndChat@125.234.49.50] has quit [Client Quit]
02:04 -!- jtal [~jlolofie@128.252.233.244] has joined #go-nuts
02:04 -!- captn [~captn@p4FDCB32C.dip.t-dialin.net] has joined #go-nuts
02:06 -!- jtal [~jlolofie@128.252.233.244] has quit [Client Quit]
02:08 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
02:09 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
02:09 < plexdev> http://is.gd/dZmRd by [Alex Brainman] in
go/src/pkg/syscall/ -- syscall: make sure go error numbers do not clash with
windows system errors
02:10 < nickaugust> hey is there a go package for building data trees?  ive
got to index some files and id like to save the index in a tree if possible
02:16 -!- Xenith [~xenith@xenith-2-pt.tunnel.tserv3.fmt2.ipv6.he.net] has quit
[Remote host closed the connection]
02:16 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
02:16 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
02:22 -!- Xenith [~xenith@xenith-2-pt.tunnel.tserv3.fmt2.ipv6.he.net] has joined
#go-nuts
02:22 < skelterjohn> nickaugust: there is an sqlite wrapper
02:22 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
02:23 < nickaugust> skelterjohn: hmmm ok i'll check that out.  i was
thinking something to write my own btree but I guess through sql could work
02:24 < nickaugust> thanks
02:24 -!- Makoryu [~vt920@pool-71-174-191-10.bstnma.fios.verizon.net] has quit
[Remote host closed the connection]
02:29 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
02:34 -!- dionysiac [~dionysiac@S01060013102db8c7.cg.shawcable.net] has quit
[Quit: dionysiac]
02:35 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
02:37 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
02:39 -!- allengeorge [~allengeor@74.12.150.7] has quit [Quit: allengeorge]
02:40 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
02:41 -!- getisboy [~Family@pool-173-76-228-217.bstnma.fios.verizon.net] has
joined #go-nuts
02:42 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
02:43 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has joined
#go-nuts
02:43 -!- bmizerany [~bmizerany@208.66.27.62] has quit [Remote host closed the
connection]
02:45 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
02:47 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
02:50 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
02:51 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
02:52 -!- dionysiac [~dionysiac@S01060013102db8c7.cg.shawcable.net] has joined
#go-nuts
02:55 -!- getisboy [~Family@pool-173-76-228-217.bstnma.fios.verizon.net] has left
#go-nuts []
02:56 < manveru> are there any bdb bindings yet?
02:57 -!- [Pete_27] [~noname@115-64-1-61.static.tpgi.com.au] has joined #go-nuts
02:59 -!- ako [~nya@fuld-4d00d0af.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
03:00 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
03:03 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
03:03 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
03:06 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
connection]
03:09 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
03:12 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
03:14 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
03:16 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
03:19 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
03:20 -!- RobertLJ_ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
03:29 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
03:31 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
03:33 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
03:36 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
03:37 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
03:41 < plexdev> http://is.gd/dZvnV by [Rob Pike] in go/ -- Add Scott
Lawrence to C&A
03:41 < plexdev> http://is.gd/dZvo4 by [Scott Lawrence] in
go/src/pkg/strings/ -- strings: fix Split("", "", -1)
03:42 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
03:44 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
03:51 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
03:51 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
03:59 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has quit
[Quit: derferman]
04:07 -!- nettok [~quassel@200.119.178.35] has joined #go-nuts
04:08 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
04:08 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
04:18 -!- raylu [raylu@75.53.103.63] has quit [Read error: Connection reset by
peer]
04:19 -!- raylu [raylu@adsl-75-53-103-63.dsl.hstntx.sbcglobal.net] has joined
#go-nuts
04:23 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
04:23 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
04:23 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
04:27 -!- captn [~captn@p4FDCB32C.dip.t-dialin.net] has quit [Ping timeout: 265
seconds]
04:27 -!- eikenberry [~jae@ivanova.zhar.net] has quit [Quit: End of line.]
04:27 -!- roto [~roto@64.79.202.154] has quit [Ping timeout: 264 seconds]
04:28 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
04:33 < nickaugust> is []byte the same as a string?
04:33 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
04:34 < nickaugust> or how do I use a []byte value as a string?
04:34 -!- path[l] [UPP@120.138.102.50] has joined #go-nuts
04:34 < nickaugust> use/convert whatever
04:37 < Namegduf> string(value)
04:39 -!- captn [~captn@p4FDCB056.dip.t-dialin.net] has joined #go-nuts
04:39 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
04:42 -!- gid [~gid@220-253-29-69.VIC.netspace.net.au] has joined #go-nuts
04:42 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
04:42 < nickaugust> thanks Namegduf.  i just realized ioutil.WriteFile wants
it in []byte form anyway.
04:43 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has joined
#go-nuts
04:44 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
04:45 -!- micrypt [~micrypt@94-195-127-212.zone9.bethere.co.uk] has joined
#go-nuts
04:45 -!- micrypt [~micrypt@94-195-127-212.zone9.bethere.co.uk] has left #go-nuts
[]
04:48 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
04:49 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
04:50 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
04:54 -!- [Pete_27] [~noname@115-64-1-61.static.tpgi.com.au] has quit [Ping
timeout: 240 seconds]
04:54 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
05:03 -!- scm [justme@d165176.adsl.hansenet.de] has quit [Ping timeout: 264
seconds]
05:05 -!- scm [justme@d070077.adsl.hansenet.de] has joined #go-nuts
05:05 -!- [Pete_27] [~noname@115-64-1-61.static.tpgi.com.au] has joined #go-nuts
05:07 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
05:11 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
05:13 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts
05:13 -!- mode/#go-nuts [+v iant] by ChanServ
05:16 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
05:16 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
05:16 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
05:21 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
05:24 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
05:26 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has joined #go-nuts
05:27 < araujo> if I have a []interface{} .....  and I want to take it for
example to a specific type like []reflect.Value ....  what is the way to do it?
05:28 < araujo> []reflect.Value(interfaceType) isn't working ...
05:30 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
05:33 <+iant> araujo: you have to convert an individual element
05:33 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Read
error: Connection reset by peer]
05:33 <+iant> you can't convert the whole slice at once
05:34 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
05:35 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
05:36 -!- Sacho [~sacho@95-42-108-60.btc-net.bg] has quit [Remote host closed the
connection]
05:38 < araujo> iant, get it, I thought so at first, just wanted to see if
there existed other way to do it
05:38 < araujo> thanks iant
05:40 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Ping
timeout: 248 seconds]
05:42 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Read error:
Operation timed out]
05:42 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 264
seconds]
05:45 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has quit [Remote host
closed the connection]
05:45 < araujo> cannot convert v (type interface {}) to type reflect.Value:
interface {} does not implement reflect.Value (missing Addr method)
05:46 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has joined
#go-nuts
05:46 -!- ampleyfly [~ampleyfly@h-148-139.A163.priv.bahnhof.se] has quit [Remote
host closed the connection]
05:47 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
05:47 <+iant> araujo: sounds like you want reflect.NewValue
05:48 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
05:51 < araujo> for { iant += 1 }
05:53 -!- qIIp [~qIIp@72-173-157-34.cust.wildblue.net] has joined #go-nuts
05:54 -!- qIIp [~qIIp@72-173-157-34.cust.wildblue.net] has quit [Read error:
Connection reset by peer]
06:01 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has quit [Quit: Leaving.]
06:14 -!- jackman [~jackman@c-24-21-216-140.hsd1.or.comcast.net] has joined
#go-nuts
06:15 -!- ukai [~ukai@nat/google/x-njyahxzoqwzgpoyi] has joined #go-nuts
06:19 -!- roop [~roop@122.167.234.54] has joined #go-nuts
06:37 -!- ptimothyp [~timothy@203.17.221.171] has quit [Quit: Leaving.]
06:40 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
06:44 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
06:47 -!- Project_2501 [~Marvin@82.84.97.96] has joined #go-nuts
06:59 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode]
07:13 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 258
seconds]
07:21 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
07:23 < araujo> "wrong argument count"
07:23 < araujo> I get that when I call a function taking a slice....
07:23 < araujo> but not sure what it means
07:28 -!- path[l] [UPP@120.138.102.50] has quit [Ping timeout: 240 seconds]
07:29 < plexdev> http://is.gd/dZQmI by [Russ Cox] in 6 subdirs of go/ -- gc:
index bounds tests and fixes
07:34 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Ping timeout:
265 seconds]
07:36 -!- path[l] [UPP@120.138.102.50] has joined #go-nuts
07:41 -!- iant [~iant@62-20-124-50.customer.telia.com] has joined #go-nuts
07:41 -!- mode/#go-nuts [+v iant] by ChanServ
07:44 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
07:45 -!- wrtp [~rog@92.16.115.185] has joined #go-nuts
07:45 < plexdev> http://is.gd/dZSe0 by [Russ Cox] in go/ -- A+C: Tarmigan
Casebolt
07:48 -!- nettok [~quassel@200.119.178.35] has quit [Ping timeout: 246 seconds]
07:50 -!- saschpe [~saschpe@mgdb-4d0cfab9.pool.mediaWays.net] has joined #go-nuts
07:56 -!- Sacho [~sacho@213.91.244.15] has joined #go-nuts
07:57 -!- assiss [~assiss@59.108.86.140] has joined #go-nuts
07:58 -!- assiss [~assiss@59.108.86.140] has quit [Quit: Leaving.]
07:58 -!- photron [~photron@port-92-201-38-67.dynamic.qsc.de] has joined #go-nuts
08:01 -!- gavintong [71fe961f@gateway/web/freenode/ip.113.254.150.31] has joined
#go-nuts
08:02 < plexdev> http://is.gd/dZTQI by [Russ Cox] in 5 subdirs of go/ -- gc:
bug299, bug300
08:19 < plexdev> http://is.gd/dZVfS by [Russ Cox] in 2 subdirs of go/ -- gc:
bug301
08:19 < plexdev> http://is.gd/dZVg0 by [Russ Cox] in 3 subdirs of go/ -- gc:
empty select
08:19 -!- ExtraSpice [~XtraSpice@88.118.32.225] has joined #go-nuts
08:20 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
08:23 -!- Project-2501 [~Marvin@82.84.65.95] has joined #go-nuts
08:25 -!- Project_2501 [~Marvin@82.84.97.96] has quit [Ping timeout: 240 seconds]
08:25 -!- Project_2501 [~Marvin@82.84.92.31] has joined #go-nuts
08:26 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
08:27 -!- Project-2501 [~Marvin@82.84.65.95] has quit [Ping timeout: 260 seconds]
08:29 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-153-177.clienti.tiscali.it] has
joined #go-nuts
08:31 -!- PortatoreSanoDiI [~Marvin@82.84.91.83] has joined #go-nuts
08:32 -!- Project_2501 [~Marvin@82.84.92.31] has quit [Ping timeout: 276 seconds]
08:33 -!- Project_2501 [~Marvin@82.84.98.30] has joined #go-nuts
08:34 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-153-177.clienti.tiscali.it] has
quit [Ping timeout: 260 seconds]
08:36 -!- PortatoreSanoDiI [~Marvin@82.84.91.83] has quit [Ping timeout: 246
seconds]
08:38 -!- Project-2501 [~Marvin@82.84.92.96] has joined #go-nuts
08:40 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-159-127.clienti.tiscali.it]
has joined #go-nuts
08:41 -!- Project_2501 [~Marvin@82.84.98.30] has quit [Ping timeout: 260 seconds]
08:43 -!- Project_2501 [~Marvin@82.84.72.65] has joined #go-nuts
08:43 -!- Project-2501 [~Marvin@82.84.92.96] has quit [Ping timeout: 265 seconds]
08:46 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-159-127.clienti.tiscali.it]
has quit [Ping timeout: 252 seconds]
08:52 -!- Project_2501 [~Marvin@82.84.72.65] has quit [Quit: E se abbasso questa
leva che succ...]
08:55 -!- ronnyy [~quassel@p4FF1D948.dip.t-dialin.net] has joined #go-nuts
09:05 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts
09:08 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed
the connection]
09:19 -!- ronnyy [~quassel@p4FF1D948.dip.t-dialin.net] has quit [Ping timeout: 258
seconds]
09:21 -!- ronnyy [~quassel@p4FF1D948.dip.t-dialin.net] has joined #go-nuts
09:22 -!- path[l] [UPP@120.138.102.50] has quit [Quit: path[l]]
09:24 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
09:25 -!- gavintong [71fe961f@gateway/web/freenode/ip.113.254.150.31] has quit
[Quit: Page closed]
09:28 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts
09:28 -!- Project_2501 [~Marvin@82.84.72.65] has joined #go-nuts
09:34 -!- mikespook [~mikespook@219.137.73.218] has quit [Quit: Leaving.]
09:35 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has quit [Quit:
Morten.  Desu~]
09:43 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 240 seconds]
09:48 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
09:49 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed
the connection]
09:50 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts
10:10 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
10:14 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has joined
#go-nuts
10:18 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has left
#go-nuts []
10:21 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
10:28 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 260 seconds]
10:28 -!- napsy_ [~luka@212.235.174.112] has joined #go-nuts
10:46 -!- path[l] [~path@122.182.0.38] has quit [Read error: Connection reset by
peer]
10:46 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
10:46 -!- [Pete_27] [~noname@115-64-1-61.static.tpgi.com.au] has quit [Ping
timeout: 240 seconds]
10:48 -!- alehorst [~alehorst@200.146.80.63.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 248 seconds]
10:49 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
10:52 -!- ptimothyp [~timothy@220-245-61-193.static.tpgi.com.au] has joined
#go-nuts
10:57 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
10:59 -!- rlab_ [~Miranda@91.200.158.34] has joined #go-nuts
11:00 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds]
11:04 -!- djm [~djm@paludis/slacker/djm] has quit [Quit: s/screen/tmux/]
11:05 -!- djm [~djm@paludis/slacker/djm] has joined #go-nuts
11:07 -!- alehorst [~alehorst@201.22.37.218.dynamic.adsl.gvt.net.br] has joined
#go-nuts
11:07 -!- mduft [~mduft@gentoo/developer/mduft] has joined #go-nuts
11:32 -!- nekschot [nekschot@212-123-134-143.ip.telfort.nl] has joined #go-nuts
11:49 -!- artefon [~thiago@dhcp46.usuarios.dcc.ufmg.br] has joined #go-nuts
11:53 -!- Stalafin [~janis@dslb-092-077-018-064.pools.arcor-ip.net] has joined
#go-nuts
11:54 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has
joined #go-nuts
11:54 -!- gr0gmint [~joebiden@87.60.23.38] has joined #go-nuts
11:56 -!- Stalafin [~janis@dslb-092-077-018-064.pools.arcor-ip.net] has left
#go-nuts ["WeeChat 0.3.2"]
12:03 -!- djm [~djm@paludis/slacker/djm] has quit [Quit: Lost terminal]
12:03 -!- djm [~djm@paludis/slacker/djm] has joined #go-nuts
12:12 -!- nickaugust [~nickaugus@114.232.121.70.cfl.res.rr.com] has quit [Ping
timeout: 265 seconds]
12:17 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
12:19 -!- chressie [~chressie@dreggn.in-ulm.de] has quit [Quit: WeeChat 0.3.2]
12:20 -!- chressie [~chressie@dreggn.in-ulm.de] has joined #go-nuts
12:34 -!- nickaugust [~nickaugus@114.232.121.70.cfl.res.rr.com] has joined
#go-nuts
12:38 -!- roop [~roop@122.167.234.54] has quit []
12:43 -!- _^_ [triangle@pool-96-228-111-208.albyny.east.verizon.net] has joined
#go-nuts
12:45 -!- ptimothyp [~timothy@220-245-61-193.static.tpgi.com.au] has left #go-nuts
[]
12:46 -!- gr0gmint [~joebiden@87.60.23.38] has quit [Quit: leaving]
12:59 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat
0.3.2]
13:00 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
connection]
13:01 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
13:27 -!- roop [~roop@122.167.42.253] has joined #go-nuts
13:44 -!- kanru [~kanru@118-168-238-214.dynamic.hinet.net] has joined #go-nuts
13:52 -!- napsy_ [~luka@212.235.174.112] has quit [Quit: Lost terminal]
13:53 -!- mduft [~mduft@gentoo/developer/mduft] has quit [Remote host closed the
connection]
13:56 -!- mduft [~mduft@gentoo/developer/mduft] has joined #go-nuts
13:59 -!- angasule [c80571ea@gateway/web/freenode/ip.200.5.113.234] has joined
#go-nuts
14:00 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
14:01 -!- Sacho [~sacho@213.91.244.15] has quit [Ping timeout: 258 seconds]
14:06 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has joined
#go-nuts
14:15 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed
the connection]
14:17 -!- Sacho [~sacho@90-154-149-17.btc-net.bg] has joined #go-nuts
14:17 -!- artefon [~thiago@dhcp46.usuarios.dcc.ufmg.br] has quit [Quit: bye]
14:35 < hokapoka> With a given var, n, type int64 and map[int64]string what
the best way to find the first item in the map with the key < n?
14:38 < hokapoka> I've used for i, v := range m{ if i < n { retun v} }.
But I have a couple of issues, 1.  I'm not convinced about stepping through the
whole map to find the match if it's the last one.  & 2.  range dosen't appear to
be sorted via the int64 value, but the string of the value.
14:39 < hokapoka> * string of the key
14:40 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has
quit [Quit: Morten.  Desu~]
14:40 -!- kanru [~kanru@118-168-238-214.dynamic.hinet.net] has quit [Ping timeout:
240 seconds]
14:41 < jessta> hokapoka: yeah, you shouldn't do that.
14:41 < hokapoka> Can anyone suggest a better approach to hold a set of key
value pairs with the key type int64.  And the most efficient way to find the first
lowest?
14:41 < jessta> maps are unordered
14:41 < hokapoka> jessta: Kinda figured that.  got any better suggestions?
14:42 < hokapoka> Normally I would have used a bunch of if's, but I want to
beable to change the ranges and extent it programtically.
14:42 < hokapoka> s/extent/extend
14:43 < jessta> well, if you want an ordered map the best way is to make a
slice of the keys
14:44 < hokapoka> jessta: they do apper to be ordered, as it's not even the
natural order and they are being returned in the same order as if the key'd had
been converted to strings
14:45 < exch> If the int64 and string need to stay related, I would consider
a small struct slice..  type Pair struct { k int64; v string }; var list []Pair;
You can order that slice by implementing the sort interface..  Elements can then
be sorted by ascending order of the int64 field
14:46 < hokapoka> jessta: I thinking about doing that.
14:46 < exch> the pair slice would need it's own type if you want to
implement the interface though.
14:46 < wrtp> hokapoka: you could use a heap
14:46 < wrtp> hokapoka: see container/heap
14:46 < hokapoka> exch: oh yeah, that would work.
14:46 < hokapoka> not used heap before.  time to have a gander.
14:46 < wrtp> it's a useful data structure
14:47 < wrtp> it doesn't allow you to look up by key though, only by lowest
14:47 < hokapoka> What about efficency.  This would be called 10-50 times
per page render.
14:48 < wrtp> it's very efficient O(1) for retrieval of lowest; O(log(n))
for insertion and deletion.
14:48 < hokapoka> oh, that sounds better.  I'll have a quick read.
14:48 < wrtp> if you need to look up by key, then you could maintain a map
in parallel with the heap
14:48 -!- mfoemmel [~mfoemmel@chml01.drwholdings.com] has joined #go-nuts
14:48 < hokapoka> As soon as I created the map I thought, nope this isn't
goona be any good!
14:49 < hokapoka> No need at all.  I just want the first key that's greeater
than a value.
14:52 < wrtp> are you removing that key, or just finding it?
14:52 < wrtp> actually, i don't think heap will do what you want
14:52 < wrtp> it finds the min element, not an element with key < n
14:53 < wrtp> does it matter which item in the map with key < n is
returned?
14:53 < hokapoka> I'm finding it, and heap appears to only have Push & Pop
14:54 < wrtp> yes, push, pop and remove.  but if you just want to retrieve
the lowest element, you could do pop followed by push
14:55 < hokapoka> wrtp: It need to be the first item that is < n where
the key sorted.
14:55 < wrtp> how many items are we talking here?  10?  100?  1000000?
14:56 < hokapoka> So if it contained the keys 5, 60, 1800 and I passed 35,
it needs to return 60.
14:56 < hokapoka> approximatly 100
14:56 < hokapoka> At most.
14:56 < wrtp> you'd probably find it's as fast as anything to just do a
linear array scan.
14:56 < hokapoka> However, it's going to be called between 10 & 50 times per
render.
14:57 < wrtp> render of an html page?
14:57 < hokapoka> Aye
14:57 < wrtp> 5000 comparisons isn't much at about 10ns per comparison...
14:58 < hokapoka> Okay, In that case I'll use 2 methods.
14:58 < wrtp> two other options: some kind of tree; or keep a sorted list
and use binary search
14:59 < hokapoka> 1 direct location.  if !found compare the middle value and
check if < or > check middle and so on
14:59 < hokapoka> exactally binary search
14:59 < wrtp> the second is probably the option i'd go for if i found that
performance was being a problem.
14:59 < wrtp> yup
14:59 < wrtp> but it's still slower than linear if number of items is small
14:59 < hokapoka> yeah, you have a point.
15:00 < wrtp> i'd do the linear search and then measure.
15:00 < wrtp> you'll probably find it's just fine.
15:00 < hokapoka> I think you're right.  I could always expand it later to
check the length of the array and do a binary search if it's very large.
15:01 < wrtp> yup.
15:01 < wrtp> that way you don't pay the cost of sorting the array either.
15:02 < skelterjohn> the relevant issue is the number of keys vs the number
of requests
15:04 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 260 seconds]
15:04 < skelterjohn> if the number of keys is less than order log(number of
requests), then a linear search is a good idea
15:05 < skelterjohn> otherwise you should probably sort it
15:05 < hokapoka> When you say requests are you reffering to the number of
calls to the method, or page requests?
15:05 < skelterjohn> calls to the method
15:05 < skelterjohn> sorry, not a web designer :)
15:06 < skelterjohn> with linear search, it will be O(requests*keys)
15:06 < skelterjohn> with binary sort/serach it will be O(k lg k + r lg k)
15:07 < skelterjohn> i may have got the condition for when the better
algorithm changes wrong
15:07 < skelterjohn> but r*k vs (k lg k + r lg k)
15:07 < skelterjohn> whichever is smaller
15:10 -!- Sacho [~sacho@90-154-149-17.btc-net.bg] has quit [Ping timeout: 264
seconds]
15:10 < skelterjohn> yeah i got it backwards - if lg k > r, do linear
search
15:16 -!- path[l] [~path@122.182.0.38] has quit [Remote host closed the
connection]
15:16 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
15:16 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 260 seconds]
15:17 < hokapoka> On tha basis the keys would range from 10 ~ 100 which are
3.32192809 & 6.64385619 respectivly & there will be between 10 & 50 requests, I
need to implyment a binary search.
15:17 < hokapoka> s/imply/imple
15:18 < skelterjohn> hooray computer science!
15:19 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
15:19 < hokapoka> :)
15:20 -!- iant [~iant@62-20-124-50.customer.telia.com] has quit [Ping timeout: 260
seconds]
15:22 -!- Sacho [~sacho@213.91.244.15] has joined #go-nuts
15:29 -!- gnuvince [~vince@70.35.168.119] has quit [Ping timeout: 265 seconds]
15:30 -!- gnuvince [~vince@64.235.212.77] has joined #go-nuts
15:30 -!- gnuvince [~vince@64.235.212.77] has quit [Client Quit]
15:30 -!- gnuvince [~vince@64.235.212.77] has joined #go-nuts
15:35 -!- jstorimer [~jesse@66-78-107-238.access.ripnet.com] has joined #go-nuts
15:42 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
15:43 -!- chaosclo1n [~whitenois@24.179.65.0] has quit [Ping timeout: 265 seconds]
15:44 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Quit: (◣_◢)
BigBrowser is watching ⓎⓄⓊ]
15:44 -!- Sacho [~sacho@213.91.244.15] has quit [Read error: Connection reset by
peer]
15:46 -!- hstimer [~hstimer@2002:4c67:9b0d:0:226:bbff:fe05:dd9b] has quit [Quit:
hstimer]
15:49 -!- _^_ [triangle@pool-96-228-111-208.albyny.east.verizon.net] has quit
[Ping timeout: 245 seconds]
15:57 -!- rejb [~rejb@unaffiliated/rejb] has quit [Quit: .]
15:58 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
16:00 < manveru> is there any way to use copy with an offset on dst?
16:02 < jessta> dst is a slice, you can slice the slice to get an offset
16:02 < exch> copy(dst[3:], src)
16:03 < manveru> ah, ok
16:06 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
16:07 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Disconnected by
services]
16:08 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
16:09 -!- nickaugust [~nickaugus@114.232.121.70.cfl.res.rr.com] has quit [Quit:
WeeChat 0.2.6]
16:12 -!- wrtp [~rog@92.16.115.185] has quit [Ping timeout: 264 seconds]
16:14 -!- timmcd [~Timothy@174-23-142-201.slkc.qwest.net] has joined #go-nuts
16:14 < timmcd> Hey!
16:14 < timmcd> I was wondering how I would create a not-fixed-size []byte?
16:14 < timmcd> buf := make([]byte, 1) to make it 1 byte large.
16:14 < napsy> you can't
16:15 < timmcd> hrm
16:15 < napsy> arras and slices have fixed-size lenght
16:15 < napsy> length*
16:15 < exch> resizing requires making a new one and copying the data
16:15 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:15 < timmcd> So I'll just have to set it something really big xD
16:15 < timmcd> Thanks
16:16 -!- nickaugust [~nick@114.232.121.70.cfl.res.rr.com] has joined #go-nuts
16:16 < exch> Or resize it in increments.  That's usually what I do because
copy)_ calls are very slow.  I create a slice with a reasonable size.  And only
increase it's size by a sizable chunk when it's full.
16:16 < exch> *copy()
16:16 -!- wrtp [~rog@92.16.115.185] has joined #go-nuts
16:17 < timmcd> Well, the plan is to take input from a user (across a
TCPConn (Writing a MUD))
16:17 < timmcd> Is there a function that tells you the size in bytes of
whats on the line?
16:19 -!- timmcd [~Timothy@174-23-142-201.slkc.qwest.net] has left #go-nuts []
16:19 < exch> len(line) should work.  Although that may return the number of
unicode characters.  In which case len([]byte(line)) is what you want)
16:20 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 276 seconds]
16:20 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has joined
#go-nuts
16:25 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
16:27 < chressie> timmcd: you could also give bytes.Buffer a try (godoc
bytes Buffer)
16:28 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
16:30 -!- maht [~maht__@85-189-31-174.proweb.managedbroadband.co.uk] has quit
[Remote host closed the connection]
16:31 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
16:33 -!- jstorimer [~jesse@66-78-107-238.access.ripnet.com] has quit [Quit:
jstorimer]
16:35 -!- hstimer [~hstimer@70.90.170.37] has joined #go-nuts
16:39 < plexdev> http://is.gd/e0AFj by [Adam Langley] in
go/src/pkg/crypto/x509/ -- crypto/x509: unwrap Subject Key Identifier
16:40 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
16:43 < napsy> http://www.vcskicks.com/detect_net_framework.php
16:43 < napsy> oops
16:44 -!- ZincSaucier [~quassel@c-76-126-34-217.hsd1.ca.comcast.net] has quit
[Ping timeout: 240 seconds]
16:44 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
16:44 -!- ZincSaucier [~quassel@c-76-126-34-217.hsd1.ca.comcast.net] has joined
#go-nuts
16:45 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
16:49 -!- ZincSaucier_ [~quassel@c-76-126-34-217.hsd1.ca.comcast.net] has joined
#go-nuts
16:49 -!- ZincSaucier [~quassel@c-76-126-34-217.hsd1.ca.comcast.net] has quit
[Ping timeout: 240 seconds]
16:51 -!- path[l]_ [~path@59.162.86.164] has joined #go-nuts
16:52 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has quit [Quit:
WeeChat 0.3.3-dev]
16:55 -!- path[l] [~path@59.162.86.164] has quit [Ping timeout: 276 seconds]
16:56 -!- path[l]_ [~path@59.162.86.164] has quit [Ping timeout: 246 seconds]
16:57 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
17:01 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 260 seconds]
17:08 -!- Sacho [~sacho@95-42-108-60.btc-net.bg] has joined #go-nuts
17:09 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
17:11 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has quit
[Excess Flood]
17:11 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has joined
#go-nuts
17:13 -!- ZincSaucier_ [~quassel@c-76-126-34-217.hsd1.ca.comcast.net] has quit
[Ping timeout: 240 seconds]
17:14 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
17:17 -!- ZincSaucier [~quassel@c-76-126-34-217.hsd1.ca.comcast.net] has joined
#go-nuts
17:20 -!- derferman [~derferman@dsl092-048-218.sfo4.dsl.speakeasy.net] has joined
#go-nuts
17:23 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
17:23 -!- Sacho [~sacho@95-42-108-60.btc-net.bg] has quit [Ping timeout: 265
seconds]
17:27 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Quit: Ex-Chat]
17:33 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
17:36 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has quit
[Excess Flood]
17:37 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has joined
#go-nuts
17:38 -!- alehorst [~alehorst@201.22.37.218.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 248 seconds]
17:39 -!- Sacho [~sacho@95-42-108-60.btc-net.bg] has joined #go-nuts
17:39 -!- alehorst [~alehorst@189.58.132.65.dynamic.adsl.gvt.net.br] has joined
#go-nuts
17:43 -!- Xurix [~Luixsia@AToulouse-254-1-100-99.w86-207.abo.wanadoo.fr] has
joined #go-nuts
17:54 -!- Xenith [~xenith@xenith-2-pt.tunnel.tserv3.fmt2.ipv6.he.net] has quit
[Read error: Operation timed out]
17:56 -!- Xurix [~Luixsia@AToulouse-254-1-100-99.w86-207.abo.wanadoo.fr] has quit
[Ping timeout: 240 seconds]
18:02 -!- ender2070 [~ender2070@bas22-toronto12-2925103053.dsl.bell.ca] has joined
#go-nuts
18:07 -!- ghiu [~gu@93-32-156-171.ip34.fastwebnet.it] has joined #go-nuts
18:07 -!- Xurix [~Luixsia@AToulouse-254-1-30-121.w81-250.abo.wanadoo.fr] has
joined #go-nuts
18:07 -!- Xenith [~xenith@xenith-2-pt.tunnel.tserv3.fmt2.ipv6.he.net] has joined
#go-nuts
18:12 -!- roop [~roop@122.167.42.253] has quit [Ping timeout: 276 seconds]
18:14 < ghiu> is there something like typecasting in go?
18:14 < ghiu> if i know that an interface{} is a string, how can i cast it
as string?  like (string)interface{} =
18:15 < ghiu> ?
18:15 -!- Venom_X [~pjacobs@71.21.124.111] has joined #go-nuts
18:16 < nickaugust> hey can i create an array of byte arrays?
18:16 < nickaugust> [][]byte?
18:16 -!- wrtp [~rog@92.16.115.185] has quit [Quit: wrtp]
18:18 < jesusaur> ghiu: if Item is an interface{}, you can do 'value, ok :=
Item.(string)'
18:19 < exch> nickaugust: make([][]byte, 123), then loop through it and
make() each inner array
18:21 -!- tvw [~tv@e176012095.adsl.alicedsl.de] has joined #go-nuts
18:25 < nickaugust> let me run this buy you.  im loading a bunch of json
files and then creating one big json file with a few fields to use as an index.
so I get the directory listing, and loop through all the files and pull out the
data i need right...  but what type of object or array should I put that all in?
I have my custom struct Contact so it could bet []Contact right?  for array of
contacts?  but to marshall it
18:25 < nickaugust> back to json it wants it in []byte format
18:26 < nickaugust> s/bet/be
18:26 < nickaugust> so thats why I was thinking an array of byte arrays...
18:27 < nickaugust> seems more complicated than it should be though
18:27 < nickaugust> s/buy/by
18:27 < exch> an []Contact slice should do the trick..  json.Marshal() takes
any value (including a []Contact slice) and marshals it into []byte data
18:27 < nickaugust> exch: ah sweet!  thanks man
18:28 < exch> to be specific: bytedata, err := json.Marshal(myslice)
18:29 < nickaugust> thx
18:32 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
18:36 < nickaugust> ok now im back to this index out of range error when I
try to do "output[index] = contact"...  using the index from the range of files.
do i need to use a vector here?  i thought slices were dynamic
18:36 < i__> only maps are dynamic
18:37 < nickaugust> well...  hmmm...  i could count the files and then
define the array after that
18:37 < exch> How is the slice created?  As long as 0 <= index <
len(slice), you should be ok
18:38 < nickaugust> for index, val := range files {
18:38 < nickaugust> oh the slice
18:39 < nickaugust> var out_data []Contact
18:39 < nickaugust> is all ive done before i try to do out_data[index]
18:41 < exch> var out_data []Contact is a nill slice.  it doesn't contain
any valid data yet
18:41 < exch> either make() it with an appropriate size, or fille it some
other way
18:41 < exch> *fill
18:41 < nickaugust> ah
18:41 < nickaugust> ok thanks exc
18:42 < nickaugust> exch
18:42 < nickaugust> i'll chekc out make()
18:42 < nickaugust> *check* geez
18:42 < exch> The reason you need to call make() on slices and maps is that
make() does some additional internal creation magic that will not be done by
simply doing 'var foo []T'
18:42 < exch> This only goes for slices and maps
18:43 < nickaugust> so always call make() on slices and maps before using
them
18:44 < exch> yup
18:44 < Namegduf> make() is the equivalent of package.NewType() for
built-ins; it returns a fully constructed thing of that type, and is used for
types for which a zero value cannot be a basic fully constructed type.
18:44 < nickaugust> and no 'var foo []Contact'
18:45 < nickaugust> ok got it
18:45 < exch> you can use 'var foo []Contact' to predeclare a slice.  As
long as you make sure it is properly initialized at some point before you actually
use it
18:45 -!- Xurix [~Luixsia@AToulouse-254-1-30-121.w81-250.abo.wanadoo.fr] has quit
[Quit: Leaving]
18:45 < Namegduf> Interestingly, this means that a all-zero string must
represent ""
18:46 < Namegduf> Which is kinda ineat.
18:46 < Namegduf> -i
18:47 < nickaugust> so if I make([]Contact, 10) is 10 the most I can put in
there or will it expand?
18:47 < KirkMcDonald> 10 will be the capacity of the underlying array.
18:47 < KirkMcDonald> If you want a larger array, you will need to
reallocate and copy.
18:48 < nickaugust> so no expanding....  so how is a slice different from an
array?
18:49 < KirkMcDonald> The length of an array is part of the array's type.
18:49 < nickaugust> if I have to var [10]Arrays and make([]Slice, 10)
18:49 < KirkMcDonald> A slice's length may vary, and a slice always refers
to an underlying array.
18:50 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving]
18:50 < KirkMcDonald> Put another way, you always allocate arrays, and
slices are views into arrays.
18:51 -!- artefon [~thiago@dhcp39.usuarios.dcc.ufmg.br] has joined #go-nuts
18:51 < nickaugust> so with a slice I cant change the underlying array, but
i can point the slice to a new underlying array?
18:51 < exch> nickaugust: a slice is nothing more than a 'window' on an
underlying fixed array of data.  This is why slices are always 'by reference' if
you pass them to a function.  Any mofigying of the data in the slice actually
modifies the underlying array.  It defines nothing more than the current length of
the slice, the total capacity if the underlying data and a pointer to the
underlying data.  While an array is the actual data
18:51 < KirkMcDonald> make([]Slice, 10) allocates an array, and gives you a
slice over the entire array.
18:52 < KirkMcDonald> nickaugust: Depends on what you mean by "change the
underlying array."
18:52 < KirkMcDonald> nickaugust: You can certainly assign to elements of
the array.
18:52 < nickaugust> change the length of i mean
18:52 < nickaugust> sorry
18:52 < KirkMcDonald> And yes, you can cause a slice variable to refer to a
different array.
18:53 < skelterjohn> you can have a much longer array and have a slice only
point to a subsection of it, and then change the length of the slice
18:53 < KirkMcDonald> A slice is basically just: type slice struct { array
*T; length, capacity int; }
18:53 < nickaugust> ooooooooooohhhhh
18:53 < nickaugust> a slice of an array.
18:53 < nickaugust> duh
18:55 -!- roto [~roto@64.79.202.154] has joined #go-nuts
18:55 < KirkMcDonald> Yeah.
18:55 < KirkMcDonald> The length of an array is fixed because you always
need to allocate a specific number of bytes.
18:55 < nickaugust> so if I want to load a few thousand file names into an
array I should get the number of files first and then define the array or make()
the slice
18:56 < KirkMcDonald> Yeah.
18:56 < skelterjohn> or use stringvector :)
18:56 < skelterjohn> stringvector uses a smart allocation schedule
18:56 < nickaugust> ok...  i was mistaking slices for StringVectors again.
and the reason we dont want to use expanding arrays like python or like string
vectors is because...
18:56 < nickaugust> less efficent?
18:57 < skelterjohn> use a vector if the length is not known when you create
the data structure
18:57 < skelterjohn> a stringvector is "type StringVector []string"
18:57 < skelterjohn> with some special functions on the type
18:58 < nickaugust> skelterjohn: this is an array of my defined struct
Contact..  can vectors handle that?
18:59 < skelterjohn> yes - the interface{} vector
18:59 < skelterjohn> you will just need to do type asserts whenever you want
to access it
18:59 < skelterjohn> which is a small inefficiency
18:59 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has joined #go-nuts
18:59 < skelterjohn> but not one to get worked up over
19:00 < skelterjohn> you're working on a go MUD, right?
19:00 < skelterjohn> sounds like a fun project
19:01 < skelterjohn> back when I was in highschool i did a lot of that stuff
19:01 < skelterjohn> i didn't have a PC, so i couldn't play ultima online
:'(
19:02 < nickaugust> hehe no not a go MUD that was someone else :)
19:02 < skelterjohn> ohhhh you're right that was timmcd
19:02 < skelterjohn> what are you working on?
19:03 < nickaugust> ah im rewriting an application i use for my business
19:03 < nickaugust> basically i dumped all my database data into flat json
files
19:03 < nickaugust> and then im writing indexes for them
19:03 < skelterjohn> huh
19:03 < nickaugust> and writing a console bases application to search and
modify them
19:03 -!- byerley [~sheridan@dhcp150.cs.colostate.edu] has joined #go-nuts
19:03 < skelterjohn> carving out a wheel from scratch huh
19:03 < nickaugust> s/bases/based
19:04 < nickaugust> ha, you could say that :)
19:04 < skelterjohn> not gonna lie - seems like a good time to use an
existing database tool
19:04 < nickaugust> ive written this same application in about 10 different
language/database config
19:04 < nickaugust> mysql, postgre, couchd, db etc
19:04 < skelterjohn> but the fact that you're writing it in a new language
suggests that it is at least somewhat for fun, so that's fine
19:05 < Tonnerre> Cassandra ftw
19:05 < Tonnerre> Not sure there are Go bindings though
19:05 < nickaugust> yeah and im working my way through knuths art of
programming too
19:05 < nickaugust> so just trying to learn about different data structures
and all this
19:05 -!- marsu [~marsu@165.108.202-77.rev.gaoland.net] has joined #go-nuts
19:05 < nickaugust> i guess you could call it fun :)
19:05 < skelterjohn> sounds fun then
19:07 < nickaugust> and its the application i use for my business to so i
incorporate new ideas that I learn back into the main project..  which is a python
web app at the moment
19:08 < byerley> Hi, are there any compilations of packages other than the
one at http://golang.org/pkg/ ? I'd be interested in unofficial stuff too.
19:08 < skelterjohn> go-lang.cat-v.org
19:08 < skelterjohn> and http://godashboard.appspot.com/project
19:09 < skelterjohn> http://go-lang.cat-v.org/
19:09 < skelterjohn> they both have a package and project listing
19:09 < byerley> Thanks
19:09 < skelterjohn> though the dashboard site at one point included all the
stuff on cat-v
19:09 < skelterjohn> lots of good projects out there
19:15 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:30 < byerley> no generics built in currently right?
19:30 -!- timmcd [~Timothy@174-23-142-201.slkc.qwest.net] has joined #go-nuts
19:30 < timmcd> Hello!
19:30 < timmcd> A few questions: Does Go have keyword arguments?
19:30 < timmcd> *support
19:31 < timmcd> any sort of hack arounds, that kind of thing
19:31 < napsy> timmcd: what do you mean by keyword arguments?
19:32 < timmcd> Well, like when calling a function: Greet(name="Tim", age
="15") { "Hello, " + name + " , who is " + age}
19:32 < timmcd> that sort of thing
19:32 < napsy> oh, I don't belieah Go has that
19:33 < napsy> believe*
19:33 < timmcd> Mmk no worries
19:33 < timmcd> howzabout associate arrays?
19:33 < exch> you can only do that with struct and map initialization
19:33 < exch> foo := T{a:"abc", b:123}
19:34 < timmcd> ok cool
19:34 < skelterjohn> byerley: that's right - no generics as yet
19:34 < timmcd> So maps can grow...  so it would be plausible to just store
an ever-growing list of items in a map?
19:34 < skelterjohn> depends on the list
19:35 < skelterjohn> one way to have a set of primitives is to have a
map[type]bool
19:35 < skelterjohn> and test themap[myitem] == true
19:35 < skelterjohn> primitives or pointer types
19:36 < skelterjohn> or, a really inefficient way to have a dynamic sized
array would be map[int]MyType
19:36 < skelterjohn> but that is not recommended :)
19:36 < timmcd> lol
19:36 < timmcd> A string can be a key, right?
19:36 < skelterjohn> yes
19:36 < timmcd> so I could have, map[string]struct
19:36 < skelterjohn> yes
19:36 < timmcd> but NOT map[struct]string
19:36 < timmcd> mmk
19:36 < skelterjohn> i believe so
19:37 < skelterjohn> i've never actually tested that, but the keys need to
have a hash
19:37 < skelterjohn> the primitives have built in hashes under the scenes,
and pointer types have hashes based on the numerical value of the pointer
19:37 < timmcd> I plan on using htis map later on to interface with golua.
Do you s'pose that THAT sort of map would convert well to a lua table?
19:37 < skelterjohn> i know very little about lua
19:37 < timmcd> map[string]struct, {"dada" = {struct}}
19:37 < skelterjohn> sorry
19:37 < timmcd> ah ok
19:37 < timmcd> no worries
19:38 < KirkMcDonald> You could have map[*S]string, though.
19:38 < skelterjohn> right - pointer types are valid keys
19:41 < timmcd> map[string]map
19:41 < timmcd> I think is what I need ;)
19:41 < skelterjohn> that by itself isn't a complete type
19:44 -!- mattikus [~mattikus@ip24-250-73-154.br.br.cox.net] has quit [Remote host
closed the connection]
19:46 < exch> Can anyone see anything immediately wrong with this bit of
code?  http://pastebin.com/Y7KKE4bA
19:46 < exch> For some reason it panics in are cases, even with the recover
bit in there
19:47 < exch> *rare
19:47 < skelterjohn> if "this" is nil, "this.vendor" will cause a panic
19:47 < exch> it's not nil
19:48 < skelterjohn> not supposed to be, anyway :)
19:48 < skelterjohn> put a check to see if it is or not in there, see what
happens
19:48 < skelterjohn> that's the only thing i see
19:49 < exch> just did and nope, no nil pointers
19:50 < skelterjohn> your panic should say what line caused the panic
19:50 < skelterjohn> ?
19:50 < exch> it panics inside the GoString() call
19:50 < skelterjohn> ah
19:50 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts
19:50 -!- mode/#go-nuts [+v iant] by ChanServ
19:50 < skelterjohn> well, i certainly have no idea what goes on in the
GoString call
19:50 < skelterjohn> is that part of the go runtime?
19:51 < exch> Hnce my suspicion that it happens with an invalid pointer.  it
has no problem dealing with a nil pointer
19:51 < exch> C.GoString() is a standard part of the cgo tools
19:51 < timmcd>
19:53 < exch> hmm weird
19:54 < exch> 'this.vendor' seems to consistently fail when vendor points to
address 0x10000411f
19:54 < skelterjohn> that's a bad address
19:55 < exch> yea
19:55 < skelterjohn> cooties, etc
19:55 < exch> it looked odd
19:55 < exch> suppose I could add an extra check for that address
19:55 < skelterjohn> probably should fix the bit that gives that address in
the first place
19:56 < exch> It's an external function in libmtp
19:56 < exch> should prolly see if there's bug reports on that
19:58 < skelterjohn> what type is this.vendor?  a pointer to the start of a
c string?
19:59 < exch> char*
19:59 < exch> so yea, a c-string
19:59 < skelterjohn> maybe it's full of gibberish.  can inspect the contents
and see
20:01 < exch> The strange part is that it yields these gibberish addresses
more often, but not all of them panic().  Some get intercepted by the recover()
call as expected
20:01 < skelterjohn> i see
20:01 < skelterjohn> buffer overflow :)
20:02 < skelterjohn> someone is trying to hack you
20:02 < exch> :p
20:02 < exch> doubtful
20:04 -!- tvw [~tv@e176012095.adsl.alicedsl.de] has quit [Remote host closed the
connection]
20:04 < exch> I do believe there's a Go bug in there somewhere.  Faulty
pointers or not, the recover() call should intercept any panic in that function,
not selectively ignore a few
20:05 < skelterjohn> isolate the problem and file an issue
20:05 < exch> I hope I can
20:06 < exch> Isolate it, that is
20:06 < timmcd> can you make inline maps?
20:06 -!- bmizerany [~bmizerany@208.66.27.62] has joined #go-nuts
20:06 < timmcd> Idk exactly what I myself mean...
20:06 < timmcd>
20:06 < timmcd> but like
20:06 < timmcd> MyFunc( [x:5 y:6 z:1032043] )
20:07 < skelterjohn> you can do that with structs, probably a way for maps
too
20:07 < skelterjohn> check out effective go, or the tutorial
20:07 < skelterjohn> http://golang.org/doc/effective_go.html#maps
20:09 -!- gnuvince [~vince@64.235.212.77] has quit [Read error: Operation timed
out]
20:09 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has quit [Ping timeout:
276 seconds]
20:09 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has quit [Quit:
Morten.  Desu~]
20:09 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 260 seconds]
20:09 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
20:10 -!- gnuvince [~vince@64.235.202.218] has joined #go-nuts
20:10 -!- timmcd [~Timothy@174-23-142-201.slkc.qwest.net] has quit [Quit: timmcd]
20:12 < plexdev> http://is.gd/e0TqH by [Russ Cox] in go/test/ -- test/run:
diff old new
20:12 < plexdev> http://is.gd/e0TqO by [Kai Backman] in go/src/cmd/gotest/
-- arm: remove old qemu dependency from gotest
20:12 < plexdev> http://is.gd/e0Tr4 by [Peter Mundy] in 2 subdirs of
go/src/pkg/ -- os: Null device
20:12 < plexdev> http://is.gd/e0Trj by [Russ Cox] in go/ -- CONTRIBUTORS:
Rietveld alias for brad@danga.com
20:12 < plexdev> http://is.gd/e0Trw by [Kai Backman] in go/test/ --
bikeshed: only output bug when we have a regression
20:18 -!- nickaugust [~nick@114.232.121.70.cfl.res.rr.com] has quit [Quit: WeeChat
0.3.2]
20:24 -!- iant [~iant@74.125.121.49] has joined #go-nuts
20:24 -!- mode/#go-nuts [+v iant] by ChanServ
20:32 < exch> poop.  I can't seem to recreate it in a fresh cgo project.
Passing invalid string pointers consistently yields a panic as it should, but they
are all caught by recover()
20:35 < skelterjohn> what if you copy the gibberish that you're using in the
original example exactly?
20:35 < exch> i'll give that a try
20:36 -!- micahjohnston [~Adium@174-23-81-247.slkc.qwest.net] has joined #go-nuts
20:37 < micahjohnston> can you have multiple dispatch in go, like func
(self1 Type1, self2 Type2) f() {}
20:38 < skelterjohn> don't think so
20:38 < micahjohnston> :(
20:38 < cbeck> I don't believe so
20:38 < skelterjohn> easy to test =p
20:39 -!- timmcd [~timmcd@174-23-142-201.slkc.qwest.net] has joined #go-nuts
20:39 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving]
20:40 < timmcd> Hey
20:40 < timmcd> A friend posed a nice question
20:40 < timmcd> Possible?
20:40 < timmcd> func (item1 *ItemType, item2 *SecondItemType) DoThis(...)
{...}
20:40 < timmcd> so then, you could do...  item1, item2.DoThis()
20:41 < timmcd> or, would it jsut enable you to pass either an ItemType or a
SecondItemType?
20:41 < timmcd> itemType.DoThis, and itemType2.DoThis?
20:42 < timmcd> xD
20:43 < cbeck> timmcd: I think your friend was a bit faster on the draw
20:43 < micahjohnston> lol
20:43 < skelterjohn> haha
20:43 < timmcd> ...  xD
20:43 < timmcd> Dangit!  :(
20:43 < timmcd> Anyone willing to repeat the answer?  *glares at micah*
20:43 < skelterjohn> "no"
20:43 < timmcd> lol ok
20:43 < skelterjohn> :)
20:44 < timmcd> ty
20:44 < skelterjohn> you're working on a go mud, right?
20:44 < skelterjohn> sounds like fun
20:44 < skelterjohn> i used to do a lot of that stuff in the 90s
20:44 < timmcd> a lib/server for now.  We'll make it available (it is now
actually >_>)
20:44 < timmcd> Then we plan on building a mud on top of it xd
20:45 < timmcd> skelterjohn: We are just abuot nowhere at the moment, but a
lot of planning is goign on.  You can check out
http://github.com/guildofkiteninjas/GoMud
20:45 < skelterjohn> if you ever want a consult, i like that sort of thing.
but i don't think i could devote serious time
20:45 < timmcd> because, as everyone knwos, kite ninjas dominate.
20:45 < timmcd> Awesome.
20:45 < timmcd> We
20:45 < timmcd> We will do nothing but hassle you.
20:45 < skelterjohn> ew a mud that uses color
20:46 < timmcd> In the end, it will be optional.
20:46 < skelterjohn> what does it say about me if most of my MUDding was
done from a mac SE with a B&W display?
20:46 -!- saschpe [~saschpe@mgdb-4d0cfab9.pool.mediaWays.net] has quit [Read
error: Connection reset by peer]
20:46 < timmcd> hehe
20:46 < micahjohnston> it'll just be for like coloring the hp red and stuff
20:46 < timmcd> *noggles*
20:47 < skelterjohn> tacky ;)
20:47 < timmcd> xD
20:47 < timmcd> We've decided to drop lua in favor of just using YAML.
Simpler, iop
20:47 < timmcd> that was s'posed to be ioo
20:47 < timmcd> silly teeny keyboard
20:48 < skelterjohn> what is lua/YAML to be used for?
20:48 < micahjohnston> storing content
20:48 < timmcd> Well, we wanted a quick, during runtime way of generating
simple content
20:48 < timmcd> Such as rooms, items, quests, etc.
20:48 < micahjohnston> like the rooms and mob types and stuff
20:48 < timmcd> plus data storage
20:48 < timmcd> During runtime, you'll be able to modify or create a new
yaml, and in-mud as an admin character of some sort
20:49 < timmcd> be able to load in that yaml and have it be all set up and
in game
20:49 < skelterjohn> so people are going to type out YAML code?
20:49 < timmcd> wihtout having to recomple for that one bit of text
20:49 < timmcd> Not a general user
20:49 < skelterjohn> i remember area building being semi-interactive
20:49 < ghiu> how can i declare a map in var () and then init (via make) in
init() ?
20:49 < timmcd> Yes, we
20:49 < timmcd> We wil have OLC (OnLine Creation) as well
20:49 < skelterjohn> ghiu: could you rephrase?
20:49 < skelterjohn> OLC, that was the term i couldn't remember
20:49 < timmcd> But sometimes its nice to be able to develop offlien
20:49 < timmcd> hehe
20:50 < ghiu> i have Sessions map[string]SessionType
20:50 < ghiu> in my var () declarations
20:50 < ghiu> i cannot access it untill it's initialized
20:50 < ghiu> via make, i suppose
20:50 < ghiu> and i want to initialize it in init() function
20:50 < timmcd> g2g for a bit.  We WILL be in touch, skelterjohn.  ;)
20:50 < ghiu> only it says it is already declared
20:51 -!- timmcd [~timmcd@174-23-142-201.slkc.qwest.net] has quit [Quit: User
disconnected]
20:51 < skelterjohn> you probably used ":=", ghiu
20:51 < ghiu> gotcha
20:51 < ghiu> = is the solution
20:51 < ghiu> :)
20:51 < ghiu> tnx
20:51 < skelterjohn> yes
20:51 < skelterjohn> np
20:53 < ghiu> skelterjohn: and if i declare it just like
make(map[string]string)
20:53 < ghiu> without specifyng the size
20:53 -!- artefon [~thiago@dhcp39.usuarios.dcc.ufmg.br] has quit [Quit: bye]
20:53 < ghiu> can i access it like myarray["key"] = value?
20:53 < skelterjohn> can you specify the size of a map in make?
20:54 < ghiu> or is it better to use a vector?
20:54 < skelterjohn> if you can, it's only for under-the-hood stuff
20:54 < skelterjohn> ghiu: really depends on what you're doing
20:54 < skelterjohn> if you initialize a map using make, like you said, then
you can use it later in the way you specified, yeah
20:55 < ghiu> hmmm, i get a nil pointer...
20:56 < skelterjohn> pastebin.com
20:58 -!- nickaugust [~nick@rrcs-97-79-25-103.se.biz.rr.com] has joined #go-nuts
20:58 -!- tvw [~tv@e176012095.adsl.alicedsl.de] has joined #go-nuts
20:58 < ghiu> oh, wait, i got it
20:58 < ghiu> it is a map of maps
20:58 < ghiu> and the submap was not initialized either
20:58 < ghiu> thanks for pointing me to the right direction
21:00 -!- aho [~nya@fuld-4d00d1b8.pool.mediaWays.net] has joined #go-nuts
21:03 < skelterjohn> np
21:08 -!- micahjohnston [~Adium@174-23-81-247.slkc.qwest.net] has quit [Quit:
Leaving.]
21:08 < nickaugust> nsf: do you have that keyboard example working in go?
21:11 -!- marsu [~marsu@165.108.202-77.rev.gaoland.net] has quit [Quit: Leaving]
21:15 < ghiu> i cant get casting to work how i expect.  if i have an
interface {} called i that i know is a int, i expect "var ii int = i(.int)"
21:16 < ghiu> but i get a "syntax error: unexpected ., expecting )" error
from the compiler
21:16 < ghiu> any help?
21:16 < skelterjohn> i.(int)
21:16 < skelterjohn> not i(.int)
21:17 < ghiu> oh, thanks.  isn't this covered in the documentation on
golang?
21:18 < skelterjohn> it is
21:18 < skelterjohn> but it was easier for me to tell you the answer than to
find a link to the page that tells you the answer
21:21 -!- Venom_X [~pjacobs@71.21.124.111] has quit [Ping timeout: 276 seconds]
21:26 < vrtical> ghiu: if you look at the go language spec, the sections on
type assertions, and also type switches, will be useful to you.
21:27 < ZincSaucier> napsy: apt-get install lexx, reinstall config, and
follow the link I'm about to dig up
21:27 < ZincSaucier> wow, ignore that
21:28 -!- iant [~iant@74.125.121.49] has quit [Ping timeout: 246 seconds]
21:29 -!- Project_2501 [~Marvin@82.84.72.65] has quit [Quit: E se abbasso questa
leva che succ...]
21:35 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
21:37 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit:
skelterjohn]
21:37 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
21:42 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined
#go-nuts
21:45 < plexdev> http://is.gd/e11ez by [Tarmigan Casebolt] in
go/src/pkg/websocket/ -- websocket: correct challenge response
21:46 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
21:52 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
21:53 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has joined
#go-nuts
21:55 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
21:56 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:04 -!- nickaugust [~nick@rrcs-97-79-25-103.se.biz.rr.com] has quit [Quit:
WeeChat 0.3.2]
22:10 -!- artefon [~thiago@189.107.227.111] has joined #go-nuts
22:12 -!- rlab_ [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
22:14 -!- tvw [~tv@e176012095.adsl.alicedsl.de] has quit [Remote host closed the
connection]
22:14 -!- ghiu [~gu@93-32-156-171.ip34.fastwebnet.it] has quit [Quit: ghiu]
22:15 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has quit [Quit:
KVIrc Equilibrium 4.1.0, revision: 4632, sources date: 20100519, built on:
2010-07-09 07:13:47 UTC http://www.kvirc.net/]
22:23 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit
[Quit: carllerche]
22:27 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
22:29 -!- ghiu [~gu@93-32-156-171.ip34.fastwebnet.it] has joined #go-nuts
22:29 -!- ghiu [~gu@93-32-156-171.ip34.fastwebnet.it] has quit [Client Quit]
22:30 -!- kanru [~kanru@118-168-239-91.dynamic.hinet.net] has joined #go-nuts
22:47 < plexdev> http://is.gd/e16lz by [Rob Pike] in 6 subdirs of go/ -- os:
change the type of permissions argument for Open etc.  to uint32.
23:18 -!- gent00r [~r00t@gw.invnetworks.com] has quit [Remote host closed the
connection]
23:27 -!- Pete_27 [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts
23:27 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Read
error: Connection reset by peer]
23:41 -!- photron [~photron@port-92-201-38-67.dynamic.qsc.de] has quit [Ping
timeout: 258 seconds]
23:45 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
23:45 -!- Pete_27 [~noname@110-174-103-31.static.tpgi.com.au] has quit [Read
error: Connection reset by peer]
23:45 -!- 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]]
23:49 < plexdev> http://is.gd/e1bsj by [Nigel Tao] in go/src/pkg/bufio/ --
bufio: introduce Peek.
23:55 -!- angasule [c80571ea@gateway/web/freenode/ip.200.5.113.234] has quit
[Quit: Page closed]
--- Log closed Wed Aug 04 00:00:05 2010