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

--- Log opened Mon May 10 00:00:56 2010
00:01 -!- ikaros [~ikaros@g227029185.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
00:12 -!- segy [~segfault@pdpc/supporter/active/segy] has quit [Quit: leaving]
00:18 -!- jdp [~gu@75.97.120.11.res-cmts.senj.ptd.net] has joined #go-nuts
00:19 -!- mikedee [~quassel@91.111.19.139] has quit [Ping timeout: 276 seconds]
00:24 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
00:32 -!- segy [~segfault@pdpc/supporter/active/segy] has joined #go-nuts
00:36 < plexdev> http://is.gd/c1R53 by [Nigel Tao] in go/src/pkg/exp/draw/
-- exp/draw fast path for glyph images.
00:37 -!- segy [~segfault@pdpc/supporter/active/segy] has quit [Client Quit]
00:37 -!- segy [~segfault@pdpc/supporter/active/segy] has joined #go-nuts
00:39 -!- mikedee [~quassel@91.108.82.213] has joined #go-nuts
00:39 -!- mikedee [~quassel@91.108.82.213] has quit [Remote host closed the
connection]
00:52 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Ping
timeout: 246 seconds]
00:54 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
01:07 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Quit:
leaving]
01:07 -!- cmarcelo [~cmarcelo@187.59.127.177] has joined #go-nuts
01:07 -!- cmarcelo [~cmarcelo@187.59.127.177] has quit [Changing host]
01:07 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
01:15 -!- kota1111 [~kota1111@gw2.kbmj.jp] has joined #go-nuts
01:15 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
01:18 -!- BrowserUk [~irc1_20_B@89.240.38.0] has joined #go-nuts
01:19 -!- BrowserUk [~irc1_20_B@89.240.38.0] has left #go-nuts []
01:24 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit
[Ping timeout: 245 seconds]
01:31 -!- zyichi [~zyichi@124.205.180.154] has joined #go-nuts
02:00 -!- ikkebr [~ikke@unaffiliated/ikkebr] has quit []
02:00 -!- zyichi [~zyichi@124.205.180.154] has left #go-nuts []
02:34 -!- zcram [~zcram@67.140.191.90.dyn.estpak.ee] has quit [Quit: Leaving]
02:43 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
Leaving]
02:44 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
02:49 -!- kkress [~kkress@c-65-49-35-49.tilenetworks.com] has quit [Read error:
Connection reset by peer]
02:49 -!- Chinainvent [~yunkai@121.0.29.199] has joined #go-nuts
03:12 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Quit:
leaving]
03:13 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
03:13 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
03:20 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
03:42 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat
0.3.2]
03:50 -!- thiago__ [~thiago@189.107.167.126] has joined #go-nuts
03:53 -!- artefon [~thiago@189.107.167.126] has quit [Ping timeout: 245 seconds]
03:59 -!- tazjin [~tazjin@p5DC83E76.dip.t-dialin.net] has joined #go-nuts
04:04 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #go-nuts
04:13 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
04:16 < richardr> I see a lot of arguments passed in, or variables prefixed
with * - what exactly does this mean?  thanks
04:17 < jessta> richardr: they are pointers
04:18 < richardr> jessta: ah thanks.
04:22 -!- Squarism [~asdf@194.237.183.250] has joined #go-nuts
04:23 -!- aho [~nya@f052126134.adsl.alicedsl.de] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
04:31 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
04:34 -!- arvindht [~7c7cdbfa@gateway/web/freenode/x-gmcwologmdiyxlkm] has joined
#go-nuts
04:44 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has quit [Quit:
nchaimov]
04:54 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined
#go-nuts
04:58 -!- tazjin [~tazjin@p5DC83E76.dip.t-dialin.net] has quit [Remote host closed
the connection]
05:02 -!- scm [justme@c222050.adsl.hansenet.de] has quit [Ping timeout: 264
seconds]
05:03 -!- scm [justme@c178234.adsl.hansenet.de] has joined #go-nuts
05:07 -!- illya77 [~illya77@75-49-133-95.pool.ukrtel.net] has joined #go-nuts
05:08 -!- thiago__ [~thiago@189.107.167.126] has quit [Ping timeout: 245 seconds]
05:20 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Ping
timeout: 276 seconds]
05:27 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
05:28 -!- gospch [~gospch@p5088BA12.dip.t-dialin.net] has quit [Disconnected by
services]
05:28 -!- gozpch [~gospch@p5088E650.dip.t-dialin.net] has joined #go-nuts
05:32 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
05:48 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Quit: Leaving]
05:48 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
05:52 -!- mattikus [~mattikus@ip68-227-143-68.br.br.cox.net] has joined #go-nuts
05:52 -!- mattikus [~mattikus@ip68-227-143-68.br.br.cox.net] has quit [Client
Quit]
05:56 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
06:01 -!- Adys [~Adys@unaffiliated/adys] has quit [Read error: Connection reset by
peer]
06:06 -!- itrekkie [~itrekkie@ip68-228-245-244.ph.ph.cox.net] has joined #go-nuts
06:12 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
06:16 -!- kaigan|work [~kaigan@87.253.78.194] has joined #go-nuts
06:18 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
06:29 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
06:36 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 240 seconds]
06:39 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
06:40 -!- wrtp [~rog@78.144.165.123] has joined #go-nuts
06:41 < manveru> could someone help me come up with a hashing function?
06:42 < manveru> it seems like map cannot take an array or slice as key, so
i'd like to create a key from two ints
06:42 < manveru> the order of the ints is important...  which kinda gives me
headaches
06:43 < manveru> and i'd rather not convert them to a string and run md5
over them if possible
06:43 < taruti> manveru: a string can be a key ;)
06:43 < manveru> hmm, wait, md5 wouldn't be needed, right?
06:43 < manveru> so something like key := Sprintf("%d,%d", a, b)
06:44 < manveru> ok...  but that's not very efficient, is it?
06:44 < KirkMcDonald> manveru: What kind of ints?
06:44 < KirkMcDonald> Just the "int" type?
06:44 < manveru> yeah
06:45 < manveru> they're x and y coordinates, so actually uint would do
06:46 < manveru> but map len is limited to int, afaik
06:46 < manveru> and i won't have that many elements anyway
06:48 < KirkMcDonald> My thinking being that you could take two uint32s and
turn them into a uint64.
06:48 < manveru> hmm
06:49 < manveru> uint64([]uint32{a, b}) ?
06:49 < KirkMcDonald> x : = uint64(a); x <<= 32; x += b
06:49 < KirkMcDonald> s/: =/:=/
06:49 < chressie> u := a<<32|b
06:49 < KirkMcDonald> Yeah!  That, too.
06:49 < manveru> heh
06:49 < KirkMcDonald> Well.
06:49 < KirkMcDonald> You might need uint64(a)
06:50 < manveru> yeah, i'd need that
06:50 < manveru> so bit shifting magic it is
06:50 < manveru> thank you very much...  my GC will send you cristmas cards
06:52 -!- tvw [~tv@e182074043.adsl.alicedsl.de] has joined #go-nuts
06:54 < manveru> wonderful, no collisions anymore :)
07:02 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has joined
#go-nuts
07:02 -!- itrekkie [~itrekkie@ip68-228-245-244.ph.ph.cox.net] has quit [Quit:
itrekkie]
07:02 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-179-135.clienti.tiscali.it] has
joined #go-nuts
07:10 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
07:13 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 252 seconds]
07:19 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 248 seconds]
07:24 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
07:51 -!- illya77 [~illya77@75-49-133-95.pool.ukrtel.net] has quit [Quit: illya77]
07:58 < taruti> Does anyone have a compiling version of gotags?
08:02 < yebyen> can someone look at this function for me?
08:02 < yebyen> or tell me something about go routines and how to make them
yield
08:02 < yebyen> http://paste.pocoo.org/show/212171/
08:02 < taruti> The one on the web refuses to compile
08:03 < yebyen> for some absurd reason, if I don't print a character inside
of this thread, it never yields...
08:04 < yebyen> the lock and unlock statements are correct, if I add the
print there is no problem, and all of my threads chug on merrily...  this is the
only bug I have left in my homework due wednesday :D
08:04 < taruti> yebyen: why would it yield?
08:04 < taruti> yebyen: why not message := <-ch.write ?
08:04 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
08:05 < taruti> you are looping there for no reason
08:05 < yebyen> taruti: it looks that way from here, but this function gets
run once...
08:05 < yebyen> like this:
08:05 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
08:05 < yebyen> go func() { fromUserToAll(ch) }()
08:05 < yebyen> oh
08:05 < yebyen> i see what you're saying
08:05 < yebyen> why not just block there
08:06 < yebyen> well, let me see if there's a reason...
08:06 < yebyen> yeah
08:06 < yebyen> because the data going into that channel is coming from a
websocket
08:06 < yebyen> well
08:06 < yebyen> hmm
08:07 < taruti> you don't want a busy-loop
08:07 < yebyen> i guess I just have to make sure it puts the empty string in
the channel when the function is meant to terminate
08:08 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:08 < yebyen> I think that's why I added the busy loop
08:08 < yebyen> it's not in scope here, where I would put the empty string
into the channel
08:08 < yebyen> *fixes something*
08:11 -!- tibshoot [~tibshoot@gw-puteaux.linagora.com] has joined #go-nuts
08:15 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
08:17 -!- kota1111 [~kota1111@gw2.kbmj.jp] has quit [Quit: Leaving...]
08:19 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
08:19 < yebyen> yep
08:19 < yebyen> that works great
08:19 < yebyen> thanks
08:19 < yebyen> no busy loop
08:20 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has
joined #go-nuts
08:24 -!- tvw [~tv@e182074043.adsl.alicedsl.de] has quit [Remote host closed the
connection]
08:29 -!- tibshoot [~tibshoot@gw-puteaux.linagora.com] has quit [Remote host
closed the connection]
08:33 -!- tibshoot [~tibshoot@gw-puteaux.linagora.com] has joined #go-nuts
08:37 -!- ikaros [~ikaros@f052057077.adsl.alicedsl.de] has joined #go-nuts
08:40 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
08:47 -!- hcatlin [~hcatlin@host81-154-247-157.range81-154.btcentralplus.com] has
joined #go-nuts
08:47 -!- hcatlin [~hcatlin@host81-154-247-157.range81-154.btcentralplus.com] has
quit [Changing host]
08:47 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
08:58 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has quit [Ping
timeout: 260 seconds]
09:01 -!- kingfishr [~kingfishr@c-98-201-60-173.hsd1.tx.comcast.net] has joined
#go-nuts
09:07 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]]
09:21 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
09:22 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
09:26 -!- ahihi [~generic@cs27127176.pp.htv.fi] has quit [Ping timeout: 265
seconds]
09:30 -!- felipe [~felipe@my.nada.kth.se] has quit [Ping timeout: 276 seconds]
09:31 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
09:31 -!- adu [~ajr@pool-173-66-16-26.washdc.fios.verizon.net] has joined #go-nuts
09:38 < adu> hi
09:45 -!- tav [~tav@2001:0:53aa:64c:0:368d:b16e:ee6a] has quit [Ping timeout: 248
seconds]
09:45 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]]
09:53 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
09:54 -!- Squarism [~asdf@194.237.183.250] has quit [Ping timeout: 246 seconds]
09:58 -!- david__ [~david@ip72-196-18-84.om.om.cox.net] has joined #go-nuts
09:59 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
09:59 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
09:59 -!- Squarism [~asdf@194.237.183.250] has joined #go-nuts
10:01 -!- david_ [~david@ip72-196-18-84.om.om.cox.net] has quit [Ping timeout: 246
seconds]
10:07 -!- ahihi [~generic@cs27127176.pp.htv.fi] has joined #go-nuts
10:08 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]]
10:11 -!- tav [~tav@2001:0:53aa:64c:0:368d:b16e:ee6a] has joined #go-nuts
10:13 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
10:14 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
10:15 < manveru> taruti: yeah, i made one
10:16 < manveru> sent it to the author, but he didn't update it yet
10:16 < manveru> taruti: http://gist.github.com/390532
10:17 < taruti> manveru: already patched mine also.
10:17 < taruti> manveru: but thanks anyways.
10:21 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has joined
#go-nuts
10:23 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
10:25 -!- ikaros [~ikaros@f052057077.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
10:28 -!- path[l] [~path@59.162.86.164] has quit [Client Quit]
10:36 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Read error: Connection reset by peer]
10:37 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
10:42 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
10:42 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
10:47 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Read error: Connection reset by peer]
10:48 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
10:55 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
10:55 -!- Surma [~surma@91-64-29-245-dynip.superkabel.de] has joined #go-nuts
10:55 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
10:56 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
10:59 -!- david_ [~david@ip72-196-18-84.om.om.cox.net] has joined #go-nuts
11:00 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has joined
#go-nuts
11:03 -!- david__ [~david@ip72-196-18-84.om.om.cox.net] has quit [Ping timeout:
245 seconds]
11:03 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
11:04 -!- fwiffo [~none@unaffiliated/fwiffo] has joined #go-nuts
11:07 -!- ikke [~ikkibr@unaffiliated/ikkebr] has joined #go-nuts
11:09 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat
0.3.2]
11:09 -!- SugarBear [~stephen.s@91.86.14.143] has joined #go-nuts
11:13 -!- gisikw_ [~gisikw@137.28.186.120] has joined #go-nuts
11:17 -!- gisikw [~gisikw@137.28.246.34] has quit [Remote host closed the
connection]
11:18 -!- gisikw_ [~gisikw@137.28.186.120] has left #go-nuts []
11:18 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
11:18 -!- gisikw [~gisikw@137.28.186.120] has joined #go-nuts
11:27 -!- sachkris [~sachin@117.254.126.6] has joined #go-nuts
11:29 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts
11:29 -!- lux` [lux`@151.95.180.63] has joined #go-nuts
11:29 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
11:34 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Read error: Connection reset by peer]
11:35 -!- sachkris [~sachin@117.254.126.6] has quit [Quit: Ex-Chat]
11:35 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
11:41 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
11:47 -!- ikaros [~ikaros@guests174.externals.de] has joined #go-nuts
11:49 -!- dwest [~dwest@li52-151.members.linode.com] has joined #go-nuts
11:50 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
11:58 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has joined #go-nuts
11:59 -!- yashi [~yashi@dns1.atmark-techno.com] has quit [Remote host closed the
connection]
12:02 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
12:02 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
12:08 -!- SugarBear [~stephen.s@91.86.14.143] has quit []
12:09 -!- mertimor [~mertimor@132.252.243.7] has joined #go-nuts
12:11 -!- mertimor [~mertimor@132.252.243.7] has quit [Client Quit]
12:11 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
12:12 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
12:13 -!- artefon [~thiago@189.107.207.44] has joined #go-nuts
12:21 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Disconnected by
services]
12:21 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
12:35 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
12:42 -!- carllerche [~carllerch@83.145.221.212] has joined #go-nuts
12:46 -!- GilJ [~gilles@vpnq073.ugent.be] has joined #go-nuts
12:50 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
joined #go-nuts
12:52 -!- tor5 [~tor@c-457171d5.04-50-6c756e10.cust.bredbandsbolaget.se] has
joined #go-nuts
12:54 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Ping timeout: 240
seconds]
12:56 -!- carllerche [~carllerch@83.145.221.212] has quit [Quit: carllerche]
12:58 < richardr> Any video tutorials that go over the syntax of the Go
language briefly out there?
13:02 -!- lmoura [~lauromour@200.184.118.130] has joined #go-nuts
13:03 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
13:05 -!- tibshoot [~tibshoot@gw-puteaux.linagora.com] has quit [Read error:
Connection reset by peer]
13:06 -!- tibshoot [~tibshoot@gw-puteaux.linagora.com] has joined #go-nuts
13:07 -!- tav_ [~tav@2001:0:53aa:64c:0:368d:b16e:ee6a] has joined #go-nuts
13:09 -!- tav [~tav@2001:0:53aa:64c:0:368d:b16e:ee6a] has quit [Read error:
Connection reset by peer]
13:11 -!- tibshoot [~tibshoot@gw-puteaux.linagora.com] has quit [Remote host
closed the connection]
13:13 -!- kaigan|work [~kaigan@87.253.78.194] has quit [Quit: kaigan|work]
13:13 -!- tibshoot [~tibshoot@gw-puteaux.linagora.com] has joined #go-nuts
13:20 -!- alehorst [~alehorst@187.59.26.159] has quit [Remote host closed the
connection]
13:22 -!- alehorst [~alehorst@187.59.26.159] has joined #go-nuts
13:24 -!- kanru [~kanru@61-228-156-86.dynamic.hinet.net] has joined #go-nuts
13:27 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Ping
timeout: 246 seconds]
13:28 -!- warthurton_ [~warthurto@pdpc/supporter/active/warthurton] has joined
#go-nuts
13:29 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
13:30 -!- warthurton_ [~warthurto@pdpc/supporter/active/warthurton] has quit
[Client Quit]
13:34 -!- carllerche [~carllerch@cs78149209.pp.htv.fi] has joined #go-nuts
13:34 -!- terrex [~terrex@183.38.222.87.dynamic.jazztel.es] has joined #go-nuts
13:35 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
13:40 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
13:43 -!- arvindht [~7c7cdbfa@gateway/web/freenode/x-gmcwologmdiyxlkm] has quit
[Quit: Page closed]
13:46 -!- GilJ [~gilles@vpnq073.ugent.be] has quit [Ping timeout: 276 seconds]
13:49 -!- warthurton [~warthurto@api.waynerware.com] has joined #go-nuts
13:50 < bortzmeyer> I do not find a way to have a time out while reading
from a channel.  Did I read the manual too fast?
13:50 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
13:52 -!- warthurton [~warthurto@api.waynerware.com] has left #go-nuts []
13:52 -!- GilJ [~gilles@zeus.ugent.be] has joined #go-nuts
13:55 < uriel> bortzmeyer: that is not how channels work
13:55 < uriel> bortzmeyer: use another goroutine that sleeps and sends a
notification via an extra channel and a select
13:55 < bortzmeyer> I've just reread Hoare's book and _his_ channels have
timeout :-)
13:55 -!- Surma [~surma@91-64-29-245-dynip.superkabel.de] has quit [Quit:
Leaving.]
13:56 < bortzmeyer> uriel: OK, as in
http://golang.org/doc/go_spec.html#Select_statements
13:56 * uriel doesn't see the sense of having channel timeouts
13:57 < uriel> bortzmeyer: yes, that is a select (also known as an 'alt' in
limbo lingo)
13:57 < bortzmeyer> Hoare sees it and he is Our Master :-)
13:58 < uriel> AFAIK the original CSP didn't have channels, or at least not
as a first class object, and you couldn't send channels down channels and things
like that
13:59 < richardr> Does anyone know if there are any brief video tutorials
that go over the syntax of the GO language out there?
13:59 -!- warthurton [~warthurto@api.waynerware.com] has joined #go-nuts
14:00 < uriel> richardr: did you watch rob's presentation?
14:00 < richardr> uriel: Nope, do you have a link?
14:00 < uriel> and really, what there is to go over?  reading the tutorial
doesn't take long, and the syntax is prety simple
14:00 < uriel> richardr: it is linked form the golang.org front page
14:00 * uriel sighs
14:00 < richardr> uriel: Oh, thanks heaps.
14:01 < uriel> richardr: it is under 'tech talk' on the menu
14:02 < uriel> (it really should have a more descriptive name and be more
prominent, i think)
14:02 < uriel> but note that some bits of the syntax have changed since that
talk was recorded, eg: you don't need any semicolons at all anywhere
14:02 < uriel> (but they are allowed, so the change is for the most part
backwards-compatible, just let gofmt be your guide)
14:02 < richardr> uriel: yeah sorry, i'm not sure how I missed that.  it is
a little hard to search for 'go' resources on Google.
14:03 < uriel> richardr: http://go-lang.cat-v.org/go-search
14:03 < richardr> Haha!
14:03 < richardr> Awesome.
14:03 < uriel> enjoy
14:06 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
14:10 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Read error: Connection reset by peer]
14:11 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
14:14 -!- GilJ [~gilles@zeus.ugent.be] has quit [Ping timeout: 260 seconds]
14:15 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
14:15 -!- yashi [~yashi@dns1.atmark-techno.com] has joined #go-nuts
14:16 -!- warthurton_ [~warthurto@pdpc/supporter/active/warthurton] has joined
#go-nuts
14:18 -!- warthurton_ [~warthurto@pdpc/supporter/active/warthurton] has quit
[Client Quit]
14:19 -!- warthurton [~warthurto@api.waynerware.com] has quit [Changing host]
14:19 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has joined
#go-nuts
14:20 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
14:23 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
14:23 -!- adu [~ajr@pool-173-66-16-26.washdc.fios.verizon.net] has quit [Quit:
adu]
14:31 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 260 seconds]
14:32 -!- Venom_X [~pjacobs@71.20.102.220] has joined #go-nuts
14:35 -!- felipe [~felipe@my.nada.kth.se] has joined #go-nuts
14:39 -!- Venom_X_ [~pjacobs@71.20.102.220] has joined #go-nuts
14:43 -!- Venom_X [~pjacobs@71.20.102.220] has quit [Ping timeout: 276 seconds]
14:47 < damjan> hi, how do I merge two 'bytes' strings ?
14:48 < exch> check out bytes.Join()
14:51 < damjan> hm, Im a newb, so I have a var id, and I wan't to return a
[]bytes of the id concatenated with " some text\n"
14:51 < damjan> maybe I need bytes.Add
14:52 -!- artefon [~thiago@189.107.207.44] has quit [Ping timeout: 240 seconds]
14:53 < wrtp> anyone know what platform ideone runs on?
14:53 < exch> is 'id' a string?
14:53 < damjan> exch: id is a []bytes
14:54 < wrtp> damjan: then bytes.Add should do exactly what you want
14:55 < wrtp> bytes.Add(id, []byte(" some text\n"))
14:55 < damjan> seem I must convert " some text\n" to a ...
14:55 < damjan> right
14:55 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 264
seconds]
14:55 < exch> []byte("some text\n")
14:57 < damjan> cannot convert " \n" (type string) to type []uint8 in
conversion
14:57 < exch> are you using an old version of Go? Cos that should work
14:58 < damjan> ah..  it might be oldish :)
14:59 -!- tcoppi
[~nuclear@57c3ed63-1294-45bd-a8e8-cdcc07cfa16f.static.grokthis.net] has quit [Ping
timeout: 246 seconds]
14:59 -!- tcoppi
[~nuclear@57c3ed63-1294-45bd-a8e8-cdcc07cfa16f.static.grokthis.net] has joined
#go-nuts
15:06 -!- Fish-Work [~Fish@86.65.182.207] has quit [Read error: Connection reset
by peer]
15:06 -!- Venom_X_ [~pjacobs@66.54.185.131] has joined #go-nuts
15:07 -!- Venom_X [~pjacobs@71.20.102.220] has quit [Ping timeout: 252 seconds]
15:08 -!- artefon [~thiago@189.107.231.214] has joined #go-nuts
15:10 < damjan> trying to compile a new version of Go
15:10 < damjan> /opt/go/bin/gotest: line 184: 24449 Killed $E ./$O.out "$@"
15:11 < damjan> this is under %% making cmd/hgpatch %%
15:12 -!- ajbouh [~adamb@c-24-61-22-68.hsd1.ma.comcast.net] has joined #go-nuts
15:15 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
15:18 -!- ShadowIce_ [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
15:19 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Ping timeout:
260 seconds]
15:20 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
15:21 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has quit [Ping
timeout: 260 seconds]
15:22 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has quit [Ping
timeout: 240 seconds]
15:22 -!- kanru [~kanru@61-228-156-86.dynamic.hinet.net] has quit [Quit: WeeChat
0.3.2]
15:23 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
15:23 -!- ShadowIce_ [pyoro@unaffiliated/shadowice-x841044] has quit [Ping
timeout: 240 seconds]
15:24 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
15:25 -!- carllerche [~carllerch@cs78149209.pp.htv.fi] has quit [Quit: carllerche]
15:27 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has joined #go-nuts
15:27 -!- tumdum [~tumdum@aug8.neoplus.adsl.tpnet.pl] has joined #go-nuts
15:27 -!- tumdum [~tumdum@aug8.neoplus.adsl.tpnet.pl] has quit [Changing host]
15:27 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts
15:32 -!- ikaros [~ikaros@guests174.externals.de] has quit [Quit: Leave the magic
to Houdini]
15:33 -!- david_ [~david@ip72-196-18-84.om.om.cox.net] has quit [Remote host
closed the connection]
15:33 -!- artefon [~thiago@189.107.231.214] has quit [Ping timeout: 240 seconds]
15:41 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
quit [Quit: leaving]
15:42 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has
quit [Ping timeout: 240 seconds]
15:46 -!- ikkebr [~ikke@unaffiliated/ikkebr] has joined #go-nuts
15:56 -!- ikaros [~ikaros@f052057077.adsl.alicedsl.de] has joined #go-nuts
16:01 -!- gisikw [~gisikw@137.28.186.120] has quit [Quit: Leaving]
16:01 -!- gisikw [~gisikw@137.28.186.120] has joined #go-nuts
16:09 -!- tvw [~tv@e182074043.adsl.alicedsl.de] has joined #go-nuts
16:19 -!- mk64ftw_ [~mk64ftw@stillraging.xen.prgmr.com] has joined #go-nuts
16:24 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has quit [Quit:
ZNC - http://znc.sourceforge.net]
16:24 -!- warthurton [~warthurto@api.waynerware.com] has joined #go-nuts
16:24 -!- warthurton [~warthurto@api.waynerware.com] has quit [Client Quit]
16:24 -!- Chinainvent [~yunkai@121.0.29.199] has quit [Ping timeout: 246 seconds]
16:26 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has joined
#go-nuts
16:29 -!- Xera` [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
16:29 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 276 seconds]
16:30 -!- ikkebr [~ikke@unaffiliated/ikkebr] has quit []
16:30 -!- GilJ [~gilles@62.88.27.154] has joined #go-nuts
16:32 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-179-135.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
16:32 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
16:32 -!- fwiffo [~none@unaffiliated/fwiffo] has quit [Quit: Lost terminal]
16:38 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
16:38 -!- Netsplit *.net <-> *.split quits: Xera^
16:38 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Read error: Connection reset by peer]
16:39 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
16:40 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has quit [Quit:
ZNC - http://znc.sourceforge.net]
16:41 -!- fwiffo [~none@unaffiliated/fwiffo] has joined #go-nuts
16:42 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has joined
#go-nuts
16:46 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:47 -!- ShadowIce_ [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:49 -!- jhh [~jhh@f049042170.adsl.alicedsl.de] has joined #go-nuts
16:50 < jhh> I'm trying to parse a string to a date.  I'm getting the error
msg ` parsing time "2010-01-09.12-51-18 " as "%Y-%m-%d.%H-%M-%S ": cannot parse ""
as "%Y-%m-%d.%H-%M-%S " '
16:50 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Ping timeout:
276 seconds]
16:50 < jhh> i don't understand what i'm doing wrong
16:51 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:52 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has quit [Ping
timeout: 264 seconds]
16:52 -!- terrex [~terrex@183.38.222.87.dynamic.jazztel.es] has quit [Read error:
Connection reset by peer]
16:53 -!- ShadowIce_ [pyoro@unaffiliated/shadowice-x841044] has quit [Ping
timeout: 265 seconds]
16:54 -!- terrex [~terrex@183.38.222.87.dynamic.jazztel.es] has joined #go-nuts
16:56 -!- gisikw [~gisikw@137.28.186.120] has quit [Quit: gisikw]
17:01 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Read error: Connection reset by peer]
17:01 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
17:03 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
17:04 -!- yashi [~yashi@dns1.atmark-techno.com] has quit [Remote host closed the
connection]
17:04 -!- kkress-screen [~kkress@c-65-49-35-49.tilenetworks.com] has joined
#go-nuts
17:09 < jhh> oh, formats look like that: "2006-01-02.15-04-05"
17:09 < jhh> that is weired
17:10 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
17:11 -!- SugarBear [~stephen.s@91.86.14.143] has joined #go-nuts
17:13 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Ping timeout:
240 seconds]
17:24 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
17:25 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
17:25 < kimelto> moin
17:26 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
17:27 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
17:27 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 246 seconds]
17:32 -!- GilJ [~gilles@62.88.27.154] has quit [Remote host closed the connection]
17:35 -!- PSW [~PSW@cpc2-bele3-0-0-cust70.belf.cable.ntl.com] has joined #go-nuts
17:36 -!- PSW [~PSW@cpc2-bele3-0-0-cust70.belf.cable.ntl.com] has left #go-nuts []
17:38 -!- mhi_ [~mhi@home.zedat.fu-berlin.de] has left #go-nuts []
17:39 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
17:46 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has joined
#go-nuts
17:49 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
17:50 -!- cmarcelo [~cmarcelo@200.184.118.130] has joined #go-nuts
17:50 -!- cmarcelo [~cmarcelo@200.184.118.130] has quit [Changing host]
17:50 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
17:50 -!- mertimor [~mertimor@p4FE74C1D.dip.t-dialin.net] has joined #go-nuts
17:54 -!- alehorst [~alehorst@187.59.26.159] has quit [Quit: Leaving.]
17:58 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout:
633 seconds]
17:58 -!- Venom_X_ [~pjacobs@71.20.102.220] has joined #go-nuts
18:00 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
quit [Read error: Connection reset by peer]
18:01 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Ping timeout: 258 seconds]
18:06 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
18:06 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
18:06 -!- allengeorge [~allengeor@74.12.151.31] has quit [Quit: Leaving]
18:07 -!- SugarBear [~stephen.s@91.86.14.143] has quit []
18:13 -!- allengeorge [~allengeor@74.12.151.31] has joined #go-nuts
18:13 -!- bortzmeyer1 [~stephane@2a01:e35:8bd9:8bb0:b097:f99d:68d5:e062] has
joined #go-nuts
18:31 -!- ajbouh [~adamb@c-24-61-22-68.hsd1.ma.comcast.net] has quit [Quit:
ajbouh]
18:35 -!- tvw [~tv@e182074043.adsl.alicedsl.de] has quit [Read error: Connection
reset by peer]
18:39 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has joined
#go-nuts
18:39 -!- Ikkebr [~ikkibr@unaffiliated/ikkebr] has joined #go-nuts
18:40 -!- ikke [~ikkibr@unaffiliated/ikkebr] has quit [Ping timeout: 246 seconds]
18:48 -!- barismetin [~barismeti@kde/developer/baris] has joined #go-nuts
18:58 < allengeorge> Isn't '\' the source-code continuation character in Go?
18:58 -!- eikenberry [~jae@mail.zhar.net] has joined #go-nuts
18:59 < allengeorge> How come I can't do myStruct :=
&MyStruct{Field:"value"\
18:59 < allengeorge> , Field2:"value", Field3:"value"}
19:04 < exch> you don't need the \
19:04 < exch> Just make sure the , is at the end of the previous line
19:06 < allengeorge> Ok, but let's say I wanted to split a single line of
code up, isn't '\' the way to do it?
19:09 -!- mertimor [~mertimor@p4FE74C1D.dip.t-dialin.net] has quit [Quit:
mertimor]
19:09 < exch> you can split lines up without a continuation character..  For
the most part at least.  Not sure there even is such a character
19:09 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:09 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
19:10 -!- mertimor [~mertimor@p4FE74C1D.dip.t-dialin.net] has joined #go-nuts
19:10 -!- mertimor [~mertimor@p4FE74C1D.dip.t-dialin.net] has quit [Client Quit]
19:13 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 264 seconds]
19:13 < allengeorge> Interesting, I swear I saw the continuation character
in the initial Go video, in one of the constants; maybe it only applies in very
limited cases
19:14 < allengeorge> Thanks for your help exch
19:14 -!- carllerche [~carllerch@pc-ab32.wlan.inet.fi] has joined #go-nuts
19:16 -!- fwiffo [~none@unaffiliated/fwiffo] has quit [Quit: Lost terminal]
19:19 -!- ajbouh [~adamb@c-71-233-151-63.hsd1.ma.comcast.net] has joined #go-nuts
19:20 < exch> there's been a fair few changes since that video was recorded.
But I may just not know about it.  Perhaps someone else can confirm
19:23 -!- gisikw [~gisikw@137.28.186.120] has joined #go-nuts
19:32 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
19:33 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
19:34 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
19:40 < wrtp> allengeorge: you can use '\' as a continuation character
inside a double-quoted string
19:43 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
19:54 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
19:55 -!- aho [~nya@g227040040.adsl.alicedsl.de] has joined #go-nuts
19:56 -!- illya77 [~illya77@7-243-133-95.pool.ukrtel.net] has joined #go-nuts
19:57 -!- carllerche [~carllerch@pc-ab32.wlan.inet.fi] has quit [Quit: carllerche]
20:01 -!- illya77 [~illya77@7-243-133-95.pool.ukrtel.net] has quit [Read error:
Connection reset by peer]
20:04 -!- jhh [~jhh@f049042170.adsl.alicedsl.de] has quit [Quit: jhh]
20:04 -!- yobboy [~brandon@192.173.47.16] has joined #go-nuts
20:07 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
20:07 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
20:08 -!- kingfishr [~kingfishr@c-98-201-60-173.hsd1.tx.comcast.net] has quit
[Remote host closed the connection]
20:09 -!- kingfishr [~kingfishr@c-98-201-60-173.hsd1.tx.comcast.net] has joined
#go-nuts
20:15 -!- SecretofMana [~mana@142.46.164.30] has joined #go-nuts
20:17 < allengeorge> Thanks wrtp
20:21 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined
#go-nuts
20:21 -!- fenicks [~christian@log77-4-82-246-228-78.fbx.proxad.net] has joined
#go-nuts
20:22 < fenicks> hello
20:22 -!- bortzmeyer1 [~stephane@2a01:e35:8bd9:8bb0:b097:f99d:68d5:e062] has quit
[Quit: Leaving.]
20:24 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has quit [Read
error: Operation timed out]
20:29 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has quit
[Ping timeout: 260 seconds]
20:29 < smw> hi
20:31 < wrtp> has anyone got the profiler working under macos x
20:31 < wrtp> ?
20:47 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has joined
#go-nuts
20:51 -!- mertimor [~mertimor@p4FE74C1D.dip.t-dialin.net] has joined #go-nuts
20:54 -!- mertimor [~mertimor@p4FE74C1D.dip.t-dialin.net] has quit [Client Quit]
21:00 -!- SecretofMana [~mana@142.46.164.30] has quit [Quit: Leaving]
21:00 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
21:04 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has joined
#go-nuts
21:05 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
21:05 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Quit: tumdum]
21:07 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
21:07 -!- Soultaker [~maks@hell.student.utwente.nl] has joined #go-nuts
21:07 < Soultaker> if an interface defines only one method, is it possible
to pass a function as an instance of that interface?
21:08 -!- Macpunk [~macpunk@cpe-72-177-26-221.austin.res.rr.com] has quit [Ping
timeout: 241 seconds]
21:10 < kmeyer> you could make a struct that implements that interface and
forward the call to that function in the struct method, but basically: no.
21:11 < Soultaker> ah ok.  (that's basically what I do now, but I wondered
if I could get rid of the empty struct)
21:12 -!- Xera` [~brit@87-194-208-246.bethere.co.uk] has quit [Read error:
Connection reset by peer]
21:14 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined
#go-nuts
21:16 -!- Ikkebr [~ikkibr@unaffiliated/ikkebr] has quit []
21:17 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
21:26 -!- lux` [lux`@151.95.180.63] has quit [Remote host closed the connection]
21:31 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
21:32 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
21:34 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
21:35 -!- Kashia [~Kashia@port-92-200-215-209.dynamic.qsc.de] has joined #go-nuts
21:36 -!- itrekkie [~itrekkie@ip68-228-245-244.ph.ph.cox.net] has joined #go-nuts
21:37 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
21:39 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Ping timeout: 246
seconds]
21:42 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
21:47 < wrtp> Soultaker: methods can't be closures
21:48 < Soultaker> but alternatively, if I only want to be able to pass
functions, can I pass a function pointer?
21:48 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Remote host closed
the connection]
21:51 < KirkMcDonald> Soultaker: You can always type T func() and define
methods for T.
21:53 -!- terrex [~terrex@183.38.222.87.dynamic.jazztel.es] has quit [Quit:
Leaving.]
21:56 < Soultaker> wrtp: not that I want to, but why not exactly?
21:56 < Soultaker> It seems trivial to translate a method to a closure
(func(arg int) int { return obj.method(int) })
21:57 -!- segy [~segfault@pdpc/supporter/active/segy] has quit [Ping timeout: 240
seconds]
22:00 < wrtp> because that would mean inventing a new type.  you can't do
that (currently)
22:00 < wrtp> gotta go, sorry.
22:00 -!- segy [~segfault@pdpc/supporter/active/segy] has joined #go-nuts
22:01 < Soultaker> no problem.
22:02 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:03 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
22:04 -!- ikke [~ikke@189-72-0-203.smace700.dsl.brasiltelecom.net.br] has joined
#go-nuts
22:04 -!- ikke [~ikke@189-72-0-203.smace700.dsl.brasiltelecom.net.br] has quit
[Changing host]
22:04 -!- ikke [~ikke@unaffiliated/ikkebr] has joined #go-nuts
22:07 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
22:07 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
22:08 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Quit:
leaving]
22:11 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
22:15 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
22:17 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
22:19 -!- itrekkie [~itrekkie@ip68-228-245-244.ph.ph.cox.net] has quit [Quit:
itrekkie]
22:19 -!- Kirill [~user@CPEf81edff80afa-CM0016924f5bee.cpe.net.cable.rogers.com]
has joined #go-nuts
22:19 < Kirill> hi!  is there a library function that will let me read a
line from a reader, separated by "\n"?
22:20 < Ginto8> why would you want it separated by "\n"?
22:20 < Ginto8> you can just read in a line
22:20 < Kirill> Ginto8: how?
22:20 < Ginto8> and for i,v := range x {}
22:20 < Ginto8> lemme check
22:20 < Kirill> I looked in the packages, but didn't find a function that
would let me do this
22:21 < jlouis> Kirill: ReadSlice
22:21 < Ginto8> this should be similar to your problem:
https://groups.google.com/group/golang-nuts/browse_thread/thread/06cba14e7ca72749
22:23 < Kirill> jlouis: ah yes, perfect
22:36 < Kirill> I have a function that has an if/else statement, either
clause ends with "return".  go complains that the function itself doesn't end with
a "return" statement.  what am I doing wrong?
22:37 < Soultaker> I think this is an outstanding bug.
22:37 < Soultaker> (I run in this all the time.  Usually you can remove the
else clause to work around it.)
22:37 < Kirill> Soultaker: sheesh.
22:39 < Kirill> Soultaker: ternay operator would be nice =)
22:42 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts
22:43 -!- [vertex] [~Alexandre@201008033068.user.veloxzone.com.br] has joined
#go-nuts
22:46 < Kirill> are containers in go "goroutine-safe"?
22:46 < Kirill> that is, can I read and write a container from two different
goroutines simultaneously?
22:46 < Ginto8> there are mutexes for that I believe
22:47 < KirkMcDonald> Kirill: I believe that channels are intended to be the
primary means of inter-goroutine communication.
22:47 < KirkMcDonald> And so the other containers aren't designed to be
safe.
22:47 < KirkMcDonald> So, yeah, use a mutex.
22:47 -!- Amaranth [~travis@ubuntu/member/Amaranth] has quit [Ping timeout: 276
seconds]
22:47 < Ginto8> Kirill, check this out: http://golang.org/pkg/sync/
22:49 -!- ajbouh [~adamb@c-71-233-151-63.hsd1.ma.comcast.net] has left #go-nuts []
22:49 -!- ajbouh [~adamb@c-71-233-151-63.hsd1.ma.comcast.net] has joined #go-nuts
22:50 -!- barismetin [~barismeti@kde/developer/baris] has quit [Quit: Leaving...]
22:59 -!- yobboy [~brandon@192.173.47.16] has left #go-nuts []
23:02 -!- irc_ [~irc@209.17.191.58] has quit [Read error: Connection reset by
peer]
23:06 < jlouis> Kirill: containers are not safe no.  You should share it by
communication
23:07 -!- gisikw [~gisikw@137.28.186.120] has quit [Quit: gisikw]
23:08 < kkress> Is there a reason why something like a BufferedReader that
lets you do getLine style ops on a Reader interface doesn't already exist as part
of an existing package?  Seems like a pretty common operation
23:09 -!- scm [justme@c178234.adsl.hansenet.de] has quit [Ping timeout: 276
seconds]
23:11 -!- scm [justme@d019009.adsl.hansenet.de] has joined #go-nuts
23:12 < Ginto8> well bufio.Reader.GetSlice() with '\n' as a parameter works
the same
23:12 -!- homiziado [~ernestofr@62.169.99.84.rev.optimus.pt] has joined #go-nuts
23:13 -!- homiziado [~ernestofr@62.169.99.84.rev.optimus.pt] has left #go-nuts []
23:14 -!- ikaros [~ikaros@f052057077.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
23:16 -!- Kirill [~user@CPEf81edff80afa-CM0016924f5bee.cpe.net.cable.rogers.com]
has quit [Ping timeout: 265 seconds]
23:22 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
23:27 -!- wuehlmaus [~wuehlmaus@p4FCC7AC6.dip.t-dialin.net] has quit [Read error:
Operation timed out]
23:28 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
23:28 -!- wuehlmaus [~wuehlmaus@p4FCC796E.dip.t-dialin.net] has joined #go-nuts
23:36 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has quit
[Quit: Svarthandske]
23:51 -!- irc [~irc@209.17.191.58] has joined #go-nuts
--- Log closed Tue May 11 00:00:56 2010