--- Log opened Thu Jun 16 00:00:12 2011
--- Day changed Thu Jun 16 2011
00:00 -!- hdon- [~donny@c-67-186-35-159.hsd1.pa.comcast.net] has joined #go-nuts
00:00 -!- jessta [~jessta@li7-205.members.linode.com] has quit [Ping timeout: 255
seconds]
00:01 -!- jessta [~jessta@li7-205.members.linode.com] has joined #go-nuts
00:01 -!- comex [~root@ec2-67-202-46-7.compute-1.amazonaws.com] has joined
#go-nuts
00:01 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
00:02 < kevlar_work> crazy2be, there was totally a bike/shed package for a
few days.
00:02 < crazy2be> what was in it?
00:04 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has joined #go-nuts
00:07 -!- robteix [~robteix@host16.190-230-219.telecom.net.ar] has joined #go-nuts
00:11 -!- m29uk1 [~root@host109-156-178-73.range109-156.btcentralplus.com] has
joined #go-nuts
00:12 < m29uk1> yo peeps
00:12 -!- m29uk1 [~root@host109-156-178-73.range109-156.btcentralplus.com] has
left #go-nuts []
00:17 -!- m4dh4tt3r [~Adium@c-69-181-219-75.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
00:18 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has quit [Read error:
Connection reset by peer]
00:20 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has joined #go-nuts
00:25 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts
00:30 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
00:31 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Read error: Connection
reset by peer]
00:33 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
00:36 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
00:41 -!- KirkMcDonald [~Kirk@python/site-packages/KirkMcDonald] has quit [Ping
timeout: 240 seconds]
00:41 -!- KirkMcDonald [~Kirk@python/site-packages/KirkMcDonald] has joined
#go-nuts
00:42 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has quit [Ping
timeout: 240 seconds]
00:42 -!- Zoopee [alsbergt@zoopee.org] has quit [Ping timeout: 240 seconds]
00:42 -!- jeremy_c [~jeremy@cowgar.com] has quit [Ping timeout: 240 seconds]
00:42 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts
00:42 -!- jeremy_c [~jeremy@cowgar.com] has joined #go-nuts
00:43 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined
#go-nuts
00:43 -!- larva [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com] has
quit [Quit: No Ping reply in 180 seconds.]
00:43 -!- larva [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com] has
joined #go-nuts
00:43 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Linkinus - http://linkinus.com]
00:53 -!- gtaylor [~gtaylor@99-5-124-9.lightspeed.gnvlsc.sbcglobal.net] has joined
#go-nuts
00:55 < dfc> adg: are you happy with the resolution of the go/build/Makefile
discussion ?
00:56 -!- eikenberry [~jae@ivanova.zhar.net] has quit [Quit: End of line.]
00:57 <@adg> yes I think your fix is fine
01:00 < brandini> harumph
01:05 < dfc> cool
01:16 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
01:31 -!- rurban [~chatzilla@62-47-150-172.adsl.highway.telekom.at] has joined
#go-nuts
01:33 -!- angasule [~angasule@190.2.33.49] has quit [Read error: Connection reset
by peer]
01:34 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
01:38 < crazy2be> dfc: What discussion?
01:39 < dfc> two swecs
01:39 < dfc> secs
01:39 < dfc>
http://groups.google.com/group/golang-dev/browse_thread/thread/67e6979b10b84720/df9fefce972d42ce?lnk=gst&q=crud#df9fefce972d42ce
01:39 < crazy2be> dfc: I usually hit the x key rather than the c key, never
seen that typo before :P
01:40 < dfc> w is directly to the left of e on my keyboard
01:40 < dfc> and above s
01:40 < kuroneko> ...  select off of a nil channel is perfectly safe and
legal, isn't it?
01:40 < dfc> so it was a case of not lifting off between keypresses
01:40 < crazy2be> ah
01:40 < crazy2be> butter than my usually typo
01:40 < dfc> kuroneko: probably not
01:40 < dfc> what are you trying to do
01:41 < kuroneko> I've got a large select loop that *might* have a timeout
sometimes
01:42 < dfc> why would the channel var be nil >?
01:42 < kuroneko> so I have a case <-waitC: where waitC might have been
initialised with Time.after(), or it might be nil
01:43 < kuroneko> because I don't want that case to fire this iteration.
01:43 * dfc checks the spec
01:43 < dfc> it might be legal
01:43 < kuroneko> likewise, I'm doing that now
01:43 < dfc> but i'm sure it's not enchoraged
01:43 < kuroneko> ah, it's in the spec
01:44 < Tv> receive from a nil channel causes runtime panic
01:44 < kuroneko> 'A channel may be nil, which is equivalent to that case
not being present in the select statement'
01:44 < Tv> select is special
01:44 < kuroneko> Tv: yes, but this is specifically in select
01:44 < Tv> yeah select supports that so you can set channels to nil as they
get closed
01:44 < dfc> i'm worried that you'll get into trouble with the memory model
01:44 < Tv> dfc: why?
01:45 < dfc> you said that waitC will be initialised at some point after the
select starts ?
01:45 < kuroneko> no
01:45 < kuroneko> it's always initialised prior to the select
01:45 < dfc> from the same go routine ?
01:45 < kuroneko> yes
01:45 < kuroneko> it's a local
01:45 < kuroneko> to make sure I can't abuse it
01:45 < Tv>
http://blog.golang.org/2010/09/go-concurrency-patterns-timing-out-and.html <--
good summary
01:46 < dfc> that'll probably be ok then
01:48 < kuroneko> the exact details is that it's actually in a client
handling thread - datums for the client are retransmitted every N until a result
is available for that datum.  There can be multiple datums considered, each with
their own timeout, or the queue can be empty.
01:48 < kuroneko> so yeah, being able to select on a nil channel means less
stupidity in that loop
01:49 < kuroneko> so there's a pre-evaluation before the select to work out
who will be due next (and to handle overdue items)
01:51 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
01:55 -!- robteix [~robteix@host16.190-230-219.telecom.net.ar] has quit [Quit:
Leaving...]
02:01 -!- gtaylor [~gtaylor@99-5-124-9.lightspeed.gnvlsc.sbcglobal.net] has quit
[Quit: gtaylor]
02:02 -!- welterde [welterde@thinkbase.srv.welterde.de] has joined #go-nuts
02:04 -!- nannto [~nanto@pee5b70.tokyff01.ap.so-net.ne.jp] has joined #go-nuts
02:07 -!- benjack [~benjack@bb121-6-49-120.singnet.com.sg] has joined #go-nuts
02:11 -!- dju_ [dju@fsf/member/dju] has joined #go-nuts
02:14 -!- dju [dju@fsf/member/dju] has quit [Ping timeout: 240 seconds]
02:18 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Remote host closed the
connection]
02:25 < angasule> hmm, I'm guessing go-gtk is the most popular GUI library
for go these days?  what other options are available?
02:28 < |Craig|> angasule: a lot of people seem to like making a web
interface since go contains a nice http server
02:28 < crazy2be> angasule: Html :P
02:28 < angasule> how about something that allows drawing?  oh, I see there
is go-sdl, nice
02:29 -!- niemeyer_ [~niemeyer@201-10-54-154.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
02:32 -!- niemeyer [~niemeyer@200-163-166-19.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
02:38 -!- warlock_mza [~warlock@86-91-231-201.fibertel.com.ar] has joined #go-nuts
02:38 < warlock_mza> hey guys, how do I remove a key from a map ?
02:39 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 264
seconds]
02:41 < angasule> warlock_mza: timeZone["PDT"] = 0, false // Now on Standard
Time
02:41 < angasule> warlock_mza: http://golang.org/doc/effective_go.html#maps
02:42 < warlock_mza> angasule, holyness :-p thanks
02:43 < warlock_mza> can I just: timeZone["PDT"] = _, false ? instead of
putting a 0 ?
02:45 -!- TheCritic [~TheCritic@c-24-30-34-40.hsd1.ga.comcast.net] has quit [Quit:
TheCritic]
02:45 < dfc> nope
02:46 < dfc> _ is only for assigning things
02:46 < dfc> it has no value itself
02:46 < dfc> so just use the zero value for whatever the type you defined
for the values of that map
02:46 < warlock_mza> k
02:49 -!- kinofcain [~KinOfCain@h-64-105-141-42.snvacaid.static.covad.net] has
quit [Quit: kinofcain]
02:56 < warlock_mza> if I'm declaring a struct which has a member of type
map[string]int, do I have to initialize that map somehow ? cause I can't put make
in the declaration
02:57 < exch> yes, create a NewT() function which returns an instance of
your struct and initialized the map
02:58 < dfc> warlock_mza: yes
02:58 < dfc> the general practice is to do something like
02:58 < dfc> struct Foo { ...  }
02:58 < dfc> func NewFoo() *Foo {
02:58 < dfc> return &Foo { yourMap: make(map[string]int) }
02:58 < dfc> }
02:58 < dfc> ^ note, won't compile, due to brevity
02:59 < warlock_mza> so I can't do: var myvar struct { mymap map[string]int
} ?
02:59 < dfc> you can
02:59 < dfc> but mymap will be nil
02:59 < warlock_mza> cause var would declare but not initializa ?
02:59 < dfc> that is correct
02:59 < exch> youd have to do myvar.mymap = make(...) afterwards
03:00 < warlock_mza> and can I do that and later something like myvar.mymap
= make(map[string]int) ?
03:00 < warlock_mza> oh ok
03:00 -!- ukai_ [~ukai@nat/google/x-mcxbzgpootkgewbw] has quit [Ping timeout: 258
seconds]
03:02 -!- berma [~duraffour@ks355364.kimsufi.com] has quit [Ping timeout: 252
seconds]
03:02 -!- berma [~duraffour@ks355364.kimsufi.com] has joined #go-nuts
03:04 -!- srid_ [~srid@unaffiliated/srid] has joined #go-nuts
03:04 -!- srid_ [~srid@unaffiliated/srid] has quit [Client Quit]
03:05 < danilo04> xopa di
03:09 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the
connection]
03:11 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts
03:14 -!- benjack [~benjack@bb121-6-49-120.singnet.com.sg] has quit [Quit:
Leaving.]
03:27 -!- ukai_ [~ukai@nat/google/x-mknhsxsrdtjsfcwd] has joined #go-nuts
03:29 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has quit [Ping
timeout: 252 seconds]
03:30 -!- mikespook [~mikespook@219.137.254.237] has quit [Ping timeout: 276
seconds]
03:34 < mdxi> dang.  i wanted to write a little datamunging program in go,
but gosqlite blows up with linkage errors during goinstall.  the same errors a guy
was having on the list back in april :(
03:37 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
03:38 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts
03:43 < str1ngs> mdxi: what version of go are you using?
03:47 < warlock_mza> is there anyway to convert to a struct that holds the
struct type converting from ?
03:50 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
03:52 -!- virtualsue [~chatzilla@nat/cisco/x-lihmqdincujilfgj] has joined #go-nuts
03:53 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Read
error: Operation timed out]
03:53 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
03:54 < warlock_mza> is there any use for an empty struct ?
03:54 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts
03:55 < dfc> possibly to hang some function on to statisfy an interface
03:55 < dfc> but you can do the same with
03:55 < dfc> type Foo int
03:55 < dfc> func (f *Foo) bar() { }
03:55 < warlock_mza> ok,
03:55 -!- qrush [u1528@gateway/web/irccloud.com/x-egyvjpbojshoswqb] has joined
#go-nuts
03:56 -!- vpit3833 [~user@203.111.33.203] has quit [Read error: Connection reset
by peer]
03:57 < dfc> there might be more uses
03:57 < crazy2be> warlock_mza: some people use a struct {} for channel
communication where the value is insignificant and only the fact that there was
communication matters
03:57 < dfc> i recently saw an issue raised that structs with no members
should consume 0 space
03:57 < crazy2be> e.g.  a completed channel
03:57 < dfc> so they must have a use
03:57 < dfc> crazy2be: why not pass a bool or an int
03:57 < crazy2be> but most people use bools for that
03:57 < dfc> ^ ditto
03:57 < crazy2be> :)
03:57 < warlock_mza> k
03:57 < crazy2be> that was talked about on here some time ago
03:58 < warlock_mza> is there anyway to convert to a struct that holds the
struct type converting from ?
03:58 < dfc> and passing an emptry struct sounds like a code smell that you
should actually be passing an interface
03:58 < dfc> as you're looking for behaviour, not implementation
04:01 -!- Cork[home] [Cork@firefox/community/cork] has quit [Disconnected by
services]
04:01 -!- unCork[home] [Cork@h83n1c1o1042.bredband.skanova.com] has joined
#go-nuts
04:02 -!- mikespook [~mikespook@219.137.254.237] has joined #go-nuts
04:05 < crazy2be> goodnight internet
04:05 < crazy2be> dream of structs {}
04:06 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has joined
#go-nuts
04:07 < kuroneko> mdxi: which gosqlite?  the one on googlecode?
04:09 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services]
04:09 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
04:11 -!- araujo [~araujo@190.73.44.29] has joined #go-nuts
04:11 -!- araujo [~araujo@190.73.44.29] has quit [Changing host]
04:11 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
04:19 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has quit [Read
error: Operation timed out]
04:20 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has joined #go-nuts
04:25 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 252 seconds]
04:28 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote
host closed the connection]
04:36 < mdxi> sorry; i ran away to play minecraft to relax :)
04:36 < mdxi> str1ngs: 8g version weekly.2011-06-09 8703
04:36 < mdxi> kuroneko: yes
04:38 -!- mtrichardson [~mtrichard@li22-133.members.linode.com] has quit [Ping
timeout: 260 seconds]
04:38 -!- mtrichardson [~mtrichard@li22-133.members.linode.com] has joined
#go-nuts
04:39 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
04:39 < str1ngs> mdxi: have you tried https://github.com/kuroneko/gosqlite3
. it should install with goinstall
04:41 -!- virtualsue [~chatzilla@nat/cisco/x-lihmqdincujilfgj] has quit [Quit:
ChatZilla 0.9.87 [Firefox 4.0.1/20110413222027]]
04:44 < kuroneko> >_>
04:44 < kuroneko> I'm actually maintaining it again >_>
04:44 < kuroneko> so if you open issues on github, they'll get fixed too
04:45 < str1ngs> I see an issue there :P not really an issue though just a
small change for local installs
04:46 < kuroneko> oh, right, that one
04:46 < mdxi> yeah, that compiles.  thank you for the tip.  i'll play with
it tomorrow :)
04:47 < kuroneko> yeah, I'm temporarily ignoring the LD stuff because things
currently work for me, and I don't think it's a real show-stopper yet.
04:48 < str1ngs> I was more worried that I left them uncommented.  I dont
see it as a big issue
04:48 < kuroneko> also, because I could have sworn I saw feyeleanor commit
something related
04:49 < str1ngs> she accepted a pull request to add cgo directive support
for goinstall
04:49 -!- jamesmiller5 [~jamesmill@184.17.105.74] has quit [Quit: Leaving]
04:49 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
04:51 * kuroneko had to remove allusions that he copied rsc
04:51 < kuroneko> >_>
04:52 < kuroneko> [I just copied the C API - rsc's one came later whilst I
was busy being unable to spend time on go]
04:54 -!- warlock_mza [~warlock@86-91-231-201.fibertel.com.ar] has quit [Remote
host closed the connection]
04:54 -!- vpit3833 [~user@203.111.33.203] has joined #go-nuts
04:55 < kuroneko> anyway, that sort of 'bug' needs me to have a real reason
to come back and visit it :) I'll have that within the month once my current
project actually needs sqlite support
05:08 -!- vpit3833 [~user@203.111.33.203] has quit [Read error: Connection reset
by peer]
05:33 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Remote host closed the
connection]
05:37 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Ping timeout: 244 seconds]
05:39 -!- danilo04 [~danilo04@66.44.225.80] has quit [Quit: Leaving]
05:40 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
05:45 -!- arctanx [~tk@173.203.126.100] has quit [Quit: Ciao]
05:47 -!- arctanx [~tk@1.21jiggawatts.net] has joined #go-nuts
05:50 -!- rurban [~chatzilla@62-47-150-172.adsl.highway.telekom.at] has quit [Ping
timeout: 258 seconds]
05:51 -!- bobody [~alexc@unaffiliated/alexc] has joined #go-nuts
05:55 -!- danilo04 [~danilo04@66.44.225.80] has joined #go-nuts
05:55 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
05:55 -!- alanlian1 [~yogafire@c-71-204-189-190.hsd1.ca.comcast.net] has quit
[Ping timeout: 240 seconds]
05:55 -!- Archwyrm [~archwyrm@archwyrm.net] has quit [Ping timeout: 240 seconds]
05:55 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Remote host closed the
connection]
05:56 -!- Archwyrm [~archwyrm@archwyrm.net] has joined #go-nuts
05:56 -!- alanliang [~yogafire@c-71-204-189-190.hsd1.ca.comcast.net] has joined
#go-nuts
05:59 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
06:02 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
06:02 -!- danilo04 [~danilo04@66.44.225.80] has quit [Quit: Leaving]
06:06 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 240
seconds]
06:18 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-181-149.clienti.tiscali.it] has
joined #go-nuts
06:18 -!- bobody [~alexc@unaffiliated/alexc] has quit [Quit: WeeChat 0.3.4]
06:21 -!- Cork[home] [Cork@h83n1c1o1042.bredband.skanova.com] has joined #go-nuts
06:21 -!- Cork[home] [Cork@h83n1c1o1042.bredband.skanova.com] has quit [Changing
host]
06:21 -!- Cork[home] [Cork@firefox/community/cork] has joined #go-nuts
06:24 -!- zaero [~eclark@servo.m.signedint.com] has quit [Quit: ZNC -
http://znc.sourceforge.net]
06:24 -!- Guest39642 [Cork@h83n1c1o1042.bredband.skanova.com] has quit [Ping
timeout: 258 seconds]
06:25 -!- noodles775 [~michael@g225068116.adsl.alicedsl.de] has joined #go-nuts
06:25 -!- noodles775 [~michael@g225068116.adsl.alicedsl.de] has quit [Changing
host]
06:25 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts
06:26 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has joined
#go-nuts
06:29 -!- zaero [~eclark@servo.m.signedint.com] has joined #go-nuts
06:37 -!- zaero [~eclark@servo.m.signedint.com] has quit [Quit: ZNC -
http://znc.sourceforge.net]
06:38 -!- zaero [~eclark@servo.m.signedint.com] has joined #go-nuts
06:40 -!- fvbommel [~fvbommel_@86.86.15.250] has quit [Ping timeout: 276 seconds]
06:41 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
06:57 -!- niemeyer_ [~niemeyer@201-10-54-154.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
07:00 -!- piranha [~piranha@524925BC.cm-4-2a.dynamic.ziggo.nl] has joined #go-nuts
07:01 -!- benjack [~benjack@bb121-6-49-120.singnet.com.sg] has joined #go-nuts
07:13 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has quit [Ping
timeout: 240 seconds]
07:14 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has joined
#go-nuts
07:20 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has quit [Ping
timeout: 252 seconds]
07:22 -!- sebastianskejoe [~sebastian@188.114.142.217] has joined #go-nuts
07:25 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-181-149.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
07:27 -!- GeertJohan [~geertjoha@s51478c91.adsl.wanadoo.nl] has joined #go-nuts
07:33 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts
07:34 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has quit [Ping
timeout: 252 seconds]
07:39 -!- fvbommel [~fvbommel_@131.155.71.60] has joined #go-nuts
07:40 -!- photron [~photron@port-92-201-147-83.dynamic.qsc.de] has joined #go-nuts
07:42 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has joined
#go-nuts
07:59 -!- creack [~charme_g@163.5.84.203] has quit [Read error: Operation timed
out]
08:16 -!- mikespook1 [~mikespook@219.137.235.187] has joined #go-nuts
08:17 -!- mikespook [~mikespook@219.137.254.237] has quit [Ping timeout: 276
seconds]
08:21 -!- sebastia1skejoe [~sebastian@188.114.142.217] has joined #go-nuts
08:24 -!- sebastianskejoe [~sebastian@188.114.142.217] has quit [Ping timeout: 240
seconds]
08:43 -!- krolaw [~krolaw@203.100.208.229] has quit [Quit: krolaw]
09:04 -!- jemeshsu [~jemeshsu@bb220-255-88-127.singnet.com.sg] has left #go-nuts
[]
09:06 -!- B33p [~mgray@li226-224.members.linode.com] has joined #go-nuts
09:06 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
09:08 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts
09:15 -!- wrtp [~rog@92.30.144.148] has joined #go-nuts
09:25 -!- sebastia1skejoe [~sebastian@188.114.142.217] has quit [Quit: Lost
terminal]
09:26 -!- virtualsue [~chatzilla@nat/cisco/x-oomuwhnzxgfgqxht] has joined #go-nuts
09:38 -!- mikespook1 [~mikespook@219.137.235.187] has quit [Quit: Leaving.]
10:00 -!- creack [~charme_g@163.5.84.203] has joined #go-nuts
10:08 -!- benjack [~benjack@bb121-6-49-120.singnet.com.sg] has quit [Quit:
Leaving.]
10:39 -!- alehorst [~alehorst@186.212.214.41] has joined #go-nuts
10:45 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
10:55 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
11:04 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined
#go-nuts
11:07 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
11:07 -!- wjlroe_ [u1877@gateway/web/irccloud.com/x-fhjreyjdeovjfeuv] has quit
[Quit: Connection closed for inactivity]
11:21 -!- _andre [~andre@fosforo.f2.k8.com.br] has joined #go-nuts
11:27 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has quit [Ping
timeout: 240 seconds]
11:31 -!- alehorst [~alehorst@186.212.214.41] has quit [Ping timeout: 255 seconds]
11:44 -!- Broady [~b@unaffiliated/broady] has joined #go-nuts
11:46 -!- alehorst [~alehorst@189.58.7.245.dynamic.adsl.gvt.net.br] has joined
#go-nuts
11:54 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the
connection]
11:57 -!- replore [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has
joined #go-nuts
12:10 -!- alehorst1 [~alehorst@189.58.7.245.dynamic.adsl.gvt.net.br] has joined
#go-nuts
12:13 -!- alehorst [~alehorst@189.58.7.245.dynamic.adsl.gvt.net.br] has quit [Ping
timeout: 255 seconds]
12:31 -!- tncardoso [~thiago@189.59.207.120] has joined #go-nuts
12:35 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts
12:39 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
12:42 < str1ngs> I'm getting this with tip.  anyone else?  goinstall:
github.com/mattn/go-gtk/gtk: package has no files
12:42 < str1ngs> seems to have started with some of the goinstall changes
12:44 -!- virtualsue [~chatzilla@nat/cisco/x-oomuwhnzxgfgqxht] has quit [Quit:
ChatZilla 0.9.87 [Firefox 4.0.1/20110413222027]]
12:47 -!- krolaw [~krolaw@203.100.208.229] has quit [Quit: krolaw]
12:51 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has joined
#go-nuts
12:56 -!- alehorst1 [~alehorst@189.58.7.245.dynamic.adsl.gvt.net.br] has quit
[Read error: Connection reset by peer]
13:02 -!- boscop_ [~foo@f055022107.adsl.alicedsl.de] has joined #go-nuts
13:03 -!- alehorst [~alehorst@201.22.35.66.dynamic.adsl.gvt.net.br] has joined
#go-nuts
13:04 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has quit [Ping
timeout: 240 seconds]
13:04 -!- boscop [~foo@f050131098.adsl.alicedsl.de] has quit [Ping timeout: 250
seconds]
13:06 < uriel> yes, I think it is know the latest goinstall hanges broke cgo
packages
13:07 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has joined
#go-nuts
13:09 -!- wrtp [~rog@92.30.144.148] has quit [Quit: wrtp]
13:09 -!- dlowe [~dlowe@ita4fw1.itasoftware.com] has joined #go-nuts
13:10 < str1ngs> was not broke before.  define broke?
13:25 -!- niemeyer [~niemeyer@201-10-54-154.pltce701.dsl.brasiltelecom.net.br] has
joined #go-nuts
13:41 -!- marten__ [~marten@62.21.178.171] has joined #go-nuts
13:41 -!- boscop_ [~foo@f055022107.adsl.alicedsl.de] has quit [Ping timeout: 255
seconds]
13:45 < uriel> it worked before
13:45 < uriel> anyway, I'm just going from what I think I heard on twitter,
don't believe anything I say (ever)
14:04 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
14:26 -!- sacho [~sacho@87-126-39-76.btc-net.bg] has quit [Ping timeout: 276
seconds]
14:28 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
14:31 -!- fvbommel [~fvbommel_@131.155.71.60] has quit [Ping timeout: 276 seconds]
14:38 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has left #go-nuts []
14:40 -!- boscop [~foo@unaffiliated/boscop] has joined #go-nuts
14:40 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
14:42 -!- sacho [~sacho@87-126-39-76.btc-net.bg] has joined #go-nuts
14:43 -!- zeroXten [~zeroXten@0x10.co.uk] has quit [Ping timeout: 244 seconds]
14:45 -!- pharris [~Adium@rhgw.opentext.com] has quit [Client Quit]
14:48 -!- tncardoso [~thiago@189.59.207.120] has quit [Quit: bye]
14:50 -!- zeroXten [~zeroXten@0x10.co.uk] has joined #go-nuts
14:51 -!- init6 [~chad@ice.superfrink.net] has joined #go-nuts
14:54 -!- GeertJohan [~geertjoha@s51478c91.adsl.wanadoo.nl] has quit [Quit:
Leaving.]
15:01 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 252 seconds]
15:07 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.5]
15:09 -!- piranha [~piranha@524925BC.cm-4-2a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
15:12 -!- marten__ [~marten@62.21.178.171] has quit [Quit: marten__]
15:21 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
15:29 -!- robteix [~robteix@nat/intel/x-kbeqfdicexzdzgnm] has joined #go-nuts
15:30 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Quit: Ex-Chat]
15:33 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Quit:
leaving]
15:35 -!- pjacobs2 [~pjacobs@66.54.185.130] has joined #go-nuts
15:38 -!- tncardoso [~thiagon@150.164.2.20] has joined #go-nuts
15:39 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Ping timeout: 258 seconds]
15:39 < vegai> oh, seems like D has those pure functions
15:39 < vegai> http://drdobbs.com/blogs/tools/230700070
15:39 < vegai> which I wrote a proposal for go the other day
15:42 < uriel> D has everything
15:44 -!- iant [~iant@nat/google/x-cwtrymjjwlglydiy] has joined #go-nuts
15:44 -!- mode/#go-nuts [+v iant] by ChanServ
15:45 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined
#go-nuts
15:46 -!- tvw [~tv@212.79.9.150] has quit [Read error: Connection reset by peer]
15:47 -!- sacho [~sacho@87-126-39-76.btc-net.bg] has quit [Read error: Operation
timed out]
15:48 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
15:48 -!- sacho [~sacho@87-126-39-76.btc-net.bg] has joined #go-nuts
15:55 -!- fvbommel [~fvbommel_@86.86.15.250] has joined #go-nuts
15:59 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts
16:00 < jessta> vegai: gcc c has pure functions too
16:02 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
16:02 -!- Loonacy [~loonacy@c-67-172-248-248.hsd1.ut.comcast.net] has quit [Read
error: Operation timed out]
16:04 -!- Tv [~Tv@ip-66-33-206-8.dreamhost.com] has joined #go-nuts
16:12 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:13 < jessta> vegai: you'll note that D doesn't solve the problem I
pointed out with your proposal
16:14 -!- Loonacy [~loonacy@c-67-172-248-248.hsd1.ut.comcast.net] has joined
#go-nuts
16:15 < vegai> jessta: yeah..
16:16 < vegai> wbright doesn't seem to know that even haskell has debug
functions, though
16:16 < vegai> or wait, did I remember wrong
16:18 < vegai> yeah, it was just the error function that works everywhere
16:21 -!- dju_ [dju@fsf/member/dju] has quit [Quit: Quitte]
16:27 -!- pphalen [~pphalen@66.92.11.149] has joined #go-nuts
16:29 -!- NiteRain [~kvirc@c-98-254-236-21.hsd1.fl.comcast.net] has joined
#go-nuts
16:39 -!- rutkowski [~adrian@178235051072.walbrzych.vectranet.pl] has joined
#go-nuts
16:39 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
16:44 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has joined
#go-nuts
16:50 -!- rutkowski [~adrian@178235051072.walbrzych.vectranet.pl] has quit [Quit:
WeeChat 0.3.3-dev]
16:54 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has joined
#go-nuts
16:58 -!- _andre [~andre@fosforo.f2.k8.com.br] has quit [Quit: Lost terminal]
16:58 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has joined
#go-nuts
17:03 -!- _andre [~andre@fosforo.f2.k8.com.br] has joined #go-nuts
17:08 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
17:15 -!- hargettp_ [~hargettp_@dhcp-162.mirrorimage.net] has joined #go-nuts
17:16 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
17:17 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
17:27 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit
[Ping timeout: 246 seconds]
17:33 < zippoxer> What's a short way to make string from []byte
17:33 < zippoxer> ?
17:33 < taruti> string(foo)
17:34 < zippoxer> ohh :P thanks
17:37 -!- replore [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit
[Read error: Connection reset by peer]
17:37 -!- saml [~sam@adfb12c6.cst.lightpath.net] has joined #go-nuts
17:42 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has quit [Remote
host closed the connection]
17:44 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
17:45 -!- photron [~photron@port-92-201-147-83.dynamic.qsc.de] has quit [Quit:
Leaving]
17:51 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
17:56 -!- iant [~iant@nat/google/x-cwtrymjjwlglydiy] has quit [Ping timeout: 260
seconds]
17:57 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Ping
timeout: 252 seconds]
17:57 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
17:57 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
17:57 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
17:58 -!- bytbox [~s@96.26.105.154] has joined #go-nuts
18:05 -!- Xenith [~xenith@xenith.org] has quit [Ping timeout: 255 seconds]
18:08 -!- tncardoso [~thiagon@150.164.2.20] has quit [Quit: Leaving]
18:10 -!- nannto [~nanto@pee5b70.tokyff01.ap.so-net.ne.jp] has quit [Quit:
Leaving...]
18:11 -!- message144 [~message14@76.89.119.29] has joined #go-nuts
18:13 -!- Xenith [~xenith@xenith.org] has joined #go-nuts
18:20 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Quit: Leaving]
18:21 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-157-33.clienti.tiscali.it] has
joined #go-nuts
18:23 -!- dannyft [~dannyft@3e6b1dfc.rev.stofanet.dk] has joined #go-nuts
18:24 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
18:25 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has quit [Quit:
Leaving.]
18:27 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-154-151.clienti.tiscali.it] has
joined #go-nuts
18:28 -!- danilo04 [~danilo04@66.44.225.80] has joined #go-nuts
18:30 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-157-33.clienti.tiscali.it] has
quit [Ping timeout: 240 seconds]
18:37 -!- TheMue [~TheMue@p5DDF5992.dip.t-dialin.net] has joined #go-nuts
18:38 -!- \toothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
18:38 -!- Project_2501 [~Marvin@82.84.71.242] has joined #go-nuts
18:39 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has quit [Ping
timeout: 260 seconds]
18:40 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-154-151.clienti.tiscali.it] has
quit [Ping timeout: 240 seconds]
18:42 -!- iant [~iant@74.125.121.33] has joined #go-nuts
18:43 -!- mode/#go-nuts [+v iant] by ChanServ
18:51 < zozoR> if i have an array var k [2]int, and want to assign to all
its index, what is the easiest method?  apparently i cant use k = {1,2,3}
18:52 < Namegduf> [2]int does not have three entries.
18:52 < Namegduf> It has 2.
18:52 < Namegduf> 0 and 1.
18:52 < zozoR> oh
18:52 < Namegduf> Try doing that with a [3]int
18:52 < Namegduf> I *think* that's correct, anyway.
18:53 < zozoR> unexpected {
18:53 < zozoR> is what i get
18:54 < Namegduf> Hmm.
18:54 < Namegduf> Maybe that's only valid in initialisers.
18:54 < Namegduf> You could try [3]int{1, 2, 3}
18:55 < zozoR> nope, does not work : (
18:55 < zozoR> i suppose i should attack the doc then :D
19:03 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Ping timeout: 258 seconds]
19:05 -!- tncardoso [~thiago@189.59.207.120] has joined #go-nuts
19:09 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has joined
#go-nuts
19:10 -!- r_linux [~r_linux@189.38.220.35] has joined #go-nuts
19:13 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
19:13 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Remote host closed the
connection]
19:14 < zozoR> i got it working :D
19:15 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
19:18 -!- Sep102 [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has joined
#go-nuts
19:18 -!- Sep102_ [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has quit [Ping
timeout: 258 seconds]
19:28 -!- NiteRain [~kvirc@c-98-254-236-21.hsd1.fl.comcast.net] has quit [Ping
timeout: 252 seconds]
19:29 -!- robteix [~robteix@nat/intel/x-kbeqfdicexzdzgnm] has quit [Quit: Leaving]
19:29 -!- NiteRain [~kvirc@c-98-254-236-21.hsd1.fl.comcast.net] has joined
#go-nuts
19:33 -!- noam [noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 252
seconds]
19:37 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Read error:
Connection reset by peer]
19:40 -!- iant [~iant@74.125.121.33] has quit [Ping timeout: 240 seconds]
19:44 -!- danilo04 [~danilo04@66.44.225.80] has quit [Ping timeout: 240 seconds]
19:51 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Ping
timeout: 252 seconds]
19:53 -!- alehorst [~alehorst@201.22.35.66.dynamic.adsl.gvt.net.br] has quit
[Quit: Leaving.]
19:55 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has joined
#go-nuts
19:55 -!- bytbox [~s@96.26.105.154] has quit [Read error: Connection reset by
peer]
19:55 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-149-129.clienti.tiscali.it] has
joined #go-nuts
19:56 -!- bytbox [~s@96.26.105.154] has joined #go-nuts
19:57 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined
#go-nuts
19:58 -!- iant [~iant@ip-62-105-190-87.dsl.twang.net] has joined #go-nuts
19:58 -!- mode/#go-nuts [+v iant] by ChanServ
19:59 -!- Project_2501 [~Marvin@82.84.71.242] has quit [Ping timeout: 244 seconds]
19:59 < F> hi all.
20:00 < F> sorry I asked this a couple of days ago.  I was just wondering
what is the best way to teach myself Go right now given that there are no books
written on it yet.
20:00 < F> can someone link me to the de facto/official "go tutorial" or
something?  [C
20:00 <+iant> http://golang.org/
20:00 <+iant> http://golang.org/doc/docs.html
20:03 < F> thanks.
20:11 -!- virtualsue [~chatzilla@nat/cisco/x-oownhtzbtshrsewt] has joined #go-nuts
20:12 < Queue29> F: i found 'effective go' and looking through examples on
stack overflow to be more useful than anything else
20:12 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Ping timeout: 264
seconds]
20:14 -!- bmizerany [~bmizerany@7.sub-75-247-84.myvzw.com] has joined #go-nuts
20:15 -!- wallerdev [~wallerdev@c-68-60-43-43.hsd1.mi.comcast.net] has joined
#go-nuts
20:17 -!- marten [~marten@82-170-80-86.ip.telfort.nl] has joined #go-nuts
20:24 -!- _andre [~andre@fosforo.f2.k8.com.br] has quit [Quit: leaving]
20:28 -!- robteix [~robteix@nat/intel/x-ctttloqrykvhsawa] has joined #go-nuts
20:31 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
20:33 -!- marten [~marten@82-170-80-86.ip.telfort.nl] has quit [Ping timeout: 255
seconds]
20:34 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
20:38 -!- jyxent_ [~jyxent@129.128.191.96] has quit [Quit: leaving]
20:38 -!- TheMue [~TheMue@p5DDF5992.dip.t-dialin.net] has quit [Quit: TheMue]
20:38 -!- jyxent [~jyxent@129.128.191.96] has joined #go-nuts
20:45 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-149-129.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
20:46 -!- marten [~marten@82-170-80-86.ip.telfort.nl] has joined #go-nuts
20:46 -!- marten [~marten@82-170-80-86.ip.telfort.nl] has quit [Client Quit]
20:52 -!- robteix [~robteix@nat/intel/x-ctttloqrykvhsawa] has quit [Quit: Leaving]
20:53 -!- dannyft [~dannyft@3e6b1dfc.rev.stofanet.dk] has quit [Quit: Leaving]
20:55 -!- LiteralKa [literalka@genoci.de] has left #go-nuts []
20:55 -!- message144 [~message14@76.89.119.29] has quit [Ping timeout: 246
seconds]
21:02 -!- sseth [0c041af8@gateway/web/freenode/ip.12.4.26.248] has joined #go-nuts
21:03 -!- sseth [0c041af8@gateway/web/freenode/ip.12.4.26.248] has quit [Client
Quit]
21:08 -!- dlowe [~dlowe@ita4fw1.itasoftware.com] has quit [Quit: Leaving.]
21:10 < F> Queue29: thanks.
21:10 < F> is it possible to use the X libraries to create GUI applications
in Go?
21:11 < F> i'm still a little confused.  for example in C there are dozens
of header files that can be imported (e.g., #include <X11/Xlib.h>).  Is it
possible to use X11 in Go programs?
21:12 < Tonnerre> There are some toolkits which are implemented, such as GTK
21:12 < F> but not X11 in general?
21:12 < F> i saw that FLTK2 and GTK are partially implemented.
21:13 < Tonnerre> X11 is pretty low-level; I'm not sure it makes much sense
to support it directly
21:13 < F> for instance, if i wanted to write a window manager in Go without
resorting to FLTK2 or GTK, would this be possible?
21:13 -!- foocraft [~ewanas@dyn-86-36-35-124.qatar.cmu.edu] has joined #go-nuts
21:13 < Tonnerre> Also, most toolkits nowadays don't use the actual X11 API
anymore but go through the rendering engine instead
21:13 -!- virtualsue [~chatzilla@nat/cisco/x-oownhtzbtshrsewt] has quit [Remote
host closed the connection]
21:15 < rm445> F: there are header files and libraries.  Go comes with a
tool (cgo) that lets you wrap the library functions in go functions (using the
header files) and then link programs against the original libraries.
21:15 < aiju> F: there is an XCB binding
21:15 < rm445> So if someone went to the trouble of writing wrappers for all
of xlib, then presumably you could write X11 programs in Go.
21:15 < aiju> F: do you REALLY want xlib bindings?  ;P
21:17 -!- paul_ [~pyrhho@027dcbf3.bb.sky.com] has joined #go-nuts
21:17 < F> aiju: well how else would you write a window manager?
21:17 < aiju> can't you do that with xcb?
21:17 < aiju> after all, xcb aims to replace xlib
21:18 < Tonnerre> I'm pretty sure that's enough
21:18 < aiju> and xcb seems like a lot saner than xlib
21:18 < Tonnerre> i3 uses libxcb excusively for X11
21:19 < F> i'll have to look into XCB then
21:19 < F> thanks.
21:25 < paul_> I found a possible bug in one of the go libraries..  Where is
the best place to report it?
21:25 < paul_> mailing list or issue tracker?
21:25 -!- Fish [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
21:26 < exch> F: http://code.google.com/p/x-go-binding/
21:26 < exch> much of that is automatically generated by a python script, so
it may need a little tweaking for efficiency It is quite complete though
21:26 < ww> you could implement the X protocol in go :)
21:26 * ww hides
21:26 -!- pjacobs [~pjacobs@66.54.185.130] has quit [Ping timeout: 252 seconds]
21:27 < dforsyth> O_o
21:27 < exch> that lib is not a C binding, but a Go implementation of the
xcb protocol
21:27 < ww> actually, in the old country i had all the X books on my
shelf...  volume 0 does it :)
21:27 < aiju> wait
21:27 < aiju> how did that shelf fir into ONE COUNTRY?
21:28 < aiju> *fit
21:28 < aiju> must be very fine print
21:30 < ww> me knows aiju is bein facetious...  but this series
http://www.amazon.co.uk/Protocol-Definitive-Guides-Window-System/dp/156592083X/ref=sr_1_5?s=books&ie=UTF8&qid=1308260073&sr=1-5
was once indispensable
21:31 < aiju> 458,000,000 pages
21:33 < exch> the XCB protocol 'only' has around 170 pages :)
21:34 < ww> aiju must be experiencing problems with his math coprocessor
21:38 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
21:39 < aiju> ww: haha
21:39 < aiju> no, i'm not intel powered
21:43 -!- tncardoso [~thiago@189.59.207.120] has quit [Remote host closed the
connection]
21:44 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts
21:49 -!- saml [~sam@adfb12c6.cst.lightpath.net] has quit [Quit: Leaving]
21:52 -!- cenuij [~cenuij@184.15.8.109.rev.sfr.net] has joined #go-nuts
21:52 -!- cenuij [~cenuij@184.15.8.109.rev.sfr.net] has quit [Changing host]
21:52 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
21:57 -!- nictuku [~nict@unaffiliated/nictuku] has quit [Quit: Leaving]
21:58 -!- init6 [~chad@ice.superfrink.net] has quit [Quit: Leaving]
21:59 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 255 seconds]
22:00 -!- message144 [~message14@76.89.119.29] has joined #go-nuts
22:00 -!- r_linux [~r_linux@189.38.220.35] has quit [Quit: Lost terminal]
22:01 -!- alonzo [5f81aad3@gateway/web/freenode/ip.95.129.170.211] has joined
#go-nuts
22:01 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:02 < alonzo> hi all
22:03 < alonzo> I need store in my struct one field that can be any of
several types.
22:03 < alonzo> Is there in Go something like tagged unions or so?
22:07 < crazy2be> alonzo: What do the different types all have in common?
22:07 -!- bytbox [~s@96.26.105.154] has quit [Remote host closed the connection]
22:08 < alonzo> I need to store value one of int or string for example.
22:09 < alonzo> You think interfaces can be used for that purpose?
22:09 < crazy2be> alonzo: You could, but I don't understand your function
22:09 < crazy2be> what are you trying to acheive?
22:10 < crazy2be> how would you possibly have a type that could be *either*
string or int?  How could you know what to do with it?
22:10 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Quit: Leaving]
22:11 < alonzo> ok, I just tell the full story
22:12 < alonzo> I try to write simple scheme interpreter.  I need some type
that can be used as Object
22:12 < alonzo> that can be used in Cons cells
22:12 < alonzo> But inside object may be string or int or something other.
22:13 < alonzo> What the best way to organize data in such or similar way in
Go?
22:13 < crazy2be> hm
22:14 < crazy2be> perhaps have a look at the eval package:
http://golang.org/pkg/exp/eval/
22:17 < alonzo> hm, seems I need to write interface Object with get_string,
get_int, ...  and get_type
22:17 < |Craig|> have a "schemeObject" interface.  (you might also want a
"schemeCallable" interface).  Then when you try and make a call (say +) you pass
your objects to the calallable, and it will try some type checks, and see if + is
ok, if not, it will report a type error, otherwise it will return a schemeObject
22:17 < alonzo> and use in switch
22:18 < |Craig|> the getInt, getString...  approach might be better, my
scheme is a bit rusty and I don't remember how its type conversions work
22:19 < |Craig|> I just like the design of having scheme objects, some of
which implement a callable interface that lets you pass them a slice of scheme
objects
22:20 -!- paul_ [~pyrhho@027dcbf3.bb.sky.com] has quit [Ping timeout: 258 seconds]
22:21 < alonzo> maybe just add getCallable, to Object?
22:23 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has quit [Remote
host closed the connection]
22:28 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
22:30 -!- vpit3833 [~user@203.111.33.203] has joined #go-nuts
22:31 -!- replore_ [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has
joined #go-nuts
22:38 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined
#go-nuts
22:41 -!- alkavan [~alkavan@IGLD-84-228-189-104.inter.net.il] has joined #go-nuts
22:44 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
22:53 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
22:59 -!- pphalen [~pphalen@66.92.11.149] has left #go-nuts []
23:08 -!- alkavan [~alkavan@IGLD-84-228-189-104.inter.net.il] has quit [Quit:
Leaving]
23:17 -!- foocraft [~ewanas@dyn-86-36-35-124.qatar.cmu.edu] has quit [Quit: if
you're going....to san.  fran.  cisco!!!]
23:51 -!- keithcascio [~keithcasc@nat/google/x-xnyfcdzhhkrfoyhf] has joined
#go-nuts
23:51 -!- Pathin [~root@gladsheim.nullbytestudios.net] has quit [Quit: leaving]
23:53 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has quit [Read
error: Connection reset by peer]
23:54 -!- robteix [~robteix@host78.190-137-109.telecom.net.ar] has joined #go-nuts
23:55 -!- zippoxer [zippoxer@bzq-109-65-251-241.red.bezeqint.net] has quit []
23:56 -!- replore_ [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit
[Remote host closed the connection]
23:57 -!- Tv [~Tv@ip-66-33-206-8.dreamhost.com] has quit [Ping timeout: 240
seconds]
--- Log closed Fri Jun 17 00:00:53 2011