--- Log opened Tue Dec 01 00:00:12 2009 --- Day changed Tue Dec 01 2009 00:00 < Ibw> ni|: Why are you compiling go programs with 6c? 00:00 < Ibw> exch: darn 00:00 -!- double [n=double@host172-235-dynamic.53-79-r.retail.telecomitalia.it] has quit [Remote closed the connection] 00:00 < Ibw> exch: 6g or 8g? 00:01 < exch> 6g from b4614c68b22e+ tip 00:01 < Ibw> exch: It could be an issue with 8g 00:01 < exch> possibly 00:01 < Ibw> which is what I am using 00:02 < Ibw> oh 00:02 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [] 00:02 < Ibw> Wait, not an oh 00:02 < Ibw> darn... 00:03 < Ibw> oh, hah. My modifications to the standard packages were just not working. So the build wasn't working. Darn... 00:04 -!- The_Doctor [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has joined #go-nuts 00:06 -!- rakd [n=rakd@219.117.252.7.static.zoot.jp] has quit [Read error: 104 (Connection reset by peer)] 00:07 < ni|> Ibw: because i'm running an x86_64 10.6 00:07 < ni|> i'm a plan9 user so i prefer that style 00:08 < ni|> regardless what i'm doing _is_ standard 00:08 < ni|> i think something is broken 00:10 -!- hstimer [n=hans@c-98-234-25-125.hsd1.ca.comcast.net] has joined #go-nuts 00:10 -!- WalterMundt1 [n=waltermu@wst103201.terc.edu] has quit ["Leaving."] 00:11 < ni|> Ibw: are you noticing similar behaviour? 00:15 < ni|> the go tree builds 00:16 < ni|> i can rebuild go all day long 00:16 < ni|> but i think the main keyword is doing weird stuff 00:16 < ni|> but if i revert to release it should be fine 00:16 < ni|> this is so weird 00:16 < dho> ni|: what's the issue 00:17 < exch> http://github.com/jteeuwen/go-app-pp/blob/master/src/templateprocessor.go it's getting there :) 00:18 -!- ikke [n=1kk3@unaffiliated/ikkebr] has quit [Success] 00:18 < exch> there should be support for template types (structs) and template func/methods 00:18 < ni|> dho: i posted it to go-nuts 00:19 < dho> ni|: the helloworld issue? you don't compile go programs with ARCHc 00:20 < ni|> dho: ?? 00:20 < dho> you're compiling with 6c. 00:20 < dho> you don't do that 00:20 < ni|> i've always compiled them with 6c hi.go 00:20 < dho> that's for compiling c code. 00:20 < dho> period 00:20 < ni|> HAHAHAHAHAHAHAHAHAHAHAHA 00:20 < ni|> oh my god; i'm so dumb 00:21 -!- pennywise1968 [n=gary@71-220-183-214.bois.qwest.net] has quit ["Ex-Chat"] 00:21 < exch> what's kinda sad is that nobody in here actually picked up on that. including me :p 00:22 < ni|> i'm so used to have been writing the tcmalloc implementation of the plan9 allocator 00:23 < ni|> that i have been running *c so much 00:23 < ni|> dho: thanks so much -- sorry :/ 00:23 < Ibw> ni|: Did you see the response on the list yet? 00:23 < reppie> i liked it better when #go-nuts was called #plan9 00:23 < reppie> xD 00:23 < Ibw> Was that the HAHAHAHAHA? 00:24 < ni|> reppie: omg i remember you from fbsd powerpc (i was spacecowboy) 00:24 < Ibw> Why are there so many plan9 users working with Go? I know Russ is a plan9 guy 00:24 < reppie> ni| lol. 00:24 < ni|> reppie: what do you mean? since we were smaller? 00:24 < JBeshir> Go is clearly Plan 10 00:24 < exch> there are many plan9 users? :p 00:24 < reppie> james toy 00:24 < ni|> *nod* 00:24 < ni|> i was 14 then lol 00:24 < reppie> lol 00:25 < ni|> dho: thanks -- you have made my night. 00:25 < ni|> sorry for being dumb people 00:25 < dho> np 00:25 < reppie> good times 00:25 < ni|> reppie: indeed. 00:25 < ni|> well i need to help my 90 year old grandpa 00:25 < ni|> i'll be back after dinner 00:25 * ni| waves 00:25 < reppie> good luck 00:25 < reppie> bye 00:25 < ni|> reppie: hope to see you around. 00:25 < ni|> you too. 00:26 -!- lambo4jos [n=chatzill@c-76-126-250-10.hsd1.ca.comcast.net] has joined #go-nuts 00:27 < me___> ni|: tcmalloc? plan 9? 00:27 -!- brunov [n=bruno@190.191.110.64] has quit [Read error: 110 (Connection timed out)] 00:28 < dho> me___: he's a plan 9 user 00:29 -!- path[l]_ [n=path@115.240.40.147] has joined #go-nuts 00:30 -!- Tuller [n=Tuller@pool-72-84-246-12.rcmdva.fios.verizon.net] has joined #go-nuts 00:33 -!- Alkavan [n=alkavan@77.124.44.87] has joined #go-nuts 00:34 < Ibw> Huh, I wonder how long till the first Go book is published. 00:34 < Ibw> Probably not anytime soon 00:34 -!- The_Doctor [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has quit [Read error: 110 (Connection timed out)] 00:34 < Ibw> At least, it won't be written by a sane person any time soon... 00:34 < skelterjohn> I bet it's called "Let's go!" 00:34 < Ibw> That would be graet 00:34 < Ibw> *great 00:35 < dho> no 00:36 -!- mitchellh1 [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit ["Leaving."] 00:36 < dho> it won't 00:36 * dho <_< 00:36 < Ibw> wah? 00:36 < Ibw> But that would be a great name! 00:36 < skelterjohn> I should write it, to spite you. 00:36 < dho> i disagree 00:36 * dho is talking to apress 00:36 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 00:39 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has quit [] 00:42 -!- AndrewBC_ [n=Andrew@97.93.242.12] has quit [Read error: 60 (Operation timed out)] 00:42 -!- AndrewBC [n=Andrew@97.93.242.12] has joined #go-nuts 00:44 < ni|> dho: do you plan to write it? 00:45 < dho> yes 00:46 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit ["Leaving."] 00:46 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 00:47 < Zeffrin> the language creators could probably write a book already? 00:47 -!- clearscreen [n=clearscr@62.140.137.121] has joined #go-nuts 00:48 < Zeffrin> though yeah I see the problem now actually, Go may still change too soon 00:49 < ni|> dho: cool 00:49 < ni|> i'm glad now i can go back to writing this stuff though! :) 00:49 < dho> Zeffrin: they're busy working on it :) 00:49 < dho> so am i, but probably less busy 00:49 < ni|> i'm sure pike is on it 00:50 < ni|> i'm so sad i'm so dumb about 6c 00:50 < ni|> dinner was good though a pork chop! 00:50 < ni|> the garbage collection better be refcounted 00:51 < ni|> which i think it is -- and also is tail call opts in yet? 00:51 < ni|> s/is/are/g 00:51 < Ibw> Do I have to do anything when all.bash gives "Test WebSocket server listening on [::]:39499". It's been stuck there for a while and I don't remember that before... 00:51 < Zeffrin> the interesting thing about a lot of books I've read over the years is that it is apparent whether or not the authors are even all that great software designers... they know syntax and the standard libraries well enough to give a beginner a run through sure 00:51 -!- skammer [n=skammer@ppp94-29-59-119.pppoe.spdop.ru] has quit [Remote closed the connection] 00:52 < Zeffrin> but theres nothing there requiring skills in designing large software systems 00:53 < Zeffrin> Now that said I imagine the authors are quite capable and thats how they have the confidence to publish a book in the first place but still, makes me think even I could write some of these books and in some cases (sames 24 hour C) I think I could do it better heh 00:53 < me___> ni|: what did you mean, about tcmalloc and plan 9? 00:54 -!- path[l] [n=path@115.240.20.126] has quit [Read error: 110 (Connection timed out)] 00:54 < s_mosher> ni|, I think the official position on tail call opts is "no guarantees" (i.e. keep it implementation dependent) I'm not sure about the current implementation. 00:55 < s_mosher> Ibw, I got that. It died eventually but worked fine when I re-ran all.bash 00:56 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 00:57 -!- gu2 [n=gu@ool-435238c0.dyn.optonline.net] has joined #go-nuts 00:59 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has quit [Client Quit] 01:02 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined #go-nuts 01:03 -!- rob__ [n=rob@95-90-45-206-dynip.superkabel.de] has joined #go-nuts 01:03 -!- jdp [n=gu@ool-435238c0.dyn.optonline.net] has quit [Read error: 60 (Operation timed out)] 01:03 -!- skammer [n=skammer@ppp94-29-59-119.pppoe.spdop.ru] has joined #go-nuts 01:04 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit [Read error: 110 (Connection timed out)] 01:06 -!- skammer [n=skammer@ppp94-29-59-119.pppoe.spdop.ru] has quit [Remote closed the connection] 01:07 < ni|> me___: i mean russ erik and I discussed tcmalloc to replace allocator as a project for me 01:07 < ni|> russ really recommended it 01:08 < ni|> so i started to take its ideas and make plan9 allocator out of it 01:08 < ni|> oh, hi vs 01:10 < Ibw> @eval []bytes("hello") 01:10 < rndbot> <Error: undefined: bytes> 01:10 < Ibw> @eval []byte("hello") 01:10 < rndbot> <Error: cannot convert "hello" (type string) to type []uint8 in conversion> 01:10 < Zeffrin> dangit, I've got a problem and Im not sure whats happening, getting assignment count mistmatch calling a func 01:10 < Zeffrin> but im assigning 3 and it returns 3 01:10 < KirkMcDonald> @eval strings.Bytes("hello") 01:10 < rndbot> [104 101 108 108 111] 01:10 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit [] 01:10 < Zeffrin> http://gopaste.org/view/private:mMTOD < -- relevant assignment, declaration and error lines in there if anyone has a moment to tell me what I'm doing wrong 01:10 < Ibw> KirkMcDonald: I know, but I'm writing something up for utf8 and utf8 can't import strings, as it would result in a circular dependency. Just assessing my options 01:11 < KirkMcDonald> @eval string([]byte{104, 101, 108, 108, 111}) 01:11 -!- Venom_X [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has quit [] 01:11 < rndbot> hello 01:11 < KirkMcDonald> Ibw: Perhaps the []byte() conversion should be legal. 01:12 -!- awishformore [n=awishfor@ip-88-207-238-133.dyn.luxdsl.pt.lu] has joined #go-nuts 01:12 < Ibw> KirkMcDonald: I would vouch for that 01:12 -!- rob| [n=rob@95.90.45.206] has quit [Read error: 60 (Operation timed out)] 01:12 < Ibw> There's no reason for it not to be 01:12 < KirkMcDonald> It is unambiguous. 01:12 < me___> ni|: oh, awesome! 01:12 < ni|> Ibw: do you know why thats happening? 01:12 < KirkMcDonald> If the reverse is legal, there's no compelling reason to forbid it. 01:12 < ni|> strings aren't mutable and arrays are 01:12 < KirkMcDonald> ni|: Ah! 01:13 < KirkMcDonald> ni|: That is a compelling reason. 01:13 < Ibw> ni|: Hmm 01:13 < Ibw> I guess it is 01:13 < ni|> this is in the tutorial 01:13 < me___> ni|: how far are you in the port? i did some measurements with tcmalloc and friends, its rockin' fast. 01:13 < ni|> not to be a douchebag 01:13 < KirkMcDonald> I never read the tutorial. :-) 01:13 < KirkMcDonald> I just started with the spec. 01:13 < ni|> me___: pretty far its mostly working 01:13 < ni|> as mostly working as an alloc can be 01:13 < ni|> lol 01:13 < ni|> i just got out of school and have been bumming around 01:13 < me___> ni|: i've been working on replacing the libc and kmallocs with something based on libumem, if you were going to submit tcmalloc to replace libc alloc, that'd rock 01:14 < ni|> Ibw: its considering "Hello" as const stuff 01:14 < ni|> me___: i suspect i will 01:14 < ni|> after i work with russ for a bit 01:14 < me___> ni|: haha good work. 01:14 < ni|> i'm new to this stuff compared to him -- so i was shy to show it to him 01:14 < ni|> because i don't want him to slay me 01:14 < ni|> :D 01:14 < me___> :D 01:14 < Ibw> I started with the tutorial, but got bored after a while and moved on to Effective Go and the language spec 01:16 < ni|> Ibw: do you know ebnf? 01:16 < ni|> Ibw: its in the spec 01:16 < me___> ni|: if i could help you in any way let me know? 01:16 < Ibw> no 01:16 < ni|> anyways no big deal -- i made the stupid mistake here! 01:16 < ni|> trying to compile go with a c compiler! 01:16 < Ibw> ya, that was entertaining... 01:16 < ni|> me___: oh i will :) 01:16 < ni|> Ibw: gl 01:16 < ni|> anyways i gg back to my wrok 01:17 < Ibw> good luck? hmm, whatever for? 01:19 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined #go-nuts 01:19 < ni|> thanks! 01:19 < ni|> me___: i'll be in touch -- i have your information :p 01:19 < me___> ni|: awesome; btw, have we met? 01:19 * ni| waves 01:20 < ni|> me___: met? in what sense? 01:20 < ni|> not in person 01:20 < me___> ah okay. 01:21 < Ibw> ni|: Your mistake wasn't particularly entertaining, as we have all been making regular stupid mistakes, but the way you freaked out made me chuckle 01:21 -!- brunov [n=bruno@190.191.110.64] has joined #go-nuts 01:21 < ni|> Ibw: i had 20 extra hours of code written 01:22 < ni|> and i was trying to compile them in a makefile with 6c 01:22 < Ibw> extra? 01:22 < Ibw> oh 01:22 < Ibw> hah 01:22 < ni|> from where the other packages were lol 01:22 < ni|> anyways 01:22 * ni| waves 01:22 -!- ni| [n=james@isp2-resnet-nat1.union.edu] has quit ["leaving"] 01:22 < Ibw> So you spent 20 hours without building once? 01:22 < Ibw> Or you only tried 6c in the makefile? 01:23 < hstimer> I used to go 20 hours with cfront because of 90 minute compiles 01:23 < exch> coding for 20 hours without building does make for adventurous working conditions. Imagine the sense of achievement when it actually works 01:23 < hstimer> no reason to wait more than a few minutes with go 01:24 < exch> I think you can afford to bind the compiler to the save key with go :p 01:25 < hstimer> i'll second that 01:25 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 01:26 < hstimer> I used ruby for a while just to avoid compiles 01:26 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has quit [Client Quit] 01:26 < hstimer> too bad it ran too slow for anything I was doing 01:26 < Jerub> I used to have a policy of only using the compiler every 2 hours. it made me write much tighter code. 01:27 < exch> mm yes. ruby is fun as a language, but the speed made me cry 01:27 -!- awishformore__ [n=awishfor@78.141.153.190] has quit [Read error: 113 (No route to host)] 01:35 -!- gisikw [n=gisikw@137.28.246.58] has quit [Remote closed the connection] 01:35 < hstimer> is there a way to get a field/method/file name as compile time const? it isn't always necessary to do runtime introspection; sometimes compile time is fine 01:36 -!- Tuller [n=Tuller@pool-72-84-246-12.rcmdva.fios.verizon.net] has quit ["to the batcave?"] 01:36 -!- triplez [n=triplez@bb116-14-30-197.singnet.com.sg] has joined #go-nuts 01:37 -!- gu2 [n=gu@ool-435238c0.dyn.optonline.net] has joined #go-nuts 01:37 -!- decriptor [n=decripto@137.65.132.12] has quit [Read error: 110 (Connection timed out)] 01:37 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit [] 01:37 -!- kota1111 [n=kota1111@gw2.kbmj.jp] has joined #go-nuts 01:38 -!- jdp [n=gu@ool-435238c0.dyn.optonline.net] has quit [Nick collision from services.] 01:38 -!- mythmon [n=mythmon@128-193-255-47.resnet.oregonstate.edu] has joined #go-nuts 01:38 -!- mythmon [n=mythmon@128-193-255-47.resnet.oregonstate.edu] has quit [Client Quit] 01:39 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 01:43 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has quit [Client Quit] 01:44 -!- Daminvar [n=Daminvar@129.21.81.8] has joined #go-nuts 01:49 -!- Daminvar [n=Daminvar@129.21.81.8] has quit ["Leaving"] 01:50 -!- Daminvar [n=Daminvar@129.21.81.8] has joined #go-nuts 01:51 -!- Xavi [n=Xavi@71-85-10-175.dhcp.buft.sc.charter.com] has joined #go-nuts 01:54 -!- lambo4jos [n=chatzill@c-76-126-250-10.hsd1.ca.comcast.net] has quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"] 01:56 -!- clearscreen [n=clearscr@62.140.137.121] has quit [Read error: 54 (Connection reset by peer)] 01:58 -!- clearscreen [n=clearscr@62.140.137.121] has joined #go-nuts 02:01 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 02:01 -!- decriptor [n=decripto@174-27-134-202.slkc.qwest.net] has joined #go-nuts 02:01 -!- Xavi [n=Xavi@71-85-10-175.dhcp.buft.sc.charter.com] has quit [Remote closed the connection] 02:03 < Alkavan> a library for web development (outputing html objects) would be something reasonable to develop for Go? 02:04 < Whtiger> Everything is reasonable for Go 02:04 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Read error: 60 (Operation timed out)] 02:04 < alexsuraci> Alkavan: like this?: http://github.com/vito/go-play/blob/master/gopaste/html.go 02:06 -!- sm [n=sm@pool-173-51-150-10.lsanca.dsl-w.verizon.net] has joined #go-nuts 02:07 < Alkavan> u forked it? 02:08 < alexsuraci> Alkavan: forked what? 02:09 < Alkavan> anyway, this is nice. 02:09 < alexsuraci> thanks :) is it what you were thinking of? 02:09 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 02:09 < Alkavan> with go cimpile speeds it can work like php. 02:10 < alexsuraci> sort of, it's more for building up the html in the app and spitting it out when ready 02:10 < Alkavan> i'm a web developer, think try to develop web stuff with go. 02:10 < alexsuraci> which lets you do fancy things like build up completely separate parts of the page all at once 02:10 < Alkavan> compile* 02:10 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit [Read error: 104 (Connection reset by peer)] 02:11 < alexsuraci> ah, cool. that gopaste dir runs gopaste.org, feel free to snoop around 02:11 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined #go-nuts 02:11 < alexsuraci> controller.go may be particularly interesting to you :) 02:11 < alexsuraci> radically different setup than how php is usually used, though 02:11 < Alkavan> yes, i like controllers. 02:11 < Alkavan> developing with CakePHP... 02:13 < Alkavan> one thing i don't understand with go, the 'chan' thing, should be used for stuff like XML HTTP REQUESTS? or different things? 02:13 < alexsuraci> it's more for internal stuff 02:14 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit [Read error: 104 (Connection reset by peer)] 02:14 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined #go-nuts 02:14 < alexsuraci> s/more/only afaik 02:14 < alexsuraci> take a look at the http package 02:15 -!- brunov [n=bruno@190.191.110.64] has quit ["Ex-Chat"] 02:16 -!- eharmon [n=eharmon@74.204.161.105] has quit [Read error: 60 (Operation timed out)] 02:16 -!- cyt [n=cyt@li57-21.members.linode.com] has quit [Read error: 60 (Operation timed out)] 02:16 -!- kuroneko [n=chris@yayoi.xware.cx] has quit [Read error: 60 (Operation timed out)] 02:17 -!- mythz [n=mythz@5ac47bef.bb.sky.com] has joined #go-nuts 02:17 -!- eharmon [n=eharmon@74.204.161.105] has joined #go-nuts 02:17 -!- cyt [n=cyt@li57-21.members.linode.com] has joined #go-nuts 02:17 -!- kuroneko [n=chris@yayoi.xware.cx] has joined #go-nuts 02:19 -!- Xavi [n=Xavi@71-85-10-175.dhcp.buft.sc.charter.com] has joined #go-nuts 02:19 -!- decriptor [n=decripto@174-27-134-202.slkc.qwest.net] has quit ["Ex-Chat"] 02:19 -!- decriptor [n=decripto@174-27-134-202.slkc.qwest.net] has joined #go-nuts 02:20 -!- malkomalko_ [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has joined #go-nuts 02:21 < Alkavan> alexsuraci, ya, the http pkg nice one, don't think i ever programmed at this level, but should try it, can think of some nice things to do with it. 02:31 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 02:32 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has quit [] 02:37 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has quit [Read error: 113 (No route to host)] 02:38 < Zeffrin> so anyone able to tell me what could be wrong 02:38 < Zeffrin> http://gopaste.org/view/private:mMTOD 02:39 < Zeffrin> my understanding is that the variables in the func are initialised when its called so really it should be returning 3 no matter whats inside? 02:40 < alexsuraci> is that a runtime error? 02:40 -!- codedread [i=180dd699@gateway/web/freenode/x-vjfsycfggyoztjuv] has joined #go-nuts 02:40 < codedread> so i understand that Go doesn't have any inheritance of types, is that true? 02:41 < alexsuraci> codedread: it has embedding 02:41 < codedread> do you mean composition? 02:41 -!- adante [n=adante@59.167.212.65] has left #go-nuts ["yep"] 02:41 < alexsuraci> i don't think so 02:41 < codedread> ok, let's take a common problem: I have two types that share a good deal of common with each other (methods/properties) 02:41 < alexsuraci> codedread: http://golang.org/doc/effective_go.html#embedding 02:41 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit ["Leaving."] 02:41 < alexsuraci> other than that there is no inheritance 02:41 < codedread> how can i share the common code between the two types? 02:42 < alexsuraci> have them implement an interface 02:43 -!- Xavi [n=Xavi@71-85-10-175.dhcp.buft.sc.charter.com] has quit [Read error: 110 (Connection timed out)] 02:43 < codedread> thanks, embedding seems to be what i'm looking for 02:43 < alexsuraci> no problem 02:43 -!- mythz [n=mythz@5ac47bef.bb.sky.com] has quit [] 02:46 -!- Raziel2p [n=Raziel2p@ti0032a380-dhcp0316.bb.online.no] has quit ["Leaving"] 02:49 -!- Ibw [n=isaac@cpe-67-241-42-134.twcny.res.rr.com] has quit [Remote closed the connection] 02:51 -!- sm [n=sm@pool-173-51-150-10.lsanca.dsl-w.verizon.net] has left #go-nuts [] 02:55 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has quit [Read error: 110 (Connection timed out)] 03:01 -!- nigwil [n=chatzill@berkner.ccamlr.org] has joined #go-nuts 03:03 -!- mitchellh1 [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 03:04 -!- Daminvar [n=Daminvar@129.21.81.8] has quit [Read error: 104 (Connection reset by peer)] 03:04 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit [Read error: 104 (Connection reset by peer)] 03:04 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined #go-nuts 03:09 -!- clearscreen [n=clearscr@62.140.137.121] has quit [Remote closed the connection] 03:11 -!- hooopy [i=hoopy@173-30-98-140.client.mchsi.com] has quit [Read error: 110 (Connection timed out)] 03:14 -!- Xavi [n=Xavi@71-85-10-175.dhcp.buft.sc.charter.com] has joined #go-nuts 03:16 -!- awishformore_ [n=awishfor@ip-88-207-238-133.dyn.luxdsl.pt.lu] has joined #go-nuts 03:18 -!- gisikw [n=gisikw@137.28.246.58] has joined #go-nuts 03:21 -!- nuggien [n=Adium@c-71-198-205-240.hsd1.ca.comcast.net] has joined #go-nuts 03:22 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit [] 03:22 -!- awishformore [n=awishfor@ip-88-207-238-133.dyn.luxdsl.pt.lu] has quit [Read error: 60 (Operation timed out)] 03:24 -!- path[l]_ [n=path@115.240.11.16] has joined #go-nuts 03:28 -!- freshup [n=adam@cpe-24-161-167-248.san.res.rr.com] has quit [] 03:29 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit [] 03:30 -!- path[l] [n=path@115.240.40.147] has quit [Read error: 110 (Connection timed out)] 03:33 -!- ward__ [n=ward@173.8.216.62] has quit [] 03:34 -!- beardeddog [n=beardedd@24.20.122.211] has quit ["This computer has gone to sleep"] 03:36 < plexdev> http://is.gd/58vPp by [Anthony Starks] in go/ -- Adding to AUTHORS and CONTRIBUTORS as per http://golang.org/doc/contribute.html#copyright 03:36 < plexdev> http://is.gd/58vPs by [Anthony Starks] in go/misc/bbedit/ -- Syntax coloring and function navigation for BBEdit/TextWrangler 03:36 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined #go-nuts 03:37 -!- viirya [n=viirya@cml506-25.csie.ntu.edu.tw] has quit [Read error: 110 (Connection timed out)] 03:38 -!- path[l] [n=path@115.240.11.16] has quit [Read error: 104 (Connection reset by peer)] 03:38 -!- path[l] [n=path@115.240.11.16] has joined #go-nuts 03:43 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts 03:45 -!- bobappleyard84 [n=bobapple@cpc4-macc1-0-0-cust170.bagu.cable.ntl.com] has joined #go-nuts 03:46 -!- bobappleyard84 [n=bobapple@cpc4-macc1-0-0-cust170.bagu.cable.ntl.com] has left #go-nuts [] 03:47 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined #go-nuts 03:48 < gisikw> Is there any way to use a channel like an interrupt? 03:50 < reppie> what do you mean 03:53 < gisikw> essentially, do a select, with one case being <- channel, and the other being if nothing gets received? 03:53 < gisikw> so, you could have a loop until interrupted by channel communication 03:58 -!- OwlHuntr [n=dapopo@32.143.7.201] has joined #go-nuts 03:58 -!- The_Doctor [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has joined #go-nuts 03:59 < OwlHuntr> I wish more people would join the mailing list 03:59 < OwlHuntr> they're actually very exciting 04:00 -!- OwlHuntr [n=dapopo@32.143.7.201] has quit [Client Quit] 04:00 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection] 04:01 -!- halfdan_ [n=halfdan@p57A94753.dip.t-dialin.net] has joined #go-nuts 04:10 -!- hooopy [i=hoopy@173-30-98-140.client.mchsi.com] has joined #go-nuts 04:17 < kuroneko> it'd probably help if the list wasn't so noisy 04:18 -!- halfdan [n=halfdan@p57A95AB7.dip.t-dialin.net] has quit [Read error: 110 (Connection timed out)] 04:20 < gisikw> kuroneko++ 04:20 -!- codedread [i=180dd699@gateway/web/freenode/x-vjfsycfggyoztjuv] has quit ["Page closed"] 04:21 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit ["This computer has gone to sleep"] 04:23 < anticw> kuroneko: i'm tempted to make a moderated copy/clone of the ML 04:23 < anticw> where the volume is lower and the more on topic 04:24 -!- skelterjohn [n=jasmuth@c-76-116-177-32.hsd1.nj.comcast.net] has joined #go-nuts 04:24 -!- tricky [i=___@dsl-241-156-177.telkomadsl.co.za] has quit ["fight dirty today, to fight again tomorrow"] 04:28 -!- ward [n=ward@c-98-232-243-25.hsd1.or.comcast.net] has joined #go-nuts 04:31 -!- mitchellh1 [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit ["Leaving."] 04:31 -!- The_Doctor [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has quit [Read error: 110 (Connection timed out)] 04:33 -!- qbit_ [n=qbit_@c-75-71-160-106.hsd1.co.comcast.net] has quit ["Computer has gone to sleep"] 04:36 -!- skelterjohn [n=jasmuth@c-76-116-177-32.hsd1.nj.comcast.net] has quit [] 04:36 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has quit ["Leaving."] 04:36 -!- decriptor [n=decripto@174-27-134-202.slkc.qwest.net] has quit [Read error: 110 (Connection timed out)] 04:37 < jessta> the mailing list seems to get a lot of traffic from people not reading the docs 04:38 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has joined #go-nuts 04:41 -!- Kibiz0r1 [n=Adium@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has joined #go-nuts 04:43 < jessta> it would be nice to have a wiki where dicussions on the mailing list could be summarised 04:43 -!- Kibiz0r1 [n=Adium@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has quit [Client Quit] 04:47 -!- rbohn_ [i=rsbohn@xmission.xmission.com] has joined #go-nuts 04:49 -!- alc [n=alc@222.128.148.216] has joined #go-nuts 04:54 -!- gu2 [n=gu@ool-435238c0.dyn.optonline.net] has joined #go-nuts 04:57 -!- lambo4jos [n=chatzill@c-76-126-250-10.hsd1.ca.comcast.net] has joined #go-nuts 04:59 -!- Wiz126 [n=Wiz126@24.102.254.150.res-cmts.sm.ptd.net] has quit [] 04:59 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts 05:00 -!- me_____ [i=me@rose.makesad.us] has joined #go-nuts 05:00 < alexsuraci> > print("\u4eca\u65e5\u306f\u4e16\u754c") 05:00 -!- jdp [n=gu@ool-435238c0.dyn.optonline.net] has quit [Read error: 60 (Operation timed out)] 05:00 < rndbot> 今日は世界 05:01 -!- me___ [n=me@eridani.acm.jhu.edu] has quit ["leaving"] 05:01 < dho> OH JUST FIXING BUGS 05:01 < dho> srsly, the .Close race conditions are retarded 05:01 < dho> that totally took me like 3 hours 05:09 -!- nigwil [n=chatzill@berkner.ccamlr.org] has quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"] 05:10 < Zeffrin> so many compilers errors from my refactor last night... the new method is a LOT better than how I was going about it before but so many typos and silly little things 05:10 < Zeffrin> tired + drunk = bad code 05:11 < reppie> drunfk coed 05:11 -!- decriptor [n=decripto@53.250.sfcn.org] has joined #go-nuts 05:11 < Zeffrin> i just found with one bug though... I needed to fix one of the last errors to resolve one of the first... with C I've always found fix whatevers at the top and many of the following errors will dssappear 05:15 < Zeffrin> also something else Im wondering... surely theres a better way... I have a response from a server request which are going to be strings... but ahead of time I cannot know how many lines I'm going to get back (it differs from server to server) 05:15 < Zeffrin> so my thinking is to just use a struct to implment a singly linked list to avoid realloc and all that noise 05:15 < Zeffrin> is there a better way? 05:19 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has quit ["Leaving"] 05:20 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has joined #go-nuts 05:21 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 05:21 < anticw> dho: ? 05:21 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit [Client Quit] 05:22 -!- yawk [n=yawk@unaffiliated/yawk] has joined #go-nuts 05:22 < sladegen> i'm guessing it's this http://code.google.com/p/go/issues/detail?id=321#c2 05:25 -!- jA_cOp_ [n=yakobu@ti0043a380-3093.bb.online.no] has quit [Remote closed the connection] 05:26 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has quit ["Leaving."] 05:26 < Zeffrin> i'm guessing it's this http://code.google.com/p/go/issues/detail?id=321#c2 05:26 < Zeffrin> oops sorry 05:26 < Ycros> Zeffrin: there's already a list implementation in the standard library 05:27 < Zeffrin> oh well dang, i should be using that then :) 05:27 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has joined #go-nuts 05:28 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has joined #go-nuts 05:29 -!- sigpipe [n=scandal@unaffiliated/scandal] has joined #go-nuts 05:32 -!- rbohn_ [i=rsbohn@xmission.xmission.com] has quit ["past my bedtime"] 05:34 -!- droid0011 [n=g1@p4FDCE569.dip.t-dialin.net] has joined #go-nuts 05:37 -!- robot12 [n=root@inferno.kgts.ru] has quit ["õÈÏÖÕ Ñ ÏÔ ×ÁÓ (xchat 2.4.5 ÉÌÉ ÓÔÁÒÛÅ)"] 05:38 -!- robot12 [n=root@inferno.kgts.ru] has joined #go-nuts 05:38 < plexdev> http://is.gd/58APG by [Fazlul Shahriar] in go/doc/ -- Fix typo in spec 05:39 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit [Read error: 104 (Connection reset by peer)] 05:41 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 05:41 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit [Remote closed the connection] 05:43 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit [] 05:43 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts 05:44 -!- Xavi [n=Xavi@71-85-10-175.dhcp.buft.sc.charter.com] has quit [Read error: 110 (Connection timed out)] 05:44 < anticw> who/what runs plexdev? 05:45 -!- ward [n=ward@c-98-232-243-25.hsd1.or.comcast.net] has quit [] 05:49 -!- droid001 [n=g1@p4FDCF8A2.dip.t-dialin.net] has quit [Success] 05:52 -!- KillerX [n=anant@122.181.150.106] has joined #go-nuts 05:52 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 05:55 -!- nuggien [n=Adium@c-71-198-205-240.hsd1.ca.comcast.net] has quit ["Leaving."] 05:55 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has quit [Read error: 54 (Connection reset by peer)] 05:55 -!- nuggien [n=Adium@c-71-198-205-240.hsd1.ca.comcast.net] has joined #go-nuts 05:56 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts 05:56 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has joined #go-nuts 05:56 -!- phillipsm [n=mattscom@173-23-63-244.client.mchsi.com] has joined #go-nuts 06:18 -!- Intelliware [n=danielb@124-197-59-227.callplus.net.nz] has joined #go-nuts 06:20 -!- mkanat [n=mkanat@c-67-188-1-39.hsd1.ca.comcast.net] has quit ["Bye!"] 06:20 -!- something21 [n=danielb@124-197-59-227.callplus.net.nz] has joined #go-nuts 06:20 -!- drusepth [i=drusepth@adsl-75-28-53-131.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 06:24 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has quit [Nick collision from services.] 06:26 -!- Intelliware [n=danielb@124-197-59-227.callplus.net.nz] has quit [Read error: 60 (Operation timed out)] 06:26 -!- itrekkie [n=itrekkie@ip72-200-105-72.tc.ph.cox.net] has joined #go-nuts 06:29 -!- vpit3833 [n=user@58.108.189.47] has joined #go-nuts 06:30 -!- vpit3833 [n=user@58.108.189.47] has left #go-nuts ["ERC Version 5.3 (IRC client for Emacs)"] 06:31 < anticw> dho: there? 06:36 -!- djanderson [n=dja@hltncable.pioneerbroadband.net] has quit [Client Quit] 06:38 -!- s_mosher [n=smosher@bas1-ottawa10-1279302916.dsl.bell.ca] has left #go-nuts ["Leaving"] 06:38 -!- s_mosher [n=smosher@bas1-ottawa10-1279302916.dsl.bell.ca] has joined #go-nuts 06:39 -!- drusepth` [n=drusepth@adsl-75-28-53-131.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 06:40 -!- itrekkie [n=itrekkie@ip72-200-105-72.tc.ph.cox.net] has quit [] 06:41 < dho> anticw: what's up 06:42 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined #go-nuts 06:42 < anticw> dho: the close fixes... without those we have a goroutine spinning on a bad fd/socket? 06:42 < dho> i'm actually heading to bed, just had a rather long (and late) phone convo and i have to work tomorrow 06:42 < dho> yes 06:42 < dho> well 06:43 < anticw> im asking because i checked for that and didnt see it, it looked to be spinning w/o makin any syscalls 06:43 < anticw> so im trying to understand the root cause in more detail 06:44 < dho> One of the goroutines is waiting on a channel 06:44 < dho> and the other is theoretically calling read a bajillion times and getting 0 back and EOF each time 06:44 -!- nuggien [n=Adium@c-71-198-205-240.hsd1.ca.comcast.net] has quit ["Leaving."] 06:44 < dho> I don't know if that would show up in strace/ktrace. 06:44 < dho> (Maybe?) 06:45 < dho> In any event, the patch I have isn't correct and I'll have to revisit it tomorrow 06:45 < dho> I really need my sleep :( 06:45 < dho> i'm only going to get like 5 hours 06:46 < tricky> thats 5 more than I got last night 06:46 < anticw> dho: if the channel is closed it will get that ... otherwise it would block 06:46 < tricky> nearly fell asleep on the way to work 06:46 < tricky> nearly fell asleep at work 06:46 < tricky> need more coffee :D 06:50 -!- KillerX [n=anant@gentoo/developer/KillerX] has quit ["Leaving."] 06:51 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts 06:54 -!- Metaphis [n=cyanure@212-198-164-142.rev.numericable.fr] has joined #go-nuts 06:55 -!- drusepth [i=drusepth@adsl-75-28-53-131.dsl.spfdmo.sbcglobal.net] has quit [Read error: 110 (Connection timed out)] 06:56 -!- Zzzoom [n=zzzoom@unaffiliated/zzzoom] has joined #go-nuts 06:56 -!- kaib [n=kaib@c-76-102-52-156.hsd1.ca.comcast.net] has joined #go-nuts 06:56 -!- mode/#go-nuts [+v kaib] by ChanServ 06:57 -!- ShadowIce [n=pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 06:57 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has joined #go-nuts 06:57 <+kaib> evening everyone 06:58 < anticw> evening' 07:00 -!- path[l] [n=path@115.240.11.16] has quit [Read error: 60 (Operation timed out)] 07:00 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts 07:05 -!- kichik|work [n=kichik_w@bzq-84-108-228-67.cablep.bezeqint.net] has joined #go-nuts 07:06 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit ["This computer has gone to sleep"] 07:08 -!- drusepth` [n=drusepth@adsl-75-28-53-131.dsl.spfdmo.sbcglobal.net] has quit [Read error: 110 (Connection timed out)] 07:10 -!- nuggien [n=Adium@c-71-198-205-240.hsd1.ca.comcast.net] has joined #go-nuts 07:11 -!- alc [n=alc@222.128.148.216] has quit [] 07:11 -!- Metaphis [n=cyanure@212-198-164-142.rev.numericable.fr] has quit [Connection timed out] 07:13 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 07:14 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 07:15 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 07:18 -!- OwlHuntr [n=Artem@c-98-221-154-130.hsd1.nj.comcast.net] has joined #go-nuts 07:18 < OwlHuntr> hey 07:18 < OwlHuntr> quick thing here 07:19 < OwlHuntr> i remember we settled on GoStones but i don't think i can change the GoGems repo name 07:19 < OwlHuntr> btw, it now supports Git pulling 07:19 < OwlHuntr> so feeding it github pkgs will allow you to download them 07:20 < OwlHuntr> tomorrow i'll actually make it build the pkg's and let you use the, 07:20 < OwlHuntr> them* 07:20 < OwlHuntr> http://github.com/OwlHuntr/GoGems 07:20 < OwlHuntr> ugh, whatever, night 07:20 -!- OwlHuntr [n=Artem@c-98-221-154-130.hsd1.nj.comcast.net] has quit [Remote closed the connection] 07:21 -!- rado1 [n=jon@66-214-153-109.dhcp.mtpk.ca.charter.com] has quit ["Leaving."] 07:23 -!- yawk [n=yawk@unaffiliated/yawk] has left #go-nuts ["Leaving"] 07:27 -!- jdp [n=gu@ool-435238c0.dyn.optonline.net] has quit [] 07:31 -!- savy [n=s@w.opr.im] has quit [Read error: 113 (No route to host)] 07:32 -!- path[l] [n=path@59.162.86.164] has joined #go-nuts 07:32 < Innominate> http://www.youtube.com/watch?v=zSgiXGELjbc 07:33 -!- kaib [n=kaib@c-76-102-52-156.hsd1.ca.comcast.net] has quit [] 07:33 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has quit [Remote closed the connection] 07:34 -!- amuck [n=amuck@h41.136.16.98.dynamic.ip.windstream.net] has joined #go-nuts 07:34 -!- jdp [n=justin@ool-435238c0.dyn.optonline.net] has joined #go-nuts 07:34 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has quit [Remote closed the connection] 07:35 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has joined #go-nuts 07:37 -!- path[l] [n=path@59.162.86.164] has quit [] 07:38 -!- path[l] [n=path@59.162.86.164] has joined #go-nuts 07:46 -!- decriptor [n=decripto@53.250.sfcn.org] has quit [Read error: 113 (No route to host)] 07:47 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection] 07:47 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts 07:53 -!- melba [n=blee@unaffiliated/lazz0] has joined #go-nuts 07:54 -!- uxp [n=uxp@uxp.dsl.xmission.com] has joined #go-nuts 07:54 -!- aarapov [n=aarapov@nat/redhat/x-yoqxjsycdmcjvacz] has joined #go-nuts 07:55 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit [Read error: 113 (No route to host)] 07:59 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has quit [] 08:00 -!- lambo4jos [n=chatzill@c-76-126-250-10.hsd1.ca.comcast.net] has quit ["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"] 08:03 -!- trickie [n=trickie@94.100.112.225] has joined #go-nuts 08:05 -!- diltsman_ [n=diltsman@64.122.18.77] has joined #go-nuts 08:05 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has joined #go-nuts 08:06 -!- viirya [n=viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts 08:09 -!- amuck [n=amuck@h41.136.16.98.dynamic.ip.windstream.net] has quit [] 08:12 < diltsman_> Is there any way to create an implementation for a function of an interface that is shared by different structs that implement the interface? 08:15 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has joined #go-nuts 08:19 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has quit [Remote closed the connection] 08:27 -!- diltsman_ [n=diltsman@64.122.18.77] has quit [] 08:30 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has joined #go-nuts 08:32 -!- TMinus36 [n=serverz@pdpc/supporter/student/tminus36] has joined #go-nuts 08:34 -!- nuggien [n=Adium@c-71-198-205-240.hsd1.ca.comcast.net] has quit ["Leaving."] 08:35 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has quit [] 08:36 -!- Zzzoom [n=zzzoom@unaffiliated/zzzoom] has quit [Read error: 110 (Connection timed out)] 08:39 -!- kiva [n=michaelw@r220-101-159-148.cpe.unwired.net.au] has joined #go-nuts 08:40 -!- dolf_ [n=dolf@145.74.180.151] has joined #go-nuts 08:40 -!- ment [i=thement@ibawizard.net] has left #go-nuts [] 08:46 -!- kaigan|work [n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined #go-nuts 08:50 -!- kiva [n=michaelw@r220-101-159-148.cpe.unwired.net.au] has quit ["leaving"] 08:51 -!- melba [n=blee@unaffiliated/lazz0] has quit [Read error: 104 (Connection reset by peer)] 08:52 -!- melba [n=blee@unaffiliated/lazz0] has joined #go-nuts 08:53 -!- p0g0__ [n=pogo@unaffiliated/p0g0] has joined #go-nuts 08:56 -!- p0g0_ [n=pogo@unaffiliated/p0g0] has quit [Read error: 110 (Connection timed out)] 08:57 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit [] 09:02 -!- nuggien [n=Adium@c-71-198-205-240.hsd1.ca.comcast.net] has joined #go-nuts 09:05 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts 09:07 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection] 09:15 -!- yaroslav [n=yaroslav@93.157.184.185] has joined #go-nuts 09:17 -!- kiva [n=quassel@r220-101-159-148.cpe.unwired.net.au] has joined #go-nuts 09:18 -!- nuggien [n=Adium@c-71-198-205-240.hsd1.ca.comcast.net] has quit ["Leaving."] 09:19 -!- nuggien [n=Adium@c-71-198-205-240.hsd1.ca.comcast.net] has joined #go-nuts 09:25 -!- vomjom [n=vomjom@99-157-248-71.lightspeed.stlsmo.sbcglobal.net] has joined #go-nuts 09:26 -!- nuggien [n=Adium@c-71-198-205-240.hsd1.ca.comcast.net] has quit ["Leaving."] 09:28 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has quit [Remote closed the connection] 09:36 -!- def_ [n=def@pro75-6-88-185-121-188.fbx.proxad.net] has joined #go-nuts 09:36 -!- rob| [n=rob@95-90-45-206-dynip.superkabel.de] has quit ["brb"] 09:43 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has joined #go-nuts 09:44 -!- dibb [n=dibb@ashera.openend.se] has quit [Remote closed the connection] 09:44 -!- aarapov [n=aarapov@nat/redhat/x-yoqxjsycdmcjvacz] has quit ["Leaving."] 09:44 -!- JSharpe [n=jamie@5adaeaaa.bb.sky.com] has quit [Read error: 60 (Operation timed out)] 09:48 -!- Cyanure [n=cyanure@212-198-164-142.rev.numericable.fr] has joined #go-nuts 09:50 -!- ttodos [n=ttodos@195.160.234.10] has joined #go-nuts 09:52 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has quit [Connection reset by peer] 09:52 -!- Cyanure [n=cyanure@212-198-164-142.rev.numericable.fr] has quit [Read error: 60 (Operation timed out)] 09:56 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has quit ["Leaving."] 09:58 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has joined #go-nuts 09:59 -!- snearch_ [n=olaf@e179131103.adsl.alicedsl.de] has joined #go-nuts 10:00 -!- triplez [n=triplez@bb116-14-30-197.singnet.com.sg] has quit [] 10:02 -!- geocalc [n=geocalc@lns-bzn-52-82-65-112-185.adsl.proxad.net] has joined #go-nuts 10:03 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has joined #go-nuts 10:05 -!- GeoBSD [n=geocalc@lns-bzn-33-82-252-5-86.adsl.proxad.net] has quit [Read error: 60 (Operation timed out)] 10:07 -!- Perberos [n=Perberos@190.49.62.90] has joined #go-nuts 10:09 -!- KillerX [n=anant@122.181.150.106] has joined #go-nuts 10:15 -!- Zzzoom [n=zzzoom@unaffiliated/zzzoom] has joined #go-nuts 10:21 -!- nomism [n=nomism@e179243114.adsl.alicedsl.de] has joined #go-nuts 10:23 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has quit [Read error: 110 (Connection timed out)] 10:24 -!- jpowermacg5 [n=jpowerma@c-71-204-41-29.hsd1.ga.comcast.net] has joined #go-nuts 10:25 -!- JSharpe [n=jamie@5adaeaaa.bb.sky.com] has joined #go-nuts 10:27 -!- nomism [n=nomism@e179243114.adsl.alicedsl.de] has left #go-nuts ["Verlassend"] 10:31 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has joined #go-nuts 10:31 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit ["Leaving."] 10:32 -!- MarkBao [n=MarkBao@pool-98-110-164-163.bstnma.fios.verizon.net] has joined #go-nuts 10:33 -!- Zzzoom [n=zzzoom@unaffiliated/zzzoom] has quit [Read error: 110 (Connection timed out)] 10:38 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit [] 10:44 -!- nullpo [n=nullpo@221x252x46x83.ap221.ftth.ucom.ne.jp] has joined #go-nuts 10:52 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts 10:56 -!- aarapov [n=aarapov@nat/redhat/x-dekwtketlzfnviit] has joined #go-nuts 10:59 -!- JSharpe2 [n=jamie@5ad673ea.bb.sky.com] has joined #go-nuts 11:03 -!- skammer [n=skammer@ppp95-165-49-24.pppoe.spdop.ru] has joined #go-nuts 11:04 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has quit [Read error: 60 (Operation timed out)] 11:04 -!- Zzzoom [n=zzzoom@unaffiliated/zzzoom] has joined #go-nuts 11:10 -!- JSharpe2 [n=jamie@5ad673ea.bb.sky.com] has quit [Read error: 60 (Operation timed out)] 11:11 < mikedee> OwlHuntr: I am still getting this error trying to compile your program main.go:129: undefined: vector.New - any ideas why that is? 11:12 < jessta> mikedee: it got removed 11:12 -!- isparry [n=isparry@f070.brocade.com] has quit [Remote closed the connection] 11:13 < mikedee> thanks 11:15 -!- JSharpe [n=jamie@5adaeaaa.bb.sky.com] has quit [Read error: 110 (Connection timed out)] 11:20 -!- skammer [n=skammer@ppp95-165-49-24.pppoe.spdop.ru] has quit [Remote closed the connection] 11:21 -!- praetorian [i=praetori@unaffiliated/praetorian] has quit ["leaving"] 11:21 -!- skammer [n=skammer@ppp95-165-49-24.pppoe.spdop.ru] has joined #go-nuts 11:22 -!- kota1111 [n=kota1111@gw2.kbmj.jp] has quit ["Leaving..."] 11:25 -!- Freeaqingme_ [n=dolf@145.74.180.151] has quit [Read error: 110 (Connection timed out)] 11:25 -!- MarkBao [n=MarkBao@pool-98-110-164-163.bstnma.fios.verizon.net] has quit [No route to host] 11:26 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has joined #go-nuts 11:26 -!- gcarrier [n=gcarrier@snibbits.net] has quit [Client Quit] 11:27 -!- KillerX [n=anant@gentoo/developer/KillerX] has quit [Connection reset by peer] 11:28 -!- kiva [n=quassel@r220-101-159-148.cpe.unwired.net.au] has quit [Read error: 113 (No route to host)] 11:29 < rog> here's a nice little idiom i discovered. i think it's quite cool: http://gopaste.org/view/702Dz 11:30 < rog> although i don't know how useful it really is, because it doesn't have any flow control. but that's kind of the point. 11:35 -!- Alkavan_ [n=alkavan@IGLD-84-229-131-249.inter.net.il] has joined #go-nuts 11:37 -!- path[l] [n=path@59.162.86.164] has quit [] 11:38 -!- Alkavan [n=alkavan@77.124.44.87] has quit [Read error: 104 (Connection reset by peer)] 11:39 -!- exn [n=exn@micro.strace.net] has joined #go-nuts 11:39 < exn> Hello everybody ! 11:39 < exn> I have a question about regexps in Go 11:39 < exn> what the way to use it in Go ? 11:40 -!- path[l] [n=path@122.182.0.38] has joined #go-nuts 11:42 < rog> exn: look at the regexp package 11:42 < exn> hi rog, I'm a new in Go, can you show where it is ? I mean documentation or anything 11:42 < rog> exn: go to golang.org 11:42 < rog> exn: click on "packages" 11:43 < rog> exn: look for regexp 11:43 -!- JSharpe [n=jamie@5ad673ea.bb.sky.com] has joined #go-nuts 11:43 < rog> exn: or use the search box on that page 11:44 < exn> rog. k, thank you 11:47 < exn> is anywhere a programs written on Go ? maybe here somebody have done some program and can show it . just interesting :) 11:48 < rog> exn: if you download the source, there are hundreds of programs written in go, from simple to complex. 11:49 < rog> exn: for a random piece of code, i just posted this: http://gopaste.org/view/702Dz 11:49 < exn> rog, I've installed and compiled it from svn . I meant a programs which do something hopeful, a real programs 11:49 < rog> exn: what's "useful"? 11:49 < rog> exn: a compiler? 11:49 < rog> exn: a web server? 11:50 < exn> *useful . yes, sorry. Oh it will be very nice to see web server on Go ! 11:50 < rog> exn: well, there's one in the distribution - in the godoc package 11:51 < rog> exn: look in src/cmd/godoc 11:52 < jessta> exn: lots of code here http://go-lang.cat-v.org/go-code 11:55 < exn> oh, I need to read so much, cool :) thank you! 11:58 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts 12:01 -!- skammer [n=skammer@ppp95-165-49-24.pppoe.spdop.ru] has quit [Read error: 110 (Connection timed out)] 12:01 -!- hipe_ [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined #go-nuts 12:05 < robot12> http://4.bp.blogspot.com/_va9O40qIhaE/SvvaOrEwIlI/AAAAAAAACAs/06SH1r9Ie6M/s1600/gophert.jpg 12:06 < jessta> robot12: what is that a picture of? 12:10 -!- path[l] [n=path@122.182.0.38] has quit [] 12:10 -!- iwikiwi [n=iwikiwi@121.247.120.235] has joined #go-nuts 12:12 -!- path[l] [n=path@122.182.0.38] has joined #go-nuts 12:12 < robot12> jessta, Go ? :) 12:12 < dho> anticw: ping 12:15 -!- Vova [n=Vova@80.178.10.36.adsl.012.net.il] has joined #go-nuts 12:15 < rog> would someone here be able to test a weird syntax error i'm getting, please? 12:15 < JSharpe> ask to ask just ask 12:16 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined #go-nuts 12:17 < Vova> someone know how can i convert int x = *(int*)bytes to golang syntax? 12:17 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit [Read error: 110 (Connection timed out)] 12:17 < tor7> Vova: you can only do those tricks with the unsafe package 12:18 < vegai> Vova: do you mind me asking why you need such a thing? 12:18 < tor7> and I wouldn't recommend doing that 12:18 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit [Read error: 110 (Connection timed out)] 12:18 < rog> ok, take the piece of code i posted eariler (http://gopaste.org/view/702Dz), paste it into a file called "broadcast.go"; create another called "tstbroadcast.go" and paste this into it: http://gopaste.org/view/EmYS3 12:18 < Vova> tor: can you show me how can i do that? 12:18 < rog> then compile broadcast.go: 8g broadcast.go 12:18 < rog> it should be fine 12:18 < rog> then compile tstbroadcast.go: 8g -I . tstbroadcast.go 12:19 < Vova> vegai: building a packet class, reading packets 12:19 < rog> i get "tstbroadcast.go:3: syntax error near chan" which is very weird 12:19 < rog> because there's no chan keyword in tstbroadcast.go 12:19 < tor7> Vova: I'm going to be an elitist prick and say that if you can't figure that out on your own you shouldn't be using the unsafe package ;) 12:19 < rog> can anyone replicate this? 12:19 < rog> perhaps i'm doing the compilation wrong. or something. 12:20 < rog> but at the moment it looks like a compiler bug 12:20 < tor7> if you're reading packets you need to read them a byte at a time so you can get the byte order and alignments right 12:20 < vegai> Vova: ah, ok. I suppose this thing isn't enough then: http://golang.org/pkg/gob/ 12:21 < tor7> Vova: in this a standard format/protocol you're implementing? 12:21 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 54 (Connection reset by peer)] 12:21 < rog> Vova: doing that's usually a bad idea in C too, unless you know you're talking to a machine of the same endianness. 12:24 < Vova> i know what iam doing when iam doing it in C, just want to code server and client and i need a packet reader class for that 12:24 < Vova> and i dont really know how to do that in golang :X 12:25 < dho> rog: make(chan chan broadcast)? 12:25 < dho> oh, i see. 12:25 < rog> Vova: if those byte values come from another machine, then you've got an endian dependency (bad) 12:25 -!- skammer [n=skammer@79.139.142.159] has joined #go-nuts 12:26 < rog> dho: it's to do with the chan<- (chan<- (chan int)); declaration 12:26 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined #go-nuts 12:26 -!- Meidor [n=quassel@cl-936.ams-05.nl.sixxs.net] has quit [Read error: 54 (Connection reset by peer)] 12:27 < rog> dho: yup, if i take the <- decorations out, it works 12:27 < rog> hmm 12:27 < rog> i think it might be to do with the ambiguity between chan<- chan int and chan <-chan int 12:28 -!- Freeaqingme_ [n=dolf@145.74.181.133] has joined #go-nuts 12:28 < tor7> Vova: http://golang.org/pkg/encoding/binary/ is probably what you're looking for 12:28 < Vova> rog why is it bad? i have coded some servers this way and it was working great 12:29 < tor7> Vova: it will crash if the client is using another cpu architecture 12:30 < rog> Vova: what tor7 says. 12:30 < rog> Vova: these days it's easy to forget that not all machines are x86 12:31 < Vova> oh i get it, so tor7 what are you suggesting? 12:32 < tor7> make a function writeInt that writes the bytes in a specified order instead 12:32 < tor7> and readInt that reads them back in the same order 12:32 < rog> Vova: look at the encoding/binary package - it does exactly what you were asking to do. 12:33 < rog> question: are you allowed to pass around structures by value that contain private fields? 12:33 < tor7> that's what the encoding/binary package does for you, on all the primitive datatypes and structs 12:34 < tor7> rog: yes, but you're not allowed to instantiate them with the MyStruct{} syntax 12:34 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 12:34 < rog> i'm getting "tstbroadcast.go:13: implicit assignment of broadcast.Receiver field 'c' in function argument" errors 12:34 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 12:34 -!- Clooth [n=Clooth@cs27062173.pp.htv.fi] has quit [Read error: 110 (Connection timed out)] 12:34 < rog> and i'm not trying to instantiate them like that 12:35 < rog> maybe i'm doing something wrong. 12:35 < tor7> hmm. 12:36 < Vova> ok thanks :] i will try it, what about converting byte array to struct? 12:36 < rog> Vova: you have to do each field individually. 12:36 < tor7> do it once for every field separately. or use the encoding/binary package :) 12:37 < rog> Vova: it's likely that C struct alignment is different from Go's anyway 12:37 < Vova> :P 12:37 < Vova> ok thanks 12:37 < rog> Vova: basically that C code is dodgy and unportable. you're cleaning it up by doing this. 12:38 < Vova> yea but this code is faster then that way 12:38 < tor7> Vova: not by much :) 12:39 < Kibiz0r> You might be able to use unsafe.Unreflect? 12:39 < rog> oh here we are: "If T is a struct type, either all fields of T must be exported, or the assignment must be in the same package in which T is declared. In other words, a struct value can be assigned to a struct variable only if every field of the struct may be legally assigned individually by the program." 12:40 < rog> darn 12:40 < anticw> dho: about to crash 12:40 < rog> i wonder why they do that 12:40 < tor7> the encoding/binary package won't be super fast because it uses reflection to look at runtime types, but it's convenient. calling readUint32 and friends to pack/unpack your structs is the best you can do. 12:41 < Kibiz0r> rog: Something like "If part of the data is opaque, the whole thing ought to be opaque"? 12:41 < tor7> rog: my guess, so you don't mess up internal state by accident. just pass around by pointers the way it was intended. 12:42 < rog> tor7: if the fields aren't exported, you can't mess up internal state. 12:42 < tor7> the only use for structs by value I see is for things like Points and Rectangles, your basic composite values 12:42 < rog> tor7: structs by value are extremely useful in concurrent programming 12:42 < tor7> rog: they may have some hidden dependencies that need updating, like reference counting or resource pointers 12:43 < rog> tor7: my theory is it's to do with separate compilation 12:43 < rog> tor7: ... but that doesn't make sense either 12:43 < rog> hmm. 12:43 < tor7> that makes no sense, it must be something we're not thinking of 12:45 < rog> for the time being, i can just export all fields, but that seems wrong in this case. 12:46 < rog> value structs are particularly useful in the presence of automatic-referencing methods 12:46 -!- iwikiwi [n=iwikiwi@121.247.120.235] has quit ["I ascend to reality!"] 12:49 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts 12:55 -!- loureiro [n=loureiro@189.2.128.130] has joined #go-nuts 12:59 -!- Adys [n=Adys@APoitiers-259-1-44-57.w90-55.abo.wanadoo.fr] has joined #go-nuts 13:00 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit [Read error: 104 (Connection reset by peer)] 13:01 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined #go-nuts 13:03 -!- loureiro [n=loureiro@189.2.128.130] has quit [Remote closed the connection] 13:06 -!- loureiro [n=loureiro@189.2.128.130] has joined #go-nuts 13:10 -!- Raziel2p [n=Raziel2p@ti0032a380-dhcp0316.bb.online.no] has joined #go-nuts 13:13 -!- path[l] [n=path@122.182.0.38] has quit [] 13:14 -!- RolaBlade [n=edd_wins@bluebombers.dreamhost.com] has joined #go-nuts 13:15 -!- Esmil [n=esmil@4704ds1-gjp.0.fullrate.dk] has quit [Read error: 104 (Connection reset by peer)] 13:16 -!- Kibiz0r1 [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has joined #go-nuts 13:17 -!- RolaBlade [n=edd_wins@bluebombers.dreamhost.com] has quit [Client Quit] 13:18 -!- Esmil [n=esmil@4704ds1-gjp.0.fullrate.dk] has joined #go-nuts 13:20 -!- snearch_ [n=olaf@e179131103.adsl.alicedsl.de] has quit ["Ex-Chat"] 13:31 -!- plainhao [n=plainhao@mail.xbiotica.com] has joined #go-nuts 13:32 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined #go-nuts 13:33 -!- raichoo [n=raichoo@lain.dhcp.uni-bielefeld.de] has joined #go-nuts 13:36 < dho> anticw: crashed already? 13:38 -!- V1psta [i=Vipsta@unaffiliated/v1psta] has quit [] 13:42 -!- skammer [n=skammer@79.139.142.159] has quit [Remote closed the connection] 13:48 -!- crashR [n=crasher@codextreme.pck.nerim.net] has quit [Remote closed the connection] 13:52 -!- crashR [n=crasher@codextreme.pck.nerim.net] has joined #go-nuts 13:59 -!- analogue [n=analogue@toulouse.jfg-networks.net] has joined #go-nuts 14:00 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 14:00 -!- sigpipe [n=scandal@unaffiliated/scandal] has left #go-nuts [] 14:01 < analogue> heya 14:01 < analogue> how do u cast in go ? 14:01 < analogue> for example an int to a string 14:01 < analogue> can't find it in the doc =( 14:02 < vegai> you don't, you convert 14:03 < analogue> http://golang.org/doc/go_spec.html#Conversions ok thanks for the pointing help =) 14:03 * vegai bows. 14:04 < Zeffrin> woot, getting there 14:06 < Zeffrin> trying to follow the RFC... well checking for expected responses... not quite done yet as in it doesn't put together the header or include the body, and after that still needs attachment and maybe smtp auth support 14:06 < Zeffrin> but, the beginnings of a mail package http://gopaste.org/view/qJ97e 14:08 -!- simonz05 [n=simon@143.84-49-89.nextgentel.com] has joined #go-nuts 14:09 -!- skammer [n=skammer@79.139.142.159] has joined #go-nuts 14:10 -!- hcatlin [n=hcatlin@host81-154-246-241.range81-154.btcentralplus.com] has joined #go-nuts 14:12 -!- Pete_27 [n=noname@115.64.1.61] has joined #go-nuts 14:15 -!- fhs [n=fhs@pool-72-89-203-117.nycmny.east.verizon.net] has quit ["leaving"] 14:17 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit ["This computer has gone to sleep"] 14:18 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [] 14:18 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Connection timed out] 14:19 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Read error: 110 (Connection timed out)] 14:21 < analogue> is there a var_dump() equivalent in golang for debug purposes ? 14:21 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts 14:21 < analogue> I can see a dump() here: http://code.google.com/p/golang/ 14:21 < analogue> but don't know how to get/use it =) 14:22 -!- adiabatic [n=adiabati@dsl-206-55-130-248.tstonramp.com] has joined #go-nuts 14:24 < tor7> analogue: are you looking for fmt.Printf("%#v\n", foo)? 14:26 -!- qbit_ [n=qbit_@c-75-71-160-106.hsd1.co.comcast.net] has joined #go-nuts 14:26 < analogue> yes cool =) 14:26 < analogue> thanks 14:30 < uriel> I heard of somebody that wrote something like var_dump(), but I don't even know what that is.. 14:31 < uriel> analogue: see http://go-lang.cat-v.org/utils 14:31 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts 14:31 < uriel> for me %v works great 14:31 < analogue> yeah %v is enough =) 14:32 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has joined #go-nuts 14:32 -!- NoOneButMe [i=znc@unaffiliated/noonebutme] has quit [Read error: 60 (Operation timed out)] 14:33 -!- arquebus [n=shintaro@201.139.156.133.cable.dyn.cableonline.com.mx] has joined #go-nuts 14:35 -!- raichoo [n=raichoo@lain.dhcp.uni-bielefeld.de] has quit [] 14:35 -!- NoOneButMe [i=znc@85.17.224.147] has joined #go-nuts 14:37 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit [Read error: 60 (Operation timed out)] 14:38 -!- tobi [n=tobi@schatten.darksystem.net] has joined #go-nuts 14:38 < tobi> hi guys, i have a problem with the linker. tells me: ??none??: file not 386 [package main] 14:40 -!- rodi [n=dbrunton@pool-96-244-244-149.bltmmd.fios.verizon.net] has joined #go-nuts 14:45 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts 14:46 -!- ward___ [n=ward@c-98-232-243-25.hsd1.or.comcast.net] has joined #go-nuts 14:47 -!- raichoo [n=raichoo@lain.dhcp.uni-bielefeld.de] has joined #go-nuts 14:48 -!- rakd [n=rakd@219.117.252.7.static.zoot.jp] has joined #go-nuts 14:48 -!- aarapov [n=aarapov@nat/redhat/x-dekwtketlzfnviit] has quit ["Leaving."] 14:49 -!- x2cast [n=alvaro@178.126.222.87.dynamic.jazztel.es] has joined #go-nuts 14:49 -!- x2cast [n=alvaro@178.126.222.87.dynamic.jazztel.es] has left #go-nuts [] 14:50 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined #go-nuts 14:50 -!- hipe_ [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit [Read error: 104 (Connection reset by peer)] 14:51 -!- nullpo [n=nullpo@221x252x46x83.ap221.ftth.ucom.ne.jp] has quit [Read error: 110 (Connection timed out)] 14:53 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit [Read error: 104 (Connection reset by peer)] 14:53 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined #go-nuts 14:54 -!- phillipsm [n=mattscom@173-23-63-244.client.mchsi.com] has quit [Remote closed the connection] 14:56 < nickjohnson> Does go support asynchronous disk IO? 14:56 < uriel> nickjohnson: sure, do the io in a goroutine 14:57 < nickjohnson> Hm, true 14:57 * nickjohnson wants a dd variant that writes to n devices in parallel 14:58 < uriel> part of the point of goroutines is that you don't need something like asyncio, callbacks, etc 14:58 -!- arquebus [n=shintaro@201.139.156.133.cable.dyn.cableonline.com.mx] has quit [Remote closed the connection] 14:58 < nickjohnson> very true. I wasn't thinking :) 14:58 < uriel> no problem, it takes a while to relearn how to do things... 14:58 -!- Kibiz0r1 [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has quit ["Leaving."] 14:59 -!- dajero [n=dajero@137.120.73.127] has joined #go-nuts 14:59 -!- Kibiz0r1 [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has joined #go-nuts 14:59 < uriel> (many people give up rather than realize there is a better way :( 14:59 * nickjohnson figures one goroutine per output device, with one channel each ought to the best way, then 14:59 < nickjohnson> On a somewhat-related note, I kind of wish Go didn't treat the goroutine running main() specially. 14:59 < uriel> yup, that sounds about right 15:00 < uriel> not sure what you mean about main(), guess you mean that it kills the process when main() exists? 15:00 < uriel> er exits 15:00 < nickjohnson> exactly 15:02 < nickjohnson> Hm. The flag lib doesn't have any sort of multiply-valued flag support? 15:03 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit [Read error: 110 (Connection timed out)] 15:04 -!- bechamel [n=user@host-85-201-159-186.brutele.be] has joined #go-nuts 15:04 -!- bechamel [n=user@host-85-201-159-186.brutele.be] has left #go-nuts ["ERC Version 5.3 (IRC client for Emacs)"] 15:08 -!- trutkin [n=trutkin@64.1.25.210.ptr.us.xo.net] has joined #go-nuts 15:08 -!- dajero [n=dajero@137.120.73.127] has quit [Remote closed the connection] 15:08 -!- dajero [n=dajero@137.120.73.127] has joined #go-nuts 15:14 -!- skyyy [i=caw@res55551479.rh.rit.edu] has joined #go-nuts 15:15 -!- raichoo [n=raichoo@lain.dhcp.uni-bielefeld.de] has quit [] 15:18 -!- g0bl1n [n=g0bl1n@a213-22-237-39.cpe.netcabo.pt] has joined #go-nuts 15:18 -!- ryniek [n=RYNIEK@host-89-231-108-219.warszawa.mm.pl] has joined #go-nuts 15:18 -!- suBMUNDO [n=pCCC@unaffiliated/submundo] has joined #go-nuts 15:18 < tobi> go rocks! 15:19 < ryniek> hi 15:19 < g0bl1n> wow, this is full 15:19 < g0bl1n> for such a recent lang 15:20 -!- skammer [n=skammer@79.139.142.159] has quit [Remote closed the connection] 15:20 -!- skyyy [i=caw@res55551479.rh.rit.edu] has quit [Client Quit] 15:20 < jessta> g0bl1n: lots of hype 15:21 < g0bl1n> jessta, are you enjoying Go ? 15:22 < jessta> yeah, I like it 15:22 < Smergo> Yep, lots of hype, some is here because of Google, some because it is Rob and Ken :) 15:22 < jessta> It's like the C I always wanted 15:22 < Smergo> Or maybe ;) would be better. 15:23 < g0bl1n> Smergo, is this room hosted on a Plan9 cluster ? :) 15:23 < Smergo> No :( 15:23 < g0bl1n> :) 15:24 < jessta> g0bl1n: but I hear there is a plan9 port of Go in the works 15:24 < jessta> and two 9p libs 15:25 < g0bl1n> jessta, I can easily believe that ;) 15:26 < g0bl1n> I'll be paying more attention to Go for the next 4 days. Reading docs, etc. 15:27 -!- Wi11 [n=william@dhcp-0-14-bf-38-80-9c.cpe.powergate.ca] has quit [Connection timed out] 15:31 < jessta> g0bl1n: read the docs, watch the video, read some code, ignore the 'missing' features and try to instead work out the Go way of doing things 15:32 < g0bl1n> jessta, ty, yes, that's the way to go ;) 15:35 -!- ward___ [n=ward@c-98-232-243-25.hsd1.or.comcast.net] has quit [] 15:37 -!- tobi [n=tobi@schatten.darksystem.net] has quit ["leaving"] 15:38 -!- skelterjohn [n=jasmuth@c-76-116-177-32.hsd1.nj.comcast.net] has joined #go-nuts 15:40 < jessta> g0bl1n: it's just that a lot of people go, OMG it doesn't have 'feature' I can't possibly do without 'feature', quick to the mailing list so I can get 'feature' so I can say I'm using a cool new language from google 15:43 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit [] 15:43 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has quit [] 15:44 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 15:47 -!- hipe_ [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined #go-nuts 15:48 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit [Read error: 104 (Connection reset by peer)] 15:51 < TenOfTen> #go-nuts: Total of 350 nicks. Peak for #go-nuts@freenode: 572 (Thu Nov 12 21:58:58 2009) 15:55 -!- decriptor [n=decripto@137.65.133.17] has joined #go-nuts 15:57 -!- g0bl1n [n=g0bl1n@a213-22-237-39.cpe.netcabo.pt] has quit [Read error: 110 (Connection timed out)] 15:58 -!- mbarkhau [n=koloss@p54A7F1D8.dip.t-dialin.net] has joined #go-nuts 15:59 -!- tomestla [n=tom@78.251.212.121] has joined #go-nuts 15:59 * dho just realized the coolness of go+nacl 16:00 < vegai> what *is* the nacl? 16:01 -!- elmar [n=elmar@188.107.218.124] has joined #go-nuts 16:01 -!- diltsman_ [n=diltsman@64.122.18.77] has joined #go-nuts 16:01 < dho> native client is a browser plugin to execute i386 machine code in a `safe' vm 16:01 < dho> it does some static verification of binary safety 16:02 -!- diltsman_ [n=diltsman@64.122.18.77] has quit [Client Quit] 16:02 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit [Read error: 110 (Connection timed out)] 16:03 -!- raichoo [n=raichoo@lain.dhcp.uni-bielefeld.de] has joined #go-nuts 16:05 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts 16:05 < Vova> Go windows compiler with very small ide coded in C# using go-windows project 16:05 < Vova> http://www.mediafire.com/?jmrjtoynyym 16:06 < mpl> vegai: it's what you put in food to give it this salty taste. 16:06 * mpl hides 16:07 < vegai> heh. 16:08 < analogue> is it possible to convert a string to an int ? a numerical string I mean 16:08 < analogue> int(string) does not work 16:09 -!- malkomalko [n=malkomal@pool-70-23-72-20.ny325.east.verizon.net] has joined #go-nuts 16:10 < jessta> analogue: strconv package 16:10 < analogue> thanks =) 16:14 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has joined #go-nuts 16:18 -!- Hertta_ [n=ptr@188.72.205.52] has quit [Remote closed the connection] 16:21 -!- ryniek [n=RYNIEK@host-89-231-108-219.warszawa.mm.pl] has quit [Remote closed the connection] 16:22 -!- yaroslav [n=yaroslav@93.157.184.185] has quit [Read error: 110 (Connection timed out)] 16:22 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has quit ["Leaving"] 16:23 -!- skelterjohn [n=jasmuth@c-76-116-177-32.hsd1.nj.comcast.net] has quit [] 16:23 -!- Hertta [n=ptr@188.72.205.52] has joined #go-nuts 16:24 -!- tomestla [n=tom@78.251.212.121] has quit [Read error: 60 (Operation timed out)] 16:25 -!- CMPITG [i=inexiste@113.22.117.136] has joined #go-nuts 16:26 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts 16:27 -!- hd_2 [n=hd_@253.176.233.220.static.exetel.com.au] has joined #go-nuts 16:27 -!- CMPITG [i=inexiste@113.22.117.136] has left #go-nuts [] 16:29 -!- s_mosher [n=smosher@bas1-ottawa10-1279302916.dsl.bell.ca] has quit ["Leaving"] 16:31 -!- codehai [n=codehai@xdsl-78-34-35-108.netcologne.de] has joined #go-nuts 16:31 -!- hipe_ [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit [Remote closed the connection] 16:31 -!- dajero [n=dajero@137.120.73.127] has quit [Read error: 104 (Connection reset by peer)] 16:33 -!- kaigan|work [n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit [] 16:33 -!- Freeaqingme| [n=dolf@145.74.181.133] has quit [Read error: 110 (Connection timed out)] 16:34 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts 16:38 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts 16:40 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined #go-nuts 16:42 -!- hd_ [n=hd_@253.176.233.220.static.exetel.com.au] has quit [Read error: 110 (Connection timed out)] 16:42 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts 16:44 -!- def_ [n=def@pro75-6-88-185-121-188.fbx.proxad.net] has quit [Remote closed the connection] 16:46 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit [Remote closed the connection] 16:47 -!- Venom_X [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has joined #go-nuts 16:48 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts 16:49 -!- raichoo [n=raichoo@lain.dhcp.uni-bielefeld.de] has quit [] 16:51 -!- malkomalko [n=malkomal@pool-70-23-72-20.ny325.east.verizon.net] has quit [] 16:54 -!- trickie [n=trickie@94.100.112.225] has quit [Read error: 113 (No route to host)] 16:55 -!- lux` [n=lux@151.54.240.211] has joined #go-nuts 16:59 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit [Read error: 110 (Connection timed out)] 16:59 -!- skammer [n=skammer@79.139.142.159] has joined #go-nuts 17:00 -!- mbarkhau1 [n=koloss@p54A7F1D8.dip.t-dialin.net] has joined #go-nuts 17:00 -!- mbarkhau [n=koloss@p54A7F1D8.dip.t-dialin.net] has quit [Read error: 104 (Connection reset by peer)] 17:00 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit [Read error: 110 (Connection timed out)] 17:03 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has quit ["Leaving"] 17:07 -!- malkomalko [n=malkomal@pool-70-23-72-20.ny325.east.verizon.net] has joined #go-nuts 17:12 -!- smosher [n=smosher@bas1-ottawa10-1279302916.dsl.bell.ca] has joined #go-nuts 17:15 -!- Fringehead [n=fringe@c-24-126-235-188.hsd1.ga.comcast.net] has joined #go-nuts 17:21 < rog> (this is relevant, really!) anyone got a recommendation for a simple online blogging service? i want to publish some go-related stuff. i just tried blogspot and it's just awful. 17:22 < dho> I dunno, I use blogger.com, which I'm guessing is the same thing? 17:23 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has quit [Read error: 110 (Connection timed out)] 17:23 < dho> Do you have a public server? 17:24 < rog> dho: yes 17:24 < rog> dho: i mean no 17:24 < rog> dho: i mean, it is the same thing, and i don't have a public server. 17:25 < dho> hehe 17:25 < jessta> rog: static html files is pretty simple 17:26 < jessta> rog: http://werc.cat-v.org/apps/blagh/ is apparently simple 17:27 -!- Wi11 [n=william@dhcp-0-14-bf-38-80-9c.cpe.powergate.ca] has joined #go-nuts 17:27 < rog> jessta: if you have a public server. i haven't and i don't really want one. 17:28 < jessta> rog: wordpress? 17:28 < plexdev> http://is.gd/598Sl by [Robert Griesemer] in 3 subdirs of go/ -- some godoc cleanup: 17:29 < Ycros> rog: tumblr? 17:31 -!- Makavel [n=eddw@hoasb-ff08dd00-36.dhcp.inet.fi] has joined #go-nuts 17:33 < uriel> rog: I'll be happy to host you at go-lang.cat-v.org 17:33 < uriel> just give me a user name, and a pass, and I'll set you up 17:35 -!- nomism [n=nomism@e180119196.adsl.alicedsl.de] has joined #go-nuts 17:35 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts 17:36 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit [Client Quit] 17:36 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts 17:36 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit [Client Quit] 17:36 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts 17:37 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts 17:38 -!- ikkebr [n=ikkibr@unaffiliated/ikkebr] has joined #go-nuts 17:39 < rog> i'll give wordpress a go 17:42 < uriel> rog: let me know the address when you are setup so I can add it to http://planet5.cat-v.org 17:43 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 17:43 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined #go-nuts 17:43 -!- skammer [n=skammer@79.139.142.159] has quit [Read error: 60 (Operation timed out)] 17:45 < plexdev> http://is.gd/599DJ by [Fazlul Shahriar] in go/src/cmd/gofmt/ -- gofmt: use os.Stdin instead of opening /dev/stdin 17:45 -!- skammer [n=skammer@79.139.142.159] has joined #go-nuts 17:46 -!- loureiro [n=loureiro@189.2.128.130] has quit ["Quit"] 17:46 -!- smosher [n=smosher@bas1-ottawa10-1279302916.dsl.bell.ca] has quit [Read error: 104 (Connection reset by peer)] 17:47 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"] 17:48 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts 17:48 -!- exn [n=exn@micro.strace.net] has quit [Client Quit] 17:48 < rog> what good is a <code> tag if it doesn't respect leading white space? aargh. 17:48 -!- Alkavan_ [n=alkavan@IGLD-84-229-131-249.inter.net.il] has quit [Read error: 54 (Connection reset by peer)] 17:49 -!- Alkavan_ [n=alkavan@87.70.166.51] has joined #go-nuts 17:51 < tor7> rog: <code> is an inline tag, you want <pre> :) 17:51 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 17:53 -!- __ed [i=bitch@anal-co.it] has quit [Read error: 60 (Operation timed out)] 17:53 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts 17:53 < rog> oh bloody html. 17:54 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has quit [Read error: 110 (Connection timed out)] 17:54 -!- nomism [n=nomism@e180119196.adsl.alicedsl.de] has quit [Remote closed the connection] 17:56 -!- __ed [i=bitch@anal-co.it] has quit [Read error: 60 (Operation timed out)] 17:57 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts 17:57 < Fringehead> In the FAQ it says that there is a "foreign function interface" for calling C. Is that in the package docs on the main site? 17:58 -!- hagna [n=hagna@70.102.57.178] has joined #go-nuts 17:58 < hagna> so String() string; means the method String which takes no args and returns a string? 17:58 < KirkMcDonald> hagna: Yes. 18:00 -!- hstimer [n=hans@c-98-234-25-125.hsd1.ca.comcast.net] has quit ["Leaving..."] 18:00 -!- gisikw [n=gisikw@137.28.246.58] has quit [Remote closed the connection] 18:00 -!- tav_ [n=tav@78.149.148.224] has joined #go-nuts 18:01 < hagna> so does os.Error also support int so I can see if (ok) {} ? 18:02 -!- skyyy [i=caw@res55551479.rh.rit.edu] has joined #go-nuts 18:02 < Rob_Russell> Fringehead: i haven't read up on it but afaik you'll need to use gccgo to use the FFI 18:03 < KirkMcDonald> hagna: "Support int"? 18:03 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"] 18:03 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts 18:03 < KirkMcDonald> hagna: First, only bools can be used as the condition in an if statement. 18:04 < KirkMcDonald> hagna: You need to explicitly say: if err != nil {} 18:04 < rog> http://rogpeppe.wordpress.com/ 18:05 -!- snearch [n=olaf@g225063148.adsl.alicedsl.de] has joined #go-nuts 18:05 -!- p4p4 [n=P4p4@24.106.113.82.net.de.o2.com] has joined #go-nuts 18:07 -!- tav [n=tav@78.147.249.190] has quit [Read error: 110 (Connection timed out)] 18:08 < Fringehead> Rob_Russell: Thanks, I'll try installing that. 18:09 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"] 18:09 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts 18:10 < uriel> arggg,... wordpress' javascript that messes around with links is *really annoying* 18:10 -!- Makavel [n=eddw@hoasb-ff08dd00-36.dhcp.inet.fi] has quit ["Leaving"] 18:10 < hagna> if err \!=nil tests to see if the object is allocated? 18:11 < KirkMcDonald> hagna: It tests to see if the interface variable 'err' is assigned to something other than 'nil'. 18:13 < rog> uriel: i might just have got the links wrong (assuming you're looking at that page i just put up) 18:13 -!- gasreaa [n=atwong@nat/slide/x-hneftrracdlxeulx] has joined #go-nuts 18:14 < tor7> rog: you also forgot to escape your < in the for loop 18:14 -!- skammer [n=skammer@79.139.142.159] has quit [Read error: 60 (Operation timed out)] 18:15 < hagna> KirkMcDonald, they all start out as nil I suppose 18:15 < KirkMcDonald> hagna: nil is the zero value for interfaces, yes. 18:15 < uriel> rog: no, you haven't, it is wordpress that fucks things up 18:15 < rog> yes. i didn't escape anything. isn't there a blog service that understands code pasting?! 18:16 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"] 18:16 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts 18:16 < KirkMcDonald> hagna: http://golang.org/doc/go_spec.html#The_zero_value 18:16 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit ["Leaving"] 18:17 < rog> tor7: the < characters come through fine on my browser 18:17 -!- zimbatm [i=zimbatm@stan.oree.ch] has left #go-nuts [] 18:18 < rog> tor7: there are loads of < all over the place. are any of them visible to you? 18:19 -!- codehai [n=codehai@xdsl-78-34-35-108.netcologne.de] has quit [Client Quit] 18:20 < rog> tor7: actually, looking at the html, it seems that all the < are correctly escaped to < so which for loop were you talking about? 18:21 < tor7> rog: the last one, for i := 0; i \n b.Write() 18:22 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"] 18:22 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts 18:23 < rog> tor7: ah yes. i hadn't transferred it correctly from blogspot. should be fixed now. 18:24 < rog> anyway, is the article comprehensible? too trivial? too difficult? 18:26 -!- amacleod [n=amacleod@c-24-34-33-96.hsd1.ma.comcast.net] has joined #go-nuts 18:27 -!- hackbench [n=hackbenc@88.242.234.136] has joined #go-nuts 18:30 -!- ttodos [n=ttodos@195.160.234.10] has quit ["Ex-Chat"] 18:34 -!- mizai [n=matthew@rhou-164-107-213-111.resnet.ohio-state.edu] has joined #go-nuts 18:36 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit [Read error: 104 (Connection reset by peer)] 18:36 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts 18:39 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts 18:41 < Fringehead> rog: It's a little over my head, but I'm just starting out with Go. 18:42 -!- trutkin [n=trutkin@64.1.25.210.ptr.us.xo.net] has left #go-nuts ["Leaving"] 18:42 -!- gasreaa [n=atwong@nat/slide/x-hneftrracdlxeulx] has left #go-nuts [] 18:45 -!- codedread [i=81bc2119@gateway/web/freenode/x-kforevevmcwbldmi] has joined #go-nuts 18:46 -!- aho [n=nya@e180235157.adsl.alicedsl.de] has joined #go-nuts 18:46 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has joined #go-nuts 18:47 < rog> Fringehead: yeah, maybe i should've started with something a little simpler. but i just thought of that today, so that's what came first! 18:47 -!- ayo [n=nya@e180235157.adsl.alicedsl.de] has joined #go-nuts 18:47 -!- aho [n=nya@e180235157.adsl.alicedsl.de] has quit [Read error: 104 (Connection reset by peer)] 18:47 -!- Xerofait [n=xerofait@66.44.226.25] has joined #go-nuts 18:47 -!- Perberos [n=Perberos@190.49.62.90] has quit ["Ex-Chat"] 18:48 -!- teedex [n=teedex@204.14.155.161] has quit [Read error: 104 (Connection reset by peer)] 18:49 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts 18:53 -!- Sungem [n=Sungem@114-45-227-202.dynamic.hinet.net] has joined #go-nuts 18:53 -!- gasreaa [n=atwong@nat/slide/x-jbimlnzvrzotohgb] has joined #go-nuts 18:53 -!- Sungem [n=Sungem@114-45-227-202.dynamic.hinet.net] has quit [Client Quit] 18:54 -!- Sungem [i=Sungem@114-45-227-202.dynamic.hinet.net] has joined #go-nuts 18:54 -!- Sungem [i=Sungem@114-45-227-202.dynamic.hinet.net] has quit [Read error: 104 (Connection reset by peer)] 18:54 -!- Zaba_ [n=zaba@ip102.148.adsl.wplus.ru] has joined #go-nuts 18:55 < anticw> dho: i meant _i_ crashed (went to bed) 18:56 < kimelto> morning! 19:00 < hagna> why doesn't var env []string = [foobar]; work? 19:00 < hagna> why doesn't var env []string = ["foobar"]; work? 19:00 < KirkMcDonald> hagna: env := []string{foobar}; 19:00 < KirkMcDonald> hagna: env := []string{"foobar"}; 19:01 < hagna> what's the non terse form of that var env []string = {"foobar"}? 19:02 < dho> anticw: yeah i know :) 19:02 < dho> took the lack of response as a `yes' :) 19:02 < KirkMcDonald> hagna: Er, I think you have the meaning of "terse" reversed. 19:02 < dho> anticw: I don't understand why that's needed either, but it explains the symptom. 19:03 -!- simonz05 [n=simon@143.84-49-89.nextgentel.com] has quit ["Ex-Chat"] 19:03 < dho> anticw: it *is* returning 0 with os.EOF 19:03 < hagna> Kirk, oh yes you are right about that 19:03 < KirkMcDonald> hagna: Anyway: http://golang.org/doc/go_spec.html#Composite_literals 19:04 < dho> anticw: Also, just because I've ported go to FreeBSD doesn't mean I know Go very well :) So the isEOF is just my own misunderstanding. 19:04 < KirkMcDonald> hagna: It doesn't get more terse than that. 19:05 < anticw> dho: i'm still seeing hangs in net/ 19:05 < dho> where 19:05 < anticw> did a complete rebuild and the pkg/net test hung 19:05 < anticw> redoing it now 19:06 < dho> Hm. 19:06 -!- Zaba [n=zaba@about/goats/billygoat/zaba] has quit [Read error: 110 (Connection timed out)] 19:07 < dho> You know what, I never ran test in net. 19:07 < kimelto> dho: are all your patches merged upstream? :) 19:07 < dho> for freebsd? yes 19:07 < anticw> dho: http://golang.pastebin.com/d75806f35 19:07 < anticw> dho: that's where it's 'at' i guess 19:07 < hagna> not that it matters but terse == short? http://www.thefreedictionary.com/terse 19:07 < anticw> i'm still bothered greatly by the fact i can't see where this code is spinning 19:07 < dho> hagna: succinct 19:07 < kimelto> dho: cool :) 19:07 < anticw> either through instromentation of the code or strace 19:08 < dho> anticw: Yes, agreed. 19:08 < kimelto> dho: thank you for your work ;) 19:08 < dho> no problem :) 19:08 < dho> anticw: Other than instrumenting every single loop in net or os/file.go... 19:08 < dho> anticw: if it's not there, it's the runtime. 19:08 < anticw> dho: this really feels more like for { foo :- <- somechan; doSomething(...); } 19:08 < anticw> where somechan is closed 19:09 < dho> anticw: I don't get a trap, it just hangs. 19:09 < anticw> dho: send SIGABRT 19:09 < dho> (linux/amd64) 19:09 < dho> ah 19:09 < anticw> dho: then you get that trace 19:09 < dho> right 19:09 < dho> i thought it was just panicking 19:09 < anticw> rsc pointed it out as a way to see what's up ... and even so, i wonder if it's not the runtime 19:09 < dho> (the test in #321 does that) 19:09 < dho> anticw: Well, what looks suspicious is why is gs nil 19:09 < anticw> what's odd is the net hang is new for me, i never had that before 19:10 < dho> i wonder if that's due to the previous close race `fix'? 19:10 < anticw> i'm not saying some of these fixes aren't needed, but i wonder if the root cause isn't somewhere else 19:10 < anticw> also, locking around things like setsockopt, etc. --- what does that really protect? 19:10 -!- shambler [i=kingrat@mm-218-199-84-93.dynamic.pppoe.mgts.by] has joined #go-nuts 19:11 < dho> calling setsockopt on a closed fd 19:11 < anticw> setsockopt is more or less instant... w/ a lock you either get before or after the close 19:11 < anticw> either way it matters not if you have locking there 19:12 < dho> *nods* 19:12 < anticw> if you get before the close it works, after it returns an error code 19:12 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit [Remote closed the connection] 19:12 < dho> goroutine 9 looks interesting. 19:13 < anticw> ? 19:13 < anticw> oh, let me look 19:13 < dho> in the trace 19:13 -!- Kibiz0r1 [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has quit ["Leaving."] 19:13 < anticw> yeah ... i've seen that before 19:13 < anticw> see my above comment wrt to spinning on a closed channel 19:13 < anticw> you get no syscalls them 19:13 < anticw> then 19:13 < anticw> however, i instrumented all of net/* and didn't see that 19:13 -!- rndbot [n=bot@wikipedia/Gracenotes] has quit [Remote closed the connection] 19:13 < anticw> put prints in every loop) 19:14 < dho> ok 19:14 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit [Read error: 104 (Connection reset by peer)] 19:14 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts 19:14 < anticw> dho: tried gccgo? 19:14 < dho> put a print in pkg/runtime/chan.c:288 19:14 < anticw> dho: i wonder if it might not happen there 19:14 < dho> no, i don't use it 19:15 < dho> anticw: it will print endlessly 19:15 < anticw> dho: oh, you did that? 19:16 < dho> yes 19:16 < anticw> ok, so we almost certainly are reading on a closed channel in a loop somewhere 19:16 < dho> no 19:16 < anticw> oh, 288 19:16 < dho> line 288 is loop: 19:16 < anticw> means it's open 19:16 < anticw> yeah 19:16 < dho> ;) 19:16 < anticw> after the closed check 19:16 < dho> I think the runtime is spinning 19:16 * dho tests 19:16 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit [Client Quit] 19:17 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts 19:17 < anticw> dho: print entry/exit too 19:17 < dho> yep 19:18 < dho> it does return. 19:18 < dho> so we aren't spinning in there, it's outside the runtime. 19:18 < dho> or at least 19:18 < dho> it's inside something that calls chanrecv. 19:18 < anticw> it can't spin in there 19:18 < anticw> there is no loop 19:18 < anticw> i meant to instrument how you get in and out 19:18 < dho> it's a goto loop 19:19 < anticw> oh, of course 19:19 < dho> but it's not stuck in that function at least 19:19 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [] 19:21 < dho> it's always hitting the 4th or 6th return. 19:21 < anticw> dho: tried setting debug = !0 at the top of that? 19:21 < dho> yes, there are 3 different channels 19:21 < dho> that it's spinning on 19:22 < dho> anticw: which looks accurate given the backtrace 19:22 < dho> goroutine 9, 8, and 1 19:22 < anticw> a cycle would do that 19:23 < dho> er, 10, 9, and 8 19:23 < dho> 1 is the test channel 19:26 < dho> hm. 19:27 -!- dajero [n=dajero@82-169-246-141.ip.telfort.nl] has joined #go-nuts 19:29 -!- kiva [n=quassel@r220-101-159-148.cpe.unwired.net.au] has joined #go-nuts 19:31 -!- kiva [n=quassel@r220-101-159-148.cpe.unwired.net.au] has quit [Remote closed the connection] 19:31 < dho> anticw: that's my e == os.EOF causing that hang. 19:31 -!- kiva [n=quassel@r220-101-159-148.cpe.unwired.net.au] has joined #go-nuts 19:31 < dho> anticw: so what's the deal with websockets then 19:32 < dho> that definitely indicates e == os.EOF is bogus. 19:32 < dho> I think we should remove that and then focus on 360. 19:33 < anticw> i took that out, i still see the net hang 19:33 < dho> i don't 19:34 < dho> i removed isEOF and the code checking for that; I get a pass every time. 19:34 -!- hackbench [n=hackbenc@88.242.234.136] has quit [Read error: 110 (Connection timed out)] 19:34 < anticw> ok, n == 0 has to go as well 19:35 < dho> yes 19:35 < anticw> something semes odd though 19:35 < dho> sorry, I forgot to specify, I took that check out entirely. 19:35 < anticw> the test takes a long time to run for something so trivial 19:35 < dho> anticw: there's a lock every time you call read :\ 19:35 < dho> I don't like this. 19:36 < anticw> 2.8s though 19:36 < anticw> at this point im not sure any of the fixes are really addressing the root cause 19:36 < dho> you must have an uber fast machine, mine are all >5 19:36 < anticw> ancient old amd64 from four years ago 19:37 -!- rdd` [n=rdd@c83-250-145-223.bredband.comhem.se] has joined #go-nuts 19:37 < dho> weird, i have 2 dual core opterons 19:37 < dho> inconsequential though imo 19:37 < anticw> well, i think it's doing something NotRight 19:37 < dho> which test is this anyway 19:38 < dho> dialgoogle? 19:38 < anticw> ok ... so all tests pass for me now 19:38 < dho> heh. try websockets. 19:38 < anticw> that too 19:38 < anticw> ' make test && for i in {1..200} ; do ./6.out ; done ' 19:38 -!- Makavel [n=eddw@hoasb-ff08dd00-36.dhcp.inet.fi] has joined #go-nuts 19:38 < anticw> used to wedge in ~10 iterations or so 19:39 < dho> anticw: mine just wedged on iteration 25 19:39 < dho> so 19:40 < anticw> still smells like a race then 19:40 < anticw> unless my tree somehow is different to yours 19:40 < anticw> i can hg upload if you want to try it 19:40 < dho> yeah, i'll hg diff and diff our diffs <_< 19:41 < anticw> ok, 1000 iterations no problems 19:41 < anticw> let me tweak GOMAXPROCS 19:41 < dho> I'm using gomaxprocs=1 19:41 < anticw> it is here too 19:41 < anticw> if you increase that to a larger number does it take longer (on average) to hang? 19:41 < dho> are you using your patchset or did you regrab mine 19:42 < dho> if i set it to 2, i can't get it to hang i don't think 19:42 < anticw> it should be very close to yours if not identical 19:42 < anticw> it's basically your changes merged into what i did last night 19:43 < dho> hm, just got it to hang with GOMAXPROCS=100 19:43 < anticw> dho: ok, i uploaded my 'working' diff 19:43 -!- qbit_ [n=qbit_@c-75-71-160-106.hsd1.co.comcast.net] has quit [Remote closed the connection] 19:44 < dho> no, this makes no sense. 19:44 < dho> I'm using the *exact* same code you are 19:45 < dho> at this point, with the os.EOF gone, we have the same patch. 19:45 < dho> I'm testing this on linux/amd64 at the moment 19:45 < dho> you know what, let me completely rebuild 19:45 < dho> because who knows 19:46 < plexdev> http://is.gd/59fvd by [Rob Pike] in go/src/cmd/prof/ -- a couple of usage fixups in prof 19:47 < anticw> who runs plexdev? 19:47 < anticw> there is #go-updates it might be better talking on 19:47 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has quit ["Leaving."] 19:47 -!- malkomalko [n=malkomal@pool-70-23-72-20.ny325.east.verizon.net] has quit [] 19:48 < anticw> dho: if nothing else, im going to declare all the code as invalid and lacking suitable comments because it's too hard to understand as it is :-) 19:48 < anticw> dho: ok, i just got a websocket hang :/ 19:48 < dho> still hangs for me. 19:49 -!- illya77 [n=illya77@52-202-133-95.pool.ukrtel.net] has joined #go-nuts 19:49 < anticw> websocket or net? 19:49 < dho> websocket 19:49 < dho> net is fine 19:49 < dho> and so is the test from #321 19:50 < dho> anticw: you'll find that if you put that e == EOF check back in, that websocket will never hang though. 19:50 < dho> so perhaps it's consuming something improperly. 19:50 < anticw> from a socket? or a channel? 19:50 < anticw> what bugs me is i see no syscalls 19:50 < dho> dunno, lemme sigabrt 19:51 < dho> http://golang.pastebin.com/d248ea00a 19:52 < dho> I think the conn.read may just need to check for EOF. 19:54 < dho> hm, bufio 19:56 < anticw> thing is, bufio feels simpler and better tested 19:57 < anticw> and if we're spinning like that we should see it in the prints in the loops or the traces 19:57 -!- amacleod [n=amacleod@c-24-34-33-96.hsd1.ma.comcast.net] has quit [Read error: 110 (Connection timed out)] 19:57 < dho> ...so why else would rescheduling the fd when it gets EOF work 19:58 < dho> oh 19:58 < anticw> you know, i didnt instrument all the channel tx/rx bits ... let me do that 19:58 < anticw> since a cycle there would explain this 19:58 < dho> i took that out 19:58 < dho> to make sure it wasn't affecting races 19:59 < dho> if the Read implementation is the netFD.Read, we should still have the correct locking on that. 20:00 < anticw> i can't convince myself locking is the issue 20:00 < anticw> w/o locking you'll get weirdness 20:00 < anticw> and so with the right checks there, which we should have for robustness reasons, it will still terminate/return 20:02 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts 20:04 -!- ikkebr [n=ikkibr@unaffiliated/ikkebr] has quit [] 20:04 -!- raichoo [n=raichoo@i577B86CE.versanet.de] has joined #go-nuts 20:05 -!- MarkBao [n=MarkBao@pool-98-110-164-163.bstnma.fios.verizon.net] has joined #go-nuts 20:06 < dho> anticw: .... 20:06 < dho> anticw: when it hangs, it doesn't hang in chanrecv... 20:10 -!- fho [n=fho@e176170246.adsl.alicedsl.de] has joined #go-nuts 20:11 -!- teralaser [n=teralase@unaffiliated/teralaser] has joined #go-nuts 20:11 -!- teralaser [n=teralase@unaffiliated/teralaser] has left #go-nuts [] 20:11 -!- vt100 [n=vt@cust125.179.113.38.dsl.g3telecom.net] has quit [Read error: 110 (Connection timed out)] 20:12 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has joined #go-nuts 20:13 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit ["Leaving."] 20:14 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit ["Leaving"] 20:15 < hagna> so I just changed Read(buf) to Read(&buf) and the compiler (8g) doesn't complain though it used to say can't use [1024]uint8 for []uint8 where buf is declared var buf [1024]byte. Why is that? 20:15 -!- ryniek [n=RYNIEK@host-89-231-108-219.warszawa.mm.pl] has joined #go-nuts 20:15 < ryniek> re 20:16 < nickjohnson> So, I seem to have failed to achieve my goal of a multi-output DD 20:16 < nickjohnson> http://gopaste.org/view/uG15i 20:16 -!- vt100 [n=vt@cust125.179.113.38.dsl.g3telecom.net] has joined #go-nuts 20:17 < nickjohnson> Not only does it give "all goroutines are asleep - deadlock!", but it also doesn't appear to be outputting stuff correctly :( 20:17 < nickjohnson> Anyone have any ideas? 20:18 < plexdev> http://is.gd/59h5z by [Sven Almgren] in go/ -- Added Sven Almgren to AUTHORS and CONTRIBUTORS 20:18 < vegai> that's a useful contribution :P 20:19 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit [Read error: 110 (Connection timed out)] 20:24 -!- JeffJohnson [n=fho@unaffiliated/jeffjohnson] has quit [Read error: 113 (No route to host)] 20:27 -!- melba [n=blee@unaffiliated/lazz0] has quit ["MICROSOFT WORD IS A FUN GAME"] 20:27 -!- plainhao [n=plainhao@mail.xbiotica.com] has quit [] 20:28 -!- codedread [i=81bc2119@gateway/web/freenode/x-kforevevmcwbldmi] has quit ["Page closed"] 20:31 -!- CaptainLucifel [n=captainl@191.164.66-86.rev.gaoland.net] has joined #go-nuts 20:31 -!- tobel [n=tobel@p4FDCE8FA.dip.t-dialin.net] has joined #go-nuts 20:32 * mejja curses the websocket test 20:32 -!- tobel [n=tobel@p4FDCE8FA.dip.t-dialin.net] has quit ["WeeChat 0.3.0"] 20:37 -!- tobel [n=tobel@p4FDCE8FA.dip.t-dialin.net] has joined #go-nuts 20:37 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts 20:38 -!- kmc__ [n=keegan@64.121.133.238] has joined #go-nuts 20:39 -!- kmc_ [n=keegan@206-71-236-70.c3-0.nyw-ubr1.nyr-nyw.ny.cable.rcn.com] has quit [Read error: 60 (Operation timed out)] 20:40 -!- vomjom [n=vomjom@99-157-248-71.lightspeed.stlsmo.sbcglobal.net] has quit [Remote closed the connection] 20:40 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined #go-nuts 20:41 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit [Remote closed the connection] 20:42 -!- hstimer [n=hans@c-98-234-25-125.hsd1.ca.comcast.net] has joined #go-nuts 20:46 -!- illya77 [n=illya77@52-202-133-95.pool.ukrtel.net] has quit [Read error: 54 (Connection reset by peer)] 20:49 < plexdev> http://is.gd/59iq7 by [Russ Cox] in go/ -- A/C: add Charles L. Dorian 20:50 -!- Alkavan_ [n=alkavan@87.70.166.51] has quit ["Leaving"] 20:51 -!- triddell [n=tim@207-191-198-64.cpe.ats.mcleodusa.net] has joined #go-nuts 20:52 < anticw> dho: i'm wondering... is this a long standing bug that's recently exposed or a regression? 20:53 -!- decriptor [n=decripto@137.65.133.17] has quit ["Ex-Chat"] 20:53 -!- tobel [n=tobel@p4FDCE8FA.dip.t-dialin.net] has quit ["WeeChat 0.3.0"] 20:53 < anticw> vegai: i think it's a legal requirement ... if you push up changes you need to sign the CLA and then add you to those files 20:53 -!- tobel [n=tobel@p4FDCE8FA.dip.t-dialin.net] has joined #go-nuts 20:57 < hagna> so how would you convert []byte to []string? 20:57 -!- Fish [n=Fish@78.238.225.114] has joined #go-nuts 20:58 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Read error: 60 (Operation timed out)] 21:01 < dho> anticw: do you want to do a binary search? 21:01 < dho> anticw: -release was last slipped on the 17th, shortly after minimal freebsd/amd64 went in 21:01 < dho> I think that's our best shot at finding where it started happening. 21:01 -!- elmar [n=elmar@188.107.218.124] has quit ["Leaving"] 21:04 < Vova> new version for the GO windows compiler ide with vs like editor, will contiue tomorrow 21:04 < Vova> http://www.mediafire.com/?mmmmymdqhnz 21:05 -!- tar_ [n=tar_@adsl-99-60-4-211.dsl.pltn13.sbcglobal.net] has joined #go-nuts 21:05 -!- tomestla [n=tom@78.251.241.39] has joined #go-nuts 21:05 -!- hipe [n=hipe@69.193.196.185] has joined #go-nuts 21:06 < drhodes> hagna: this might be useful: http://www.gopaste.org/view/IX72R 21:06 < dho> anticw: ...though websockets are a relatively new addition 21:06 -!- amacleod [n=amacleod@c-24-34-33-96.hsd1.ma.comcast.net] has joined #go-nuts 21:07 < dho> anticw: at least #321 and / or #271 have always existed. 21:08 < hagna> drhodes, yes that helps thank you 21:10 -!- dajero [n=dajero@82-169-246-141.ip.telfort.nl] has quit ["Leaving..."] 21:11 < anticw> dho: yes, they are 21:11 -!- dgnorton [n=dgnorton@97.65.135.119] has joined #go-nuts 21:11 < anticw> dho: so we can't easily revert anything at this point to get people's builds working 21:11 -!- tobel [n=tobel@p4FDCE8FA.dip.t-dialin.net] has quit ["WeeChat 0.3.0"] 21:12 < dho> the thing that sucks is that I have absolutely no clue where the hang is. 21:13 < dho> hrm 21:13 < tar_> to compile 64-bit on OS X do I set GOARCH to amd64? 21:14 < dho> anticw: if this strace is to be believed, because of the way syscalls are wrapped, calling them is not atomic 21:14 -!- decriptor [n=decripto@137.65.133.17] has joined #go-nuts 21:14 < dho> [pid 25859] read(8, <unfinished ...> 21:14 < dho> [pid 25860] close(7 <unfinished ...> 21:14 < dho> [pid 25859] <... read resumed> "", 4096) = 0 21:14 < dho> [pid 25860] <... close resumed> ) = 0 21:18 -!- keepontryin [n=chatzill@adsl-69-208-78-88.dsl.klmzmi.ameritech.net] has joined #go-nuts 21:18 -!- dgnorton [n=dgnorton@97.65.135.119] has left #go-nuts [] 21:18 -!- keepontryin [n=chatzill@adsl-69-208-78-88.dsl.klmzmi.ameritech.net] has left #go-nuts ["I'm not here right now."] 21:19 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 21:19 -!- hackbench [n=hackbenc@88.242.234.136] has joined #go-nuts 21:21 < plexdev> http://is.gd/59jPo by [Robert Griesemer] in go/src/cmd/gofmt/ -- make test.sh work again 21:25 -!- zohaib1020 [n=zohaib10@z65-50-104-173.ips.direcpath.com] has joined #go-nuts 21:25 -!- zohaib1020 [n=zohaib10@z65-50-104-173.ips.direcpath.com] has quit [Remote closed the connection] 21:26 -!- kiva [n=quassel@r220-101-159-148.cpe.unwired.net.au] has quit [Remote closed the connection] 21:28 < tar_> yay, amd64 works 21:29 < tar_> and my cgo lib links 21:29 < dho> what're you doing 21:30 < tar_> wrapping a C library I'd compiled for 64-bit 21:31 < tar_> there were some #defines in the C header that I couldn't use directly. I had to // const int _VAR = VAR; 21:31 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts 21:39 < nickjohnson> Ookay. That code I pasted earlier for copying block devices in parallel corrupts random blocks 21:40 -!- osmosis [n=steven@m340e36d0.tmodns.net] has joined #go-nuts 21:40 < dho> anticw: ping 21:40 < nickjohnson> I suspect a bug in the Go compiler or runtime, because urnning on the same input each time, it corrupts different blocks at random\ 21:40 < dho> anticw: the websocket bug is not in pkg/net 21:41 -!- nullpo [n=nullpo@221x252x46x83.ap221.ftth.ucom.ne.jp] has joined #go-nuts 21:42 -!- tomestla [n=tom@78.251.241.39] has quit [Read error: 110 (Connection timed out)] 21:42 < nickjohnson> Oh, I'm an idiot. NEver mind. 21:42 < dho> nickjohnson: that's usually how it goes :) 21:42 < dho> any thoughts on why if err != nil {} wouldn't execute while if err == os.EOF {} does 21:42 < nickjohnson> dho: I was using the same buffer for each iteration of the loop 21:43 < dho> by execute, I mean wouldn't evaluate to true and execute the block 21:43 < nickjohnson> 99.99% of loops were fine, except when a write completes after the buffer has been overwritten with new data 21:43 < dho> :) 21:44 < nickjohnson> By the way, is there a way to use := with multiple return values when one of them is already defined? 21:45 -!- dbatbold_ [n=irc@209.17.191.58] has joined #go-nuts 21:45 < KirkMcDonald> nickjohnson: That should work. 21:46 < nickjohnson> KirkMcDonald: I don't think it does :/ 21:46 < nickjohnson> I'll check again later, though 21:46 -!- dbatbold_ [n=irc@209.17.191.58] has quit [Client Quit] 21:46 -!- dagle [n=dagle@host162-104.bornet.net] has joined #go-nuts 21:46 < KirkMcDonald> "Unlike regular variable declarations, a short variable declaration may redeclare variables provided they were originally declared in the same block with the same type, and at least one of the non-blank variables is new." 21:48 -!- irc [n=irc@209.17.191.58] has joined #go-nuts 21:48 -!- Ryan_ [n=ryan@cpe-98-27-182-206.neo.res.rr.com] has joined #go-nuts 21:51 < osmosis> is there a ubuntu install guide for go ? 21:51 < dho> there's a generic installation guide. 21:51 < exch> I fixed the flag package :p http://github.com/jteeuwen/go-pkg-optarg 21:52 < exch> specifically the Usage() thing needed some work 21:52 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection] 21:53 < KirkMcDonald> exch: Have you seen my option parser's usage output? :-) 21:53 < exch> nope :p 21:54 < KirkMcDonald> I basically copied Python's optparse. 21:54 < exch> this is a mixture of all sorts of parsers i've encountered over the years 21:54 -!- triplez_ [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts 21:55 < KirkMcDonald> Though, the parser I wrote supports options of the form --foo, -foo, and -f. 21:55 < exch> + the useage of a channel as iterator. cos that's just how Go rolls ;) 21:55 < dho> does it support --even-worse? 21:55 < dho> :P 21:55 < KirkMcDonald> dho: It supports --any-string-at-all 21:55 < dho> --that-sucks 21:55 < KirkMcDonald> ---- would even be valid. 21:55 < dho> --but-congrats-i-guess 21:55 < KirkMcDonald> Eh. I just don't validate it very much. :-) 21:55 < KirkMcDonald> It is up to the user to pick decent options. 21:56 < KirkMcDonald> And it does the GNU short-option thing where if you have options -a, -b, and -c, you can say -abc to specify all of them. 21:57 < exch> ya mine to 21:57 < exch> it's handy 21:57 < KirkMcDonald> And if you think this leads to ambiguities with -foo options, you'd be right. :-) 21:57 < exch> I don't allow -foo 21:57 < KirkMcDonald> I didn't either, at first. 21:57 < dagle> Hmm. How to do a daemon in go? 21:57 < exch> anything with a single - and multilpe chars is considered multiple options 21:57 < KirkMcDonald> But I relented. 21:58 -!- hipe [n=hipe@69.193.196.185] has quit [Remote closed the connection] 21:58 -!- drusepth [n=drusepth@adsl-75-50-51-139.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 21:58 < KirkMcDonald> exch: Mine sees -foo and checks if "-foo" is an option. 21:59 < KirkMcDonald> exch: And if it isn't, treats it as short options. 21:59 < exch> that works I suppose 21:59 -!- p4p4 [n=P4p4@24.106.113.82.net.de.o2.com] has quit ["ChatZilla 0.9.84 [SeaMonkey 2.0a3/20090223135443]"] 21:59 < exch> unless indeed both f and o are options ;) 21:59 < KirkMcDonald> exch: And if '-f' then exists, and takes an argument, then 'oo' becomes an argument to it. 22:00 < exch> lol :p does it come with a manual? ;) 22:00 < KirkMcDonald> exch: And if '-f' doesn't take an argument, then it's the same as '-f -oo'. And so on. 22:00 -!- drusepth` [i=drusepth@adsl-75-50-51-139.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 22:00 < KirkMcDonald> Not yet! Need to write that. 22:00 < KirkMcDonald> http://code.google.com/p/optparse-go/ 22:01 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has joined #go-nuts 22:01 < KirkMcDonald> It also supports a "Nargs" feature, where an option can take more than one argument. 22:02 -!- XniX23 [i=vegy@89-212-233-217.dynamic.dsl.t-2.net] has joined #go-nuts 22:02 -!- smooge [n=smooge@int.smoogespace.com] has left #go-nuts ["-ENOCAFFEINE"] 22:02 < KirkMcDonald> So you might have --foo=1 2 3, and get a []int with {1, 2, 3}. 22:02 < KirkMcDonald> But I don't honestly have a use case in mind for that. :-) 22:02 -!- Fish [n=Fish@78.238.225.114] has quit [Remote closed the connection] 22:03 -!- dajero [n=dajero@82-169-246-141.ip.telfort.nl] has joined #go-nuts 22:04 < exch> i'm sure someone will find a use for it :p 22:04 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit [Read error: 110 (Connection timed out)] 22:04 -!- clearscreen1 [n=clearscr@62.140.137.121] has joined #go-nuts 22:04 < exch> In my package you'll be stuck with doing -f "1 2 3" 22:05 < anticw> KirkMcDonald: doing Nargs like that seems counterintuitive, i think making them use a single token with a delim is what people are going to expect 22:05 < dho> anticw: want to know what the bug is? 22:06 < anticw> dho: yes 22:06 < anticw> dho: of course :-) 22:06 < dho> anticw: look at websocket.go 22:06 < KirkMcDonald> anticw: Perhaps so. 22:06 < dho> see Read() 22:06 < dho> notice what it doesn't do when it returns 22:06 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has quit [] 22:06 < dho> ...namely return the error up the call chain. 22:06 * dho facepalms. 22:06 < dho> if you make the returns that check for err != nil return 0, err instead, good luck getting it to crash. 22:07 < dho> s/crash/hang/ 22:07 -!- jurg_ [i=jurg@94.229.66.117] has joined #go-nuts 22:07 -!- jurg [i=jurg@94.229.66.117] has quit [Read error: 104 (Connection reset by peer)] 22:07 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 22:08 < anticw> dho: if ReadByte gets EOF ... it will return n=0, err=EOF 22:08 < dho> anticw: i thought it should, but i didn't see that happening. 22:09 < anticw> does foo, err := ... 22:09 < dho> when i made it start returning 0, err explicitly 22:09 < anticw> make a new err that shadows the return version? 22:09 < dho> probably 22:09 < dho> it should probably be foo, err = 22:09 < anticw> i wondered about that somewhere else, i need to check the spec 22:09 < dho> lemme see if that fixes it 22:09 < dho> that's a better fix. 22:09 -!- decriptor [n=decripto@137.65.133.17] has quit [Read error: 60 (Operation timed out)] 22:10 < anticw> dho: you can just return n, err in those cases 22:10 < anticw> assuming it's shadowing it will DTRT 22:10 < rbohn> dagle: see the last section of 'Effective Go': A Web Server 22:10 < dho> anticw: n = uint8, so i have to cast. 22:10 < dho> fun. 22:10 < anticw> c is int8 22:10 < anticw> n in int 22:11 -!- awishformore [n=awishfor@ip-88-207-241-119.dyn.luxdsl.pt.lu] has joined #go-nuts 22:11 < anticw> dho: ok, so with those explicit changes it's working for me 22:11 < dho> *nods* 22:11 < anticw> which worries me about cases of shadowing elsewhere 22:12 -!- tar_ [n=tar_@adsl-99-60-4-211.dsl.pltn13.sbcglobal.net] has quit [] 22:12 < anticw> i did the same in some (real) codethe other day and was wondering how it worked 22:12 -!- enigmus [n=e@S0106001d7e52d1d9.vc.shawcable.net] has joined #go-nuts 22:12 < dagle> rbohn: And that one forks into background? 22:12 < dho> did you end up doing return int(n), err? 22:12 < anticw> no 22:12 < anticw> no cast 22:12 < dho> that gives me a compile error. 22:12 < dho> or 22:12 < enigmus> What is the inlining behavior for exported functions? 22:12 < dho> you mean literally return n, err 22:12 < dho> duh 22:12 < dho> long day 22:12 < anticw> dh, let me upload 22:12 < anticw> sec 22:12 < dho> i got it 22:13 < anticw> it's not the way it should be committed but works 22:13 < anticw> i would prefer we just removed the shadowing and made it more obvious 22:13 < dho> rsc: ah 22:13 < dho> that happens 22:13 < dho> that's why i tend to avoid the named return except for simple cases 22:15 < anticw> http://codereview.appspot.com/163055 22:15 < anticw> that's working for me 22:15 -!- jdp [n=justin@ool-435238c0.dyn.optonline.net] has quit [Read error: 113 (No route to host)] 22:16 -!- mizai [n=matthew@rhou-164-107-213-111.resnet.ohio-state.edu] has quit [Remote closed the connection] 22:17 -!- Annirak [n=bremoran@S0106001cf0b854c6.vf.shawcable.net] has joined #go-nuts 22:17 -!- suBMUNDO [n=pCCC@unaffiliated/submundo] has quit [Remote closed the connection] 22:17 -!- awishformore__ [n=awishfor@ip-88-207-237-23.dyn.luxdsl.pt.lu] has joined #go-nuts 22:17 < Annirak> Looking for a (graphical) text editor with syntax highlighting for go. Anything out there? 22:17 < anticw> emacs 22:18 < KirkMcDonald> vim 22:18 < dagle> kate 22:18 < anticw> bbedit 22:18 < anticw> eclipse 22:18 < anticw> kate 22:18 < exch> gedit 22:18 -!- suBMUNDO [n=pCCC@unaffiliated/submundo] has joined #go-nuts 22:18 < anticw> pretty sure there are others 22:18 < exch> http://go-lang.cat-v.org/text-editors/ 22:18 -!- drusepth [n=drusepth@adsl-75-50-51-139.dsl.spfdmo.sbcglobal.net] has quit [Read error: 110 (Connection timed out)] 22:19 < Vova> if you want windows go ide with highlight, http://korprg.blogspot.com/ 22:20 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has quit ["Leaving."] 22:20 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has joined #go-nuts 22:21 -!- flyfish [n=flyfish@pixout.appriss.com] has joined #go-nuts 22:21 < uriel> Vova: put that on a proper source repo and I'll add a link 22:22 < Annirak> There's an eclipse plugin? Excellent! 22:22 -!- awishformore___ [n=awishfor@ip-88-207-238-31.dyn.luxdsl.pt.lu] has joined #go-nuts 22:22 < dho> anticw: take a look at your cl 22:25 -!- clearscreen1 [n=clearscr@62.140.137.121] has quit [Read error: 104 (Connection reset by peer)] 22:25 < Vova> uriel: i will do one tomorrow going to sleep right now 22:25 < dho> anticw: Russ suggested that was the proper way to fix it. 22:26 < anticw> making it all explicit? 22:26 < dho> correct 22:26 < anticw> i don't doubt it works, i'm just trying to think how to make make it more pretty :) 22:26 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit [Success] 22:26 -!- clearscreen [n=clearscr@62.140.137.121] has joined #go-nuts 22:26 < anticw> like i said, it raises a larger issue about _, err := ... { ... } 22:27 < anticw> idiom that's used everywhere and shadowing return parameters 22:27 < anticw> i think the a day or so back in rblcheck 22:27 < anticw> i hit that a day or so back in rblcheck 22:27 < dho> I dunno 22:27 < dho> To me it seems like a case of `don't do that' 22:28 < dho> in c you can do int foo(void) { int i = 0; if (i == 0) { int i = 1; return i; } return 0; } 22:28 < anticw> sure, but im saying i did it the other day and wondered, clearly others have too 22:28 -!- awishformore_ [n=awishfor@ip-88-207-238-133.dyn.luxdsl.pt.lu] has quit [Read error: 110 (Connection timed out)] 22:28 < anticw> if nothing else the compiler could warn 22:29 < dho> i think that's proper. 22:31 -!- clearscreen [n=clearscr@62.140.137.121] has quit [Client Quit] 22:31 < exch> oo.. redeclaring a variable in a child scope.. I ran across that twice today and was a bit puzzled 22:31 -!- scandal [n=nobody@unaffiliated/scandal] has joined #go-nuts 22:31 -!- awishformore [n=awishfor@ip-88-207-241-119.dyn.luxdsl.pt.lu] has quit [Read error: 110 (Connection timed out)] 22:31 -!- clearscreen [n=clearscr@62.140.137.121] has joined #go-nuts 22:33 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined #go-nuts 22:34 -!- hackbench [n=hackbenc@88.242.234.136] has quit [Read error: 110 (Connection timed out)] 22:34 < anticw> dho: i think shadows return is a special case to watch out for, because 'naked' returns are someehat idiomatic 22:34 < anticw> in general shadowing is hard to avoid 22:34 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has quit ["Leaving."] 22:35 < anticw> use -Wshadow w/ gcc on any large project and it tends to find many instances 22:36 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has joined #go-nuts 22:36 -!- awishformore [n=awishfor@ip-88-207-242-73.dyn.luxdsl.pt.lu] has joined #go-nuts 22:38 -!- matthew [n=matthew@rhou-164-107-213-111.resnet.ohio-state.edu] has joined #go-nuts 22:38 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has quit [Client Quit] 22:38 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has joined #go-nuts 22:39 -!- Guest57539 [n=matthew@rhou-164-107-213-111.resnet.ohio-state.edu] has quit [Client Quit] 22:39 -!- awishformore__ [n=awishfor@ip-88-207-237-23.dyn.luxdsl.pt.lu] has quit [Read error: 110 (Connection timed out)] 22:39 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has joined #go-nuts 22:40 -!- mizai [n=mizai@rhou-164-107-213-111.resnet.ohio-state.edu] has joined #go-nuts 22:42 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit ["Leaving"] 22:42 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has quit [Client Quit] 22:43 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has joined #go-nuts 22:45 -!- dajero [n=dajero@82-169-246-141.ip.telfort.nl] has quit [Remote closed the connection] 22:45 -!- osmosis [n=steven@m340e36d0.tmodns.net] has quit ["Ex-Chat"] 22:48 -!- snearch [n=olaf@g225063148.adsl.alicedsl.de] has quit ["Ex-Chat"] 22:50 -!- gnibbler_ [n=duckman@210-84-27-154.dyn.iinet.net.au] has joined #go-nuts 22:53 -!- awishformore___ [n=awishfor@ip-88-207-238-31.dyn.luxdsl.pt.lu] has quit [Read error: 110 (Connection timed out)] 22:54 -!- lux` [n=lux@151.54.240.211] has quit [Remote closed the connection] 22:54 -!- itrekkie [n=itrekkie@ip72-200-105-72.tc.ph.cox.net] has joined #go-nuts 22:55 -!- ryniek [n=RYNIEK@host-89-231-108-219.warszawa.mm.pl] has quit ["X-Chat det :"<"] 22:56 -!- hipe [n=hipe@69.193.196.185] has joined #go-nuts 22:57 < clip9_> Whats up with container/vector? 22:57 < clip9_> http://gopaste.org/view/ReQJl 22:59 < scandal> vectors are directly constructable now, so the New* functions went away 22:59 < clip9_> Thanks. 23:01 -!- iant [n=iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 23:01 -!- mode/#go-nuts [+v iant] by ChanServ 23:04 < clip9_> I should really stop using the docs on the website :P 23:05 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has left #go-nuts ["Leaving"] 23:06 -!- gnibbler [n=duckman@210-84-2-13.dyn.iinet.net.au] has quit [Read error: 101 (Network is unreachable)] 23:07 < scandal> that's so two-weeks-ago :) 23:08 -!- awishformore_ [n=awishfor@ip-88-207-235-15.dyn.luxdsl.pt.lu] has joined #go-nuts 23:13 -!- Ibw [n=isaac@cpe-67-241-42-134.twcny.res.rr.com] has joined #go-nuts 23:14 < Ibw> dho: Were you serious about wanting to write a book? 23:14 -!- aho [n=nya@e180235157.adsl.alicedsl.de] has quit ["EXEC_over.METHOD_SUBLIMATION"] 23:14 -!- hstimer [n=hans@c-98-234-25-125.hsd1.ca.comcast.net] has quit ["Leaving..."] 23:17 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has quit [] 23:19 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit ["KVIrc Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47 UTC http://www.kvirc.net/"] 23:25 -!- Zarutian [n=zarutian@194-144-84-110.du.xdsl.is] has quit [] 23:25 -!- awishformore [n=awishfor@ip-88-207-242-73.dyn.luxdsl.pt.lu] has quit [Read error: 110 (Connection timed out)] 23:27 -!- ShadowIce [n=pyoro@unaffiliated/shadowice-x841044] has quit ["Verlassend"] 23:27 -!- nigwil [n=chatzill@berkner.ccamlr.org] has joined #go-nuts 23:28 -!- Gynvael [n=gynvael@static-87-105-185-61.ssp.dialog.net.pl] has quit [Read error: 110 (Connection timed out)] 23:31 -!- drusepth [n=drusepth@adsl-71-144-123-15.dsl.spfdmo.sbcglobal.net] has joined #go-nuts 23:31 -!- flyfish [n=flyfish@pixout.appriss.com] has quit [] 23:34 -!- Ryan_ [n=ryan@cpe-98-27-182-206.neo.res.rr.com] has quit ["Colloquy for iPhone - http://colloquy.mobi"] 23:35 -!- rndbot [n=bot@wikipedia/Gracenotes] has joined #go-nuts 23:36 -!- rhelmer [n=rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has joined #go-nuts 23:39 < plexdev> http://is.gd/59pwv by [Rob Pike] in go/src/pkg/gob/ -- more gob bugs 23:43 -!- drusepth` [i=drusepth@adsl-75-50-51-139.dsl.spfdmo.sbcglobal.net] has quit [Read error: 110 (Connection timed out)] 23:47 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined #go-nuts 23:53 -!- Zarutian [n=zarutian@194-144-84-110.du.xdsl.is] has joined #go-nuts 23:54 < dho> Ibw: yes 23:55 < dho> it's too early though. 23:56 < plexdev> http://is.gd/59q5x by [Charles L. Dorian] in 2 subdirs of go/src/cmd/ -- 8g: fix 386 floating point stack bug 23:56 < plexdev> http://is.gd/59q5y by [Christopher Wedgwood] in go/src/pkg/websocket/ -- Explicitly return values where it's shadowing the parameter. 23:57 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has quit [Read error: 110 (Connection timed out)] --- Log closed Wed Dec 02 00:00:30 2009