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

--- Log opened Sat Mar 13 00:00:25 2010
00:01 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 276 seconds]
00:01 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
00:05 -!- mikedee_ [~quassel@91.108.121.30] has joined #go-nuts
00:05 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Excess Flood]
00:05 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
00:09 -!- mikedee [~quassel@91.108.64.240] has quit [Ping timeout: 268 seconds]
00:11 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: (
www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )]
00:12 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined
#go-nuts
00:14 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping
timeout: 264 seconds]
00:16 -!- visof [~visof@41.238.232.240] has joined #go-nuts
00:20 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 276 seconds]
00:23 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
00:25 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
00:35 -!- nutate [~rseymour@cacsag4.usc.edu] has quit [Quit: I'm outta heee-eere]
00:36 -!- g0bl1n [~anonymous@a213-22-200-76.cpe.netcabo.pt] has quit [Quit:
g0bl1n]
00:36 -!- damn3d [damn3d@unaffiliated/morpheus/x-0931003] has quit [Ping timeout:
260 seconds]
00:38 -!- triplez [~triplez@cm230.kappa1.maxonline.com.sg] has quit [Quit:
triplez]
00:39 -!- mssm [~mssm@ip-95-221-127-32.bb.netbynet.ru] has quit [Read error:
Operation timed out]
00:39 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
00:39 -!- gnuvince [~vince@72.0.219.106] has quit [Ping timeout: 256 seconds]
00:44 -!- Sapient [~patrickp@wesnoth/developer/sapient] has left #go-nuts []
00:49 -!- meatmanek [~meatmanek@207.228.237.150] has joined #go-nuts
00:51 -!- michael| [~maikeru@unaffiliated/maikeru/x-7708887] has quit [Ping
timeout: 276 seconds]
00:51 -!- ak2 [~ak2@soenat3.cse.ucsc.edu] has joined #go-nuts
00:52 -!- gnuvince [~vince@64.235.199.76] has joined #go-nuts
00:54 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 265 seconds]
00:55 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
01:07 -!- michael| [~maikeru@unaffiliated/maikeru/x-7708887] has joined #go-nuts
01:08 -!- alkavan__ [~alkavan@77.126.142.151] has quit [Read error: Connection
timed out]
01:08 -!- alkavan__ [~alkavan@77.126.142.151] has joined #go-nuts
01:13 -!- michael| [~maikeru@unaffiliated/maikeru/x-7708887] has quit [Ping
timeout: 265 seconds]
01:15 -!- Null-A [~Null-A@129-97-224-151.uwaterloo.ca] has joined #go-nuts
01:16 < meatmanek> so I'm having an issue with gobuild
01:16 < meatmanek> "ERROR: No files found for package trie/trie."
01:17 -!- alkavan__ [~alkavan@77.126.142.151] has quit [Ping timeout: 248 seconds]
01:17 < meatmanek> and of course I don't see anything that links against
"trie/trie"
01:18 < meatmanek> hah just kidding.
01:18 -!- franksalim [~frank@adsl-75-61-84-181.dsl.pltn13.sbcglobal.net] has
joined #go-nuts
01:18 -!- alkavan__ [~alkavan@77.127.240.175] has joined #go-nuts
01:19 < meatmanek> okay back to my older error
01:20 -!- Null-A [~Null-A@129-97-224-151.uwaterloo.ca] has quit [Quit: Null-A]
01:21 -!- ak2 [~ak2@soenat3.cse.ucsc.edu] has quit [Quit: ak2]
01:23 -!- ericvh [~ericvh@2002:467b:802c:0:223:6cff:fe93:c616] has joined #go-nuts
01:23 -!- visof [~visof@41.238.232.240] has quit [Remote host closed the
connection]
01:23 -!- ericvh [~ericvh@2002:467b:802c:0:223:6cff:fe93:c616] has left #go-nuts
[]
01:23 -!- michael| [~maikeru@unaffiliated/maikeru/x-7708887] has joined #go-nuts
01:24 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 240
seconds]
01:27 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
01:28 -!- ak2 [~ak2@soenat3.cse.ucsc.edu] has joined #go-nuts
01:32 -!- meatmanek [~meatmanek@207.228.237.150] has quit [Quit: This computer has
gone to sleep]
01:37 < plexdev> http://is.gd/apMgA by [Russ Cox] in 4 subdirs of
go/src/pkg/ -- hash/crc64: new package implementing 64-bit CRC
01:43 -!- yatoo [~marcus@host86-156-158-180.range86-156.btcentralplus.com] has
quit [Ping timeout: 276 seconds]
01:46 -!- gisikw [~gisikw@137.28.186.120] has quit [Quit: gisikw]
01:46 -!- syd_ [~sydcogs@180.92.192.92] has joined #go-nuts
01:58 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Quit: ChatZilla 0.9.85
[Firefox 3.5.8/20100202165920]]
02:01 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit
[Quit: carllerche]
02:04 -!- Xeon [~chatzilla@118.126.12.54] has quit [Ping timeout: 264 seconds]
02:09 -!- gnuvince [~vince@64.235.199.76] has quit [Quit: What the fruit is goin'
on here!?]
02:10 -!- gnuvince [~vince@64.235.199.76] has joined #go-nuts
02:20 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined
#go-nuts
02:24 < plexdev> http://is.gd/aq2oR by [Robert Griesemer] in 2 subdirs of
go/ -- godoc: support for multiple packages in a directory
02:36 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
02:44 -!- alkavan__ [~alkavan@77.127.240.175] has quit [Ping timeout: 248 seconds]
02:45 -!- alkavan__ [~alkavan@77.127.70.88] has joined #go-nuts
02:45 -!- ak2 [~ak2@soenat3.cse.ucsc.edu] has quit [Quit: ak2]
02:57 -!- nettok [~netto@200.119.150.16] has joined #go-nuts
03:01 -!- meatmanek [~meatmanek@c-76-21-205-249.hsd1.va.comcast.net] has joined
#go-nuts
03:04 -!- nocturnal [~nocturnal@83.209.24.174] has quit [Ping timeout: 248
seconds]
03:14 < hstimer> so how do i do a multi-line interpreted string literal?
auto ; (which I wanted) is kind of making things difficult
03:17 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 268 seconds]
03:17 < kmeyer> hstimer: `
03:18 < hstimer> i need interpreted, not non-interpreted
03:18 < hstimer> but thanks anyway :-)
03:19 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
03:24 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout:
615 seconds]
03:25 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 245 seconds]
03:29 < kmeyer> ahh
03:30 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
03:32 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
03:33 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
03:36 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 268 seconds]
03:37 -!- nettok_ [~netto@200.119.150.16] has joined #go-nuts
03:40 -!- nettok [~netto@200.119.150.16] has quit [Ping timeout: 268 seconds]
03:42 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 260 seconds]
03:45 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 276 seconds]
03:49 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
03:50 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined
#go-nuts
03:51 -!- nettok__ [~netto@200.119.150.16] has joined #go-nuts
03:53 -!- jwillia3_ [~jwillia3@71.23.157.238] has joined #go-nuts
03:54 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 258 seconds]
03:54 -!- nettok_ [~netto@200.119.150.16] has quit [Ping timeout: 276 seconds]
03:55 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Quit: Leaving.]
03:55 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Quit: Ex-Chat]
03:56 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #go-nuts
03:56 -!- Chryson [~Chryson@c-71-60-250-12.hsd1.pa.comcast.net] has quit [Quit:
Leaving]
03:57 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 246 seconds]
03:58 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined
#go-nuts
04:03 -!- alkavan__ [~alkavan@77.127.70.88] has quit [Read error: Connection reset
by peer]
04:03 -!- alkavan__ [~alkavan@87.68.55.210.cable.012.net.il] has joined #go-nuts
04:04 < hstimer> I think 6g has an interpreted string bug
04:05 < hstimer> I change just any one character in the string and it goes
away
04:05 -!- nettok_ [~netto@200.119.150.16] has joined #go-nuts
04:05 < hstimer> If I leave the string alone I get n [invalid string] error
at runtime
04:08 -!- nettok__ [~netto@200.119.150.16] has quit [Ping timeout: 260 seconds]
04:08 -!- nettok_ [~netto@200.119.150.16] has quit [Client Quit]
04:09 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
04:09 -!- nettok [~netto@200.119.150.16] has joined #go-nuts
04:09 < hstimer> hmmm.....  if switch from print() to fmt.Print() no runtime
error
04:10 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 264 seconds]
04:11 -!- rogue780 [~rogue780@c-68-34-234-213.hsd1.md.comcast.net] has joined
#go-nuts
04:11 -!- carllerche [~carllerch@208.87.61.160] has joined #go-nuts
04:12 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined
#go-nuts
04:16 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 268 seconds]
04:18 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has quit []
04:18 -!- nettok [~netto@200.119.150.16] has quit [Ping timeout: 265 seconds]
04:19 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 264 seconds]
04:22 -!- shawn_ [~shawn@208-78-98-92.slicehost.net] has quit [Quit: Changing
server]
04:22 -!- shawn_ [~shawn@208-78-98-92.slicehost.net] has joined #go-nuts
04:23 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined
#go-nuts
04:31 -!- ericvh [~ericvh@cpe-70-123-128-44.austin.res.rr.com] has joined #go-nuts
04:31 -!- ericvh [~ericvh@cpe-70-123-128-44.austin.res.rr.com] has left #go-nuts
[]
04:50 -!- carllerche [~carllerch@208.87.61.160] has quit [Quit: carllerche]
04:51 -!- meatmanek [~meatmanek@c-76-21-205-249.hsd1.va.comcast.net] has quit
[Quit: This computer has gone to sleep]
04:53 -!- carllerche [~carllerch@208.87.61.160] has joined #go-nuts
04:59 -!- alkavan__ [~alkavan@87.68.55.210.cable.012.net.il] has quit [Read error:
Connection reset by peer]
05:00 -!- alkavan__ [~alkavan@IGLD-80-230-208-19.inter.net.il] has joined #go-nuts
05:01 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 258 seconds]
05:02 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit
[Quit: rhelmer]
05:02 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
05:03 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Client Quit]
05:05 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
05:10 -!- Garen [~garen.p@75.87.255.36] has quit []
05:12 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
05:14 -!- carllerche [~carllerch@208.87.61.160] has quit [Quit: carllerche]
05:16 -!- meatmanek [~meatmanek@c-76-21-205-249.hsd1.va.comcast.net] has joined
#go-nuts
05:17 -!- carllerche [~carllerch@208.87.61.160] has joined #go-nuts
05:19 -!- alkavan__ [~alkavan@IGLD-80-230-208-19.inter.net.il] has quit [Read
error: Connection reset by peer]
05:19 -!- alkavan__ [~alkavan@77.126.99.162] has joined #go-nuts
05:20 -!- ak2 [~ak2@c-24-6-88-154.hsd1.ca.comcast.net] has joined #go-nuts
05:26 -!- jwillia3_ [~jwillia3@71.23.157.238] has joined #go-nuts
05:28 -!- amacleod [amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined
#go-nuts
05:30 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 264 seconds]
05:31 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit
[Ping timeout: 252 seconds]
05:34 -!- meatmanek [~meatmanek@c-76-21-205-249.hsd1.va.comcast.net] has quit
[Quit: This computer has gone to sleep]
05:40 -!- alkavan__ [~alkavan@77.126.99.162] has quit [Read error: Connection
reset by peer]
05:40 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has quit [Quit:
Leaving]
05:40 -!- alkavan__ [~alkavan@87.68.37.119.cable.012.net.il] has joined #go-nuts
05:44 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
05:52 -!- alkavan__ [~alkavan@87.68.37.119.cable.012.net.il] has quit [Read error:
Connection reset by peer]
05:53 -!- alkavan__ [~alkavan@87.68.37.60.cable.012.net.il] has joined #go-nuts
05:55 -!- rogue780 [~rogue780@c-68-34-234-213.hsd1.md.comcast.net] has quit [Ping
timeout: 265 seconds]
06:06 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has joined #go-nuts
06:11 -!- alkavan__ [~alkavan@87.68.37.60.cable.012.net.il] has quit [Read error:
Connection reset by peer]
06:12 -!- alkavan__ [~alkavan@87.68.40.138.cable.012.net.il] has joined #go-nuts
06:14 -!- nocturnal [~nocturnal@83.209.24.174] has joined #go-nuts
06:21 -!- alkavan__ [~alkavan@87.68.40.138.cable.012.net.il] has quit [Read error:
Connection reset by peer]
06:21 -!- alkavan__ [~alkavan@77.124.104.169] has joined #go-nuts
06:22 -!- idea_squirrel [~ct2rips@77-21-31-117-dynip.superkabel.de] has joined
#go-nuts
06:26 -!- amacleod [amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Quit:
Bye Bye]
06:29 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
06:33 -!- TR2N [email@89.180.167.168] has left #go-nuts []
06:36 -!- ak2 [~ak2@c-24-6-88-154.hsd1.ca.comcast.net] has quit [Quit: ak2]
06:37 -!- carllerche [~carllerch@208.87.61.160] has quit [Quit: carllerche]
06:39 -!- carllerche [~carllerch@208.87.61.160] has joined #go-nuts
06:53 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
06:59 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
07:02 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 276 seconds]
07:03 -!- ak2 [~ak2@soenat3.cse.ucsc.edu] has joined #go-nuts
07:04 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined
#go-nuts
07:07 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 258 seconds]
07:07 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Read error: No
route to host]
07:08 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
07:13 -!- anothernick [~killerchi@port-92-194-105-134.dynamic.qsc.de] has joined
#go-nuts
07:23 -!- ak2 [~ak2@soenat3.cse.ucsc.edu] has quit [Ping timeout: 248 seconds]
07:23 -!- carllerche [~carllerch@208.87.61.160] has quit [Quit: carllerche]
07:25 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has joined #go-nuts
07:29 -!- ak2 [~ak2@nat/cisco/x-yurrxrrepcnrjflr] has joined #go-nuts
07:31 -!- alkavan__ [~alkavan@77.124.104.169] has quit [Read error: Connection
timed out]
07:32 -!- alkavan__ [~alkavan@77.124.104.169] has joined #go-nuts
07:36 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has quit [Quit: adu]
07:37 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]]
07:39 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has joined #go-nuts
07:42 -!- Project_2501 [~Marvin@82.84.69.99] has joined #go-nuts
07:44 -!- idea_squirrel [~ct2rips@77-21-31-117-dynip.superkabel.de] has quit
[Quit: what would a pirate do?]
07:45 -!- idea_squirrel [~ct2rips@77-21-31-117-dynip.superkabel.de] has joined
#go-nuts
07:45 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
07:55 -!- carllerche [~carllerch@208.87.61.160] has joined #go-nuts
07:58 -!- carllerche [~carllerch@208.87.61.160] has quit [Client Quit]
08:01 -!- OpenSpace [~ja@93.87.246.18] has joined #go-nuts
08:04 -!- Kyle|Mr_K_13 [~Kyle@122-148-63-115.static.dsl.dodo.com.au] has quit []
08:18 -!- tcoppi
[~nuclear@57c3ed63-1294-45bd-a8e8-cdcc07cfa16f.static.grokthis.net] has quit [Ping
timeout: 276 seconds]
08:20 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Quit: ChatZilla 0.9.85
[Firefox 3.5.8/20100202165920]]
08:21 -!- tcoppi
[~nuclear@57c3ed63-1294-45bd-a8e8-cdcc07cfa16f.static.grokthis.net] has joined
#go-nuts
08:33 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has quit [Quit: adu]
08:46 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 265 seconds]
08:48 -!- wuehlmaus [~wuehlmaus@p4FCC64E2.dip.t-dialin.net] has joined #go-nuts
08:49 -!- kssreeram [~kssreeram@122.165.6.245] has joined #go-nuts
08:56 -!- tcoppi
[~nuclear@57c3ed63-1294-45bd-a8e8-cdcc07cfa16f.static.grokthis.net] has quit [Ping
timeout: 276 seconds]
09:05 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
09:05 -!- alkavan__ [~alkavan@77.124.104.169] has quit [Read error: Connection
reset by peer]
09:06 -!- tcoppi [~nuclear@206.251.36.97] has joined #go-nuts
09:07 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
09:08 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
09:10 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Excess Flood]
09:15 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
09:15 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Excess Flood]
09:23 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
09:25 < nocturnal> are the variables defined within an interface available
locally to all functions declared in the same interface?
09:27 < nocturnal> like type foo interface { var bar bool; SetBar() bool }
and func SetBar() bool { bar = true } or should the function call foo.bar ?
09:27 -!- wrtp [~rog@84.13.125.215] has joined #go-nuts
09:28 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
09:28 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
connection]
09:31 < nocturnal> oh nevermind i just looked at the net.go source to
understand more about how interfaces work
09:33 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has quit [Remote
host closed the connection]
09:33 -!- hstimer [~hstimer@c-98-234-25-125.hsd1.ca.comcast.net] has joined
#go-nuts
09:34 -!- hstimer_ [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined
#go-nuts
09:34 -!- hstimer [~hstimer@c-98-234-25-125.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
09:35 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 265 seconds]
09:37 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has quit [Remote
host closed the connection]
09:37 -!- zab [~zab@60-240-60-119.tpgi.com.au] has quit [Quit: zab]
09:37 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined
#go-nuts
09:38 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has quit [Remote
host closed the connection]
09:38 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined
#go-nuts
09:39 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has quit [Remote
host closed the connection]
09:40 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined
#go-nuts
09:49 -!- Kyle|Mr_K_13 [~Kyle@122-148-63-115.static.dsl.dodo.com.au] has joined
#go-nuts
09:51 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Ping timeout: 268
seconds]
09:52 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #go-nuts
10:02 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
10:13 -!- mertimor [~mertimor@p578ED1C3.dip.t-dialin.net] has joined #go-nuts
10:13 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:b019:b899:5595:e2bb] has joined
#go-nuts
10:22 -!- noam [~k4jd095b@87.70.183.61] has quit [Read error: Connection reset by
peer]
10:22 -!- idea_squirrel [~ct2rips@77-21-31-117-dynip.superkabel.de] has quit
[Quit: what would a pirate do?]
10:25 -!- noam [~k4jd095b@87.70.183.61] has joined #go-nuts
10:31 -!- idea_squirrel [~ct2rips@77-21-31-117-dynip.superkabel.de] has joined
#go-nuts
10:40 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
10:41 -!- ak2 [~ak2@nat/cisco/x-yurrxrrepcnrjflr] has quit [Quit: ak2]
10:44 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Ping timeout:
246 seconds]
10:47 -!- ak2 [~ak2@soenat3.cse.ucsc.edu] has joined #go-nuts
10:53 -!- drry [~drry@unaffiliated/drry] has quit [Read error: Connection reset by
peer]
10:53 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
10:53 -!- ak2 [~ak2@soenat3.cse.ucsc.edu] has quit [Quit: ak2]
10:54 -!- suiside [~suiside@unaffiliated/suiside] has quit [Quit: Lost terminal]
10:55 -!- suiside [~suiside@unaffiliated/suiside] has joined #go-nuts
11:01 -!- OpenSpace [~ja@93.87.246.18] has quit [Ping timeout: 276 seconds]
11:13 -!- Dustyco [~Dustyco.n@adsl-71-132-139-193.dsl.pltn13.pacbell.net] has
joined #go-nuts
11:17 -!- OpenSpace [~ja@79.101.222.245] has joined #go-nuts
11:17 -!- Dustyco [~Dustyco.n@adsl-71-132-139-193.dsl.pltn13.pacbell.net] has left
#go-nuts []
11:19 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has quit [Ping
timeout: 268 seconds]
11:21 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 252 seconds]
11:33 -!- pjm0616 [~user@61.250.113.98] has quit [Quit: sapzil]
11:56 -!- yatoo [~marcus@host86-156-158-180.range86-156.btcentralplus.com] has
joined #go-nuts
12:02 -!- jophish [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts
12:14 -!- wrtp [~rog@84.13.125.215] has quit [Quit: wrtp]
12:15 < bortzmeyer> I need to pass configuration info from the main program
to another routine.  I hesitate between a map (indexed by config items such as
"debug-level") or a struct.
12:15 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has quit [Ping
timeout: 245 seconds]
12:17 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has joined #go-nuts
12:20 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
12:25 < bortzmeyer> The problem with maps is that there is only one type on
the right-hand side.  But some config variables are integers, some strings.
12:29 < Kashia> map[string]interface{}
12:31 < bortzmeyer> Kashia: OK, good idea.  I always forget that interface{}
can be used to say "any type"
12:31 < bortzmeyer> The problem with structs is that they are more rigid.
Every field needs a value and creating/deleting a field changes the API.  I think
I'll try maps with Kashia's idea.
12:32 < Kashia> well, it only changes the api side on the setter-side (not
user side) if you use reflection
12:32 < JBeshir> bortzmeyer: Unless you lowercase the field and keep it in
its own package.
12:34 -!- pdusen [~pdusen@crob4-55.flint.umich.edu] has joined #go-nuts
12:38 < bortzmeyer> JBeshir: sorry, did not get it.  Another try?
12:39 < bortzmeyer> Kashia:I am still a beginner, I forget reflection, too.
Thanks.
12:40 < JBeshir> bortzmeyer: I don't believe that a field is accessible
outside the current package if it is lowercase.
12:41 < bortzmeyer> JBeshir: Even with reflect's "mystructptr.FieldByName"?
12:41 < Kashia> I think you can read but not set.
12:42 < JBeshir> bortzmeyer: I don't know about using reflection, but in
that case I think you'd be deliberately sidestepping the supported API anyway.
12:42 < bortzmeyer> Well, nice discussion, I hesitate now more than I did at
the beginning :-)
12:42 < Kashia> lol
12:42 < bortzmeyer> Thanks to all, I'm going to test both solutions, now.
12:42 -!- pjm0616 [~user@61.250.113.98] has joined #go-nuts
12:42 < Kashia> well, the whole point here is information sharing, not
hiding
12:43 < Kashia> now it's just a matter, on how rigid/safe/open/unsafe the
system should be
12:43 -!- XenoPhoenix
[aa248d95ba@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com] has quit [Quit:
Changing server]
12:47 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Read error:
Operation timed out]
12:48 -!- XenoPhoenix
[dfb22abb08@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com] has joined #go-nuts
12:57 -!- Kashia [~Kashia@port-92-200-101-16.dynamic.qsc.de] has quit [Quit: This
computer has gone to sleep]
12:57 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
12:59 -!- souffledev [~soufflede@110-174-144-249.static.tpgi.com.au] has joined
#go-nuts
13:02 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has joined #go-nuts
13:04 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #go-nuts
13:05 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
13:09 -!- Fraeon_ [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
13:10 -!- Fraeon [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [Ping
timeout: 246 seconds]
13:22 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has quit [Remote host
closed the connection]
13:24 -!- nocturna1 [~nocturnal@83.209.24.174] has joined #go-nuts
13:24 -!- nocturnal [~nocturnal@83.209.24.174] has quit [Read error: Connection
reset by peer]
13:24 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 265 seconds]
13:25 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
13:26 -!- amacleod [amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined
#go-nuts
13:27 -!- souffledev [~soufflede@110-174-144-249.static.tpgi.com.au] has quit
[Quit: <>]
13:30 -!- vdrab [~vdrab@cap004-149.kcn.ne.jp] has joined #go-nuts
13:40 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts
13:43 -!- tentd [jrybicki@melkki.cs.helsinki.fi] has joined #go-nuts
13:44 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving]
13:49 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has joined #go-nuts
13:57 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has quit [Remote host
closed the connection]
14:04 -!- deso [~deso@77-21-80-251-dynip.superkabel.de] has joined #go-nuts
14:05 -!- deso [~deso@77-21-80-251-dynip.superkabel.de] has quit [Client Quit]
14:07 -!- deso [~deso@77-21-80-251-dynip.superkabel.de] has joined #go-nuts
14:22 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 265 seconds]
14:24 -!- kmeyer [~konrad@fedora/kmeyer] has quit [Ping timeout: 260 seconds]
14:26 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
14:29 -!- Kashia [~Kashia@p4FEB688D.dip.t-dialin.net] has joined #go-nuts
14:32 < exch> could anyone enlighten as yo how I would access the flag
fields in this struct in Go? http://c.pastebin.com/ZGEbihJ6
14:32 < exch> specifically the fields marked with :1, :6 and :16
14:32 < exch> no idea what those things mean
14:33 < exch> the regular fields work fine it seems, except those..  cgo
complains they don't exist
14:37 < exch> apparently they are used to define the explicit layout of each
bit in an integer..  that still doesnt allow me to access them through cgo though
:(
14:43 < Kashia> pack the first 32 bits in a uint32_t and access them via
bit-ops
14:44 < Kashia> the number after the dots are the number of bits the field
has
14:45 < exch> yea I figured as much.  hmm i'll puzzle around a bit
14:45 -!- mfoemmel [~mfoemmel@chml01.drwholdings.com] has quit [Ping timeout: 245
seconds]
14:47 < Kashia> http://c.pastebin.com/GbXGXsPH like that
14:48 -!- hevalbaranov [~hevalbara@88.244.41.132] has joined #go-nuts
14:48 < exch> hmm thanks!
14:51 < manveru> Kashia: :)
14:52 < manveru> finally got bored of php?
14:52 < Kashia> bored?
14:52 < Kashia> php annoys me since years now, no bore ;)
14:52 < manveru> lol
14:52 < manveru> true that :(
14:53 < Kashia> but you didn't think I'd miss the new language on the block
;)
14:53 < manveru> awesome, now i have someone i can annoy with questions
about go :)
14:53 < Kashia> same as you :P
14:53 < Kashia> lol
14:53 < Kashia> sure sure
14:53 < manveru> heh
14:53 < manveru> yeah...  i'm a language-addict :|
14:55 < manveru> i assume if go goes into gcc, it's automatically working
fine with llvm?
14:55 < Kashia> no, go uses its own compiler
14:55 < Kashia> but there is also a gcc frontend
14:56 < manveru> afaik gcc will support go
14:56 < Kashia> well, the basic stuff works
14:56 < Kashia> but iirc the garbage collector is missing right now
14:57 < Kashia> which of course for some programs might be fatal :P
14:57 < manveru> uh oh
14:57 < manveru> http://article.gmane.org/gmane.comp.gcc.devel/111603
14:57 < manveru> this i meant
14:58 < Kashia> ah, well that sounds like the official side
14:58 < Kashia> but that gcc frontend existed for a while now
14:58 < manveru> i'll learn go by writing oxid in it
14:59 < Kashia> ah :)
14:59 < manveru> nothing better to learn a language than to write a language
in it :)
14:59 < Kashia> that was that small language, wasn't it?
14:59 < Kashia> aye
15:00 < Kashia> I like Gos strictness about types...
15:00 < manveru> yeah
15:01 < manveru> i hate types in C :P
15:01 < Kashia> I think you'll like the interface type..
15:02 < manveru> how is testing done in go?
15:03 < Kashia> there is a testing module
15:03 -!- supertr4mp [~hevalbara@88.243.190.51] has joined #go-nuts
15:03 < Kashia> one write a bunch of: func TestCoffee(t *testing.T) {}
15:04 < Kashia> it's simple, nothing fancy
15:05 -!- hevalbaranov [~hevalbara@88.244.41.132] has quit [Ping timeout: 245
seconds]
15:09 < manveru> you got a rakefile for building?
15:09 < Kashia> no, but there are standard makefiles
15:10 < Kashia> http://pastie.org/867916
15:12 < Kashia> one copies those everytime one makes a new package/command
15:17 < manveru> Kashia: http://pastr.it/16707
15:18 < Kashia> ah yes, that is the easy part :P
15:18 < manveru> heh
15:18 < manveru> what's harder?
15:18 -!- Fraeon_ [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
15:18 < Kashia> the provided makefile also does testing and coverage and cgo
(go - c interface stuff)
15:19 < manveru> hmm
15:20 -!- Fraeon [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [Ping
timeout: 245 seconds]
15:20 < manveru> don't have src...
15:20 < manveru> guess nobody used that yet
15:20 < manveru> will update pkgbuild in a bit, rake does well enough for
now
15:21 < Kashia> src?  you mean those makefiles are missing from your
package?
15:22 < manveru> yeah
15:22 < Kashia> ...  that's hilarious :P
15:22 < manveru> heh
15:22 < manveru> i made the original version, so i shouldn't complain
15:22 < manveru> been maintained by someone else since3
15:22 < Kashia> ah *g*
15:25 -!- it_diver [~it_diver@dslb-088-068-231-222.pools.arcor-ip.net] has joined
#go-nuts
15:26 -!- meatmanek [~meatmanek@c-76-21-205-249.hsd1.va.comcast.net] has joined
#go-nuts
15:27 -!- meatmanek [~meatmanek@c-76-21-205-249.hsd1.va.comcast.net] has quit
[Client Quit]
15:31 -!- meatmanek [~meatmanek@c-76-21-205-249.hsd1.va.comcast.net] has joined
#go-nuts
15:33 -!- Nikopol [nikopol@unaffiliated/nemesis128] has left #go-nuts ["say no to
eugenics"]
15:35 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts
15:41 -!- freak131 [~584d2fc1@gateway/web/freenode/x-wrvwouuhralvdvkl] has joined
#go-nuts
15:42 -!- cbeck [~cbeck@c-67-170-181-181.hsd1.or.comcast.net] has quit [Ping
timeout: 260 seconds]
15:43 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Ping timeout: 260
seconds]
15:43 -!- cbeck [~cbeck@c-67-170-181-181.hsd1.or.comcast.net] has joined #go-nuts
15:45 -!- tcoppi [~nuclear@206.251.36.97] has quit [Ping timeout: 246 seconds]
15:47 -!- Fraeon_ [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
15:48 -!- Fraeon [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [Ping
timeout: 246 seconds]
15:49 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Read error:
Operation timed out]
15:50 -!- rogue780 [~rogue780@c-68-34-234-213.hsd1.md.comcast.net] has joined
#go-nuts
15:51 -!- freak131 [~584d2fc1@gateway/web/freenode/x-wrvwouuhralvdvkl] has quit
[Quit: Page closed]
15:52 -!- freak131 [~freak131@dslb-088-077-047-193.pools.arcor-ip.net] has joined
#go-nuts
15:53 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
15:55 < manveru> Kashia: how do i call something like
http://golang.org/pkg/ebnf/#Grammar.Parse
15:56 -!- tcoppi
[~nuclear@57c3ed63-1294-45bd-a8e8-cdcc07cfa16f.static.grokthis.net] has joined
#go-nuts
15:57 -!- amacleod [amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Quit:
Bye Bye]
15:58 < manveru> ah, i think i have it
15:59 < manveru> what's a []byte...
16:00 < manveru> got that too
16:00 < Kashia> :)
16:01 < Kashia> I found the ebnf package to be...  surprisingly..
featureless :)
16:02 < manveru> heh
16:02 < manveru> and i got my first segfault :P
16:03 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
16:04 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Client Quit]
16:05 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
16:05 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #go-nuts
16:06 -!- freak131 [~freak131@dslb-088-077-047-193.pools.arcor-ip.net] has quit
[Read error: Connection reset by peer]
16:07 < manveru> so i guess it's not safe to just printf anything
16:07 < Kashia> are you using fmt.Printf() ?
16:07 < manveru> yeah
16:08 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
16:08 < Kashia> ah.
16:08 < manveru> is there anything like inspect?
16:09 < Kashia> Printf("%v") I think
16:09 < Kashia> Printf("%v", obj)
16:09 -!- meatmanek [~meatmanek@c-76-21-205-249.hsd1.va.comcast.net] has quit
[Quit: This computer has gone to sleep]
16:09 < manveru> hmm
16:09 < manveru> guess i need a p function
16:10 < manveru> can i do a format without output?
16:10 < Kashia> Sprintf
16:10 < manveru> alright :)
16:10 < manveru> and what's the equivalent of def foo(*args)
16:11 -!- smw__ [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
16:11 -!- smw_ [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit
[Quit: Konversation terminated!]
16:11 < Kashia> func foo(args ...) or foo(args ...int)
16:11 < Kashia> the former is only inspectable via reflection (it's a
struct), the latter is a []int
16:12 < manveru> ok...
16:12 < Kashia> I like how you can force the type of the variable arguments
16:12 < manveru> and is there an equivalent of enumerable?
16:12 < Kashia> not in the sense of 'grouping of integers'
16:13 < manveru> uhm
16:13 < Kashia> if you just want to generate numbers, check out iota
16:13 < manveru> no, as in iteration methods
16:13 < Kashia> ah, lol
16:13 < Kashia> too much C in my head
16:13 < manveru> each/map/inject/sort/select...
16:13 < manveru> i saw range, but it does only iteration
16:13 < Kashia> check out the exp/iterator I think
16:14 < Kashia> http://golang.org/pkg/exp/iterable/
16:14 < Kashia> iterable it was
16:14 < manveru> got it already :)
16:14 < Kashia> felt the need to correct my mistake ;)
16:14 < manveru> uh
16:14 < manveru> wordy stuff...
16:15 -!- mfoemmel [~mfoemmel@chml01.drwholdings.com] has joined #go-nuts
16:16 < manveru> what's this type interface{} thing...
16:17 < Kashia> that would be Object in Ruby
16:17 < manveru> and i can't iterate that?
16:17 < manveru> oxid.go:5: cannot range over objects (type interface { })
16:17 < Kashia> it is basically 'any type which implements the empty
interface' (which is any object)
16:17 < Kashia> an interface is a single object, no 'range'
16:18 < manveru> so (objects ...) isn't an array?
16:18 < Kashia> no, it is a struct like I said :P
16:18 < Kashia> handling a foo(arg...) is slightly ugly
16:18 -!- kmeyer [~konrad@homer23.u.washington.edu] has joined #go-nuts
16:18 -!- kmeyer [~konrad@homer23.u.washington.edu] has quit [Changing host]
16:18 -!- kmeyer [~konrad@fedora/kmeyer] has joined #go-nuts
16:20 < manveru> hm
16:20 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
16:21 < manveru> why do elements of an array have only a common type...
16:21 < manveru> i don't know what type the arguments have...  that's the
whole point of the function
16:21 < Kashia> use []interface{}
16:22 < Kashia> later you can find out what is behind the interface
16:22 < manveru> oxid.go:13: cannot use "grammar: " (type ideal string) as
type []interface { } in function argument
16:22 < manveru> oxid.go:13: cannot use grammar (type ebnf.Grammar) as type
[]interface { } in function argument
16:23 < manveru> func p(objects ...[]interface{}){
16:23 < Kashia> ah, eh, skip the []
16:23 < Kashia> then you cast: objects[0].(string)
16:24 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 252 seconds]
16:24 < Kashia> or use a switch to find out tye types: switch
objects[0].(type) { case int; case string }
16:24 < manveru> i simply map the array through sprintf and join to a string
16:24 < manveru> and output that
16:24 < manveru> at least that's the plan :)
16:25 < Kashia> ah, well that should be easier
16:25 < Kashia> doesn't this work?  func p(args ...interface{}) { str :=
fmt.Sprintf(args) }
16:25 < manveru> don't i need the %v?
16:26 -!- smw__ [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit
[Quit: Konversation terminated!]
16:26 -!- smw__ [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
16:26 < Kashia> eh, probably
16:26 -!- pdusen [~pdusen@crob4-55.flint.umich.edu] has quit [Ping timeout: 264
seconds]
16:26 -!- smw__ [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has left
#go-nuts []
16:27 -!- smw_ [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
16:27 < Kashia> hmm..  are you looping over the arguments instead of passing
them straigt into Sprintf?
16:29 < manveru> oxid.go:8: []interface { } is not iterable.Iterable
16:29 < manveru> missing Iter() <-chan interface { }
16:30 < Kashia> well, it is correct :P
16:31 < Kashia> however, you can cast a []interface{} to a vector.Vector
16:31 < manveru> it's an array...  why can't it iterate?
16:31 < Kashia> you can, but iteration is a library thing, arrays are a
language feature
16:33 -!- rogue780 [~rogue780@c-68-34-234-213.hsd1.md.comcast.net] has quit [Quit:
Leaving]
16:34 < manveru> http://golang.org/src/pkg/exp/iterable/array.go#L9
16:35 < manveru> boilerplate alarm :
16:35 < manveru> :(
16:35 -!- pdusen [~pdusen@crob4-55.flint.umich.edu] has joined #go-nuts
16:36 -!- meatmanek [~meatmanek@c-76-21-205-249.hsd1.va.comcast.net] has joined
#go-nuts
16:36 < Kashia> well, one thing in Go you can't do, is creating methods on
built in types
16:36 < Kashia> and to be honest, I'm glad, do not produce another Rails ;)
16:37 < manveru> no, i meant, it repeats the same code for all three types
16:37 < manveru> it could just share that so people could add new types
easily
16:37 < Kashia> ah, yes, it does not have Generics either
16:37 < manveru> generics?
16:37 < Kashia> C++ template
16:37 < Kashia> C++ templates*
16:37 < manveru> why would you need that?
16:38 < Kashia> to share the code?
16:38 < manveru> what are functions for, again?
16:38 < Bombe> Generics are type variables, C++ templates are a different
beast.
16:39 < Kashia> but yah, manv is right, a single function could be shared by
all
16:40 < Kashia> hmm..  maybe not, unsure how one would do the := range
16:40 < manveru> ?
16:41 < Kashia> what would the function definition look like?
16:41 < manveru> func my_common_happy_iterable(some_range_like
[]interface{}){
16:41 < Kashia> ah, but you can't cast a []int to a []interface{}
16:41 < manveru> oO
16:42 -!- caw [skyyy@phonzdesktop.rh.rit.edu] has joined #go-nuts
16:42 < manveru> so i don't cast...  i just take whatever happens to have a
type that can be iterated with range?
16:42 < manveru> func my_common_happy_iterable(some_range_like){
16:43 < Kashia> what would that be?
16:44 < manveru> A "for" statement with a "range" clause iterates through
all entries of an array, slice, string or map, or values received on a channel.
16:44 < manveru> so range knows what types it handles...  isn't that enough?
16:44 < Kashia> it does
16:44 < Kashia> but it does so for each type singely ;)
16:44 -!- TR2N [email@89.180.128.198] has joined #go-nuts
16:45 < manveru> oO
16:46 < Kashia> because some_range_like is done in the iterable.All(i
Iterable)
16:47 < Kashia> but to be of type Iterable one has to implement the Iter()
function
16:47 < manveru> yeah
16:47 < manveru> but the body of Iter is the same for all arrays
16:47 < manveru> no matter what's the type inside
16:47 < Kashia> the range function isn't really the problem, the problem is
you can't write a function which takes different types
16:48 < manveru> i thought interface covers all types?
16:49 < Kashia> ah yes, but as one can't cast a []int to []interface{} ...
16:50 < manveru> so you make one separate for int?
16:50 < Kashia> that is what they do, yes :)
16:50 < Kashia> hence the copy/pasting :P
16:50 < manveru> but they don't make one for interface?
16:51 < Kashia> they didn't?
16:51 < manveru> string, float, byte, int
16:51 < Kashia> in the Vector class they just copy the whole file and
replace all interface{} by int
16:51 < manveru> wtf
16:51 -!- supertr4mp [~hevalbara@88.243.190.51] has quit [Quit: WeeChat 0.2.6.3]
16:51 < Kashia> and Vector by IntVector
16:52 < manveru> that's just crazy :|
16:52 < Kashia> that is the lack of generics :P
16:52 < manveru> more like a lack of type inference
16:54 < Kashia> hmm...  I'm not sure.
16:54 < manveru> oh well, so i cannot use map if i don't know the type
16:54 < Kashia> ah, but you can
16:54 < manveru> and i can't iterate without lots of boilerplate
16:55 < manveru> that's enough for today :)
16:56 * Kashia pats manv
16:56 < manveru> gn8
16:56 < Kashia> night :)
17:01 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
17:06 -!- dizm [~dizm@121.98.168.127] has joined #go-nuts
17:07 -!- dizm [~dizm@121.98.168.127] has left #go-nuts []
17:19 -!- smw_ [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit
[Quit: Konversation terminated!]
17:19 -!- smw_ [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
17:23 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit
[Quit: rhelmer]
17:30 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has quit [Read
error: Connection reset by peer]
17:33 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
17:47 -!- gnuvince [~vince@64.235.199.76] has quit [Ping timeout: 264 seconds]
17:56 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 265 seconds]
18:07 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts
18:14 -!- mat_ [~mat@prod2.absolight.net] has quit [Ping timeout: 258 seconds]
18:19 -!- mat_ [~mat@prod2.absolight.net] has joined #go-nuts
18:20 -!- gnuvince [~vince@64.235.212.48] has joined #go-nuts
18:25 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has joined #go-nuts
18:29 -!- visof [~visof@41.238.234.229] has joined #go-nuts
18:29 < visof> hello
18:30 < visof> can "go" be alternative of c language ?
18:33 < cbeck> visof: That really depends what you're doing with it
18:34 < visof> what are the things that c can do and go can't ?
18:34 < visof> or C can do it better
18:36 < cbeck> visof: Well, the first big difference is that Go is garbage
collected, C of course is not
18:36 -!- fusion44 [~quassel@p5B284341.dip.t-dialin.net] has joined #go-nuts
18:37 < cbeck> Go uses a runtime thread of execution, C doesn't
18:38 < cbeck> my terminology in the above is bass ackwards, my apologies
18:38 < cbeck> Talk to me post coffee
18:39 < smw_> visof: C has nicer pointer manipulation.  Go is safer because
it doesn't.  It depends on what you are doing
18:40 < dagle> If you really need pointer stuff there is always unsafe.
18:40 < smw_> I know
18:53 < pdelgallego> Hi anyone knows if Go has apply as a Mentor
Organization to the Google Summer of Code?
18:56 -!- ratmice__ [bosshog@nightfall.forlorn.net] has left #go-nuts []
18:58 -!- hevalbaranov [~hevalbara@88.243.190.51] has joined #go-nuts
19:02 < ni|> hey guys anyone thought of using go for MPI?
19:03 < kmeyer> I'm sure that never ocurred to anyone
19:03 < ni|> why is that?
19:03 < ni|> i know there is built in concurrency but does that apply for a
cluster
19:03 < dagle> Sure does.
19:03 < kmeyer> look at netchan in the stdlib
19:04 < ni|> ok, so you are saying i can use go-lang for my cluster
computations?
19:04 < ni|> nice.
19:04 < dagle> ni|: Yes.
19:04 < ni|> goodbye MPI for now
19:05 < dagle> Just start x threads on each node.  Bind to netchan and
distribute the work.
19:06 < ni|> wow thats nice
19:06 < ni|> so i can do a map->reduce implemenatation
19:08 < ni|> thanks guys
19:08 < dagle> Shouldn't be that hard to implement something like what
erlang has to distribute threads ( not really threads, I know) across servers.
19:15 -!- smw_ [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit
[Ping timeout: 248 seconds]
19:17 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]]
19:24 < ni|> dagle: this package has yet to be written is what you are
saying?
19:24 -!- fusion44 [~quassel@p5B284341.dip.t-dialin.net] has quit [Remote host
closed the connection]
19:24 < ni|> because i would like to write that
19:25 < dagle> ni|: I haven't heard of any implamentations atm.
19:26 < ni|> ok thanks
19:40 -!- monty_hall [~sprague_r@adsl-75-51-127-80.dsl.sgnwmi.sbcglobal.net] has
quit [Ping timeout: 265 seconds]
19:41 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 265 seconds]
19:44 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
19:47 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has quit [Quit:
nchaimov]
19:47 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Excess Flood]
19:48 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
19:48 -!- jophish [~jophish@hermi.gotadsl.co.uk] has quit [Remote host closed the
connection]
20:01 -!- it_diver [~it_diver@dslb-088-068-231-222.pools.arcor-ip.net] has left
#go-nuts []
20:06 -!- mbarkhau [~koloss@dslb-084-059-161-165.pools.arcor-ip.net] has joined
#go-nuts
20:06 -!- mbarkhau [~koloss@dslb-084-059-161-165.pools.arcor-ip.net] has quit
[Client Quit]
20:14 -!- monty_hall [~sprague_r@adsl-75-51-127-80.dsl.sgnwmi.sbcglobal.net] has
joined #go-nuts
20:18 -!- gnuvince [~vince@64.235.212.48] has quit [Quit: brb]
20:21 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout:
619 seconds]
20:22 -!- gnuvince [~vince@70.35.165.148] has joined #go-nuts
20:29 -!- gnuvince [~vince@70.35.165.148] has quit [Quit: What the fruit is goin'
on here!?]
20:31 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
20:35 -!- gnuvince [~vince@64.235.212.48] has joined #go-nuts
20:39 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
20:39 -!- Adys_ [~Adys@unaffiliated/adys] has joined #go-nuts
20:50 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
20:50 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has quit [Remote host
closed the connection]
20:58 -!- monty_hall [~sprague_r@adsl-75-51-127-80.dsl.sgnwmi.sbcglobal.net] has
quit [Quit: Leaving.]
21:01 -!- ak2 [~ak2@soenat3.cse.ucsc.edu] has joined #go-nuts
21:02 -!- deso [~deso@77-21-80-251-dynip.superkabel.de] has quit [Remote host
closed the connection]
21:02 -!- gnuvince [~vince@64.235.212.48] has quit [Ping timeout: 276 seconds]
21:03 -!- gnuvince [~vince@64.235.199.14] has joined #go-nuts
21:03 -!- idea_squirrel [~ct2rips@77-21-31-117-dynip.superkabel.de] has quit
[Quit: what would a pirate do?]
21:04 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined
#go-nuts
21:05 -!- amacleod [amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined
#go-nuts
21:09 -!- kssreeram [~kssreeram@122.165.6.245] has quit [Quit: kssreeram]
21:24 -!- MarkBao [~MarkBao@64.134.101.144] has joined #go-nuts
21:36 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
21:40 -!- Project_2501 [~Marvin@82.84.69.99] has quit [Quit: E se abbasso questa
leva che succ...]
21:47 -!- hevalbaranov [~hevalbara@88.243.190.51] has quit [Quit: WeeChat 0.2.6.3]
21:49 -!- belkiss [~kvirc@bellcare-h2-cust.host.net] has joined #go-nuts
21:50 -!- belkiss [~kvirc@bellcare-h2-cust.host.net] has quit [Client Quit]
21:50 -!- belkiss [~kvirc@bellcare-h2-cust.host.net] has joined #go-nuts
21:51 -!- belkiss [~kvirc@bellcare-h2-cust.host.net] has quit [Client Quit]
22:03 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has joined #go-nuts
22:05 -!- monty_hall [~sprague_r@adsl-75-51-127-80.dsl.sgnwmi.sbcglobal.net] has
joined #go-nuts
22:11 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Remote host
closed the connection]
22:17 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 240 seconds]
22:19 -!- visof [~visof@41.238.234.229] has quit [Remote host closed the
connection]
22:19 -!- hstimer_ [~hstimer@c-98-234-25-125.hsd1.ca.comcast.net] has joined
#go-nuts
22:19 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has quit [Remote
host closed the connection]
22:21 -!- hstimer_ [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined
#go-nuts
22:21 -!- hstimer [~hstimer@c-98-234-25-125.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
22:22 -!- scm [justme@c162059.adsl.hansenet.de] has quit [Ping timeout: 264
seconds]
22:22 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 260 seconds]
22:23 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Quit: Lost terminal]
22:23 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
22:23 -!- scm [justme@c162140.adsl.hansenet.de] has joined #go-nuts
22:26 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
22:27 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts
22:43 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit
[Quit: rhelmer]
22:45 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
22:53 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit
[Quit: rhelmer]
22:54 -!- killerchicken_ [~killerchi@port-92-194-99-111.dynamic.qsc.de] has joined
#go-nuts
22:54 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
22:56 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined
#go-nuts
22:57 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:58 -!- anothernick [~killerchi@port-92-194-105-134.dynamic.qsc.de] has quit
[Ping timeout: 260 seconds]
22:59 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit
[Ping timeout: 265 seconds]
23:10 -!- b00m_chef [~watr@128.189.88.127] has joined #go-nuts
23:10 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts
23:12 -!- nf [~nf@124-171-30-154.dyn.iinet.net.au] has quit [Ping timeout: 240
seconds]
23:14 -!- nf [~nf@124-168-145-218.dyn.iinet.net.au] has joined #go-nuts
23:16 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has quit [Quit: Leaving]
23:21 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
23:23 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit
[Client Quit]
23:23 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
23:35 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 265 seconds]
23:35 -!- nettok [~netto@200.119.151.31] has joined #go-nuts
23:35 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
23:38 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Excess Flood]
23:40 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
23:41 -!- MarkBao [~MarkBao@64.134.101.144] has quit [Quit: Leaving...]
23:42 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Quit: leaving]
23:44 -!- megaboz [~megaboz@189.115.11.101] has joined #go-nuts
23:47 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 265 seconds]
23:48 -!- megaboz [~megaboz@189.115.11.101] has quit [Changing host]
23:48 -!- megaboz [~megaboz@unaffiliated/megaboz] has joined #go-nuts
23:56 < kmeyer> is there a way to define a constant array/slice?
--- Log closed Sun Mar 14 00:00:25 2010