--- Log opened Wed Jun 01 00:00:52 2011 00:05 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has joined #go-nuts 00:07 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 252 seconds] 00:08 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has quit [Ping timeout: 240 seconds] 00:11 -!- Guest65525 [~blbl@87.209.181.34] has joined #go-nuts 00:13 -!- icey [~user@ip68-104-183-151.ph.ph.cox.net] has quit [Remote host closed the connection] 00:14 -!- icey [~user@ip68-104-183-151.ph.ph.cox.net] has joined #go-nuts 00:15 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined #go-nuts 00:15 -!- Guest65525 [~blbl@87.209.181.34] has quit [Ping timeout: 240 seconds] 00:17 -!- Tv [~Tv@ip-66-33-206-8.dreamhost.com] has quit [Ping timeout: 250 seconds] 00:17 -!- bugQ [~bug@c-67-172-239-252.hsd1.ut.comcast.net] has joined #go-nuts 00:19 -!- protoboard [~protoboar@189.186.76.39] has quit [Quit: Saliendo] 00:20 -!- tvw [~tv@e176005105.adsl.alicedsl.de] has quit [Remote host closed the connection] 00:29 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has joined #go-nuts 00:29 -!- blbl [~blbl@87.209.181.34] has joined #go-nuts 00:35 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has quit [Quit: Computer has gone to sleep.] 00:40 -!- dirtmcgirt [~dirtmcgir@209.119.73.54] has quit [Quit: dirtmcgirt] 00:55 -!- iant [~iant@67.218.110.215] has quit [Quit: Leaving.] 01:01 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has joined #go-nuts 01:04 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 01:06 -!- sunfmin [~sunfmin@115.197.43.253] has quit [Quit: sunfmin] 01:09 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts 01:11 < kuroneko> what's missing from Go's TLS implementation, and is there any plan to implement SSL? 01:11 < Namegduf> Is there any SSL stuff existing which can't talk TLS? 01:11 * Namegduf would be worried about using software that slow to update 01:12 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit [Quit: Leaving] 01:12 < kuroneko> I'm interested more for new C/S implementations, not for talking to existing. 01:12 < kuroneko> although there are some differences in session set-up for TLS vs SSL in quite a few protocols 01:12 < Namegduf> New C/S implementations? 01:13 < kuroneko> client/server - as in I'm writing something and I need encrypted sockets :P 01:13 < Namegduf> Use TLS. 01:13 < Namegduf> TLS is just renamed SSL, you know? 01:13 < Namegduf> More precisely, it's the name used for all versions of SSL after a certain point 01:13 < kuroneko> yes, but the big "partially implements" in crypto/tls is also what I'm worried about. :) 01:14 < kuroneko> hence the "what's missing" 01:16 < KBme> CRYPTOGEEEK :P 01:17 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 01:17 -!- icey` [~user@ip68-104-183-151.ph.ph.cox.net] has joined #go-nuts 01:18 < kuroneko> you don't put "partially implements" into something critical for session security without qualifying what "partial" actually means. >_< 01:18 -!- ako [~nya@fuld-590c7257.pool.mediaWays.net] has joined #go-nuts 01:19 -!- robteix_ [~robteix@201-213-183-45.net.prima.net.ar] has joined #go-nuts 01:21 -!- aho [~nya@fuld-590c7e45.pool.mediaWays.net] has quit [Ping timeout: 255 seconds] 01:22 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 01:22 -!- hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has quit [Quit: Leaving...] 01:24 -!- icey [~user@ip68-104-183-151.ph.ph.cox.net] has quit [Ping timeout: 276 seconds] 01:29 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has quit [Quit: Computer has gone to sleep.] 01:30 -!- twolfe18 [~twolfe18@c-174-57-119-166.hsd1.nj.comcast.net] has joined #go-nuts 01:34 <@adg> What Go libraries (outside the standard lib) do you folks use? 01:34 <@adg> got any favourites? 01:35 < KBme> plan9, 9p, sqlite 01:38 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Read error: Operation timed out] 01:40 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts 01:42 -!- twolfe18 [~twolfe18@c-174-57-119-166.hsd1.nj.comcast.net] has quit [Quit: twolfe18] 01:45 -!- bugQ [~bug@c-67-172-239-252.hsd1.ut.comcast.net] has quit [Ping timeout: 240 seconds] 01:51 -!- niemeyer [~niemeyer@200-102-196-125.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 240 seconds] 01:56 -!- robteix_ [~robteix@201-213-183-45.net.prima.net.ar] has quit [Ping timeout: 276 seconds] 01:59 -!- sunfmin [~sunfmin@115.238.44.108] has joined #go-nuts 01:59 -!- gtaylor [~gtaylor@99-5-124-9.lightspeed.gnvlsc.sbcglobal.net] has quit [Quit: gtaylor] 02:02 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the connection] 02:04 -!- robteix_ [~robteix@host40.201-253-152.telecom.net.ar] has joined #go-nuts 02:05 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has joined #go-nuts 02:06 -!- vzx [~ryan@74-129-201-27.dhcp.insightbb.com] has quit [Ping timeout: 240 seconds] 02:06 -!- vzx [~ryan@74-129-201-27.dhcp.insightbb.com] has joined #go-nuts 02:08 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has quit [Client Quit] 02:10 -!- hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has joined #go-nuts 02:11 -!- icey` [~user@ip68-104-183-151.ph.ph.cox.net] has quit [Remote host closed the connection] 02:20 -!- kr [~Keith@204.14.152.118] has quit [Quit: WeeChat 0.3.4] 02:23 -!- jarsen [~jarsen@76.8.206.128] has joined #go-nuts 02:23 -!- sunfmin [~sunfmin@115.238.44.108] has quit [Quit: sunfmin] 02:26 -!- hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has quit [Quit: Leaving...] 02:36 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 02:38 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts 02:47 -!- cbeck1 [cbeck@gateway/shell/pdx.edu/x-xfpmsgzjbgivfejd] has joined #go-nuts 02:48 -!- robteix_ [~robteix@host40.201-253-152.telecom.net.ar] has quit [Quit: Leaving...] 02:48 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-rqgwvnsgcaajirkh] has quit [Ping timeout: 255 seconds] 02:54 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined #go-nuts 02:56 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 02:59 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host closed the connection] 03:01 -!- keithcascio [~keithcasc@nat/google/x-qnvauwzzydgzzyqc] has quit [Quit: Leaving] 03:02 -!- xyproto [~alexander@77.40.159.131] has quit [Read error: Operation timed out] 03:06 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has joined #go-nuts 03:12 -!- jarsen [~jarsen@76.8.206.128] has quit [Remote host closed the connection] 03:13 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined #go-nuts 03:22 -!- benjack [~benjack@bb119-74-191-208.singnet.com.sg] has joined #go-nuts 03:26 < uriel> adg: specific libs or functionality? I'm both toying with the various markdown and sexprs libs, not too impressed with any of them so far 03:27 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has left #go-nuts [] 03:33 <@adg> specific projects 03:36 < str1ngs> adg: https://github.com/kless/go-term is what I use most outside of the stdlib 03:38 -!- comex [comex@c-98-210-197-113.hsd1.ca.comcast.net] has quit [Quit: ZNC - http://znc.sourceforge.net] 03:39 < blbl> adg: mostly my own stuff.. go-pkg-ini, go-pkg-optarg, and my go s-expression parser 'gsx' 03:40 < vsmatck> Hm. Not a library but I love the godag build system. 03:41 < str1ngs> I would probably use a native yaml package over json if there was one. 03:42 < vsmatck> I used to depend on 3 external libraries for web app stuff. Ended up replacing them all myself because they were poor quality. 03:42 < uriel> yaml? yuck! 03:43 < uriel> why would anyone want to use the hideous monster that is yaml instead of the simple beauty that is json? 03:44 < elimisteve> troll 03:45 < str1ngs> yaml makes for better human editable config files over jason 03:46 < str1ngs> unless you are joking? 03:47 < uriel> yaml makes for a hideous error-prone insanely complex to parse language 03:47 < vsmatck> Because of the indentation? 03:48 < uriel> the amount of garbage that is 'valid' yaml makes it unsuitable for pretty much anything, other than as an example of how to build something worse than xml 03:48 < uriel> because of everything, take a look at the yaml spec some time 03:48 < uriel> and compare it to the json spec 03:48 * vsmatck never heard of yaml until 3 mins ago. 03:48 < uriel> vsmatck: lucky you 03:48 < exch> nothing beats the elegant simplicity of s expressions :p 03:49 < vsmatck> John McCarthy would disagree with you. He says s expressions sacrifice human readability for parseability. *paraphrase* 03:49 < uriel> sexprs are nice, json gives you a bit more semantic structure 03:49 < uriel> both are great 03:50 < vsmatck> Well, good for some things, not good for others. 03:50 < uriel> vsmatck: as opposed to what? csv or key=value? (both csv and key=value are great by the way, and infinitely better than yaml) 03:50 * exch likes his ini files for some stuff 03:51 < uriel> sexprs are good for some things, json is good for some things, csv is good for some things, key=value is good for some things, XML and YAML are horrible for everything 03:51 < vsmatck> I use my own key=value for go. 03:51 < uriel> among what sexprs, jsona and other sane formats, there is some overlap, but they are all pretty good 03:52 < str1ngs> uriel: that just your opinion. which you are entitled. however I fine yaml useful for config files. by all means continue to use json 03:52 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts 03:57 <@adg> whenever i see "sexprs" i just see "SEXprs" 03:58 < uriel> that yaml is a monstruosity is not an opinion, the spec spells it out clearly enough for everyone to see 03:59 < uriel> adg: I think you are not the only one :) 03:59 < elimisteve> adg: it's called "being a guy," I believe 04:01 < elimisteve> not to be sexist... against us guys 04:04 <@adg> wow, it is very long http://yaml.org/spec/1.2/spec.html 04:04 < nsf> I read it all 04:05 < nsf> it is long, but it's not complex 04:05 < nsf> after reading it I started to like yaml 04:05 < nsf> :) 04:05 <@adg> ergo, uriel has never read the spec! 04:07 -!- benjack [~benjack@bb119-74-191-208.singnet.com.sg] has quit [Quit: Leaving.] 04:08 < vsmatck> https://github.com/nickmartini/dongml 04:09 < nsf> lol 04:11 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services] 04:12 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 04:18 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 260 seconds] 04:32 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has quit [Ping timeout: 250 seconds] 04:35 < kuroneko> adg: hey, since when ever has uriel let reality get in the way of a good trolling? 04:35 < kuroneko> [hi uriel!] 04:48 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 04:49 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 04:52 -!- jarsen [~jarsen@76.8.206.128] has joined #go-nuts 04:53 -!- djbrown [~djbrown@h236n2-g-va-a12.ias.bredband.telia.com] has quit [Changing host] 04:53 -!- djbrown [~djbrown@unaffiliated/djbrown] has joined #go-nuts 04:57 -!- Sep102_ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has joined #go-nuts 04:59 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has quit [Remote host closed the connection] 05:00 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts 05:00 -!- Sep102__ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has quit [Ping timeout: 240 seconds] 05:02 -!- xyproto [~alexander@77.40.159.131] has joined #go-nuts 05:03 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 05:06 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.5] 05:18 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has joined #go-nuts 05:21 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has quit [Quit: Computer has gone to sleep.] 05:29 -!- jarsen [~jarsen@76.8.206.128] has quit [Remote host closed the connection] 05:29 < jessta_> I'd have to agree that yaml is horrible 05:39 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 05:39 -!- mode/#go-nuts [+v iant] by ChanServ 05:41 -!- noodles775 [~michael@g225070002.adsl.alicedsl.de] has joined #go-nuts 05:41 -!- noodles775 [~michael@g225070002.adsl.alicedsl.de] has quit [Changing host] 05:41 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts 05:41 -!- nteon [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 05:51 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds] 06:12 -!- napsy [~luka@193.2.66.6] has joined #go-nuts 06:18 -!- noam [noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 250 seconds] 06:24 -!- photron [~photron@port-92-201-23-24.dynamic.qsc.de] has joined #go-nuts 06:26 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts 06:28 -!- tvw [~tv@e176005158.adsl.alicedsl.de] has joined #go-nuts 06:32 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has left #go-nuts [] 06:37 -!- fvbommel [~fvbommel_@86.86.15.250] has quit [Ping timeout: 276 seconds] 07:23 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has quit [Read error: Connection reset by peer] 07:28 -!- ronnyy [~quassel@p4FF1C432.dip0.t-ipconnect.de] has joined #go-nuts 07:30 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 07:30 -!- _dfc [~dfc@eth59-167-133-99.static.internode.on.net] has quit [Ping timeout: 252 seconds] 07:31 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 07:31 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has joined #go-nuts 07:37 -!- boscop_ [~boscop@g226226022.adsl.alicedsl.de] has joined #go-nuts 07:37 -!- fvbommel [~fvbommel_@131.155.71.85] has joined #go-nuts 07:37 -!- boscop [~boscop@unaffiliated/boscop] has quit [Ping timeout: 255 seconds] 07:39 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout: 612 seconds] 07:41 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has joined #go-nuts 07:47 < vegai> I feel like I'm reading a file in a slightly too complex way 07:47 < vegai> I have a LineReader, and I iterate through the file like so: 07:47 < vegai> for line, _, _ := myReader.ReadLine(); line != nil; line, _, _ := myReader.ReadLine() { ... } 07:48 < vegai> there's certainly a way to avoid the repetition, isn't there? 07:50 < str1ngs> vegai: yes you can break on nil 07:50 < elimisteve> vegai: here's how I read a file -- http://pastie.org/2002274 07:50 < str1ngs> for { line,_,_ := myReader.Readline(); if line == nil { break } } 07:52 < vegai> hmm, have to take a look at how for exactly worked again in go:) 07:52 < vegai> elimisteve: my files are several gigabytes in size.. 07:52 < str1ngs> vegai: also check out http://golang.org/pkg/bytes/#Buffer.ReadBytes 07:53 < str1ngs> vegai: which is faster then ReadLine iirc and iirc ReadLine is going to be depricated 07:53 < vegai> oh, ok. I will 07:54 < str1ngs> sorry that might now help 07:54 < str1ngs> that would require you to read into memory 07:55 < vegai> right.. 08:00 < str1ngs> vegai: found it finally http://golang.org/pkg/bufio/#Reader.ReadBytes 08:00 < str1ngs> I think that would be much better for this 08:01 < str1ngs> there is also a ReadLine helper method but you probably dont need it 08:03 < str1ngs> vegai: just need to filter out os.EOF errors with this method 08:04 < str1ngs> ie if err != nil && err != os.EOF 08:04 < vegai> right 08:04 < str1ngs> then break on os.EOF 08:05 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has joined #go-nuts 08:05 < str1ngs> actually proably better to break on os.EOF and then err check. I've since changed to doing that way. 08:07 < str1ngs> vegai: my guess is you are somewhat use to while loops? 08:09 < vegai> I'm actually more used to lazy reading like is usually done in python and haskell 08:09 < str1ngs> ah ya 08:10 -!- eimantas [~eimantas@ip-212-52-52-163.kava.lt] has quit [Quit: eimantas] 08:10 < str1ngs> I find working with byts and readers really nice in go. takes abit to get use to 08:10 < str1ngs> bytes* 08:10 < vegai> this seems a bit lowlevel, especially when compared to python 08:10 < vegai> but possibly better than Haskell and certainly better than C 08:10 < str1ngs> it makes low level easy imo. 08:10 < vegai> yes 08:11 < str1ngs> for example you can daisy chain reader together which is so powerful 08:11 < str1ngs> ie decompress read and write all at once 08:13 < str1ngs> vegai: some of the api is still raw and is being improved. example exec.Run is being reworked 08:13 < str1ngs> so you will see more lazy style api. thats the only example I can think off of hand. 08:13 < vegai> ok 08:14 < str1ngs> basically less boiler plate. 08:18 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 08:19 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 08:23 -!- marko [~marko@2a00:1620:c0:50:66b9:e8ff:feca:1812] has joined #go-nuts 08:26 -!- _dfc [~dfc@124-171-0-244.dyn.iinet.net.au] has joined #go-nuts 08:31 -!- ronnyy [~quassel@p4FF1C432.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 08:33 -!- ParmeGV [~rafa@226.27.18.95.dynamic.jazztel.es] has joined #go-nuts 08:34 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 08:36 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has quit [Quit: Leaving.] 08:39 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|] 08:43 -!- virtualsue [~chatzilla@nat/cisco/x-wiprmxyuhoquawok] has joined #go-nuts 08:47 -!- ParmeGV [~rafa@226.27.18.95.dynamic.jazztel.es] has quit [Quit: leaving] 08:50 -!- arun_ [~arun@unaffiliated/sindian] has quit [Read error: Connection reset by peer] 08:50 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 09:21 -!- tvw [~tv@e176005158.adsl.alicedsl.de] has quit [Remote host closed the connection] 09:31 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has quit [Remote host closed the connection] 09:46 -!- ww [~ww@river.styx.org] has quit [Ping timeout: 240 seconds] 09:46 -!- zcram [~zcram@77-233-91-184.cdma.dyn.kou.ee] has joined #go-nuts 09:47 -!- moraes [~moraes@189.103.188.201] has quit [Read error: Connection reset by peer] 09:51 -!- sacho [~sacho@46.10.4.19] has quit [Ping timeout: 240 seconds] 09:54 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts 09:58 -!- eimantas [~eimantas@81-7-103-30.static.zebra.lt] has joined #go-nuts 09:59 -!- hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has joined #go-nuts 10:04 -!- sacho [~sacho@46.10.4.19] has joined #go-nuts 10:05 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-148-195.clienti.tiscali.it] has joined #go-nuts 10:06 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-148-195.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 10:08 -!- Project_2501 [~Marvin@82.84.92.131] has joined #go-nuts 10:27 -!- eimantas [~eimantas@81-7-103-30.static.zebra.lt] has quit [Quit: eimantas] 10:27 -!- alexc [~alexc@unaffiliated/alexc] has joined #go-nuts 10:28 -!- shvntr [~shvntr@119.121.185.144] has joined #go-nuts 10:30 -!- nannto [~nanto@pee5b70.tokyff01.ap.so-net.ne.jp] has quit [Quit: Leaving...] 10:35 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 10:40 -!- alehorst [~alehorst@189.58.29.189.dynamic.adsl.gvt.net.br] has joined #go-nuts 10:42 -!- kevinwat1 [~kevin@59-125-147-75.HINET-IP.hinet.net] has joined #go-nuts 10:45 -!- kevinwatt [~kevin@59-125-147-75.HINET-IP.hinet.net] has quit [Ping timeout: 258 seconds] 10:50 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-182-144.clienti.tiscali.it] has joined #go-nuts 10:52 -!- ayo [~nya@fuld-590c6abc.pool.mediaWays.net] has joined #go-nuts 10:53 -!- Project_2501 [~Marvin@82.84.92.131] has quit [Ping timeout: 252 seconds] 10:55 -!- ako [~nya@fuld-590c7257.pool.mediaWays.net] has quit [Ping timeout: 250 seconds] 10:55 -!- eimantas [~eimantas@ip-212-52-52-163.kava.lt] has joined #go-nuts 11:01 -!- hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has quit [Quit: Leaving...] 11:02 -!- hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has joined #go-nuts 11:09 -!- zcram [~zcram@77-233-91-184.cdma.dyn.kou.ee] has quit [Quit: Leaving] 11:11 -!- chressie [~chressie@dreggn.in-ulm.de] has quit [Read error: Operation timed out] 11:11 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 11:12 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 11:14 -!- chressie [~chressie@dreggn.in-ulm.de] has joined #go-nuts 11:43 -!- tncardoso [~thiago@189.59.176.217.dynamic.adsl.gvt.net.br] has joined #go-nuts 11:45 -!- hargettp [~hargettp@pool-71-184-185-93.bstnma.east.verizon.net] has quit [Quit: Leaving...] 11:52 -!- ako [~nya@fuld-590c6dd7.pool.mediaWays.net] has joined #go-nuts 11:55 -!- maragato [~robteix@192.55.54.36] has joined #go-nuts 11:55 -!- aho [~nya@fuld-590c6abc.pool.mediaWays.net] has quit [Ping timeout: 250 seconds] 11:57 -!- ronnyy [~quassel@p4FF1C432.dip0.t-ipconnect.de] has joined #go-nuts 11:57 -!- brtk [~brtk@c83-248-35-158.bredband.comhem.se] has quit [Ping timeout: 255 seconds] 11:59 -!- neshaug_ [~oyvind@213.239.108.5] has joined #go-nuts 12:00 -!- maragato [~robteix@192.55.54.36] has quit [Ping timeout: 250 seconds] 12:01 -!- neshaug_ [~oyvind@213.239.108.5] has quit [Client Quit] 12:16 -!- ww [~ww@river.styx.org] has joined #go-nuts 12:19 -!- rputikar [~240182H@203-206-21-179.dyn.iinet.net.au] has joined #go-nuts 12:24 -!- foocraft [~ewanas@78.101.151.175] has joined #go-nuts 12:27 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined #go-nuts 12:35 -!- replore [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #go-nuts 12:44 -!- Nitro [~Nitro@unaffiliated/nitro] has joined #go-nuts 12:51 -!- dlowe [~dlowe@c-66-30-116-162.hsd1.ma.comcast.net] has joined #go-nuts 12:57 -!- replore [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Read error: Connection reset by peer] 13:00 -!- _dfc [~dfc@124-171-0-244.dyn.iinet.net.au] has quit [Ping timeout: 250 seconds] 13:04 -!- replore_ [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #go-nuts 13:06 -!- niemeyer [~niemeyer@200-102-196-125.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 13:10 -!- marko [~marko@2a00:1620:c0:50:66b9:e8ff:feca:1812] has quit [Ping timeout: 255 seconds] 13:10 -!- marko_ [~marko@2a00:1620:c0:50:66b9:e8ff:feca:1812] has joined #go-nuts 13:12 -!- Nitro [~Nitro@unaffiliated/nitro] has quit [Ping timeout: 276 seconds] 13:13 -!- Nitro [~Nitro@unaffiliated/nitro] has joined #go-nuts 13:18 -!- aho [~nya@fuld-590c6dd7.pool.mediaWays.net] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 13:20 -!- dj2 [~dj2@216.16.242.254] has joined #go-nuts 13:24 -!- vzx [~ryan@74-129-201-27.dhcp.insightbb.com] has quit [Quit: WeeChat 0.3.4] 13:25 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit: Leaving.] 13:27 < xyproto> If you could change just one little part of the syntax in Go, what would it be? 13:29 -!- gtaylor [~gtaylor@99-126-136-139.lightspeed.gnvlsc.sbcglobal.net] has joined #go-nuts 13:29 < dlowe> use new() for channels, slices, and maps 13:30 < str1ngs> that would conflict with new objects 13:31 < dlowe> I know new() and make() do different things to the language implementor, but to the language user, its an arbitrary and pointless distinction 13:32 < str1ngs> yes, however go is designed to have minimal compile time overhead. so it might have been easier to use make vs new 13:32 < ww> new == malloc, more or less 13:32 < dlowe> ww: I know the difference already 13:33 < ww> make is more complicated because it does initialisation... 13:33 < ww> dlowe: ok... 13:33 < dlowe> ww: that's something the language implementor wants to care about 13:33 < ww> well.. if we had constructors in some way supported by the language then i could see merging them... 13:33 < Omnivore> new is an allocator, make is a constructor... allocate and construct would've been clearer 13:34 < str1ngs> I like Omnivore suggestion 13:34 -!- fvbommel [~fvbommel_@131.155.71.85] has quit [Ping timeout: 240 seconds] 13:35 < dlowe> When I use a language, I want to express my _intent_. My intent is to get some new object. I don't care about whether or not the object is allocated, where it's allocated, what's involved in the allocation process or whether there's initialization involved 13:35 < dlowe> anyway, it's not a huge wart. 13:35 < Omnivore> and new is shorter to type ;) 13:35 < ww> dlowe: ok, so for that to be consistent, we need constructorsr for user-defined types 13:36 < dlowe> ww: uh, why? 13:36 < dlowe> ww: we don't have them now 13:36 < ww> because if i make a struct MyThing that requires initialisation, and you don't care about that and just want to use new()... 13:37 < ww> new() has to know what to do to initialise it 13:37 < dlowe> ww: make() only knows about language internal structures 13:37 < ww> (fwiw, i almost never use new) 13:37 < dlowe> ww: so it's neither more nor less consistent 13:38 < ww> dlowe: right, but new can be used on user-defined types, make cannot 13:39 < xyproto> Omnivore: I like your suggestion too. 13:40 -!- ParmeGV [~rafa@226.27.18.95.dynamic.jazztel.es] has joined #go-nuts 13:40 -!- iant [~iant@67.218.110.215] has joined #go-nuts 13:40 -!- mode/#go-nuts [+v iant] by ChanServ 13:45 -!- dlowe [~dlowe@c-66-30-116-162.hsd1.ma.comcast.net] has quit [Quit: *poof*] 13:49 -!- fvbommel [~fvbommel_@wlan072069.nbw.tue.nl] has joined #go-nuts 13:49 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has joined #go-nuts 13:54 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts 13:58 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat] 13:58 -!- xb95 [~xb95@dreamwidth/staff/mark] has quit [Read error: Operation timed out] 13:58 -!- mjard [~k@misadventuregames.com] has quit [Read error: Operation timed out] 13:59 -!- adg [~nf@2001:470:21:20::4444:61d9] has quit [Read error: Operation timed out] 13:59 -!- mibocote [~matt@li161-224.members.linode.com] has quit [Read error: Operation timed out] 14:00 -!- adg [~nf@2001:470:21:20::4444:61d9] has joined #go-nuts 14:01 -!- mode/#go-nuts [+o adg] by ChanServ 14:01 -!- mibocote [~matt@li161-224.members.linode.com] has joined #go-nuts 14:01 -!- xulfer [~xulfer@cheapbsd.net] has quit [Quit: quitting] 14:01 -!- piranha [~piranha@D57D1AB3.static.ziggozakelijk.nl] has joined #go-nuts 14:01 -!- xulfer_ [~xulfer@cheapbsd.net] has joined #go-nuts 14:01 -!- juster [~juster@juster.us] has quit [Ping timeout: 246 seconds] 14:02 -!- str1ngs [~strings@unaffiliated/str1ngs] has quit [Ping timeout: 244 seconds] 14:02 -!- mjard [~k@misadventuregames.com] has joined #go-nuts 14:02 -!- juster [~juster@juster.us] has joined #go-nuts 14:02 -!- xb95 [~xb95@qq.is] has joined #go-nuts 14:02 -!- xb95 [~xb95@qq.is] has quit [Changing host] 14:02 -!- xb95 [~xb95@dreamwidth/staff/mark] has joined #go-nuts 14:03 -!- str1ngs [~strings@unaffiliated/str1ngs] has joined #go-nuts 14:03 -!- zeroXten [~zeroXten@0x10.co.uk] has joined #go-nuts 14:06 -!- ParmeGV [~rafa@226.27.18.95.dynamic.jazztel.es] has quit [Ping timeout: 244 seconds] 14:07 -!- maragato [~robteix@192.55.54.36] has joined #go-nuts 14:07 -!- dlowe [~dlowe@ita4fw1.itasoftware.com] has joined #go-nuts 14:09 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 14:10 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 14:11 -!- napsy [~luka@193.2.66.6] has quit [Ping timeout: 240 seconds] 14:18 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has joined #go-nuts 14:18 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts 14:19 -!- adg [~nf@2001:470:21:20::4444:61d9] has quit [Read error: Operation timed out] 14:19 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 276 seconds] 14:19 -!- jarsen [~jarsen@76.8.206.128] has joined #go-nuts 14:20 -!- adg [~nf@2001:470:21:20::4444:61d9] has joined #go-nuts 14:20 -!- mode/#go-nuts [+o adg] by ChanServ 14:21 -!- zanget [~zanget@hurf.durf.me] has quit [Quit: ZNC - http://znc.sourceforge.net] 14:21 -!- kkress_ [~kkress@2001:470:1:41::403e:ad36] has quit [Ping timeout: 255 seconds] 14:21 -!- rphillips [~rphillips@unaffiliated/rphillips] has quit [Ping timeout: 248 seconds] 14:21 -!- zanget [~zanget@hurf.durf.me] has joined #go-nuts 14:22 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 14:23 -!- rphillips [~rphillips@unaffiliated/rphillips] has joined #go-nuts 14:23 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 14:26 -!- jarsen [~jarsen@76.8.206.128] has quit [Remote host closed the connection] 14:26 -!- nrn082000 [~nathan@pool-71-170-43-10.dllstx.fios.verizon.net] has joined #go-nuts 14:28 -!- nrn082000 [~nathan@pool-71-170-43-10.dllstx.fios.verizon.net] has left #go-nuts [] 14:30 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 246 seconds] 14:31 -!- kkress [~kkress@2001:470:1:41::403e:ad36] has joined #go-nuts 14:32 -!- fvbommel [~fvbommel_@wlan072069.nbw.tue.nl] has quit [Ping timeout: 248 seconds] 14:33 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts 14:39 -!- TheCritic [~TheCritic@c-24-30-34-40.hsd1.ga.comcast.net] has joined #go-nuts 14:40 -!- kkress [~kkress@2001:470:1:41::403e:ad36] has quit [Ping timeout: 248 seconds] 14:41 -!- kkress [~kkress@2001:470:1:41::403e:ad36] has joined #go-nuts 14:41 < TheCritic> Question regarding this code: http://pastebin.com/UkHVTHUq 14:41 < TheCritic> how would the IF line be read in english when speaking it to a developer friend? 14:41 < TheCritic> minus the unicode part, I get that. 14:42 < str1ngs> TheCritic: there is no if line here do you mean for line? 14:43 < TheCritic> on a related note, are you familiar with a tutorial that explains how to read go.... that may be even more helpful 14:43 < TheCritic> yes, the for line 14:43 < TheCritic> sorry 14:43 < TheCritic> str1ngs: thanks for asking, sorry for the error 14:43 < str1ngs> TheCritic: the toturial page and the effective go page 14:43 < str1ngs> the for line reads in english 14:44 < str1ngs> for each key value of string print character and position 14:44 < TheCritic> cool 14:44 < TheCritic> this si from the effective go page 14:44 < TheCritic> I am reading it now,and it helps to learn how to read the code... 14:44 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-182-144.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 14:45 < TheCritic> so range returns 2 values 14:45 < str1ngs> yes 14:45 < str1ngs> some functions can return more then two 14:45 < TheCritic> and has some iterating magic built in 14:45 < str1ngs> the are seperated by commas 14:46 < str1ngs> range is the magic yes 14:46 < str1ngs> I'll assume you are translating for a techincal user? 14:46 < TheCritic> no, reading for understanding. I am a new go developer (maybe, if I don't give up) 14:47 < TheCritic> I have a personal project I am trying in go 14:47 < str1ngs> ah ok my bad I misunderstood 14:47 < TheCritic> learn by doing 14:47 < str1ngs> just ask any questions 14:47 < TheCritic> thanks 14:47 < TheCritic> You gave me what I need, very helpful... I'm back to reading now, thanks very much 14:47 < TheCritic> str1ngs++ 14:49 -!- fvbommel [~fvbommel_@ip212-238-70-133.hotspotsvankpn.com] has joined #go-nuts 14:51 < TheCritic> the for statement is more complex than I am used to. 14:54 < str1ngs> you will get use to it. 14:55 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has left #go-nuts [] 14:56 -!- iant [~iant@67.218.110.215] has quit [Quit: Leaving.] 15:00 < TheCritic> probably... I like a lot about go already... 15:00 -!- fvbommel [~fvbommel_@ip212-238-70-133.hotspotsvankpn.com] has quit [Ping timeout: 276 seconds] 15:01 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has joined #go-nuts 15:01 -!- imsplitbit [~imsplitbi@64.39.4.132] has joined #go-nuts 15:05 -!- Loonacy [~loonacy@c-67-172-248-248.hsd1.ut.comcast.net] has quit [Ping timeout: 248 seconds] 15:05 -!- aat [~aat@rrcs-184-75-54-130.nyc.biz.rr.com] has joined #go-nuts 15:05 -!- iant [~iant@nat/google/x-gzoppnimiyqtuexw] has joined #go-nuts 15:05 -!- mode/#go-nuts [+v iant] by ChanServ 15:07 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Ping timeout: 240 seconds] 15:07 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined #go-nuts 15:16 -!- ParmeGV [~rafa@226.27.18.95.dynamic.jazztel.es] has joined #go-nuts 15:19 -!- kinofcain [~KinOfCain@173-228-28-118.dsl.dynamic.sonic.net] has quit [Quit: kinofcain] 15:21 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Read error: Operation timed out] 15:24 -!- noodles775 [~michael@g225070014.adsl.alicedsl.de] has joined #go-nuts 15:24 -!- noodles775 [~michael@g225070014.adsl.alicedsl.de] has quit [Changing host] 15:24 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts 15:25 -!- Baughn [~svein@2002:5965:d1f2::1] has joined #go-nuts 15:25 -!- piranha [~piranha@D57D1AB3.static.ziggozakelijk.nl] has quit [Quit: Computer has gone to sleep.] 15:26 < Baughn> I'm trying to pass an array of values-that-can-be-printed to a function, which should then print each value. Taking my cue from fmt.Sprint, I made 'func logArray(arr []interface{})' (which seems awfully unspecific), but while Go seems happy enough about the function it refuses to let me pass a []uint64 array to it. What should I do? 15:26 -!- xash [~xash@d062240.adsl.hansenet.de] has joined #go-nuts 15:27 -!- replore_ [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote host closed the connection] 15:28 -!- tncardoso [~thiago@189.59.176.217.dynamic.adsl.gvt.net.br] has quit [Quit: bye] 15:33 < exch> Baughn: you can't implicitely convert []uint64 to []interface{}. Those are distinctly different types. You can change []interface{} to just interface{}. Then do a type switch on 'arr' to see what value it actually contains 15:33 -!- replore [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #go-nuts 15:34 < exch> You can also define your own []uint64 type and give it a String() method which will be called by Printf and friends when the %v or %s options are specified 15:35 < exch> type MySlice []uint64; func (a MySlice) String() string { /* do manual string building here*/ } 15:35 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined #go-nuts 15:38 -!- Adys [~Adys@unaffiliated/adys] has quit [Read error: Connection reset by peer] 15:41 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 15:41 -!- xash [~xash@d062240.adsl.hansenet.de] has quit [Quit: ~] 15:43 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined #go-nuts 15:43 -!- alexc [~alexc@unaffiliated/alexc] has quit [Quit: WeeChat 0.3.4] 15:44 -!- kinofcain [~KinOfCain@h-64-105-141-42.snvacaid.static.covad.net] has joined #go-nuts 15:45 -!- shvntr [~shvntr@119.121.185.144] has quit [Ping timeout: 276 seconds] 15:49 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts 15:52 < xyproto> How can I combine two slices, l1 [64]int and l2 [64] int ? 15:52 < xyproto> With append? 15:53 -!- iant [~iant@nat/google/x-gzoppnimiyqtuexw] has quit [Quit: Leaving.] 15:53 < xyproto> I wish to take the first 32 elements from l1 and the 32 last elements from l2 and then put them into one slice/array/list 15:55 < xyproto> ok, nvm, seems like copy() is what I'm looking for 15:56 -!- fvbommel [~fvbommel_@86.86.15.250] has joined #go-nuts 15:56 -!- sunfmin [~sunfmin@115.197.43.253] has joined #go-nuts 15:58 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 16:04 -!- brad_ [~brad@cpe-071-070-223-193.nc.res.rr.com] has joined #go-nuts 16:04 < mpl> xyproto: and I think with append ... you could do that too. 16:05 < xyproto> mpl: yes, you're right. My problem was that I forgot the ... syntax. All good now. Thx :) 16:06 < mpl> np 16:09 -!- binarii [~binary@80.239.96.162] has joined #go-nuts 16:10 -!- maragato [~robteix@192.55.54.36] has quit [Remote host closed the connection] 16:11 -!- maragato [~robteix@192.55.54.36] has joined #go-nuts 16:12 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Quit: leaving] 16:12 -!- tncardoso [~thiagon@150.164.2.20] has joined #go-nuts 16:17 -!- dj2_ [~dj2@216.16.242.254] has joined #go-nuts 16:17 -!- dj2 [~dj2@216.16.242.254] has quit [Ping timeout: 260 seconds] 16:21 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the connection] 16:27 -!- dj2 [~dj2@216.16.242.254] has joined #go-nuts 16:29 -!- dj2_ [~dj2@216.16.242.254] has quit [Ping timeout: 250 seconds] 16:36 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 16:36 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has quit [Ping timeout: 276 seconds] 16:37 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 276 seconds] 16:40 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 16:40 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has joined #go-nuts 16:41 -!- ronnyy [~quassel@p4FF1C432.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 16:42 < exch> meh. Go's http.ServeFile fails when it's supplied a gzipped response stream and the file to write is exactly less than 255 bytes. but only on specific files. Sometimes it sends only partial content, other times it refuses outright and closes the connection. I'm trying to pin down exactly where things go wrong, but it's hard when a file yields on result when its in the server root, and a completely different result when it's in a subdirectory 16:43 < exch> For the record, it uses this approach to supply the gzipped writer: http://nf.id.au/roll-your-own-gzip-encoded-http-handler 16:44 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 16:44 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit [Ping timeout: 276 seconds] 16:47 -!- dj2_ [~dj2@216.16.242.254] has joined #go-nuts 16:47 -!- Venom_X [~pjacobs@66.54.185.130] has joined #go-nuts 16:47 -!- dj2 [~dj2@216.16.242.254] has quit [Ping timeout: 260 seconds] 16:56 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has joined #go-nuts 16:56 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 16:59 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 17:01 -!- ParmeGV [~rafa@226.27.18.95.dynamic.jazztel.es] has quit [Quit: leaving] 17:02 -!- ParmeGV [~rafa@226.27.18.95.dynamic.jazztel.es] has joined #go-nuts 17:10 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 17:10 -!- sunfmin [~sunfmin@115.197.43.253] has quit [Quit: sunfmin] 17:12 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-182-144.clienti.tiscali.it] has joined #go-nuts 17:15 -!- replore [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote host closed the connection] 17:16 -!- Sep102__ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has joined #go-nuts 17:20 -!- iant [~iant@nat/google/x-jrojnrqkwmyaqgrt] has joined #go-nuts 17:20 -!- mode/#go-nuts [+v iant] by ChanServ 17:20 -!- Sep102_ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has quit [Ping timeout: 252 seconds] 17:38 -!- jeng [~jeng@74.194.1.28] has joined #go-nuts 17:48 -!- marko_ [~marko@2a00:1620:c0:50:66b9:e8ff:feca:1812] has quit [Ping timeout: 255 seconds] 17:48 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 17:49 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined #go-nuts 17:50 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 240 seconds] 17:53 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 17:53 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has left #go-nuts [] 17:53 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 248 seconds] 17:55 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 17:57 -!- tncardoso [~thiagon@150.164.2.20] has quit [Quit: Leaving] 17:58 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 17:58 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 258 seconds] 17:59 -!- iant [~iant@nat/google/x-jrojnrqkwmyaqgrt] has quit [Ping timeout: 248 seconds] 18:00 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 248 seconds] 18:01 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:02 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 18:03 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:05 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:06 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 18:06 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 250 seconds] 18:07 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 18:08 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:09 < exch> yay, figured it out. http.ServeFile fails with gzip streams because it sets the Content-Length header to the size of the uncompressed file 18:09 < exch> browser thinks it got partial data and consequently asks the server for more 18:09 < exch> which doesnt exist 18:10 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:11 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 244 seconds] 18:12 -!- iant [~iant@nat/google/x-majrjjpqjyrdvqsg] has joined #go-nuts 18:13 -!- mode/#go-nuts [+v iant] by ChanServ 18:13 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:13 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 258 seconds] 18:14 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 18:15 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:17 -!- replore_ [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has joined #go-nuts 18:18 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts 18:18 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:18 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 260 seconds] 18:20 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:21 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 244 seconds] 18:23 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-154-196.clienti.tiscali.it] has joined #go-nuts 18:23 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:24 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 276 seconds] 18:24 -!- keithcascio [~keithcasc@nat/google/x-pfpitwxermaegkbg] has joined #go-nuts 18:25 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 18:25 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-182-144.clienti.tiscali.it] has quit [Ping timeout: 260 seconds] 18:26 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:26 -!- tncardoso [~thiago@189.59.176.217.dynamic.adsl.gvt.net.br] has joined #go-nuts 18:27 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-154-196.clienti.tiscali.it] has quit [Client Quit] 18:27 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 18:29 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:30 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 18:30 -!- ronnyy [~quassel@p4FF1C432.dip0.t-ipconnect.de] has joined #go-nuts 18:31 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:33 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 240 seconds] 18:33 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has joined #go-nuts 18:34 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined #go-nuts 18:34 -!- virtualsue [~chatzilla@nat/cisco/x-wiprmxyuhoquawok] has quit [Ping timeout: 240 seconds] 18:36 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:36 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 240 seconds] 18:37 -!- replore_ [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit [Remote host closed the connection] 18:37 -!- ronnyy [~quassel@p4FF1C432.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 18:38 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:40 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 18:41 -!- virtualsue [~chatzilla@host81-148-98-238.in-addr.btopenworld.com] has joined #go-nuts 18:43 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 18:45 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:48 < exch> http://code.google.com/p/go/issues/detail?id=1905 that took some doing to figure out >< 18:48 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 18:51 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 246 seconds] 18:54 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 276 seconds] 18:55 -!- ExsysTech [~ExsysTech@50.46.213.60] has joined #go-nuts 18:56 -!- kr [~Keith@204.14.152.118] has joined #go-nuts 19:01 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:01 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 240 seconds] 19:01 -!- ExsysTech [~ExsysTech@50.46.213.60] has quit [Read error: Connection reset by peer] 19:02 -!- virtualsue [~chatzilla@host81-148-98-238.in-addr.btopenworld.com] has quit [Read error: Connection reset by peer] 19:03 -!- virtualsue [~chatzilla@nat/cisco/x-axemkzjgvftopdsp] has joined #go-nuts 19:03 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:04 -!- kr [~Keith@204.14.152.118] has quit [Quit: WeeChat 0.3.4] 19:04 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Ping timeout: 240 seconds] 19:05 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 19:06 -!- tvw [~tv@e176005158.adsl.alicedsl.de] has joined #go-nuts 19:06 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:07 -!- KingPhilroy [~kingphilr@68-116-192-86.dhcp.oxfr.ma.charter.com] has joined #go-nuts 19:07 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 19:08 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:10 -!- alehorst [~alehorst@189.58.29.189.dynamic.adsl.gvt.net.br] has quit [Ping timeout: 250 seconds] 19:11 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 252 seconds] 19:11 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:13 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 19:14 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:15 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 19:16 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:17 -!- alehorst [~alehorst@189.58.29.189.dynamic.adsl.gvt.net.br] has joined #go-nuts 19:18 -!- moraes [~moraes@189.103.188.201] has quit [Read error: Connection reset by peer] 19:19 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:19 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts 19:19 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 19:20 -!- dlowe [~dlowe@ita4fw1.itasoftware.com] has quit [Quit: Leaving.] 19:21 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:21 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 258 seconds] 19:24 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:24 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 19:25 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 19:25 -!- huin [~huin@91.85.171.238] has joined #go-nuts 19:26 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:28 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Quit: Computer has gone to sleep.] 19:29 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 19:31 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:32 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 19:34 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:36 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 19:36 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:39 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 250 seconds] 19:39 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:40 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 19:41 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:44 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 240 seconds] 19:44 -!- rcrowley [~rcrowley@c-67-174-197-71.hsd1.ca.comcast.net] has joined #go-nuts 19:45 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 19:46 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:48 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat] 19:50 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 19:51 -!- iant [~iant@nat/google/x-majrjjpqjyrdvqsg] has quit [Quit: Leaving.] 19:51 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:52 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has quit [Remote host closed the connection] 19:54 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:55 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 19:58 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 19:59 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:59 -!- skelterjohn|work [~jasmuth@dice.rutgers.edu] has joined #go-nuts 20:00 < skelterjohn|work> anyone here use go+mingw? they gave me a windows machine for my summer internship and i'm trying to make due 20:00 < exch> poor man 20:00 < skelterjohn|work> i've got everything to work but goinstall 20:00 < skelterjohn|work> it's complaining that it can't find gomake in $PATH 20:00 < skelterjohn|work> but... running gomake from the mingw command line works fine 20:02 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:04 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:04 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 20:05 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 20:06 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:07 -!- skelterjohn|work [~jasmuth@dice.rutgers.edu] has quit [Quit: using sirc version 2.211+ssfe] 20:08 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 20:08 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|] 20:09 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:10 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 20:11 -!- adu [~ajr@64.134.100.77] has joined #go-nuts 20:11 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:14 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:14 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 250 seconds] 20:17 -!- kr [~Keith@204.14.152.118] has joined #go-nuts 20:17 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:17 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 276 seconds] 20:19 -!- skelterjohn|work [~jasmuth@dice.rutgers.edu] has joined #go-nuts 20:19 < skelterjohn|work> d/c'd by accident, in case anyone had a suggestion for my mingw/goinstall issue 20:19 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:20 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 260 seconds] 20:20 -!- maragato [~robteix@192.55.54.36] has quit [Ping timeout: 260 seconds] 20:21 < prudhvi> Are there any performance differences between running http.ServeHttp and using http/fcgi.Serve ? 20:21 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 20:22 < skelterjohn|work> prudhvi: cgi servers are all about running command line programs, aren't they? 20:22 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:22 < skelterjohn|work> http will serve arbitrary data as defined by your handler functions 20:22 < skelterjohn|work> looking at the godoc, i'm not really sure what the fcgi package does (i am not a web dev though) 20:23 < prudhvi> Yes, i mean number of connections handled per second. 20:23 < prudhvi> from fcgi.Serve the docs say that a new service thread is created for each. 20:24 < skelterjohn|work> that is also true for http.Serve 20:24 < prudhvi> is that a thread as opposed to a goroutine? 20:24 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:24 < skelterjohn|work> it's referring to goroutines, i'm pretty sure 20:24 < skelterjohn|work> but i'm not looking at the source 20:25 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 258 seconds] 20:25 < skelterjohn|work> there is no way, in pure go, to explicitly create a thread. you can create a new process using os.StartProcess or exec.Run, but that serves a different purpose 20:25 < prudhvi> okay, it looks like they are goroutines. 20:26 < prudhvi> i was confused for a bit. 20:26 < skelterjohn|work> there is a bit of divergence of vocabulary 20:26 < skelterjohn|work> but in almost every case, in the context of go code, thread means goroutine 20:27 < prudhvi> correct. 20:27 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 240 seconds] 20:27 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:27 < KirkMcDonald> Unless you're talking about GOMAXPROCS. 20:28 < skelterjohn|work> right - good exception catch 20:28 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 20:29 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:32 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:32 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 260 seconds] 20:34 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 20:34 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:35 -!- alehorst [~alehorst@189.58.29.189.dynamic.adsl.gvt.net.br] has quit [Quit: Leaving.] 20:35 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 20:36 < TheCritic> Help me parse this: 20:36 < TheCritic> func (file *File) Write(b []byte) (n int, err Error) 20:36 < TheCritic> it is a function 20:36 < TheCritic> Write is the name 20:36 < uriel> 20:37 < TheCritic> it takes b []byte as a parameter 20:37 < skelterjohn|work> so far so good 20:37 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:37 < TheCritic> it returns n int, and err Error 20:37 < skelterjohn|work> yep 20:37 < Namegduf> And file *File is a reciever 20:37 < TheCritic> what is file *File for? 20:37 < Namegduf> (Making it a method) 20:37 < skelterjohn|work> if you have a thing of type *File 20:37 < skelterjohn|work> var f *File 20:37 < skelterjohn|work> you can call f.Write(aByteSlice) 20:37 < Namegduf> It's a receiver, a thing that the function is to be a method on. 20:38 < TheCritic> ah 20:38 < Namegduf> You can use it like a parameter 20:38 < Namegduf> i.e. "file" is a variable scoped to the function when it is called 20:38 < TheCritic> I am suprised it is not denoted using xxx.File 20:39 < TheCritic> isnt it important where the .File comes from? 20:39 < skelterjohn|work> i'm note sure why that is a desirable syntax 20:39 < TheCritic> like, which library? 20:39 < skelterjohn|work> do you mean "func File.Write(b []byte) <etc>"? 20:39 < TheCritic> ok, so in this: func (file *File) Write(b []byte) (n int, err Error) 20:39 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 240 seconds] 20:39 < skelterjohn|work> TheCritic: it is only a method on things of type whatever.File, where whatever is the package in which this method is defined 20:39 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:39 < Namegduf> TheCritic: It is ALWAYS the current one. 20:39 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-154-196.clienti.tiscali.it] has joined #go-nuts 20:40 < Namegduf> You can't define methods on types which aren't defined in the current package. 20:40 < skelterjohn|work> if you have package x and y, x.File and y.File are completely different types 20:40 < skelterjohn|work> that too. 20:40 < TheCritic> I am reading this: http://golang.org/doc/effective_go.html#functions 20:40 < TheCritic> one sec, work requires me... (sux) 20:41 -!- Sep102_ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has joined #go-nuts 20:42 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:42 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 252 seconds] 20:43 < TheCritic> ah, File.Write is the object, and Write is the method... 20:43 < TheCritic> excuse me 20:44 < TheCritic> os.File is the object 20:44 < skelterjohn|work> os.File is the type of the object 20:44 < TheCritic> Write is the method 20:44 -!- Sep102__ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has quit [Ping timeout: 246 seconds] 20:44 < Namegduf> No object. 20:44 < Namegduf> os.File is the type 20:45 < Namegduf> Write is a method on it 20:45 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 20:45 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:45 < Namegduf> "objects" are usually instances of types or some subset of types 20:45 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined #go-nuts 20:45 < Namegduf> os.File is a type, not an instance of a type. 20:45 < TheCritic> I the signature of *File.Write in package os would have been func (file *os.File) Write(b []byte) (n int, err Error) 20:45 < TheCritic> I would have thought the signature of *File.Write in package os would have been func (file *os.File) Write(b []byte) (n int, err Error) 20:46 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 20:46 < skelterjohn|work> you don't need to name the package when you're in the package 20:46 < TheCritic> ah 20:46 < skelterjohn|work> while in the os package, you always refer to the type as File, not os.File 20:46 < TheCritic> makes sense 20:46 < skelterjohn|work> you could, in fact, import another package with the name os 20:46 < skelterjohn|work> and use its file 20:46 < Namegduf> TheCritic: Same way it's Error, not os.Error 20:47 < Namegduf> For the return value. 20:47 < Namegduf> Method receivers aren't special, they're basically just a single, separate parameter 20:47 < Namegduf> In terms of the behaviour of writing the function. 20:48 < TheCritic> I think I am on the cusp of understanding... 20:48 < TheCritic> one more question... 20:49 -!- fumon [~fumon@206.248.173.89] has quit [Ping timeout: 248 seconds] 20:49 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 20:53 -!- jeng [~jeng@74.194.1.28] has quit [Quit: ChatZilla 0.9.86.1 [Firefox 4.0.1/20110413222027]] 20:53 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 252 seconds] 20:54 -!- dj2_ [~dj2@216.16.242.254] has quit [Remote host closed the connection] 20:54 < TheCritic> my pet project is to do a directory sync tool in go.... 20:55 < TheCritic> so here is my code snipit so far 20:55 < TheCritic> http://pastebin.com/Jm0tkuk5 20:55 -!- unit3 [~Unit3@76.77.91.41] has joined #go-nuts 20:55 < TheCritic> It works because I have ripped a piece from someone elses github... but there is a piece I dont understand... 20:56 < TheCritic> filepath.Walk(path, v, v) 20:56 < TheCritic> it seems to call VistFile and VisitDir correctly 20:56 < TheCritic> but I don't know why 20:56 -!- ParmeGV [~rafa@226.27.18.95.dynamic.jazztel.es] has quit [Quit: leaving] 20:56 < skelterjohn|work> um 20:56 < skelterjohn|work> why wouldn't it do that? 20:57 -!- imsplitbit [~imsplitbi@64.39.4.132] has quit [Quit: Bye!] 20:57 < skelterjohn|work> filepath's 2nd parameter is an interface that specifies the VisitDir and VisitFile methods 20:57 < skelterjohn|work> if you look at the code for filepath.Walk, it calls those functions when appropriate 20:57 < TheCritic> ah 20:58 < skelterjohn|work> is the confusion related to interfaces in general? 20:58 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 20:58 < TheCritic> so whatever object I pass to Walk, it must have a VisitFile and VisitDir methods 20:58 < skelterjohn|work> that's right 20:58 < skelterjohn|work> or else it won't compile 20:59 < TheCritic> I went here to look at the docs on Walk http://golang.org/pkg/path/filepath/ 20:59 < TheCritic> and it did not mention the methods required 21:00 < skelterjohn|work> that's a good place to go 21:00 < skelterjohn|work> it does implicitly 21:00 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:00 < skelterjohn|work> if you check the type of the 2nd parameter, it's an interface type 21:00 < skelterjohn|work> in the same page you should see the definition of that interface 21:00 < TheCritic> wow 21:00 < TheCritic> ok, it does 21:01 < TheCritic> when I ready it the first time, I didnt understand it... it is funny how the mind just skips things it does not understand... 21:01 < TheCritic> thanks 21:01 < ww> quick strawpoll: kludge path/filepath tests with if strings.HasPrefix(os.Cwd(), "/afs/") { return } ? 21:01 < TheCritic> that is all for now, I will keep reading.... 21:01 < skelterjohn|work> ww: ew 21:01 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 21:02 < skelterjohn|work> ww: what is it about afs that messes everything up? 21:02 < ww> it has its own acl system and basically ignores the unix one 21:02 < skelterjohn|work> what's an acl system 21:02 < ww> for some things, like x on directories 21:02 < ww> skelterjohn|work: permissions 21:03 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:03 < ww> because access is mediated by things-related-to-kerberos-tokens and not user/group id 21:05 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 258 seconds] 21:05 < ww> otherwise you'd be able to take your own machine, connect to an afs cell and mess with other people's files as root 21:05 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:06 -!- virtualsue [~chatzilla@nat/cisco/x-axemkzjgvftopdsp] has quit [Read error: Operation timed out] 21:06 < skelterjohn|work> is that a problem? 21:06 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 21:06 < ww> yes, afs is global, distribued thing 21:07 -!- imsplitbit [~imsplitbi@64.39.4.132] has joined #go-nuts 21:07 -!- exch [~blbl@87.209.181.34] has quit [Ping timeout: 252 seconds] 21:07 < skelterjohn|work> (jk) 21:07 < ww> :) 21:07 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:08 < ww> i don't really see a way to fix it other than disabling the tests or teaching go a lot more about afs than is reasonable 21:09 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 21:09 < skelterjohn|work> is the failed test causing that much of an issue? 21:09 < ww> not really, it just means that ./all.bash blows up 21:10 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:10 < ww> after it has finished building and installing everything, so it still works... 21:10 -!- huin [~huin@91.85.171.238] has quit [Quit: bedtime] 21:10 < skelterjohn|work> you can also use make.bash instead 21:10 < skelterjohn|work> to skip the tests altogether 21:10 < skelterjohn|work> takes only a minute to build instead of 5 (for me) 21:10 < ww> yes, i often do that 21:12 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:12 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 244 seconds] 21:13 -!- virtualsue [~chatzilla@host81-148-98-238.in-addr.btopenworld.com] has joined #go-nuts 21:13 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 21:15 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:17 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 240 seconds] 21:17 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:18 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 21:20 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:21 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 21:22 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:24 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 21:25 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:26 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 21:27 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Quit: leaving] 21:27 -!- maragato [~robteix@192.55.54.36] has joined #go-nuts 21:27 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:27 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts 21:28 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has quit [Read error: Connection reset by peer] 21:29 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 21:30 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:30 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined #go-nuts 21:30 -!- virtualsue [~chatzilla@host81-148-98-238.in-addr.btopenworld.com] has quit [Ping timeout: 248 seconds] 21:32 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:32 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 240 seconds] 21:34 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: No route to host] 21:35 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:37 -!- ExsysHost_ [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 246 seconds] 21:38 -!- Nitro [~Nitro@unaffiliated/nitro] has quit [Ping timeout: 248 seconds] 21:39 -!- unit3 [~Unit3@76.77.91.41] has left #go-nuts ["Leaving"] 21:39 -!- imsplitbit [~imsplitbi@64.39.4.132] has quit [Quit: Bye!] 21:39 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:40 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 244 seconds] 21:42 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 21:42 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.5] 21:43 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:43 -!- mogoh [~mogoh@ip-95-222-106-192.unitymediagroup.de] has joined #go-nuts 21:45 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has quit [Quit: Leaving] 21:45 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 21:47 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:49 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 21:50 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:51 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Quit: Computer has gone to sleep.] 21:52 -!- gtaylor [~gtaylor@99-126-136-139.lightspeed.gnvlsc.sbcglobal.net] has quit [Quit: gtaylor] 21:52 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit [Quit: Lost terminal] 21:54 -!- adu [~ajr@64.134.100.77] has quit [Quit: adu] 21:55 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 248 seconds] 21:55 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:56 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 21:57 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 21:57 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has joined #go-nuts 21:58 -!- Sep102__ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has joined #go-nuts 21:58 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 21:59 -!- skelterjohn|work [~jasmuth@dice.rutgers.edu] has quit [Quit: using sirc version 2.211+ssfe] 22:00 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 22:00 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 22:01 -!- Sep102_ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has quit [Ping timeout: 260 seconds] 22:02 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 22:05 -!- tobym [~tobym@cpe-72-229-2-6.nyc.res.rr.com] has quit [Quit: leaving] 22:06 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 22:07 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts 22:07 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 22:15 -!- maragato [~robteix@192.55.54.36] has quit [Ping timeout: 250 seconds] 22:17 -!- brtk [~brtk@c83-248-35-158.bredband.comhem.se] has joined #go-nuts 22:20 < uriel> 22:20 < uriel> dr 22:20 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined #go-nuts 22:21 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.] 22:25 -!- Sep102_ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has joined #go-nuts 22:28 -!- Sep102__ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has quit [Ping timeout: 250 seconds] 22:31 < mogoh> what is here the problem? 22:31 < mogoh> mogoh@leonhard-desktop:~/daten/sourcecode$ goinstall github.com/banthar/Go-SDL 22:31 < mogoh> goinstall: github.com/banthar/Go-SDL: package has no files 22:32 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has quit [Ping timeout: 240 seconds] 22:33 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has joined #go-nuts 22:35 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined #go-nuts 22:37 -!- Venom_X [~pjacobs@66.54.185.130] has quit [Ping timeout: 252 seconds] 22:45 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the Fish] 22:52 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has joined #go-nuts 22:52 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 22:52 -!- photron [~photron@port-92-201-23-24.dynamic.qsc.de] has quit [Ping timeout: 252 seconds] 22:56 < mogoh> well adios 22:56 -!- mogoh [~mogoh@ip-95-222-106-192.unitymediagroup.de] has quit [Quit: Leaving.] 23:07 -!- Narren [~skald@narren.la.net.ua] has joined #go-nuts 23:07 -!- Narren [~skald@narren.la.net.ua] has quit [Client Quit] 23:11 -!- tncardoso [~thiago@189.59.176.217.dynamic.adsl.gvt.net.br] has quit [Quit: bye] 23:14 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts 23:18 -!- kr [~Keith@204.14.152.118] has quit [Ping timeout: 244 seconds] 23:23 -!- superjoe [~andy@ip72-201-206-52.ph.ph.cox.net] has joined #go-nuts 23:23 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 23:24 < superjoe> does go support creating arbitrary data structures, for example a list of dicts? 23:24 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-154-196.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 23:25 < superjoe> actually I'm simply trying to create a 3d array and can't get past the syntax 23:25 -!- kinofcain [~KinOfCain@h-64-105-141-42.snvacaid.static.covad.net] has quit [Quit: kinofcain] 23:26 < elimisteve> superjoe: dicts, as in hash maps (which Python calls dictionaries)? 23:26 < superjoe> elimisteve, yes 23:26 < elimisteve> this should work: type MapList []map[string]string 23:26 < elimisteve> that user-defined type is a slice of maps from strings to strings 23:27 -!- jbooth1 [~jay@209.249.216.2] has quit [Quit: Leaving.] 23:27 < superjoe> my question is, can I instantiate this data type? could I return an anonymous data structure like this from a function? 23:27 < elimisteve> a "slice" is basically growable array 23:28 < elimisteve> 1 sec 23:29 < superjoe> hmm let my try to rephrase my question. how would this python snippet look in go? http://paste.pocoo.org/show/399178/ 23:30 -!- aat [~aat@rrcs-184-75-54-130.nyc.biz.rr.com] has quit [Quit: Computer has gone to sleep.] 23:30 -!- kr [~Keith@204.14.152.118] has joined #go-nuts 23:30 -!- jarsen [~jarsen@76.8.206.128] has joined #go-nuts 23:30 -!- Dr_Who [~tgall@linaro/tgall-foo] has quit [Ping timeout: 260 seconds] 23:32 -!- iant [~iant@67.218.110.215] has joined #go-nuts 23:32 -!- mode/#go-nuts [+v iant] by ChanServ 23:32 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has joined #go-nuts 23:34 < |Craig|> superjoe: create the map with make, then add your slices to it 23:34 < elimisteve> superjoe: http://pastebin.com/XYmri7N2 23:34 < superjoe> that's a lot of boiler plate 23:34 < elimisteve> viewing your paste now... 23:35 < elimisteve> you said returned from a function so that's what I did 23:35 < superjoe> yeah this is very helpful, thank you 23:35 < |Craig|> the MapList type declaration is not needed, you could just use []map[string]string everywhere 23:36 < superjoe> ok 23:37 < elimisteve> yeah I didn't know if you wanted them named 23:37 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has joined #go-nuts 23:37 < superjoe> this is a great example 23:38 < |Craig|> superjoe: your python code is closer to map[int][]String (map from int to string slice) 23:38 < |Craig|> oh, map[String][]int 23:40 -!- jarsen [~jarsen@76.8.206.128] has quit [Remote host closed the connection] 23:42 -!- robteix_ [~robteix@host40.201-253-152.telecom.net.ar] has joined #go-nuts 23:43 < superjoe> so is this how I would do a 3d array of bools? http://paste.pocoo.org/show/399180/ 23:43 < superjoe> it's kind of annoying to type []bool [][]bool everywhwere 23:44 < |Craig|> superjoe: you may find this useful: http://golang.org/doc/go_spec.html#Composite_literals 23:45 -!- Loonacy [~loonacy@c-67-172-248-248.hsd1.ut.comcast.net] has joined #go-nuts 23:45 < superjoe> thanks 23:45 < |Craig|> and remember, you can make custom types to do what you need more cleanly, and add methods to them 23:46 -!- rputikar [~240182H@203-206-21-179.dyn.iinet.net.au] has quit [Quit: rputikar] 23:46 < |Craig|> you may want to just use a []bool, and put it in a struct that stores the diminsions and has methods for messing with it 23:47 -!- kr [~Keith@204.14.152.118] has quit [Ping timeout: 260 seconds] 23:48 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit [Quit: Leaving] 23:48 -!- kr [~Keith@204.14.152.118] has joined #go-nuts 23:49 < |Craig|> superjoe: here is a very crude and old 2D array of bools implemented using the bits from uint64s 23:49 < |Craig|> https://github.com/Craig-Macomber/goFlame/blob/master/bitTable.go 23:49 < superjoe> hmm 23:50 < elimisteve> superjoe: Python was my favorite language. Go recently became #1 :-) 23:51 -!- angasule [~angasule@190.2.33.49] has quit [Read error: Connection reset by peer] 23:51 < superjoe> elimisteve, cool, what about the language did you like more than python? 23:51 < |Craig|> Python was also my favorite, but now its pretty even with Go 23:51 < |Craig|> Go is safe, and fast 23:51 < |Craig|> and concurrent 23:52 < elimisteve> superjoe: the concurrency primitives are brilliantly simple 23:52 < elimisteve> no such thing in Python, not even close 23:52 < superjoe> when you say go is "safe," what exactly do you mean? 23:52 < |Craig|> python is not type safe (and both are memory safe) 23:52 < |Craig|> not statically anyway 23:53 < superjoe> |Craig|, you're saying because anyone can monkey patch the main libraries? 23:53 < superjoe> someone can set None to True or something like that? is that what you're saying is not safe? 23:53 < elimisteve> statically typed languages are faster, but they've always been so cumbersome. Go uses type inference all over the place so you don't have do any Java-style Object o = new Object(); crap 23:53 < elimisteve> more like o := Object() 23:54 < superjoe> I agree type inference is nice 23:54 < superjoe> fast compilation is pleasant as well 23:54 < |Craig|> I make silly type errors in python all the time, or people pass the wrong things, and in go, that cant happen. Also, making typos and creating new variables instead of resigning them won't happen with go either. 23:54 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 248 seconds] 23:55 < superjoe> I see 23:56 < |Craig|> I also find code I've written in go tends to be more legible, but I think thats partially because in python my style is pretty bad. Alwayse knowing the types from the source does save a lot of commenting though 23:57 -!- napsy [~luka@88.200.96.18] has quit [Read error: Operation timed out] 23:57 < superjoe> I agree, sometimes I feel handicapped in python not knowing the type, and it's not always easy to inspect at runtime 23:57 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 23:58 < superjoe> I think that the compiler should have been able to use type inference on that last paste I did though 23:58 < superjoe> I shouldn't have to use bool[][] and bool[] 23:59 < superjoe> I've already declared it [][][]bool which tells it what the data structure is going to be 23:59 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has joined #go-nuts --- Log closed Thu Jun 02 00:00:52 2011