--- Log opened Sun Mar 28 00:00:37 2010
00:02 -!- nettok_ [~netto@200.119.156.103] has quit [Ping timeout: 276 seconds]
00:07 -!- awidegreen_ [~quassel@p5B061F9A.dip.t-dialin.net] has quit [Remote host
closed the connection]
00:12 -!- ThunderChicken [~bofh@dsl093-032-217.snd1.dsl.speakeasy.net] has joined
#go-nuts
00:13 -!- ThunderChicken [~bofh@dsl093-032-217.snd1.dsl.speakeasy.net] has quit
[Changing host]
00:13 -!- ThunderChicken [~bofh@kernel-panic/member/ThunderChicken] has joined
#go-nuts
00:14 < megaboz> weird, i'm calling a function through cgo, and one
parameter changes once inside the C function
00:14 < megaboz> anybody seen anything like this?
00:14 < megaboz> seems like misaligned data, the value is always zero
00:16 -!- dddd_ [~e@pool-71-190-187-50.nycmny.fios.verizon.net] has joined
#go-nuts
00:17 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving]
00:21 -!- akrill [~akrill@reserved-216-231-57-73.sea0.krillr.com] has joined
#go-nuts
00:24 -!- b00m_chef__ [~watr@128.189.95.119] has quit [Ping timeout: 240 seconds]
00:41 -!- merlin83 [~merlin83@unaffiliated/merlin83] has quit [Ping timeout: 240
seconds]
00:44 -!- thakis [~thakis@nat/google/x-vawzriuvajimrphy] has quit [Remote host
closed the connection]
00:44 -!- thakis [~thakis@nat/google/x-xgkylmwsiemcwbhb] has joined #go-nuts
00:46 -!- napsy [~luka@88.200.96.14] has quit [Read error: Operation timed out]
00:55 -!- gr1b [~gr1b@c-98-235-184-236.hsd1.pa.comcast.net] has quit [Ping
timeout: 240 seconds]
00:56 -!- hevalbaranov [~hevalbara@78.161.141.93] has joined #go-nuts
01:01 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: (
www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )]
01:02 -!- napsy [~luka@88.200.96.14] has joined #go-nuts
01:02 -!- gr1b [~gr1b@c-98-235-184-236.hsd1.pa.comcast.net] has joined #go-nuts
01:06 < napsy> I have a strange problem.  rand.Int() always returns numbers
from the same set
01:10 -!- kanru [~kanru@61-228-152-186.dynamic.hinet.net] has quit [Quit: WeeChat
0.3.1.1]
01:12 < megaboz> napsy: obvious question: are you initializing the seed?
01:12 < napsy> no
01:13 < napsy> where can I take the seed from?
01:13 < megaboz> time.Nanoseconds() should be good enough
01:15 < napsy> ok I get different numvers now
01:15 < napsy> but there's one strange thing
01:15 < napsy> num = (rand.Int() % (n*n)) + 1
01:15 < napsy> n*n < 10 and I get num > 10
01:20 -!- Xeon [~chatzilla@118.126.12.53] has quit [Ping timeout: 258 seconds]
01:20 < napsy> nvm
01:20 < kmeyer> somehow I doubt modulus is broken ;)
01:20 < kmeyer> but, hey, maybe :)
01:20 -!- boscop_ [~boscop@g225218094.adsl.alicedsl.de] has joined #go-nuts
01:21 -!- boscop [~boscop@g226225204.adsl.alicedsl.de] has quit [Ping timeout: 258
seconds]
01:22 -!- boscop_ [~boscop@g225218094.adsl.alicedsl.de] has left #go-nuts []
01:22 -!- boscop [~boscop@g225218094.adsl.alicedsl.de] has joined #go-nuts
01:22 < exch> uriel: http://github.com/jteeuwen/go-pkg-njb
01:27 -!- akrill [~akrill@reserved-216-231-57-73.sea0.krillr.com] has quit [Quit:
akrill]
01:29 -!- akrill [~akrill@reserved-216-231-57-73.sea0.krillr.com] has joined
#go-nuts
01:30 -!- akrill [~akrill@reserved-216-231-57-73.sea0.krillr.com] has quit [Client
Quit]
01:31 -!- tor5 [~tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit
[Quit: tor5]
01:31 -!- akrill [~akrill@reserved-216-231-57-73.sea0.krillr.com] has joined
#go-nuts
01:33 -!- nf [~nf@124-168-171-32.dyn.iinet.net.au] has quit [Ping timeout: 268
seconds]
01:33 -!- gr1b [~gr1b@c-98-235-184-236.hsd1.pa.comcast.net] has quit [Ping
timeout: 264 seconds]
01:34 < napsy> how can I use a function call that returns multiple values in
a for statement?
01:34 < napsy> I tried for a, b := somefunc() && !a { ...
01:34 < napsy> but it doesn't work
01:35 -!- Xeon [~chatzilla@118.126.12.54] has joined #go-nuts
01:38 -!- Xeon_ [~chatzilla@118.126.12.54] has joined #go-nuts
01:40 -!- gr1b [~gr1b@c-98-235-184-236.hsd1.pa.comcast.net] has joined #go-nuts
01:41 -!- Nexoro1 [~Nexoro@c-71-192-75-183.hsd1.ma.comcast.net] has quit [Quit:
Leaving.]
01:42 -!- Xeon [~chatzilla@118.126.12.54] has quit [Ping timeout: 252 seconds]
01:46 -!- nettok_ [~netto@200.119.156.103] has joined #go-nuts
01:47 -!- bryce [~bryce@c-76-121-192-70.hsd1.wa.comcast.net] has joined #go-nuts
01:50 -!- nettok__ [~netto@200.119.156.103] has quit [Ping timeout: 276 seconds]
01:52 -!- kssreeram [~kssreeram@122.174.136.32] has joined #go-nuts
01:55 -!- nettok_ [~netto@200.119.156.103] has quit [Ping timeout: 246 seconds]
01:56 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has joined #go-nuts
01:57 -!- tcoppi
[~nuclear@57c3ed63-1294-45bd-a8e8-cdcc07cfa16f.static.grokthis.net] has quit [Read
error: Operation timed out]
01:57 -!- tcoppi [~nuclear@206.251.36.97] has joined #go-nuts
02:00 -!- thakis_ [~thakis@nat/google/x-gcbsenrzhhckkqir] has joined #go-nuts
02:02 < smw> napsy: I think for a, b := somefunc(); a == nil { ...
02:03 -!- thakis [~thakis@nat/google/x-xgkylmwsiemcwbhb] has quit [Ping timeout:
260 seconds]
02:07 < jshipley> smw: I think you need another ; after a == nil
02:09 -!- thakis [~thakis@nat/google/x-gcbsenrzhhckkqir] has quit [Ping timeout:
276 seconds]
02:09 -!- nf [~nf@124.171.56.103] has joined #go-nuts
02:13 < jshipley> If I open a file and create a bufio.Writer with it, is
there any way to close the file through the Writer?  http://pastebin.com/jNn1mXbD
02:14 -!- nettok_ [~netto@200.119.156.103] has joined #go-nuts
02:18 -!- kssreeram [~kssreeram@122.174.136.32] has quit [Quit: kssreeram]
02:18 -!- tor5 [~tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has
joined #go-nuts
02:21 -!- tor5 [~tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit
[Client Quit]
02:31 -!- kssreeram [~kssreeram@122.174.136.32] has joined #go-nuts
02:33 -!- napsy [~luka@88.200.96.14] has quit [Ping timeout: 258 seconds]
02:54 -!- akrill [~akrill@reserved-216-231-57-73.sea0.krillr.com] has quit [Read
error: Connection reset by peer]
02:54 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
02:55 -!- akrill [~akrill@reserved-216-231-57-73.sea0.krillr.com] has joined
#go-nuts
02:55 -!- akrill [~akrill@reserved-216-231-57-73.sea0.krillr.com] has quit [Client
Quit]
02:57 -!- timepilot [~timepilot@c-24-91-16-174.hsd1.ma.comcast.net] has joined
#go-nuts
03:00 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Ping
timeout: 252 seconds]
03:02 -!- nettok__ [~netto@200.119.156.103] has joined #go-nuts
03:05 -!- nettok_ [~netto@200.119.156.103] has quit [Ping timeout: 252 seconds]
03:06 -!- boscop_ [~boscop@g225218094.adsl.alicedsl.de] has joined #go-nuts
03:07 -!- boscop [~boscop@g225218094.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
03:07 -!- nettok_ [~netto@200.119.156.103] has joined #go-nuts
03:08 -!- Meidor [~quassel@piggy.cs.ru.nl] has quit [Quit: No Ping reply in 180
seconds.]
03:08 -!- Meidor [~quassel@piggy.cs.ru.nl] has joined #go-nuts
03:11 -!- nettok__ [~netto@200.119.156.103] has quit [Ping timeout: 276 seconds]
03:12 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined
#go-nuts
03:18 < anticw> jshipley: make a customer type
03:18 < anticw> jshipley: make a _custom_ type
03:18 < anticw> sorry
03:20 < anticw> then you can have the close you implement Flush the bufio
and close the underlying WriteCloser
03:22 -!- nettok [~netto@200.119.156.103] has joined #go-nuts
03:24 -!- nettok_ [~netto@200.119.156.103] has quit [Ping timeout: 246 seconds]
03:28 -!- nettok_ [~netto@200.119.156.103] has joined #go-nuts
03:31 -!- nettok [~netto@200.119.156.103] has quit [Ping timeout: 264 seconds]
03:32 < kmeyer> Is there any reason to keep new([]foo) in the language at
all?  Shouldn't it just be nuked?
03:37 < anticw> kmeyer: and use x: = &[]foo ?
03:39 < kmeyer> that, or use: x := make([]foo, bar, baz)
03:39 < kmeyer> the empty slice just doesn't seem that useful, especially
not when compared with other things you make with new()
03:39 < anticw> new and make a different things though
03:39 < kmeyer> of course.
03:39 < anticw> new returns a pointer to a type
03:40 < kmeyer> why would you ever want to create a new, empty slice and get
a pointer to it?
03:41 < kmeyer> and in that situation, does new([]foo) make as much sense as
&[]foo?
03:41 < kmeyer> *shrug*
03:41 < kmeyer> Effective Go warns against new([]foo), that's what made me
curious.
03:42 -!- nettok__ [~netto@200.119.156.103] has joined #go-nuts
03:46 -!- nettok_ [~netto@200.119.156.103] has quit [Ping timeout: 268 seconds]
03:55 < KirkMcDonald> kmeyer:
http://code.google.com/p/optparse-go/source/browse/types.go#325
03:55 < KirkMcDonald> kmeyer: There is one actual use of it, in the wild.
03:55 < KirkMcDonald> kmeyer: Could I have just returned a pointer to a
local variable?  Perhaps.
03:56 < KirkMcDonald> kmeyer: But I wanted to explicitly say, "this puts a
[]int variable on the heap."
03:57 < kmeyer> Hm, ok.
03:59 < anticw> that could be done w/o new
04:04 -!- lmoura [~lmoura@187.78.207.118] has joined #go-nuts
04:04 -!- nettok_ [~netto@200.119.156.103] has joined #go-nuts
04:05 < jshipley> Do I just need to fix my syntax, or does this not work:
var foo = struct {}
04:08 -!- nettok__ [~netto@200.119.156.103] has quit [Ping timeout: 268 seconds]
04:10 -!- nettok__ [~netto@200.119.156.103] has joined #go-nuts
04:11 < jshipley> ah, got it.  I needed var foo = struct {}{}
04:13 -!- nettok_ [~netto@200.119.156.103] has quit [Ping timeout: 268 seconds]
04:20 -!- timepilot [~timepilot@c-24-91-16-174.hsd1.ma.comcast.net] has quit
[Quit: Leaving]
04:22 -!- lmoura [~lmoura@187.78.207.118] has quit [Ping timeout: 245 seconds]
04:32 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has quit [Quit: adu]
04:38 -!- lmoura [~lmoura@187.78.207.118] has joined #go-nuts
04:41 -!- i3d [~i3d@unaffiliated/i3dmaster] has joined #go-nuts
04:46 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 246 seconds]
04:47 -!- hevalbaranov [~hevalbara@78.161.141.93] has quit [Quit: WeeChat 0.2.6.3]
04:55 -!- i3d [~i3d@unaffiliated/i3dmaster] has quit [Quit: i3d]
04:55 -!- i3d [~i3dmaster@216.239.45.130] has joined #go-nuts
04:56 -!- i3d [~i3dmaster@216.239.45.130] has quit [Changing host]
04:56 -!- i3d [~i3dmaster@unaffiliated/i3dmaster] has joined #go-nuts
04:58 -!- nettok_ [~netto@200.119.156.103] has joined #go-nuts
04:58 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
05:02 -!- nettok__ [~netto@200.119.156.103] has quit [Ping timeout: 268 seconds]
05:03 -!- nettok__ [~netto@200.119.156.103] has joined #go-nuts
05:07 -!- nettok_ [~netto@200.119.156.103] has quit [Ping timeout: 264 seconds]
05:10 -!- dddd_ [~e@pool-71-190-187-50.nycmny.fios.verizon.net] has quit [Quit:
ircII EPIC4-2.10.1 -- Are we there yet?]
05:12 -!- i3d [~i3dmaster@unaffiliated/i3dmaster] has quit [Quit: leaving]
05:17 -!- nettok_ [~netto@200.119.156.103] has joined #go-nuts
05:21 -!- nettok__ [~netto@200.119.156.103] has quit [Ping timeout: 258 seconds]
05:23 -!- nettok__ [~netto@200.119.156.103] has joined #go-nuts
05:24 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Ping
timeout: 275 seconds]
05:27 -!- thakis [~thakis@c-71-198-222-88.hsd1.ca.comcast.net] has joined #go-nuts
05:27 -!- nettok_ [~netto@200.119.156.103] has quit [Ping timeout: 276 seconds]
05:36 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined
#go-nuts
05:37 -!- nettok_ [~netto@200.119.156.103] has joined #go-nuts
05:38 -!- thakis [~thakis@c-71-198-222-88.hsd1.ca.comcast.net] has quit [Quit:
thakis]
05:40 -!- nettok__ [~netto@200.119.156.103] has quit [Ping timeout: 264 seconds]
05:42 -!- Xeon [~chatzilla@118.126.12.53] has joined #go-nuts
05:44 -!- Xeon_ [~chatzilla@118.126.12.54] has quit [Ping timeout: 252 seconds]
05:51 -!- nettok__ [~netto@200.119.156.103] has joined #go-nuts
05:51 -!- zard [~dpx@c-68-35-150-172.hsd1.nm.comcast.net] has left #go-nuts []
05:53 -!- thakis [~thakis@c-71-198-222-88.hsd1.ca.comcast.net] has joined #go-nuts
05:54 -!- nettok_ [~netto@200.119.156.103] has quit [Ping timeout: 252 seconds]
06:04 -!- General13372 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
06:05 -!- jshipley [~jshipley@174-23-125-69.slkc.qwest.net] has quit [Ping
timeout: 252 seconds]
06:08 -!- General1337 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 276 seconds]
06:12 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has joined #go-nuts
06:27 -!- [Pete_27] [~noname@115-64-1-61.static.tpgi.com.au] has quit [Ping
timeout: 252 seconds]
06:29 -!- [Pete_27] [~noname@115-64-1-61.static.tpgi.com.au] has joined #go-nuts
06:35 -!- ableos [~ableos@c-68-49-105-59.hsd1.md.comcast.net] has joined #go-nuts
06:35 -!- ableos [~ableos@c-68-49-105-59.hsd1.md.comcast.net] has left #go-nuts []
06:50 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]]
06:56 -!- ashaw [~alexis@58.108.161.163] has joined #go-nuts
06:56 < ashaw> anyone here>
06:57 < ashaw> ?
07:05 < cbeck> Perhaps
07:21 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has quit [Ping
timeout: 246 seconds]
07:25 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined
#go-nuts
07:33 < fuzzybyte> you wish
07:37 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
07:49 -!- zard [~dpx@c-68-35-150-172.hsd1.nm.comcast.net] has joined #go-nuts
07:55 -!- lmoura [~lmoura@187.78.207.118] has quit [Ping timeout: 245 seconds]
07:56 -!- nchaimov_ [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined
#go-nuts
07:57 -!- lmoura [~lmoura@187.78.175.210] has joined #go-nuts
07:59 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has quit [Ping
timeout: 246 seconds]
08:02 -!- lmoura_ [~lmoura@187.78.133.218] has joined #go-nuts
08:03 -!- Mana|Linux [~mana@142.46.164.30] has quit [Ping timeout: 276 seconds]
08:04 -!- lmoura [~lmoura@187.78.175.210] has quit [Ping timeout: 245 seconds]
08:05 -!- fusion44 [~quassel@p5B285C68.dip.t-dialin.net] has joined #go-nuts
08:09 -!- thakis [~thakis@c-71-198-222-88.hsd1.ca.comcast.net] has quit [Quit:
thakis]
08:16 -!- SecretofMana [~mana@142.46.164.30] has joined #go-nuts
08:19 -!- atsampso1 [~ats@94-193-50-45.zone7.bethere.co.uk] has quit [Read error:
Operation timed out]
08:22 -!- kanru [~kanru@61-228-152-186.dynamic.hinet.net] has joined #go-nuts
08:37 -!- Korpela [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has left #go-nuts
["Leaving"]
08:38 -!- nanoo [~nano@95-89-197-214-dynip.superkabel.de] has joined #go-nuts
08:45 -!- awidegreen [~quassel@p5B061F9A.dip.t-dialin.net] has joined #go-nuts
08:45 -!- boscop_ [~boscop@g225218094.adsl.alicedsl.de] has left #go-nuts []
08:45 -!- boscop [~boscop@g225218094.adsl.alicedsl.de] has joined #go-nuts
09:02 -!- m1ndwarp [~m1ndwarp@c183060.adsl.hansenet.de] has joined #go-nuts
09:06 -!- bryce [~bryce@c-76-121-192-70.hsd1.wa.comcast.net] has quit [Quit:
bryce]
09:09 -!- m1ndwarp [~m1ndwarp@c183060.adsl.hansenet.de] has quit [Quit: m1ndwarp]
09:12 -!- OpenSpace [~ja@93.86.209.157] has quit [Quit: Leaving]
09:28 -!- wrtp [~rog@89.242.175.228] has joined #go-nuts
09:29 -!- GilJ [~gilles@85.10.92.166] has joined #go-nuts
09:34 -!- napsy [~luka@88.200.96.14] has joined #go-nuts
09:48 -!- HollyRain [~quassel@87.223.124.112] has joined #go-nuts
09:52 < HollyRain> cann't defined an array and then enter all data?  var foo
[]string; foo = { "one", "bar" }
09:52 < HollyRain> s/cann't/cann't be
09:59 < ampleyfly> unless I'm mistaken you can do foo = []string{ "one",
"bar" }
10:02 < HollyRain> yes, I was using that
10:06 < plexdev> http://is.gd/b3jow by [Raif S. Naffah] in go/src/pkg/xml/
-- xml: use io.ReadByter in place of local readByter
10:13 -!- Xeon [~chatzilla@118.126.12.53] has quit [Ping timeout: 248 seconds]
10:14 -!- Xeon_ [~chatzilla@118.126.12.53] has joined #go-nuts
10:16 -!- wrtp [~rog@89.242.175.228] has quit [Quit: wrtp]
10:17 -!- Xeon [~chatzilla@118.126.12.53] has joined #go-nuts
10:20 -!- Xeon_ [~chatzilla@118.126.12.53] has quit [Ping timeout: 240 seconds]
10:24 -!- wrtp [~rog@89.242.175.228] has joined #go-nuts
10:26 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
10:32 -!- ikaros [~ikaros@f051055048.adsl.alicedsl.de] has joined #go-nuts
10:40 -!- Xeon_ [~chatzilla@118.126.12.53] has joined #go-nuts
10:40 -!- Xeon [~chatzilla@118.126.12.53] has quit [Ping timeout: 240 seconds]
10:45 -!- Xeon_ [~chatzilla@118.126.12.53] has quit [Ping timeout: 276 seconds]
10:49 -!- kashia_ [~Kashia@p4FEB7BE7.dip.t-dialin.net] has quit [Quit: Leaving]
10:53 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined
#go-nuts
10:55 -!- nettok__ [~netto@200.119.156.103] has quit [Quit: Ex-Chat]
10:56 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
11:01 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Ping
timeout: 240 seconds]
11:02 -!- fusion44 [~quassel@p5B285C68.dip.t-dialin.net] has quit [Remote host
closed the connection]
11:09 -!- KingOfKarlsruhe [~nice@p5B14C334.dip.t-dialin.net] has joined #go-nuts
11:16 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined
#go-nuts
11:17 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Read
error: Connection reset by peer]
11:18 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined
#go-nuts
11:33 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
11:38 -!- hevalbaranov [~hevalbara@78.161.141.93] has joined #go-nuts
11:45 -!- awidegreen_ [~quassel@p5B060F67.dip.t-dialin.net] has joined #go-nuts
11:46 -!- awidegreen [~quassel@p5B061F9A.dip.t-dialin.net] has quit [Ping timeout:
240 seconds]
11:52 -!- g0bl1n [~anonymous@a89-152-233-139.cpe.netcabo.pt] has joined #go-nuts
11:53 -!- path[l] [UPP@120.138.102.34] has quit [Read error: Connection reset by
peer]
11:53 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
12:01 -!- GilJ [~gilles@85.10.92.166] has quit [Remote host closed the connection]
12:02 -!- GilJ [~gilles@85.10.92.166] has joined #go-nuts
12:02 -!- GilJ [~gilles@85.10.92.166] has quit [Remote host closed the connection]
12:02 -!- GilJ [~gilles@85.10.92.166] has joined #go-nuts
12:02 -!- ashaw [~alexis@58.108.161.163] has quit [Ping timeout: 246 seconds]
12:15 -!- hevalbaranov [~hevalbara@78.161.141.93] has quit [Quit: WeeChat 0.2.6.3]
12:35 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
12:38 -!- path[l] [UPP@120.138.102.34] has quit [Read error: Connection reset by
peer]
12:40 -!- napsy [~luka@88.200.96.14] has quit [Ping timeout: 258 seconds]
12:40 < HollyRain> a little doubt, I can use all functions from a program
with the first letter in upper case since that they aren't accesible from outside,
right?
12:41 < HollyRain> because I'm not compiling it like a package
12:44 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
12:46 -!- pjm0616 [~user@61.250.113.98] has quit [Quit: pjm0616]
12:47 -!- Nexoro [~Nexoro@c-71-192-75-183.hsd1.ma.comcast.net] has joined #go-nuts
12:49 -!- pjm0616 [~user@61.250.113.98] has joined #go-nuts
12:55 -!- Meidor [~quassel@piggy.cs.ru.nl] has quit [Read error: Connection reset
by peer]
12:55 -!- Meidor [~quassel@piggy.cs.ru.nl] has joined #go-nuts
13:00 -!- tor5 [~tor@c-a87e71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has
joined #go-nuts
13:13 -!- napsy [~luka@88.200.96.14] has joined #go-nuts
13:16 -!- skelterjohn [~jasmuth@c-76-124-23-96.hsd1.nj.comcast.net] has quit [Ping
timeout: 252 seconds]
13:19 -!- g0bl1n [~anonymous@a89-152-233-139.cpe.netcabo.pt] has quit [Quit:
g0bl1n]
13:21 -!- skelterjohn [~jasmuth@c-76-124-23-96.hsd1.nj.comcast.net] has joined
#go-nuts
13:22 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
13:38 -!- BlackBook [~sjs@kernel-panic/member/TiBook] has joined #go-nuts
13:39 < BlackBook> I appear to misunderstand how interfaces work.  Am I
missing something simple, or do I have a more fundamental disconnect?
http://pastebin.com/qGFF0Q2G
13:40 < BlackBook> (Lurking elsewhere in the channel, so I will catch
replies even if _this_ computer logs out...)
13:40 -!- ikaros [~ikaros@f051055048.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
13:42 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
13:48 -!- hevalbaranov [~hevalbara@78.161.141.93] has joined #go-nuts
13:56 -!- g0bl1n [~anonymous@a89-152-233-139.cpe.netcabo.pt] has joined #go-nuts
13:56 -!- g0bl1n [~anonymous@a89-152-233-139.cpe.netcabo.pt] has quit [Client
Quit]
14:05 < cthom> BlackBook: I'm pretty sure func invoke( f *Foo ) { should
just be func invoke( f Foo ) {
14:05 < cthom> on line 17
14:06 < cthom> BlackBook: because *Baz satisfies the interface Foo, you can
pass *Baz as Foo, but *Foo is something different
14:17 -!- napsy [~luka@88.200.96.14] has quit [Ping timeout: 260 seconds]
14:18 -!- napsy [~luka@88.200.96.14] has joined #go-nuts
14:24 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
14:25 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Client
Quit]
14:34 -!- mssm [~mssm@ip-95-221-74-236.bb.netbynet.ru] has joined #go-nuts
14:35 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
14:40 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 258 seconds]
14:49 -!- g0bl1n [~anonymous@a89-152-233-139.cpe.netcabo.pt] has joined #go-nuts
14:53 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
14:57 -!- kanru [~kanru@61-228-152-186.dynamic.hinet.net] has quit [Quit: WeeChat
0.3.1.1]
14:58 -!- g0bl1n [~anonymous@a89-152-233-139.cpe.netcabo.pt] has quit [Quit:
g0bl1n]
15:03 < smw> How do you make an enumerated list?  do you just add = iota to
the first one?
15:06 < HollyRain> does an interface would be as a python class?
15:06 < smw> no
15:07 < smw> an interface is a set of functions that a data type can go
through
15:07 < smw> have you used java?
15:07 < HollyRain> ago several years
15:07 < smw> for example.  Every io.writer has a Write() func.  If a data
type has a write func, it is automatically considered an io.writer
15:08 < smw> that means any function that takes an io.writer will take that
data type.
15:08 < HollyRain> ok
15:08 < HollyRain> like a pointer
15:08 < smw> yeah
15:09 < smw> but they only point to data types that support certain
functions
15:09 < smw> of course interface
15:09 < smw> oops
15:10 < smw> interface{} is used alot (empty interface)
15:13 -!- KingOfKarlsruhe [~nice@p5B14C334.dip.t-dialin.net] has quit [Remote host
closed the connection]
15:17 -!- kssreeram [~kssreeram@122.174.136.32] has quit [Quit: kssreeram]
15:18 -!- kssreeram [~kssreeram@122.174.136.32] has joined #go-nuts
15:19 -!- lmoura_ [~lmoura@187.78.133.218] has quit [Remote host closed the
connection]
15:22 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
15:29 < smw> can someone help me?  I can not figure out iota
http://pastebin.com/38gh9jyH
15:30 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Quit: Leaving]
15:32 < jessta> smw: var should be const
15:32 < jessta> I think
15:33 < smw> oh, right.  thanks :-)
15:37 < jessta> BlackBook:
http://research.swtch.com/2009/12/go-data-structures-interfaces.html
15:37 < jessta> HollyRain: you probably want to look at that too
15:37 < HollyRain> ah thanks
15:40 -!- Guest55074 [~merlin83@cm24.delta241.maxonline.com.sg] has joined
#go-nuts
15:49 -!- rhelmer [~rhelmer@adsl-69-107-74-210.dsl.pltn13.pacbell.net] has quit
[Ping timeout: 260 seconds]
15:51 -!- GilJ [~gilles@85.10.92.166] has quit [Ping timeout: 260 seconds]
15:53 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
15:55 -!- Guest55074 [~merlin83@cm24.delta241.maxonline.com.sg] has quit [Ping
timeout: 240 seconds]
16:14 -!- g0bl1n [~anonymous@a89-152-233-139.cpe.netcabo.pt] has joined #go-nuts
16:15 -!- merlin83_ [~merlin83@cm24.delta241.maxonline.com.sg] has joined #go-nuts
16:15 -!- merlin83_ [~merlin83@cm24.delta241.maxonline.com.sg] has quit [Changing
host]
16:15 -!- merlin83_ [~merlin83@unaffiliated/merlin83] has joined #go-nuts
16:22 -!- hevalbaranov [~hevalbara@78.161.141.93] has quit [Quit: WeeChat 0.2.6.3]
16:26 -!- tav [~tav@89.240.57.83] has joined #go-nuts
16:35 -!- Netsplit *.net <-> *.split quits: SecretofMana, ampleyfly, aowi,
yebyen, pjm0616, Rint__, Archwyrm, Innominate, drhodes, General13372, (+129 more,
use /NETSPLIT to show all of them)
16:36 -!- ThunderChicken [~bofh@kernel-panic/member/ThunderChicken] has quit [Ping
timeout: 255 seconds]
16:36 -!- itorres [~itorres@gandi.bedynamic.net] has quit [Read error: Connection
reset by peer]
16:36 -!- itorres [~itorres@gandi.bedynamic.net] has joined #go-nuts
16:36 -!- lianj [~lianj@dslb-088-076-245-147.pools.arcor-ip.net] has quit [Ping
timeout: 255 seconds]
16:36 -!- cthom_ [~cthom@ip68-10-255-97.hr.hr.cox.net] has joined #go-nuts
16:36 -!- kuroneko [~chris@yayoi.xware.cx] has quit [Ping timeout: 240 seconds]
16:36 -!- cthom [~cthom@ip68-10-255-97.hr.hr.cox.net] has quit [Ping timeout: 240
seconds]
16:36 -!- usausa [~usa@pool-71-116-81-237.snfcca.dsl-w.verizon.net] has quit [Ping
timeout: 240 seconds]
16:36 -!- kuroneko [~chris@yayoi.xware.cx] has joined #go-nuts
16:36 -!- alus [~gah@64.13.131.178] has quit [Ping timeout: 240 seconds]
16:37 -!- scoeri [~jdekoste@soft.vub.ac.be] has quit [Ping timeout: 248 seconds]
16:38 -!- scoeri [~jdekoste@soft.vub.ac.be] has joined #go-nuts
16:38 -!- ThunderChicken [~bofh@dsl093-032-217.snd1.dsl.speakeasy.net] has joined
#go-nuts
16:38 -!- lianj [~lianj@dslb-088-076-245-147.pools.arcor-ip.net] has joined
#go-nuts
16:38 -!- Netsplit over, joins: drhodes, CodeBloc-, nanoo, tav, g0bl1n, rlab,
kssreeram, mssm, napsy, path[l] (+129 more)
16:39 -!- no_mind [~orion@122.173.228.1] has joined #go-nuts
16:40 -!- pvandusen [~pdusen@crob4-55.flint.umich.edu] has joined #go-nuts
16:42 -!- Project_2501 [~Marvin@82.84.73.161] has joined #go-nuts
16:43 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Ping timeout: 258
seconds]
16:43 -!- scoeri_ [~jdekoste@soft.vub.ac.be] has joined #go-nuts
16:44 -!- awidegreen [~quassel@p5B060F67.dip.t-dialin.net] has joined #go-nuts
16:44 -!- franksalim_ [~frank@adsl-75-61-84-181.dsl.pltn13.sbcglobal.net] has
joined #go-nuts
16:44 -!- meatmanek_ [~meatmanek@mesingw.STUDENT.CWRU.Edu] has joined #go-nuts
16:45 -!- Wiz126 [Wiz126@72.20.219.250] has quit [Ping timeout: 258 seconds]
16:45 -!- wayneese1uin [~wayneeseg@rrcs-72-45-208-165.nys.biz.rr.com] has joined
#go-nuts
16:46 -!- scm_ [justme@c190054.adsl.hansenet.de] has joined #go-nuts
16:46 -!- lianj_ [~lianj@dslb-088-076-245-147.pools.arcor-ip.net] has joined
#go-nuts
16:46 -!- Wiz126 [Wiz126@72.20.219.250] has joined #go-nuts
16:46 -!- tcoppi_
[~nuclear@57c3ed63-1294-45bd-a8e8-cdcc07cfa16f.static.grokthis.net] has joined
#go-nuts
16:46 -!- zeroXten_ [~zeroXten@0x10.co.uk] has joined #go-nuts
16:46 -!- mfoemmel [~mfoemmel@chml01.drwholdings.com] has quit [Ping timeout: 258
seconds]
16:46 -!- prip_ [~foo@host149-132-dynamic.43-79-r.retail.telecomitalia.it] has
joined #go-nuts
16:46 -!- \toothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
16:47 -!- mfoemmel [~mfoemmel@chml01.drwholdings.com] has joined #go-nuts
16:47 -!- plexdev` [~plexdev@arthur.espians.com] has joined #go-nuts
16:48 -!- plexdev [~plexdev@arthur.espians.com] has quit [Ping timeout: 258
seconds]
16:48 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has quit [Quit:
ZNC - http://znc.sourceforge.net]
16:48 -!- HollyRain_ [~quassel@87.223.124.112] has joined #go-nuts
16:48 -!- wrtp [~rog@89.242.175.228] has quit [Ping timeout: 246 seconds]
16:48 -!- jeek [~jeek@pedobear.jeek.net] has quit [Ping timeout: 246 seconds]
16:48 -!- scoeri [~jdekoste@soft.vub.ac.be] has quit [Ping timeout: 246 seconds]
16:48 -!- awidegreen_ [~quassel@p5B060F67.dip.t-dialin.net] has quit [Ping
timeout: 246 seconds]
16:48 -!- pdusen [~pdusen@crob4-55.flint.umich.edu] has quit [Ping timeout: 246
seconds]
16:48 -!- JimmyRcom [~jimmy@adsl-75-53-46-62.dsl.rcsntx.sbcglobal.net] has quit
[Ping timeout: 246 seconds]
16:48 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 246
seconds]
16:48 -!- meatmanek [~meatmanek@mesingw.student.cwru.edu] has quit [Ping timeout:
246 seconds]
16:48 -!- rthc [~rthc@rrcs-67-52-50-170.west.biz.rr.com] has quit [Ping timeout:
246 seconds]
16:48 -!- HollyRain [~quassel@87.223.124.112] has quit [Ping timeout: 246 seconds]
16:48 -!- scm [justme@c190054.adsl.hansenet.de] has quit [Ping timeout: 246
seconds]
16:48 -!- franksalim [~frank@adsl-75-61-84-181.dsl.pltn13.sbcglobal.net] has quit
[Ping timeout: 246 seconds]
16:48 -!- lianj [~lianj@dslb-088-076-245-147.pools.arcor-ip.net] has quit [Ping
timeout: 246 seconds]
16:48 -!- tcoppi [~nuclear@206.251.36.97] has quit [Ping timeout: 246 seconds]
16:48 -!- prip [~foo@host149-132-dynamic.43-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 246 seconds]
16:48 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has quit [Ping
timeout: 246 seconds]
16:48 -!- drry [~drry@unaffiliated/drry] has quit [Ping timeout: 246 seconds]
16:49 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Ping timeout: 258
seconds]
16:49 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Read
error: Operation timed out]
16:49 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts
16:50 -!- Netsplit *.net <-> *.split quits: tokuhirom, path[l], tor5,
samferry, nighty^, shasbot, Guest47171, jessta
16:50 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts
16:52 -!- drhodes_ [~none@209-20-72-61.slicehost.net] has joined #go-nuts
16:52 -!- rthc [~rthc@rrcs-67-52-50-170.west.biz.rr.com] has joined #go-nuts
16:52 -!- drhodes [~none@209-20-72-61.slicehost.net] has quit [Ping timeout: 260
seconds]
16:52 -!- grahame [~grahame@billy.angrygoats.net] has quit [Ping timeout: 260
seconds]
16:52 -!- wayneeseguin [~wayneeseg@rrcs-72-45-208-165.nys.biz.rr.com] has quit
[Ping timeout: 260 seconds]
16:52 -!- zeroXten [~zeroXten@0x10.co.uk] has quit [Ping timeout: 260 seconds]
16:52 -!- grahame [~grahame@billy.angrygoats.net] has joined #go-nuts
16:52 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
16:52 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has joined #go-nuts
16:52 -!- Guest47171 [~irc@209.17.191.58] has joined #go-nuts
16:52 -!- shasbot [~shasbot@ip70-171-218-55.tc.ph.cox.net] has joined #go-nuts
16:52 -!- samferry [sam@unaffiliated/samferry] has joined #go-nuts
16:52 -!- tokuhirom [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has joined #go-nuts
16:52 -!- jessta [~jessta@li7-205.members.linode.com] has joined #go-nuts
16:53 -!- impl_ [impl@atheme/member/impl] has joined #go-nuts
16:53 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
16:54 -!- smcq__ [~smcq@smcq.net] has joined #go-nuts
16:54 -!- pcgod_ [~pcgod@pr.0xy.org] has joined #go-nuts
16:54 -!- chromed [chrome@mars.stupendous.net] has joined #go-nuts
16:54 -!- Netsplit *.net <-> *.split quits: djm, Meidor, viirya, cw, prip_,
KirkMcDonald, tav, homa_rano, tsung, kmeyer, (+12 more, use /NETSPLIT to show all
of them)
16:54 -!- scoeri [~jdekoste@soft.vub.ac.be] has joined #go-nuts
16:54 -!- rbn_ [~ruben@134.102.3.25] has joined #go-nuts
16:54 -!- mtd_ [~martin@ops-13.xades.com] has joined #go-nuts
16:54 -!- scoeri_ [~jdekoste@soft.vub.ac.be] has quit [Ping timeout: 264 seconds]
16:54 -!- smcq_ [~smcq@smcq.net] has quit [Ping timeout: 264 seconds]
16:54 -!- evilhackerdude [~stephan@78.46.203.42] has quit [Ping timeout: 264
seconds]
16:55 -!- impl [impl@atheme/member/impl] has quit [Ping timeout: 264 seconds]
16:55 -!- chrome [chrome@mars.stupendous.net] has quit [Ping timeout: 264 seconds]
16:55 -!- apexo [~apexo@daedalus.isaco.de] has quit [Ping timeout: 264 seconds]
16:55 -!- mtd [~martin@ops-13.xades.com] has quit [Ping timeout: 264 seconds]
16:55 -!- mitsuhiko [~mitsuhiko@ubuntu/member/mitsuhiko] has quit [Ping timeout:
264 seconds]
16:55 -!- pcgod [~pcgod@pr.0xy.org] has quit [Ping timeout: 264 seconds]
16:55 -!- apexo [~apexo@daedalus.isaco.de] has joined #go-nuts
16:55 -!- rbn [~ruben@134.102.3.25] has quit [Ping timeout: 264 seconds]
16:55 -!- borisc_ [~borisc@borisc2.csbnet.se] has quit [Remote host closed the
connection]
16:55 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Read error:
Connection reset by peer]
16:55 -!- borisc [~borisc@borisc2.csbnet.se] has joined #go-nuts
16:55 -!- samitheberber [~saada@melkinpaasi.cs.helsinki.fi] has quit [Remote host
closed the connection]
16:55 -!- samitheberber [~saada@melkinpaasi.cs.helsinki.fi] has joined #go-nuts
16:55 -!- Kumul [~Kumool@adsl-72-50-66-70.prtc.net] has joined #go-nuts
16:55 -!- werdan7_ [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
16:56 -!- HollyRain [~quassel@87.223.124.112] has joined #go-nuts
16:56 -!- boscop_ [~boscop@g225218094.adsl.alicedsl.de] has joined #go-nuts
16:56 -!- Netsplit over, joins: Meidor
16:56 -!- mitsuhiko_ [~mitsuhiko@hammett.srv.pocoo.org] has joined #go-nuts
16:56 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:8805:b70d:a60d:36bf] has joined
#go-nuts
16:57 -!- 50UAAHM7Z [~crasher@62.212.121.29] has joined #go-nuts
16:58 < HollyRain> could be initialized a function with any value by
default?
16:59 -!- JimmyRcom [~jimmy@adsl-75-53-46-62.dsl.rcsntx.sbcglobal.net] has joined
#go-nuts
16:59 -!- boscop [~boscop@g225218094.adsl.alicedsl.de] has quit [Ping timeout: 268
seconds]
17:01 < no_mind> HollyRain, default values in functions is supported, I
think
17:01 < jessta> nope
17:02 -!- roto [~roto@64.79.202.154] has quit [Write error: Broken pipe]
17:02 < jessta> no default parameter values
17:02 < no_mind> oops I meant "not supported"
17:02 -!- roto [~roto@64.79.202.154] has joined #go-nuts
17:02 -!- evilhackerdude [~stephan@78.46.203.42] has joined #go-nuts
17:02 -!- prip_ [~foo@host149-132-dynamic.43-79-r.retail.telecomitalia.it] has
joined #go-nuts
17:02 -!- meatmanek_ [~meatmanek@mesingw.STUDENT.CWRU.Edu] has joined #go-nuts
17:02 -!- tav [~tav@89.240.57.83] has joined #go-nuts
17:02 -!- gnuvince [~vince@72.0.219.6] has joined #go-nuts
17:02 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts
17:02 -!- plh [plh@gateway/shell/rootnode.net/x-xdalqydsasppofhu] has joined
#go-nuts
17:02 -!- akher0n [~akheron@lilja.asteriski.fi] has joined #go-nuts
17:02 -!- KirkMcDonald [~Kirk@pysoy/developer/KirkMcDonald] has joined #go-nuts
17:02 -!- cbeck [~cbeck@c-67-170-181-181.hsd1.or.comcast.net] has joined #go-nuts
17:02 -!- cw [~cw@parsec.stupidest.org] has joined #go-nuts
17:02 -!- JBeshir [~namegduf@eu.beshir.org] has joined #go-nuts
17:02 -!- mat_ [~mat@prod2.absolight.net] has joined #go-nuts
17:02 -!- Wi11 [~william@dhcp-0-14-bf-38-80-9c.cpe.powergate.ca] has joined
#go-nuts
17:02 -!- homa_rano [~erice@LAPDANCE.MIT.EDU] has joined #go-nuts
17:02 -!- kmeyer [~konrad@fedora/kmeyer] has joined #go-nuts
17:02 -!- tsung [~jon@112.104.53.151] has joined #go-nuts
17:02 -!- comboy [~comboy@tesuji.pl] has joined #go-nuts
17:02 -!- shawn [~shawn@208-78-98-92.slicehost.net] has joined #go-nuts
17:02 -!- djm [~djm@paludis/slacker/djm] has joined #go-nuts
17:02 -!- tgall_foo [~tgall@gentoo/developer/dr-who] has joined #go-nuts
17:02 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined
#go-nuts
17:04 -!- jeek [~jeek@pedobear.jeek.net] has joined #go-nuts
17:04 -!- Kumul [~Kumool@adsl-72-50-66-70.prtc.net] has left #go-nuts ["Poof!"]
17:05 < HollyRain> how to could be simulated?  I've a function which has to
be run a lot of times whith several parameters
17:05 < HollyRain> if it's possible to be simulated
17:06 < HollyRain> creating a struc to pass it those values by default?
17:06 -!- drmegahe1tz [~drmegaher@79.99.3.34] has joined #go-nuts
17:06 < jessta> make a new function with less parameters, that calls the
function with your parameters
17:07 -!- Rint___ [john@static-71-244-60-125.dllstx.fios.verizon.net] has joined
#go-nuts
17:08 -!- plexdev [~plexdev@arthur.espians.com] has joined #go-nuts
17:08 -!- Netsplit *.net <-> *.split quits: Rint__, chromed, awidegreen,
franksalim_, drmegahertz, kssreeram, plexdev`, pcgod, m-takagi_, rup, (+5 more,
use /NETSPLIT to show all of them)
17:09 -!- Netsplit over, joins: m-takagi_
17:10 -!- Netsplit over, joins: senneth, wolverian
17:10 -!- Netsplit over, joins: kssreeram
17:11 -!- merlin83_ [~merlin83@unaffiliated/merlin83] has quit [Ping timeout: 240
seconds]
17:11 -!- rup [Rupert@deathcoil.net] has joined #go-nuts
17:11 -!- boscop_ [~boscop@g225218094.adsl.alicedsl.de] has left #go-nuts []
17:11 -!- boscop [~boscop@g225218094.adsl.alicedsl.de] has joined #go-nuts
17:11 -!- mitsuhiko_ [~mitsuhiko@hammett.srv.pocoo.org] has quit [Excess Flood]
17:12 -!- mitsuhiko [~mitsuhiko@ubuntu/member/mitsuhiko] has joined #go-nuts
17:15 -!- pcgod [pcgod@pr.0xy.org] has joined #go-nuts
17:15 -!- ivan` [~ivan@li14-39.members.linode.com] has joined #go-nuts
17:15 -!- chromed [chrome@mars.stupendous.net] has joined #go-nuts
17:15 -!- wayneese1uin [~wayneeseg@rrcs-72-45-208-165.nys.biz.rr.com] has joined
#go-nuts
17:15 -!- franksalim_ [~frank@adsl-75-61-84-181.dsl.pltn13.sbcglobal.net] has
joined #go-nuts
17:15 -!- awidegreen [~quassel@p5B060F67.dip.t-dialin.net] has joined #go-nuts
17:15 -!- t5vaha01 [t5vaha01@rhea.oamk.fi] has joined #go-nuts
17:15 -!- merlin83 [~merlin83@cm24.delta241.maxonline.com.sg] has joined #go-nuts
17:15 -!- merlin83 [~merlin83@cm24.delta241.maxonline.com.sg] has quit [Changing
host]
17:15 -!- merlin83 [~merlin83@unaffiliated/merlin83] has joined #go-nuts
17:17 -!- Luixsia [~Luixsia@AToulouse-254-1-71-151.w81-49.abo.wanadoo.fr] has
joined #go-nuts
17:19 -!- megaboz [~none@unaffiliated/megaboz] has quit [Ping timeout: 245
seconds]
17:29 -!- uriel [~uriel@li43-28.members.linode.com] has joined #go-nuts
17:29 !bartol.freenode.net [freenode-info] help freenode weed out clonebots --
please register your IRC nick and auto-identify:
http://freenode.net/faq.shtml#nicksetup
17:32 < BlackBook> cthom_, Ah, okay, I see.  Thanks.
17:32 -!- atsampson [~ats@94-193-50-45.zone7.bethere.co.uk] has joined #go-nuts
17:33 < BlackBook> jessta, bookmarked.  Looks like exactly what I was hoping
to find.  Thanks.
17:36 -!- g0bl1n [~anonymous@a89-152-233-139.cpe.netcabo.pt] has quit [Quit:
g0bl1n]
17:37 -!- felipe [~felipe@my.nada.kth.se] has joined #go-nuts
17:37 -!- mitsuhiko [~mitsuhiko@ubuntu/member/mitsuhiko] has quit [Excess Flood]
17:37 -!- An_Knight [~Luixsia@AToulouse-254-1-71-151.w81-49.abo.wanadoo.fr] has
joined #go-nuts
17:37 -!- mitsuhiko [~mitsuhiko@ubuntu/member/mitsuhiko] has joined #go-nuts
17:37 -!- bryce [~bryce@c-76-121-192-70.hsd1.wa.comcast.net] has joined #go-nuts
17:41 -!- jimki_ [jmaki@sisapiiri.net] has joined #go-nuts
17:41 -!- Luixsia [~Luixsia@AToulouse-254-1-71-151.w81-49.abo.wanadoo.fr] has quit
[Ping timeout: 252 seconds]
17:41 -!- jimki [jmaki@sisapiiri.net] has quit [Ping timeout: 252 seconds]
17:41 -!- roto [~roto@64.79.202.154] has quit [Excess Flood]
17:42 -!- pjm0616 [~user@61.250.113.98] has quit [Max SendQ exceeded]
17:43 -!- roto [~roto@64.79.202.154] has joined #go-nuts
17:43 -!- roto [~roto@64.79.202.154] has quit [Excess Flood]
17:44 -!- roto [~roto@64.79.202.154] has joined #go-nuts
17:46 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
17:49 -!- bryce [~bryce@c-76-121-192-70.hsd1.wa.comcast.net] has quit [Quit:
bryce]
17:50 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving]
17:51 -!- Kashia [~Kashia@p4FEB7275.dip.t-dialin.net] has quit [Ping timeout: 265
seconds]
17:52 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: (
www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )]
17:53 -!- Kashia [~Kashia@p4FEB7275.dip.t-dialin.net] has joined #go-nuts
17:57 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
18:02 -!- Kashia [~Kashia@p4FEB7275.dip.t-dialin.net] has quit [Ping timeout: 265
seconds]
18:02 -!- zard [~dpx@c-68-35-150-172.hsd1.nm.comcast.net] has quit [Quit: zard]
18:03 -!- Kashia [~Kashia@p4FEB7275.dip.t-dialin.net] has joined #go-nuts
18:03 -!- BlackBook [~sjs@kernel-panic/member/TiBook] has quit [Quit: This
computer has gone to sleep]
18:03 -!- nf_ [~nf@203-214-147-220.perm.iinet.net.au] has joined #go-nuts
18:05 -!- General1337 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
18:06 -!- nf [~nf@124.171.56.103] has quit [Ping timeout: 268 seconds]
18:08 -!- General13372 [~support@71-93-97-216.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 276 seconds]
18:21 -!- wrtp [~rog@89.242.175.228] has joined #go-nuts
18:22 -!- nf_ [~nf@203-214-147-220.perm.iinet.net.au] has quit [Ping timeout: 264
seconds]
18:23 -!- thakis [~thakis@c-71-198-222-88.hsd1.ca.comcast.net] has joined #go-nuts
18:24 -!- Kashia [~Kashia@p4FEB7275.dip.t-dialin.net] has quit [Ping timeout: 265
seconds]
18:25 -!- nf [~nf@124-171-20-22.dyn.iinet.net.au] has joined #go-nuts
18:28 -!- Project-2501 [~Marvin@82.84.73.161] has quit [Quit: E se abbasso questa
leva che succ...]
18:30 -!- thakis [~thakis@c-71-198-222-88.hsd1.ca.comcast.net] has quit [Quit:
thakis]
18:36 -!- mbarkhau [~koloss@dslb-084-059-161-165.pools.arcor-ip.net] has joined
#go-nuts
18:42 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has quit
[Quit: Ciao!]
18:42 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has joined
#go-nuts
18:47 < HollyRain> why a char, cann't be concatenated with a string?
18:47 < HollyRain> s/concatenated/joined
18:48 < KirkMcDonald> For the same reason that you can't concatenate an int
with a []int.
18:53 -!- napsy [~luka@88.200.96.14] has quit [Ping timeout: 258 seconds]
18:55 < wrtp> it can
18:55 < wrtp> c := 'x'; s := "hello" + string c
18:55 < wrtp> oops
18:55 < wrtp> string(c)
19:03 -!- jophish [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts
19:04 -!- rhelmer [~rhelmer@adsl-69-107-68-251.dsl.pltn13.pacbell.net] has joined
#go-nuts
19:08 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has quit
[Excess Flood]
19:08 -!- megaboz [~megaboz@unaffiliated/megaboz] has joined #go-nuts
19:08 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has joined
#go-nuts
19:19 < KirkMcDonald> Well, yes, there is that.
19:24 -!- drhodes_ [~none@209-20-72-61.slicehost.net] has left #go-nuts []
19:25 -!- drhodes [~none@209-20-72-61.slicehost.net] has joined #go-nuts
19:35 -!- napsy [~luka@88.200.96.14] has joined #go-nuts
19:41 -!- johnsilver [debian-tor@gateway/tor-sasl/johnsilver] has joined #go-nuts
19:42 -!- mbarkhau [~koloss@dslb-084-059-161-165.pools.arcor-ip.net] has quit
[Quit: Leaving.]
19:53 -!- thakis [~thakis@dsl-63-249-108-8.static.cruzio.com] has joined #go-nuts
19:59 -!- johnsilver [debian-tor@gateway/tor-sasl/johnsilver] has quit [Quit: It
appears you're suffering from Neurotypical Disorder]
20:04 -!- ajstarks [~ajstarks@pool-98-109-198-180.nwrknj.fios.verizon.net] has
joined #go-nuts
20:05 -!- nettok [~netto@200.119.150.102] has joined #go-nuts
20:07 -!- ajstarks [~ajstarks@pool-98-109-198-180.nwrknj.fios.verizon.net] has
quit [Client Quit]
20:10 -!- g0bl1n [~anonymous@a89-152-233-139.cpe.netcabo.pt] has joined #go-nuts
20:13 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
20:13 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit
[Quit: Konversation terminated!]
20:14 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
20:19 -!- jshipley [~jshipley@174-23-125-69.slkc.qwest.net] has joined #go-nuts
20:22 -!- MattCampbell_ [~matt@adsl-75-37-228-92.dsl.wchtks.sbcglobal.net] has
joined #go-nuts
20:23 -!- MattCampbell_ [~matt@adsl-75-37-228-92.dsl.wchtks.sbcglobal.net] has
left #go-nuts []
20:23 -!- MattCampbell_ [~matt@adsl-75-37-228-92.dsl.wchtks.sbcglobal.net] has
joined #go-nuts
20:23 -!- Wiz126 [Wiz126@72.20.219.250] has quit [Ping timeout: 268 seconds]
20:23 -!- Kashia [~Kashia@port-92-200-65-221.dynamic.qsc.de] has joined #go-nuts
20:23 -!- MattCampbell_ [~matt@adsl-75-37-228-92.dsl.wchtks.sbcglobal.net] has
quit [Quit: ircII EPIC4-2.10 -- Are we there yet?]
20:24 -!- MattCampbell [~matt@adsl-75-37-228-92.dsl.wchtks.sbcglobal.net] has
joined #go-nuts
20:24 < MattCampbell> When writing a network server that I expect to be
I/O-bound, should I have a goroutine for each connection, or explicitly use
something like select or epoll?
20:24 -!- Wiz126 [Wiz126@72.20.219.250] has joined #go-nuts
20:28 < ni|> yes
20:28 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined
#go-nuts
20:28 < ni|> you can do both
20:28 < ni|> using goroutines for sending things down a chan
20:28 < ni|> or even chans down a chan
20:29 < smw> can I send an io.Reader data type to a function that expects a
bufio.Reader?
20:32 < smw> nm, I think the answer is no
20:32 < smw> but I could do the opposite
20:38 < MattCampbell> I think I'm going to write a Shoutcast-compatible
streaming audio server in Go as an exercise to learn the language.
20:38 < MattCampbell> I wrote one in Python years ago.
20:39 < smw> cool :-)
20:40 < smw> I was going to make a ddns client...  but then when I was
working with goconfig (for the configuration client) I realized it did not even
compile.  I fixed that problem but I am now having too much fun editing the
library
20:40 < smw> lol
20:43 < MattCampbell> What does goconfig do exactly?
20:43 < smw> it is a configuration file library.  It is for reading/writing
user editable config files
20:44 < smw> it is very close to python's configparser package
20:46 -!- Kashia [~Kashia@port-92-200-65-221.dynamic.qsc.de] has quit [Ping
timeout: 252 seconds]
20:48 < MattCampbell> Nice, I'll definitely want something like that.
20:49 < KirkMcDonald> smw: Does it mandate that all options be in sections
like ConfigParser does?
20:49 < smw> yep
20:49 < smw> I am making so many modifications, I plan to assume everything
is in default if the section is not specified.
20:49 < KirkMcDonald> Python has some good stuff which is worth stealing.
20:50 < smw> yep
20:50 < KirkMcDonald> I was going to port logging to Go at some point.
20:50 < smw> KirkMcDonald: should the config require sections?
20:50 < KirkMcDonald> smw: There are two things I always wanted from
ConfigParser.
20:51 < KirkMcDonald> smw: First, it only knows how to parse file objects.
Being able to parse a string could be useful.
20:51 < KirkMcDonald> (As it is, you need to use a StringIO object...
annoying.)
20:52 < KirkMcDonald> And 90% of the time I've needed a config file, I only
needed one section.
20:52 < smw> ok
20:52 < KirkMcDonald> Meaning that having to specify a section header (and
thus use that section name when accessing options) is annoying.
20:53 < smw> KirkMcDonald: You will still need to specify a section name.
But you can use "default".
20:53 < smw> is that better?  lol
20:53 < KirkMcDonald> Sure.
20:53 < smw> so far, I made it so that it compiles and gives better error
messages
20:54 < smw> I am splitting it into multiple files to make it easier to read
and adding support for any io.Reader/Writer (not just files)
20:55 -!- HollyRain [~quassel@87.223.124.112] has quit [Quit:
http://quassel-irc.org - Chat comfortably.  Anywhere.]
20:55 < smw> I am not sure how to do strings though...  Should I use
something like bufio (already being used)
20:55 -!- Kashia [~Kashia@port-92-200-105-49.dynamic.qsc.de] has joined #go-nuts
20:55 -!- cthom_ [~cthom@ip68-10-255-97.hr.hr.cox.net] has quit [Quit: Leaving]
20:55 < smw> or bytes.Buffer?
20:56 < KirkMcDonald> bytes.Buffer is highly analogous to StringIO.
20:56 < smw> ok
20:57 < smw> so I will have stringio built into the library (you won't need
to use it)
20:57 -!- mssm [~mssm@ip-95-221-74-236.bb.netbynet.ru] has quit [Ping timeout: 260
seconds]
20:59 -!- nanoo [~nano@95-89-197-214-dynip.superkabel.de] has quit [Ping timeout:
268 seconds]
21:03 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Read error:
Operation timed out]
21:06 < rlab> how to run 'go routines' in different process?
21:08 < dagle> rlab: Huh?  just go?
21:08 < rlab> yes, and use channel to get result
21:08 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:8805:b70d:a60d:36bf] has quit
[Quit: Leaving.]
21:09 < rlab> i wrote test, but it's load only one core
21:09 < dagle> rlab: You want to fork and exec and get the result?
21:09 < dagle> Aha.
21:09 < rlab> yes
21:09 -!- wrtp [~rog@89.242.175.228] has quit [Quit: wrtp]
21:10 < dagle> You want to use as many processors as possible?
21:10 < smw> rlab: golang.org/doc/go_programming_faq.html#Why_no_multi_CPU
21:10 -!- wrtp [~rog@89.242.175.228] has joined #go-nuts
21:11 -!- wrtp [~rog@89.242.175.228] has quit [Client Quit]
21:11 < rlab> yes, all which have in system
21:12 < rlab> ah...  see, smw: thanks!
21:13 < kmeyer> KirkMcDonald: (I may be a bit late) Hey, that was my idea!
:P
21:14 < kmeyer> Re: "Python has some good stuff which is worth stealing."
21:14 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #go-nuts
21:15 < KirkMcDonald> I already stole optparse.
21:15 < KirkMcDonald> So logging seems like the logical next step.
21:15 < smw> KirkMcDonald: I would like logging.  I do not know how python
does it.  But anything is better than what we already have
21:16 < dagle> In what way?
21:16 < KirkMcDonald> The main thing that Python does is separate the
notions of loggers and handlers.
21:17 < KirkMcDonald> Then it has the notion of a logging level, which
applies to both the logger and the handler.
21:18 < KirkMcDonald> Any given message is done at a certain level, and then
each logger and handler will filter out messages which are below its current
level.
21:19 -!- nettok_ [~netto@200.119.150.102] has joined #go-nuts
21:19 < KirkMcDonald> So you could pepper your code with 'logger.debug("This
is a debug message")', and these won't result in anything being logged unless you
drop the relevant logging level to DEBUG.
21:19 < dagle> Aha.  Ok.
21:19 < KirkMcDonald> (Though the string being passed as the message will
obviously still be evaluated.)
21:20 < KirkMcDonald> By separating loggers and handlers, this permits you
to associate many handlers with a given logger, or even associate many loggers
with a single handler.
21:21 < KirkMcDonald> Where a "handler" is just a thing representing a
destination for log messages.  There are standard handlers for stderr, for
appending to a file, or for using the syslog.
21:22 -!- MattCampbell [~matt@adsl-75-37-228-92.dsl.wchtks.sbcglobal.net] has quit
[Quit: ircII EPIC4-2.10 -- Are we there yet?]
21:22 -!- nettok [~netto@200.119.150.102] has quit [Ping timeout: 264 seconds]
21:24 -!- nettok__ [~netto@200.119.150.102] has joined #go-nuts
21:27 -!- johnsilver [debian-tor@gateway/tor-sasl/johnsilver] has joined #go-nuts
21:28 -!- nettok_ [~netto@200.119.150.102] has quit [Ping timeout: 264 seconds]
21:34 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving]
21:35 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
21:38 -!- nettok_ [~netto@200.119.150.102] has joined #go-nuts
21:42 -!- nettok__ [~netto@200.119.150.102] has quit [Ping timeout: 276 seconds]
21:44 -!- skelterjohn_ [~jasmuth@c-76-124-23-96.hsd1.nj.comcast.net] has joined
#go-nuts
21:51 -!- lux` [lux`@151.95.186.121] has joined #go-nuts
21:54 -!- nanoo [~nano@95-89-197-214-dynip.superkabel.de] has joined #go-nuts
21:54 -!- aho [~nya@e179183216.adsl.alicedsl.de] has joined #go-nuts
21:57 -!- usausa [~usa@pool-71-116-81-237.snfcca.dsl-w.verizon.net] has joined
#go-nuts
22:00 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
22:09 -!- nettok__ [~netto@200.119.150.102] has joined #go-nuts
22:12 < smw> KirkMcDonald: I fixed the two things you hate about the config
parser :-).  I renamed the package and I am going to upload it to google code
22:13 -!- nettok_ [~netto@200.119.150.102] has quit [Ping timeout: 240 seconds]
22:14 -!- nettok_ [~netto@200.119.150.102] has joined #go-nuts
22:15 -!- thakis_ [~thakis@216.239.45.130] has joined #go-nuts
22:18 -!- nettok__ [~netto@200.119.150.102] has quit [Ping timeout: 276 seconds]
22:19 -!- thakis [~thakis@dsl-63-249-108-8.static.cruzio.com] has quit [Ping
timeout: 246 seconds]
22:19 < jshipley> What would be the reason for allocating a slice with make
that had a length shorter than it's capacity?
22:19 < jshipley> If I tried 'p := make([]byte, 10, 50)', is there any way
to ever get access to p[10:50]?
22:20 -!- nettok__ [~netto@200.119.150.102] has joined #go-nuts
22:20 < smw> yeah
22:20 < jshipley> how?
22:20 < smw> p = p[0:11] would add one
22:23 < smw> jshipley: it is good for keeping track of how big your slice
actually is.  If is is an int slice, how would you know if p[11] is a 0 or just
not in use?
22:23 -!- nettok_ [~netto@200.119.150.102] has quit [Ping timeout: 248 seconds]
22:24 < jshipley> thanks for making it all make sense :)
22:24 < smw> :-)
22:26 < jshipley> I assume the only way to increase the capacity is to
make() a new slice and copy over the values?
22:26 < smw> yep
22:27 < smw> and you can see the capacity with cap([]slice)
22:27 < smw> the vector package can do that for you though
22:28 -!- thakis_ [~thakis@dsl-63-249-108-8.static.cruzio.com] has joined #go-nuts
22:30 -!- scm [justme@c190054.adsl.hansenet.de] has quit [Ping timeout: 258
seconds]
22:31 < jshipley> I don't see any vector.StringVector functions that would
return a []string.
22:31 -!- thakis [~thakis@216.239.45.130] has quit [Ping timeout: 276 seconds]
22:31 < smw> []string(theVector)
22:31 -!- scm [justme@c222160.adsl.hansenet.de] has joined #go-nuts
22:33 < smw> jshipley: you don't need a function for the conversion
22:33 < kmeyer> jshipley: vector.StringVector is defined as []string,
though, so you can just cast it, as smw says
22:33 < kmeyer> er:
22:33 < kmeyer> type StringVector []string
22:33 < jshipley> Thanks for the info.  It looks like it should be nearly
trivial to add support to the flag package to support multiple arguments of the
same name.
22:33 < smw> kmeyer: explained it better :-)
22:34 -!- lux` [lux`@151.95.186.121] has quit [Read error: Connection reset by
peer]
22:34 < kmeyer> Sure, but I think the intent of the flag package is to be
super basic.
22:35 < kmeyer> I think such a patch has already been rejected (or rsc or
someone said it would be rejected were it to be written).
22:37 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
22:39 < jshipley> It would still be pretty basic with a []string handler,
but I did see a recent message from Rob Pike saying how it could be done, and that
it probably isn't important to fix.
22:39 < smw> I made a fork of the goconfig library if anyone needs it.
http://code.google.com/p/goconf/.  The current goconfig library does not even
compile.  I added a few features but maintained backwards compatability (that
could change).
22:40 < smw> oh, and the site's documentation sucks :-P.
22:41 < smw> The godoc is not too bad though (mostly stolen from goconfig).
22:42 < jshipley> I guess I'm going to get around to writing an
overview/tutorial for optparse-go :)
22:42 < smw> :-)
22:42 < smw> KirkMcDonald is the expert if you need help.  He wrote it.
22:46 -!- rhelmer [~rhelmer@adsl-69-107-68-251.dsl.pltn13.pacbell.net] has quit
[Quit: rhelmer]
22:48 -!- SecretofMana [~mana@142.46.164.30] has quit [Ping timeout: 260 seconds]
22:51 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
22:51 -!- rhelmer [~rhelmer@adsl-69-107-68-251.dsl.pltn13.pacbell.net] has joined
#go-nuts
22:55 -!- nanooo [~nano@95-89-197-214-dynip.superkabel.de] has joined #go-nuts
22:57 -!- thakis [~thakis@dsl-63-249-108-8.static.cruzio.com] has quit [Quit:
thakis]
22:58 -!- nanoo [~nano@95-89-197-214-dynip.superkabel.de] has quit [Ping timeout:
268 seconds]
22:59 < plexdev> http://is.gd/b4c28 by [Andrew Gerrand] in go/src/pkg/http/
-- http: add HandleFunc as shortcut to Handle(path, HandlerFunc(func))
22:59 -!- nettok_ [~netto@200.119.150.102] has joined #go-nuts
23:01 -!- SecretofMana [~mana@142.46.164.30] has joined #go-nuts
23:01 -!- wuehlmaus [~wuehlmaus@p4FCC3A29.dip.t-dialin.net] has quit [Ping
timeout: 264 seconds]
23:02 -!- wuehlmaus [~wuehlmaus@p4FCC610D.dip.t-dialin.net] has joined #go-nuts
23:04 -!- nettok__ [~netto@200.119.150.102] has quit [Ping timeout: 276 seconds]
23:11 -!- homiziado [~ernestofr@78.130.9.208.rev.optimus.pt] has joined #go-nuts
23:13 -!- nettok__ [~netto@200.119.150.102] has joined #go-nuts
23:16 -!- nanooo [~nano@95-89-197-214-dynip.superkabel.de] has quit [Quit:
Leaving]
23:17 -!- nettok_ [~netto@200.119.150.102] has quit [Ping timeout: 264 seconds]
23:19 -!- nettok_ [~netto@200.119.150.102] has joined #go-nuts
23:19 < smw> does anyone know how goinstall works?  how can I make my pkg
goinstallable?
23:20 < exch> it's all here http://golang.org/cmd/goinstall/
23:21 < smw> how do I make a make file that would work?
23:23 -!- nettok__ [~netto@200.119.150.102] has quit [Ping timeout: 252 seconds]
23:23 -!- zard [~dpx@c-68-35-150-172.hsd1.nm.comcast.net] has joined #go-nuts
23:23 < exch> "Goinstall does not attempt to be a replacement for make.
Instead, it invokes "make install" after locating the package sources" Any
makefile will do.  If there isn't any.  goinstall makes one itself
23:24 < smw> ok
23:24 < smw> next, extremely stupid question.  How do I make a simple make
file?  lol
23:24 -!- johnsilver [debian-tor@gateway/tor-sasl/johnsilver] has quit [Quit:
leaving]
23:33 -!- nettok__ [~netto@200.119.150.102] has joined #go-nuts
23:33 -!- homiziado [~ernestofr@78.130.9.208.rev.optimus.pt] has quit [Quit:
homiziado]
23:36 -!- nettok_ [~netto@200.119.150.102] has quit [Ping timeout: 252 seconds]
23:37 -!- Vovchik [~Vova@IGLD-84-229-233-247.inter.net.il] has joined #go-nuts
23:39 -!- napsy [~luka@88.200.96.14] has quit [Ping timeout: 265 seconds]
23:40 < smw> exch: does goinstall keep data from when it checked before.
The first time I checked there were no files.  Then next time I did there are but
it still says "goinstall: goconf.googlecode.com/hg: package has no files"
23:41 < drhodes> smw: maybe the easiest way is to check out some of the
projects at http://go-lang.cat-v.org/pure-go-libs , steal one and modify
23:41 < smw> ok
23:41 < smw> drhodes: can you answer the next problem?  lol
23:42 < ampleyfly> http://mrbook.org/tutorials/make/
23:42 < jshipley> smw: Here's a really basic Makefile tutorial:
http://mrbook.org/tutorials/make/
23:42 < drhodes> smw: never seen goinstall, sry :)
23:43 < smw> goinstall looks really cool.  I think if you try to compile a
program that needs a library, it will fetch it for you.
23:44 < drhodes> that's really convenient.
23:44 < smw> yeah
23:44 < smw> it will also download dependencies
23:47 -!- nettok_ [~netto@200.119.150.102] has joined #go-nuts
23:49 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]]
23:50 -!- nettok__ [~netto@200.119.150.102] has quit [Ping timeout: 240 seconds]
23:53 -!- nettok__ [~netto@200.119.150.102] has joined #go-nuts
23:56 -!- nettok_ [~netto@200.119.150.102] has quit [Ping timeout: 268 seconds]
23:57 < jshipley> smw: Here's a Makefile that will build any .go files in
the same directory: http://pastebin.com/6WENRq8M
23:58 -!- nettok_ [~netto@200.119.150.102] has joined #go-nuts
--- Log closed Mon Mar 29 00:00:38 2010