--- Log opened Fri Jul 23 00:00:05 2010 00:00 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has quit [Ping timeout: 265 seconds] 00:03 -!- jhawk28 [~jhawk28@72.40.31.201] has joined #go-nuts 00:04 -!- geocalc [~geobsd@83.158.142.95] has quit [Quit: Lost terminal] 00:11 -!- photron [~photron@port-92-201-95-193.dynamic.qsc.de] has quit [Ping timeout: 240 seconds] 00:12 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 00:14 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 240 seconds] 00:18 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit [Quit: carllerche] 00:22 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Quit: (◣_◢) BigBrowser is watching ⓎⓄⓊ] 00:26 < tobiassjosten> exch: Your code helped a lot! I'm getting the hang of this now. :) 00:27 < Ginto8> hooray! 00:29 < exch> goodie :) 00:29 -!- bmizerany [~bmizerany@209.sub-75-208-206.myvzw.com] has quit [Remote host closed the connection] 00:30 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined #go-nuts 00:32 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit [Remote host closed the connection] 00:33 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined #go-nuts 00:34 < gnuvince> Does anyone see my proggit submission for Rob Pike's OSCON keynote? I posted it about 30 minutes ago and it's nowhere to be seen in hot or in new 00:35 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit [Remote host closed the connection] 00:35 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 00:36 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the connection] 00:37 -!- tobiassjosten [~tobias@c-919ee253.04-114-73746f13.cust.bredbandsbolaget.se] has quit [Quit: Nighty, night] 00:38 < exch> gnuvince: nope 00:38 < gnuvince> Does this work for you? http://www.reddit.com/r/programming/comments/cso44/rob_pikes_oscon_2010_keynote_speech_public_static/ 00:39 < exch> it shows the article link. No comments 00:39 < exch> *youtube link 00:44 -!- tensorpudding [~user@99.32.59.169] has joined #go-nuts 00:46 -!- tensorpudding [~user@99.32.59.169] has quit [Remote host closed the connection] 00:47 < gnuvince> hmmm 00:47 -!- tensorpudding [~user@99.32.59.169] has joined #go-nuts 00:47 < exch> I love rob's take on design patterns. I've always found them terribly overstated. Most of them really boil down to common sense ways of laying out code. There's no possible use in writing whole books about it. Preachers of design pattern theology tend to make my blood boil 00:51 -!- mikespook [~mikespook@219.137.48.37] has joined #go-nuts 00:57 -!- getisboy [~Family@pool-173-76-228-217.bstnma.fios.verizon.net] has joined #go-nuts 00:59 < Ginto8> exch: yeah rob's is so much simpler and common-sense oriented 00:59 < Ginto8> the rest is just bloating things out of proportion 00:59 -!- kanru [~kanru@118-168-236-243.dynamic.hinet.net] has quit [Read error: Operation timed out] 01:00 < Ginto8> s/the rest is/most others are/ 01:03 < exch> In the last programming job interview I was in, the interviewer asked me if I could name some random number of design patterns and explain what they are for. I couldn/t Luckily some smooth talking got my out of the question, but it was obvious it was a big deal for them. I decided to read up incase I got reinvited. 01:04 < exch> As I was reading I was just amazed at how obvious most of the ideas behind the patterns where 01:04 < Ginto8> yeah 01:05 < Ginto8> I think, if it makes sense, do it 01:05 < Ginto8> don't spend a ton of time to figure out HOW it's going to happen 01:05 < Ginto8> because it will be easy to tell if it makes sense 01:06 < exch> exactly. The code should speak for itself. You shouldn't need a 250 book to explain why it works 01:06 < exch> *250 +page 01:06 < Ginto8> if you can't, you did something wront 01:06 < Ginto8> wrong* 01:06 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Remote host closed the connection] 01:07 < jhawk28> 250 pages for the language or the pattern? 01:07 < exch> the patterns :p 01:07 < Ginto8> rob pike is a very good speaker 01:07 < jhawk28> was a decent video, but the switch between speaker and slides was annoying 01:07 < Ginto8> yeah a bit 01:08 < exch> heh i kept wiggling my mouse.. I thought it was switching to screesaver when the vid turned black 01:08 < Ginto8> lol 01:09 < jhawk28> same 01:19 -!- getisboy [~Family@pool-173-76-228-217.bstnma.fios.verizon.net] has left #go-nuts [] 01:23 < KirkMcDonald> I don't think I could literally name many design patterns. 01:23 < KirkMcDonald> I do subscribe to the notion that design patterns indicate a weakness in the language. 01:23 < KirkMcDonald> ... usually. 01:27 -!- getisboy [~Family@pool-173-76-228-217.bstnma.fios.verizon.net] has joined #go-nuts 01:35 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 01:43 < plexdev> http://is.gd/dCMLm by [Petar Maymounkov] in go/misc/vim/syntax/ -- misc/vim: updated syntax file to recognize constants of the form 1e9 01:43 -!- SRabbelier1 [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has joined #go-nuts 01:43 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has quit [Disconnected by services] 01:44 < tensorpudding> Is there anything like an interface that corresponds to the comparison operators? 01:45 < Ginto8> what do you mean by that? 01:46 < MaybeSo> like http://golang.org/pkg/sort/ definitions of Less()/Swap() ? 01:46 < tensorpudding> I don't want something that acts like a list. 01:46 < tensorpudding> I'm trying to implement a binary search tree 01:46 < Ginto8> oh btw http://www.youtube.com/watch?v=HmxnCEa8Ctw is a cool talk about newsqueak, which is a fairly direct go predecessor 01:49 < tensorpudding> but I find the lack of generics highly restrictive 01:49 -!- thaostra [~joshua@71.168.114.217] has joined #go-nuts 01:49 < Ginto8> only a bit =P 01:52 -!- franksalim [~frank@adsl-75-61-93-123.dsl.pltn13.sbcglobal.net] has quit [Quit: Ex-Chat] 01:53 < tensorpudding> I must confess I come from a very different background than Go. 01:53 < Ginto8> same, but I haven't found much restriction in the lack of generics 01:53 < exch> I found I missed them as well when I started with go, but it's become progressively less of a problem 01:53 < exch> still there are a few situations in which they would be useful 01:53 < Ginto8> exch: exactly 01:54 < tensorpudding> I just don't see how you can make a container type worth using without them 01:54 < exch> it's a bit like a drug addiction. You need to detox for a bit :p 02:02 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 02:02 < tensorpudding> I figure that Go is something that is an acquired taste 02:03 < tensorpudding> but I am trying hard to find what enticement there is that motivates it. 02:04 < exch> it's also still in development 02:04 < Ginto8> concurrency 02:05 < Ginto8> interface 02:05 < Ginto8> s 02:05 < Ginto8> a useful and robust standard library 02:05 < tensorpudding> Erlang has concurrency and more features. 02:06 < tensorpudding> Java has interfaces and generics too. 02:07 < exch> go is not a magic wand. It satisfies a niche that may well not be in your field of interest 02:07 < tensorpudding> That's possibly true. 02:08 < KirkMcDonald> Go is an excellent choice for hammering out production-quality servers. 02:08 < KirkMcDonald> Or at least I think that is the niche it is meant for. 02:08 < exch> it certainly is very good at that 02:09 < KirkMcDonald> As to why Google would be interested in a language which is good at that, I couldn't possibly say. 02:09 < KirkMcDonald> (Hurr.) 02:10 * araujo still doesn't use those features why Go is a hype ... but is hugely enjoying it so far 02:11 < araujo> I think that Go as a language does have many interesting features that makes it a nice language =) 02:12 -!- getisboy [~Family@pool-173-76-228-217.bstnma.fios.verizon.net] has quit [Quit: Leaving.] 02:12 -!- Atlas2070 [~ender2070@bas22-toronto12-2925103372.dsl.bell.ca] has joined #go-nuts 02:13 -!- mpl [~mpl@smgl.fr.eu.org] has quit [Ping timeout: 276 seconds] 02:14 < tensorpudding> I've tried a decent number of languages but I haven't done a lot of programming in most of them 02:21 -!- smw [~smw@pool-71-183-88-124.nycmny.fios.verizon.net] has joined #go-nuts 02:21 -!- mpl [~mpl@smgl.fr.eu.org] has joined #go-nuts 02:23 -!- clangor [sam@atheme/member/samferry] has quit [Read error: Operation timed out] 02:24 -!- mat_ [~mat@mx3.absolight.net] has quit [Read error: Connection reset by peer] 02:24 -!- thiago__ [~thiago@189.107.224.222] has quit [Quit: bye] 02:24 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 02:28 < Ginto8> the interesting thing about go is the number of ways you can use its features 02:28 < Ginto8> for example, the concurrency and interfaces are integral parts of how I'm designing my game engine 02:48 -!- thaostra [~joshua@71.168.114.217] has quit [Read error: Connection reset by peer] 02:48 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode] 03:01 -!- ender2070 [~ender2070@bas22-toronto12-2925103372.dsl.bell.ca] has quit [Remote host closed the connection] 03:03 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds] 03:07 -!- getisboy [~Family@pool-173-76-228-217.bstnma.fios.verizon.net] has joined #go-nuts 03:15 -!- getisboy [~Family@pool-173-76-228-217.bstnma.fios.verizon.net] has left #go-nuts [] 03:34 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Ping timeout: 265 seconds] 03:46 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 03:53 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 04:01 < Ginto8> wow rob pike was talkin interfaces and implementations all the way back when he was still doin newsqueak 04:17 < i__> yeah, that explains why they are reluctant to add features people came up after 'thinking' for ten minutes 04:18 < Ginto8> yeah but it was in regard to channels, not interfaces 04:18 < Ginto8> but he was thinkin about it already by that time 04:26 < MaybeSo> and between newsqueak and go they developed alef (re channels) 04:27 < Ginto8> yep 04:27 < Ginto8> Go is the product of a lot of trial and error =P 04:28 -!- camedee [~camedee@pool-71-125-16-77.nycmny.fios.verizon.net] has joined #go-nuts 04:28 < Ginto8> does anyone here actually use new()? 04:29 < MaybeSo> I do 04:29 < Ginto8> what for? 04:29 < nsf> I do 04:29 < nsf> I think it's more readable than &Type{} 04:29 < MaybeSo> it's nice to not have to call out every bit of a struct 04:29 < Ginto8> well you don't 04:29 < Ginto8> you can do &Type{} 04:29 < Ginto8> or &Type{mem1:x,mem2:y} 04:30 < nsf> also I use it mostly in New* functions 04:31 < nsf> like NewType() 04:31 < Ginto8> yeah I understand those 04:32 < Ginto8> but new() itself I rarely use =/ 04:32 < Ginto8> make() I use a lot 04:33 < MaybeSo> re new(Type) vs &Type{}, do you prefer &Type{} because it seem clearer to you? 04:34 < MaybeSo> (I had not known that was an option, but I will probably still use new()) 04:34 < MaybeSo> I suppose the & makes it pretty clear that it is a pointer 04:34 < Ginto8> I find it clearer and less verbose 04:40 < Ginto8> ok quick question... what's the perm in os.Open()? 04:41 < MaybeSo> you mean what are the allowed values? 04:43 < MaybeSo> for unix systems see: http://linux.about.com/od/commands/l/blcmdl2_open.htm 04:43 < MaybeSo> see "The argument mode specifies the permissions..." 04:43 -!- xuwen [~xuwen@adsl-75-61-119-20.dsl.pltn13.sbcglobal.net] has joined #go-nuts 04:44 < Ginto8> oh that's permissions 04:44 < Ginto8> lol 04:44 < MaybeSo> yeah 04:44 < MaybeSo> on create 04:44 < Ginto8> okay 04:45 < MaybeSo> I suppose they could make that clearer in the documentation 04:45 < Ginto8> well 04:45 < Ginto8> oh yeah 05:02 -!- scm [justme@d070084.adsl.hansenet.de] has quit [Read error: Operation timed out] 05:05 -!- scm [justme@d071042.adsl.hansenet.de] has joined #go-nuts 05:08 -!- smw [~smw@pool-71-183-88-124.nycmny.fios.verizon.net] has quit [Ping timeout: 265 seconds] 05:10 -!- smw [~smw@pool-71-183-88-124.nycmny.fios.verizon.net] has joined #go-nuts 05:18 -!- augustz [~chatzilla@unaffiliated/augustz] has joined #go-nuts 05:20 < augustz> Go is going for clean, sleek, fun. I love the static typing + garbage collection. But what is up with {}. I think python has shown significant whitespace can work. Am I missing something in terms of why {} are needed? 05:20 < augustz> It's especially weird because go forces a pretty uniform style guide already. So you don't get to vary things up that much with {}. 05:22 < Ginto8> well there are certain advantages 05:22 < Ginto8> I can' tthink of any atm but I know I've read some of the arguments 05:22 < augustz> I know, it's seems a bit thin. 05:23 < Ginto8> probly has to do with how gofmt works 05:23 < augustz> But with gofmt you are fixing the style, so might as well do whitespace I think. 05:23 -!- adk9 [814ff5cb@gateway/web/freenode/ip.129.79.245.203] has joined #go-nuts 05:23 < Ginto8> well 05:24 < Ginto8> with if and for at least 05:24 < augustz> It's weird. Language is great concepts side of things. but some quirky choices :) 05:24 < Ginto8> { is necessary 05:24 < augustz> can you give me an example? 05:24 < Ginto8> because otherwise gofmt thinks it's a statement and puts a semicolon after it 05:24 < Ginto8> if someBoolVal 05:24 < Ginto8> gofmt will see someBoolVal at the end of the line 05:25 < Ginto8> and put a ; after it 05:25 -!- adk9 [814ff5cb@gateway/web/freenode/ip.129.79.245.203] has left #go-nuts [] 05:25 < Ginto8> that isn't what you want with an if statement 05:25 < Ginto8> so you put a { on that line 05:25 < augustz> cleaner I think just to indent the subsequent line. 05:25 < Ginto8> also the {'s are for scoping and they're more inherited from C as a stylistic thing 05:26 < augustz> then gofmt can look and see the next line is indented 05:26 < augustz> and skip the ;. 05:26 < augustz> significant whitespace can also do the scoping part. 05:26 < Ginto8> well 05:27 < Ginto8> suggest it on the mailing list 05:27 -!- abbyz [~adkulkar@unaffiliated/abbyz] has joined #go-nuts 05:27 < abbyz> I had a quick question -- what does []*Foo{foo1, foo2, foo3} represent? 05:28 < augustz> Ginto8: I suspect they've heard it before... be curious as to the reasoning however. 05:28 < Ginto8> abbyz: a slice of an array of *Foo's 05:28 < Ginto8> foo1,foo2,and foo3 have to be *Foo's 05:28 < Ginto8> augustz: then you can ask on the mailing list =P 05:29 < abbyz> Ginto8: is there a way to write it without the *Foo? 05:29 < augustz> Ginto8: That's a good point :) 05:29 < Ginto8> abbyz: what do you mean? 05:29 < abbyz> it somehow feels redundant since foo1, foo2, foo3 have the type *Foo 05:30 < Ginto8> nope it's better 05:30 < abbyz> Ginto8: say like []{foo1, foo2, foo3} 05:30 < abbyz> Why is it better? 05:30 < Ginto8> it's more readable because if you were to do x := []{blarg,yip,yap} then you'd have to look where blarg or yip or yap was defined 05:31 < Ginto8> with []Foo{} you know it's of type Foo right away 05:31 < Ginto8> well 05:31 < Ginto8> []Foo 05:31 < Ginto8> but still 05:32 < abbyz> hmmrph, i sorta buy that. but it leads to too verbose code in some cases :/ 05:32 < Ginto8> just a little 05:32 < Ginto8> go is overall minimally verbose 05:32 < Ginto8> just verbose enough to enforce readability 05:33 < abbyz> if the types are imported from a different package, it leads to code like []*packageFoo.Foo{foo1, foo2, foo3} 05:33 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 05:33 < abbyz> nevertheless, thanks! 05:33 < Ginto8> well 05:33 < Ginto8> you can alias packages 05:34 < Ginto8> and bring them into the current namespace 05:34 < Ginto8> import <alias> "<package>" 05:34 < Ginto8> import . "<package>" for the current namespace 05:41 -!- gid [~gid@220-253-151-50.VIC.netspace.net.au] has joined #go-nuts 05:44 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has quit [Ping timeout: 265 seconds] 05:46 < jessta> Ginto8: stop telling people that :P 05:48 -!- augustz [~chatzilla@unaffiliated/augustz] has quit [Ping timeout: 265 seconds] 05:51 -!- abbyz [~adkulkar@unaffiliated/abbyz] has left #go-nuts [] 05:55 -!- nsf [~nsf@jiss.convex.ru] has quit [Ping timeout: 258 seconds] 05:58 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 264 seconds] 05:58 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 06:01 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has joined #go-nuts 06:02 -!- skelterjohn [~jasmuth@wsip-98-175-243-116.sd.sd.cox.net] has joined #go-nuts 06:06 -!- chressie [~chressie@dreggn.in-ulm.de] has quit [Quit: WeeChat 0.3.2] 06:06 < nsf> ugh.. few more items on the TODO list and gocode is ready for use 06:06 -!- chressie [~chressie@dreggn.in-ulm.de] has joined #go-nuts 06:07 < nsf> 1. multiple file packages, 2. importing package to a current namespace, 3. type embedding, 4. few other really small things 06:07 < nsf> :P 06:08 < nsf> other than that it's quite useful already 06:14 -!- skelterjohn [~jasmuth@wsip-98-175-243-116.sd.sd.cox.net] has quit [Ping timeout: 240 seconds] 06:15 -!- path[l] [~path@120.138.102.50] has quit [Quit: path[l]] 06:15 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts 06:17 < Ginto8> jessta: isn't this supposed to be a help channel? 06:18 < Ginto8> nsf: huh? 06:18 -!- Zoopee [alsbergt@zoopee.org] has quit [Read error: Operation timed out] 06:18 < nsf> Ginto8: gocode is my autocompletion daemon for go programming language 06:18 -!- adu [~ajr@softbank220043138128.bbtec.net] has joined #go-nuts 06:18 < Ginto8> oh cool 06:18 < nsf> http://nsf.110mb.com/gocode_teaser.swf 06:18 < Ginto8> for vim right? 06:18 < nsf> a demo 06:19 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Ping timeout: 246 seconds] 06:19 < nsf> it's editor independent 06:19 < Ginto8> wow 06:19 < Ginto8> looks like you know vim a lot better than i do =/ 06:20 < nsf> it runs as a daemon and you basically put a buffer into it and a cursor position 06:20 < nsf> and it will answer with completion proposals 06:20 < Ginto8> wow 06:20 < Ginto8> nice 06:21 < nsf> I've just implemented part for parsing complex expressions for completion 06:21 < nsf> like: 06:21 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts 06:21 < nsf> a.MyInterface.(*WhateverType)[10]["string"].FuncX(arg1, 15). 06:21 < nsf> and it will autocomplete correctly depending on FuncX return type 06:22 < Ginto8> is this written in go too? 06:22 < nsf> yes 06:22 < Ginto8> sweet 06:22 < nsf> sources are available 06:22 < nsf> http://github.com/nsf/gocode 06:22 < nsf> here 06:22 < Ginto8> just for that I'm gonna learn how to use vim better 06:22 < Ginto8> =D 06:23 < Ginto8> cuz that was awesome 06:23 -!- Sacho [~sacho@79-100-169-151.btc-net.bg] has quit [Read error: Connection reset by peer] 06:23 -!- gavintong [71fe9b5d@gateway/web/freenode/ip.113.254.155.93] has joined #go-nuts 06:23 < Ginto8> and yes I know you don't have to use vim 06:23 < nsf> you can implement a plugin to an editor of your choice 06:23 < Ginto8> but I will 06:23 < nsf> if it's possible 06:23 < nsf> :) 06:23 < Ginto8> it's just too awesome to put aside 06:24 < nsf> well, don't get too excited it has it's own limitations :) 06:24 < Ginto8> I know 06:24 < Ginto8> but it's still awesome 06:24 < Ginto8> it handles custom packages that have been installed right? 06:25 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts 06:25 < nsf> currently yes, it can't handle local packages ('./whatever') 06:25 < nsf> but it will be implemented later 06:26 < nsf> but if it's installed, it's ok 06:26 < Ginto8> ok 06:26 < Ginto8> that's good 06:26 < nsf> things like gl. sdl. work fine 06:26 < nsf> I have a screenshot actually, sec 06:26 < nsf> http://nsf.github.com/images/gocode1.png 06:26 < nsf> here it is 06:26 < nsf> :D 06:26 < Ginto8> and once you have imported into current namespace done, it will be truly awesome =P 06:27 < nsf> it's not that hard either, but I'm rather lazy person 06:27 < nsf> and valve released Alien Swarm recently, I play it a lot :( 06:27 < Ginto8> quit dem games! 06:27 < Ginto8> Code is your life! 06:27 < Ginto8> =P 06:28 -!- gid [~gid@220-253-151-50.VIC.netspace.net.au] has quit [Quit: Leaving.] 06:32 -!- jA_cOp [~yakobu@p20074-ipngn100105osakakita.osaka.ocn.ne.jp] has joined #go-nuts 06:36 < Ginto8> ooh 06:36 < Ginto8> just noticed that you can use your mouse in vim with an xterm =D 06:37 < nsf> it's quite handy for scrolling, yep 06:38 < nsf> and sometimes for selection too 06:44 -!- mikespook [~mikespook@219.137.48.37] has quit [Ping timeout: 265 seconds] 06:44 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 06:51 -!- mikespook [~mikespook@219.137.48.37] has joined #go-nuts 06:58 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 06:59 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 240 seconds] 07:02 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has quit [Quit: Leaving.] 07:08 -!- path[l] [UPP@120.138.102.50] has joined #go-nuts 07:08 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts 07:12 -!- iant [~iant@nat/google/x-lfvjfgotempwhjvs] has joined #go-nuts 07:12 -!- mode/#go-nuts [+v iant] by ChanServ 07:25 -!- ronny [~quassel@p4FF1D749.dip.t-dialin.net] has joined #go-nuts 07:27 -!- adu [~ajr@softbank220043138128.bbtec.net] has quit [Quit: adu] 07:36 -!- visof_ [~visof@41.238.232.253] has joined #go-nuts 07:39 -!- Sacho [~sacho@213.91.244.15] has joined #go-nuts 07:39 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 264 seconds] 07:48 -!- path[l] [UPP@120.138.102.50] has quit [Quit: path[l]] 08:03 -!- visof_ [~visof@41.238.232.253] has quit [Quit: Leaving] 08:08 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 08:11 -!- Atlas2070 [~ender2070@bas22-toronto12-2925103372.dsl.bell.ca] has quit [Ping timeout: 276 seconds] 08:12 -!- Zoopee [alsbergt@zoopee.org] has quit [Ping timeout: 246 seconds] 08:13 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts 08:14 -!- ssb [~ssb@213.167.39.150] has quit [Ping timeout: 246 seconds] 08:15 -!- ssb [~ssb@213.167.39.150] has joined #go-nuts 08:17 -!- ikaros [~ikaros@drms-4d0142dd.pool.mediaWays.net] has joined #go-nuts 08:19 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 258 seconds] 08:19 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 08:21 -!- sauerbraten [~sauerbrat@p508CF872.dip.t-dialin.net] has joined #go-nuts 08:26 -!- ikaros [~ikaros@drms-4d0142dd.pool.mediaWays.net] has quit [Quit: Leave the magic to Houdini] 08:29 -!- photron [~photron@port-92-201-38-93.dynamic.qsc.de] has joined #go-nuts 08:30 -!- wrtp [~rog@92.41.163.243.sub.mbb.three.co.uk] has joined #go-nuts 08:30 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 08:34 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 08:52 -!- adu [~ajr@softbank220043138128.bbtec.net] has joined #go-nuts 08:54 -!- adu [~ajr@softbank220043138128.bbtec.net] has quit [Client Quit] 08:56 -!- Guest24528 [~quassel@p4FF1D749.dip.t-dialin.net] has quit [Remote host closed the connection] 09:05 -!- welterde [~welterde@not.welterde.de] has quit [Read error: Operation timed out] 09:06 -!- Damn3d [damn3d@unaffiliated/morpheus/x-0931003] has quit [Read error: Operation timed out] 09:09 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined #go-nuts 09:17 -!- wrtp [~rog@92.41.163.243.sub.mbb.three.co.uk] has quit [Ping timeout: 265 seconds] 09:17 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout: 619 seconds] 09:18 -!- welterde [~welterde@not.welterde.de] has joined #go-nuts 09:27 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts 09:28 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 09:29 -!- gavintong [71fe9b5d@gateway/web/freenode/ip.113.254.155.93] has quit [Quit: Page closed] 09:32 -!- mikespook [~mikespook@219.137.48.37] has quit [Quit: Leaving.] 09:39 -!- tensorpudding [~user@99.32.59.169] has quit [Remote host closed the connection] 09:39 -!- tensorpudding [~user@99.32.59.169] has joined #go-nuts 09:48 -!- mat_ [~mat@mx3.absolight.net] has quit [Read error: Connection reset by peer] 09:49 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 10:14 -!- tensorpudding [~user@99.32.59.169] has quit [Remote host closed the connection] 10:15 -!- XenoPhoenix [~Xeno@94.171.244.40] has quit [Ping timeout: 240 seconds] 10:17 -!- tensorpudding [~user@99.32.59.169] has joined #go-nuts 10:20 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts 10:21 -!- adu [~ajr@softbank220043138128.bbtec.net] has joined #go-nuts 10:27 -!- path[l] [UPP@120.138.102.50] has joined #go-nuts 10:27 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has joined #go-nuts 10:30 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has quit [Client Quit] 10:31 -!- XenoPhoenix [~Xeno@94.171.244.40] has joined #go-nuts 10:34 < araujo> hello 10:35 < araujo> there exist a nice/handy/idiomatic way to append new values to an array?? 10:35 < araujo> or do I need to go manually on this? :) 10:38 < Archwyrm> araujo: Manual. Or take a look at container/vector 10:38 < chressie> you can use {String,Int,}Vector from container.vector to manipulate string, int or interface slices 10:40 < araujo> ooh, ok Thanks Archwyrm chressie ! 10:40 < araujo> :) 10:41 < araujo> awesome, I think that is what I want :) 10:42 * araujo leaves the carpentry to the go designers 10:48 -!- shruggar [~shruggar@193.164.118.24] has joined #go-nuts 10:58 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit [Ping timeout: 265 seconds] 11:20 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has joined #go-nuts 11:21 -!- wrtp [~rog@92.16.121.89] has quit [Ping timeout: 264 seconds] 11:22 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 11:29 -!- Sacho [~sacho@213.91.244.15] has quit [Ping timeout: 265 seconds] 11:30 -!- tobiassjosten [~tobias@c-919ee253.04-114-73746f13.cust.bredbandsbolaget.se] has joined #go-nuts 11:33 -!- lmoura [~lauromour@200.184.118.130] has quit [Ping timeout: 258 seconds] 11:39 -!- lmoura [~lauromour@200.184.118.130] has joined #go-nuts 11:41 -!- jA_cOp [~yakobu@p20074-ipngn100105osakakita.osaka.ocn.ne.jp] has quit [Quit: Bye] 11:42 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 11:46 < tobiassjosten> I really can't seem to run two connections asynchronous for my proxy program. When I check for input from either of them it just blocks until something is received. 11:46 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 11:46 < tobiassjosten> Are there common pitfalls I could read up on? Or existing similar software I could read the source for? 11:49 < wrtp> tobiassjosten: similar to what? 11:49 < bartbes> don't you just need a select statement? 11:49 < tobiassjosten> wrtp: Something proxy-like. :) 11:50 < wrtp> sorry, i only just realised my network cable had been disconnected for a while... 11:50 < wrtp> what kind of proxy? 11:50 < wrtp> web proxy? 11:50 < tobiassjosten> bartbes: I have a select with "case data = <-server.in:", to read from the server connection and take action if there's any. Similar for the client connection. Is that what you mean? 11:51 < tobiassjosten> wrtp: Telnet proxy in my case. 11:51 < tobiassjosten> wrtp: But either is TCP so if you know a HTTP proxy I'd love to check it out to see how they've done. 11:51 < wrtp> telnet proxy is dead easy 11:52 < wrtp> i think i posted some code ages ago to go-nuts to something like that 11:52 < wrtp> hold on 11:52 < tobiassjosten> wrtp: You're about to become my hero of the day, methinks. :D 11:53 -!- jhawk28 [~jhawk28@72.40.31.201] has quit [Remote host closed the connection] 11:54 < bartbes> tobiassjosten: if you add a default case to a select statement it gets non-blocking 11:55 < wrtp> found it 11:56 < wrtp> http://paste.lisp.org/display/112740 11:57 < wrtp> tobiassjosten: ^^ 11:58 < tobiassjosten> wrtp: Wow. So the magic is io.Copy()? 11:59 < tobiassjosten> bartbes: I tried that but then it somehow always picked the default case, resulting in it eating up my one CPU and not picking the connection reading cases. 12:00 < wrtp> tobiassjosten: io.Copy just reads data from a Reader and writes it to a Writer. i.e. it forwards the data. 12:00 < wrtp> tobiassjosten: there's no magic about it - it's about 3 or 4 lines if you wanted to write it yourself 12:01 < tobiassjosten> wrtp: Sweet! It's implemented in Go, right? Then I could copy it and add the parsing I want to do as well. 12:01 < wrtp> tobiassjosten: sure. 12:01 < tobiassjosten> wrtp: Actually, don't answer that. I'll go have a look myself. :) 12:01 < tobiassjosten> wrtp: Thanks! 12:01 < wrtp> np 12:06 -!- Damn3d [damn3d@bimbrownia.org] has joined #go-nuts 12:07 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 252 seconds] 12:10 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Quit: (◣_◢) BigBrowser is watching ⓎⓄⓊ] 12:12 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 12:14 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 246 seconds] 12:15 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 12:16 -!- tobik [~tobik@p54897092.dip.t-dialin.net] has joined #go-nuts 12:20 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts 12:35 -!- adu [~ajr@softbank220043138128.bbtec.net] has quit [Quit: adu] 12:49 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 13:00 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts 13:04 -!- sauerbraten [~sauerbrat@p508CF872.dip.t-dialin.net] has quit [Remote host closed the connection] 13:06 < araujo> []string(type) 13:06 < araujo> is that a valid cast? , where type is a valid value 13:06 < tobiassjosten> wrtp: Your example works great! Though now that I'm trying to create a self contained version of io.Copy(), to parse the data being sent back and forth, it wont work. http://pastebin.com/RrLiBSH7 - the fmt.Sprintf() aren't printing anything but it's otherwise working good. 13:07 < wrtp> tobiassjosten: Sprintf just returns a string with the text in it. i think you probably want fmt.Printf 13:07 < tobiassjosten> Ugh... 13:08 < tobiassjosten> You mean like in any other programming language? :P Thanks for catching that. 13:25 -!- adu [~ajr@softbank220043139062.bbtec.net] has joined #go-nuts 13:30 < nsf> araujo: yes, it should be 13:30 < nsf> type(value) is a typecast form 13:35 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 13:44 -!- Sacho [~sacho@95-42-81-244.btc-net.bg] has joined #go-nuts 13:46 < araujo> :) 13:48 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: Leaving] 13:54 -!- xuwen [~xuwen@adsl-75-61-119-20.dsl.pltn13.sbcglobal.net] has quit [Remote host closed the connection] 13:54 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 14:01 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 14:02 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 260 seconds] 14:05 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 14:07 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts 14:09 -!- wrtp_ [~rog@92.16.121.89] has joined #go-nuts 14:12 -!- wrtp [~rog@92.16.121.89] has quit [Ping timeout: 265 seconds] 14:14 -!- wrtp [~rog@92.16.121.89] has quit [Client Quit] 14:18 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 14:21 -!- wrtp [~rog@92.16.121.89] has quit [Client Quit] 14:30 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 14:31 -!- wrtp [~rog@92.16.121.89] has quit [Client Quit] 14:34 -!- Venom_X [~pjacobs@71.21.124.111] has joined #go-nuts 14:37 -!- skelterjohn [~jasmuth@wsip-98-175-243-116.sd.sd.cox.net] has joined #go-nuts 14:44 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has joined #go-nuts 14:46 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 14:47 -!- iant [~iant@nat/google/x-lfvjfgotempwhjvs] has quit [Ping timeout: 248 seconds] 14:48 -!- gid [~gid@220-253-151-50.VIC.netspace.net.au] has joined #go-nuts 14:53 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 265 seconds] 14:56 -!- gid [~gid@220-253-151-50.VIC.netspace.net.au] has quit [Quit: Leaving.] 14:58 -!- brrant [~brrant@97-118-212-99.hlrn.qwest.net] has joined #go-nuts 14:58 -!- brrant [~brrant@97-118-212-99.hlrn.qwest.net] has quit [Client Quit] 15:01 -!- skelterjohn [~jasmuth@wsip-98-175-243-116.sd.sd.cox.net] has quit [Quit: skelterjohn] 15:04 -!- serbaut [~joakims@88.80.182.68] has left #go-nuts [] 15:20 -!- Damn3d [damn3d@bimbrownia.org] has quit [Changing host] 15:20 -!- Damn3d [damn3d@unaffiliated/morpheus/x-0931003] has joined #go-nuts 15:23 -!- ronny [~quassel@p4FF1D749.dip.t-dialin.net] has joined #go-nuts 15:34 -!- jdp [~gu@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts 15:39 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 15:40 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has quit [Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.2/20100222071121]] 15:41 -!- welterde [~welterde@not.welterde.de] has quit [Read error: Operation timed out] 15:41 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has joined #go-nuts 15:41 -!- wrtp_ [~rog@92.16.121.89] has joined #go-nuts 15:42 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 15:45 -!- wrtp [~rog@92.16.121.89] has quit [Ping timeout: 265 seconds] 15:45 -!- wrtp [~rog@92.16.121.89] has quit [Remote host closed the connection] 15:45 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 15:47 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving] 15:48 -!- kanru [~kanru@118-168-236-243.dynamic.hinet.net] has joined #go-nuts 15:54 -!- xuwen [~xuwen@173-164-169-69-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 15:55 -!- welterde [~welterde@not.welterde.de] has joined #go-nuts 16:06 -!- wrtp_ [~rog@92.16.121.89] has joined #go-nuts 16:09 -!- Sacho [~sacho@95-42-81-244.btc-net.bg] has quit [Remote host closed the connection] 16:10 -!- wrtp [~rog@92.16.121.89] has quit [Ping timeout: 265 seconds] 16:10 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has quit [Read error: Connection reset by peer] 16:13 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping timeout: 260 seconds] 16:14 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined #go-nuts 16:16 -!- aho [~nya@fuld-4d00d7df.pool.mediaWays.net] has joined #go-nuts 16:18 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has joined #go-nuts 16:18 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts 16:18 -!- mode/#go-nuts [+v iant] by ChanServ 16:20 < bartbes> I'm not quite sure why you're voiced.. 16:20 < Ginto8> iant is always voiced 16:20 < bartbes> I know 16:20 < bartbes> but what's the use? 16:21 < Ginto8> iirc he can change the topic 16:21 <+iant> I suppose I could kick people off the channel if necessary 16:21 < bartbes> you can make chanserv do that for you 16:21 < bartbes> voiced people can't kick, can they? 16:21 < Ginto8> idk =/ 16:21 < bartbes> I thought you needed to be op 16:21 <+iant> I think I can make myself op, or something like that 16:22 <+iant> actually I'm not really sure 16:22 < bartbes> I think being voiced only helps in a muted room 16:22 < bartbes> because then you can talk 16:22 < bartbes> but otherwise I don't think it does anything 16:22 < exch> +v is for people who can't afford an expensive sports car in their 50s 16:22 < Ginto8> lol 16:23 < araujo> +v is like a way to indicate channel admins or people with any official involvement with the project too 16:24 < bartbes> yes, but in a purely symbolic way 16:30 -!- adu [~ajr@softbank220043139062.bbtec.net] has quit [Quit: adu] 16:32 -!- shruggar [~shruggar@193.164.118.24] has quit [Remote host closed the connection] 16:33 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has joined #go-nuts 16:34 -!- kanru [~kanru@118-168-236-243.dynamic.hinet.net] has quit [Quit: WeeChat 0.3.2] 16:39 -!- tobik [~tobik@p54897092.dip.t-dialin.net] has quit [Ping timeout: 265 seconds] 16:44 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit: Leaving] 16:44 -!- JayWork [~jwilliams@wsip-98-174-186-109.ok.ok.cox.net] has quit [Remote host closed the connection] 16:50 -!- Sacho [~sacho@79-100-169-151.btc-net.bg] has joined #go-nuts 16:51 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 16:55 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 17:01 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit [Quit: Ex-Chat] 17:09 -!- wrtp [~rog@92.16.121.89] has quit [Read error: Connection reset by peer] 17:15 -!- tobiassjosten [~tobias@c-919ee253.04-114-73746f13.cust.bredbandsbolaget.se] has quit [Ping timeout: 260 seconds] 17:18 -!- xuwen [~xuwen@173-164-169-69-SFBA.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 17:21 -!- xuwen [~xuwen@173-164-169-69-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 17:34 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 17:36 -!- xuwen [~xuwen@173-164-169-69-SFBA.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 17:44 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has quit [Remote host closed the connection] 17:46 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 17:56 -!- wrtp [~rog@92.16.121.89] has quit [Quit: wrtp] 17:59 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts 18:00 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Remote host closed the connection] 18:03 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 18:03 -!- wrtp [~rog@92.16.121.89] has quit [Client Quit] 18:04 -!- gnuvince [~vince@64.235.207.135] has quit [Quit: What the fruit is goin' on here!?] 18:06 -!- xuwen [~xuwen@173-164-169-69-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 18:06 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 18:07 -!- Adys [~Adys@unaffiliated/adys] has quit [Excess Flood] 18:08 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 18:17 -!- xuwen [~xuwen@173-164-169-69-SFBA.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 18:25 -!- Guest45276 [~quassel@p4FF1D749.dip.t-dialin.net] has quit [Remote host closed the connection] 18:29 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode] 18:31 -!- ZHOU_Xiaobo [~Xiaobo@123.114.168.223] has joined #go-nuts 18:31 -!- ZHOU_Xiaobo [~Xiaobo@123.114.168.223] has quit [Client Quit] 18:32 -!- Xiaobo [~Xiaobo@123.114.168.223] has joined #go-nuts 18:32 -!- ZHOU_Xiaobo [~Xiaobo@123.114.168.223] has joined #go-nuts 18:33 -!- Xiaobo [~Xiaobo@123.114.168.223] has quit [Client Quit] 18:45 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has quit [Ping timeout: 265 seconds] 18:45 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has joined #go-nuts 18:49 -!- jhawk28 [~jhawk28@72.40.31.201] has joined #go-nuts 18:52 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 18:53 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 18:55 -!- ZHOU_Xiaobo [~Xiaobo@123.114.168.223] has quit [Quit: Leaving] 18:56 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving] 19:08 -!- gnuvince [~vince@70.35.168.106] has joined #go-nuts 19:14 -!- gnuvince [~vince@70.35.168.106] has quit [Ping timeout: 260 seconds] 19:15 -!- gnuvince [~vince@220.40-ppp.3menatwork.com] has joined #go-nuts 19:16 -!- ZincSaucier [~quassel@c-76-126-34-217.hsd1.ca.comcast.net] has joined #go-nuts 19:31 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has joined #go-nuts 19:32 -!- jhawk28 [~jhawk28@72.40.31.201] has quit [Ping timeout: 240 seconds] 19:33 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 19:36 -!- jhawk28 [~jhawk28@72.40.31.201] has joined #go-nuts 19:38 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit [Ping timeout: 265 seconds] 19:41 -!- tvw [~tv@e176004140.adsl.alicedsl.de] has joined #go-nuts 19:42 < plexdev> http://is.gd/dDII4 by [Fazlul Shahriar] in 2 subdirs of go/src/pkg/ -- bytes: port IndexFunc and LastIndexFunc from strings package 19:43 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 19:58 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined #go-nuts 20:00 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has joined #go-nuts 20:00 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 20:00 < fenicks> hello 20:01 < exch> hello 20:02 < bartbes> hello 20:03 < Ginto8> hello 20:03 < Ginto8> now that we've got that out of the way, who here likes pancakes? 20:03 < exch> I just ate some 20:04 < Ginto8> awesome! 20:04 < bartbes> I just ate some as well! 20:06 < Ginto8> pancakes are tasy 20:06 < Ginto8> tasty* 20:10 -!- kL^^ [~kl@96.95.187.81.in-addr.arpa] has joined #go-nuts 20:11 * exch begins work on libVLC bindings 20:14 -!- kL^^ [~kl@96.95.187.81.in-addr.arpa] has quit [Client Quit] 20:18 < jhawk28> making pancakes tomorrow 20:18 < jhawk28> need to get syrup first 20:21 -!- prip [~foo@host163-125-dynamic.36-79-r.retail.telecomitalia.it] has quit [Ping timeout: 240 seconds] 20:24 < jessta> Ginto8: I was refering to: import . 20:25 < Ginto8> jessta: wut? 20:25 < jessta> 10-07-23 15:47 < jessta> Ginto8: stop telling people that :P 20:25 < Ginto8> oh yeah 20:25 < Ginto8> well it isn't in the docs 20:26 < Ginto8> or not easily visible 20:26 < jessta> yeah, because nobody should use it 20:26 < Ginto8> hm I guess so =/ 20:26 < exch> there's some issues with dot import 20:26 < exch> http://code.google.com/p/go/issues/detail?id=839&colspec=ID%20Priority%20Status%20Owner%20Reporter%20Summary 20:26 < jessta> the less people that know about it the better 20:27 < Ginto8> well I have 2 very closely related packages (but they shouldn't be the same package for reasons that are a little complicated), and I use import . for that because it uses so many of the types and functions that it's much easier to treat them as its own =P 20:29 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode] 20:29 < Ginto8> exch: hm ok 20:35 < MaybeSo> Ginto8: it's interesting to see this huge thread re new() and make() on golang-nuts... 20:35 -!- yesudeep [~user@unaffiliated/yesudeep] has joined #go-nuts 20:36 < exch> MaybeSo: you have a link handy? 20:36 -!- prip [~foo@host97-130-dynamic.36-79-r.retail.telecomitalia.it] has joined #go-nuts 20:36 < MaybeSo> http://groups.google.com/group/golang-nuts/browse_thread/thread/efddd917fc9ea9b9 20:36 < exch> thanks 20:37 < MaybeSo> it appears that some folks feel strongly about the topic 20:41 < jessta> it doesn't take much to realise you can't combined new() and make() 20:41 -!- tamentis [~tamentis@ffgd.org] has joined #go-nuts 20:43 < bartbes> ugh 20:43 < bartbes> just accept that make() and new() exist 20:43 < bartbes> get over it 20:44 < Namegduf> make() is just the equivalent of NewType() for builtins. 20:45 < bartbes> am I supposed to be familiar with NewType? 20:45 < exch> people fear change 20:45 < bartbes> if languages weren't different, then why bother switching 20:45 < bartbes> I learned forth, not to use it, but to be able to think in stacks 20:45 < Namegduf> bartbes: I'm referring to the idiom of including a constuctor function in packages providing types which require it 20:45 < bartbes> and for the lulz obviously 20:46 < Namegduf> *constructor 20:46 < bartbes> oh right 20:46 < bartbes> so NewMap for example 20:46 < Namegduf> Yeah. 20:46 < bartbes> well no 20:46 < bartbes> because those mostly return pointers 20:46 < bartbes> as most functions named new* do 20:46 < Namegduf> Similar function, though. 20:46 < bartbes> they do initialize, true 20:47 < bartbes> but yeah,the pointer difference 21:04 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 21:07 -!- Hodapp [~hodapp@pohl.ececs.uc.edu] has joined #go-nuts 21:15 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 21:31 -!- tashbarg [~tashbarg@dslb-188-099-239-073.pools.arcor-ip.net] has joined #go-nuts 21:33 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 21:34 -!- raylu [raylu@c-98-234-85-38.hsd1.ca.comcast.net] has joined #go-nuts 21:35 -!- jdp [~gu@24.238.32.162.res-cmts.segr.ptd.net] has quit [Ping timeout: 240 seconds] 21:43 -!- tashbarg [~tashbarg@dslb-188-099-239-073.pools.arcor-ip.net] has left #go-nuts [] 21:45 -!- jdp [~gu@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts 21:58 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode] 22:01 -!- Hodapp [~hodapp@pohl.ececs.uc.edu] has quit [Remote host closed the connection] 22:01 -!- prip [~foo@host97-130-dynamic.36-79-r.retail.telecomitalia.it] has quit [Remote host closed the connection] 22:02 -!- prip [~foo@host97-130-dynamic.36-79-r.retail.telecomitalia.it] has joined #go-nuts 22:17 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has quit [Ping timeout: 265 seconds] 22:17 -!- wrtp [~rog@92.16.121.89] has quit [Ping timeout: 276 seconds] 22:30 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection] 22:33 -!- ZincSaucier [~quassel@c-76-126-34-217.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 22:38 -!- jdp [~gu@24.238.32.162.res-cmts.segr.ptd.net] has quit [] 22:39 < raylu> hey. i checked out the go code using mercurial and ran src/all.bash: 22:39 < raylu> Make.deps:1: *** target pattern contains no `%'. Stop. 22:40 < bartbes> I think.. you need to run 'make all' 22:40 < bartbes> but I could be wrong 22:40 < bartbes> :P 22:40 < exch> all.bash generally works for me 22:41 < raylu> tre:~/go/src$ make 22:41 < raylu> make: *** No targets specified and no makefile found. Stop. 22:41 < bartbes> ugh I forgot 22:41 < raylu> tre:~/go/src$ make -f Make.amd64 22:41 < raylu> make: *** No targets. Stop. 22:41 < araujo> all.bash that is it 22:41 -!- ender2070 [~ender2070@bas22-toronto12-2925103372.dsl.bell.ca] has joined #go-nuts 22:42 < bartbes> thinking is too hard 22:42 -!- lmoura [~lauromour@200.184.118.130] has quit [Remote host closed the connection] 22:42 < bartbes> don't believe a word I say, as a matter of fact, don't believe this statement 22:42 < raylu> right, so that gives me: 22:42 < exch> I think it helps if you cd into the src directory first and then run ./all.bash 22:42 < MaybeSo> you set GOOS, GOARCH, and GOROOT? 22:42 < raylu> exch: i did 22:42 < MaybeSo> and exported them? 22:42 < exch> ah ok 22:43 < raylu> oh... you actually have to set those... 22:43 < exch> yes 22:43 < raylu> i thought that was for convenience. heh 22:43 < MaybeSo> no 22:43 < raylu> it would be nice if i could perhaps see where that error was cooming from 22:43 < bartbes> heh, I remember now 22:43 < araujo> reading the installa instructions might also help :P 22:43 < bartbes> I made a bash alias to do that 22:43 < bartbes> wee 22:43 < MaybeSo> araujo: indeed 22:44 < raylu> araujo: again, i thought those were just for convenience. i certainly read that 22:44 < araujo> mmm ok 22:44 < exch> those env vars are also used in the package/app makefiles, so it's useful to add them to .bashrc permanently 22:45 < raylu> will it work in zsh? also, it still doesn't work 22:45 < bartbes> you're running bash scripts in zsh? 22:45 < araujo> error? 22:45 < bartbes> nice 22:45 < raylu> https://pastee.org/rfex3 22:45 < araujo> :P 22:45 < raylu> bartbes: the first line sets the env to bash 22:45 -!- aho [~nya@fuld-4d00d7df.pool.mediaWays.net] has quit [Read error: Connection reset by peer] 22:45 < bartbes> yes, but are the vars set in bash' env? 22:46 < raylu> bartbes: yes, see the paste 22:46 < raylu> i even temporarily switched to bash 22:49 < MaybeSo> run all.bash w/ 'bash -x all.bash' and see what it is executing when it spits out that fatal error. 22:49 < bartbes> wait 22:49 -!- yesudeep [~user@unaffiliated/yesudeep] has quit [Remote host closed the connection] 22:49 < bartbes> isn't there this list that tells you what commits build on what platforms? 22:50 < bartbes> oh 22:50 < bartbes> lin amd64 built the last few builds 22:50 < raylu> it looks like it's running ~/bin/gomake 22:50 < MaybeSo> I'd assume linux amd64 is pretty well supported 22:50 < raylu> which uses #!/bin/sh... 22:51 < exch> build works fine here on 64bit arch linux 22:51 < MaybeSo> is the call to gomake feeding in an argument? 22:51 < MaybeSo> e.g., gomake foobar ? 22:51 < raylu> i think the problem is that it uses sh, not bash 22:52 < raylu> why is it even putting stuff in my ~/bin? 22:52 < MaybeSo> shouldn't matter it's just turning around and exec'ing make -- unless maybe something odd is happening w/ his eenv 22:52 < MaybeSo> s/ee/e/ 22:53 < MaybeSo> raylu: I imagine your ~/bin/ is the default GOBIN, the place it sticks the compiler and tools 22:53 < MaybeSo> and since you're on linux I assume that your make(1) is GNU Make 22:53 < raylu> hm, well that wasn't the problem (sh -> bash) 22:53 < bartbes> isn't GOBIN $GOROOT/bin by default? 22:53 < raylu> + /home/raylu/bin/gomake clean 22:53 < raylu> Make.deps:1: *** target pattern contains no `%'. Stop. 22:54 < MaybeSo> bartbes: I don't think so 22:54 < raylu> bartbes: clean.bash:21:GOBIN="${GOBIN:-$HOME/bin}" 22:54 < bartbes> I'm pretty sure my binaries are installed in goroot... 22:54 < MaybeSo> oh interesting. coul you try just running "make clean" from $GOROOT/src/pkg/ ? 22:55 < raylu> MaybeSo: ah ha. same error 22:55 < MaybeSo> good, at least now it is consistent 22:55 * MaybeSo tries this on his 22:55 < MaybeSo> what's the first line of Make.deps in that dir? 22:56 < raylu> archive/tar.install: 1:2:bytes.install 2:3:io.install 3:4:os.install 4:5:strconv.install 5:8:io.install 6:9:os.install 7:10:strconv.install 22:57 < MaybeSo> huh 22:57 < MaybeSo> not the same as mine 22:57 < MaybeSo> mine don't have the N:N: prefixes to the foo.install lies 22:57 < MaybeSo> lines 22:57 < MaybeSo> e.g., mine just says '...install: bytes.install io.install' 22:58 * MaybeSo looks at deps.bash 23:00 -!- sauerbraten [~sauerbrat@p508CF872.dip.t-dialin.net] has joined #go-nuts 23:00 -!- sauerbraten [~sauerbrat@p508CF872.dip.t-dialin.net] has quit [Client Quit] 23:01 < raylu> so i've used svn and git, but i'm not familiar with mercurial. what's the difference between 'hg pull' and 'hg update'? 23:01 < bartbes> hg pull gets the stuff from the server 23:01 < bartbes> hg update brings your local copy up to date 23:02 -!- sauerbraten [~sauerbrat@p508CF872.dip.t-dialin.net] has joined #go-nuts 23:02 -!- sauerbraten [~sauerbrat@p508CF872.dip.t-dialin.net] has quit [Client Quit] 23:02 -!- sauerbraten [~sauerbrat@p508CF872.dip.t-dialin.net] has joined #go-nuts 23:03 < raylu> perhaps a specificoh... 23:03 < raylu> i know what's wrong 23:03 -!- sauerbraten [~sauerbrat@p508CF872.dip.t-dialin.net] has quit [Client Quit] 23:03 < raylu> i have GREP_OPTIONS set and src/pkg/deps.bash doesn't clear those 23:04 < exch> might be worth a mention on the issue tracker if that's the case 23:04 < exch> There's bound to be more people who run into that 23:05 < raylu> https://www.pastee.org/uf8et fixes it, btw 23:06 < MaybeSo> ah 23:06 -!- Venom_X_ [~pjacobs@71.21.124.111] has joined #go-nuts 23:06 < MaybeSo> I was about to ask if you had an override of egrep in place 23:06 < MaybeSo> you should send a note about that 23:07 < raylu> yeah, filing an issue now 23:08 -!- Venom_X [~pjacobs@71.21.124.111] has quit [Ping timeout: 240 seconds] 23:10 < MaybeSo> raylu: GREP_COLORS ?!?! you kids and your new fangled computers! 23:10 < MaybeSo> :P 23:10 < raylu> =\ 23:10 < raylu> i grep a lot. 23:13 < raylu> ok, next bit of fun. https://pastee.org/z24du 23:13 -!- Venom_X_ [~pjacobs@71.21.124.111] has joined #go-nuts 23:14 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 23:15 < MaybeSo> from that archive/tar/ dir, does this work: 23:15 < MaybeSo> 6g -o _gotest_.6 common.go reader.go writer.go reader_test.go writer_test.go 23:15 < MaybeSo> ? 23:16 -!- Venom_X [~pjacobs@71.21.124.111] has quit [Ping timeout: 240 seconds] 23:16 < raylu> MaybeSo: yep. 0 exit code, at least 23:17 -!- Venom_X [~pjacobs@71.21.124.111] has quit [Client Quit] 23:18 < MaybeSo> and: make _test/archive/tar.a 23:18 < MaybeSo> ? 23:18 < raylu> well... i think i've fixed it 23:19 < raylu> i just added those two GREP_OPTIONS/COLORS lines to every script that used grep 23:19 < MaybeSo> heh, I should stay out of it, you've obviously got it all well in hand. :D 23:19 < raylu> now stuff is running, but it's definitely gotten farther. i saw something called 'hgpatch' scroll by 23:19 < MaybeSo> I wonder why a make script is using grep 23:19 < raylu> should i be submitting patches using that? 23:19 < MaybeSo> no idea 23:20 < raylu> like before, i think the make script depended on something generated by another script that used grep 23:20 < raylu> 3 known bugs; 0 unexpected bugs 23:20 < raylu> wooo 23:20 < MaybeSo> yeah, I suppose 23:21 < raylu> i think it's just for applying patches... anyway, updating my issue 23:22 < bartbes> I think hgpatch might be able to make a patchset out of a series of commits 23:23 < raylu> cmd/hgpatch/doc.go doesn't mention that functionality 23:24 < raylu> i also noticed one of the recent commits was about vim syntax highlighting. any idea how i can get that installed? 23:24 < bartbes> it's in misc/vim 23:24 < bartbes> ehm 23:25 < bartbes> you needed to copy the two files.. 23:25 < bartbes> damn.. 23:25 < bartbes> is my comp still on? 23:25 < bartbes> it doesn't look that way 23:25 < bartbes> sorry 23:26 < raylu> ah ha. thanks 23:26 < bartbes> though I might remember if you tell me what files are in that dir 23:26 < bartbes> there are 2, right? 23:27 < raylu> ftdetect and syntax/go.vim 23:28 < bartbes> right 23:28 < bartbes> copy ftdetect to ~/.vim/ftdetect/go.vim 23:28 < bartbes> (or linking might be better) 23:28 < raylu> er, there's a readme.txt there too 23:28 < bartbes> heh 23:28 < raylu> and yeah, it mentions linking :P 23:28 < bartbes> read that one 23:28 < bartbes> :P 23:31 -!- awidegreen [~quassel@62.176.237.78] has quit [Read error: Connection reset by peer] 23:35 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Ping timeout: 246 seconds] 23:37 -!- photron [~photron@port-92-201-38-93.dynamic.qsc.de] has quit [Ping timeout: 240 seconds] 23:52 -!- cw [~cw@parsec.stupidest.org] has joined #go-nuts 23:52 < cw> iant: for processing 10s of MBs of bytes -> strings & pulling them apart i see gccgo quite a bit faster than 6g 23:52 < cw> which is nice ... most other things i saw as slower 23:55 < cw> iant: actually ... i take that back ... a week or so back it was slower ... not it seems faster mostly everywhere i don't trash the cache badly (lack of gc at a guess) 23:57 < cw> something odd ... the amount of memory i see 'leaking' (growing) seems less now 23:57 -!- Adys [~Adys@unaffiliated/adys] has quit [Read error: Connection reset by peer] 23:58 < Ginto8> cw: probably reuses it more intelligently now --- Log closed Sat Jul 24 00:00:05 2010