--- Log opened Wed Oct 27 00:00:13 2010 00:00 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 00:13 -!- artefon [~thiago@189.59.176.108.dynamic.adsl.gvt.net.br] has quit [Quit: bye] 00:13 -!- ako [~nya@fuld-4d00d7d4.pool.mediaWays.net] has joined #go-nuts 00:16 -!- aho [~nya@fuld-4d00d0f1.pool.mediaWays.net] has quit [Ping timeout: 240 seconds] 00:18 < plexdev> http://is.gd/glgdU by [Rob Pike] in go/src/pkg/gob/ -- gob: must register basic types to store them in interfaces. 00:20 -!- wjlroe [~will@78-86-14-131.zone2.bethere.co.uk] has quit [Quit: Computer has gone to sleep] 00:32 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal] 00:32 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 276 seconds] 00:35 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 00:35 < plexdev> http://is.gd/glhvo by [Andrew Gerrand] in go/misc/dashboard/builder/ -- builder: pass GOHOSTOS and GOHOSTARCH to build 00:46 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined #go-nuts 00:51 -!- ako [~nya@fuld-4d00d7d4.pool.mediaWays.net] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 00:57 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has quit [Ping timeout: 255 seconds] 01:03 -!- gastal [~gastal@187.106.43.200] has joined #go-nuts 01:04 < gastal> does go have functions to handle big/little endian conversion? 01:04 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 01:05 < exch> gastal: encoding/binary may be of help 01:06 < gastal> exch thanks 01:06 -!- mikespook [~mikespook@219.137.74.11] has joined #go-nuts 01:07 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 01:11 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined #go-nuts 01:11 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts 01:14 -!- Tv [~tv@gige.bur.digisynd.com] has quit [Ping timeout: 264 seconds] 01:21 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 01:24 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 01:25 -!- iant [~iant@66.135.114.72] has joined #go-nuts 01:25 -!- mode/#go-nuts [+v iant] by ChanServ 01:26 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined #go-nuts 01:29 -!- cbeck [cbeck@firefly.cat.pdx.edu] has quit [Read error: Connection reset by peer] 01:31 -!- nomono [~nomono@c-69-136-253-228.hsd1.nj.comcast.net] has joined #go-nuts 01:32 -!- nomono [~nomono@c-69-136-253-228.hsd1.nj.comcast.net] has quit [Remote host closed the connection] 01:35 -!- cbeck [cbeck@firefly.cat.pdx.edu] has joined #go-nuts 01:42 -!- noktoborus_ [debian-tor@gateway/tor-sasl/noktoborus] has joined #go-nuts 01:47 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 01:48 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 01:51 -!- pers3us [~perseus@14.96.112.23] has quit [Ping timeout: 240 seconds] 02:02 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts 02:04 -!- fhs [~fhs@pool-74-101-63-115.nycmny.east.verizon.net] has joined #go-nuts 02:11 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has joined #go-nuts 02:27 -!- raylu [raylu@c-24-131-193-106.hsd1.pa.comcast.net] has joined #go-nuts 02:28 < raylu> i think i'm misunderstanding http://golang.org/src/pkg/html/escape.go#L110 02:28 < raylu> fmt.Println(output); fmt.Println(html.UnescapeString(output)) 02:28 < raylu> prints the following line twice: 10^20 = 1.0 × 10<sup>20</sup> 02:32 < Tv> raylu: " // TODO(nigeltao): Handle things like "中" or "中". "? 02:32 < raylu> yeah, but this is a 3-digit escape 02:33 < raylu> sorry, wrong link. http://golang.org/pkg/html/#UnescapeString 02:33 < raylu> For example, "á" unescapes to "รก", as does "á" and "&xE1;". 02:33 < Tv> where does it handle any numeric escapes? 02:34 -!- iant [~iant@66.135.114.72] has quit [Ping timeout: 240 seconds] 02:34 < Tv> i may be blind but i'm not seeing anything than entity lookup by string.. 02:35 < raylu> oh. 02:35 < uriel> raylu: I think you probably should fill an issue asking the TODO to be implemented 02:35 < raylu> thanks. heh 02:36 -!- iant [~iant@66.135.114.72] has joined #go-nuts 02:36 -!- mode/#go-nuts [+v iant] by ChanServ 02:41 < raylu> ok. submitted the issue 02:46 -!- gastal [~gastal@187.106.43.200] has quit [Remote host closed the connection] 02:55 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts 03:00 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 03:01 -!- pers3us [~perseus@14.96.112.23] has joined #go-nuts 03:06 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 03:36 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds] 03:38 < plexdev> http://is.gd/glvc5 by [Robert Griesemer] in go/doc/ -- go spec: note re: append() not being implemented yet 03:49 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 272 seconds] 03:50 -!- jdp [~justin@24.238.32.162.res-cmts.segr.ptd.net] has quit [Remote host closed the connection] 03:57 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit: Leaving.] 04:03 -!- jcao219 [~jcao219@pool-96-226-238-248.dllstx.fios.verizon.net] has quit [Ping timeout: 245 seconds] 04:09 -!- zozoR [~zozoR@5634798d.rev.stofanet.dk] has joined #go-nuts 04:10 < plexdev> http://is.gd/glxDC by [Russ Cox] in go/src/pkg/big/ -- big: arm assembly, faster software mulWW, divWW 04:11 < plexdev> http://is.gd/glxDK by [Russ Cox] in 5 subdirs of go/src/ -- 5g, 6g, 8g: generate code for string index 04:14 -!- binarypie [~binarypie@c-24-6-151-185.hsd1.ca.comcast.net] has joined #go-nuts 04:20 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Ping timeout: 252 seconds] 04:21 -!- tensorpudding [~user@99.148.202.191] has quit [Remote host closed the connection] 04:22 -!- tensorpudding [~user@99.148.202.191] has joined #go-nuts 04:27 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has quit [Remote host closed the connection] 04:52 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping timeout: 250 seconds] 04:57 < plexdev> http://is.gd/glC0Y by [Russ Cox] in 27 subdirs of go/src/pkg/ -- use copy 05:02 -!- tensorpudding [~user@99.148.202.191] has quit [Remote host closed the connection] 05:31 -!- binarypie [~binarypie@c-24-6-151-185.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 05:47 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 05:49 -!- bjarneh [~bjarneh@1x-193-157-206-153.uio.no] has joined #go-nuts 05:52 -!- raylu [raylu@c-24-131-193-106.hsd1.pa.comcast.net] has left #go-nuts ["thanks again, Tv"] 06:32 -!- lmoura [~lauromour@186.212.98.206] has quit [Read error: Connection reset by peer] 06:33 -!- lmoura [~lauromour@186.212.102.97] has joined #go-nuts 06:41 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts 06:47 -!- photron [~photron@port-92-201-49-88.dynamic.qsc.de] has joined #go-nuts 06:54 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-152-44.clienti.tiscali.it] has joined #go-nuts 07:25 -!- Fish [~Fish@86.65.182.207] has joined #go-nuts 07:27 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 07:30 -!- zozoR [~zozoR@5634798d.rev.stofanet.dk] has quit [Quit: Morten. Desu~] 07:39 -!- pers3us [~perseus@14.96.112.23] has quit [Ping timeout: 265 seconds] 07:58 -!- wrtp [~rog@92.17.29.2] has joined #go-nuts 08:00 -!- iant [~iant@66.135.114.72] has quit [Ping timeout: 240 seconds] 08:10 -!- lmoura [~lauromour@186.212.102.97] has quit [Ping timeout: 276 seconds] 08:12 -!- lmoura [~lauromour@186.212.105.88] has joined #go-nuts 08:13 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit [Quit: Ex-Chat] 08:17 -!- lmoura [~lauromour@186.212.105.88] has quit [Ping timeout: 245 seconds] 08:19 -!- lmoura [~lauromour@187.59.121.40] has joined #go-nuts 08:22 -!- tvw [~tv@e176000171.adsl.alicedsl.de] has joined #go-nuts 08:28 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has quit [Ping timeout: 276 seconds] 08:28 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined #go-nuts 08:31 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-152-44.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 08:31 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 252 seconds] 08:35 -!- tvw [~tv@e176000171.adsl.alicedsl.de] has quit [Remote host closed the connection] 08:38 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 08:49 -!- bjarneh [~bjarneh@1x-193-157-206-153.uio.no] has quit [Quit: leaving] 08:49 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 09:04 -!- lmoura [~lauromour@187.59.121.40] has quit [Ping timeout: 245 seconds] 09:09 -!- lmoura [~lauromour@187.59.245.133] has joined #go-nuts 09:15 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 09:20 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has joined #go-nuts 09:28 -!- virtualsue [~chatzilla@nat/cisco/x-fpxjvrahmdcssxdm] has joined #go-nuts 09:33 -!- mikespook [~mikespook@219.137.74.11] has quit [Quit: Leaving.] 09:35 -!- matti__ [~mumboww@c-98-207-108-218.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 09:36 -!- piyushmishra [~piyushmis@117.200.228.100] has joined #go-nuts 09:36 -!- matti_ [~mumboww@c-98-207-108-218.hsd1.ca.comcast.net] has joined #go-nuts 09:40 -!- piyushmishra [~piyushmis@117.200.228.100] has quit [Ping timeout: 250 seconds] 09:54 -!- boscop_ [~boscop@f055155126.adsl.alicedsl.de] has joined #go-nuts 09:55 -!- wjlroe [~will@212.169.34.114] has joined #go-nuts 09:55 -!- boscop [~boscop@f055203086.adsl.alicedsl.de] has quit [Ping timeout: 265 seconds] 09:57 -!- falconindy [~noclaf@unaffiliated/falconindy] has quit [Quit: Lost terminal] 10:00 -!- falconindy [~noclaf@ool-18bba97a.dyn.optonline.net] has joined #go-nuts 10:00 -!- falconindy [~noclaf@ool-18bba97a.dyn.optonline.net] has quit [Changing host] 10:00 -!- falconindy [~noclaf@unaffiliated/falconindy] has joined #go-nuts 10:00 -!- wjlroe [~will@212.169.34.114] has quit [Ping timeout: 276 seconds] 10:01 -!- tommytastic [~tomhowe@gatea.kw.bbc.co.uk] has joined #go-nuts 10:01 -!- wjlroe [~will@212.169.34.114] has joined #go-nuts 10:06 -!- lmoura_ [~lauromour@187.112.13.138] has joined #go-nuts 10:07 -!- lmoura [~lauromour@187.59.245.133] has quit [Ping timeout: 245 seconds] 10:11 -!- lmoura__ [~lauromour@187.112.16.234] has joined #go-nuts 10:14 -!- lmoura_ [~lauromour@187.112.13.138] has quit [Ping timeout: 245 seconds] 10:19 -!- lmoura__ [~lauromour@187.112.16.234] has quit [Ping timeout: 245 seconds] 10:24 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 10:29 -!- virtualsue [~chatzilla@nat/cisco/x-fpxjvrahmdcssxdm] has quit [Ping timeout: 240 seconds] 10:33 -!- wrtp [~rog@92.17.29.2] has quit [Quit: wrtp] 10:35 -!- lundis [~lundis@dyn56-354.yok.fi] has quit [Ping timeout: 250 seconds] 10:37 -!- artefon [~thiago@189.59.176.108.dynamic.adsl.gvt.net.br] has joined #go-nuts 10:37 -!- wrtp [~rog@92.17.29.2] has joined #go-nuts 10:37 -!- piyushmishra [~piyushmis@117.200.225.163] has joined #go-nuts 10:48 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 10:52 -!- virtualsue [~chatzilla@nat/cisco/x-emdjwunqgjozgxbg] has joined #go-nuts 10:52 -!- mat_ [~mat@mx3.absolight.net] has quit [Remote host closed the connection] 10:59 -!- mat_ [~mat@prod2.absolight.net] has joined #go-nuts 11:01 -!- adg [~nf@210.84.53.30] has quit [Read error: Connection reset by peer] 11:08 -!- piyushmishra [~piyushmis@117.200.225.163] has quit [Quit: Leaving.] 11:14 -!- artefon [~thiago@189.59.176.108.dynamic.adsl.gvt.net.br] has quit [Remote host closed the connection] 11:15 -!- artefon [~thiago@189.59.176.108.dynamic.adsl.gvt.net.br] has joined #go-nuts 11:20 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 11:22 -!- TheMue [~TheMue@62.214.139.213] has joined #go-nuts 11:29 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has joined #go-nuts 11:29 -!- artefon [~thiago@189.59.176.108.dynamic.adsl.gvt.net.br] has quit [Read error: Connection reset by peer] 11:30 -!- artefon [~thiago@189.59.176.108.dynamic.adsl.gvt.net.br] has joined #go-nuts 11:41 -!- photron [~photron@port-92-201-49-88.dynamic.qsc.de] has quit [Ping timeout: 240 seconds] 11:42 -!- TheMue [~TheMue@62.214.139.213] has quit [Quit: TheMue] 11:43 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 240 seconds] 11:47 < plexdev> http://is.gd/gmcwE by [Brad Fitzpatrick] in go/src/pkg/image/png/ -- image/png: speed up paletted encoding ~25% 11:50 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined #go-nuts 12:05 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts 12:06 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts 12:10 < skelterjohn> good morning, go 12:37 -!- tensorpudding [~user@99.148.202.191] has joined #go-nuts 12:43 < bortzmeyer> Searching for a XML-RPC package in Go... 12:43 < Tonnerre> Enterprisey 12:44 -!- iant [~iant@192.75.139.251] has joined #go-nuts 12:44 -!- mode/#go-nuts [+v iant] by ChanServ 12:44 < bortzmeyer> Tonnerre: panic("Word not understood") 12:56 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Ping timeout: 276 seconds] 13:00 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 13:00 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has joined #go-nuts 13:00 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 13:04 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has quit [Ping timeout: 240 seconds] 13:07 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving] 13:08 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts 13:12 -!- plainhao [~plainhao@mail.xbiotica.com] has quit [Client Quit] 13:12 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts 13:19 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has joined #go-nuts 13:26 -!- allengeorge [~allengeor@bas1-brampton37-2925340199.dsl.bell.ca] has joined #go-nuts 13:28 < ptrb> bortzmeyer: yeah, nobody in the go universe really seems to care so much about xmlrpc, when we have regular old rpc pkg at least :) 13:30 < bortzmeyer> ptrb: in the outside universe, servers decide on the protocol to use without consulting the Go gods... 13:30 < exch> shameful to say the least 13:30 < bortzmeyer> ptrb: we often have to use a protocol we did not choose 13:35 < ptrb> bortzmeyer: yes, but you are free in your choice of "servers" 13:35 < ptrb> presumably 13:36 < KBme> we also have jsonrpc 13:36 < KBme> which is still way better than xml 13:39 < ptrb> I mean, I don't want to get too harumph-y, I agree a good xmlrpc lib would be useful 13:40 < ptrb> but it would almost certainly have to be 3rd-party, would probably (rightfully) never make it into the core distro and there just isn't a ton of interest in it in the Go community, for good reasons 13:40 < KBme> why is it more useful than json? just for compatibility? 13:46 -!- dj2 [~dj2@216.16.242.254] has joined #go-nuts 13:46 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 13:47 -!- lmoura [~lauromour@187.113.172.25] has joined #go-nuts 13:51 < ptrb> "more useful" <- i never said these words 13:51 < bortzmeyer> KBme: simply because we typically do not control both of the end points. I may control the client (and decide to program it in Go) but not the server (which decided to use XML-RPC). And, no, I will not switch my cloud provider just because of a API protocol preference. 13:51 < ptrb> it is "useful" because xmlrpc is certainly one of (if not _the_) most prevalent RPC protocol around these days 13:52 < ptrb> that said, XMLRPC is pretty bad; if your "cloud provider" provides services to you exclusively in XMLRPC I think that is actually a pretty compelling reason to switch 13:52 < KBme> bortzmeyer: yeap, that's what i was thinking about when i said compatibility 13:52 < KBme> ok 13:52 < KBme> and bad word usage, right, "more usefull" 13:52 < ptrb> especially if the XMLRPC services are in any way high-traffic 13:53 < bortzmeyer> ptrb: 1) I disagree with you about XML-RPC 2) Switching providers just because of the protocol? It seems insane. 13:53 < ptrb> bortzmeyer: there's not much room for disagreement, unfortunately... XMLRPC is pretty de-facto standard for "how not to implement RPC" 13:54 < ptrb> of course we know these lessons primarily as a consequence of having to use and support XMLRPC, so... thanks to it for taking one for the team I guess :) 13:55 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Ping timeout: 276 seconds] 14:03 -!- lmoura [~lauromour@187.113.172.25] has quit [Ping timeout: 264 seconds] 14:05 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has joined #go-nuts 14:05 -!- lmoura [~lauromour@186.212.98.9] has joined #go-nuts 14:06 -!- zozoR [~zozoR@5634798d.rev.stofanet.dk] has joined #go-nuts 14:06 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has joined #go-nuts 14:07 -!- artefon [~thiago@189.59.176.108.dynamic.adsl.gvt.net.br] has quit [Quit: bye] 14:12 -!- mattn_jp [~mattn_jp@112-68-95-241f1.hyg1.eonet.ne.jp] has joined #go-nuts 14:17 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 14:21 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Client Quit] 14:32 -!- bmizerany [~bmizerany@201.221.13.82] has joined #go-nuts 14:43 -!- ronnyy [~quassel@2001:6f8:12c6:1c86:224:1dff:fed7:9541] has joined #go-nuts 14:48 -!- virtualsue [~chatzilla@nat/cisco/x-emdjwunqgjozgxbg] has quit [Ping timeout: 240 seconds] 14:52 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the connection] 14:59 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 14:59 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit: Leaving.] 15:00 -!- virtualsue [~chatzilla@nat/cisco/x-bhksayxcvbjnmkfz] has joined #go-nuts 15:03 -!- fabled [~fabled@mail.fi.jw.org] has quit [Quit: Ex-Chat] 15:08 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 15:11 -!- virtualsue [~chatzilla@nat/cisco/x-bhksayxcvbjnmkfz] has quit [Quit: ChatZilla 0.9.86 [Firefox 3.5.14/20101001164112]] 15:13 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts 15:16 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 15:17 -!- Gertm [~Gertm@mail.dzine.be] has quit [Ping timeout: 276 seconds] 15:20 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts 15:26 -!- Fish [~Fish@86.65.182.207] has quit [Remote host closed the connection] 15:31 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 15:40 -!- devrim [~Adium@rrcs-184-75-52-90.nyc.biz.rr.com] has joined #go-nuts 15:43 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has quit [Remote host closed the connection] 15:46 -!- virtualsue [~chatzilla@nat/cisco/x-hlhqdllgjssdkyqw] has joined #go-nuts 15:49 -!- DerHorst [~Horst@e176119099.adsl.alicedsl.de] has joined #go-nuts 15:52 -!- mattn_jp [~mattn_jp@112-68-95-241f1.hyg1.eonet.ne.jp] has quit [Remote host closed the connection] 15:58 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.] 16:01 < gmilleramilar> how do I do a blocking read on a websocket.Conn? 16:06 -!- tvw [~tv@212.79.9.150] has quit [Ping timeout: 245 seconds] 16:10 -!- photron [~photron@port-92-201-49-88.dynamic.qsc.de] has joined #go-nuts 16:11 < KBme> http://groups.google.com/group/golang-nuts/browse_thread/thread/a04c0556f6cde134gmilleramilar: this could help: 16:11 < KBme> (also, jfgi) 16:13 < KBme> gmilleramilar:^ 16:13 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 16:13 < gmilleramilar> yeah, it was a dumb question. I figured it out, thx. 16:20 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Ping timeout: 250 seconds] 16:25 -!- devrim [~Adium@rrcs-184-75-52-90.nyc.biz.rr.com] has quit [Quit: Leaving.] 16:27 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has joined #go-nuts 16:29 -!- gnuvince_ [~vince@64.235.204.88] has quit [Quit: ""] 16:31 -!- saschpe [~quassel@77-23-177-40-dynip.superkabel.de] has joined #go-nuts 16:31 -!- Gertm [~Gertm@mail.dzine.be] has joined #go-nuts 16:50 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving] 17:03 -!- b00m_chef [~watr@66.183.108.186] has joined #go-nuts 17:05 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Ping timeout: 245 seconds] 17:09 -!- devrim [~Adium@static-71-190-247-62.nycmny.fios.verizon.net] has joined #go-nuts 17:09 -!- b00m_chef [~watr@66.183.108.186] has quit [Ping timeout: 245 seconds] 17:12 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has joined #go-nuts 17:15 -!- virtualsue [~chatzilla@nat/cisco/x-hlhqdllgjssdkyqw] has quit [Ping timeout: 276 seconds] 17:16 -!- virtualsue [~chatzilla@nat/cisco/x-olhuafdrspmoqnqm] has joined #go-nuts 17:17 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 17:18 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 17:23 -!- devrim [~Adium@static-71-190-247-62.nycmny.fios.verizon.net] has quit [Quit: Leaving.] 17:27 -!- adu [~ajr@pool-173-66-10-221.washdc.fios.verizon.net] has joined #go-nuts 17:28 -!- ronnyy [~quassel@2001:6f8:12c6:1c86:224:1dff:fed7:9541] has quit [Remote host closed the connection] 17:30 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts 17:31 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts 17:33 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Client Quit] 17:33 -!- tux21b [~christoph@trujillo.srv.pocoo.org] has joined #go-nuts 17:33 < tux21b> hi again everyone :) 17:33 < tux21b> seems like I still haven't understand go's meaning of inheritance yet... 17:34 < tux21b> what would be the easiest (the following source will be generated) way in go to archive something like this? http://paste.pocoo.org/show/56wr3hNJLx5iQZtBioSJ/ 17:36 -!- wjlroe [~will@212.169.34.114] has quit [Ping timeout: 245 seconds] 17:37 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 245 seconds] 17:39 < TheSeeker> I thought go didn't have inheritance? 17:39 < exch> It doesnt in the traditional sense 17:40 < Namegduf> tux21b: Implement the two types separately. 17:40 < uriel> tux21b: if you keep trying to apply concepts from other lnaguages to go, you will end up being confused and frustrated 17:40 < Namegduf> Or add your own Render function to BlogTemplate, which calls MainTemplate's. 17:40 < exch> You can embed one type in another, to approach something similar, but it has limitations. tux21b's problem is better solved suing an interface and 2 independant implementations 17:41 < Namegduf> Yeah. 17:41 < Namegduf> Don't try to create "abstract" types in Go. 17:41 < Namegduf> Create concrete types and define interfaces when you want to work on them generically. 17:42 < tux21b> so, i will have to create an interface for each template as well as an implementation for each, and each implementation should contain the whole template source copied from the parent-templates? 17:42 < Namegduf> Er, no. 17:43 < Namegduf> Why would you need to create an interface for each template? 17:43 < tux21b> ok, skip the interface ;) 17:43 < Namegduf> You will need to create an implementation for each. You can have an embedded struct for shared functionality that all the types call into, but said embedded type can't call back. 17:44 < tux21b> so, one implementation for each, without any inheritance or dependencies, and each template should contain the full source (copied over and over again)? 17:44 < Namegduf> Sure, if necessary. But in this case, Render() has no need to be a member at all. 17:44 < tux21b> i need them to call back, that's an important requirement 17:44 < Namegduf> No you don't. 17:44 < Namegduf> You need to solve your problem. 17:45 < Namegduf> Make Render() not a method, but a function accepting an interface for one of your templates, and it will work fine without code duplication, for example. 17:45 < tux21b> ok, that might work 17:45 -!- ssb [~ssb@213.167.39.150] has quit [Ping timeout: 276 seconds] 17:46 < Namegduf> You could also replace Render() with Header() and Footer() methods 17:46 < Namegduf> Rename RenderBlockBody() to Render() 17:46 < tux21b> but then i will have to generate prefixed functions like MainTemplate_Render() etc, since there might be more than one 17:46 < Namegduf> And have it call them as necessary. 17:46 -!- ssb [~ssb@213.167.39.150] has joined #go-nuts 17:47 < Namegduf> Give them names that distinguish them from other stuff, as necessary to distinguish them from other stuff. 17:47 < Namegduf> Conflicts only happen within the package. 17:47 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Read error: Operation timed out] 17:47 -!- saschpe [~quassel@77-23-177-40-dynip.superkabel.de] has quit [Remote host closed the connection] 17:48 < tux21b> hmm, but there is still another problem with the idea of using function like Render(t TemplateInterface). with that approach, i wouldn't be able to access the members of t, like t.Title and so on (so i would need to generate getters and setters for them too) 17:48 < Namegduf> Only getters. 17:49 < tux21b> I want to support a set statement in my template language too, so i would also need setters ;) 17:49 < Namegduf> Then yes, you'll need to do that. 17:50 < Namegduf> Using getters and setters to access something that's expressly an abstract implementation of something is not unreasonable. 17:51 < tux21b> yes, but unfortunately i am not a big friend of them (they are imho a bit overused in other languages like Java), but they might be useful in my case 17:52 < plexdev> http://is.gd/gmKWL by [Robert Griesemer] in go/doc/ -- go spec: clarify return type of append, argument type for ...T parameters 17:53 < Namegduf> They are very overused in other languages, where people try to secure things against future changes in implementation too much, but with an interface, the implementation is explicitly abstract, so accessing member variables would be bad. 17:53 < tux21b> with those getters, it will be possible to generate controllers which return templates, which can request all they data they need lazily. that's imho an advantage 17:53 < uriel> 17:44 < tux21b> so, one implementation for each, without any inheritance or dependencies, and each template should contain the full source (copied over and over again)? 17:53 < uriel> tux21b: do you know what libraries and functions are? 17:54 < tux21b> uriel: sure i know, but it's not so easy to archive the same goal in go by using methods instead of functions 17:54 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has joined #go-nuts 17:56 < uriel> sorry for being grumppy, just woke up ;) 17:56 -!- bmizerany [~bmizerany@201.221.13.82] has quit [Remote host closed the connection] 17:57 < tux21b> no problem, i am happy with every single tip, to implement some sort of inheritance and still using go best-practices ;) 17:57 < Namegduf> Don't think in terms of inheritance. 17:57 < Namegduf> You'll run into trouble constantly. 17:58 < Namegduf> Think in terms of implementing the separate types, then ask "How can I share this duplicated code?" if there's a lot of it. 17:58 -!- bmizerany [~bmizerany@201.221.13.82] has joined #go-nuts 17:58 < Namegduf> You could, actually, turn "Render()" into a "Print Title" function that just takes the title. 17:59 < Namegduf> As well as something for the footer. 17:59 < Namegduf> Again, changing RenderBlockBody() into Render() and having it call them. 17:59 < tux21b> the thing is, i would like to implement a template engine similar to Django/Jinja (lexer and parser is already finished), and they support inheritance which is imho useful in a template language 18:00 < Namegduf> That's fine, but don't think of it when writing the Go code. 18:00 < Namegduf> Unless you're planning to compile your template language TO Go, it shouldn't matter. 18:00 < tux21b> but i do, because i am actually writing an AST to go-code translator ;) 18:01 < tux21b> (btw, Jinja2 if you know it is implemented similar using Python) 18:01 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Quit: Leaving] 18:04 -!- bmizerany [~bmizerany@201.221.13.82] has quit [Ping timeout: 240 seconds] 18:07 -!- sacho [~sacho@95-42-65-196.btc-net.bg] has quit [Ping timeout: 240 seconds] 18:08 -!- Tv [~tv@gige.bur.digisynd.com] has joined #go-nuts 18:16 -!- TheMue [~TheMue@pd907c9d7.dip0.t-ipconnect.de] has joined #go-nuts 18:24 < tux21b> hurray, it's working now :) 18:25 < tux21b> Namegduf: you have helped me quite a lot, so would you mind reviewing the source before I update my generator to generate something like this automatically? http://paste.pocoo.org/show/3qLO4LQfrYYgu9zUdBhW/ 18:26 < tux21b> (instead of fmt.Print(), the generator writes io.WriteString(out, ...) and out is a parameter of Render()) 18:30 -!- dropdriv1 [~dropdrive@cpe-72-227-159-70.nyc.res.rr.com] has quit [Quit: leaving] 18:31 -!- artefon [~thiago@189.59.176.108] has joined #go-nuts 18:31 -!- piyushmishra [~piyushmis@117.200.225.7] has joined #go-nuts 18:37 -!- wjlroe [~will@78-86-14-131.zone2.bethere.co.uk] has joined #go-nuts 18:39 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts 18:43 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts 18:44 -!- wrtp [~rog@92.17.29.2] has quit [Ping timeout: 276 seconds] 18:50 -!- wrtp [~rog@92.17.29.2] has joined #go-nuts 18:59 -!- adu [~ajr@pool-173-66-10-221.washdc.fios.verizon.net] has quit [Quit: adu] 19:09 -!- sacho [~sacho@79-100-56-70.btc-net.bg] has joined #go-nuts 19:10 -!- sacho [~sacho@79-100-56-70.btc-net.bg] has quit [Max SendQ exceeded] 19:11 -!- sacho [~sacho@79-100-56-70.btc-net.bg] has joined #go-nuts 19:16 -!- aho [~nya@fuld-4d00d589.pool.mediaWays.net] has joined #go-nuts 19:20 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the connection] 19:20 -!- adu [~ajr@pool-173-66-10-221.washdc.fios.verizon.net] has joined #go-nuts 19:22 -!- adu [~ajr@pool-173-66-10-221.washdc.fios.verizon.net] has quit [Client Quit] 19:34 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts 19:40 -!- allengeorge [~allengeor@bas1-brampton37-2925340199.dsl.bell.ca] has quit [Ping timeout: 255 seconds] 19:45 -!- plainhao [~plainhao@mail.xbiotica.com] has quit [Quit: plainhao] 19:45 -!- allengeorge [~allengeor@bas1-brampton37-2925340199.dsl.bell.ca] has joined #go-nuts 20:09 -!- WilliamH [~william@gentoo/developer/williamh] has joined #go-nuts 20:09 -!- photron [~photron@port-92-201-49-88.dynamic.qsc.de] has quit [Ping timeout: 250 seconds] 20:10 < WilliamH> I'm trying to write an ebuild for go on gentoo. How can I pass CFLAGS to the go build system? 20:12 < skelterjohn> in what context? 20:12 < KBme> WilliamH: hey 20:12 < skelterjohn> to get at them from within go code? or to have them as part of the environment when you run 6g 20:12 < KBme> you were the one who answered on b.g.o? 20:12 < KBme> skelterjohn: for building the go source tree 20:13 < KBme> CFLAGS and LDFLAGS 20:13 < skelterjohn> if you invoke the go build script from within a terminal that has CFLAGS, etc defined, it should be able to see it 20:13 < KBme> it seems to change it tho 20:13 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 20:14 < skelterjohn> maybe all.bash or whatever you're using redefines it? i haven't look into this kind of thing, personally, so i don't know beyond what i've said 20:14 < WilliamH> all.bash is the recommended way to build go, so that's what I'm using. 20:15 < KBme> WilliamH: ah, you are, cool! 20:16 < TheSeeker> all.bash 'just worked' here too, after setting up the GO* environment variables on kubuntu (I am not a linux user) 20:16 < KBme> TheSeeker: this is packaging, not installation 20:16 < WilliamH> TheSeeker: Can you do something like: CFLAGS="some-cc-flag" all.bash 20:16 < skelterjohn> if you are invoking all.bash from a bash script, make sure to export your vars? 20:16 < skelterjohn> export CFLAGS=whatever 20:17 < skelterjohn> if you don't export i don't think it carries over 20:17 < KBme> ah, maybe that's it..export CFLAGS=$CFLAGS 20:17 < WilliamH> Doesn't passing them on the command line for the script have the same affect? 20:18 < KBme> not sure, but i don't think so 20:18 < skelterjohn> didn't know you could pass them on the command line 20:19 < KBme> skelterjohn: VAR1=foo mycmd 20:19 < skelterjohn> that's certainly not generally true of bash scripts, but it's possible that all.bash does it 20:19 < skelterjohn> oh yeah? 20:19 < skelterjohn> neat 20:19 < skelterjohn> thought you meant, eg, ./all.bash VAR1=foo 20:19 < KBme> no, it's in bash 20:20 < KBme> but i'm not sure if it does the same as export 20:20 < skelterjohn> either one would have them active in all.bash's environment, but only export would carry over to future commands 20:20 < KBme> yep, that's the idea 20:24 < KBme> .well, i'm off, good night 20:24 < KBme> WilliamH: good luck ;) 20:25 < WilliamH> KBme: Thanks. 20:25 < WilliamH> KBme: The next project is to figure out how to do an fhs install. ;-) 20:25 < skelterjohn> what's fhs? 20:25 < KBme> haha, well, keep me updated, i'd be interested 20:26 < KBme> skelterjohn: binaries in /bin or /usr/bin, liobraries to /lib or /usr/lib, etc.. 20:26 < KBme> filesystem hierarchy standard 20:26 < skelterjohn> GOBIN=/usr/bin ? 20:27 < KBme> something like that 20:28 < WilliamH> It looks like exporting CFLAGS/LDFLAGS is not working. 20:28 < KBme> WilliamH: yeah it's set in one of the scripts 20:28 < KBme> and the defaults aren't kept 20:28 < KBme> also, i've heard that there are issues when changing the CFLAGS for some reason 20:29 < KBme> but that was a while ago, something like a year ago 20:38 -!- res99 [~anonymous@201.237.130.70] has quit [Quit: res99] 20:42 -!- piyushmishra [~piyushmis@117.200.225.7] has quit [Quit: Leaving.] 20:42 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Quit: leaving] 20:49 -!- wjlroe_ [~will@78-86-14-131.zone2.bethere.co.uk] has joined #go-nuts 20:50 -!- wjlroe [~will@78-86-14-131.zone2.bethere.co.uk] has quit [Ping timeout: 240 seconds] 20:50 -!- niemeyer [~niemeyer@71.16.235.2] has joined #go-nuts 20:56 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-152-44.clienti.tiscali.it] has joined #go-nuts 20:56 -!- jcao219 [~jcao219@pool-96-226-238-248.dllstx.fios.verizon.net] has joined #go-nuts 21:01 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 21:01 -!- dj2 [~dj2@216.16.242.254] has quit [Remote host closed the connection] 21:01 -!- jcao219 [~jcao219@pool-96-226-238-248.dllstx.fios.verizon.net] has quit [Ping timeout: 245 seconds] 21:16 -!- zozoR [~zozoR@5634798d.rev.stofanet.dk] has quit [Quit: Morten. Desu~] 21:21 -!- jcao219 [~jcao219@pool-96-226-238-248.dllstx.fios.verizon.net] has joined #go-nuts 21:22 -!- allengeorge [~allengeor@bas1-brampton37-2925340199.dsl.bell.ca] has quit [Quit: allengeorge] 21:25 -!- niemeyer [~niemeyer@71.16.235.2] has quit [Ping timeout: 240 seconds] 21:27 -!- WilliamH [~william@gentoo/developer/williamh] has quit [Quit: leaving] 21:40 -!- TheMue [~TheMue@pd907c9d7.dip0.t-ipconnect.de] has quit [Quit: TheMue] 21:41 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the connection] 21:42 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn] 21:43 -!- iant [~iant@192.75.139.251] has quit [Quit: Leaving.] 21:45 -!- DerHorst [~Horst@e176119099.adsl.alicedsl.de] has quit [Remote host closed the connection] 21:51 -!- nf [~nf@124-169-130-190.dyn.iinet.net.au] has joined #go-nuts 21:51 -!- mode/#go-nuts [+o nf] by ChanServ 21:56 -!- yebyen [~yebyen@cpe-67-253-244-26.rochester.res.rr.com] has quit [Read error: Connection reset by peer] 21:59 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-152-44.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 22:02 -!- res99 [~anonymous@201.237.130.70] has joined #go-nuts 22:03 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts 22:05 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving] 22:05 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Client Quit] 22:08 -!- aho [~nya@fuld-4d00d589.pool.mediaWays.net] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 22:09 -!- wrtp [~rog@92.17.29.2] has quit [Quit: wrtp] 22:18 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection] 22:25 -!- tensorpudding [~user@99.148.202.191] has quit [Remote host closed the connection] 22:27 -!- tensorpudding [~user@99.148.202.191] has joined #go-nuts 22:27 -!- virtualsue [~chatzilla@nat/cisco/x-olhuafdrspmoqnqm] has quit [Ping timeout: 265 seconds] 22:31 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has joined #go-nuts 22:37 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has quit [Quit: derferman] 22:40 -!- welterde [welterde@thinkbase.srv.welterde.de] has quit [Excess Flood] 22:40 < gmilleramilar> hmm there's no way to generate slightly invalid JSON without doing it all by hand, huh. 22:41 < exch> Why would you want to generate invalid JSON? 22:41 < gmilleramilar> somebody (google) wants me to generate JSON with a date literal (new Date(blah)) 22:41 < gmilleramilar> that doesn't conform to the spec. 22:41 < gmilleramilar> http://code.google.com/apis/visualization/documentation/dev/implementing_data_source.html#examples (see example #2) 22:44 -!- binarypie [~binarypie@adsl-99-33-26-93.dsl.pltn13.sbcglobal.net] has joined #go-nuts 22:44 -!- noktoborus_ [debian-tor@gateway/tor-sasl/noktoborus] has quit [Ping timeout: 245 seconds] 22:45 < gmilleramilar> so I either need to write it by hand or hack the json code, right? 22:46 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 22:47 < exch> yup 22:47 < exch> Or convince the other end to use proper json 22:51 < gmilleramilar> hmm. I think I'm going to go with post-process the output of json.Marshal 22:53 -!- welterde [welterde@thinkbase.srv.welterde.de] has joined #go-nuts 22:56 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined #go-nuts 22:57 < uriel> gmilleramilar: that is quite sad, that google had to break an standard as simple and clean as json :( 22:57 < gmilleramilar> then again, you might argue that json should support built-in javascript types. 22:58 -!- iant [~iant@66.135.114.72] has joined #go-nuts 22:58 -!- mode/#go-nuts [+v iant] by ChanServ 23:12 -!- tav [~tav@92.7.91.84] has quit [Quit: tav] 23:12 -!- b00m_chef [~watr@66.183.108.186] has joined #go-nuts 23:15 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has joined #go-nuts 23:16 < uriel> you might, but it would be a bad argument, as it would make json much more complex 23:45 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit: Leaving.] 23:46 -!- jcao219 [~jcao219@pool-96-226-238-248.dllstx.fios.verizon.net] has quit [Read error: Connection reset by peer] 23:47 -!- jcao219 [~jcao219@pool-96-226-238-248.dllstx.fios.verizon.net] has joined #go-nuts 23:51 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 23:55 <@nf> gmilleramilar: that is really horrifying 23:55 <@nf> gmilleramilar: ! 23:56 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has left #go-nuts [] 23:59 -!- noktoborus_ [debian-tor@gateway/tor-sasl/noktoborus] has joined #go-nuts --- Log closed Thu Oct 28 00:00:13 2010