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

--- Log opened Fri Jun 17 00:00:53 2011
00:05 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza]
00:20 < crazy2be> oh, go, is there anything you can't do?
00:21 -!- bmizerany [~bmizerany@7.sub-75-247-84.myvzw.com] has quit [Remote host
closed the connection]
00:21 < ampleyfly> yes
00:22 < crazy2be> ampleyfly: what is that?
00:22 < crazy2be> :P
00:22 < ampleyfly> safely tell you what size int is, if that hasn't changed
00:23 < crazy2be> if you need a size, use int32 or int64
00:23 < crazy2be> (or int8 or int16 for that matter)
00:24 < crazy2be> which is way more logical than the C "int can be any size
at all!  That's implementation-defined!  Oh, you want to store a number in a
certain range?  Uhhh...."
00:24 < ampleyfly> stdint
00:24 < ampleyfly> but that's beside the point
00:24 < crazy2be> you want a sizeof() function for go?
00:25 -!- bmizerany [~bmizerany@122.sub-75-210-182.myvzw.com] has joined #go-nuts
00:26 < dforsyth> isnt there one?
00:26 < ampleyfly> http://golang.org/pkg/unsafe/#Sizeof
00:26 < dforsyth> yeah
00:26 < crazy2be> runtime, not compiletime, but that's minor
00:26 < crazy2be> does that not work for ints?
00:26 < crazy2be> Or am I missing the point?
00:27 < ampleyfly> it's in the package "unsafe", since it "steps around the
type safety of Go programs"
00:27 < crazy2be> ok?
00:28 < crazy2be> That's because you normally wouldn't need to know that
information
00:28 < ampleyfly> that's all
00:28 < crazy2be> lol
00:28 < crazy2be> but it can do it, it's just discouraged
00:28 < crazy2be> and/or unnecessary
00:29 < ampleyfly> what's the point of an int type anyway
00:29 < crazy2be> that's a good question
00:29 < crazy2be> very little code uses it i've notices
00:29 < crazy2be> *noticed
00:29 < crazy2be> in the go std librar
00:31 < crazy2be> and i guess go can't interface with C++ or java
00:31 < crazy2be> afaik
00:31 < crazy2be> but...  who would want to?
00:31 < crazy2be> besides legacy systems, I suppose
00:32 -!- brandon_ [~brandon@65.102.59.42] has joined #go-nuts
00:32 -!- brandon_ [~brandon@65.102.59.42] has quit [Read error: Connection reset
by peer]
00:32 < crazy2be> also I had no idea about stdint.h...  Thanks for that
00:32 < crazy2be> but for now I must go
00:33 < crazy2be> toodles
00:33 -!- brandon_ [~brandon@65.102.59.42] has joined #go-nuts
00:33 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has quit [Read
error: Connection reset by peer]
00:33 -!- franciscosouza [~francisco@187.105.18.105] has joined #go-nuts
00:34 < brandon_> anyone gotten an error similar to this: object is [linux
amd64 release.r57.1 8294] expected [linux amd64 release.r57.2 8765]
00:35 < brandon_> I updated and rebuilt Go, then rebuilt the 3rd party
packages (one imports the other) but the second one reports that error as if the
first package built with an older release
00:35 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
00:39 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Ping timeout: 264 seconds]
00:41 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
00:42 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Read error: Connection reset by peer]
00:42 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has joined #go-nuts
00:42 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has joined #go-nuts
00:42 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
00:44 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
00:52 -!- brandon_ [~brandon@65.102.59.42] has quit [Quit: Ex-Chat]
00:54 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
00:56 -!- franciscosouza [~francisco@187.105.18.105] has quit [Read error:
Connection reset by peer]
00:57 -!- ww [~ww@river.styx.org] has quit [Read error: Connection reset by peer]
00:57 -!- franciscosouza [~francisco@187.105.18.105] has joined #go-nuts
00:57 -!- ww [~ww@river.styx.org] has joined #go-nuts
00:59 -!- Sebastian_ [~Sebastian@git.sebastianhahn.net] has quit [Ping timeout:
276 seconds]
01:01 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
01:02 -!- bobody [~alexc@unaffiliated/alexc] has joined #go-nuts
01:15 < exch> what is up with image.Rectangle?  For some reason it organises
the input x/y/w/h into Point pairs of lowest and highest values.  That means any
relationship the original values had is completely lost
01:18 < exch> eg: x:0 y:499 w:246 h: 101 -> rect{ 0, 101 , 246,499 }.  It
reports completely incorrect width/height values.  Height should be 101, but is
reported as 398
01:20 < Tv> that sounds like it's not width/height but coordinates of the
other corner
01:20 < exch> it subtracts height from y and reports that as therect
'height'
01:20 < Tv> now imagine s/height/y2/ and it would make sense
01:21 < exch> mm
01:21 < exch> weird
01:24 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts
01:25 -!- F [~f@pool-96-255-203-102.washdc.fios.verizon.net] has quit [Changing
host]
01:25 -!- F [~f@unaffiliated/f] has joined #go-nuts
01:35 -!- benjack [~benjack@bb121-6-49-120.singnet.com.sg] has joined #go-nuts
01:37 -!- bmizerany [~bmizerany@122.sub-75-210-182.myvzw.com] has quit [Remote
host closed the connection]
01:39 -!- bobody [~alexc@unaffiliated/alexc] has quit [Quit: WeeChat 0.3.4]
01:51 -!- Sep102 [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has quit [Read
error: Connection reset by peer]
01:51 -!- robteix [~robteix@host78.190-137-109.telecom.net.ar] has quit [Quit:
Leaving...]
01:54 -!- Sep102 [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has joined
#go-nuts
01:55 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Ping timeout: 255 seconds]
02:03 -!- nannto [~nanto@pee5b70.tokyff01.ap.so-net.ne.jp] has joined #go-nuts
02:05 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
02:05 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Max SendQ exceeded]
02:06 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
02:08 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
02:08 -!- foocraft [~ewanas@89.211.236.246] has joined #go-nuts
02:10 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Client Quit]
02:12 -!- hdon- [~donny@c-67-186-35-159.hsd1.pa.comcast.net] has quit [Remote host
closed the connection]
02:13 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
02:22 -!- justinlilly [justinlill@70.32.34.100] has quit [Quit: Hosted by rdlBNC
(Server 2 - United States of America)]
02:23 -!- justinlilly [justinlill@70.32.34.100] has joined #go-nuts
02:24 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Linkinus - http://linkinus.com]
02:25 -!- danilo04 [~danilo04@66.44.225.80] has joined #go-nuts
02:26 < str1ngs> adg: issue 1962 looks resolved thanks
02:38 -!- boscop_ [~foo@g227128016.adsl.alicedsl.de] has joined #go-nuts
02:39 -!- franciscosouza [~francisco@187.105.18.105] has quit [Quit:
franciscosouza]
02:39 -!- boscop [~foo@unaffiliated/boscop] has quit [Ping timeout: 255 seconds]
02:41 <@adg> str1ngs: great.
02:41 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-jbxmkduyxdmmfpvg] has quit [Ping
timeout: 255 seconds]
02:42 < str1ngs> adg: I still have an issue with glib.h not being found with
goinstall works with make.  might not be goinstall related still looking into it
02:43 <@adg> it probably is goinstall related
02:43 <@adg> it doesn't quite work with cgo completely, yet
02:43 < str1ngs> my guess is it might be skipping pkgconfig ?
02:44 -!- keithcascio [~keithcasc@nat/google/x-xnyfcdzhhkrfoyhf] has quit [Quit:
Leaving]
02:45 <@adg> yes, exactly
02:45 <@adg> it does pkg-config, puts the output in _obj/_cgo_flags, but
then the go/build package (that goinstall uses) doesn't know about _cgo_flags
02:46 < str1ngs> ah
02:46 <@adg> we need to do some work on both cgo and go/build to fix it,
it's non-trivial
02:46 < str1ngs> ok I'll not worry about it
02:46 <@adg> i made the call that it'ss better to push ahead with goinstall
using go/build, as it's better to get more feedback on go/build than to avoid
breaking cgo for a little while
02:46 < str1ngs> I can install locally, let you guys sort it out.  atleast
its a known issue
02:47 <@adg> and cgo has only been working properly with goinstall since
after the last release, so it's not a major regression
02:47 < str1ngs> yep no worries
02:48 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts
02:48 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Remote host closed the
connection]
02:48 -!- [muttox] [~dheppell@93.135.70.115.static.exetel.com.au] has quit [Ping
timeout: 246 seconds]
02:49 -!- [muttox] [~dheppell@93.135.70.115.static.exetel.com.au] has joined
#go-nuts
02:51 -!- jburns131 [~jburns131@pool-173-48-150-201.bstnma.fios.verizon.net] has
joined #go-nuts
02:54 -!- Sebastian [~Sebastian@git.sebastianhahn.net] has joined #go-nuts
02:59 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Quit: Leaving]
03:02 -!- vpit3833 [~user@203.111.33.203] has quit [Read error: Connection reset
by peer]
03:02 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
03:03 -!- vpit3833 [~user@203.111.33.203] has joined #go-nuts
03:05 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
03:13 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Ping timeout: 255 seconds]
03:15 -!- Rennex [rennex@giraf.fi] has quit [Ping timeout: 244 seconds]
03:18 -!- message144 [~message14@76.89.119.29] has quit [Quit: gone]
03:24 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
03:24 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Max SendQ exceeded]
03:30 -!- warlock_mza [~warlock@86-91-231-201.fibertel.com.ar] has joined #go-nuts
03:31 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
03:33 < warlock_mza> hey guys, is there a way to bind multiple io readers to
a single channel ?
03:33 < dfc> can you give us some more details on what you're trying to do ?
03:34 < warlock_mza> well, I want to listen on multiple web sockets and wait
for messages ...  then forward them to a worker
03:34 -!- danilo04 [~danilo04@66.44.225.80] has quit [Quit: Leaving]
03:34 < warlock_mza> but there should only be a single worker
03:35 < dfc> ahh
03:35 < warlock_mza> and I don't want to have a goroutine per websocket
03:35 < dfc> so you dont want a single channel to feed multiple readers
03:35 < dfc> but multiple readers to feed intoa a single channel ?
03:35 < warlock_mza> exactly
03:35 < dfc> warlock_mza: you should use one goroutine per websocket
03:35 < dfc> that is the way it works
03:36 < warlock_mza> yeah, can-t I just poll all connections from a single
goroutine ?
03:37 < warlock_mza> dfc, what if I want to have 20k websockets open, ...
won-t 20k goroutines kill the server ?
03:37 < dfc> nope
03:37 < dfc> goroutines are cheep
03:38 < dfc> there is not a 1:1 relationship of goroutines and threads
03:38 -!- niemeyer [~niemeyer@201-10-54-154.pltce701.dsl.brasiltelecom.net.br] has
quit [Ping timeout: 240 seconds]
03:38 < dfc> http://golang.org/doc/effective_go.html#goroutines
03:42 < warlock_mza> ok
03:43 < warlock_mza> yeah I've read that, and keep on reading it, just
getting my head around a new dev model :-)
03:43 < dfc> a go routine is a stack frame
03:44 < dfc> an inactive goroutine costs a few kb at most
03:44 -!- bill_h [~bill_h@wsip-98-174-41-183.pn.at.cox.net] has joined #go-nuts
03:44 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has joined
#go-nuts
03:45 < dfc> /s/inactive/sleeping
03:45 < vsmatck> 4kB + whatever in it's stack.
03:45 < bill_h> How would I convert a variable of type interface{} to type
os.Error?
03:45 < crazy2be> ugh so much old code
03:46 < crazy2be> I hate it when I implement things in the worst way
possible
03:46 < crazy2be> bill_h: inter.(os.Error)
03:46 < vsmatck> Everyone does that.  Gotta reimplement it 7 times before
it's right.
03:47 < crazy2be> vsmatck: I had a function called "ServeFile" in a library
called "util/http" that did exactly the same thing as the counterpart in http,
except it refused to serve directories
03:47 < crazy2be> (e.g.  no directory listings)
03:47 < crazy2be> that would be fine, the function is staying
03:48 < crazy2be> however, the issue is that in order to implement it, I
copy-pasted the same function from the http library
03:48 < vsmatck> I reimplemented that too.  I didn't want it reading the
file to determine mime type.
03:48 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 260 seconds]
03:48 < crazy2be> removed a few bits
03:48 < vsmatck> I wrote my own general wrapper for http stuff.  It changes
too much for me to have a lot of my code depend on it.
03:48 < crazy2be> reordered two of the parameters (or maybe they did that,
i'm not sure anymore)
03:49 < crazy2be> and then smacked it into the library
03:49 < bill_h> crazy2be: Thanks.  I was doing that, but I figured it out.
It helps if I'm converting the correct variable!
03:49 < crazy2be> vsmatck: Yeah that's what i tried to do, but it doesn't
help that much
03:49 < crazy2be> your code just gets progressively more hackish as you try
to reconcille your internal API with the changing external one
03:49 < bill_h> crazy2be: Well, it suddenly became clear when I was staring
at your msg.
03:50 < crazy2be> gives you a bit of a buffer zone tho, i suppose
03:50 < crazy2be> bill_h: I do that all the time :P
03:50 < vsmatck> nahh.  It's possible to do.  That's basically what web.go
is.
03:50 < bill_h> crazy2be: :)
03:51 -!- pvarga [~pvarga@pool-71-172-108-117.nwrknj.east.verizon.net] has joined
#go-nuts
03:52 < vsmatck> The http API is complicated.  I was able to throw away most
of it and simplify things.
03:53 < vsmatck> Only stuff "I" didn't need tho.  The http library has to be
like it is to meet the needs of everyone.
03:54 < crazy2be> yeah, they probably have made a "web" package if someone
else had not already done it
03:54 < crazy2be> because the library should have all that functionality,
it's nice to have, but most of the time it's just a pain to deal with
03:56 < vsmatck> Yeah.  I like the idea of web.go.  Basically registering
call backs for paths that regular expressions match.  Call backs work well there.
Channels are not well suited to it I think.
03:56 < crazy2be> callbacks vs channels are an interesting quandry
03:56 < crazy2be> like the inotify library uses channels, which seems to me
strange
03:57 < crazy2be> but maybe it's just strange for my uses
03:57 < vsmatck> If you used channels for something like web.go you'd just
end up spawning threads every time you read a handler channel.
03:57 < exch> channels are not a magic wand.  they have their uses, but not
everywhere
03:58 < vsmatck> *shrug* web.go is single threaded.  One reason I didn't use
it.
03:58 < crazy2be> is it?
03:58 < crazy2be> that seems silly
03:58 < vsmatck> yeah
03:58 -!- benjack [~benjack@bb121-6-49-120.singnet.com.sg] has quit [Quit:
Leaving.]
03:58 < vsmatck> I can understand that tho.  It'd probably bite most people
if it did call backs with multiple goroutines.
03:58 < vsmatck> heh, I said thread back there.  I meant goroutine.
04:00 -!- bill_h [~bill_h@wsip-98-174-41-183.pn.at.cox.net] has quit [Quit:
leaving]
04:00 -!- bobody [~alexc@unaffiliated/alexc] has joined #go-nuts
04:00 < crazy2be> the normal http library does multiplexing as I understand
it
04:00 < crazy2be> or at least it used to
04:00 < vsmatck> There's one function in there that does it.  It spawns
goroutines.
04:01 < vsmatck> http.Serve does that.
04:01 -!- nannto [~nanto@pee5b70.tokyff01.ap.so-net.ne.jp] has quit [Quit:
Leaving...]
04:01 < vsmatck> And they refer to it as a "thread".  wtf.
04:01 < vsmatck> I may have to file a bug report on that documentation.
04:01 < crazy2be> you're not the old human here :P
04:02 < vsmatck> I use http.Serve with my own muxer.
04:02 < vsmatck> There should be a http.ServeTLS probably.
04:03 < crazy2be> man this library has commented out code for parsing
cookies
04:03 < crazy2be> retro
04:03 < vsmatck> You looking at web.go?
04:03 < crazy2be> no, my own library
04:04 < crazy2be> i think web.go does to
04:04 < crazy2be> but it's not commented :P
04:05 -!- pvarga_ [~pvarga@pool-71-172-108-117.nwrknj.east.verizon.net] has joined
#go-nuts
04:07 < vsmatck> Cookie handling is one of those things that got changed
quite a bit in http.
04:07 < crazy2be> yeah
04:07 < vsmatck> I still use my own code for setting cookies because I
wanted multiple Set-Cookie headers.
04:07 < crazy2be> and there was a really stupid bug with path escaping
04:08 < crazy2be> they decided to escape cookie paths with URLEscape()
04:08 < crazy2be> or something
04:08 < crazy2be> path=/ became path=%2F
04:08 < crazy2be> which only chrome recognizes
04:09 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services]
04:09 < vsmatck> I only learned about cookie paths like a week ago.
http://dyfora.com/t/3?post=6
04:09 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
04:09 < vsmatck> I was not specifying so it was setting the path to random
stuff.
04:10 -!- pvarga [~pvarga@pool-71-172-108-117.nwrknj.east.verizon.net] has quit
[Ping timeout: 260 seconds]
04:11 -!- pvarga [~pvarga@pool-71-172-108-117.nwrknj.east.verizon.net] has joined
#go-nuts
04:13 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has joined #go-nuts
04:14 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Ping
timeout: 260 seconds]
04:15 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined
#go-nuts
04:16 -!- pvarga_ [~pvarga@pool-71-172-108-117.nwrknj.east.verizon.net] has quit
[Ping timeout: 260 seconds]
04:16 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 250 seconds]
04:17 < vsmatck> Web browsers are strange.  They seem poorly designed.
04:18 < vsmatck> Like they put the complexity in the wrong spot.
04:19 < vsmatck> There are no "real" standards.  Only de-facto standards.
It's perversely a good thing that web browsers are so hard to implement that
there's only a few.
04:19 < vsmatck> So I "only" need to check my web pages in 5 browsers.
04:20 < vsmatck> Alan Kay has a good rant about this.
04:20 < vsmatck> He argues that the complexity should be in the message and
not in the browser.
04:21 < vsmatck> Browsers are total cookie monster.
04:22 < vsmatck> Err.  More widely known term is "first mover".
04:23 < nsf> I'm curious, do browsers really need all these complexity
04:23 < nsf> all they do is render pages
04:24 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
04:24 < vsmatck> There'd need to be a transition to a system which makes
more sense.  Dan Ingalls is working on one.
http://labs.oracle.com/projects/lively/
04:24 < vsmatck> Pretty much throws away HTML and implements what you see on
top of javascript.
04:25 < vsmatck> Javascript is hairy because it's "best effort" compiling
tho.  Not "code must be correct" compiling.
04:25 < nsf> oracle?
04:25 < nsf> haha
04:25 < nsf> personally I make a bet on nativeclient
04:25 < nsf> it should change the face of a web
04:25 < nsf> slightly
04:26 < nsf> but it's built on top of html
04:26 < nsf> so it doesn't go anywhere :)
04:27 < vsmatck> Just seems like the web browser is turning in to a virtual
machine for applications and it's shitty at that.
04:27 < nsf> I've seen nacl in action, it's not that bad
04:27 < vsmatck> It can work for that but it takes effort.  "pyramid
building" as Alan Kay would say.  :)
04:28 < nsf> but it's just a technology, then we can rip it off from the
browser and make it standalone
04:29 < nsf> anyways
04:29 < nsf> I'm far from all that
04:29 < vsmatck> That would be nice.  Something just gets so popular that
people don't even care about html any more.  HTML becomes deprecated, and then
browsers drop it without anyone noticing.
04:29 < vsmatck> Like what happened to gopher.  heh
04:29 < nsf> hehe
04:30 -!- pvarga [~pvarga@pool-71-172-108-117.nwrknj.east.verizon.net] has quit
[Remote host closed the connection]
04:30 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Remote
host closed the connection]
04:34 < crazy2be> heh, kinda pathetic that it took me an hour to update this
package that has two functions: https://github.com/crazy2be/httputil
04:34 < crazy2be> but it had more, and I had to update code that relied on
it
04:34 -!- bobody [~alexc@unaffiliated/alexc] has quit [Quit: WeeChat 0.3.4]
04:36 -!- wallerdev [~wallerdev@c-68-60-43-43.hsd1.mi.comcast.net] has quit [Quit:
wallerdev]
04:37 < vsmatck> Progress is good.  Hard to be disciplined about how one
spends time.
04:37 -!- pvarga [~pvarga@pool-71-172-108-117.nwrknj.east.verizon.net] has joined
#go-nuts
04:38 -!- warlock_mza [~warlock@86-91-231-201.fibertel.com.ar] has quit [Remote
host closed the connection]
04:38 -!- kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has quit [Read
error: Operation timed out]
04:38 < Tv> what's wrong with this code: http://pastebin.com/xGYHXp0D
04:40 < drhodes> looks like line 11
04:40 < Tv> what about it?
04:40 < drhodes> the string at the end, is this allowed now?
04:40 < vsmatck> yeah, it's always been there.
04:40 < Tv> that's called a tag, and it's perfectly fine
04:41 -!- kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has joined
#go-nuts
04:41 < Tv> it compiles but json does funky things at runtime
04:41 < Tv> (and i think the error handling hits a little go bug, but that's
not really related)
04:41 < Tv> but this is what bubbles up, one way or the other:
reflect.Value·SetString using unaddressable value
04:42 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined
#go-nuts
04:42 < crazy2be> hmm, any way i can make a http.ResponseWriter with a
net.Conn?
04:42 < Tv> i don't get why, v should be an interface{} to a perfectly nice
Item instance, and not a pointer to nil or anything
04:42 < str1ngs> Tv: why all the reflection?
04:42 < Tv> str1ngs: it's minimized from actual code
04:42 < str1ngs> ah ok
04:42 < Tv> str1ngs: i have a need to un-json on behalf of a callback, hence
i get the type it expects via interface{}
04:43 < Tv> str1ngs: you pass in an example value at registration time
04:43 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has left #go-nuts []
04:43 < Tv> a bit ugly but i couldn't come up with a nicer api
04:44 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
04:46 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
04:46 < vsmatck> Ah. I think you'd want to use reflect.New instead of
reflect.Zero.
04:46 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-cguaomnhenhcehfj] has joined
#go-nuts
04:47 < Tv> vsmatck: that just gives me a pointer
04:47 < Tv> vsmatck: it doesn't change the underlying problem, just adds a
layer of indirection
04:47 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-181-87.clienti.tiscali.it] has
joined #go-nuts
04:47 < vsmatck> Oh. You're right.
04:50 < _nil> hey
04:51 -!- pvarga [~pvarga@pool-71-172-108-117.nwrknj.east.verizon.net] has quit
[Quit: pvarga]
04:54 < str1ngs> Tv: definitely related to the reflection.  but I have not
used the reflect package enough to be that helpful
04:54 < _nil> http://paste.ubuntu.com/628276/
04:54 < _nil> on line 291
04:54 < _nil> what is the best way to get that io.Reader written
04:54 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote
host closed the connection]
04:55 -!- bobody [~alexc@unaffiliated/alexc] has joined #go-nuts
04:55 < str1ngs> you mean bytes written?
04:56 < _nil> yes
04:56 < _nil> h.Contents is an io.Reader
04:56 < _nil> the file could be huge so that's why it's using the pipe
reader / writer
04:56 < str1ngs> io.Reader will return n bytes, err os.Error
04:56 < _nil> str1ngs: yes but i don't want to just read it all in
04:57 < str1ngs> that looks more like a io.Writer also
04:57 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
04:57 -!- venk [~user@203.111.33.203] has joined #go-nuts
04:57 < _nil> ?
04:58 < _nil> h.Contents is an io.Reader
04:58 -!- venk [~user@203.111.33.203] has left #go-nuts []
04:58 < _nil> the type says so at the top of the file
04:59 < _nil> nvm no worries
05:01 -!- _nil [~nil@users.vu.union.edu] has left #go-nuts []
05:04 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving]
05:04 < crazy2be> anyone know of a godoc-to-markdown tool?
05:04 < crazy2be> I'd like to be as automated as possible, of course
05:04 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has quit [Quit:
Leaving.]
05:05 < str1ngs> not markdown but you can use html
05:06 < str1ngs> something like godoc -html -path=.  . > doc.html
05:06 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has quit [Quit:
Leaving.]
05:06 < str1ngs> that has issues though with js and href's
05:08 -!- alonzo [5f81aad3@gateway/web/freenode/ip.95.129.170.211] has quit [Quit:
Page closed]
05:08 -!- foocraft [~ewanas@89.211.236.246] has quit [Quit: if you're going....to
san.  fran.  cisco!!!]
05:09 < crazy2be> hmm i'm looking to use it with github
05:09 < crazy2be> it'd be nice it READMEs were autogenerated for small
libraries
05:09 < crazy2be> or, rather, could be autogenerated
05:10 < str1ngs> you would have to make a github hook I think.  and use
doc.go
05:10 < str1ngs> not sure if markdown would be the best for this
05:10 < crazy2be> well any format github supports is fine by me
05:14 < str1ngs> crazy2be: try godoc -path=.  . > README.md in
GOROOT/src/cmd/goinstall to see what I mean
05:14 < str1ngs> kinda works
05:14 < str1ngs> https://gist.github.com/072ea90fc8debc8f148e
05:15 < crazy2be> str1ngs: that's the best i've seen so far :P
05:15 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has quit [Read error: Operation
timed out]
05:15 < str1ngs> also see doc.go in that dir
05:16 < str1ngs> its not perfect but not bad either
05:18 < crazy2be> there was something relevent to this in $GOROOT/doc iirc
05:20 < crazy2be> hm nevermind
05:20 < crazy2be> that's for the example programs
05:20 < crazy2be> they're in some form of markup
05:22 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has quit [Quit: Off]
05:23 < crazy2be> but you could probably hack the godoc source to do it
05:23 < crazy2be> since it generates html, generating markup would be pretty
easy
05:23 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has joined #go-nuts
05:26 -!- sebastianskejoe [~sebastian@188.114.142.217] has joined #go-nuts
05:27 < crazy2be> str1ngs: What's the status of the go-git bindings?
05:27 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has joined #go-nuts
05:27 < crazy2be> how do they work?
05:27 < crazy2be> do they require an install?  why?
05:27 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has quit [Client Quit]
05:28 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has joined #go-nuts
05:29 < crazy2be> like for development I understand the git-dev headers or
w/e requiring install
05:29 < crazy2be> but does it have some dependency for a binary?
05:30 < crazy2be> just wondering because I was considering using it for a
wiki
05:33 < crazy2be> well, when you're back
05:33 < crazy2be> i followed it anyway
05:33 < crazy2be> looks like it might prove useful :)
05:33 < crazy2be> night
05:40 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has quit [Ping
timeout: 260 seconds]
05:43 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Remote host closed the
connection]
05:44 < str1ngs> doh back :P
05:52 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 255
seconds]
05:53 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
05:53 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
06:01 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts
06:13 -!- fabilist [~fabilist@99-99-247-143.lightspeed.lnngmi.sbcglobal.net] has
joined #go-nuts
06:19 -!- sebastianskejoe [~sebastian@188.114.142.217] has quit [Quit: Lost
terminal]
06:28 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
06:31 < kevlar> so, it turns out that it's quite possible to make a very
type safe mocking framework with Go
06:31 < kevlar> I was thoroughly surprised
06:31 < kevlar> I haven't even had to use reflection yet.
06:32 -!- fvbommel [~fvbommel_@86.86.15.250] has quit [Read error: Operation timed
out]
06:33 -!- photron [~photron@port-92-201-151-60.dynamic.qsc.de] has joined #go-nuts
06:35 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
06:38 -!- benjack [~benjack@bb121-6-49-120.singnet.com.sg] has joined #go-nuts
06:41 -!- krolaw [~krolaw@203.100.208.229] has quit [Quit: krolaw]
06:42 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 276 seconds]
06:43 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
06:44 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Ping
timeout: 276 seconds]
06:44 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined
#go-nuts
06:49 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
06:55 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has joined
#go-nuts
06:56 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
06:58 -!- bobody [~alexc@unaffiliated/alexc] has quit [Quit: WeeChat 0.3.4]
07:02 -!- nannto [~nanto@pee5b70.tokyff01.ap.so-net.ne.jp] has joined #go-nuts
07:03 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has quit [Ping
timeout: 276 seconds]
07:03 -!- napsy [~luka@193.2.66.6] has joined #go-nuts
07:03 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has joined #go-nuts
07:10 -!- Project-2501 [~Marvin@82.84.94.91] has joined #go-nuts
07:10 -!- bobody [~alexc@unaffiliated/alexc] has joined #go-nuts
07:12 -!- piranha [~piranha@524925BC.cm-4-2a.dynamic.ziggo.nl] has joined #go-nuts
07:14 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-181-87.clienti.tiscali.it] has
quit [Ping timeout: 260 seconds]
07:17 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
07:20 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts
07:25 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
07:28 -!- paul__ [~pyrhho@027dcbf3.bb.sky.com] has joined #go-nuts
07:31 -!- NiteRain [~kvirc@c-98-254-236-21.hsd1.fl.comcast.net] has quit [Read
error: Operation timed out]
07:31 -!- jemeshsu [~jemeshsu@bb220-255-88-127.singnet.com.sg] has joined #go-nuts
07:31 -!- bobody [~alexc@unaffiliated/alexc] has quit [Quit: WeeChat 0.3.4]
07:37 -!- Rennex [rennex@giraf.fi] has joined #go-nuts
07:39 -!- fvbommel [~fvbommel_@dyn069196.nbw.tue.nl] has joined #go-nuts
07:52 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-cguaomnhenhcehfj] has quit [Read
error: Connection reset by peer]
07:52 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-hewieyjhzabbekgq] has joined
#go-nuts
07:54 -!- iant [~iant@ip-62-105-190-87.dsl.twang.net] has quit [Read error:
Operation timed out]
07:54 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
07:59 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:04 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has joined
#go-nuts
08:04 -!- paul__ [~pyrhho@027dcbf3.bb.sky.com] has quit [Ping timeout: 258
seconds]
08:06 -!- Katibe [~Katibe@212.174.109.55] has quit [Read error: Operation timed
out]
08:08 -!- ijknacho [~goofy@cpe-72-190-64-3.tx.res.rr.com] has joined #go-nuts
08:10 -!- LeNsTR|away [~lenstr@1.qs.biz] has joined #go-nuts
08:11 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
08:16 -!- prip [~foo@host80-120-dynamic.42-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 276 seconds]
08:17 -!- Netsplit *.net <-> *.split quits: ampleyfly, brad_, ukai_, nsf,
LeNsTR, vpit3833, @adg, Crnobog, zozoR
08:20 -!- Netsplit over, joins: brad_, zozoR, vpit3833, nsf, ukai_, ampleyfly,
Crnobog, @adg
08:23 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
08:23 -!- Netsplit *.net <-> *.split quits: vpit3833, nsf, ampleyfly, zozoR,
ukai_, @adg, Crnobog, brad_
08:28 -!- prip [~foo@host37-133-dynamic.42-79-r.retail.telecomitalia.it] has
joined #go-nuts
08:29 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
08:29 -!- vpit3833 [~user@203.111.33.203] has joined #go-nuts
08:29 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
08:29 -!- ukai_ [~ukai@nat/google/x-mknhsxsrdtjsfcwd] has joined #go-nuts
08:29 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-akigrxzyglafniip]
has joined #go-nuts
08:29 -!- Crnobog [~crnobog@cpc3-nmal12-0-0-cust48.croy.cable.virginmedia.com] has
joined #go-nuts
08:29 -!- adg [~nf@atka.wh3rd.net] has joined #go-nuts
08:29 -!- brad_ [~brad@cpe-071-070-223-193.nc.res.rr.com] has joined #go-nuts
08:29 -!- ServerMode/#go-nuts [+o adg] by pratchett.freenode.net
08:33 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts
08:36 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has quit [Quit:
Leaving.]
08:37 -!- iant [~iant@74.125.57.58] has joined #go-nuts
08:37 -!- mode/#go-nuts [+v iant] by ChanServ
08:38 -!- xash [~xash@d064215.adsl.hansenet.de] has joined #go-nuts
08:38 -!- iant1 [~iant@74.125.57.57] has joined #go-nuts
08:39 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Ping timeout: 264 seconds]
08:42 -!- iant [~iant@74.125.57.58] has quit [Ping timeout: 255 seconds]
08:45 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
08:47 -!- ijknacho [~goofy@cpe-72-190-64-3.tx.res.rr.com] has quit [Ping timeout:
240 seconds]
08:48 -!- bobody [~alexc@unaffiliated/alexc] has joined #go-nuts
08:49 -!- bobody [~alexc@unaffiliated/alexc] has quit [Client Quit]
08:50 -!- bobody [~alexc@unaffiliated/alexc] has joined #go-nuts
08:58 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has left
#go-nuts []
09:16 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-hewieyjhzabbekgq] has quit [Read
error: Connection reset by peer]
09:17 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-wtmhidrzcdnrcitu] has joined
#go-nuts
09:34 -!- bobody [~alexc@unaffiliated/alexc] has quit [Quit: WeeChat 0.3.4]
09:35 -!- TheMue [u2205@gateway/web/irccloud.com/x-btnpmguzwspynyzf] has joined
#go-nuts
09:38 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Quit: No Ping reply in
180 seconds.]
09:38 -!- neshaug [~oyvind@213.239.108.5] has quit [Ping timeout: 255 seconds]
09:39 -!- neshaug [~oyvind@213.239.108.5] has joined #go-nuts
09:40 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts
09:41 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
09:52 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Ping timeout: 260 seconds]
09:59 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
10:03 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has quit [Ping
timeout: 255 seconds]
10:05 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined
#go-nuts
10:10 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has quit [Ping
timeout: 255 seconds]
10:18 -!- virtualsue [~chatzilla@nat/cisco/x-qbubsddpdrnxsfhn] has joined #go-nuts
10:25 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined
#go-nuts
10:28 -!- benjack [~benjack@bb121-6-49-120.singnet.com.sg] has quit [Quit:
Leaving.]
10:28 -!- alehorst [~alehorst@201.22.35.66.dynamic.adsl.gvt.net.br] has joined
#go-nuts
10:32 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has quit [Remote host closed the connection]
10:46 -!- Ekspluati [5b9c455c@gateway/web/freenode/ip.91.156.69.92] has joined
#go-nuts
11:09 -!- alkavan [~alkavan@IGLD-84-228-189-104.inter.net.il] has joined #go-nuts
11:12 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
11:16 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has joined #go-nuts
11:18 -!- Sep102_ [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has joined
#go-nuts
11:20 -!- zippoxer [zippoxer@bzq-109-65-251-241.red.bezeqint.net] has joined
#go-nuts
11:21 -!- Sep102 [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has quit [Ping
timeout: 255 seconds]
11:23 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Ping timeout: 276 seconds]
11:26 -!- PortatoreSanoDiI [~Marvin@82.84.79.121] has joined #go-nuts
11:28 -!- xash [~xash@d064215.adsl.hansenet.de] has quit [Ping timeout: 240
seconds]
11:28 -!- _andre [~andre@fosforo.f2.k8.com.br] has joined #go-nuts
11:28 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
11:29 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
11:29 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Excess Flood]
11:29 -!- Project-2501 [~Marvin@82.84.94.91] has quit [Read error: Operation timed
out]
11:30 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
11:35 -!- tncardoso [~thiago@189.59.161.24] has joined #go-nuts
11:35 -!- brad_ [~brad@cpe-071-070-223-193.nc.res.rr.com] has quit [Ping timeout:
252 seconds]
11:45 -!- Ekspluati [5b9c455c@gateway/web/freenode/ip.91.156.69.92] has quit
[Quit: Page closed]
11:50 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has quit [Quit: "Wait...  what?!"]
11:51 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
12:03 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has left #go-nuts
[]
12:11 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined
#go-nuts
12:18 -!- shvntr [~shvntr@113.84.95.241] has joined #go-nuts
12:30 -!- replore_ [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has
joined #go-nuts
12:32 -!- tncardoso [~thiago@189.59.161.24] has quit [Quit: bye]
12:42 -!- fvbommel [~fvbommel_@dyn069196.nbw.tue.nl] has quit [Ping timeout: 276
seconds]
12:50 -!- shvntr [~shvntr@113.84.95.241] has quit [Quit: leaving]
12:55 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
12:56 -!- fvbommel [~fvbommel_@wlan-246143.nbw.tue.nl] has joined #go-nuts
12:59 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 240 seconds]
13:03 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has joined #go-nuts
13:04 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
13:05 -!- tncardoso [~thiagon@150.164.2.20] has joined #go-nuts
13:11 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 240 seconds]
13:16 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
13:21 -!- noam [noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
13:22 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has quit [Read error: Connection reset by peer]
13:22 -!- krolaw [~krolaw@203.100.208.229] has quit [Quit: krolaw]
13:24 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds]
13:27 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed
the connection]
13:34 -!- saml [~sam@adfb12c6.cst.lightpath.net] has joined #go-nuts
13:35 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
13:37 -!- niemeyer [~niemeyer@187.53.255.234] has joined #go-nuts
13:39 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Ping
timeout: 240 seconds]
13:41 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the
connection]
13:42 -!- pjacobs [~pjacobs@66.54.185.130] has joined #go-nuts
13:42 -!- robteix [~robteix@192.55.54.36] has joined #go-nuts
13:46 -!- niemeyer [~niemeyer@187.53.255.234] has quit [Ping timeout: 240 seconds]
13:47 -!- dju [dju@fsf/member/dju] has joined #go-nuts
13:49 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts
13:49 -!- Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has quit [Read error:
Connection reset by peer]
13:49 -!- Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has joined #go-nuts
13:50 -!- dju [dju@fsf/member/dju] has quit [Max SendQ exceeded]
13:50 -!- niemeyer [~niemeyer@187.53.255.234] has joined #go-nuts
13:51 -!- dju [dju@fsf/member/dju] has joined #go-nuts
13:52 -!- babali [~babali@2a01:e35:2e0d:ecc0:210:a7ff:fe05:7b50] has joined
#go-nuts
13:52 < babali> Hi
13:52 < str1ngs> hello
13:52 < babali> Is there a place for known design patterns in go ?
13:53 -!- napsy [~luka@193.2.66.6] has quit [Ping timeout: 276 seconds]
13:53 < str1ngs> offhand I can not think of anythings.  what are you trying
to do?
13:55 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Ping
timeout: 255 seconds]
14:01 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts
14:02 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has joined #go-nuts
14:06 -!- dlowe1 [~dlowe@ita4fw1.itasoftware.com] has joined #go-nuts
14:07 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Ping timeout: 240 seconds]
14:08 -!- robteix [~robteix@192.55.54.36] has quit [Ping timeout: 255 seconds]
14:13 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
14:15 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
14:17 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
14:25 < babali> str1ngs, mmm i am writing a small http server, but i don't
want to use a database (mysql, ...) because i want no deps.  So i have an
abstraction "Db" which stores and manage my data.  Then should i use mutex to
access the data or should i send requests though a channel, and have a goroutine
running the db ?
14:26 < str1ngs> babali: pick which one works best for this use case imo
14:26 < str1ngs> babali: I like channels myself but sometimes mutex make
more sense
14:28 < babali> yes
14:28 < babali> i guess channels are right if you want to start a task and
do something else while it's running
14:29 < babali> in my case i would just block waiting for the data
14:29 < babali> so it's the same as a mutex
14:29 < babali> str1ngs, thanks for help
14:29 < str1ngs> so maybe mutex would be better for this you think?
14:29 < babali> str1ngs, yes
14:29 < str1ngs> ok glad to help
14:30 < babali> str1ngs, what are you doing with go ?
14:30 -!- fvbommel [~fvbommel_@wlan-246143.nbw.tue.nl] has quit [Ping timeout: 276
seconds]
14:30 < str1ngs> babali: odds and ends, I like to make alot of terminal
based apps
14:30 < str1ngs> but seems there is not much it cannot do
14:31 < babali> str1ngs, using ncurses ?
14:31 < str1ngs> no mainly stderr stdout
14:31 < babali> ^^
14:31 < str1ngs> not curses fan
14:31 < babali> yes
14:31 < str1ngs> but I've also made toy browsers with webkit
14:31 < babali> what do you mean by toy browsers ?
14:32 < babali> you wrote browser in go with gtk and webkit ?
14:32 < str1ngs> working webkit browser in go
14:32 < str1ngs> right
14:32 < babali> realyyyyyyyyyyyyy
14:32 < babali> is it on github ?
14:32 < str1ngs> http://i.imgur.com/VL1dw.png
14:33 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
14:33 < str1ngs> but most of the work was done by mattn and his go-webkit
bindings
14:33 < babali> str1ngs, emacs user as i am :)
14:33 < str1ngs> thats vim :P
14:33 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
14:33 < str1ngs> the top right terminal is a vte go binding
14:33 < babali> str1ngs, hehe world in go
14:34 < babali> str1ngs, which distribution are you using ?
14:34 < str1ngs> I use archlinux
14:34 < babali> so do I
14:34 < saml> I use imac 7
14:35 < str1ngs> babali: I have a aur helper written in go
14:35 < babali> do you use the go package or did you install go your home
directory ?
14:35 < str1ngs> ~/
14:35 < babali> str1ngs, my aur helper is written in bash :)
14:35 < babali> ok
14:35 < str1ngs> babali: to bad.  mine is 2x faster then cower :P
14:36 < str1ngs> babali: go in community is not bad.  golang-hg in aur is
probably better though.  since you can use goinstall
14:37 -!- [muttox] [~dheppell@93.135.70.115.static.exetel.com.au] has quit [Remote
host closed the connection]
14:37 < babali> yes
14:37 < babali> i did install the -hg version
14:37 < babali> for goinstall
14:37 < str1ngs> I use the official install method.  but with my git mirror
14:37 < babali> but do you think that goinstall is a nice stuff ?
14:37 < babali> because
14:37 < str1ngs> goinstall is good, but its still work in progress
14:38 < babali> you have no control on the version used
14:38 -!- r_linux [~r_linux@189.38.220.35] has joined #go-nuts
14:38 < str1ngs> which goinstall?
14:38 < babali> i prefer install libs by doing pacman -S mylib
14:38 < babali> rather than su "goinstall ...."
14:38 < str1ngs> thats fine for most things.  but go is not really at a
point you can package for
14:38 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has quit [Remote host closed the connection]
14:38 < str1ngs> you can but its not easy.  so ~/ makes more sense right now
14:39 < babali> yes
14:39 < babali> str1ngs, for which company are you working for ?
14:40 < str1ngs> I'm independent
14:42 -!- fvbommel [~fvbommel_@ip212-238-73-200.hotspotsvankpn.com] has joined
#go-nuts
14:44 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Ping
timeout: 255 seconds]
14:44 < babali> Is there any gettext like in go ?
14:45 < str1ngs> https://github.com/sloonz/go-iconv helpful?
14:47 < babali> str1ngs, iconv is for charset conversion, gettext is for
translating apps to other languages
14:50 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts
14:51 < str1ngs> how bout unicode?
14:53 < str1ngs> or utf-8 which go supports in strings
14:55 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
15:00 < babali> str1ngs, unicode is a character encoding but not a way to
translate strings, see man 3 gettext
15:00 -!- fvbommel [~fvbommel_@ip212-238-73-200.hotspotsvankpn.com] has quit [Ping
timeout: 276 seconds]
15:00 < str1ngs> babali: I know what gettext does, just go doesnt use
gettext . but there are other ways
15:01 < str1ngs> just I have not used them myself.  so maybe best if someone
else can suggest something
15:03 -!- PortatoreSanoDiI [~Marvin@82.84.79.121] has quit [Quit: E se abbasso
questa leva che succ...]
15:06 -!- weazelb0y [~weazelb0y@69.60.16.202] has joined #go-nuts
15:12 -!- message144 [~message14@76.89.119.29] has joined #go-nuts
15:13 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
15:16 -!- robteix [~robteix@nat/intel/x-gthutpvocpfcydvq] has joined #go-nuts
15:21 < zippoxer> How can I execute http.Request?  (initialized with url,
etc...)
15:21 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
15:21 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts
15:21 -!- dfr|mac [~dfr|work@nat/google/x-nowbbvzfwxhkrhug] has joined #go-nuts
15:22 < str1ngs> I just create a functions that build a Request
15:22 < str1ngs> something like func buildRequest(url string) *http.Request
15:22 < zippoxer> okay, and then how do you execute it?
15:23 < str1ngs> req := buildRequest("http://foo.bar")
15:23 < str1ngs> then you can past req to the client
15:23 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
15:23 < zippoxer> ohhh :)
15:23 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
15:23 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
15:23 < zippoxer> mm is it okay to use http.NewRequest?
15:24 < str1ngs> sure
15:24 < str1ngs> that might be new
15:24 < str1ngs> or I overlooked it
15:24 < zippoxer> okay thanks ;)
15:25 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
15:25 < str1ngs> ah I didnt use that because I build the request headers etc
15:25 < zippoxer> "Package http has been redesigned."
15:25 < zippoxer> in r57
15:25 < zippoxer> new :P
15:25 < zippoxer> probably..
15:26 < str1ngs> possibly but if you need to customize the headers etc might
be easier to just use a buildRequest
15:26 < str1ngs> w/e works though
15:27 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Quit:
leaving]
15:28 -!- dju [dju@fsf/member/dju] has quit [Quit: Quitte]
15:33 -!- ArgonneIntern [82ca0251@gateway/web/freenode/ip.130.202.2.81] has joined
#go-nuts
15:34 < ArgonneIntern> so I'm getting a really annoying error that basically
tells me nothing can someone help
15:34 < ArgonneIntern> notorious can't assign to
15:35 < str1ngs> can you provide a simple example that does that?
15:35 < str1ngs> easier to read the code with that kinda error
15:36 < ArgonneIntern> yea sorry boss stoped by
15:36 < ArgonneIntern> allocationList := make([]string, tmpList.Len()) for
i, index := tmpList.Front(), 0 ; i != nil ; i = i.Next() { allocationList[index] =
i.Value.(string) index++ resources[i.Value.(string)].Allocated = true
resources[i.Value.(string)].Owner = owner }
15:36 < ArgonneIntern> bleh
15:36 < str1ngs> use paste service please
15:37 < ArgonneIntern> I really need to install an irc client so Id on't get
disconnected form here lol
15:38 < ArgonneIntern> http://www.pastie.org/2083198
15:38 < ArgonneIntern> resources is a map
15:38 < ArgonneIntern> it won't let me assign those field of resources
15:38 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has joined #go-nuts
15:39 < str1ngs> tmpList is container/list?
15:39 < ArgonneIntern> yes
15:39 < ArgonneIntern> list of strings
15:39 < str1ngs> i, index := tmpList.Front() seems wrong
15:40 < str1ngs> Front should only return *Element
15:40 < ArgonneIntern> right
15:40 < ArgonneIntern> and you loop through it until you get to nil
15:40 < str1ngs> use but you have it returning 2 valules
15:40 < str1ngs> values*
15:40 < ArgonneIntern> *Element contains the .Next() function
15:40 < ArgonneIntern> I set index to 0
15:41 < ArgonneIntern> it's a multiple assignment with Front(), 0
15:41 < str1ngs> ah I see that sorry missed it
15:42 < ArgonneIntern> cannot assign to
resources[i.Value.(string)].Allocated
15:42 < ArgonneIntern> whats wierd is I assign to it somewhere else just
fine
15:42 < str1ngs> what is resources?
15:42 < ArgonneIntern> a list of resources that I can allocate for users
15:43 < ArgonneIntern> some are allocated already and some are not
15:43 < ArgonneIntern> oh you mean what is it
15:43 < ArgonneIntern> it's a struct
15:43 < str1ngs> so custom struct?
15:43 < ArgonneIntern> so it's a map[string]struct
15:43 < ArgonneIntern> yes
15:43 < ArgonneIntern> string being the resource
15:43 < str1ngs> ok
15:44 < str1ngs> and resources is declared and in scope?
15:44 < ArgonneIntern> yes is global
15:44 -!- sara [4fade381@gateway/web/freenode/ip.79.173.227.129] has joined
#go-nuts
15:44 < ArgonneIntern> I know man lol, blows my mind...
15:45 < ArgonneIntern> I should be able to put whatever string I want there,
even if it doesn't exist
15:45 < sara> helo..  is Go still active..  i notice the preview release is
three years old..  why is that?
15:45 < str1ngs> sara: go is very active.  and uses releases now
15:46 < ArgonneIntern> yea they release like every week right
15:46 < sara> str1ngs: Glad to hear that :D
15:46 < str1ngs> ArgonneIntern: ah does resources[i.Value.(string)] exist?
15:46 < ArgonneIntern> yes
15:46 < ArgonneIntern> I had an array of requested allocations
15:47 < str1ngs> ArgonneIntern: do something like fmt.Printf("%T =
%#v",i.Value.(string),i.Value.(string))
15:47 < ArgonneIntern> I loop through it and add the ones that aren't
allocated already to that list you see
15:47 < sara> I did not try it yet...  is it something like Lua?  or is it
more than that?
15:47 < ArgonneIntern> Lua is a scripting language
15:47 < ArgonneIntern> go isn't
15:47 < str1ngs> sara: its more like C then lua
15:47 < str1ngs> sara: but has some scripting like features
15:48 < sara> str1ngs: so where can I use it?
15:48 < sara> str1ngs: or ..  where is it currently used..
15:48 < ArgonneIntern> also str1ngs, I love your package, I use it all the
time :P
15:48 < str1ngs> ArgonneIntern: which package?
15:48 < ArgonneIntern> I'm usint it at Argonne national labs right now
15:48 < ArgonneIntern> strings package
15:49 < str1ngs> hehe
15:49 < ArgonneIntern> <3 strings.Split
15:49 < ArgonneIntern> best function ever
15:49 < str1ngs> actually I try to avoid that you can can do some crazy
things with slices
15:49 < str1ngs> but split is hard to avoid
15:49 < ArgonneIntern> i use split and json stuff very often, however I've
moves towards json more than split recently
15:50 < ArgonneIntern> having persistant json files is just a super easy way
to edit stuff
15:51 < ArgonneIntern> so on the last thing you recommended to me what is
your suspicion
15:51 < zippoxer> it's sad that gosqlite and other libs that require cgo
doesn't work on windows..
15:51 < str1ngs> sara: go is multi purpose it is used all over
15:51 < zippoxer> time to move forward to linux?  or there's a solution...
15:52 < ArgonneIntern> people other than microsoft develop on windows still?
15:52 < zippoxer> loll :P
15:52 < str1ngs> zippoxer: iirc it should work.  what gosqlite are you
useing
15:52 < ArgonneIntern> I kid :P
15:52 < zippoxer> http://code.google.com/p/gosqlite/
15:52 < zippoxer> if it's too hard to do, so moving linux is an option for
me.
15:53 < sara> str1ngs: mmm..  well check where it can fit :) I will try to
figure out if it can replace some of my ruby or lua or java code..  plus I will
check it's performance :)
15:53 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has joined
#go-nuts
15:53 < str1ngs> well windows go development lags some.  but if you really
want windows support it might be better to help out
15:54 < str1ngs> sara: I use to use ruby.  not I do everything in go maybe
that would help
15:54 < str1ngs> now*
15:54 < ArgonneIntern> str1ngs: here is the entire thing if it helps
http://www.pastie.org/2083270
15:54 < str1ngs> sara: and if you are use to lua then go is a stop up.
short of pointers maybe
15:55 < sara> str1ngs: i see..
15:55 < zippoxer> okay, so on linux (speicifically ubuntu) can I compile Go
to .exe?
15:55 < ArgonneIntern> str1ngs: has the type and the declaration of it in
there, I load resources from a file as the first thing in func main, so it does
have data.
15:55 < str1ngs> ArgonneIntern: thanks easier if I can compile it
15:55 < ArgonneIntern> str1ngs: you might have to make the map before
compiling
15:57 < str1ngs> ArgonneIntern: ya was wondering about var resources
map[string]ResourceInfo
15:57 < str1ngs> ArgonneIntern: I assume you make that somewhere?
15:57 < ArgonneIntern> yes
15:57 < str1ngs> zippoxer: it can but not sure about cgo.  native go would
be easier
15:57 < ArgonneIntern> str1ngs: first thing I do in main, and I've tested it
extensively so I know it works
15:57 < zippoxer> kk
15:58 < ArgonneIntern> str1ngs: so the data is in resources.  But all of
this is trumped by the fact that it shouldn't matter
15:58 < ArgonneIntern> str1ngs: if the value doesn't exist, it should create
a value
15:58 < ArgonneIntern> str1ngs: that's kinda how maps work
15:58 < str1ngs> ArgonneIntern: still is resources[i.Value.(string)]
created?
15:59 < ArgonneIntern> str1ngs: if you notice the top of the function it has
to be
15:59 < ArgonneIntern> str1ngs: only thin in the list is non allocated nodes
15:59 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
16:00 < ArgonneIntern> I guess I should check that list to see if it the
nodes exist also
16:00 < ArgonneIntern> when I check to see if they are allocated
16:00 < str1ngs> !resources[value].Allocated ya wonder if that checks ok?
16:00 -!- sara [4fade381@gateway/web/freenode/ip.79.173.227.129] has quit [Quit:
Page closed]
16:00 < ArgonneIntern> but the error is cannot assign resources
16:00 < ArgonneIntern> which is an assignment error
16:01 < str1ngs> right but rosource["foo"] might not exist which could give
that error
16:01 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
16:02 < ArgonneIntern> str1ngs: in that case any explicit string key value
would toss an error
16:02 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Max SendQ exceeded]
16:02 -!- sjbrown [~sjbrown@adsl-99-189-162-6.dsl.pltn13.sbcglobal.net] has joined
#go-nuts
16:02 -!- sjbrown [~sjbrown@adsl-99-189-162-6.dsl.pltn13.sbcglobal.net] has quit
[Read error: Connection reset by peer]
16:02 < ArgonneIntern> if I made value := "some value that does exist" and
referenced it in the map it owuld toss the rrror if what you say is tru
16:03 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
16:03 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Max SendQ exceeded]
16:03 < ArgonneIntern> sorry about my poor typing
16:03 < str1ngs> either way add an ok check somewhere
16:03 < str1ngs> at the least in the troubled for loop
16:03 < str1ngs> even if its for debugging it will help
16:03 < ArgonneIntern> yes Iw ill definately do that but I highly doubt it
will solve the problem.  I doubt go will inspect my code and say, yup he checked
so this error doesn't exist anymore
16:04 < str1ngs> I agree the error is not helpful, or could even be a bug.
but I always manual check these things
16:05 < ArgonneIntern> it doesn't toss an error if I loop through resources
and set it that way
16:05 < ArgonneIntern> but anytime I set a resource manually like that it
complains
16:05 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
16:05 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Excess Flood]
16:05 < str1ngs> also iirc have have seen issue with type assertion like
this . where I actually do the type assertion once to a variable
16:05 < ArgonneIntern> it just doesn't like me setting resources on a key
reference at all
16:06 -!- ccmtaylor [~ctaylor@vpn13.sjc.collab.net] has joined #go-nuts
16:06 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
16:06 < ArgonneIntern> grr these errors that don't say anything are
frustrating
16:06 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Excess Flood]
16:06 < str1ngs> ie value := i.Value.(string) then use value
16:06 < ArgonneIntern> i'll try that
16:06 < str1ngs> not saying that will fix it . but will simplify that code
abit
16:07 < ArgonneIntern> this is almost like a C seg fault
16:07 < ArgonneIntern> except in C i know what a seg fault is lol
16:07 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
16:07 < str1ngs> I'll reuse this struct see if I can replicate it
16:08 < ArgonneIntern> not hat didn't solve the issue
16:08 < ArgonneIntern> no that*
16:09 < ArgonneIntern> str1ngs: resources["bb02"].Allocated = true, I did
this and bb02 def exists in the map
16:09 < ArgonneIntern> so it must just not like you assigning on a key
reference
16:09 < ArgonneIntern> which would be TERRIBLE
16:12 < ArgonneIntern> try making any map and assigning it on a key
reference
16:12 < ArgonneIntern> and see if it lets you
16:12 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Quit:
pyrhho]
16:13 -!- piranha [~piranha@524925BC.cm-4-2a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
16:14 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.5]
16:14 < str1ngs> ah found it
16:14 < ArgonneIntern> str1ngs: it could be that accessing amap returns a
value, like a function and cannot be assigned to
16:15 < str1ngs> use map[string]*ResourceInfo
16:15 < ArgonneIntern> no "."?
16:15 < str1ngs> ie var resources map[string]*ResourceInfo
16:16 < ArgonneIntern> ohh in my declaration of the map?
16:17 < str1ngs> right
16:17 < str1ngs> https://gist.github.com/f85c76b016a13ec953e4
16:17 < str1ngs> I have no data in that so you'll have to test with data
16:18 < ArgonneIntern> yea
16:18 < str1ngs> though I can not explain why it want to use a pointer in
this case.  just something I picked up on
16:18 < ArgonneIntern> it worked I just have to change everything else
16:18 < ArgonneIntern> yea I was ognna ask you that next
16:18 -!- fvbommel [~fvbommel_@86.86.15.250] has joined #go-nuts
16:18 < ArgonneIntern> seems wierd you HAVE to use a pointer lol
16:18 < str1ngs> most cases when you use a struct you want it to be a
pointer
16:19 < str1ngs> so that fixed it?
16:19 < ArgonneIntern> yea but I have to edit like 100 lines of code now lol
16:19 < aiju> wow 100 lines of code
16:19 < aiju> will take months!
16:19 < ArgonneIntern> to accomodate the pointer
16:19 < ArgonneIntern> There is only 6 mins until lunch!
16:20 < ArgonneIntern> there just isn't time!
16:20 < ArgonneIntern> I'm just a crummy intern but IMO yous hould be able
to set values on a map to a static variable
16:20 < aiju> it's way more funny if you revise 1000 lines
16:20 < ArgonneIntern> it shouldn't have to be a pointer
16:21 < aiju> and then note that it was totally pointless
16:21 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Excess Flood]
16:22 -!- ccmtaylor_ [~ctaylor@e178014022.adsl.alicedsl.de] has joined #go-nuts
16:22 < str1ngs> ArgonneIntern: now you know the issue . maybe post
something to the ML when you have time about why it needs to be a pointer.
16:22 < ArgonneIntern> anyways tyvm str1ngs for the help
16:23 < str1ngs> could be map related.  I'll check the effective go
16:23 < str1ngs> ArgonneIntern: np.
16:23 < str1ngs> actually spec might be better for this
16:23 < ArgonneIntern> spec?
16:24 < str1ngs> http://golang.org/doc/go_spec.html go bible
16:24 < kevlar_work> ArgonneIntern, maps are unaddressable and therefore map
values cannot be modified, only replaced
16:25 < ArgonneIntern> kevlar_work: my boss just explained thisto me
16:25 < ArgonneIntern> you have to replace the entire value
16:25 < str1ngs> yay thanks kevlar_work
16:25 < ArgonneIntern> or entire struct
16:25 -!- rutkowski [~adrian@078088207013.walbrzych.vectranet.pl] has joined
#go-nuts
16:25 < kevlar_work> ArgonneIntern, or just make it a pointer
16:25 < ArgonneIntern> so I can not use pointers I just need to create a
temp struct, set the values and replace the map[key]
16:25 < kevlar_work> idiomatic Go code uses pointers to structures that you
intend to change anyway
16:26 < ArgonneIntern> a pointer would probably be more efficient
16:26 < kevlar_work> note that if it's not a pointer, you also can't call
pointer-receiver methods
16:26 -!- iant [~iant@74.125.57.57] has joined #go-nuts
16:26 -!- mode/#go-nuts [+v iant] by ChanServ
16:26 -!- iant1 [~iant@74.125.57.57] has quit [Ping timeout: 240 seconds]
16:26 < kevlar_work> which means that no methods you call on the object can
change it either.
16:26 < ArgonneIntern> right
16:26 < str1ngs> basically make it read only in away
16:26 < ArgonneIntern> I don't intend to have methods on the structure yet
but I should use a pointer in case I decide to later
16:27 < ArgonneIntern> it's quite possible
16:27 -!- ccmtaylor [~ctaylor@vpn13.sjc.collab.net] has quit [Ping timeout: 260
seconds]
16:27 < ArgonneIntern> anyways tyvm kevlar_work for the explanation
16:27 < ArgonneIntern> I'm off to debug and lunch :D
16:27 < str1ngs> ArgonneIntern: sorry my understanding of pointers is really
bad :(
16:28 < str1ngs> I just know where to use them when in comes to go
16:28 < ArgonneIntern> str1ngs: in C i use pointers left and right, some
people love them some people hate them, I love them, just go is funny about them
16:28 < str1ngs> I'm the other way around.  use to not using pointers at all
16:29 < str1ngs> I find it easier in go though then say C
16:29 -!- rutkowski [~adrian@078088207013.walbrzych.vectranet.pl] has quit [Client
Quit]
16:29 < kevlar_work> ArgonneInternLun, pointers in Go are the same as in C
;-)
16:30 < kevlar_work> you just can't do math with them.
16:30 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has quit [Remote host closed the connection]
16:30 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 264
seconds]
16:33 -!- sacho_ [~sacho@87-126-39-76.btc-net.bg] has joined #go-nuts
16:33 -!- sacho [~sacho@87-126-39-76.btc-net.bg] has quit [Read error: Connection
reset by peer]
16:35 -!- Project_2501 [~Marvin@82.84.79.121] has joined #go-nuts
16:36 -!- robteix [~robteix@nat/intel/x-gthutpvocpfcydvq] has quit [Remote host
closed the connection]
16:36 -!- message144 [~message14@76.89.119.29] has quit [Quit: gone]
16:36 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has joined
#go-nuts
16:40 -!- B33p [~mgray@li226-224.members.linode.com] has quit [Quit: Lost
terminal]
16:40 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
16:46 -!- iant [~iant@74.125.57.57] has quit [Quit: Leaving.]
16:47 -!- qeed [~qeed@adsl-98-85-59-139.mco.bellsouth.net] has joined #go-nuts
16:52 -!- tncardoso [~thiagon@150.164.2.20] has quit [Quit: Leaving]
16:55 -!- Tv [~Tv@ip-66-33-206-8.dreamhost.com] has joined #go-nuts
16:55 -!- replore_ [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit
[Remote host closed the connection]
16:59 -!- Nitro [~Nitro@unaffiliated/nitro] has joined #go-nuts
17:01 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:92a:dc82:a943:3549] has joined
#go-nuts
17:02 -!- Netsplit *.net <-> *.split quits: vpit3833, noam, ampleyfly,
zippoxer, sacho, @adg, rlab, Crnobog, dlowe1, ukai_
17:03 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
17:03 -!- Netsplit over, joins: sacho, rlab, dlowe1, vpit3833, ukai_, ampleyfly,
Crnobog, @adg
17:05 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 252
seconds]
17:08 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has joined #go-nuts
17:08 -!- Netsplit *.net <-> *.split quits: vpit3833, ampleyfly, ukai_,
sacho, @adg, rlab, Crnobog, dlowe1
17:10 -!- Netsplit over, joins: sacho, rlab, dlowe1, vpit3833, ukai_, ampleyfly,
Crnobog, @adg
17:12 -!- noam [noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
17:14 -!- zcram [~zcram@78-28-101-215.cdma.dyn.kou.ee] has joined #go-nuts
17:15 -!- Sebastian [~Sebastian@git.sebastianhahn.net] has quit [Disconnected by
services]
17:20 -!- LeNsTR [~lenstr@1.qs.biz] has quit [Changing host]
17:20 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts
17:24 -!- alehorst [~alehorst@201.22.35.66.dynamic.adsl.gvt.net.br] has quit [Read
error: Connection reset by peer]
17:28 -!- brandon_ [~brandon@65.102.59.42] has joined #go-nuts
17:28 -!- brandon_ [~brandon@65.102.59.42] has quit [Read error: Connection reset
by peer]
17:29 -!- brandon_ [~brandon@65.102.59.42] has joined #go-nuts
17:29 -!- brandon_ [~brandon@65.102.59.42] has quit [Read error: Connection reset
by peer]
17:30 -!- brandon_ [~brandon@65.102.59.42] has joined #go-nuts
17:30 -!- brandon_ [~brandon@65.102.59.42] has quit [Remote host closed the
connection]
17:35 -!- brandon_ [~brandon@65.102.59.42] has joined #go-nuts
17:35 -!- alehorst [~alehorst@177.16.169.108] has joined #go-nuts
17:35 -!- robteix [~robteix@192.55.54.36] has joined #go-nuts
17:39 -!- ccmtaylor_ [~ctaylor@e178014022.adsl.alicedsl.de] has quit [Ping
timeout: 255 seconds]
17:45 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 255 seconds]
17:48 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
17:49 -!- replore [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has
joined #go-nuts
17:50 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
17:54 -!- replore [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit
[Remote host closed the connection]
18:01 -!- dlowe1 [~dlowe@ita4fw1.itasoftware.com] has quit [Quit: Leaving.]
18:03 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping
timeout: 258 seconds]
18:04 -!- mojbro [~philip@harris.suitopia.com] has quit [Ping timeout: 260
seconds]
18:05 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
18:06 -!- ijknacho [~goofy@cpe-72-190-64-3.tx.res.rr.com] has joined #go-nuts
18:10 -!- mojbro [~philip@harris.suitopia.com] has joined #go-nuts
18:12 -!- boscop_ [~foo@f055068124.adsl.alicedsl.de] has joined #go-nuts
18:14 -!- boscop [~foo@g227128016.adsl.alicedsl.de] has quit [Ping timeout: 255
seconds]
18:15 -!- alkavan [~alkavan@IGLD-84-228-189-104.inter.net.il] has quit [Quit:
Leaving]
18:20 -!- tncardoso [~thiago@189.59.161.24] has joined #go-nuts
18:22 -!- pjacobs [~pjacobs@66.54.185.130] has quit [Ping timeout: 244 seconds]
18:30 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 244 seconds]
18:34 -!- dlowe1 [~dlowe@nat/google/x-yeqwgtiorpwtiicu] has joined #go-nuts
18:35 -!- paul__ [~pyrhho@2.125.203.243] has joined #go-nuts
18:36 -!- virtualsue [~chatzilla@nat/cisco/x-qbubsddpdrnxsfhn] has quit [Ping
timeout: 255 seconds]
18:44 -!- dario [~dario@domina.zerties.org] has quit [Read error: Operation timed
out]
18:44 -!- dario [~dario@domina.zerties.org] has joined #go-nuts
18:45 -!- dlowe2 [~dlowe@nat/google/x-aldhqrezlegkanmf] has joined #go-nuts
18:46 -!- qrush [u1528@gateway/web/irccloud.com/x-egyvjpbojshoswqb] has quit [Ping
timeout: 252 seconds]
18:47 -!- qrush [u1528@gateway/web/irccloud.com/x-yfhzrvfdxfrvjjja] has joined
#go-nuts
18:49 -!- dlowe1 [~dlowe@nat/google/x-yeqwgtiorpwtiicu] has quit [Ping timeout:
276 seconds]
18:51 -!- robteix [~robteix@192.55.54.36] has quit [Quit: Leaving]
18:56 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
18:58 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 246 seconds]
19:06 -!- brandon_ [~brandon@65.102.59.42] has quit [Quit: Ex-Chat]
19:07 -!- huin [~huin@91.85.188.1] has joined #go-nuts
19:07 -!- TheMue_ [~TheMue@p5DDF7D2E.dip.t-dialin.net] has joined #go-nuts
19:13 -!- Knirch [fatal@debian.as] has left #go-nuts []
19:14 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined
#go-nuts
19:18 < TheMue> Ah, I always love it how fast a new release builds.
19:18 < aiju> compared to what?
19:18 < str1ngs> gcc?
19:18 < str1ngs> 16s vs 40min :P
19:18 < crazy2be> anything
19:19 < aiju> except kencc
19:19 < str1ngs> crazy2be: go-git are bindings to libgit2.  hopefully that
answers your question.
19:20 -!- Project-2501 [~Marvin@82.84.71.181] has joined #go-nuts
19:21 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined
#go-nuts
19:21 < crazy2be> str1ngs: awesome
19:21 < TheMue> aiju: no comparison, just an observation
19:21 < crazy2be> how mature are the bindings?
19:21 < crazy2be> does it statically link into my binary?
19:21 < str1ngs> crazy2be: the go-git binding not very.  but then neither is
libgit2 :P
19:21 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Ping
timeout: 252 seconds]
19:21 < crazy2be> :P
19:21 < str1ngs> no it would be linked to libgit2
19:22 < str1ngs> since it uses cgo
19:22 < crazy2be> dynamically linked?
19:22 < str1ngs> for the most part just the C stuff.
19:22 -!- Project_2501 [~Marvin@82.84.79.121] has quit [Ping timeout: 244 seconds]
19:23 < crazy2be> would it work for a simple wiki with diffs, history, and
deltas?
19:23 < str1ngs> diffs not sure.  histories yes
19:23 < str1ngs> deltas probably not
19:24 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
19:24 < str1ngs> I use it on and off.  so I thought bindings would be
useful.  but if you want to use it expect to do some hacking
19:24 < str1ngs> if you have C skills be even better.  since my C is weak at
best
19:24 < crazy2be> i'm ok with that, that's what github is for :P
19:24 < crazy2be> C...  meh
19:25 < crazy2be> i did WIN32API for a year or two
19:25 < crazy2be> that was hella fun
19:25 < str1ngs> if not just say hey I need to do this.  and I'll hack on it
19:25 < str1ngs> right now it sorta does what I need.  but I keep filling in
the gapes as needed
19:26 < ArgonneIntern> how do you remove an entry from a map
19:27 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts
19:27 < str1ngs> irrc foo["bar"] = 0,false
19:27 < crazy2be> ArgonneIntern: map[key] = nil, false
19:27 < ArgonneIntern> crazy2be: thanks
19:27 < crazy2be> or rather nil should be the 0 type for whatever is in the
map
19:27 < crazy2be> not sure if nil or 0 alone awlays works
19:28 < ArgonneIntern> it's the /false that removes it anyways right
19:28 < ArgonneIntern> ,false*
19:28 -!- littlebobby [~bob@unaffiliated/littlebobby] has joined #go-nuts
19:28 < crazy2be> yeah
19:28 < ArgonneIntern> cool
19:28 < crazy2be> setting it to nil doesn't remove it
19:28 < crazy2be> just, well, sets it to nil :P
19:29 < ArgonneIntern> I can't wait to show you guys what we've been working
on
19:30 < ArgonneIntern> we need to get our open source license though
19:30 < crazy2be> ArgonneIntern: what is it?
19:30 < ArgonneIntern> It's a node management system
19:30 -!- paul__ [~pyrhho@2.125.203.243] has quit [Ping timeout: 258 seconds]
19:30 < ArgonneIntern> kind of like amazons but without virual machines, you
will have actual root ont he machine with your FS loaded
19:31 < ArgonneIntern> so it will load an operating system image of your
choice, mount your FS and give you root on it
19:31 < ArgonneIntern> all the while there is a beefy resource manager
19:31 < ArgonneIntern> and almost all of it is in go
19:32 < ArgonneIntern> we even load go binaries on tot he nodes to run
installation scripts for us :P
19:33 < str1ngs> nice
19:34 < ArgonneIntern> if you're familiar with bcfg
19:35 < ArgonneIntern> my boss is the guy who invented that
19:35 < ArgonneIntern> and he is now working on this
19:35 < ArgonneIntern> or telling us how it's supposed to look and we
interns work on it lol
19:36 < ArgonneIntern> We basically get paid by the department of energy to
make and release open source stuff
19:36 < ArgonneIntern> it's a really cool job
19:39 -!- araujo [~araujo@190.73.44.29] has joined #go-nuts
19:39 -!- araujo [~araujo@190.73.44.29] has quit [Changing host]
19:39 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
19:39 < crazy2be> ArgonneIntern: US?
19:40 < ArgonneIntern> yea
19:40 < crazy2be> cool
19:40 < ArgonneIntern> Argonne National Labs in illinois
19:40 < ArgonneIntern> so go is being used in science!!!
19:40 < ArgonneIntern> muhahaha
19:45 < ArgonneIntern> are there any packages for operations on string
arrays
19:45 < ArgonneIntern> I'm assuming I'll have to find an index of a
particular sting in an array manually
19:46 -!- Nitro [~Nitro@unaffiliated/nitro] has quit [Quit: Leaving]
19:46 < ArgonneIntern> strings only deals with 1 string
19:48 < crazy2be> ArgonneIntern: what are you trying to do?
19:48 < ArgonneIntern> remove a string from an array of strings
19:48 < ArgonneIntern> just find the index then splic it basically
19:49 < ArgonneIntern> couldn't find a package that does that
19:49 < ArgonneIntern> the searching
19:49 < crazy2be> make one and release it on github :P
19:49 < ArgonneIntern> don't get me started, I could make a huge package
dealing with string arrays lol
19:49 < ArgonneIntern> but after I'm done with this project I do intend to
add some functionality if the devs let me
19:53 < ArgonneIntern> I'm being told right now that go apparently changed
it's exec package
19:53 < ArgonneIntern> and that none of my code works anymore with the new
version lol
19:53 < str1ngs> it did for the better
19:53 < str1ngs> you code will be quite abit less when you port it :P
19:55 -!- dlowe2 [~dlowe@nat/google/x-aldhqrezlegkanmf] has quit [Quit: Leaving.]
20:01 -!- tvw [~tv@e176003036.adsl.alicedsl.de] has joined #go-nuts
20:04 -!- Project-2501 [~Marvin@82.84.71.181] has quit [Quit: E se abbasso questa
leva che succ...]
20:04 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
20:13 < ArgonneIntern> calling it an ight, later gents
20:17 -!- ArgonneIntern [82ca0251@gateway/web/freenode/ip.130.202.2.81] has quit
[Ping timeout: 252 seconds]
20:18 -!- kr [~Keith@204.14.152.118] has joined #go-nuts
20:19 -!- danilo04 [~danilo04@66.44.225.80] has joined #go-nuts
20:22 -!- pothos_ [~pothos@111-240-165-104.dynamic.hinet.net] has joined #go-nuts
20:24 -!- pothos [~pothos@111-240-169-200.dynamic.hinet.net] has quit [Ping
timeout: 244 seconds]
20:24 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
20:26 -!- virtualsue [~chatzilla@nat/cisco/x-njnnpuocsfnhnlyn] has joined #go-nuts
20:26 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has quit [Remote
host closed the connection]
20:27 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts
20:27 -!- paul_ [~pyrhho@027dcbf3.bb.sky.com] has joined #go-nuts
20:28 -!- littlebobby [~bob@unaffiliated/littlebobby] has quit [Quit: Ex-Chat]
20:29 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
20:32 -!- huin [~huin@91.85.188.1] has quit [Quit: leaving]
20:32 -!- zippoxer [zippoxer@bzq-109-65-251-241.red.bezeqint.net] has joined
#go-nuts
20:34 -!- alehorst [~alehorst@177.16.169.108] has quit [Quit: Leaving.]
20:37 -!- _andre [~andre@fosforo.f2.k8.com.br] has quit [Quit: leaving]
20:47 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
20:48 -!- hargettp_ [~hargettp_@dhcp-162.mirrorimage.net] has quit [Quit:
hargettp_]
20:54 -!- comex [~root@ec2-67-202-46-7.compute-1.amazonaws.com] has left #go-nuts
[]
20:55 -!- fabilist [~fabilist@99-99-247-143.lightspeed.lnngmi.sbcglobal.net] has
quit [Ping timeout: 244 seconds]
20:57 -!- virtualsue [~chatzilla@nat/cisco/x-njnnpuocsfnhnlyn] has quit [Ping
timeout: 264 seconds]
20:59 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:92a:dc82:a943:3549] has quit
[Quit: Leaving.]
21:00 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Ping
timeout: 240 seconds]
21:00 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined
#go-nuts
21:03 -!- dju [dju@at.dmz.me] has joined #go-nuts
21:04 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has quit [Quit:
Leaving]
21:07 -!- danilo04 [~danilo04@66.44.225.80] has quit [Quit: Leaving]
21:08 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has quit [Quit:
Leaving.]
21:08 -!- dju [dju@at.dmz.me] has quit [Changing host]
21:08 -!- dju [dju@fsf/member/dju] has joined #go-nuts
21:10 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has joined
#go-nuts
21:12 < crazy2be> are there any inotify bindings for mac?
21:12 < crazy2be> or rather, the mac equivelent
21:12 -!- dju__ [dju@fsf/member/dju] has quit [Quit: ZNC - http://znc.in]
21:12 < crazy2be> that is, inotify-like bindings for go that work on mac
21:12 < Namegduf> If Mac has an inotify equivalent, os/inotify should get
Mac support.
21:12 < Namegduf> Does it?
21:12 -!- Fish [~Fish@9fans.fr] has quit [Ping timeout: 240 seconds]
21:13 < crazy2be> I think that it has fsnotify or something
21:13 < crazy2be> with obj-c bindings
21:14 < crazy2be> FSEvents
21:15 -!- dju [dju@fsf/member/dju] has joined #go-nuts
21:15 -!- r_linux [~r_linux@189.38.220.35] has quit [Quit: Lost terminal]
21:16 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
21:16 -!- photron [~photron@port-92-201-151-60.dynamic.qsc.de] has quit [Quit:
Leaving]
21:20 -!- ijknacho [~goofy@cpe-72-190-64-3.tx.res.rr.com] has quit [Ping timeout:
252 seconds]
21:24 -!- TheMue [~TheMue@p5DDF7D2E.dip.t-dialin.net] has quit [Quit: TheMue]
21:24 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
21:24 < crazy2be> when does the inotify.Error channel get used?
21:26 -!- saml [~sam@adfb12c6.cst.lightpath.net] has quit [Quit: Leaving]
21:27 -!- dfr|mac [~dfr|work@nat/google/x-nowbbvzfwxhkrhug] has quit [Remote host
closed the connection]
21:34 -!- tncardoso [~thiago@189.59.161.24] has quit [Quit: bye]
21:36 -!- ijknacho [~goofy@65.201.78.58] has joined #go-nuts
21:38 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has joined
#go-nuts
21:42 < str1ngs> on an error of course
21:46 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has joined #go-nuts
21:51 -!- weazelb0y [~weazelb0y@69.60.16.202] has quit [Quit: weazelb0y]
21:57 < crazy2be> str1ngs: when would that happen tho?
21:57 -!- iant [~iant@ip-62-105-190-89.dsl.twang.net] has joined #go-nuts
21:57 -!- mode/#go-nuts [+v iant] by ChanServ
21:57 < crazy2be> also if anyone here has a mac, what happens when you
import "os/inotify"?  Does it work or break horribly?
22:00 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
22:03 < zippoxer> What a recommended version of linux to use for go?
22:04 < zippoxer> I will use a virtual machine.
22:06 -!- ijknacho [~goofy@65.201.78.58] has quit [Ping timeout: 276 seconds]
22:06 -!- zippoxer [zippoxer@bzq-109-65-251-241.red.bezeqint.net] has quit [Read
error: Connection reset by peer]
22:06 < crazy2be> zippoxer: I use ubuntu, others her may digress
22:06 < crazy2be> *here
22:06 -!- zippoxer [~zippoxer@109.65.251.241] has joined #go-nuts
22:07 -!- zippoxer [~zippoxer@109.65.251.241] has quit [Client Quit]
22:07 -!- zippoxer [zippoxer@109.65.251.241] has joined #go-nuts
22:13 -!- allengeorge [~allengeor@c-24-7-17-50.hsd1.ca.comcast.net] has joined
#go-nuts
22:14 < allengeorge> Hi - I'm hitting a surprising problem with channel
conversions
22:14 < allengeorge> Basically, if I typedef a directional channel, I can't
use it to convert a bidirectional channel of the same type
22:16 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Ping
timeout: 246 seconds]
22:17 <+iant> that doesn't sound right....
22:18 < allengeorge> Please see: http://pastebin.com/ZpZHq96r
22:20 < allengeorge> It's part of a larger program.  Let me see if I can get
it to show the same problem in a standalone program
22:21 < zippoxer> Best developing environment (os) for go?
22:21 -!- paul_ [~pyrhho@027dcbf3.bb.sky.com] has quit [Ping timeout: 258 seconds]
22:21 < aiju> Lunix
22:21 < zippoxer> Except windows (omg)
22:21 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
22:21 < zippoxer> checking it up =]
22:21 < aiju> that just means linux and other unix
22:22 < aiju> (*BSD in particular)
22:22 <+iant> allengeorge: actually, this in the spec
22:23 <+iant> you can't convert from a bidirectional channel to a
unidirectional channel unless at least one of the types is not name
22:23 <+iant> d
22:23 <+iant> that is, to convert from a named type to a named type, the
types must be identical
22:23 < allengeorge> Really?  I thought that channel conversions were
allowed
22:23 < allengeorge> Oh...
22:23 <+iant> not sure why that particular restriction is there
22:24 < allengeorge> Hmm.  Which section of the spec is that?
22:24 < aiju> ask on the ML?
22:24 <+iant> actually it's in the assignability section
22:24 < allengeorge> Hmm.  I think this deviates from the principle of least
surprise
22:24 <+iant> probably it should be permitted for a type conversion but not
permitted for an assignment
22:24 < aiju> Go employs the principle of least blowing-up-into-your-face
22:25 <+iant> I suspect this should be listed in the exceptions in the
Conversions section
22:25 <+iant> please open an issue
22:25 <+iant> well, not exceptions, but the list of cases where conversions
are permitted although assignments are not
22:25 < allengeorge> iant: I'll do that.  Thank you for finding out and
letting me know
22:30 < crunge> Is gob the defacto method for serializing binary data if
efficiency isn't an issue?
22:30 <+iant> gob is for sending data on a stream of some sort
22:30 < zippoxer> Hail go.
22:31 <+iant> it's not so good for storing data in a file
22:31 <+iant> there is binary/encoding for that
22:32 < crunge> I'm looking for something analogous to python pickle
22:32 -!- aa_ [~ali@pida/aa] has left #go-nuts []
22:33 < crunge> okay, encoding/binary looks easy to use
22:35 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
22:38 < zippoxer> when something inputs to a channel and multiple goroutines
waiting for input (<-ch)
22:38 < zippoxer> will all of the goroutines
22:38 < zippoxer> receive the input?
22:38 <+iant> no, just one
22:38 < zippoxer> oh
22:38 < zippoxer> so it's not similar to event listening
22:38 < zippoxer> in java :\
22:52 < crunge> more like a set of workers
22:58 -!- babali [~babali@2a01:e35:2e0d:ecc0:210:a7ff:fe05:7b50] has quit [Ping
timeout: 255 seconds]
22:59 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Quit: Leaving]
23:00 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has joined #go-nuts
23:00 -!- tvw [~tv@e176003036.adsl.alicedsl.de] has quit [Read error: Connection
reset by peer]
23:08 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
23:14 -!- NiteRain [~kvirc@c-98-254-236-21.hsd1.fl.comcast.net] has joined
#go-nuts
23:17 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
23:21 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Quit: Leaving]
23:23 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
23:23 -!- Nisstyre [~nisstyre@109.74.204.224] has quit [Excess Flood]
23:25 -!- Nisstyre [~nisstyre@109.74.204.224] has joined #go-nuts
23:28 -!- foocraft [~ewanas@78.101.160.76] has joined #go-nuts
23:40 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Ping
timeout: 244 seconds]
23:41 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined
#go-nuts
23:45 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has joined #go-nuts
23:46 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Ping
timeout: 252 seconds]
23:48 -!- Soultaker [~Soultaker@hell.student.utwente.nl] has quit [Remote host
closed the connection]
23:48 -!- jrabbit [~babyseal@unaffiliated/jrabbit] has quit [Read error:
Connection reset by peer]
23:50 -!- Soultaker [~Soultaker@hell.student.utwente.nl] has joined #go-nuts
23:50 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts
23:51 -!- |shad0w| [~|shad0w|@unaffiliated/shad0w/x-9754281] has quit [Read error:
Connection reset by peer]
23:57 -!- message144 [~message14@cpe-75-83-155-145.socal.res.rr.com] has joined
#go-nuts
--- Log closed Sat Jun 18 00:00:53 2011