--- Log opened Sat Mar 20 00:00:29 2010 00:00 -!- homiziado [~ernestofr@62.169.79.211.rev.optimus.pt] has quit [Quit: homiziado] 00:05 < plexdev> http://is.gd/aPqzl by [Robert Griesemer] in 2 subdirs of go/ -- godoc: proper file path conversion for remote search 00:08 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has joined #go-nuts 00:08 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit [Quit: carllerche] 00:09 < napsy> Hello. I tried to declare a Node structure but 6g gives me "tree.go:6: invalid recursive type Node". Is there a way around this? 00:09 <+iant> don't make the type recursive? 00:09 < napsy> how do I then define left and right nodes? 00:11 <+iant> type Node struct { left *Node; right *Node } 00:11 < napsy> so Node has to be a pointer 00:11 <+iant> it doesn't make sense for a type to include itself 00:11 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined #go-nuts 00:11 <+iant> that would never stop 00:12 < napsy> hm you're right 00:13 < anticw> iant: you can put a klein bottle inside a klein bottle 00:14 <+iant> aren't we all inside a klein bottle anyhow? 00:15 < anticw> i guess at some level we're inside all of them 00:15 -!- wuehlmaus [~wuehlmaus@p4FCC7ECB.dip.t-dialin.net] has quit [Ping timeout: 260 seconds] 00:16 -!- ikaros [~ikaros@f050225172.adsl.alicedsl.de] has quit [Quit: Leave the magic to Houdini] 00:17 -!- wuehlmaus [~wuehlmaus@p4FCC5951.dip.t-dialin.net] has joined #go-nuts 00:18 -!- vomjom [~vomjom@99-157-248-71.lightspeed.stlsmo.sbcglobal.net] has quit [Quit: Leaving] 00:24 -!- vomjom [~vomjom@99-157-248-71.lightspeed.stlsmo.sbcglobal.net] has joined #go-nuts 00:24 -!- gnuvince [~vince@72.0.215.215] has joined #go-nuts 00:26 < napsy> where can I paste my source? 00:27 < napsy> gopaste isn't available anymore 00:27 < napsy> http://pastebin.com/8YbdPwH1 00:27 < napsy> why doesn't this work 00:28 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 00:29 -!- belkiss [~kvirc@12.132.45.103] has quit [Quit: KVIrc 4.0.0 Insomnia http://www.kvirc.net/] 00:36 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has joined #go-nuts 00:38 < Bombe> napsy, because Create does not return a *Node. 00:39 -!- willwh [~quassel@unaffiliated/willskills] has quit [Remote host closed the connection] 00:40 -!- willwh [~quassel@S010600c09f8af75a.gv.shawcable.net] has joined #go-nuts 00:40 -!- willwh [~quassel@S010600c09f8af75a.gv.shawcable.net] has quit [Changing host] 00:40 -!- willwh [~quassel@unaffiliated/willskills] has joined #go-nuts 00:42 < napsy> http://pastebin.com/rTfDDgMz 00:42 < napsy> so far I've come to this solution 00:43 < napsy> but I think it isn't go-ish enough 00:44 < skelterjohn> Node{"a",Node{"b",null,null},Node{"c", null, Node{"d",null,null}}} 00:46 < napsy> my structure requires pointers 00:47 < skelterjohn> stick some ampersands 00:48 < napsy> ok it works now 00:51 < plexdev> http://is.gd/aPtsI by [Andrew Gerrand] in 2 subdirs of go/ -- website: add Go Blog widget to frontpage, 00:51 < skelterjohn> sweet 00:51 < plexdev> http://is.gd/aPtsP by [Russ Cox] in 2 subdirs of go/ -- godoc: revert change 5089, per gri's instructions 01:02 -!- wuehlmaus [~wuehlmaus@p4FCC5951.dip.t-dialin.net] has quit [Ping timeout: 240 seconds] 01:03 -!- iant [~iant@67.218.109.59] has quit [Ping timeout: 246 seconds] 01:05 -!- wuehlmaus [~wuehlmaus@p4FCC5951.dip.t-dialin.net] has joined #go-nuts 01:08 -!- nf [~nf@124-171-31-181.dyn.iinet.net.au] has quit [Remote host closed the connection] 01:09 -!- nf [~nf@124-171-4-215.dyn.iinet.net.au] has joined #go-nuts 01:22 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 01:22 -!- aho [~nya@f051090179.adsl.alicedsl.de] has joined #go-nuts 01:32 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: ( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )] 01:35 -!- wuehlmaus [~wuehlmaus@p4FCC5951.dip.t-dialin.net] has quit [Ping timeout: 252 seconds] 01:39 -!- wuehlmaus [~wuehlmaus@p4FCC5951.dip.t-dialin.net] has joined #go-nuts 01:41 -!- fwiffo [~fwiffo@189.115.33.111] has joined #go-nuts 01:41 -!- fwiffo [~fwiffo@189.115.33.111] has quit [Changing host] 01:41 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts 01:44 -!- ashaw [~alexis@58.108.161.163] has joined #go-nuts 01:44 -!- brx [~brx@p5796FC75.dip.t-dialin.net] has joined #go-nuts 02:02 -!- dilenger [~dilenger@124-171-12-229.dyn.iinet.net.au] has joined #go-nuts 02:15 -!- nettok [~netto@200.119.159.2] has joined #go-nuts 02:16 -!- brx_ [~brx@p5796F8B2.dip.t-dialin.net] has joined #go-nuts 02:20 -!- brx [~brx@p5796FC75.dip.t-dialin.net] has quit [Ping timeout: 276 seconds] 02:20 -!- g0bl1n [~anonymous@a213-22-18-86.cpe.netcabo.pt] has quit [Quit: g0bl1n] 02:21 -!- skj [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has joined #go-nuts 02:22 -!- zampf [~zampf@dsl-63-249-118-170.dhcp.cruzio.com] has joined #go-nuts 02:26 -!- zampf [~zampf@dsl-63-249-118-170.dhcp.cruzio.com] has quit [Client Quit] 02:26 -!- zampf [~zampf@dsl-63-249-118-170.dhcp.cruzio.com] has joined #go-nuts 02:27 -!- zampf [~zampf@dsl-63-249-118-170.dhcp.cruzio.com] has left #go-nuts [] 02:28 -!- zampf [~zampf@dsl-63-249-118-170.dhcp.cruzio.com] has joined #go-nuts 02:29 -!- zampf_ [~3ff976aa@gateway/web/freenode/x-rcyspxlprryamjps] has joined #go-nuts 02:30 -!- zampf [~zampf@dsl-63-249-118-170.dhcp.cruzio.com] has quit [Client Quit] 02:32 -!- mattikus [~mattikus@ip68-227-143-68.br.br.cox.net] has joined #go-nuts 02:37 -!- nettok_ [~netto@200.119.159.2] has joined #go-nuts 02:37 -!- zampf_ [~3ff976aa@gateway/web/freenode/x-rcyspxlprryamjps] has quit [Quit: Page closed] 02:40 -!- comedaybreak [~comedaybr@dsl-63-249-118-170.dhcp.cruzio.com] has joined #go-nuts 02:41 -!- nettok [~netto@200.119.159.2] has quit [Ping timeout: 240 seconds] 02:41 < comedaybreak> hi guys 02:46 -!- nettok_ [~netto@200.119.159.2] has quit [Ping timeout: 246 seconds] 02:46 < comedaybreak> ... i've got a go question. does anyone know how to use strings.Join with a list.List (or some other dynamically-sized collection)? 02:47 < anticw> comedaybreak: you can get access to the underlying slice 02:50 < comedaybreak> how would i do that? the implementation of List isn't based on an array and i thought slices only work on arrays... 02:53 -!- Kylarr [~Kyle@122-148-63-115.static.dsl.dodo.com.au] has quit [] 02:53 -!- brx_ [~brx@p5796F8B2.dip.t-dialin.net] has quit [Read error: Operation timed out] 02:53 < anticw> comedaybreak: you're right, it's a doubly linked-list, so no it won't work 02:53 < anticw> but how large is this ... i mean, if you're going to use it for join you could make a copy 02:54 < anticw> mythang := make([]string, myList.Len()) 02:54 < anticw> for e := range myList.Iter() { myList[i] = e.(myType) ; i"" } 02:54 < anticw> or whatever 02:55 < comedaybreak> hmm yeah that's what i was afraid of 02:55 < anticw> afraid? 02:55 < anticw> how large is it? 02:56 < anticw> heh, i typoed something terrible above sorry 02:57 < comedaybreak> it's just awkward. i'll implement my own ListJoin function that dynamically casts list elements to string, copies them into an array, then passes it to Join? 02:58 < comedaybreak> all i want is a dynamically sized array. like map[] but ordered :( 02:58 < anticw> container/vector 02:59 < anticw> there is even string vector ... which you can get at the underlying slice of 02:59 < anticw> and use for join 03:00 < comedaybreak> g-g-g-got it 03:06 -!- nettok_ [~netto@200.119.159.2] has joined #go-nuts 03:11 -!- nettok__ [~netto@200.119.159.2] has joined #go-nuts 03:11 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has quit [Ping timeout: 265 seconds] 03:11 -!- nettok__ [~netto@200.119.159.2] has quit [Client Quit] 03:12 < comedaybreak> sweet that totally worked. thanks anticw 03:14 < anticw> btw i tried using a list and making a temp slice, it's fairly fast 03:15 -!- nettok_ [~netto@200.119.159.2] has quit [Ping timeout: 264 seconds] 03:18 < comedaybreak> ok one more. how can i check whether a map contains a certain key? 03:20 < comedaybreak> just with an exception? 03:20 < anticw> if value, ok := someThing[key] ; ok { // we have value } 03:23 < comedaybreak> sweet, so i can use ; like the C comma operator. thanks again 03:23 -!- tor5 [~tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit [Quit: tor5] 03:23 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]] 03:23 < anticw> no, it's not really the same 03:25 < comedaybreak> oh got it. it's more like init ; cond in a for construct 03:26 < anticw> yes 03:26 < anticw> so value, boolean := map[key] 03:26 < anticw> is a lookup that won't panic if it doesn't match 03:26 < anticw> so you can do things like _, gotIt = someMap[k] 03:27 < anticw> or if non-existance is equiv to the null-value for the type you can also do: 03:27 < anticw> value, _ := someMap[k] 03:27 < anticw> // use value 03:27 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 03:27 -!- mode/#go-nuts [+v iant] by ChanServ 03:27 < comedaybreak> i see 03:29 -!- vomjom [~vomjom@99-157-248-71.lightspeed.stlsmo.sbcglobal.net] has quit [Remote host closed the connection] 03:31 < anticw> comedaybreak: so, fwiw, using list.Iter() ... to make slice i can do 660,000 strings/s ... using .Front for { .Next } about 1M/s 03:31 < anticw> this is on an old slow CPU 03:32 < comedaybreak> hahaha actually runtime performance isn't important to me yet. i just want to write concise code and work with the language rather than work around it 03:34 < anticw> well, it's still fairly concise 03:34 < anticw> the loops is only three lines incl. the closing brace 03:37 < comedaybreak> i dunno. if i need to write a loop just to call Join, why bother calling Join? 03:37 -!- skj [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has quit [Ping timeout: 248 seconds] 03:42 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 246 seconds] 03:44 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 03:46 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Max SendQ exceeded] 03:47 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 03:55 -!- souffledev [~soufflede@110-174-144-249.static.tpgi.com.au] has joined #go-nuts 03:57 -!- rhelmer [~rhelmer@adsl-69-107-95-216.dsl.pltn13.pacbell.net] has quit [Quit: rhelmer] 03:58 -!- nf [~nf@124-171-4-215.dyn.iinet.net.au] has quit [Read error: Network is unreachable] 03:58 -!- nf [~nf@124-171-5-13.dyn.iinet.net.au] has joined #go-nuts 03:58 -!- rhelmer [~rhelmer@adsl-69-107-95-216.dsl.pltn13.pacbell.net] has joined #go-nuts 04:03 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has quit [Quit: warthurton] 04:05 -!- warthurton [~warthurto@cpe-67-246-229-53.rochester.res.rr.com] has joined #go-nuts 04:05 -!- warthurton [~warthurto@cpe-67-246-229-53.rochester.res.rr.com] has quit [Changing host] 04:05 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has joined #go-nuts 04:08 -!- rhelmer [~rhelmer@adsl-69-107-95-216.dsl.pltn13.pacbell.net] has quit [Quit: rhelmer] 04:10 -!- yatoo [~marcus@host86-156-158-64.range86-156.btcentralplus.com] has quit [Ping timeout: 246 seconds] 04:25 < anticw> comedaybreak: for join you probably wouldn't, but for something complex it might make sense 04:26 -!- comedaybreak [~comedaybr@dsl-63-249-118-170.dhcp.cruzio.com] has left #go-nuts [] 04:27 -!- coder9 [~chatzilla@cpe-98-155-92-67.san.res.rr.com] has joined #go-nuts 04:33 -!- no_mind [~orion@122.163.245.72] has quit [Ping timeout: 248 seconds] 04:34 -!- vomjom [~vomjom@99-157-248-71.lightspeed.stlsmo.sbcglobal.net] has joined #go-nuts 04:42 < anticw> iant: awake? 04:45 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 260 seconds] 04:45 -!- no_mind [~orion@122.162.146.245] has joined #go-nuts 04:46 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 04:50 -!- nettok [~netto@200.119.159.2] has joined #go-nuts 04:55 -!- nettok_ [~netto@200.119.159.2] has joined #go-nuts 04:56 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 04:58 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has joined #go-nuts 04:59 -!- nettok [~netto@200.119.159.2] has quit [Ping timeout: 248 seconds] 05:09 -!- nettok__ [~netto@200.119.159.2] has joined #go-nuts 05:12 -!- nettok_ [~netto@200.119.159.2] has quit [Ping timeout: 240 seconds] 05:15 -!- nettok_ [~netto@200.119.159.2] has joined #go-nuts 05:15 -!- illya77 [~illya77@249-108-95-178.pool.ukrtel.net] has joined #go-nuts 05:17 -!- nf [~nf@124-171-5-13.dyn.iinet.net.au] has quit [Remote host closed the connection] 05:17 -!- nf [~nf@124-171-2-62.dyn.iinet.net.au] has joined #go-nuts 05:18 -!- nettok__ [~netto@200.119.159.2] has quit [Ping timeout: 276 seconds] 05:21 -!- michael| [~maikeru@unaffiliated/maikeru/x-7708887] has quit [Ping timeout: 265 seconds] 05:29 -!- nettok__ [~netto@200.119.159.2] has joined #go-nuts 05:33 -!- nettok_ [~netto@200.119.159.2] has quit [Ping timeout: 276 seconds] 05:33 -!- michael| [~maikeru@unaffiliated/maikeru/x-7708887] has joined #go-nuts 05:56 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts 05:56 < plexdev> http://is.gd/aPL5C by [Robert Griesemer] in 2 subdirs of go/ -- godoc: line numbers for all remote search results 06:03 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 256 seconds] 06:34 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 06:38 -!- ashaw [~alexis@58.108.161.163] has quit [Remote host closed the connection] 06:39 -!- aho [~nya@f051090179.adsl.alicedsl.de] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 06:42 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-161-42.netcologne.de] has joined #go-nuts 06:52 -!- coder9 [~chatzilla@cpe-98-155-92-67.san.res.rr.com] has quit [Quit: ChatZilla 0.9.86 [Firefox 3.6/20100115132715]] 07:00 -!- nettok [~netto@200.119.159.2] has joined #go-nuts 07:03 -!- nettok__ [~netto@200.119.159.2] has quit [Ping timeout: 260 seconds] 07:11 -!- cyonyx [~chatzilla@c-76-126-250-10.hsd1.ca.comcast.net] has joined #go-nuts 07:12 -!- illya77 [~illya77@249-108-95-178.pool.ukrtel.net] has quit [Read error: Connection reset by peer] 07:18 -!- nettok [~netto@200.119.159.2] has quit [Quit: Ex-Chat] 07:48 -!- akrill [~akrill@dynamic-216-231-57-80.sea0.krillr.com] has joined #go-nuts 07:48 < akrill> i love go and hate go at the same time. who else here feels the same way? 07:49 < exch> I mostly just love it 07:49 < anticw> im not feeling much hate 07:50 < exch> the occasional feeling of 'mm I wish it could do X or Y', but that's about it 07:50 < akrill> hmm. must be because i just started playing with it 2 days ago 07:50 < akrill> :-p 07:50 < anticw> a lot of people feel frustration when it's not what they want it to be, or missing some idiom/feature found elsewhere 07:50 < anticw> but that's true of many things 07:51 < akrill> indeed. 07:51 < no_mind> I love go because it just knows what I want :) 07:52 < akrill> knows? or does? (meaning that some languages have hidden "features" that do things you dont necessarily want it to) 07:52 < exch> I didn't know clairvoyance was part of it's compiler design :p 07:52 < anticw> it takes a command line argument to enable that 07:52 < exch> nice :p 07:53 * exch makes a note to investigate if it can predict lottery numbers 07:53 < akrill> using your google search history and heuristic analysis of any code repos found on your system 07:53 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Ping timeout: 276 seconds] 07:53 < anticw> one of go's worst 'features' is it's apparent association with google 07:54 < anticw> it's a distraction at best 07:54 < akrill> google? whats that? ;-) 07:55 < anticw> http://www.bing.com/search?q=google 07:55 < akrill> nice. 07:55 < akrill> so, according to the docs, netchan doesnt support bidirectional communication at the moment? 07:55 < anticw> probably not 07:56 < anticw> netchannels are also fairly prototypish iirc 07:56 * akrill nods 07:56 < akrill> thats what i gathered 07:56 < akrill> pretty neat though 07:58 * akrill wonders if you can have multiple importers connected to a single exporter on a remote machine, and if that remote machine can pick and choose which connected importer to send an object to, or if its a simple FIFO queue style connection where objects go to the first requester on the line, etc etc 07:58 < anticw> isn't it basically gobs over sockets with some mux/demux? 07:59 < akrill> im honestly not sure. i havent looked at the implementation yet 07:59 * akrill has a feeling a channel can only be between two machines 08:00 * akrill wonders if netchan can be extended to support multiple endpoints and emulate the behavior he specified above... 08:00 < anticw> n-cast? 08:00 < akrill> hmm? 08:00 < anticw> what behavior do you want? 08:00 -!- sandtrout [~ben@d58-106-20-120.riv2.nsw.optusnet.com.au] has joined #go-nuts 08:01 < akrill> i'd like to be able to have a server which accepts incoming connections from other go apps, and can send arbitrary objects to and receive arbitrary objects from any connected app. 08:02 < akrill> usecase: queue-style load balancer. requests come in, queue, are pulled by the servers in the pool. 08:02 < anticw> netchan potentially could do that 08:03 -!- cyonyx [~chatzilla@c-76-126-250-10.hsd1.ca.comcast.net] has quit [Quit: ChatZilla 0.9.86 [Firefox 3.5.8/20100202165920]] 08:03 * akrill ponders 08:05 < akrill> (go code is incredibly concise... the entire netchan package is only a few hundred lines!) 08:05 < anticw> s/go/pike/ 08:06 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined #go-nuts 08:06 < akrill> pike? 08:06 < anticw> r@ 08:06 * akrill is completely lost, but that could be due to the late hour 08:06 < anticw> in all fairness all of the key authors write code that from time to time makes me smile in admiration 08:07 < akrill> hehe 08:08 < akrill> hmm... so, does the gob pkg preserve object state? 08:09 < anticw> akrill: it takes a structure and serializes it in a pretty terse manner 08:09 < akrill> i'll take that as a "kinda" 08:10 < akrill> (you'll have to forgive my lack of knowledge, i've been stuck in python for 11 years :-p) 08:10 < anticw> if you have type foo struct { i int; b byte; s string } ... and encode it, you can recover the values 08:10 < anticw> well, think python pickle then 08:10 < akrill> thats what i figured. 08:11 < akrill> though, since "objects" in go are lighter and have less magic in them, im guessing they serialize in a cleaner fashion with less strange behavior. 08:11 < anticw> of course python can deserialize w/ foreknowledge of the type details ... because it's dynamic, w/ gobs you can't do that 08:11 < anticw> recursion fails :-) 08:11 < akrill> right 08:11 < anticw> rather you loop eating cpu :) 08:11 < anticw> i did that by mistake once 08:12 < anticw> well, not so much a mistake, i wondered if it would detect it and forgot to comment out the code 08:12 < akrill> ha, im guessing go doesnt have a recursion depth counter to keep that from becoming a runaway process 08:12 -!- altan [~altan@81.215.175.18] has joined #go-nuts 08:13 < akrill> instead you'd probably wind up with a stack overflow and the app just crashing eventually 08:13 < anticw> it's actually documented as not working when i checked 08:13 -!- drry_ [~drry@unaffiliated/drry] has quit [Read error: Connection reset by peer] 08:13 < akrill> interesting 08:13 < anticw> "Recursive types work fine, but recursive values (data with cycles) are problematic. This may change. 08:13 < anticw> " 08:13 < akrill> ah, hmm 08:14 < anticw> anyhow, gobs are kinda neat, super fast and very lean 08:14 -!- no_mind [~orion@122.162.146.245] has quit [Ping timeout: 246 seconds] 08:14 < anticw> if you don't care for that (most people won't) consider json 08:15 < akrill> json is nice and all, but its too slow for time-sensitive environments 08:15 < akrill> i prefer bson, but -- if all endpoints are go apps, may as well go native with gobs 08:15 < anticw> i really dont think that's nearly as true as people claim 08:15 < akrill> well, in python its slow. even with the c extension 08:16 < anticw> define slow? 08:16 < anticw> @work we do 1000s of messages/s with python and simple-json 08:16 < akrill> takes about 3 seconds to "dump" a 1-2mb dictionary 08:16 < akrill> loading is fine and fast, its the dump that takes forever 08:17 < anticw> how many keys? 08:17 < akrill> dont remember how many the test object had. several hundred with short values 08:17 < akrill> bson from pymongo is faster than cPickle in most cases btw. and cPickle has always been faster than json for me. 08:18 < akrill> bson also supports datetime objects, whereas json doesnt (which means you have to encode the datetime in an ascii format, which takes more time to parse, blech) 08:20 < anticw> dates are numbers since epoch 08:20 < anticw> datetime objects, strings, etc. all tend to have shortcomings and complexity 08:21 < akrill> bson stores it as a 64-bit integer IIRC 08:21 < akrill> but my point is you dont have to "remember" which keys are datetimes and do a conversion from ascii to either seconds since epoch or to a datetime object 08:22 < akrill> of course 08:22 < akrill> i guess 08:22 < akrill> you could just store it as seconds since epoch UTC in your json 08:22 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 256 seconds] 08:22 < akrill> but you're still stuck with typeless time, which defies the whole point of having a specific datetime type to work with 08:22 * akrill needs to get away from web development, its poisoning his brain 08:24 < anticw> akrill: 1.8s to marshal a 100,000 element map using json 08:24 < anticw> and this is a fairly old system 08:24 < akrill> i ran my bench on a 1.8ghz dual-core 32-bit system with 1 gig of memory. 08:24 < akrill> whats yours? 08:25 < anticw> that's on an athlon x2 4400 (4 yrs old?) @ 1GHz 08:25 < anticw> so quite slow 08:25 < anticw> at 2.2GHz it's just over 1s 08:25 -!- General1337 [~support@71-84-246-14.dhcp.gldl.ca.charter.com] has joined #go-nuts 08:25 < akrill> hmm, im suddenly starting to doubt that i had the c module compiled. 08:26 < anticw> that's Go 08:26 < akrill> ah. 08:26 < anticw> not python 08:26 < anticw> also, a good chunk of that is bytes.Buffer growing 08:26 < akrill> could you shove that file up somewhere i can grab? i'd like to run the same test on my ec2 instance real quick. (the json file) 08:26 < anticw> if preallocated it's quite a bit faster again 08:26 < anticw> the json test? 08:27 < akrill> the dumped file. so i know im using the same dataset. 08:27 -!- no_mind [~orion@122.163.247.84] has joined #go-nuts 08:29 < anticw> oh, i'm just making up some crap in the go code 08:29 -!- General13372 [~support@71-84-246-14.dhcp.gldl.ca.charter.com] has quit [Ping timeout: 265 seconds] 08:29 < akrill> ah, ok 08:30 < anticw> i have some 3GHz westmere machines i can test this one somewhere, i assume there it will be much faster 08:32 < akrill> so, it takes about 0.4 seconds to dump a 100k element map to json now that im actually using the right damned module (my path was messed up :-() 08:32 < akrill> but, bson takes 0.026 seconds to do the same job :-) 08:32 < akrill> cPickle takes about 0.22 seconds 08:33 -!- comedaybreak [~comedaybr@dsl-63-249-118-170.dhcp.cruzio.com] has joined #go-nuts 08:33 < anticw> both are pretty quick, it's hard to see how either is really a performance problem 08:33 < akrill> bson is 15x faster, and when your bottleneck is encoding/decoding objects, it makes a diff. 08:33 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-176-214.clienti.tiscali.it] has joined #go-nuts 08:33 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 08:34 * akrill wonders how fast the go version of bson is 08:34 * akrill goes to look... 08:35 < Project_2501> don`t look! 08:35 < Project_2501> take this mirror with you 08:35 -!- altan [~altan@81.215.175.18] has quit [Quit: Leaving] 08:35 < akrill> lol wtf 08:35 * Project_2501 gives a shield with a mirror on it to akrill 08:36 < akrill> thank you. now i can defend against those spinning laser things... 08:37 < souffledev> akrill, just curious why is it exactly 15x faster? :) 08:37 < akrill> souffledev: its not exactly 15x faster, the exact different of course depends on the complexity of the object being encoded/decoded. but in my very basic benchmarks it proves to be roughly 15x faster. 08:38 < akrill> why? i have no idea 08:38 < akrill> "it just is" 08:38 < souffledev> ok 08:38 < akrill> there are some limitations to it though 08:39 < akrill> bson documents are limited to 4MB in size, and keys must be strings 08:39 -!- souffledev [~soufflede@110-174-144-249.static.tpgi.com.au] has quit [Quit: <>] 08:39 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Read error: Operation timed out] 08:44 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 246 seconds] 08:44 -!- OpenSpace [~ja@109.92.239.111] has quit [Ping timeout: 245 seconds] 08:45 -!- Xurix [~Luixsia@AToulouse-254-1-26-182.w81-250.abo.wanadoo.fr] has quit [Ping timeout: 252 seconds] 08:47 < anticw> akrill: what size l2 cache is on that CPU? 08:47 < akrill> 8mb on the one i just now tested on 08:47 < akrill> its pretty huge 08:48 < anticw> yeah, that probably helps 08:48 < anticw> http://stupidest.org/Go/json-gob-test1.go 08:48 < anticw> what times do you get there? 08:49 < akrill> JSON 08:49 < akrill> Took 1.162991s 08:49 < akrill> len 1877781 08:50 < akrill> GOBS 08:50 < akrill> Took 0.558211s 08:50 < akrill> len 2055959 08:50 < anticw> what clockspeed? 08:50 < akrill> 2.33Ghz 08:51 < akrill> ah, sorry, 6MB cache 08:51 < akrill> not 8MB 08:51 < anticw> that's large enough though 08:51 < akrill> indeed 08:51 < anticw> i have some X5670 machines ill test with but for some reason i can't get to them 08:51 < anticw> so i'll just cry and give up 08:52 < comedaybreak> has anyone here thought about how to do generics in go? 08:53 < anticw> about 57 people have posted suggestions 08:53 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined #go-nuts 08:54 < comedaybreak> where are the suggestions? 08:54 < comedaybreak> cuz frankly, i have a suggestion 08:55 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts 08:56 < akrill> anticw: BSON 08:56 < akrill> Took 0.888803s 08:56 < akrill> len 1988895 08:56 < akrill> so not much faster in go 08:57 < akrill> and gobs are much faster 08:57 < anticw> comedaybreak: on syntax or implementation 08:57 < comedaybreak> syntax 08:57 < anticw> i dont think anyone is worried about that 08:57 < anticw> it's the implementation that's hard 08:58 < anticw> syntax nobody agrees on, lots of people complain about for 2-3 days and then everyone gets on with their lives 08:58 -!- OpenSpace [~ja@109.93.99.253] has joined #go-nuts 08:59 < anticw> implementation, few if anyone (outside of rsc) has suggest how it might work 09:00 -!- Xurix [~Luixsia@AToulouse-254-1-7-95.w83-203.abo.wanadoo.fr] has joined #go-nuts 09:00 < comedaybreak> oh well i have an idea for the implementation also 09:01 < anticw> post to the list :) 09:01 < comedaybreak> but the implementation is basically syntatctic sugar 09:03 < anticw> zzz 09:03 < anticw> night 09:03 < akrill> night 09:03 < comedaybreak> wiat! 09:03 -!- Kashia [~Kashia@p4FEB6988.dip.t-dialin.net] has joined #go-nuts 09:03 < comedaybreak> before you go! 09:04 < comedaybreak> anticw would you look at my generics idea before i post it to the mailing list? 09:07 < comedaybreak> no? ok 09:08 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]] 09:09 -!- KirkMcDonald [~Kirk@pysoy/developer/KirkMcDonald] has quit [Ping timeout: 245 seconds] 09:11 < akrill> lol 09:14 -!- k4jd095b_ [~k4jd095b@87.70.183.61] has quit [Read error: Connection reset by peer] 09:14 -!- k4jd095b_ [~k4jd095b@87.70.183.61] has joined #go-nuts 09:17 -!- comedaybreak [~comedaybr@dsl-63-249-118-170.dhcp.cruzio.com] has left #go-nuts [] 09:38 -!- wrtp [~rog@89.241.218.64] has joined #go-nuts 09:38 -!- akrill [~akrill@dynamic-216-231-57-80.sea0.krillr.com] has quit [Quit: akrill] 09:40 -!- g0bl1n [~anonymous@a213-22-18-86.cpe.netcabo.pt] has joined #go-nuts 09:41 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has joined #go-nuts 09:42 -!- g0bl1n [~anonymous@a213-22-18-86.cpe.netcabo.pt] has quit [Client Quit] 09:44 -!- KirkMcDonald [~Kirk@pysoy/developer/KirkMcDonald] has joined #go-nuts 09:46 -!- no_mind [~orion@122.163.247.84] has quit [Ping timeout: 265 seconds] 09:50 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 09:59 -!- no_mind [~orion@122.173.236.88] has joined #go-nuts 09:59 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Ping timeout: 264 seconds] 10:00 -!- ssb [~ssb@213.167.39.150] has quit [Ping timeout: 252 seconds] 10:02 -!- sandtrout [~ben@d58-106-20-120.riv2.nsw.optusnet.com.au] has quit [Quit: leaving] 10:04 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts 10:04 -!- alkavan [~alkavan@77.126.135.63] has joined #go-nuts 10:05 -!- ssb [~ssb@213.167.39.150] has joined #go-nuts 10:14 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has joined #go-nuts 10:24 -!- andrewh [~andrewh@94-194-56-42.zone8.bethere.co.uk] has joined #go-nuts 10:26 -!- ikaros [~ikaros@f051042098.adsl.alicedsl.de] has joined #go-nuts 10:35 -!- andrewh [~andrewh@94-194-56-42.zone8.bethere.co.uk] has quit [Ping timeout: 265 seconds] 10:38 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has quit [Remote host closed the connection] 10:39 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts 10:40 -!- k4jd095b_ [~k4jd095b@87.70.183.61] has quit [Read error: Connection reset by peer] 10:40 -!- k4jd095b_ [~k4jd095b@87.70.183.61] has joined #go-nuts 10:40 -!- brx [~brx@p5796F8B2.dip.t-dialin.net] has joined #go-nuts 10:40 -!- alkavan [~alkavan@77.126.135.63] has quit [Read error: Connection reset by peer] 10:40 -!- alkavan [~alkavan@77.126.135.63] has joined #go-nuts 10:41 -!- k4jd095b_ [~k4jd095b@87.70.183.61] has quit [Client Quit] 10:41 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined #go-nuts 10:42 -!- drry [~drry@unaffiliated/drry] has quit [Read error: Connection reset by peer] 10:48 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has quit [Ping timeout: 260 seconds] 11:07 -!- jvogel [~jonathan@friedpancakes.com] has quit [Read error: Connection reset by peer] 11:08 -!- jvogel [~jonathan@friedpancakes.com] has joined #go-nuts 11:09 -!- Selim_ [~Selim@f054134186.adsl.alicedsl.de] has joined #go-nuts 11:21 -!- illya77 [~illya77@219-147-178-94.pool.ukrtel.net] has joined #go-nuts 11:24 -!- wuehlmaus [~wuehlmaus@p4FCC5951.dip.t-dialin.net] has quit [Ping timeout: 265 seconds] 11:25 -!- wuehlmaus [~wuehlmaus@p4FCC574C.dip.t-dialin.net] has joined #go-nuts 11:29 -!- ikaros [~ikaros@f051042098.adsl.alicedsl.de] has quit [Quit: Leave the magic to Houdini] 11:38 -!- gnuvince_ [~vince@72.0.215.215] has joined #go-nuts 11:38 -!- alkavan [~alkavan@77.126.135.63] has quit [Read error: Connection reset by peer] 11:38 -!- alkavan [~alkavan@77.126.135.63] has joined #go-nuts 11:47 -!- Selim_ [~Selim@f054134186.adsl.alicedsl.de] has left #go-nuts [] 11:48 -!- alkavan [~alkavan@77.126.135.63] has quit [Quit: Leaving] 11:48 -!- wrtp [~rog@89.241.218.64] has quit [Quit: wrtp] 12:06 -!- tor5 [~tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has joined #go-nuts 12:17 -!- pdusen [~pdusen@crob4-55.flint.umich.edu] has joined #go-nuts 12:18 -!- illya77 [~illya77@219-147-178-94.pool.ukrtel.net] has quit [Read error: Connection reset by peer] 12:20 -!- wrtp [~rog@89.241.218.64] has joined #go-nuts 12:21 -!- wrtp [~rog@89.241.218.64] has quit [Client Quit] 12:28 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-161-42.netcologne.de] has quit [Quit: m1ndwarp] 12:33 -!- andrewh [~andrewh@94-194-56-42.zone8.bethere.co.uk] has joined #go-nuts 12:38 -!- anticw [~anticw@c-67-169-41-113.hsd1.ca.comcast.net] has quit [Read error: Operation timed out] 12:39 -!- andrewh [~andrewh@94-194-56-42.zone8.bethere.co.uk] has quit [Remote host closed the connection] 12:39 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Ping timeout: 264 seconds] 12:42 -!- yatoo [~marcus@host86-156-158-64.range86-156.btcentralplus.com] has joined #go-nuts 12:43 -!- tor5 [~tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit [Quit: tor5] 12:44 -!- Guest92336 [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined #go-nuts 12:48 -!- tor5 [~tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has joined #go-nuts 12:55 -!- Guest92336 [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has left #go-nuts [] 12:58 -!- ikaros [~ikaros@f051042098.adsl.alicedsl.de] has joined #go-nuts 13:07 -!- c0nfl|ct [~tiago@dial-b1-210-206.telepac.pt] has joined #go-nuts 13:13 -!- no_mind [~orion@122.173.236.88] has quit [Ping timeout: 276 seconds] 13:25 -!- no_mind [~orion@122.173.234.241] has joined #go-nuts 13:27 -!- c0nfl|ct [~tiago@dial-b1-210-206.telepac.pt] has quit [Ping timeout: 246 seconds] 13:52 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 14:05 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 14:13 -!- skj [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has joined #go-nuts 14:20 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts 14:30 -!- drry [~drry@unaffiliated/drry] has quit [Read error: Connection reset by peer] 14:32 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts 14:38 -!- drry [~drry@unaffiliated/drry] has quit [Read error: Connection reset by peer] 14:40 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts 14:42 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Ping timeout: 276 seconds] 14:45 -!- no_mind [~orion@122.173.234.241] has quit [Read error: Connection reset by peer] 14:46 -!- hircus [~michel@ip-109-84-119-27.web.vodafone.de] has joined #go-nuts 14:47 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts 14:48 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 14:51 -!- yaroslav [~yaroslav@ppp91-78-206-245.pppoe.mtu-net.ru] has joined #go-nuts 14:52 -!- drry [~drry@unaffiliated/drry] has quit [Read error: Connection reset by peer] 14:53 -!- wrtp [~rog@89.241.218.64] has joined #go-nuts 14:54 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts 14:58 -!- fusion44 [~quassel@p5B284A26.dip.t-dialin.net] has joined #go-nuts 14:58 -!- abiosoft [~abiosoft@41.155.30.15] has joined #go-nuts 14:59 -!- no_mind [~orion@122.173.192.215] has joined #go-nuts 15:05 -!- no_mind [~orion@122.173.192.215] has quit [Read error: Connection reset by peer] 15:06 -!- drry [~drry@unaffiliated/drry] has quit [Read error: Connection reset by peer] 15:08 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts 15:08 -!- prip_ [~foo@host194-125-dynamic.36-79-r.retail.telecomitalia.it] has quit [Ping timeout: 276 seconds] 15:19 -!- kssreeram [~kssreeram@122.174.65.111] has joined #go-nuts 15:21 -!- prip_ [~foo@host158-120-dynamic.35-79-r.retail.telecomitalia.it] has joined #go-nuts 15:21 -!- no_mind [~orion@122.161.212.73] has joined #go-nuts 15:21 -!- drry [~drry@unaffiliated/drry] has quit [Read error: Connection reset by peer] 15:21 -!- drry_ [~drry@unaffiliated/drry] has joined #go-nuts 15:29 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Quit: Leaving.] 15:31 -!- lux` [lucs@151.95.169.212] has joined #go-nuts 15:31 -!- anticw [~anticw@c-67-169-41-113.hsd1.ca.comcast.net] has joined #go-nuts 15:32 -!- lux` [lucs@151.95.169.212] has quit [Client Quit] 15:34 -!- drry_ [~drry@unaffiliated/drry] has quit [Read error: Connection reset by peer] 15:35 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts 15:36 -!- skj [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has left #go-nuts [] 15:36 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has joined #go-nuts 15:37 -!- abiosoft [~abiosoft@41.155.30.15] has left #go-nuts [] 15:53 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-161-42.netcologne.de] has joined #go-nuts 15:54 -!- m1ndwarp_ [~m1ndwarp@xdsl-78-35-161-42.netcologne.de] has joined #go-nuts 15:54 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-161-42.netcologne.de] has quit [Read error: Connection reset by peer] 15:58 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-161-42.netcologne.de] has quit [Ping timeout: 256 seconds] 16:00 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 16:04 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-130-65.netcologne.de] has joined #go-nuts 16:28 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-130-65.netcologne.de] has quit [Quit: m1ndwarp] 16:30 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Quit: Lost terminal] 16:37 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-176-214.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 16:41 -!- wrtp [~rog@89.241.218.64] has quit [Quit: wrtp] 16:42 -!- gnuvince [~vince@72.0.215.215] has quit [Quit: What the fruit is goin' on here!?] 16:44 -!- gnuvince_ [~vince@72.0.215.215] has quit [Ping timeout: 264 seconds] 16:44 -!- gnuvince [~vince@72.0.219.6] has joined #go-nuts 16:45 -!- m1ndwarp [~m1ndwarp@vpn-eu1.unidsl.de] has joined #go-nuts 16:48 -!- gnuvince_ [~vince@72.0.219.6] has joined #go-nuts 16:50 -!- mertimor [~mertimor@p4FE75D8C.dip.t-dialin.net] has joined #go-nuts 16:52 -!- perdix [~perdix@sxemacs/devel/perdix] has joined #go-nuts 16:55 -!- illya77 [~illya77@174-198-95-178.pool.ukrtel.net] has joined #go-nuts 16:59 -!- ikaros [~ikaros@f051042098.adsl.alicedsl.de] has quit [Quit: Leave the magic to Houdini] 17:02 -!- drry [~drry@unaffiliated/drry] has quit [Read error: Connection reset by peer] 17:04 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts 17:09 -!- fusion44 [~quassel@p5B284A26.dip.t-dialin.net] has quit [Remote host closed the connection] 17:09 -!- drry [~drry@unaffiliated/drry] has quit [Ping timeout: 256 seconds] 17:10 -!- fusion44 [~quassel@p5B284A26.dip.t-dialin.net] has joined #go-nuts 17:11 -!- General13372 [~support@71-84-246-14.dhcp.gldl.ca.charter.com] has joined #go-nuts 17:11 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-176-214.clienti.tiscali.it] has joined #go-nuts 17:12 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has quit [Quit: Leaving] 17:13 -!- General1337 [~support@71-84-246-14.dhcp.gldl.ca.charter.com] has quit [Ping timeout: 268 seconds] 17:13 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts 17:14 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has quit [Ping timeout: 268 seconds] 17:17 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has joined #go-nuts 17:19 -!- b00m_chef__ [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts 17:19 -!- mstetson [~mstetson@rhema.stetsonnet.org] has joined #go-nuts 17:35 -!- nettok [~netto@200.119.158.1] has joined #go-nuts 17:43 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has joined #go-nuts 17:47 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has quit [Ping timeout: 268 seconds] 17:52 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has joined #go-nuts 17:53 -!- rhelmer [~rhelmer@adsl-69-107-95-216.dsl.pltn13.pacbell.net] has joined #go-nuts 17:56 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit [Remote host closed the connection] 18:02 -!- nettok [~netto@200.119.158.1] has quit [Ping timeout: 246 seconds] 18:04 -!- m1ndwarp [~m1ndwarp@vpn-eu1.unidsl.de] has left #go-nuts [] 18:14 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 18:17 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has quit [Ping timeout: 246 seconds] 18:18 -!- nettok [~netto@200.119.158.1] has joined #go-nuts 18:18 -!- jshipley [~jshipley@174-23-125-69.slkc.qwest.net] has joined #go-nuts 18:20 -!- jshipley [~jshipley@174-23-125-69.slkc.qwest.net] has quit [Client Quit] 18:21 -!- kashia_ [~Kashia@p4FEB4BD6.dip.t-dialin.net] has joined #go-nuts 18:21 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has quit [Quit: hstimer] 18:21 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has joined #go-nuts 18:23 -!- b00m_chef__ [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping timeout: 276 seconds] 18:24 -!- Kashia [~Kashia@p4FEB6988.dip.t-dialin.net] has quit [Ping timeout: 245 seconds] 18:25 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts 18:29 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-176-214.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 18:29 -!- KnightMage [~jon@cpc1-nmal11-0-0-cust468.croy.cable.virginmedia.com] has joined #go-nuts 18:36 -!- nettok [~netto@200.119.158.1] has quit [Ping timeout: 260 seconds] 18:36 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-130-65.netcologne.de] has joined #go-nuts 18:38 -!- KnightMage [~jon@cpc1-nmal11-0-0-cust468.croy.cable.virginmedia.com] has quit [Ping timeout: 276 seconds] 18:39 -!- boscop_ [~boscop@f050131251.adsl.alicedsl.de] has joined #go-nuts 18:41 -!- boscop [~boscop@f050151226.adsl.alicedsl.de] has quit [Disconnected by services] 18:41 -!- boscop_ [~boscop@f050131251.adsl.alicedsl.de] has left #go-nuts [] 18:41 -!- boscop [~boscop@f050131251.adsl.alicedsl.de] has joined #go-nuts 18:42 -!- fusion44 [~quassel@p5B284A26.dip.t-dialin.net] has quit [Remote host closed the connection] 18:42 -!- BlackBook [~sjs@kernel-panic/member/TiBook] has joined #go-nuts 18:44 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 18:47 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has quit [Ping timeout: 260 seconds] 18:48 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 246 seconds] 18:49 -!- hal_ [~hal@89-125-91-146.dhcp-ripwave.irishbroadband.ie] has joined #go-nuts 18:51 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has joined #go-nuts 18:56 -!- nettok [~netto@200.119.158.1] has joined #go-nuts 18:57 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 19:00 < BlackBook> Well, crap. Java on OS X can resolve a domain through the firewall, but GoLang can't. 19:01 -!- nettok_ [~netto@200.119.158.1] has joined #go-nuts 19:02 -!- i3d [~i3dmaster@c-24-16-26-161.hsd1.wa.comcast.net] has joined #go-nuts 19:04 -!- nettok [~netto@200.119.158.1] has quit [Ping timeout: 248 seconds] 19:08 < uriel> I blame Apple's latest feud with Google ;P 19:08 < uriel> I'm sure steve jobs got some magic code in the OS X kernel to block Go... 19:09 < no_mind> uriel, that is a possibility 19:09 < uriel> no, that is a certainty! ;P 19:11 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-130-65.netcologne.de] has quit [Quit: m1ndwarp] 19:16 -!- c0nfl|ct [~tiago@bl7-218-253.dsl.telepac.pt] has joined #go-nuts 19:18 < ThunderChicken> disabling the firewall in the OS X System Preferences allows GoLang to talk to the DNS Server. 19:18 < ThunderChicken> I am not wise in the ways of ipfw, as it appears to say that anything is allowed to talk to anything on any port. 19:20 -!- BlackBook [~sjs@kernel-panic/member/TiBook] has quit [Quit: This computer has gone to sleep] 19:21 -!- rhelmer [~rhelmer@adsl-69-107-95-216.dsl.pltn13.pacbell.net] has quit [Quit: rhelmer] 19:23 -!- nettok__ [~netto@200.119.158.1] has joined #go-nuts 19:25 -!- illya77 [~illya77@174-198-95-178.pool.ukrtel.net] has quit [Read error: Connection reset by peer] 19:27 -!- nettok_ [~netto@200.119.158.1] has quit [Ping timeout: 260 seconds] 19:34 -!- b00m_chef__ [~watr@128.189.90.175] has joined #go-nuts 19:35 -!- jshipley [~jshipley@174-23-125-69.slkc.qwest.net] has joined #go-nuts 19:40 -!- x2180 [~mike@cpe-66-25-36-120.tx.res.rr.com] has left #go-nuts [] 19:40 < jshipley> Is there any way to get a minimal go binary to be anywhere near as small as a minimal c binary, or is there at least a way to only import part of a package? 19:44 -!- i3d [~i3dmaster@c-24-16-26-161.hsd1.wa.comcast.net] has quit [Changing host] 19:44 -!- i3d [~i3dmaster@unaffiliated/i3dmaster] has joined #go-nuts 19:48 -!- i3d [~i3dmaster@unaffiliated/i3dmaster] has quit [Quit: leaving] 19:51 < ThunderChicken> jshipley, have you tried 'strip'? (I haven't yet. I shall try later, when I'm on an intel box.) 19:53 < Bombe> strip will currently cripple your compiled Go programs. 19:54 -!- nettok_ [~netto@200.119.158.1] has joined #go-nuts 19:56 -!- lux` [lucs@151.95.169.212] has joined #go-nuts 19:57 < jshipley> Yeah, I just found that out :) 19:58 < Bombe> :) 19:58 < Bombe> It’s strange to see binaries actually _grow_ when using strip. :) 19:58 -!- nettok__ [~netto@200.119.158.1] has quit [Ping timeout: 276 seconds] 19:58 -!- idm [~i3dmaster@c-24-16-26-161.hsd1.wa.comcast.net] has joined #go-nuts 19:58 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined #go-nuts 19:59 < anticw> Bombe: strip breaks things 20:00 -!- nettok__ [~netto@200.119.158.1] has joined #go-nuts 20:00 < anticw> jshipley: small c programs have a dunamically linked libc, go doesn't have that equivalent right now 20:00 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 248 seconds] 20:01 -!- idm [~i3dmaster@c-24-16-26-161.hsd1.wa.comcast.net] has quit [Client Quit] 20:01 < Bombe> anticw, I know. :) 20:01 -!- idm [~i3dmaster@c-24-16-26-161.hsd1.wa.comcast.net] has joined #go-nuts 20:04 -!- nettok_ [~netto@200.119.158.1] has quit [Ping timeout: 268 seconds] 20:14 -!- c0n [~tiago@bl9-254-244.dsl.telepac.pt] has joined #go-nuts 20:15 -!- c0nfl|ct [~tiago@bl7-218-253.dsl.telepac.pt] has quit [Ping timeout: 248 seconds] 20:19 -!- OpenSpace [~ja@109.93.99.253] has quit [Quit: Leaving] 20:22 -!- nettok_ [~netto@200.119.158.1] has joined #go-nuts 20:23 -!- idm [~i3dmaster@c-24-16-26-161.hsd1.wa.comcast.net] has quit [Quit: leaving] 20:25 -!- General1337 [~support@71-84-246-14.dhcp.gldl.ca.charter.com] has joined #go-nuts 20:25 -!- OpenSpace [~ja@109.93.99.253] has joined #go-nuts 20:26 -!- nettok__ [~netto@200.119.158.1] has quit [Ping timeout: 248 seconds] 20:28 -!- General13372 [~support@71-84-246-14.dhcp.gldl.ca.charter.com] has quit [Ping timeout: 256 seconds] 20:28 -!- i3d [~i3d@unaffiliated/i3dmaster] has joined #go-nuts 20:43 -!- akrill [~akrill@dynamic-216-231-57-80.sea0.krillr.com] has joined #go-nuts 20:45 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-176-214.clienti.tiscali.it] has joined #go-nuts 20:47 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-176-214.clienti.tiscali.it] has quit [Client Quit] 20:48 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-176-214.clienti.tiscali.it] has joined #go-nuts 20:48 -!- mikedee [~quassel@91.111.5.225] has joined #go-nuts 20:52 -!- jophish [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts 20:53 -!- nettok__ [~netto@200.119.158.1] has joined #go-nuts 20:54 -!- rhelmer [~rhelmer@adsl-69-107-95-216.dsl.pltn13.pacbell.net] has joined #go-nuts 20:57 -!- nettok_ [~netto@200.119.158.1] has quit [Ping timeout: 276 seconds] 20:59 -!- nettok_ [~netto@200.119.158.1] has joined #go-nuts 21:00 -!- b00m_chef__ [~watr@128.189.90.175] has quit [Ping timeout: 240 seconds] 21:03 -!- nettok__ [~netto@200.119.158.1] has quit [Ping timeout: 260 seconds] 21:04 -!- g0bl1n [~anonymous@a213-22-18-86.cpe.netcabo.pt] has joined #go-nuts 21:08 -!- nettok_ [~netto@200.119.158.1] has quit [Ping timeout: 246 seconds] 21:09 -!- millertimek1a2m3 [~adam@r74-192-243-70.tyrdcmta02.tylrtx.tl.dh.suddenlink.net] has joined #go-nuts 21:17 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Ping timeout: 252 seconds] 21:21 -!- b00m_chef__ [~watr@128.189.90.175] has joined #go-nuts 21:21 -!- akrill [~akrill@dynamic-216-231-57-80.sea0.krillr.com] has quit [Quit: akrill] 21:26 -!- nettok_ [~netto@200.119.158.1] has joined #go-nuts 21:27 -!- b00m_chef__ [~watr@128.189.90.175] has quit [Ping timeout: 276 seconds] 21:29 -!- nettok_ [~netto@200.119.158.1] has quit [Client Quit] 21:30 -!- hstimer [~hstimer@70.90.170.37] has joined #go-nuts 21:44 -!- b00m_chef__ [~watr@128.189.90.175] has joined #go-nuts 21:47 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 21:55 -!- yaroslav [~yaroslav@ppp91-78-206-245.pppoe.mtu-net.ru] has quit [Quit: yaroslav] 22:00 -!- alus [~gah@64.13.131.178] has quit [Remote host closed the connection] 22:00 -!- c0n [~tiago@bl9-254-244.dsl.telepac.pt] has quit [Quit: Saindo] 22:05 -!- g0bl1n [~anonymous@a213-22-18-86.cpe.netcabo.pt] has quit [Quit: g0bl1n] 22:17 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has quit [Ping timeout: 240 seconds] 22:24 -!- akrill [~akrill@dynamic-216-231-57-80.sea0.krillr.com] has joined #go-nuts 22:24 -!- scm [justme@c190233.adsl.hansenet.de] has quit [Ping timeout: 240 seconds] 22:25 -!- hal_ [~hal@89-125-91-146.dhcp-ripwave.irishbroadband.ie] has quit [Quit: Leaving] 22:27 -!- scm [justme@c162006.adsl.hansenet.de] has joined #go-nuts 22:27 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has quit [Ping timeout: 252 seconds] 22:34 -!- g0bl1n [~anonymous@a213-22-18-86.cpe.netcabo.pt] has joined #go-nuts 22:39 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode] 22:39 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 22:40 -!- millertimek1a2m3 [~adam@r74-192-243-70.tyrdcmta02.tylrtx.tl.dh.suddenlink.net] has quit [Ping timeout: 252 seconds] 22:42 -!- amacleod [amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined #go-nuts 22:53 -!- selby_fiedler [~selby_fie@c-76-106-49-240.hsd1.va.comcast.net] has joined #go-nuts 22:53 -!- selby_fiedler [~selby_fie@c-76-106-49-240.hsd1.va.comcast.net] has quit [Client Quit] 23:01 -!- TR2N [email@89.180.158.168] has quit [Ping timeout: 265 seconds] 23:02 -!- atsampso1 [~ats@94-193-50-45.zone7.bethere.co.uk] has joined #go-nuts 23:02 -!- akher0n [~akheron@lilja.asteriski.fi] has joined #go-nuts 23:02 -!- JBeshir_ [~namegduf@eu.beshir.org] has joined #go-nuts 23:03 -!- cbeck_ [~cbeck@c-67-170-181-181.hsd1.or.comcast.net] has joined #go-nuts 23:03 -!- rbancrof1 [~rumble@S01060014bf54b5eb.cg.shawcable.net] has joined #go-nuts 23:03 -!- borisc_ [~borisc@borisc2.csbnet.se] has joined #go-nuts 23:03 -!- clip9_ [tj@12.81-166-62.customer.lyse.net] has joined #go-nuts 23:04 -!- millertimek1a2m3 [~adam@r74-192-243-70.tyrdcmta02.tylrtx.tl.dh.suddenlink.net] has joined #go-nuts 23:07 -!- Netsplit *.net <-> *.split quits: akheron, clip9, atsampson, rbancroft, JBeshir, CodeBlock_, tokuhirom, cbeck, borisc, chrome 23:08 -!- CodeBloc- [~CodeBlock@174.137.57.117] has joined #go-nuts 23:11 -!- exch [~nuada@h144170.upc-h.chello.nl] has quit [Read error: Connection reset by peer] 23:13 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts 23:15 -!- akrill [~akrill@dynamic-216-231-57-80.sea0.krillr.com] has quit [Quit: akrill] 23:16 -!- Netsplit over, joins: tokuhirom 23:16 -!- Netsplit over, joins: chrome 23:18 -!- X-Scale [email@89-180-209-48.net.novis.pt] has joined #go-nuts 23:30 -!- Guest66070 [sam@invidia.samferry.net] has left #go-nuts [] 23:31 -!- OpenSpace [~ja@109.93.99.253] has quit [Ping timeout: 276 seconds] 23:31 -!- samferry [sam@unaffiliated/samferry] has joined #go-nuts 23:37 < uriel> jshipley: you can use gccgo 23:39 -!- megaboz [~megaboz@unaffiliated/megaboz] has joined #go-nuts 23:40 < megaboz> any idea on how to make signal handling work inside a goroutine? 23:42 < uriel> megaboz: http://golang.org/pkg/os/signal/ 23:42 -!- mattikus [~mattikus@ip68-227-143-68.br.br.cox.net] has quit [Remote host closed the connection] 23:43 -!- mikedee [~quassel@91.111.5.225] has quit [Remote host closed the connection] 23:43 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 260 seconds] 23:44 < uriel> but signals are best avoided, they never play nicely with concurrent programming 23:44 -!- amacleod [amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Ping timeout: 256 seconds] 23:45 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 23:46 -!- nettok [~netto@200.119.155.45] has joined #go-nuts 23:47 -!- mikedee [~quassel@91.111.5.225] has joined #go-nuts 23:47 -!- millertimek1a2m3 [~adam@r74-192-243-70.tyrdcmta02.tylrtx.tl.dh.suddenlink.net] has quit [Ping timeout: 258 seconds] 23:52 -!- nettok [~netto@200.119.155.45] has quit [Quit: Ex-Chat] 23:54 < anticw> megaboz: what signal(s) are you after? 23:54 < anticw> i'm using signals here, but as uriel said if you can avoid them sometimes that's best 23:54 < megaboz> uriel: i'm using that 23:54 < megaboz> anticw: i'm wrapping curses, so i wanted to intercept a bunch 23:56 < anticw> yeah, so in that case you want os/signal 23:56 < anticw> fwiw, i think long-term a go [re]implemetation of [n]curses/termcap would be nice, something that can work with eixsting term database(s) 23:57 < anticw> that's on my TODO list (far down) 23:57 -!- akrill [~akrill@dynamic-216-231-57-80.sea0.krillr.com] has joined #go-nuts 23:58 < megaboz> http://pastie.org/879119 23:58 < megaboz> if i take out the 'go' it works 23:58 < megaboz> how is os/signal supposed to be used? 23:59 -!- wuehlmaus [~wuehlmaus@p4FCC574C.dip.t-dialin.net] has quit [Ping timeout: 276 seconds] 23:59 -!- wuehlmaus [~wuehlmaus@p4FCC6FD4.dip.t-dialin.net] has joined #go-nuts 23:59 < anticw> you can't do { } 23:59 < anticw> go won't yield with GOMAXPROCS=1 23:59 < anticw> so you hit an infinite loop 23:59 < anticw> put a time.Sleep(1e9) in there if you want to mess about like that 23:59 < anticw> for { } --- Log closed Sun Mar 21 00:00:24 2010