Go Language Resources Go, golang, go... NOTE: This page ceased updating in October, 2012

--- Log opened Sun Jul 31 00:00:02 2011
00:00 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
00:01 -!- lpi [~lpi@173.228.117.226] has quit [Client Quit]
00:08 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #go-nuts
00:10 -!- Natch| [~natch@178.73.216.13] has joined #go-nuts
00:11 -!- jamesmiller5 [~jamesmill@184.17.121.123] has quit [Quit: Leaving]
00:14 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts
00:31 <@adg> exch: IIRC chan-style imageboards are just flat-file based
00:32 <@adg> and they scale very well
00:38 -!- dfr|mac_ [~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #go-nuts
00:38 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has quit [Read error:
Connection reset by peer]
00:52 -!- xash [~xash@d026177.adsl.hansenet.de] has quit [Quit: ~]
00:58 < uriel> Namegduf explanation is right on target, this has been
discussed in the mailing list
00:58 < uriel> it is for consistency, and saving a few chars at the top
level is not worth the inconsistency
01:21 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has quit [Remote
host closed the connection]
01:32 -!- xcombelle [~xcombelle@AToulouse-551-1-117-113.w92-156.abo.wanadoo.fr]
has joined #go-nuts
01:40 -!- niemeyer [~niemeyer@200-102-194-39.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
02:00 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 240 seconds]
02:15 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
quit [Remote host closed the connection]
02:22 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
02:23 < smw> What do people here think of protocol buffers?  Is it better
than using xml or thrift in Go?
02:32 <@adg> depends what you're speaking to
02:32 <@adg> if you're only talking to other Go programs, use gob
02:38 < smw> adg, I would like a format other languages could read if
possible.
02:38 -!- robteix [~robteix@host5.190-228-239.telecom.net.ar] has joined #go-nuts
02:44 -!- lpi [~lpi@x2.core.archive.org] has joined #go-nuts
02:46 -!- lpi [~lpi@x2.core.archive.org] has quit [Client Quit]
02:47 -!- lpi [~lpi@x2.core.archive.org] has joined #go-nuts
02:48 -!- lpi [~lpi@x2.core.archive.org] has quit [Client Quit]
02:49 -!- xcombelle [~xcombelle@AToulouse-551-1-117-113.w92-156.abo.wanadoo.fr]
has quit [Ping timeout: 255 seconds]
02:53 -!- shvntr [~shvntr@113.84.14.155] has joined #go-nuts
02:59 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has joined
#go-nuts
02:59 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has quit
[Client Quit]
03:04 -!- meling [~meling@99-10-121-218.lightspeed.sndgca.sbcglobal.net] has
joined #go-nuts
03:25 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
03:33 -!- robteix [~robteix@host5.190-228-239.telecom.net.ar] has quit [Quit:
Leaving...]
03:35 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
03:36 -!- foocraft [~ewanas@78.101.5.164] has quit [Quit: default SIGPORTAL
handler]
04:10 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
04:13 -!- niemeyer [~niemeyer@200-102-194-39.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
04:16 -!- lpi [~lpi@c-98-207-250-83.hsd1.ca.comcast.net] has joined #go-nuts
04:35 -!- xcombelle [~xcombelle@AToulouse-551-1-117-113.w92-156.abo.wanadoo.fr]
has joined #go-nuts
04:43 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
04:45 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Ping timeout:
252 seconds]
04:48 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has joined #go-nuts
04:51 -!- replore_ [~replore@ntkngw133234.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit
[Remote host closed the connection]
04:58 -!- noam_ [~noam@87.69.42.61.cable.012.net.il] has quit [Quit: Leaving]
05:02 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
05:09 -!- lpi [~lpi@c-98-207-250-83.hsd1.ca.comcast.net] has quit [Quit: lpi]
05:12 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
05:15 -!- shvntr [~shvntr@113.84.14.155] has quit [Quit: leaving]
05:20 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Read error:
Connection reset by peer]
05:37 -!- ronnyy [~quassel@p4FF1C5A4.dip0.t-ipconnect.de] has joined #go-nuts
05:42 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the
connection]
05:42 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
06:06 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 276 seconds]
06:07 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 276 seconds]
06:15 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has quit [Remote host
closed the connection]
06:32 -!- Project_2501 [~Marvin@82.84.91.1] has joined #go-nuts
06:37 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
06:44 -!- ronnyy [~quassel@p4FF1C5A4.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
07:02 -!- alehorst [~alehorst@189.114.232.79.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 255 seconds]
07:02 -!- Count_Niedar [~dgdfg@ip68-99-166-222.hr.hr.cox.net] has quit [Quit:
Leaving]
07:06 -!- vmil86 [~vmil86@78.57.227.12] has joined #go-nuts
07:13 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Quit:
Leaving]
07:18 -!- alehorst [~alehorst@201.47.25.192.dynamic.adsl.gvt.net.br] has joined
#go-nuts
07:22 -!- lpi [~lpi@173-228-124-196.dsl.dynamic.sonic.net] has joined #go-nuts
07:23 -!- lpi [~lpi@173-228-124-196.dsl.dynamic.sonic.net] has quit [Remote host
closed the connection]
07:24 -!- lpi [~lpi@173-228-124-196.dsl.dynamic.sonic.net] has joined #go-nuts
07:27 -!- Count_Niedar [~dgdfg@ip68-99-166-222.hr.hr.cox.net] has joined #go-nuts
07:28 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
07:36 -!- TheMue [~FMueller@p5DDF774D.dip.t-dialin.net] has joined #go-nuts
07:37 < TheMue> re
07:46 -!- wrtp [~rog@host-92-30-166-101.as13285.net] has joined #go-nuts
07:51 -!- Count_Niedar [~dgdfg@ip68-99-166-222.hr.hr.cox.net] has quit [Ping
timeout: 258 seconds]
07:55 -!- ronnyy [~quassel@p4FF1C5A4.dip0.t-ipconnect.de] has joined #go-nuts
08:19 -!- lpi [~lpi@173-228-124-196.dsl.dynamic.sonic.net] has quit [Quit: lpi]
08:19 -!- photron [~photron@port-92-201-85-197.dynamic.qsc.de] has joined #go-nuts
08:21 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 252 seconds]
08:21 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
08:22 -!- smw [~stephen@unaffiliated/smw] has quit [Ping timeout: 260 seconds]
08:25 -!- zmoazeni [~zmoazeni@50-57-89-129.static.cloud-ips.com] has quit [Ping
timeout: 255 seconds]
08:29 -!- zmoazeni [~zmoazeni@50-57-89-129.static.cloud-ips.com] has joined
#go-nuts
08:30 -!- ronnyy [~quassel@p4FF1C5A4.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
08:37 -!- franciscosouza [~francisco@187.105.25.184] has quit [Read error:
Connection reset by peer]
08:39 -!- huin [~huin@91.84.179.118] has joined #go-nuts
08:40 -!- franciscosouza [~francisco@187.105.25.184] has joined #go-nuts
08:41 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
08:51 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 252 seconds]
08:53 -!- iserbkin [~iserbkin@46.109.47.174] has joined #go-nuts
08:55 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
09:00 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 255 seconds]
09:06 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts
09:07 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-173-74.clienti.tiscali.it] has
joined #go-nuts
09:10 -!- Project_2501 [~Marvin@82.84.91.1] has quit [Ping timeout: 240 seconds]
09:13 -!- iserbkin [~iserbkin@46.109.47.174] has quit []
09:13 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts
09:24 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 255 seconds]
09:32 -!- xcombelle [~xcombelle@AToulouse-551-1-117-113.w92-156.abo.wanadoo.fr]
has quit [Ping timeout: 255 seconds]
09:34 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Quit:
WeeChat 0.3.5]
09:37 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts
09:43 -!- yogib [~yogib@dslb-178-001-021-229.pools.arcor-ip.net] has joined
#go-nuts
10:10 -!- shvntr [~shvntr@113.84.14.155] has joined #go-nuts
10:16 -!- genbattle [~nick@203-173-211-164.dialup.ihug.co.nz] has joined #go-nuts
10:17 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts
10:19 -!- raylu [raylu@75-101-102-63.dsl.static.sonic.net] has joined #go-nuts
10:19 < raylu> how does one get the first element in a slice through a
template?
10:21 -!- TheMue [~FMueller@p5DDF774D.dip.t-dialin.net] has quit [Ping timeout:
258 seconds]
10:27 -!- genbattle [~nick@203-173-211-164.dialup.ihug.co.nz] has quit [Quit:
Leaving]
10:30 < wrtp> raylu: use exp/template
10:30 < wrtp> (i just replied to your post on golang-nuts)
10:35 -!- Paul_
[~chatzilla@CPE687f749f6777-CM000a736586a2.cpe.net.cable.rogers.com] has joined
#go-nuts
10:40 -!- Paul_
[~chatzilla@CPE687f749f6777-CM000a736586a2.cpe.net.cable.rogers.com] has quit
[Quit: ChatZilla 0.9.87 [Firefox 5.0/20110615151330]]
10:42 < raylu> wrtp: ah.  thanks
10:52 -!- rlab [~Miranda@219-183-95-178.pool.ukrtel.net] has joined #go-nuts
11:04 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-173-74.clienti.tiscali.it] has
quit [Ping timeout: 260 seconds]
11:05 -!- xcombelle [~xcombelle@AToulouse-551-1-117-113.w92-156.abo.wanadoo.fr]
has joined #go-nuts
11:06 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
11:09 -!- dustyw [~dustyw@c-67-168-84-176.hsd1.wa.comcast.net] has quit [Ping
timeout: 260 seconds]
11:16 < tav> hmm, anyone with much experience of the reflect package around
?
11:17 < ThreeSix> how can I use http package to send host file?
11:17 < tav> i've got a type City string, and when i try to Set a string
Value, it tells me it's not assignable
11:17 < wrtp> tav: City is not a string
11:18 < wrtp> you need a City Value
11:18 < tav> and how would i generate that from the string Value?
11:19 < tav> ThreeSix: see http.ServeFile
11:20 < tav> wrtp: City is just an example btw, all i have are Values, i
don't know ahead of time what Types they are
11:21 < ThreeSix> oh thanks :P
11:22 < tav> you're welcome
11:22 -!- dustyw [~dustyw@c-67-168-84-176.hsd1.wa.comcast.net] has joined #go-nuts
11:22 < tav> hey btw roger, didn't realise you were wrtp
11:25 -!- deepfuture [~liuxing@42.49.125.65] has joined #go-nuts
11:26 < deepfuture> hello
11:26 < str1ngs> tav: something like City(myString) iirc
11:26 -!- deepfuture [~liuxing@42.49.125.65] has left #go-nuts []
11:26 < str1ngs> tav: of City("detroit")
11:26 -!- deepfuture [~liuxing@42.49.125.65] has joined #go-nuts
11:26 < tav> str1ngs: hmm, all i have are reflect.Values — one a City Value
and another a string Value
11:27 < str1ngs> hmm reflect
11:28 < tav> atm, i can switch on the Value type's kind and if it happens to
be reflect.String: use SetString(value.Internal.(string), etc.
11:28 < tav> ditto for other types
11:29 < tav> but i'm assuming there's a cleaner way
11:29 < str1ngs> ya was just going to say that's probably the best way
11:29 < str1ngs> if that method works, then I would use it
11:30 < str1ngs> if you see line 601 json/decode.go they do the samething.
11:31 -!- deepfuture [~liuxing@42.49.125.65] has quit [Ping timeout: 260 seconds]
11:32 < tav> hmm
11:33 < str1ngs> I dont think there is a better way, without switch.  it
kinda needed with reflection
11:33 < tav> i get the usual reason for switch and reflect
11:33 < str1ngs> also allows you to error out with default: if the type is
no known etc.
11:34 < tav> but, given the generic Set(), a counterpart would be nice
11:35 < str1ngs> ya that I'm not sure, my use of reflect has been limited
upto now.
11:47 < raylu> can't wait for the new exp/template to make it into the next
release
11:59 < wrtp> tav: you could implement a String method on City
12:00 < wrtp> and switch on interface {String() string}
12:01 < tav> the City type was just an example — it could be any arbitrary
type
12:01 -!- TheMue [~FMueller@p5DDF774D.dip.t-dialin.net] has joined #go-nuts
12:01 < tav> what i'm really trying to do is convert any arbitrary
map[string]interface{} to a struct
12:03 < tav> e.g.  convert(mapping, ptrToSomeStruct)
12:04 < jlaffaye> the rpc package is not cross language, right?
12:04 < tav> jlaffaye: you can use rpc/jsonrpc
12:04 < jlaffaye> I will end up with a custom text protocol in an unix
socket, but I'd like to avoid that
12:04 -!- jstemmer [~cheetah@mrpwn.stemmertech.com] has quit [Quit: leaving]
12:06 < jlaffaye> tav: I know that xml-rpc is supported in lots of
languages, dont know about this jsonrpc from the go package
12:06 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
12:07 < tav> well, json is supported in most languages
12:07 -!- jstemmer [~cheetah@mrpwn.stemmertech.com] has joined #go-nuts
12:08 < jlaffaye> well, if you have to interpret the json yourself it is not
an rpc system to me ;)
12:09 < jlaffaye> to clarifY:
12:09 < jlaffaye> I agree that you can write a rpc in other languages
compatible to jsonrpc, but do they exist now?
12:10 < tav> well, a friend of mine specified json-rpc years ago:
http://json-rpc.org/
12:10 < jlaffaye> oh
12:10 < tav> not sure if go's implementation matches that at all
12:10 < tav> even if not, it shouldn't really be more than 20 lines of
wrapper code in any high-level language....  ?
12:10 < huin> i looked at JSON RPC on that page, i liked the look of the
notification thing
12:11 < huin> but didn't see it in go's json-rpc
12:11 < huin> might have missed it, mind you
12:12 < huin> it certainly looks like the Go impl.  is based on json-rpc.org
12:16 < tav> to the reflect users...  if a struct's field points to a
pointer type, e.g.  *string, how would i allocate and set the string?
12:17 < tav> when val.Type().Kind() == reflect.Ptr, i get hold of
val.Elem(), but if this happens to be unallocated (?), it returns an invalid Value
12:18 < tav> and calling Set() on invalid values seems to cause problems
12:23 -!- shvntr [~shvntr@113.84.14.155] has quit [Quit: leaving]
12:30 -!- shvntr [~shvntr@113.84.14.155] has joined #go-nuts
12:31 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
12:32 -!- Bigbear1 [~Cody@d75-158-133-109.abhsia.telus.net] has joined #go-nuts
12:32 -!- Bigbear1 [~Cody@d75-158-133-109.abhsia.telus.net] has quit [Read error:
Connection reset by peer]
12:34 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
joined #go-nuts
12:36 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
quit [Remote host closed the connection]
12:36 -!- shvntr [~shvntr@113.84.14.155] has quit [Quit: leaving]
12:41 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
joined #go-nuts
12:47 -!- robteix [~robteix@host5.190-228-239.telecom.net.ar] has joined #go-nuts
12:49 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
quit [Remote host closed the connection]
12:50 -!- vmil86 [~vmil86@78.57.227.12] has quit [Remote host closed the
connection]
12:50 -!- mrsrikanth [~mrsrikant@59.92.22.26] has joined #go-nuts
13:02 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Ping timeout:
252 seconds]
13:03 -!- hargettp [~hargettp@pool-71-174-128-121.bstnma.east.verizon.net] has
joined #go-nuts
13:07 -!- mrsrikanth [~mrsrikant@59.92.22.26] has quit [Read error: Connection
reset by peer]
13:10 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
13:12 < ThreeSix> hey, if I want to code a directx/opengl package I need to
use cgo right?
13:13 < aiju> not necessarily
13:15 < aiju> it might be lots of work without cgo, though
13:16 < ThreeSix> do you mean by using dll import?
13:16 < aiju> no
13:16 < aiju> using the low-level interface
13:17 < nicka> https://github.com/banthar/Go-OpenGL There's that if you're
not set on rolling your own
13:21 < wrtp> tav: reflect.New(val.Type).Elem().Set()
13:24 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
13:24 -!- robteix [~robteix@host5.190-228-239.telecom.net.ar] has quit [Quit:
Leaving...]
13:27 < wrtp> tav: when you say "map[string]interface{} to a struct" do you
want to translate from map[City]interface{} to a struct too?
13:29 < wrtp> actually the above, for a value that is part of a struct, you
probably want {p := reflect.New(val.Type); fieldVal.Set(p);
p.Elem().Set(theStructVal)}
13:29 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
14:00 -!- nicka [~nicka@unaffiliated/nicka] has quit [Ping timeout: 276 seconds]
14:05 -!- anticide [~textual@91.200.224.93] has joined #go-nuts
14:06 -!- anticide [~textual@91.200.224.93] has quit [Client Quit]
14:17 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-173-74.clienti.tiscali.it] has
joined #go-nuts
14:18 -!- huin [~huin@91.84.179.118] has quit [Quit: leaving]
14:20 < tav> wrtp: hmm, thx for the help
14:21 -!- srikanth [~mrsrikant@59.92.22.26] has joined #go-nuts
14:23 -!- ronnyy [~quassel@p4FF1C5A4.dip0.t-ipconnect.de] has joined #go-nuts
14:26 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 250 seconds]
14:27 -!- ThreeSix [~ThreeSix@77.127.175.236] has quit [Read error: Connection
reset by peer]
14:34 -!- erus` [~erus`@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
joined #go-nuts
14:36 -!- erus` [~erus`@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
quit [Remote host closed the connection]
14:37 -!- erus` [~erus`@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
joined #go-nuts
14:48 -!- ThreeSix [~ThreeSix@77.127.175.236] has joined #go-nuts
14:52 < skelterjohn> ThreeSix: a pure go pkg for opengl would be awesome
14:58 < ThreeSix> yeah
15:04 -!- srikanth [~mrsrikant@59.92.22.26] has quit [Quit: Leaving]
15:04 -!- huin [~huin@91.84.179.118] has joined #go-nuts
15:07 -!- erus` [~erus`@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
left #go-nuts []
15:07 -!- zcram [~zcram@8.177.190.90.sta.estpak.ee] has joined #go-nuts
15:10 -!- benjack [~benjack@cm224.omega195.maxonline.com.sg] has joined #go-nuts
15:17 -!- `micro` [~quassel@96-42-218-124.dhcp.roch.mn.charter.com] has quit [Ping
timeout: 258 seconds]
15:17 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has joined
#go-nuts
15:17 -!- benjack1 [~benjack@cm224.omega195.maxonline.com.sg] has joined #go-nuts
15:18 -!- wrtp [~rog@host-92-30-166-101.as13285.net] has quit [Quit: wrtp]
15:21 -!- benjack [~benjack@cm224.omega195.maxonline.com.sg] has quit [Ping
timeout: 250 seconds]
15:23 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 255 seconds]
15:26 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
15:27 < piranha> hi all.  Any ideas what is wrong with my go on os x 10.7?
http://paste.in.ua/2832/ - this is just checked out and compiled tip
(5e1786622fa6)
15:27 -!- erus` [~tommo@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
joined #go-nuts
15:28 < jlaffaye> piranha: is 6g up to date too?
15:28 < piranha> jlaffaye: well, I just compiled it with ./make.bash
15:28 < piranha> h
15:28 < piranha> no, you are right
15:28 < piranha> this is leftovers from my old install :(
15:28 < piranha> thanks a lot :)
15:30 -!- synx [~synx@unaffiliated/synx/x-4957395] has quit [Ping timeout: 276
seconds]
15:31 < jlaffaye> you're welcome
15:40 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has quit [Remote
host closed the connection]
15:41 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has joined
#go-nuts
15:41 -!- hargettp [~hargettp@pool-71-174-128-121.bstnma.east.verizon.net] has
quit [Quit: Linkinus - http://linkinus.com]
15:46 < skelterjohn> people should take a look at
https://groups.google.com/d/msg/golang-nuts/gMCWjA1_y7w/ZI_g1sadTRoJ and chime in
15:46 < skelterjohn> a proposal for x.go.go to be self contained programs
that generate x.go
15:46 < skelterjohn> (and the makefile/goinstall infrastructure to handle
it)
15:50 -!- ceh [~ceh@tiselius.it.uu.se] has quit [Ping timeout: 260 seconds]
15:58 -!- nicka [~nicka@unaffiliated/nicka] has joined #go-nuts
16:04 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Ping timeout: 258
seconds]
16:06 -!- virtualsue [~chatzilla@host81-139-92-206.in-addr.btopenworld.com] has
joined #go-nuts
16:08 -!- ph1234k [~Steven@ip72-209-135-200.ks.ks.cox.net] has joined #go-nuts
16:10 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
16:10 -!- wrtp [~rog@host-92-30-166-101.as13285.net] has joined #go-nuts
16:10 < wrtp> tav: np
16:15 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
16:19 -!- `micro` [~quassel@96-42-218-124.dhcp.roch.mn.charter.com] has joined
#go-nuts
16:22 -!- franciscosouza [~francisco@187.105.25.184] has quit [Quit:
franciscosouza]
16:24 -!- erus` [~tommo@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
quit [Remote host closed the connection]
16:27 < ThreeSix> getting error while compiling cgo\stdio using mingw,
_cgo_main.o:_cgo_main.c:(.data+0x0): undefined reference to `stdout'
16:31 < aiju> seems to me like mingw is broken
16:32 < aiju> (i mean, really broken, not just normal mingw broken)
16:32 < ThreeSix> lol
16:32 < nsf> C standart says that stdout could be a macro as far as I
remember
16:32 < nsf> probably someone assumes that it's not
16:33 < nsf> that's my guess :)
16:36 < ThreeSix> its giving me this kind of errors while compiling Go-SDL
and Go-OpenGL too
16:37 < nsf> ThreeSix: on mingw?
16:37 < ThreeSix> yeah
16:37 < nsf> well, it's the same problem
16:37 < nsf> extern char stdout[];
16:37 < nsf> see
16:37 < nsf> someone assumes that there is 'stdout'
16:38 < nsf> by someone I mean Russ Cox of course
16:38 < skelterjohn> i had a horrible time building Go-OpenGL on windows w/
mingw
16:38 < nsf> but again
16:38 < nsf> for some reason
16:38 < skelterjohn> as in, I failed and put linux on the machine instead
16:38 < nsf> I remember
16:38 < nsf> that stdout stdin and stderr could be macros
16:39 < nsf> wait, I'll check the standard
16:39 < aiju> 18:37 < nsf> extern char stdout[];
16:39 < aiju> seems just wrong
16:39 < nsf> aiju: it's from _cgo_main.c
16:39 < nsf> as long as it's a pointer
16:40 < nsf> no one cares
16:40 < aiju> wow
16:40 < aiju> except the linker
16:40 < nsf> no
16:40 < aiju> some linkers care
16:40 < nsf> linker knows nothing about types
16:40 < nsf> I mean when doing function calls
16:40 < nsf> but the tricky part
16:40 < aiju> some linkers check the types
16:40 < nsf> that stdout symbol might be non-existing
16:40 < aiju> the Go linker for example
16:41 < aiju> stdout is even likely to be a macro
16:41 < aiju> stdout is a fucking macro in Plan 9
16:42 < aiju> what the fuck was russ smoking
16:42 < ThreeSix> lol
16:42 < nsf> well, I haven't found a reference in the standard
16:42 < nsf> but here's the comment from glibc's stdio.h
16:42 < nsf> /* C89/C99 say they're macros.  Make them happy.  */
16:42 < nsf> #define stdin stdin
16:43 < nsf> #define stdout stdout
16:43 < nsf> #define stderr stderr
16:43 < aiju> hahahahah
16:47 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
connection]
16:47 < nsf> ThreeSix: so..  report a bug :)
16:47 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
16:47 < nsf> although
16:48 < nsf> there could be a problem
16:48 -!- pheuter [18a121d1@gateway/web/freenode/ip.24.161.33.209] has joined
#go-nuts
16:48 < nsf> if _cgo_main.c
16:48 < pheuter> hi
16:48 < nsf> is compiled by go's C compiler
16:48 < pheuter> I have a question
16:48 < nsf> because it may not be capable of including mingw's stdio.h :)
16:48 < aiju> pheuter: just fucking ask
16:48 < pheuter> is it possible to have go stream a file for download that
is currently being written to?
16:48 < aiju> what?
16:49 < aiju> are you talking about the http package?
16:49 < pheuter> yes
16:49 < nsf> pheuter: I think it's more like an OS question
16:49 < nsf> you can open file descriptor for reading in linux
16:49 < aiju> pheuter: you create a file on-the-fly and want to stream it?
16:49 < nsf> which is being written to
16:49 < pheuter> i need to expose the file over http for download, yes nsf
16:49 < aiju> pheuter: please explain what you're doing
16:49 < aiju> pheuter: you have a file another program writes?
16:50 < pheuter> transcoding a file and exposing it in realtime
16:50 < pheuter> yes
16:50 < aiju> i seee
16:50 < nsf> you can do that
16:50 < nsf> just do that, I think it will work
16:50 < nsf> have you tried?
16:50 < aiju> no, that will not ork
16:50 < aiju> +w
16:50 < aiju> Go will see EOF and send EOF
16:50 < nsf> ok, then you'll have to buffer it
16:51 < aiju> no
16:51 < nsf> ignoring EOF and waiting for more input
16:51 < aiju> just read from the file
16:51 < aiju> when you reach EOF, wait half a second
16:51 < aiju> try again
16:51 < nsf> well, that's what I meant
16:51 < aiju> pheuter: how about using a pipe?
16:51 < nsf> I guess "buffering" is a wrong term for that :)
16:51 < pheuter> aiju: how would i do that?  (i'm rather new to go)
16:51 < aiju> good question
16:51 < aiju> os.Pipe?
16:52 < aiju> yes
16:52 < aiju> ah
16:52 < aiju> pheuter: look at exec.Run
16:55 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has quit [Ping
timeout: 260 seconds]
16:56 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has joined
#go-nuts
16:57 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
16:59 < skelterjohn> exec.Command
16:59 < skelterjohn> exec.Run is no longer the api
17:01 < pheuter> http://golang.org/src/pkg/exec/exec.go?h=exec.Command#L90
<- what am i supposed to find here?
17:01 < pheuter> im a bit confused...
17:04 < skelterjohn> that function returns an exec.Cmd
17:04 < skelterjohn> which provides a method for piping
17:04 < skelterjohn> wait, you're looking at source?
17:04 < skelterjohn> look at the docs
17:04 < skelterjohn> http://golang.org/pkg/exec/
17:04 < pheuter> ah
17:04 < pheuter> thanks
17:05 < pheuter> i see, but how do i use this in the web server to serve
actively-written files ?
17:05 < pheuter> shouldnt http support chunked encoding or somehting
17:07 < nsf> http support streaming as far as I remember
17:07 < nsf> I mean you write a part of the file
17:07 < nsf> and it's being send to the client
17:07 < nsf> then you write a second part
17:07 -!- lpi [~lpi@173-228-124-196.dsl.dynamic.sonic.net] has joined #go-nuts
17:07 < nsf> and the third, etc.
17:07 < nsf> until EOF is explicitly send
17:07 < nsf> http does audio and video streaming just fine
17:08 < nsf> see the internet :)
17:13 -!- noam_ [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
17:13 < nsf> the question is how though, I have no idea, maybe it's http's
keepalive
17:13 < nsf> or something else
17:14 < ThreeSix> nsf: Looks like there is code errors in other files too,
cgo\test\callback.go there is a call to TestCallbackPanic but there is only
testCallbackPanic.  and also this - error: 'sleep' undeclared
17:14 -!- benjack1 [~benjack@cm224.omega195.maxonline.com.sg] has quit [Quit:
Leaving.]
17:14 < nsf> ThreeSix: maybe, I don't know :) I haven't used Go for a while
17:15 < ThreeSix> ah ok :P thanks for help
17:15 < nsf> but assuming that stdout is a symbol
17:15 < nsf> is clearly a bug
17:15 < pheuter> can i use http://golang.org/pkg/http/#ServeFile ?
17:15 < nsf> although since Go doesn't support windows
17:15 < nsf> it's community-supported
17:15 < nsf> so..  maybe it's not a bug :)
17:16 < ThreeSix> :o
17:16 < nsf> pheuter: I don't think so :) it will die on EOF
17:16 < nsf> you need to push it manually ignoring EOFs and waiting for more
data on the file side
17:17 < pheuter> that's where im lost
17:17 < pheuter> as far as interfacing with http goes
17:17 < nsf> I haven't used it at all :D
17:19 < crest> what's the clean way to shut down http.Server's Serve()
17:20 < pheuter> can anyone be so kind as to provide a short snippet of how
i can manually push a file through http while ignoring eof and waiting for more
data on the file side?
17:23 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
17:31 < pheuter> any ideas?
17:33 < crest> their is the file server code?
17:33 < crest> just change it's EOF handling
17:33 < aiju> pheuter: use a fucking pipe
17:34 < aiju> pheuter: teach your program to write to stdout and redirect
stdout to HTTP
17:34 < pheuter> where can i learn how to use fucking pipes?
17:35 < crest> man 2 pipe
17:37 < pheuter> can i tell my program to write to a "mfifo" ?
17:38 < pheuter> would i then fileserve the fifo in go?
17:38 < pheuter> "mkfifo"
17:38 < crest> why not serve a chan []byte?
17:38 < crest> what's your data source?
17:39 < pheuter> a file
17:39 < pheuter> that is actively being written to
17:39 < crest> that sounds like accident waiting to happen
17:39 < pheuter> its not
17:39 < pheuter> i want to serve a file being transcoded in realtime
17:39 < crest> do you need the transcoded file afterwards?
17:40 < pheuter> no
17:40 < crest> than write to a "fucking pipe"
17:40 < pheuter> only to expose over http as a download while its being
written
17:40 < pheuter> how???
17:40 < crest> look at the exec package
17:40 -!- huin [~huin@91.84.179.118] has quit [Quit: leaving]
17:41 < crest> so you want to invoke mencoder?
17:41 < crest> (or ffmpeg)
17:41 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
17:41 < pheuter> mencoder
17:42 < crest> http://golang.org/pkg/exec/#Cmd.StdoutPipe
17:43 < pheuter> mencoder doesnt write to stdout
17:44 < crest> path, err := exec.LookPath("mencoder")
17:45 < pheuter> that should assign path the location of mencoder
17:45 < crest> have to tried to use the filename "-" as name for stdout
17:45 < nsf> any new Go implementations around, maybe someone is working on
something?
17:45 * nsf want's a .NET-like VM with JIT compiler that is able to compile and
execute Go code
17:45 < nsf> wants*
17:46 < crest> cmd := exec.Command(path, ...)
17:46 < crest> err := cmd.Start()
17:47 < crest> than serve the cmd.StdoutPipe()
17:47 -!- virtualsue [~chatzilla@host81-139-92-206.in-addr.btopenworld.com] has
quit [Ping timeout: 250 seconds]
17:48 < pheuter> crest: thank you
17:48 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
joined #go-nuts
17:48 < jlaffaye> I guess the order doesnt matter
17:48 < jlaffaye> as I call StdoutPipe before Start
17:50 < crest> with bash/zsh mencoder tv:// -tv
driver=v4l:width=324:height=248:outfmt=rgb24:device=/dev/video0:adevice=hw.1,0
-oac mp3lame -lameopts cbr:br=128 -flip -ovc lavc -lavcopts threads=2 -o >( tee
filename.avi | mplayer -)
17:50 < crest> >( cmd ) expands into a named fifo in /tmp
17:51 < crest> this would dump the avi to filename.avi and play it as a
steam with mplayer
17:52 < pheuter> how do i serve the stdoutpipe in http?
17:53 < hokapoka> nsf I saw something for .net and go but apparently the
.net platform limitations are restricting what's actually possible.
17:54 < nsf> no, I don't want Go on .NET
17:54 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
17:54 < nsf> .NET library is bad compared to Go's
17:54 -!- virtualsue [~chatzilla@nat/cisco/x-crxsgnspdjrzkslo] has joined #go-nuts
17:54 < nsf> and Go won't be able to express everything .NET has
17:54 < nsf> generics, properties, etc..  there are many things :)
17:54 < nsf> so
17:54 < nsf> I guess it's a bad idea
17:55 < nsf> if someone is doing that :D
17:55 < nsf> a perfect project would be a VM targetted at Go
17:55 < nsf> but I know nothing about VMs and jit compilers :)
17:56 < nsf> Go guys on the other hand have experience with that
17:56 < hokapoka> yeah me either, someone is deffinatly doing something on
it.
17:56 < nsf> (dis virtual machine on inferno, was powering limbo programming
language)
17:56 < crest> pheuter: i have no idea on how to encode this stream as a
valid http stream
17:57 < nsf> but for some reason they decided to follow static compilation
path
17:57 < pheuter> k
17:57 < nsf> :(
17:57 < hokapoka> nsf: this is what I saw -
http://gophertimes.com/releases/express-go-110426
17:57 < crest> because i don't know the http rfcs
17:57 < crest> maybe the http.serveFile() code helps
17:57 < nsf> hokapoka: I see
17:58 < hokapoka> "Complex numbers, channels, goroutines, deferred
execution, panic and recovery, and garbage collection are not yet supported."
17:58 < pheuter> serveFile takes a filename
17:58 < nsf> well, running Go on CLR is interesting, because you have a very
fast and tuned VM
17:58 < nsf> but it's pointless because feature sets are different
17:58 < hokapoka> All of which makes go nice!
17:58 < hokapoka> yeah, I was surprised when I saw it.
17:59 < nsf> but imagine a VM with Go standard library and it's open for
other languages similar to Go
17:59 < hokapoka> However, there's a large .net / c# community out there and
if it brings Go closer to them it could be a good thing to the language.
17:59 < nsf> it's a whole field of opportunities :)
17:59 < nsf> nah, I think they will ignore Go
18:00 < nsf> Go is a different way of thinking
18:00 < hokapoka> I dunno, I know alot of C# developers that have taken a
real interest in it.
18:00 < nsf> it comes from C
18:00 < nsf> hm..  probably a developers who hate C# :)
18:00 < hokapoka> Heh, yeah you might have a point there.
18:01 < aiju> 19:59 < hokapoka> However, there's a large .net / c#
community out there and if it brings Go closer to them it could be a good thing to
the language.
18:01 < aiju> JESUS CHRIST
18:01 < aiju> NOT THESE PEOPLE
18:01 < nsf> hahaha :)
18:02 < crest> ACK
18:02 < hokapoka> heh
18:04 -!- Natch| [~natch@178.73.216.13] has quit [Remote host closed the
connection]
18:06 -!- lpi [~lpi@173-228-124-196.dsl.dynamic.sonic.net] has quit [Quit: lpi]
18:06 < hokapoka> Anyone else noticed that Google Groups has been updated
3/4 times this week, I keep getting the "application has been updated please
reload your browser" mesasge.
18:06 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
18:09 -!- robteix [~robteix@host5.190-228-239.telecom.net.ar] has joined #go-nuts
18:09 -!- robteix [~robteix@host5.190-228-239.telecom.net.ar] has quit [Client
Quit]
18:11 < wrtp> pheuter: mencoder can presumably write to stdout
18:11 < wrtp> in which case it's all very simple
18:12 < pheuter> wrtp i got it to do that via "-o -", but im having trouble
figuring out how to stream that as a download over go's http
18:12 < wrtp> just start the command and use io.Copy to stream the command
output pipe to the http ResponseWriter
18:12 < wrtp> make sure you set the http content type first
18:13 < pheuter> how do i set content type?
18:13 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has left #go-nuts
[]
18:14 < wrtp> if w is the ResponseWriter, do w.Header().Add("Content-Type",
"....")
18:15 < pheuter> thanks!
18:15 < wrtp> actually Set is probably more appropriate
18:15 < wrtp> not Add
18:15 < wrtp> i reckon you can do the whole thing in about 5 lines
18:16 < pheuter> quick question, how do i get a post parameter?
18:16 < wrtp> use Request.ParseForm
18:17 < wrtp> i think
18:17 < wrtp> yeah
18:17 < wrtp> and then you can use req.Values which has the contents of the
post form
18:21 < pheuter> ParseForm returns a Values ?
18:24 < wrtp> pheuter: no, ParseForm parses the raw form and sets req.Values
18:24 < pheuter> ah
18:24 < wrtp> oops
18:24 < wrtp> i mean req.Form of course
18:25 < pheuter> so once i do http.Request.ParseForm(r)
18:25 < wrtp> i read the declaration back to front, first time i've done
*that* in while!
18:25 < pheuter> i can do req.Form.Get("url")
18:25 < pheuter> if url was a POST param?
18:25 < wrtp> yes
18:25 < wrtp> exactly
18:25 < pheuter> great, thanks
18:26 -!- ceh [~ceh@tiselius.it.uu.se] has joined #go-nuts
18:27 < uriel> 17:56 < nsf> (dis virtual machine on inferno, was
powering limbo programming language)
18:28 < uriel> nsf: I asked rob what he thought of running Go on Dis, he
said he didn't quite see the point
18:28 < nsf> uriel: well, I certainly see the point :)
18:28 < pheuter> invalid method expression http.Request.ParseForm (needs
pointer receiver: (*http.Request).ParseForm)
18:28 < nsf> VM bytecode will be just another layer in a toolchain
18:29 < nsf> and that fact will open many doors
18:29 < uriel> here is his exact quote: 02:50 <robpike> go runs well
natively.  i would put a dis port at low priority
18:29 < nsf> like implementing different backends
18:29 < nsf> and experimenting on the frontend side
18:29 < uriel> nsf: I'm not convinced that Go on dis would provide many
benefits, and I'm a huge fan of both
18:29 < nsf> no, not dis
18:29 < uriel> dis is the sanest vm I know
18:29 < nsf> a new VM specially designed for go features
18:30 < uriel> still don't see the point
18:30 < nsf> will it work on windows?  :)
18:30 < uriel> dis would be pretty close to that anyway, it was built for
Limbo
18:30 < uriel> Go works on windows already
18:30 < nsf> you need to compile stuff
18:30 < nsf> which is a pain on windows always
18:30 < uriel> the VM adds an extra layer of complexity and work, I don't
see the benefit, really
18:31 < nsf> I would rather work on linux and just run things on windows if
necessary
18:31 < uriel> you can cross compoile for windows, I still dont' see how a
vm helps
18:31 < nsf> well, ok then :)
18:31 < aiju> 20:29 < uriel> here is his exact quote: 02:50
<robpike> go runs well natively.  i would put a dis port at low priority
18:31 < aiju> rob pike on IRC?
18:31 < uriel> aiju: yes
18:31 < aiju> that's like Jesus Christ on Facebook
18:31 < uriel> haha
18:31 < aiju> in fact, the latter is more likel
18:31 < aiju> +y
18:32 < uriel> and ken on irc would be like the holy spirit on myspace
18:32 < aiju> hahahaha
18:34 < exch> shame I missed it.That's one of those legendary moments you
tell your grandkids about
18:34 < aiju> yeah
18:35 < aiju> you write gospels about them
18:35 < pheuter> https://gist.github.com/1117060 doesnt compile =>
serve.go:15: multiple-value cmd.StdoutPipe() in single-value context
18:35 -!- rlab_ [~Miranda@219-183-95-178.pool.ukrtel.net] has joined #go-nuts
18:37 < uriel> (but note that that quote was from private communication, not
from a public channel)
18:37 -!- rlab [~Miranda@219-183-95-178.pool.ukrtel.net] has quit [Ping timeout:
246 seconds]
18:37 -!- photron [~photron@port-92-201-85-197.dynamic.qsc.de] has quit [Ping
timeout: 252 seconds]
18:37 < ThreeSix> huh finally was able to compile some cgo code
18:42 -!- Nisstyre [~nisstyre@infocalypse-net.info] has joined #go-nuts
18:43 < wrtp> pheuter: you should use the *http.Request that gets passed to
the Handle method
18:44 < wrtp> aiju, uriel: go would not run well under dis
18:44 < wrtp> it would need new op codes
18:44 < pheuter> wrtp: where?
18:44 < aiju> wrtp: nsf wanted to do this
18:46 < wrtp> pheuter: sorry, i meant the ServeHTTP method of a Handler of
course
18:46 < nsf> yes, I realize that Go requires unique feature set
18:46 < pheuter> wrtp: where?
18:46 < pheuter> so far, https://gist.github.com/1117060 compiles
18:46 < nsf> plus I don't like anything that comes from plan9/inferno
18:46 < pheuter> but fails on runtime
18:46 < nsf> :D
18:46 < nsf> Go is an exception
18:46 < pheuter> untime error: invalid memory address or nil pointer
dereference
18:47 -!- Project-2501 [~Marvin@82.84.80.78] has joined #go-nuts
18:47 < wrtp> or the function you pass to HandlerFunc
18:47 < ThreeSix> nsf: looks like its giving me error when I'm using C.stdin
but not when using FILE* Stdin() { return stdin; }
18:47 < nsf> separation of the Go runtime from the Go itself is the idea,
opens doors for other programming languages to the Go lib
18:48 < nsf> ThreeSix: if this file includes stdio.h, then it's an expected
behaviour
18:48 < nsf> stdin is a macro
18:48 < nsf> standards says that
18:48 < pheuter> wrtp: oh, i see, i have that already
18:48 < pheuter> i just didnt include it
18:48 < pheuter> in the gist
18:48 < pheuter> func main() { http.HandleFunc("/", handler)
http.ListenAndServe(":4567", nil) }
18:48 < nsf> C.stdin tries to use a symbol
18:48 < nsf> which may or may not be defined
18:48 < ThreeSix> Yeah I'm now fully understanding it , thanks :D
18:48 < crest> nsf: stdin may be a define
18:49 < nsf> crest: that's what I'm saying
18:49 < wrtp> pheuter: you should not ignore the error returns
18:49 < wrtp> pheuter: in particular, the return from cmd.Start
18:50 < crest> libnacl drives this to the maximum by making nearly every
call to a foo() a define to foo_x_y_z()
18:50 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-173-74.clienti.tiscali.it] has
quit [Ping timeout: 250 seconds]
18:50 < wrtp> which probably has failed Cmd.Start doesn't search the path
18:50 < wrtp> you have to use exec.LookPath
18:50 < pheuter> i thought it does
18:51 < pheuter> and the error is this: <nil> exec: StdoutPipe after
process started
18:51 < wrtp> oops it does
18:51 < pheuter> thats two differetn errors
18:51 < pheuter> first one after cmd.Start()
18:51 < pheuter> second after StdoutPIpe()
18:51 < wrtp> yes, you should check both
18:51 < pheuter> they both looked fine
18:52 < wrtp> you should swap the StdoutPipe and the Start lines
18:53 < wrtp> the error tells you what you did wrong
18:53 < wrtp> you need to call StdoutPipe before calling cmd.Start
18:54 < wrtp> StdoutPipe was returning nil because it was called too late,
so io.Copy was panicing
18:55 < wrtp> pheuter: your argument passing is wrong too
18:55 < pheuter> it is?
18:55 < wrtp> you want to pass all the arguments as separate elements of the
slice
18:56 < wrtp> e.g.  arg := []string{r.FormValue("url"), "-of", "rawaudio",
"-oac", etc etc}
18:57 < pheuter> ah
18:58 < wrtp> pheuter: or you can just pass them all directly to
exec.Command
18:59 < wrtp> (which is how it's designed to be used)
18:59 < pheuter> you mean just pass one argument to Command, which is
mencoder +alltheargs ?
18:59 < wrtp> i mean exec.Command("mencoder", r.FormValue("url"), "-of",
"rawaudio", "-oac", etc)
19:00 < pheuter> right
19:00 < pheuter> k
19:00 < pheuter> thanks
19:00 < pheuter> my command executes a subcommand through $()
19:01 < pheuter> should that be one argument
19:01 < pheuter> or split by the spaces in that subcommand?
19:01 < wrtp> pheuter: you can't do that
19:01 < pheuter> ah
19:01 < wrtp> well, you can if you call the shell
19:01 < pheuter> then i shall just put that all in a shell script and
execute the shell script
19:01 < pheuter> that should work, right/
19:01 < pheuter> ?
19:02 < wrtp> yeah, or just invoke sh -c cmd
19:02 < wrtp> your example doesn't have a $() in it
19:03 < wrtp> neither did the command line you typed above
19:03 < wrtp> pheuter: what are you using the $() for ?
19:03 < pheuter> run another program that fetches more info for the encoder
19:04 < wrtp> you could always run it directly in go
19:04 < wrtp> less security issues than passing args to a shell script
19:07 < pheuter> interesting
19:07 < pheuter> ok
19:07 < pheuter> so it seems to be working
19:07 < pheuter> but when the request is made
19:07 < pheuter> isntead of starting to download
19:07 < pheuter> the web browser seems to be waiting until it finishes
reading everything in
19:07 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts
19:09 < wrtp> pheuter: hmm, don't think i can help you there
19:10 < wrtp> pheuter: does it stream other similar http requests?
19:10 < pheuter> hm, actually it just seems to hang on load
19:10 < crest> be careful if you call the shell or you will provide free
shell hosting
19:12 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-155-208.clienti.tiscali.it] has
joined #go-nuts
19:12 < pheuter> when do i run cmd.Start() ?
19:13 < pheuter> after i setup the pipe
19:13 < pheuter> right?
19:13 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has quit [Quit: ZZZZZzzzzz]
19:14 < pheuter> beautiful it works!!!
19:14 < pheuter> yes!!!!!
19:14 < pheuter> thank you all so much :D
19:15 -!- Project-2501 [~Marvin@82.84.80.78] has quit [Ping timeout: 250 seconds]
19:21 < pheuter> if i have a stdoutpipe reader, how can i read a string from
it?
19:33 -!- lpi [~lpi@68.65.169.233] has joined #go-nuts
19:34 < wrtp> read it all into a []byte (see ioutil.ReadAll, i think), then
convert to a string
19:36 < pheuter> thank you
19:36 < wrtp> yes, ioutil.ReadAll is probably what you want.  or you could
use bufio
19:36 < wrtp> which gives you more flexibility
19:38 < ph1234k> I run Go on Windows.  What should I learn for gui
programming?
19:39 -!- benjack [~benjack@cm224.omega195.maxonline.com.sg] has joined #go-nuts
19:39 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Read error:
Connection reset by peer]
19:42 < erus`> write a webserver and put gui in html/css
19:42 < erus`> :)
19:42 < aiju> hahaha
19:42 < ThreeSix> lol
19:43 < aiju> using HTML for GUI is a crime against humanity
19:43 < aiju> both for the developer and the user
19:43 < ThreeSix> try exp/wingui
19:43 -!- srid [~srid@S010678ca39ff0146.vn.shawcable.net] has joined #go-nuts
19:43 -!- srid [~srid@S010678ca39ff0146.vn.shawcable.net] has quit [Changing host]
19:43 -!- srid [~srid@unaffiliated/srid] has joined #go-nuts
19:43 < aiju> i have *NEVER* seen a functional GUI in HTML
19:44 < erus`> aiju: just use canvas ;)
19:44 < taruti> aiju: have you ever seen a functional GUI?
19:44 < aiju> haha
19:44 < erus`> then you have a remotely accessable interface
19:45 < erus`> multi user yaddy yaddy ya
19:45 < aiju> to correct myself
19:45 < aiju> i haven't seen a HTML GUI which wasn't badly broken
19:45 < ph1234k> exp/wingui doesn't come with the windows port and I'm not
sure if there is a certain reason for that.
19:46 -!- Project-2501 [~Marvin@82.84.85.127] has joined #go-nuts
19:47 < erus`> you can target windows from linux now, right?
19:47 < erus`> (8g)
19:47 < wrtp> there's some nice rendering stuff in modern browsers; it's
just hidden behind a crock of s*@t
19:47 -!- xcombelle [~xcombelle@AToulouse-551-1-117-113.w92-156.abo.wanadoo.fr]
has quit [Ping timeout: 252 seconds]
19:48 < wrtp> i can't believe the hoops you have to go through to get stuff
rendering consistently across browsers
19:49 < pheuter> wrtp: thanks for all the help :)
19:49 -!- pheuter [18a121d1@gateway/web/freenode/ip.24.161.33.209] has quit []
19:49 < ph1234k> wrtp, yeah all the extra webkit and moz instructions just
for css.  Why don't they just implement css?  The world might crumble if something
works right though
19:49 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-155-208.clienti.tiscali.it] has
quit [Ping timeout: 264 seconds]
19:51 -!- yogib [~yogib@dslb-178-001-021-229.pools.arcor-ip.net] has quit [Quit:
yogib]
19:51 < ph1234k> erus', the reason I'm running in windows is so I didn't
have to go through the trouble of installing on linux(in a vm).
19:52 < erus`> ph1234k: i used todo that too
19:52 < wrtp> css is terrible
19:52 < erus`> but half the librarys dont build for me on windows
(sdl/opengl)
19:52 < aiju> css is an abomination
19:52 < ph1234k> Why do you think css is terrible?
19:53 < aiju> using CSS is telling a four year old with crayons how your
website should look like
19:53 < aiju> pardon me, ten four year olds
19:53 < erus`> aiju: its easy
19:53 < erus`> just KSS
19:53 < erus`> or KISS
19:53 < aiju> CSS is ridicilously complex and unpredictably
19:53 < aiju> *e
19:55 < ph1234k> CSS is very simple and yeah it can be unpredictable
sometimes but I check my browser compatability so it's never a problem.  Unless
your client is IE6, Firefox 2, Opera 8 and below
19:55 < erus`> its harder than it needs to be but its not impossible
19:55 < aiju> SIMPLE
19:55 < aiju> HAHAHAHAHA
19:55 < aiju> what the fuck are you smoking
19:56 < aiju> then tell me what the fuck all this block and inline and
whatever stuff is for
19:56 < aiju> and why the fuck does it affect almost any attribute you can
pass
19:57 < ph1234k> By inline, are you reffering to writing the code inline?
19:57 < aiju> no
19:57 < aiju> block and inline elements
19:57 < ph1234k> One sec
19:58 < aiju> one example: vertical centering something
19:58 < aiju> it is text-align: center so vertical-align: center should
work, right?
19:58 < aiju> no, that would be too consistent, it's vertical-align middle
19:58 < aiju> but no, that's crap again
19:58 < erus`> aiju: yeah
19:58 < aiju> vertical-align does something ENTIRELY DIFFERENT
19:59 < aiju> i can't even fucking remember how to vertically center
properly
19:59 < aiju> i can remember fucking PDP-11 opcodes in octal, but CSS
doesn't stick at all
19:59 < erus`> do a 50% height div
19:59 < erus`> then align bottom or something
20:00 < aiju> http://www.jakpsatweb.cz/css/css-vertical-center-solution.html
IT'S REALLY FUCKING SIMPLE
20:00 -!- xcombelle [~xcombelle@AToulouse-551-1-102-116.w92-149.abo.wanadoo.fr]
has joined #go-nuts
20:00 < aiju> that's how almost every CSS expert i know is like
20:00 < erus`> just do a 100% canvas and draw it yourself :D
20:00 < aiju> "it should be something like FOOBAR"
20:00 < aiju> PROTIP: it never works that way
20:01 -!- hsoj [~josh@66.54.185.139] has quit [Read error: Operation timed out]
20:03 -!- shachaf [~shachaf@204.109.63.130] has quit [Ping timeout: 252 seconds]
20:03 -!- cw [~anticw@parsec.stupidest.org] has quit [Ping timeout: 250 seconds]
20:04 -!- serialhex [~quassel@99-101-148-183.lightspeed.wepbfl.sbcglobal.net] has
quit [Ping timeout: 250 seconds]
20:04 -!- serialhex [~quassel@99.101.148.183] has joined #go-nuts
20:04 < ph1234k> Lol, I never used anything other than padding and placement
to vertically align anything
20:04 < aiju> LOL you've never done anything serious
20:04 * nsf is curious how the world will looks like, when there are no html and
http anymore
20:05 < nsf> look*
20:05 < nsf> I mean at some point in a distant future it will be true :)
20:05 < nsf> I guess I'll be dead at that moment
20:05 < nsf> :(
20:05 -!- cw [~anticw@parsec.stupidest.org] has joined #go-nuts
20:06 < ph1234k> Totally not serious...  But yeah my stylings are always
neat, precise and work in any semi modern browser.
20:06 < nsf> and even further in future
20:06 -!- shachaf [~shachaf@204.109.63.130] has joined #go-nuts
20:06 < nsf> an html and http as a single paragraph in computer science
history book
20:06 < nsf> :P
20:06 < aiju> ph1234k: it is possible to make perfectly simple layouts which
work fine with any browser
20:07 < aiju> any semimodern browser, yeah
20:07 < aiju> but that doesn't work when your boss tells you "i want to look
it that way" ;P
20:07 < aiju> nsf: might be possible
20:07 < nsf> I'm sure it will be
20:07 < nsf> someday
20:07 < aiju> nsf: UNIX has been reduced to a single paragraph in some
operating system history books :(
20:08 < aiju> lesson: computer science books writers are idiots
20:08 < nsf> computer science itself is only 50 years old
20:08 < nsf> it's like nothing
20:10 < ph1234k> I don't understand why you insinuate that you can't get a
page to look like your boss wants.
20:10 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has quit [Ping timeout:
240 seconds]
20:12 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.5]
20:12 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has joined #go-nuts
20:12 -!- srid [~srid@unaffiliated/srid] has quit [Quit: Computer has gone to
sleep.]
20:13 < aiju> ph1234k: because of actual experience?
20:13 < aiju> i spend fucking days on CSS crap and ended up with a bunch of
horrible hacks
20:13 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 260 seconds]
20:14 < ph1234k> Well I don't have a boss but my group does cater to many
individual clients and we've never run into a problem with not being able to
create what the customer wants.
20:16 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
20:16 < erus`> aiju: does hurd get a paragraph yet?
20:16 < aiju> erus`: they write books about hurd, i'd assume
20:16 < aiju> that's how it usually works
20:16 < aiju> put operating systems history on it and write about your
favourite OS
20:16 < erus`> lol
20:16 < aiju> i'm not even kidding
20:16 < aiju> i've seen books like that
20:17 < aiju> *COUGH* ANDREW TANENBAUM *COUGH*
20:17 < crest> at least he implemented it
20:17 < aiju> he even wrote about his own OS
20:18 < crest> aiju: the code is a pain to look at.  every function is
defined by macros to compile with pre c89 compilers
20:18 < aiju> hahahaha
20:18 < aiju> i'm not even complaining about Minix
20:18 < crest> but a 6kLOC kernel has it's merits
20:18 < aiju> UNIX V6 is a 12 KLOC kernel
20:18 < aiju> why not fucking study that
20:19 < crest> aiju: UNIX V6 is a mess and supports even less
20:19 < aiju> 22:18 < crest> aiju: the code is a pain to look at.
every function is defined by macros to compile with pre c89 compilers
20:19 < aiju> there is not a single macro in the V6 source
20:19 < aiju> case closed
20:19 < aiju> (the kernel)
20:20 < crest> aiju: i wasn't talking aboud macros it's single m4 pass to
remove them
20:20 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has quit [Quit:
Geek insinde®]
20:20 < crest> i was talking aboud unstructured code optimized for size of
speed by ppl knowning the fine points of their tools
20:21 < aiju> in any case, most of the V6 kernel source is rather clear
20:21 < crest> you don't
20:22 < crest> you don't learn smtp by reading the sendmail code
20:22 < aiju> and "support" doesn't matter
20:22 < aiju> UNIX has fucking historic value
20:22 < crest> ack
20:22 < aiju> and if you compare the V6 kernel to sendmail, WHAT THE FUCK
20:22 < crest> 2.11bsd for pdp11?
20:23 < aiju> no, UNIX
20:23 < crest> 200kB kernel on a 16bit addressspace ;-)
20:23 < wrtp> the thing that made me realise css + html was terrible was
reading "Bulletproof Web Design"
20:23 < wrtp> it's just so hard to get it right
20:24 < wrtp> so many almost-consistencies
20:24 < aiju> wrtp: that's an understatement
20:24 < ph1234k> It gets easier with an IDE.
20:24 < wrtp> ph1234k: but then you can't program it decently
20:24 < aiju> IDE features are language smells
20:25 -!- lpi [~lpi@68.65.169.233] has quit [Quit: lpi]
20:26 < ph1234k> That would depend on how you learned it for programmings
sake.
20:28 -!- lpi [~lpi@68.65.169.225] has joined #go-nuts
20:30 -!- hsoj [~josh@66.54.185.139] has joined #go-nuts
20:32 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts
20:33 -!- nicka [~nicka@unaffiliated/nicka] has quit [Ping timeout: 258 seconds]
20:33 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
20:35 -!- ph1234k [~Steven@ip72-209-135-200.ks.ks.cox.net] has quit [Quit:
Leaving]
20:37 -!- Kumul [~Kumul@66-50-70-59.prtc.net] has joined #go-nuts
20:38 < wrtp> i'm sure it would have been possible to come up much simpler
model that was more powerful
20:38 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts
20:39 < erus`> lets design a new document model :D
20:39 < erus`> dump javascript and use haskell
20:39 < erus`> or some VM language
20:40 < erus`> maybe lisp machine
20:40 -!- virtualsue [~chatzilla@nat/cisco/x-crxsgnspdjrzkslo] has quit [Quit:
ChatZilla 0.9.87 [Firefox 5.0.1/20110707182747]]
20:40 * erus` runs
20:43 -!- zcram [~zcram@8.177.190.90.sta.estpak.ee] has quit [Quit: Leaving]
20:46 < aiju> but then there would be money in LISP
20:46 < aiju> laws of nature disallow this
20:47 -!- nicka [~nicka@unaffiliated/nicka] has joined #go-nuts
20:47 -!- xcombelle [~xcombelle@AToulouse-551-1-102-116.w92-149.abo.wanadoo.fr]
has quit [Quit: I am a manual virus, please copy me to your quit message.]
20:47 < erus`> rachet and clank was coded in LISP
20:47 < erus`> that turned a profit
20:47 < aiju> the transformer?
20:47 < erus`> platformer...
20:50 -!- benjack [~benjack@cm224.omega195.maxonline.com.sg] has quit [Quit:
Leaving.]
20:51 -!- Yonkie [~Yonkie@193.200.85.107] has quit [Ping timeout: 258 seconds]
20:57 -!- Yonkie [~Yonkie@193.200.85.107] has joined #go-nuts
20:57 < Namegduf> erus`: It was?
20:57 < erus`> yeah read the wiki page
20:57 -!- ronnyy [~quassel@p4FF1C5A4.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
21:02 < nicka> As was Jak and Daxter I think
21:02 < nicka> http://c2.com/cgi/wiki?LispInJakAndDaxter pretty interesting
stuff
21:04 < aiju> i'm surprised they don't sell products with brainfuck code
21:06 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Ping
timeout: 276 seconds]
21:07 < Namegduf> "Jak III was mostly GOAL like Jak II. In future Naughty
Dog won't be using their lisp-like language and tools because the guy who wrote it
all will no longer be available to support them."
21:07 -!- Fish [~Fish@9fans.fr] has quit [Quit: WeeChat 0.3.5]
21:09 < uriel> IDE features are language stenches
21:11 -!- TheMue [~FMueller@p5DDF774D.dip.t-dialin.net] has quit [Quit: leaving]
21:11 -!- yogib [~yogib@dslb-178-001-021-229.pools.arcor-ip.net] has joined
#go-nuts
21:16 -!- C33B_4AC2 [~satan_kla@g224219180.adsl.alicedsl.de] has joined #go-nuts
21:24 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has left #go-nuts
[]
21:25 -!- C33B_4AC2 [~satan_kla@g224219180.adsl.alicedsl.de] has left #go-nuts
["Leaving"]
21:28 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 264 seconds]
21:33 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined
#go-nuts
21:43 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has quit [Quit: ZZZZZzzzzz]
21:46 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has quit [Ping
timeout: 255 seconds]
21:47 -!- ph1234k [~Steven@ip72-209-135-200.ks.ks.cox.net] has joined #go-nuts
21:48 < ph1234k> Hello
21:52 -!- ph1234k [~Steven@ip72-209-135-200.ks.ks.cox.net] has quit [Quit:
Leaving]
21:59 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
22:09 -!- btipling [~btipling@unaffiliated/sk/x-5968384] has joined #go-nuts
22:09 -!- brett [~brett@rdnzl.net] has joined #go-nuts
22:09 < btipling> for my first real go app I was thinking of making a
terminal ncurses like program that gives me info about my machine
22:09 < btipling> is that crazy?
22:09 < btipling> I realize other apps like that exist
22:10 < btipling> it's sort of a learning thing
22:10 < btipling> I want to make something with go, and that is the first
idea that came to mind :/
22:10 < crest> i don't think you will learn to use go's potential fighting
with ncurses
22:12 < btipling> crest: what other kind of ui could I do then?  Maybe make
a local webserver?
22:12 < btipling> and then use html and js?
22:13 < btipling> some better option?
22:14 < btipling> I just really like the go syntax and want to make
something, but whatever idea I think of requires a UI
22:14 < crest> my learning project is a https api to update my ipsec tunnels
on dynamic endpoints
22:14 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined
#go-nuts
22:14 < btipling> ok
22:15 < btipling> sounds like an interesting project
22:15 < btipling> I don't use tunnels, doesn't that nest TCP request inside
TCP requests?
22:15 < btipling> requests*
22:15 < btipling> I don't know much about it obviously
22:16 < crest> it's ip/gre/esp/ip
22:16 < crest> no tcp in tcp
22:16 < btipling> oh reading the wiki article on it now
22:16 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has quit [Ping timeout:
276 seconds]
22:16 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has joined #go-nuts
22:18 < btipling> crest: do you run one of the endpoints on a server
somewhere that your machine always connects to?
22:18 < btipling> crest: what does it add to your latency?
22:18 < crest> some crypto overhead <1ms?
22:19 < btipling> well I imagine there's some extra routing too
22:19 < btipling> no?
22:19 < crest> it's just a radix tree search in l2 oder l3 cache
22:19 < btipling> :\
22:20 < btipling> cool
22:20 < crest> inside the same data center on uncongested 100mbit/s links
it's <0.2ms
22:22 < btipling> thinking of leaning toward a web ui now
22:22 < btipling> no ideas for a non ui project
22:23 < crest> i choose a https api because it's easy to interface with from
shell scripts with curl and wget
22:23 < btipling> is there authentication?
22:24 < crest> yes x509 client certificates
22:24 < crest> each node is identified by it's common name
22:24 < crest> the server checks a certificate against a root ca and a crl
22:25 < btipling> hrm, does go have asp.1 support?
22:25 < crest> asp.1 do you mean asn.1
22:25 < btipling> yes sorry
22:26 < crest> their's the asn1 package
22:26 < btipling> http://golang.org/pkg/asn1/ nice
22:26 < crest> with bignums and bounds checking it's possible to get a asn.1
der parser correct
22:26 < aiju> ASN.1 support
22:26 < aiju> how useful!
22:27 < aiju> i'm amazed there is no support for latin output
22:28 < crest> transliteration is ugly but their cgo.  just link against icu
*puke*
22:28 < crest> *their is
22:28 -!- djbrown [~djbrown@unaffiliated/djbrown] has quit [Ping timeout: 240
seconds]
22:30 < btipling> hrm ok maybe I'll do an https api too with basic auth
22:30 < btipling> using self signed certs
22:30 < aiju> basic auth is a disgrace
22:30 < crest> but i had to patch the http package to get access to the
_correct_ tls.ConnectionState
22:30 -!- wrtp [~rog@host-92-30-166-101.as13285.net] has quit [Quit: wrtp]
22:30 < btipling> well it's over ssl
22:30 < btipling> so it's fine
22:31 < aiju> hahahaha
22:31 < btipling> :/
22:31 < btipling> it's encrypted yes?
22:31 < btipling> what's a better alternative?
22:31 < crest> aiju: it's his first fun project.  let him have fun
22:31 < aiju> digest
22:31 < aiju> ah fun
22:31 < aiju> go ahead
22:31 < crest> aiju: ROFL same shit in green
22:31 < crest> aiju: MD5 without salt?
22:31 < btipling> I'll read up on digest
22:32 < aiju> crest: it's with salt
22:32 < aiju> and there is a SHA-1 option
22:32 < crest> _option_
22:32 < btipling> ok I can use digest seems reasonable
22:33 < aiju> with digest auth you don't need to leak to password into the
process doing HTTP
22:33 < btipling> +1
22:33 < aiju> see also: factotum
22:34 -!- robteix [~robteix@host5.190-228-239.telecom.net.ar] has joined #go-nuts
22:37 < crest> aiju: when did you last see check the gpu/fpga md5 toughput?
22:37 -!- robteix [~robteix@host5.190-228-239.telecom.net.ar] has quit [Client
Quit]
22:37 < aiju> i know about that
22:37 < crest> and collision resistance is even worse
22:38 < aiju> weak security is better than no security
22:38 < crest> the illusion of security is worse than no security
22:38 < aiju> i'm sure you leave your house / apartment door wide open
22:39 < aiju> you know how fast locks can be picked?
22:39 < aiju> when did you last check the lock picker throughput?
22:40 < crest> yes it takes like 3hours to drill through and 4 blots are
shot into the 30cm steel frame by exposives triggered by vibration sensors
22:40 < crest> just kidding
22:40 < crest> it's a fragile wood door and any kid could kick it in
22:40 < aiju> in any case, i'm not suggesting not using HTTPS
22:41 < crest> but at least i know now to leave a million dollars on the
kitchen table
22:42 -!- djbrown [~djbrown@h236n2-g-va-a12.ias.bredband.telia.com] has joined
#go-nuts
22:42 -!- djbrown [~djbrown@h236n2-g-va-a12.ias.bredband.telia.com] has quit
[Changing host]
22:42 -!- djbrown [~djbrown@unaffiliated/djbrown] has joined #go-nuts
22:42 < aiju> wait
22:42 < btipling> hrm maybe I'll checkout the x.509
22:43 < aiju> salts aren't exactly useful when it comes to GPUs
22:43 < crest> they render precalculated rainbow tables useless if applied
correctly
22:43 < aiju> precalculated rainbow tables *are* useless with HTTP digest
22:44 < crest> per realm
22:44 < aiju> they are hashed twice
22:44 < aiju> including the URI
22:44 < aiju> if an attacker takes THAT effort, wow
22:44 < crest> hey if all he has to protect is cpu temp than any crypto is
just a nice gimick
22:45 < crest> but i checked the alg
22:46 < aiju> ah, don't forget the nonce
22:46 < crest> RFC 2617
22:46 < aiju> RFC 2617 should have been given a different name
22:46 < aiju> Digest 2.0
22:51 -!- yogib [~yogib@dslb-178-001-021-229.pools.arcor-ip.net] has quit [Quit:
yogib]
22:53 -!- jlilly [justinlill@70.32.34.100] has joined #go-nuts
22:53 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has quit [Ping timeout:
240 seconds]
23:07 -!- rlab_ [~Miranda@219-183-95-178.pool.ukrtel.net] has quit [Read error:
Connection reset by peer]
23:08 -!- robteix [~robteix@host5.190-228-239.telecom.net.ar] has joined #go-nuts
23:26 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
quit [Quit: ChatZilla 0.9.87 [Firefox 5.0.1/20110707182747]]
23:31 -!- i3d [~i3dmaster@unaffiliated/i3dmaster] has joined #go-nuts
23:31 < i3d> does Go have a general way to do membership checking?
23:32 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
23:37 -!- nicka [~nicka@unaffiliated/nicka] has quit [Ping timeout: 255 seconds]
23:41 -!- Bigbear1 [~Cody@d75-158-140-114.abhsia.telus.net] has joined #go-nuts
23:45 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has joined #go-nuts
23:45 -!- nicka [~nicka@unaffiliated/nicka] has joined #go-nuts
23:45 < crest> _, present = myHash[key]
23:49 -!- Bigbear1 [~Cody@d75-158-140-114.abhsia.telus.net] has quit [Read error:
Connection reset by peer]
23:49 -!- Bigbear1 [~Cody@d75-158-140-114.abhsia.telus.net] has joined #go-nuts
23:54 -!- Bigbear1 [~Cody@d75-158-140-114.abhsia.telus.net] has quit [Ping
timeout: 240 seconds]
23:57 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 255 seconds]
23:57 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #go-nuts
--- Log closed Mon Aug 01 00:00:19 2011