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

--- Log opened Sun Jan 31 00:00:51 2010
00:02 -!- thaostra [~joshua@pool-96-233-105-4.bstnma.fios.verizon.net] has joined
#go-nuts
00:04 -!- kashia_ [~Kashia@p4FEB5103.dip.t-dialin.net] has quit [Ping timeout: 256
seconds]
00:06 -!- BMeph [~BMeph@65.103.151.24] has joined #go-nuts
00:06 -!- kashia_ [~Kashia@p4FEB52FA.dip.t-dialin.net] has joined #go-nuts
00:14 -!- Cyanure [~cyanure@81-65-195-5.rev.numericable.fr] has quit [Read error:
Connection reset by peer]
00:15 -!- tomestla [~tom@AToulouse-151-1-11-37.w83-193.abo.wanadoo.fr] has quit
[Ping timeout: 240 seconds]
00:20 -!- oal_ [~olav@5.79-160-122.customer.lyse.net] has quit [Remote host closed
the connection]
00:28 -!- vizzord [~exn@195.49.206.202] has joined #go-nuts
00:32 -!- yashi [~yashi@dns1.atmark-techno.com] has quit [Ping timeout: 260
seconds]
00:32 -!- MarkBao [~MarkBao@pool-173-76-27-66.bstnma.fios.verizon.net] has quit
[Ping timeout: 276 seconds]
00:46 -!- metapandava [~metapanda@c-98-203-232-197.hsd1.wa.comcast.net] has joined
#go-nuts
00:59 -!- araujo [~araujo@190.38.49.150] has quit [Quit: Leaving]
01:00 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
01:12 -!- vizzord [~exn@195.49.206.202] has quit [Quit: see you]
01:19 -!- alkavan [~alkavan@87.68.81.49.cable.012.net.il] has quit [Quit: Leaving]
01:24 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts
01:25 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Client Quit]
01:26 -!- antarus [~antarus@nat/google/x-voilhpexllvvcscb] has quit [Changing
host]
01:26 -!- antarus [~antarus@gentoo/developer/antarus] has joined #go-nuts
01:26 -!- Associat0r [~Associat0@h163153.upc-h.chello.nl] has joined #go-nuts
01:28 -!- metapandava [~metapanda@c-98-203-232-197.hsd1.wa.comcast.net] has quit
[Quit: metapandava]
01:29 -!- kanru [~kanru@61-228-154-126.dynamic.hinet.net] has quit [Quit: WeeChat
0.3.1]
01:30 -!- GeoBSD [~geobsd@lns-bzn-54-82-251-97-98.adsl.proxad.net] has quit
[Remote host closed the connection]
01:30 -!- b00m_chef [~watr@128.189.89.223] has quit [Ping timeout: 265 seconds]
01:39 -!- mssmfs [~mssm@ip-95-221-110-219.bb.netbynet.ru] has quit [Quit: WeeChat
0.3.0]
01:43 -!- tomestla [~tom@AToulouse-151-1-99-123.w86-217.abo.wanadoo.fr] has joined
#go-nuts
01:46 -!- sstangl [~sean@BERLIN.RES.CMU.EDU] has joined #go-nuts
01:48 -!- tomestla [~tom@AToulouse-151-1-99-123.w86-217.abo.wanadoo.fr] has quit
[Ping timeout: 272 seconds]
01:48 -!- hstimer [~hans@2002:465a:aa25:0:226:bbff:fe05:dd9b] has joined #go-nuts
01:51 -!- usausa [~usa@pool-71-116-81-237.snfcca.dsl-w.verizon.net] has joined
#go-nuts
01:53 -!- jA_cOp [~yakobu@p16091-ipngn100107osakakita.osaka.ocn.ne.jp] has quit
[Ping timeout: 256 seconds]
01:53 -!- grizzlysmit [~grizzlysm@123-243-91-241.tpgi.com.au] has joined #go-nuts
01:53 -!- grizzlysmit [~grizzlysm@123-243-91-241.tpgi.com.au] has left #go-nuts []
01:57 -!- Associat0r [~Associat0@h163153.upc-h.chello.nl] has quit [Quit:
Associat0r]
02:04 -!- stalled [~411@unaffiliated/stalled] has quit [Ping timeout: 258 seconds]
02:08 -!- path[l] [UPP@120.138.102.34] has quit [Read error: Connection reset by
peer]
02:08 -!- stalled [~411@unaffiliated/stalled] has joined #go-nuts
02:08 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
02:16 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
02:28 -!- yashi [~yashi@dns1.atmark-techno.com] has joined #go-nuts
02:32 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read
error: Connection reset by peer]
02:33 < hstimer> is len(array) called once or n times in: for i := 0; i <
len(array); i++ {}
02:39 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
02:39 -!- mode/#go-nuts [+v iant] by ChanServ
02:49 -!- Kibiz0r [~Adium@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has joined
#go-nuts
02:52 -!- carllerche [~carllerch@96.236.78.192] has quit [Quit: carllerche]
02:55 -!- Kibiz0r [~Adium@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has quit
[Quit: Leaving.]
03:12 -!- wwkeyboard [~wwkeyboar@71.20.114.79] has quit [Ping timeout: 240
seconds]
03:13 -!- thaostra [~joshua@pool-96-233-105-4.bstnma.fios.verizon.net] has left
#go-nuts ["Leaving"]
03:18 -!- moraes [~moraes@187.39.158.51] has quit [Quit: Ex-Chat]
03:26 -!- wwkeyboard [~wwkeyboar@71.20.114.79] has joined #go-nuts
03:28 -!- ericvh [~ericvh@2002:4671:4e0e:0:223:6cff:fe93:c616] has joined #go-nuts
03:28 < kevinwatt> hstimer: just once.
03:28 -!- ericvh [~ericvh@2002:4671:4e0e:0:223:6cff:fe93:c616] has left #go-nuts
[]
03:28 < hstimer> cool
03:28 < kevinwatt> > ao:=func (b int) int{b++;return b};b := 10;for i:=0;
i < ao(b); i++{print(i,",")}
03:28 -!- Amaranth [~travis@97-114-246-19.sxcy.qwest.net] has quit [Changing host]
03:28 -!- Amaranth [~travis@ubuntu/member/Amaranth] has joined #go-nuts
03:29 < kevinwatt> hum...  go bot is miss.  XD
03:34 -!- iswhite [~iswhite@121.138.125.232] has joined #go-nuts
03:34 -!- Border [~border@114.245.141.49] has joined #go-nuts
03:34 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts
03:35 < hstimer> how do I take the address of an array element?  I'm using
this to determine if aligned block reads are any faster
03:39 < hstimer> oh.....  & works
03:41 < dagle> hstimer: You can use & to create a slice.
03:43 < hstimer> so p := &a[0] isn't a pointer the 0ith element?
03:44 < dagle> Yes it is.
03:44 < hstimer> it is a slice to a[0] or a pointer?
03:45 < dagle> slice := &[3]int{1,2,3} , array := [3]int{1,2,3}
03:45 < dagle> slice has 2 pointers.
03:46 < dagle> Start and stop
03:46 < hstimer> so println(p) gives me the start value?
03:47 < dagle> I think fmt.Println would prints the value.
03:49 < hstimer> just tested; they print the same number
03:50 < anticw> iant: being unable to construct a slice/string directly with
reflection is deliberately missing?
03:50 < anticw> [3]int{1,2,3} is an array not a slice
03:51 < dagle> hstimer: println(p) prints the value of the pointer.
03:52 < hstimer> dagle: but if p is a slice ( p := &a[0] ) then it is really
2 values
03:52 < dagle> Thought it might print the value instead.  (You can make it
do that)
03:52 < dagle> hstimer: That's a pointer.
03:52 < anticw> Printf %#v is useful ...  as is %T and %+v
03:52 < anticw> depends what you're after
03:53 -!- murodese [~James@203-59-92-213.dyn.iinet.net.au] has joined #go-nuts
03:53 < dagle> hstimer: p := &a[0] , pointer.  s := &a , slice
03:55 -!- ZHOU_Xiaobo [~chatzilla@123.114.114.119] has joined #go-nuts
03:57 < hstimer> var p unsafe.Pointer; p = &a[0] wont compile
03:59 < hstimer> well %T tells me it is a pointer.  so not a slice
03:59 < hstimer> dagle: thanks
03:59 < hstimer> anticw: thanks
04:00 < hstimer> results:
04:00 < anticw> hstimer: fwiw, i have a couple of cases where i use
unsafe.Pointer(&foo.bar[0]) --- it's not entirely contrived
04:00 < hstimer> aligned block reads are about 20% faster
04:01 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 246
seconds]
04:01 < hstimer> 1k blocks are about 100 times faster than random reads
04:01 < hstimer> 1k aligned blocks that is
04:02 < hstimer> and as it turns out, the memory bus on my mac book pro
hauls ass; faster than my cheap server
04:03 < anticw> what is the fs block size?
04:03 -!- iswhite [~iswhite@121.138.125.232] has quit [Ping timeout: 265 seconds]
04:04 < hstimer> fs == filesystem?  don't know, I'm just testing memeory
04:04 < hstimer> memory
04:04 < anticw> oh, i missed the earlier comments ...  you're testing
aligned IO vs unaligned IO?
04:04 < hstimer> aligned memory reads -- not IO
04:05 < hstimer> server keeps entire data set in memory, and I'm testing the
best way to organize that memory for processing
04:06 -!- JSharpe2 [~jamie@5ad1d7d2.bb.sky.com] has joined #go-nuts
04:07 < hstimer> bye -- thanks for the help
04:07 -!- hstimer [~hans@2002:465a:aa25:0:226:bbff:fe05:dd9b] has quit [Quit:
Leaving...]
04:10 -!- JSharpe [~jamie@5ad1d7d2.bb.sky.com] has quit [Ping timeout: 256
seconds]
04:17 -!- CodeBlock [~CodeBlock@about/windows/regular/CodeBlock] has quit [Quit:
Buh-bye.]
04:17 -!- no_mind [~orion@122.162.145.145] has quit [Ping timeout: 258 seconds]
04:18 < monty_hall> how to I inidicate nan and infinity?
04:19 -!- iswhite [~iswhite@121.166.225.37] has joined #go-nuts
04:21 -!- CodeBlock [~CodeBlock@about/windows/regular/CodeBlock] has joined
#go-nuts
04:21 < anticw> do math.NaN() and math.Inf() work?
04:22 < anticw> actually, Inf takes an arg for the sign
04:25 < monty_hall> thanks
04:25 < monty_hall> I thought there were some literals NaN and +/-Inf
04:31 -!- no_mind [~orion@122.162.138.141] has joined #go-nuts
04:37 -!- carllerche [~carllerch@96.236.78.192] has joined #go-nuts
04:39 -!- Fraeon [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
04:50 -!- carllerche [~carllerch@96.236.78.192] has quit [Quit: carllerche]
04:55 -!- iswhite [~iswhite@121.166.225.37] has quit [Ping timeout: 258 seconds]
04:57 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping
timeout: 276 seconds]
04:57 -!- droid0011 [~g1@p4FDCBFE1.dip.t-dialin.net] has joined #go-nuts
05:00 -!- hstimer [~hans@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined #go-nuts
05:01 -!- droid001 [~g1@p4FDCA51C.dip.t-dialin.net] has quit [Ping timeout: 276
seconds]
05:03 -!- res [~res@unaffiliated/res] has quit [Quit: Reconnecting]
05:03 -!- res [~res@unaffiliated/res] has joined #go-nuts
05:04 < monty_hall> how do I make a statement use more than one line?
05:05 < monty_hall> I'm calling a function w/ 3 args, I would like to have
each arg on it's own line.
05:06 < slashus2> I don't think you can do that anymore with the new
formatting rules.  I may be mistaken though.
05:13 -!- iswhite [~iswhite@121.138.125.232] has joined #go-nuts
05:15 -!- vdrab [~vdrab@cap005-027.kcn.ne.jp] has joined #go-nuts
05:21 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
05:32 -!- carllerche [~carllerch@96.236.78.192] has joined #go-nuts
05:34 -!- Border [~border@114.245.141.49] has quit [Quit: 暂离]
05:35 -!- carllerche [~carllerch@96.236.78.192] has quit [Client Quit]
05:57 -!- droid001 [~g1@p4FDCA57F.dip.t-dialin.net] has joined #go-nuts
05:59 -!- droid0011 [~g1@p4FDCBFE1.dip.t-dialin.net] has quit [Ping timeout: 272
seconds]
06:11 -!- ZHOU_Xiaobo [~chatzilla@123.114.114.119] has quit [Ping timeout: 246
seconds]
06:11 -!- suzaq [~suzue@softbank218132088011.bbtec.net] has joined #go-nuts
06:15 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
06:15 -!- triplez [~triplez@cm107.sigma224.maxonline.com.sg] has quit [Quit:
triplez]
06:22 -!- murodese [~James@203-59-92-213.dyn.iinet.net.au] has quit [Ping timeout:
240 seconds]
06:23 -!- murodese [~James@203-59-92-213.dyn.iinet.net.au] has joined #go-nuts
06:29 -!- alus [~gah@64.13.131.178] has quit [Ping timeout: 256 seconds]
06:36 -!- wwkeyboard [~wwkeyboar@71.20.114.79] has quit [Quit: Leaving]
06:37 -!- vdrab [~vdrab@cap005-027.kcn.ne.jp] has quit [Quit: vdrab]
06:40 -!- path[l]_ [~path@120.138.102.34] has joined #go-nuts
06:41 -!- path[l] [UPP@120.138.102.34] has quit [Ping timeout: 265 seconds]
06:44 -!- aquarion_ [~aquarion@81.214.255.196] has joined #go-nuts
06:48 -!- alus [~gah@64.13.131.178] has joined #go-nuts
06:51 -!- ghthor [~ghthor@pool-71-254-74-130.ronkva.east.verizon.net] has joined
#go-nuts
06:54 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Ping timeout:
248 seconds]
06:55 < ghthor> what editors do you guys use to write go code?
06:55 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts
06:55 * araujo uses emacs
06:55 < hstimer> textmate
07:01 < ghthor> I'm not very good with emacs, does vim have a
plugin/extension for the go syntax?
07:02 -!- alus [~gah@64.13.131.178] has quit [Ping timeout: 256 seconds]
07:04 -!- res [~res@unaffiliated/res] has quit [Quit: reboot, huge update]
07:10 -!- alus [~gah@64.13.131.178] has joined #go-nuts
07:13 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: (
www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )]
07:22 -!- res [~res@unaffiliated/res] has joined #go-nuts
07:22 -!- rogue [rogue@unaffiliated/rogue] has joined #go-nuts
07:24 -!- ashaw [~ashaw@58.108.161.163] has joined #go-nuts
07:37 -!- suzaq [~suzue@softbank218132088011.bbtec.net] has quit [Ping timeout:
240 seconds]
07:38 -!- 20QAAAA2P [~sydcogs@118.127.19.220] has left #go-nuts []
07:39 -!- syd_ [~sydcogs@118.127.19.220] has joined #go-nuts
07:43 -!- suzaq [~suzue@softbank218132088011.bbtec.net] has joined #go-nuts
07:47 -!- keeto_ [~keeto@121.54.92.149] has joined #go-nuts
07:47 -!- keeto [~keeto@121.54.92.149] has quit [Read error: Connection reset by
peer]
07:51 -!- idea_squirrel [ct2rips@77-21-31-98-dynip.superkabel.de] has joined
#go-nuts
07:53 -!- ghthor [~ghthor@pool-71-254-74-130.ronkva.east.verizon.net] has left
#go-nuts []
07:53 -!- grizzlysmit [~grizzlysm@123-243-91-241.tpgi.com.au] has joined #go-nuts
07:53 -!- grizzlysmit [~grizzlysm@123-243-91-241.tpgi.com.au] has left #go-nuts []
07:58 -!- scm [justme@c132189.adsl.hansenet.de] has quit [Ping timeout: 248
seconds]
08:00 -!- scm [justme@c162197.adsl.hansenet.de] has joined #go-nuts
08:11 -!- wuehlmaus [~wuehlmaus@p4FCC7E95.dip.t-dialin.net] has joined #go-nuts
08:14 -!- ShadowIce [pyoro@p4FF9E1C4.dip.t-dialin.net] has joined #go-nuts
08:14 -!- ShadowIce [pyoro@p4FF9E1C4.dip.t-dialin.net] has quit [Changing host]
08:14 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
08:17 -!- mssm [~mssm@ip-95-221-110-219.bb.netbynet.ru] has joined #go-nuts
08:36 -!- keeto [~keeto@121.54.92.149] has quit [Read error: Connection reset by
peer]
08:36 -!- keeto_ [~keeto@121.54.92.149] has joined #go-nuts
08:43 -!- p0g0__ [~pogo@12.162.181.209.MRTC.dynamic.mrtc.com] has quit [Ping
timeout: 248 seconds]
08:49 -!- mssm [~mssm@ip-95-221-110-219.bb.netbynet.ru] has quit [Ping timeout:
256 seconds]
08:53 -!- p0g0__ [~pogo@unaffiliated/p0g0] has joined #go-nuts
09:00 -!- rogue [rogue@unaffiliated/rogue] has left #go-nuts []
09:03 -!- mssm [~mssm@ip-95-221-82-66.bb.netbynet.ru] has joined #go-nuts
09:04 -!- nanoo [~nano@95-89-197-218-dynip.superkabel.de] has joined #go-nuts
09:26 -!- kanru [~kanru@61-228-154-126.dynamic.hinet.net] has joined #go-nuts
09:27 -!- Spaghettini [~Spaghetti@vaxjo7.250.cust.blixtvik.net] has joined
#go-nuts
09:36 -!- suzaq [~suzue@softbank218132088011.bbtec.net] has quit [Ping timeout:
276 seconds]
09:36 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined
#go-nuts
09:38 -!- moraes [~moraes@187.39.158.51] has joined #go-nuts
09:39 -!- mssm [~mssm@ip-95-221-82-66.bb.netbynet.ru] has quit [Ping timeout: 240
seconds]
09:44 -!- iswhite [~iswhite@121.138.125.232] has quit [Ping timeout: 246 seconds]
09:46 -!- iswhite [~iswhite@121.138.125.232] has joined #go-nuts
09:49 -!- aquarion_ [~aquarion@81.214.255.196] has quit [Quit: Leaving]
10:08 -!- oal [~olav@5.79-160-122.customer.lyse.net] has joined #go-nuts
10:18 -!- hevalbaranov [~hevalbara@95.15.44.129] has quit [Quit: WeeChat 0.2.6.3]
10:18 -!- oal_ [~olav@5.79-160-122.customer.lyse.net] has joined #go-nuts
10:18 -!- oal [~olav@5.79-160-122.customer.lyse.net] has quit [Ping timeout: 265
seconds]
10:23 -!- murodese [~James@203-59-92-213.dyn.iinet.net.au] has quit [Ping timeout:
272 seconds]
10:23 -!- nanoo [~nano@95-89-197-218-dynip.superkabel.de] has quit [Quit: Leaving]
10:28 -!- r2p2 [~billy@v32671.1blu.de] has joined #go-nuts
10:28 -!- alkavan [~alkavan@87.68.81.49.cable.012.net.il] has joined #go-nuts
10:31 -!- iswhite [~iswhite@121.138.125.232] has quit [Ping timeout: 248 seconds]
10:35 -!- mssm [~mssm@ip-95-221-82-66.bb.netbynet.ru] has joined #go-nuts
10:35 -!- murodese [~James@203-59-92-213.dyn.iinet.net.au] has joined #go-nuts
10:36 -!- triplez [~triplez@124.155.195.7] has joined #go-nuts
10:46 -!- iswhite [~iswhite@121.166.225.37] has joined #go-nuts
11:00 -!- triplez [~triplez@124.155.195.7] has quit [Quit: triplez]
11:10 -!- GeoBSD [~geobsd@lns-bzn-61-82-250-113-248.adsl.proxad.net] has joined
#go-nuts
11:15 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined
#go-nuts
11:17 -!- suzaq [~suzue@softbank218132088011.bbtec.net] has joined #go-nuts
11:18 -!- suzaq [~suzue@softbank218132088011.bbtec.net] has quit [Client Quit]
11:18 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 272 seconds]
11:29 -!- tomestla [~tom@AToulouse-151-1-39-94.w83-203.abo.wanadoo.fr] has joined
#go-nuts
11:39 -!- papul [~papul@unaffiliated/papul] has joined #go-nuts
11:39 < papul> where can i get the compilers
11:40 -!- papul [~papul@unaffiliated/papul] has quit [Quit: WeeChat 0.3.1]
11:40 -!- kashia_ [~Kashia@p4FEB52FA.dip.t-dialin.net] has left #go-nuts []
11:41 -!- Kashia [~Kashia@p4FEB52FA.dip.t-dialin.net] has joined #go-nuts
11:54 -!- vdrab [~vdrab@cap050-214.kcn.ne.jp] has joined #go-nuts
12:19 -!- ashaw [~ashaw@58.108.161.163] has quit [Ping timeout: 240 seconds]
12:21 -!- chickamade [~chickamad@123.16.78.1] has joined #go-nuts
12:46 -!- chickamade [~chickamad@123.16.78.1] has quit [Ping timeout: 258 seconds]
12:59 -!- ZHOU_Xiaobo [~chatzilla@222.131.107.151] has joined #go-nuts
13:07 -!- keeto [~keeto@121.54.92.149] has quit [Read error: No route to host]
13:08 -!- keeto [~keeto@121.54.92.149] has joined #go-nuts
13:09 -!- keeto [~keeto@121.54.92.149] has quit [Read error: No route to host]
13:10 -!- keeto [~keeto@121.54.92.149] has joined #go-nuts
13:11 -!- keeto [~keeto@121.54.92.149] has quit [Read error: Connection reset by
peer]
13:14 -!- vegai [~vegai@ap62.adsl.tnnet.fi] has quit [Read error: Operation timed
out]
13:20 -!- kashia_ [~Kashia@p4FEB5D17.dip.t-dialin.net] has joined #go-nuts
13:24 -!- Kashia [~Kashia@p4FEB52FA.dip.t-dialin.net] has quit [Ping timeout: 256
seconds]
13:27 -!- keeto [~keeto@121.54.92.149] has joined #go-nuts
13:28 -!- keeto [~keeto@121.54.92.149] has quit [Read error: No route to host]
13:34 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving]
13:44 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving]
13:48 -!- kashia_ [~Kashia@p4FEB5D17.dip.t-dialin.net] has quit [Ping timeout: 246
seconds]
13:51 < monty_hall> I calling a func w/ 3 args that are rather large, how
can I place each arg on their own line?  I can write temp variables for each arg,
but would rather not.
13:52 -!- keeto [~keeto@121.54.92.149] has joined #go-nuts
13:54 -!- kashia_ [~Kashia@p4FEB5D37.dip.t-dialin.net] has joined #go-nuts
14:03 -!- kashia_ [~Kashia@p4FEB5D37.dip.t-dialin.net] has quit [Quit: This
computer has gone to sleep]
14:06 < rsaarelm> monty_hall: I think it compiles if your newlines are
inside the function argument parentheses.
14:13 -!- triplez [~triplez@cm107.sigma224.maxonline.com.sg] has joined #go-nuts
14:29 < tml_> monty_hall: doesn't the language definition on the website
vyer clearly say in which cases semicolons are implied at the end of lines?  i.e.
just make sure your lines don't match those cases
14:29 < tml_> s/vyer/very
14:57 -!- mbarkhau [~koloss@p54A7DF9E.dip.t-dialin.net] has joined #go-nuts
14:57 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has quit [Ping
timeout: 276 seconds]
15:01 -!- jophish [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts
15:04 -!- vdrab [~vdrab@cap050-214.kcn.ne.jp] has quit [Quit: vdrab]
15:19 -!- Guest73475 [~ivan@adsl-71-142-225-118.dsl.scrm01.pacbell.net] has quit
[Quit: Coyote finally caught me]
15:20 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has joined #go-nuts
15:25 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:35f9:fe3:f12f:9aaf] has joined
#go-nuts
15:30 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
15:31 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
15:53 -!- [k2] [~DrKeeto@69.162.91.23] has quit [Ping timeout: 240 seconds]
15:54 -!- [k2] [~DrKeeto@69.162.91.23] has joined #go-nuts
15:56 -!- fgb [~fgb@190.246.85.45] has quit [Read error: Connection reset by peer]
15:57 -!- fgb [~fgb@190.246.85.45] has joined #go-nuts
16:04 < hstimer> in a multi dimensional array, which elements are in
contiguous memory?  ex.  [2][3][4]int the 2 or the 4 elements?
16:10 -!- kanru [~kanru@61-228-154-126.dynamic.hinet.net] has quit [Quit: WeeChat
0.3.1]
16:13 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has joined #go-nuts
16:15 -!- r2p2 [~billy@v32671.1blu.de] has left #go-nuts []
16:16 < bortzmeyer> hstimer: is it even specified by the language?  Two
different Go compilers may do things differently
16:16 < hstimer> that would suck
16:17 < bortzmeyer> Why?
16:17 < hstimer> in reading the spec I'm thinking it is the 4
16:17 < bortzmeyer> Yes: [2][2][2]float64 // same as [2]([2]([2]float64))
16:18 < hstimer> why suck?  because contiguous reads are about 100x faster
-- so 100 less machines to do computation
16:18 < hstimer> s
16:18 -!- conra [~conrad@host-89-229-12-166.torun.mm.pl] has joined #go-nuts
16:19 -!- Kashia [~Kashia@p4FEB5F3B.dip.t-dialin.net] has joined #go-nuts
16:25 -!- iswhite [~iswhite@121.166.225.37] has quit [Ping timeout: 265 seconds]
16:25 -!- stalled [~411@unaffiliated/stalled] has quit [Ping timeout: 258 seconds]
16:27 -!- stalled [~411@unaffiliated/stalled] has joined #go-nuts
16:33 -!- conra [~conrad@host-89-229-12-166.torun.mm.pl] has left #go-nuts []
16:34 -!- conra [~conrad@host-89-229-12-166.torun.mm.pl] has joined #go-nuts
16:34 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
16:36 -!- no_mind_ [~orion@122.162.138.141] has joined #go-nuts
16:36 -!- no_mind [~orion@122.162.138.141] has quit [Quit: Leaving]
16:37 -!- pcalc [~pablo@190-82-163-225.adsl.tie.cl] has joined #go-nuts
16:39 < bortzmeyer> No real enumerated types in Go? Any way to be sure that
the variable "proto" is only "TCP", "UDP" or "SCTP"?
16:39 -!- no_mind_ [~orion@122.162.138.141] has quit [Client Quit]
16:46 -!- kashia_ [~Kashia@p4FEB7CC3.dip.t-dialin.net] has joined #go-nuts
16:48 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:35f9:fe3:f12f:9aaf] has quit
[Ping timeout: 248 seconds]
16:49 < path[l]> why not make a multiton?
16:49 < path[l]> Thats always better because that you get behavior
16:49 -!- Kashia [~Kashia@p4FEB5F3B.dip.t-dialin.net] has quit [Ping timeout: 256
seconds]
16:52 -!- ugo [~ugo@host12-40-dynamic.60-82-r.retail.telecomitalia.it] has joined
#go-nuts
16:52 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:35f9:fe3:f12f:9aaf] has joined
#go-nuts
16:54 -!- dju [dju@89-158-236-229.rev.dartybox.com] has quit [Quit: Quitte]
16:55 -!- conra [~conrad@host-89-229-12-166.torun.mm.pl] has quit [Quit: im going
on linux]
16:57 -!- pcalc [~pablo@190-82-163-225.adsl.tie.cl] has quit [Quit: leaving]
16:59 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
17:01 -!- conra [~konrad@host-89-229-12-166.torun.mm.pl] has joined #go-nuts
17:02 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:35f9:fe3:f12f:9aaf] has quit
[Ping timeout: 248 seconds]
17:02 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has quit [Ping
timeout: 276 seconds]
17:13 -!- kashia__ [~Kashia@p4FEB6617.dip.t-dialin.net] has joined #go-nuts
17:14 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
17:16 -!- kashia_ [~Kashia@p4FEB7CC3.dip.t-dialin.net] has quit [Ping timeout: 258
seconds]
17:19 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:35f9:fe3:f12f:9aaf] has joined
#go-nuts
17:24 < hstimer> how do you take a slice of a multidimensional array and
pass it to a function?
17:24 < hstimer> &a[0] (type *[3][4]int) as type [3][4]int in function
argument
17:24 < hstimer> func faa(a [3][4]int)
17:24 < hstimer> var a [2][3][4]int
17:25 < hstimer> faa(&a[0])
17:25 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has joined #go-nuts
17:32 -!- p4p4 [~P4p4@24.106.113.82.net.de.o2.com] has joined #go-nuts
17:39 < dagle> hstimer: func faa(a [][]int)
17:43 < hstimer> dagle: that was the first way I tried
17:43 < hstimer> which didn't work
17:45 < dagle> hstimer: are you trying is going through an multidimensional
array?
17:46 < conra> hello
17:46 < conra> how to catch word from console and assign him function in Go
?
17:47 < dagle> conra: You mean arguments or reading fron stdin?
17:47 < hstimer> dagle: I'm just trying to learn all about arrays; not using
it for anything yet
17:47 < dagle> from*
17:47 < dagle> hstimer: I just wrote a testprogram and that did indeed work
:P
17:47 < conra> read from console
17:48 -!- kashia_ [~Kashia@p4FEB7EFD.dip.t-dialin.net] has joined #go-nuts
17:49 < dagle> conra: Look in os package.  os.Stdin.Read(buf)
17:50 < dagle> reads len(buf) bytes into buf.
17:50 < hstimer> what is the go paste bin?
17:50 < hstimer> url
17:51 < dagle> gopaste?
17:51 < conra> http://www.copypastecode.com ?
17:51 < dagle> gopaste is down atm.  :(
17:51 < bortzmeyer> pastebin.com ?
17:51 < conra> go to google: code paste
17:51 < dagle> There is a pastebin written in golang.
17:51 < dagle> But it's not awailbe atm.  :/
17:52 -!- kashia__ [~Kashia@p4FEB6617.dip.t-dialin.net] has quit [Ping timeout:
272 seconds]
17:52 < dagle> Hmmm.  Looks like I need food.
17:52 < bortzmeyer> How to debug linking messages like '(40) DATA
extratype·dnstypes.DNSquery+4(SB)/4,$go.string·"dnstypes"+0(SB)
17:52 < bortzmeyer> MHeapMap_Preallocate: multiple initialization
17:52 < bortzmeyer> '
17:53 < bortzmeyer> No line number :-(
17:53 < hstimer> dagle: http://www.copypastecode.com/21281/
17:55 < conra> http://pastebin.com/d65756ad9 - simple calculator ;-)
17:59 -!- r2p2 [~billy@v32671.1blu.de] has joined #go-nuts
18:04 -!- ZHOU_Xiaobo [~chatzilla@222.131.107.151] has quit [Ping timeout: 276
seconds]
18:09 -!- carllerche [~carllerch@173.67.86.116] has joined #go-nuts
18:12 -!- mpl [~mpl@smgl.fr.eu.org] has quit [Ping timeout: 256 seconds]
18:12 -!- carllerche [~carllerch@173.67.86.116] has quit [Client Quit]
18:13 -!- fgb [~fgb@190.246.85.45] has quit [Quit: Leaving.]
18:13 -!- conra [~konrad@host-89-229-12-166.torun.mm.pl] has left #go-nuts []
18:13 -!- chachan [~chachan@201.208.1.218] has quit [Quit: KVIrc Insomnia 4.0.0,
revision: 3763, sources date: 20091222, built on: 2010-01-08 08:47:55 UTC
http://www.kvirc.net/]
18:25 -!- ugo [~ugo@host12-40-dynamic.60-82-r.retail.telecomitalia.it] has quit
[Quit: Leaving.]
18:38 -!- dju [dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts
18:47 -!- smw [~stephen@c-76-28-92-229.hsd1.ct.comcast.net] has joined #go-nuts
18:53 -!- smw [~stephen@c-76-28-92-229.hsd1.ct.comcast.net] has quit [Ping
timeout: 246 seconds]
18:59 -!- exiquio [~ghost@c-67-164-136-59.hsd1.nm.comcast.net] has quit [Quit:
That's it for today]
19:00 -!- Cyanure [~cyanure@81-65-195-5.rev.numericable.fr] has joined #go-nuts
19:02 -!- smw [~stephen@c-76-28-92-229.hsd1.ct.comcast.net] has joined #go-nuts
19:10 < dagle> hstimer: http://www.copypastecode.com/21289/
19:11 -!- KB1JWQ [~KB1JWQ@freenode/staff/kb1jwq] has joined #go-nuts
19:12 < smw> dagle: doesn't range return two values?
19:12 < smw> index num and value?
19:12 < smw> maybe I am wrong
19:13 -!- kashia_ [~Kashia@p4FEB7EFD.dip.t-dialin.net] has left #go-nuts []
19:13 -!- Kashia [~Kashia@p4FEB7EFD.dip.t-dialin.net] has joined #go-nuts
19:13 < dagle> smw: Yes.
19:13 < Kashia> if only one return value for range is given, it's the index
19:13 < smw> ok
19:14 < dagle> You could do it _, d instead.  better then i[d]
19:26 -!- Kashia [~Kashia@p4FEB7EFD.dip.t-dialin.net] has quit [Quit: This
computer has gone to sleep]
19:28 -!- DerHorst [~Horst@e176107139.adsl.alicedsl.de] has joined #go-nuts
19:33 -!- idea_squirrel [ct2rips@77-21-31-98-dynip.superkabel.de] has quit [Read
error: Connection reset by peer]
19:33 -!- idea_squirrel [ct2rips@77-21-31-98-dynip.superkabel.de] has joined
#go-nuts
19:35 -!- alkavan [~alkavan@87.68.81.49.cable.012.net.il] has quit [Quit: Leaving]
19:38 -!- Cyanure [~cyanure@81-65-195-5.rev.numericable.fr] has quit [Ping
timeout: 276 seconds]
19:39 -!- roopeshv [~roopesh@c-71-202-114-43.hsd1.ca.comcast.net] has joined
#go-nuts
19:42 -!- smw [~stephen@c-76-28-92-229.hsd1.ct.comcast.net] has quit [Ping
timeout: 248 seconds]
19:43 -!- Cyanure [~cyanure@81-65-195-5.rev.numericable.fr] has joined #go-nuts
19:47 -!- jvogel [~jonathan@friedpancakes.com] has quit [Quit: leaving]
19:47 -!- jvogel [~jonathan@friedpancakes.com] has joined #go-nuts
19:47 -!- Cyanure [~cyanure@81-65-195-5.rev.numericable.fr] has quit [Ping
timeout: 246 seconds]
19:47 -!- Cyanure [~cyanure@81-65-195-5.rev.numericable.fr] has joined #go-nuts
19:52 -!- Cyanure [~cyanure@81-65-195-5.rev.numericable.fr] has quit [Ping
timeout: 256 seconds]
19:52 -!- Cyanure [~cyanure@81-65-195-5.rev.numericable.fr] has joined #go-nuts
19:54 -!- litherum [~litherum@hani.rit.edu] has joined #go-nuts
19:57 -!- Cyanure [~cyanure@81-65-195-5.rev.numericable.fr] has quit [Ping
timeout: 272 seconds]
20:02 -!- encolpe [~encolpe@gai69-3-82-235-15-3.fbx.proxad.net] has joined
#go-nuts
20:24 -!- alus [~gah@64.13.131.178] has quit [Ping timeout: 256 seconds]
20:25 -!- ponce [~ponce@paradisia.net] has left #go-nuts []
20:27 -!- litherum [~litherum@hani.rit.edu] has quit [Quit: Leaving]
20:30 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has quit [Ping
timeout: 246 seconds]
20:34 -!- path[l] [~path@120.138.102.34] has quit [Quit: path[l]]
20:35 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
20:35 < monty_hall> if t { retrurn a } else { return b} as the last
statement doesn't seem to work.  something about missing return.  Why can't I do
this?
20:40 < monty_hall> I see.
20:47 -!- tomaw [tom@freenode/staff/tomaw] has quit [Quit: Quitting]
20:49 -!- tomaw [tom@freenode/staff/tomaw] has joined #go-nuts
20:51 -!- oal_ [~olav@5.79-160-122.customer.lyse.net] has quit [Remote host closed
the connection]
20:54 -!- metapandava [~metapanda@c-98-203-232-197.hsd1.wa.comcast.net] has joined
#go-nuts
20:56 -!- metapandava [~metapanda@c-98-203-232-197.hsd1.wa.comcast.net] has quit
[Client Quit]
20:58 -!- homiziado [~ernestofr@78.130.77.67.rev.optimus.pt] has joined #go-nuts
21:06 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
21:15 -!- Kashia [~Kashia@port-92-200-92-189.dynamic.qsc.de] has joined #go-nuts
21:20 -!- codedread [~180dd699@gateway/web/freenode/x-iwhfpdanxfmbxsrm] has joined
#go-nuts
21:20 -!- codedread [~180dd699@gateway/web/freenode/x-iwhfpdanxfmbxsrm] has left
#go-nuts []
21:21 -!- rrr [debian-tor@gateway/tor-sasl/rrr] has joined #go-nuts
21:30 -!- tomaw [tom@freenode/staff/tomaw] has quit [Quit: Quitting]
21:30 -!- rrr [debian-tor@gateway/tor-sasl/rrr] has quit []
21:30 -!- tomaw [tom@freenode/staff/tomaw] has joined #go-nuts
21:31 -!- idea_squirrel [ct2rips@77-21-31-98-dynip.superkabel.de] has quit [Quit:
what would a pirate do?]
21:32 -!- emelpy [~cmadd@S010600226b803196.gv.shawcable.net] has joined #go-nuts
21:32 < emelpy> hey guys, is there anyone in here who can give a brief
explanation of how the crypto/md5 package works
21:32 < emelpy> http://golang.org/src/pkg/crypto/md5/md5.go
21:32 < emelpy> i can't figure it out for the life of me
21:34 -!- rrr [debian-tor@gateway/tor-sasl/rrr] has joined #go-nuts
21:35 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:35f9:fe3:f12f:9aaf] has quit
[Quit: Leaving.]
21:38 < dho> emelpy: md5 is a stream
21:38 < dho> you add bytes to it in the Write method and retrieve the sum
using the Sum method
21:40 < emelpy> dho: k, that's what i figured.  so i have a for loop reading
in 64 bytes of data from a file and writing to the digest (using d.Write()).  then
do i just call Sum at the end to retrieve the hash?
21:40 < dho> yes
21:41 < dho> d.Write("foo"); d.Write("bar"); == d.Write("foobar")
21:41 < dho> for instance
21:41 < dho> as far as the sum is concerned anyway
21:43 -!- outrageousness [~andrewz@c-76-25-166-1.hsd1.co.comcast.net] has quit
[Remote host closed the connection]
21:43 < emelpy> ok, thanks so much.  that's what i have been doing but i am
getting a different hash than i do from calling md5 on the command line.  i must
have an error in my code somewhere.
21:45 -!- homiziado [~ernestofr@78.130.77.67.rev.optimus.pt] has quit [Ping
timeout: 252 seconds]
21:53 -!- GeoBSD [~geobsd@lns-bzn-61-82-250-113-248.adsl.proxad.net] has quit
[Remote host closed the connection]
21:54 -!- homiziado [~ernestofr@62.169.111.250.rev.optimus.pt] has joined #go-nuts
21:57 -!- jophish [~jophish@hermi.gotadsl.co.uk] has quit [Remote host closed the
connection]
21:58 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts
22:02 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
22:08 -!- homiziado [~ernestofr@62.169.111.250.rev.optimus.pt] has quit [Quit:
homiziado]
22:12 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
22:19 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Quit: Lost terminal]
22:25 -!- JSharpe2 [~jamie@5ad1d7d2.bb.sky.com] has quit [Read error: Operation
timed out]
22:28 -!- tokuhiro_ [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has quit [Quit:
Tiarra 0.1: SIGTERM received; exit]
22:32 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit [Read
error: Connection reset by peer]
22:32 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
22:33 -!- tokuhirom [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has joined #go-nuts
22:35 -!- itrekkie [~itrekkie@ip72-211-128-139.tc.ph.cox.net] has joined #go-nuts
22:38 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit
[Quit: Konversation terminated!]
22:38 -!- r2p2 [~billy@v32671.1blu.de] has left #go-nuts []
22:38 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
22:42 -!- homiziado [~ernestofr@62.169.101.140.rev.optimus.pt] has joined #go-nuts
22:47 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:47 -!- dju [dju@89-158-236-229.rev.dartybox.com] has quit [Quit: Quitte]
22:55 -!- tokuhirom [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has quit [Remote
host closed the connection]
22:55 -!- tokuhiro_ [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has joined #go-nuts
22:55 -!- tokuhiro_ [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has quit [Remote
host closed the connection]
22:56 -!- p4p4 [~P4p4@24.106.113.82.net.de.o2.com] has quit [Quit: ChatZilla
0.9.84 [SeaMonkey 2.0a3/20090223135443]]
22:56 -!- tokuhirom [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has joined #go-nuts
23:03 -!- mejja [~user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
joined #go-nuts
23:06 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Read error: Connection
reset by peer]
23:07 < drhodes> is there a function that'll do ToInteger("1234") -> 1234
?
23:08 < dagle> yes.
23:09 < dagle> drhodes: look at the strconv package.
23:09 < drhodes> 10-4
23:09 < dagle> huh?
23:09 < dagle> 6?
23:11 < drhodes> 5 5, 2 2.  roger
23:11 < dagle> ok?
23:11 < drhodes> yes thanks, that's what I was looking for.
23:14 -!- res_ [~res@unaffiliated/res] has joined #go-nuts
23:14 -!- res [~res@unaffiliated/res] has quit [Quit: Reconnecting]
23:15 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
23:18 -!- homiziado [~ernestofr@62.169.101.140.rev.optimus.pt] has quit [Quit:
homiziado]
23:18 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 258 seconds]
23:27 < dho> dagle: 10-4 means `okay'
23:27 < dho> radio-speak
23:28 < dagle> oh.
23:28 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has quit
[Ping timeout: 256 seconds]
23:28 < dagle> That's kinda geeky.
23:29 -!- Wiz126 [Wiz126@72.20.221.186] has joined #go-nuts
23:30 < tml_> dagle: more like a flashback to 70s police series
23:30 < tml_> geeky would be "200 ok"
23:30 < dagle> Hehe.
23:31 -!- tomestla [~tom@AToulouse-151-1-39-94.w83-203.abo.wanadoo.fr] has quit
[Ping timeout: 248 seconds]
23:31 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has joined
#go-nuts
23:33 -!- mvfranz [~mvfranz@pool-141-155-143-20.ny5030.east.verizon.net] has
joined #go-nuts
23:38 -!- mbarkhau [~koloss@p54A7DF9E.dip.t-dialin.net] has quit [Read error:
Connection reset by peer]
23:42 -!- hstimer [~hans@2002:62ea:197d:0:226:bbff:fe05:dd9b] has quit [Quit:
Leaving...]
23:45 -!- chachan [~chachan@201.208.1.218] has joined #go-nuts
23:50 -!- carllerche [~carllerch@173.67.86.116] has joined #go-nuts
23:55 -!- nighty__ [~nighty@210.188.173.245] has joined #go-nuts
--- Log closed Mon Feb 01 00:00:51 2010