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

--- Log opened Sat Apr 23 00:00:50 2011
00:02 -!- boscop_ [~boscop@f055131202.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
00:02 -!- gmurphy [~gmurphy@] has joined #go-nuts
00:02 -!- boscop_ [~boscop@f055131202.adsl.alicedsl.de] has joined #go-nuts
00:06 < plexdev> http://is.gd/XnjERg by [Ian Lance Taylor] in
go/src/pkg/fmt/ -- fmt: decrease recursion depth
00:07 -!- boscop__ [~boscop@f055131202.adsl.alicedsl.de] has joined #go-nuts
00:08 -!- boscop_ [~boscop@f055131202.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
00:09 < vsmatck> Hm. Seems like having interface{} as a parameter generally
indicates bad design doesn't it?  I got a function that I want to be able to take
any struct or any map.  I'm thinking about making interface with Map() and
Struct() functions.
00:09 < vsmatck> Which return a pointer to a map or struct, or nil.  Bad
00:09 < vsmatck> I don't really like checking with reflect at runtime to
make sure the type is right because it makes the program..  ehh brittle.
00:09 < edsrzf> It's more like having interface{} as a parameter indicates
Go needs generics.  :)
00:10 -!- boscop_ [~boscop@f055131202.adsl.alicedsl.de] has joined #go-nuts
00:10 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
00:10 < edsrzf> vsmatck: The problem with your interface with Map or Struct
methods is, what return type will those methods have?
00:10 < exch> Not sure how that makes a different.  Anything implementing
that interface would have to return both a struct and a map
00:10 < exch> if it doesn,t your back to checking what you received
00:11 < vsmatck> Oh true..  The map can be map[string]interface{}, but the
struct can be anything.
00:11 < vsmatck> This won't work.
00:11 -!- boscop__ [~boscop@f055131202.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
00:11 < edsrzf> Yeah, there's just no way to do that kind of thing right now
without reflection.
00:11 < exch> You probably need to ask yourself: Is it really that bad to
create separate functions for a map and the struct cases?
00:13 < vsmatck> I'm converting structs in to maps, then merging the maps
together.  I think maybe I could have an object with two different functions for
struct and map like you suggest.  I could call this multiple times to add stuff to
it.  Like a container.
00:18 < vsmatck> I guess I could still make it look nice.  I could do like
C++ ostream where it chains.  Like v := o.AddMap(mymap).AddStruct(mystruct)
00:22 -!- gmurphy [~gmurphy@] has quit [Ping timeout: 260 seconds]
00:23 -!- nixness [~dsc@] has joined #go-nuts
00:25 < vsmatck> edsrzf: I just realized that you're the mongogo guy.  :)
00:26 < vsmatck> I sent you that email a while back about how I was making
mongogo also.  heh
00:26 < edsrzf> Oh, cool.
00:26 < vsmatck> I ended up using redis for my project.  And made a
connector for that.
00:27 < edsrzf> I've retired mongogo now.  I wasn't putting enough time into
it and there are better mongoDB packages out there now anyway.
00:27 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
00:28 < vsmatck> I haven't looked in a while.  I know a few months ago when
I was looking at gomongo it had problems.
00:28 < vsmatck> It was pretty much just their bson code was missing
00:28 < vsmatck> Not sure how it is now.
00:28 < edsrzf> I found the interface very awkward.
00:29 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
00:29 < vsmatck> yeah me too.  It was awkward so I created a package just to
interface with it because there was so much boilerplate needed.
00:30 < vsmatck> I like the way redis is all strings a bit better.  Then I
do my own marshaling if I need.  Seems to create less boilerplate so I can mix it
in with my application and not clutter things up too bad.
00:33 < vsmatck> I settled on this method of making database calls async.
http://pastie.org/1824168 I make a bunch of go routines to complete the call.
Then I add to the results map "f" in the end.
00:33 < vsmatck> The ttlPretty function does a sync database call.
00:34 -!- JusticeFries [~JusticeFr@] has quit [Read error: Connection
reset by peer]
00:34 -!- JusticeFries [~JusticeFr@] has joined #go-nuts
00:34 -!- btipling [~btipling@unaffiliated/sk/x-5968384] has left #go-nuts []
00:34 < vsmatck> blech, I didn't say that very clear.
00:44 -!- boscop_ [~boscop@f055131202.adsl.alicedsl.de] has quit [Ping timeout:
258 seconds]
00:47 -!- JusticeFries [~JusticeFr@] has quit [Quit: JusticeFries]
00:47 -!- boscop [~boscop@g226237166.adsl.alicedsl.de] has joined #go-nuts
00:56 -!- aruckus [~arukus@] has quit [Quit: Leaving]
00:57 -!- foocraft [~dsc@] has quit [Read error: Connection reset by
00:57 -!- nixness [~dsc@] has quit [Read error: Connection reset by
00:58 -!- nixness [~dsc@] has joined #go-nuts
00:58 -!- nixness [~dsc@] has quit [Read error: Connection reset by
00:58 -!- foocraft [~dsc@] has joined #go-nuts
00:59 -!- nixness [~dsc@] has joined #go-nuts
01:01 -!- gmurphy [~gmurphy@] has joined #go-nuts
01:01 -!- fmoo [~Adium@] has quit [Ping timeout: 258 seconds]
01:02 -!- fmoo [~Adium@] has joined #go-nuts
01:07 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
01:11 -!- karpar [~user@] has joined #go-nuts
01:12 -!- fmoo [~Adium@] has quit [Ping timeout: 258 seconds]
01:14 < ccallahan> Can someone point me an example on how to untar a file
using golang.  not a tar.gz, just a tar.
01:16 -!- fmoo [~Adium@] has joined #go-nuts
01:19 < edsrzf> ccallahan: Here's an example with error checking omitted:
01:24 -!- gtaylor [~gtaylor@99-5-124-9.lightspeed.gnvlsc.sbcglobal.net] has joined
01:25 -!- gtaylor [~gtaylor@99-5-124-9.lightspeed.gnvlsc.sbcglobal.net] has quit
[Client Quit]
01:25 -!- gtaylor [~gtaylor@99-5-124-9.lightspeed.gnvlsc.sbcglobal.net] has joined
01:26 < ccallahan> edsrzf, So, If I used that Gist correctly, if I had a
program that extracted a tar to say, /plugins, I should have this?
01:28 < edsrzf> Almost
01:28 < edsrzf> io.Copy's signature is io.Copy(io.Reader, io.Writer), but
your passing a string as the first parameter.
01:28 < edsrzf> You probably want it to be a file.
01:29 < edsrzf> s/your/you're
01:29 < edsrzf> In this case, I guess you want io.Copy(untarred, f), like
the original.
01:31 -!- fhs [~fhs@pool-74-101-66-112.nycmny.east.verizon.net] has joined
01:33 < ccallahan> edsrzf, http://pastebin.com/2LgnNv4E correct?
01:33 < ccallahan> Sorry, I am a beginner to programming in general.
01:34 < ccallahan> I just have read good reviews about Golang, so I wanted
to learn it first.
01:35 -!- fhs [~fhs@pool-74-101-66-112.nycmny.east.verizon.net] has quit [Client
01:35 < edsrzf> No problem
01:36 < edsrzf> ccallahan: I think that will work
01:36 -!- fhs [~fhs@2001:0:4137:9e76:208e:75d0:b59a:bd8f] has joined #go-nuts
01:37 -!- karpar` [~user@] has joined #go-nuts
01:38 -!- karpar [~user@] has quit [Ping timeout: 260 seconds]
01:39 -!- karpar` [~user@] has quit [Client Quit]
01:40 -!- karpar [~user@] has joined #go-nuts
01:42 < fzzbt> is there way to pass debug flag (like NDEBUG in C) to 6g/6l?
01:44 < fzzbt> or really any custom compilation flags
01:46 -!- karpar [~user@] has quit [Remote host closed the
01:48 -!- fmoo [~Adium@] has quit [Quit: Leaving.]
01:49 < fzzbt> or maybe i should just put them in the code and selectively
compile them
01:53 -!- ccallahan [~name@ip68-102-215-66.ks.ok.cox.net] has quit [Ping timeout:
258 seconds]
02:01 -!- vsayer [~vivek@c-67-170-236-166.hsd1.ca.comcast.net] has quit [Ping
timeout: 276 seconds]
02:01 -!- gmurphy [~gmurphy@] has quit [Ping timeout: 260 seconds]
02:09 -!- karpar [~user@] has joined #go-nuts
02:09 -!- dchest [~dchest@] has quit [Quit: dchest]
02:14 -!- phoeton [~phoeton@p579BDF09.dip.t-dialin.net] has joined #go-nuts
02:21 -!- vsayer [~vivek@c-67-170-236-166.hsd1.ca.comcast.net] has joined #go-nuts
02:25 -!- phoeton [~phoeton@p579BDF09.dip.t-dialin.net] has quit [Quit: phoeton]
02:28 -!- gmurphy [~gmurphy@124-148-42-147.dyn.iinet.net.au] has joined #go-nuts
02:42 < SmoothPorcupine> I take it it really doesn't exist then?  :(
02:43 < SmoothPorcupine> Well I idle freenode in case someone knows of a
language that does that.
02:43 -!- SmoothPorcupine [~smooth@] has left #go-nuts ["Refer to
logs if you don't know what I'm talking about."]
02:45 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has joined #go-nuts
02:48 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
02:53 -!- ccallahan [~ccallahan@ip68-102-215-66.ks.ok.cox.net] has joined #go-nuts
02:53 < ccallahan> Can someone link me to my pastebin?
02:53 < ccallahan> I had to change computers
02:53 < zanget> http://pastebin.com/2LgnNv4E
02:59 < skelterjohn> s.Create("WATERHOME/PACKAGE") <- won't work if the
WATERHOME dir doesn't already exist
03:05 < ccallahan> skelterjohn: It's a environment variable.
03:05 < ccallahan> Wait, nvm
03:05 < skelterjohn> :)
03:05 < skelterjohn> perhaps it is, but you aren't using it as one in that
function call
03:06 < ccallahan> How do I use it as one?
03:06 < skelterjohn> you've already got them in global vars
03:06 < skelterjohn> so you can do os.Create(filepath.Join(WATERHOME,
03:06 -!- rbraley [~rbraley@] has joined #go-nuts
03:14 -!- rbraley [~rbraley@] has quit [Ping timeout: 246 seconds]
03:15 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Quit:
03:16 -!- rbraley_ [~rbraley@] has joined #go-nuts
03:23 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has quit [Quit:
03:23 -!- karpar [~user@] has quit [Quit: Yow!  Legally-imposed
03:25 -!- a2800276 [~a2800276@xdsl-87-78-137-184.netcologne.de] has quit [Read
error: Operation timed out]
03:26 -!- ww [~ww@river.styx.org] has quit [Ping timeout: 240 seconds]
03:27 -!- a2800276 [~a2800276@xdsl-213-168-108-229.netcologne.de] has joined
03:28 -!- ezys [~ezys@c-67-161-85-212.hsd1.wa.comcast.net] has joined #go-nuts
03:33 -!- gmurphy [~gmurphy@124-148-42-147.dyn.iinet.net.au] has quit [Quit:
WeeChat 0.3.3]
03:33 -!- ezys [~ezys@c-67-161-85-212.hsd1.wa.comcast.net] has quit [Quit: ezys]
04:00 -!- crodjer [~rohanjain@] has joined #go-nuts
04:02 -!- ezys [~ezys@c-67-161-85-212.hsd1.wa.comcast.net] has joined #go-nuts
04:03 -!- m4dh4tt3r [~Adium@241.sub-75-210-152.myvzw.com] has joined #go-nuts
04:07 -!- ezys [~ezys@c-67-161-85-212.hsd1.wa.comcast.net] has left #go-nuts []
04:07 -!- ezys [~ezys@c-67-161-85-212.hsd1.wa.comcast.net] has joined #go-nuts
04:08 -!- ezys [~ezys@c-67-161-85-212.hsd1.wa.comcast.net] has left #go-nuts []
04:09 -!- ezys [~ezys@c-67-161-85-212.hsd1.wa.comcast.net] has joined #go-nuts
04:19 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services]
04:19 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
04:25 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
04:25 -!- mode/#go-nuts [+v iant] by ChanServ
04:50 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has joined #go-nuts
04:55 < Namegduf> There's this sense of satisfaction from making a fairly
complex program clean up and terminate nicely and cleanly.
05:06 -!- zozoR [~Morten@] has joined #go-nuts
05:09 < ezys> Which is slightly different than the satisfaction of hitting
^C exactly once to terminate a process.  :-P
05:10 < Namegduf> ezys: Making that work for complicated stuff that needs to
properly tell everything it's connected to that it's shutting down, and save
state, is nice, though.
05:10 < Namegduf> Go makes signal handling nice and pretty.
05:12 -!- m4dh4tt3r [~Adium@241.sub-75-210-152.myvzw.com] has quit [Ping timeout:
252 seconds]
05:13 -!- fhs [~fhs@2001:0:4137:9e76:208e:75d0:b59a:bd8f] has quit [Ping timeout:
260 seconds]
05:15 -!- sacho [~sacho@95-42-105-75.btc-net.bg] has joined #go-nuts
05:27 -!- damikin11 [~damikin11@cpe-24-30-179-173.socal.res.rr.com] has quit [Ping
timeout: 240 seconds]
05:37 -!- photron_ [~photron@port-92-201-42-236.dynamic.qsc.de] has joined
05:56 -!- zozoR [~Morten@] has quit [Read error: Connection reset by
05:59 -!- crazy2be [~crazy2be@S01060012171a573b.cg.shawcable.net] has quit [Ping
timeout: 240 seconds]
06:08 -!- eiro [~marc@phear.org] has joined #go-nuts
06:08 < eiro> hello,
06:09 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has joined #go-nuts
06:10 < eiro> i'm learning erlang and a friend of mine told me that go is a
perfect alternative.  i've seen nothing like the OTP in go.  did i missed a link?
06:11 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
06:13 < cbeck> OTP?
06:14 -!- rbraley_ [~rbraley@] has quit [Ping timeout: 240 seconds]
06:16 < eiro> cbeck, you can see it as a console to manage erlang processes
distributed on a cluster.  there is no extra code to have that
06:17 -!- gtaylor [~gtaylor@99-5-124-9.lightspeed.gnvlsc.sbcglobal.net] has quit
[Quit: gtaylor]
06:17 < eiro> i think it's possible because of the erlang vm so there is no
such thing in go world
06:17 < eiro> i would like to be sure
06:18 < cbeck> I don't believe so, but you'd have to look at the profiler
06:21 < jessta_> eiro: goroutines aren't really the same as erlang's
06:22 < |Craig|> eiro: I haven't used erlang, but its my understanding that
erlang is inherently distributed, and go isn't.  Go is more focused on having a
high performance server, perhaps using several processor cores, than using several
computers.  Multi computer level stuff is up to the programmer in go, though there
are a few tools that help
06:23 < jessta_> Go's version of OTP would be a shell running top
06:23 < eiro> ok so my friend just means "go have concurrency too" :)
06:23 < eiro> thanks for clarifying, guys
06:24 < Namegduf> I think you might be confusing "alternative" with "is
identical to".
06:24 < |Craig|> if you were looking into erlan because you wanted to write
multithreaded programs, then go is a good alternative
06:24 < Namegduf> Go has concurrency and parallelism, but not across
multiple computers.
06:24 < cbeck> Unless you code it to do so
06:24 < Namegduf> It does not have a management consolely thing and each
concurrent thing does not have a single message queue and such for messages to be
sent to.
06:25 < cbeck> Which it provides support for, but doesn't do for you
06:25 < eiro> ok: basically i want to use erlang because i would like to use
OTP to manage a huge asset of perl scripts to run ditributed.  i miss distribution
and erlang seems to be good at
06:26 < Namegduf> In that case, Go does not provide a pre-existing thing for
06:26 < eiro> so i keep on looking at go and learning erlang.
06:26 < eiro> thanks
06:26 < Namegduf> Sounds sensible.
06:27 -!- rbraley_ [~rbraley@] has joined #go-nuts
06:28 -!- eiro [~marc@phear.org] has left #go-nuts []
06:29 -!- eiro [~marc@phear.org] has joined #go-nuts
06:29 < eiro> sorry ...  typed /leave 2 times :)
06:32 -!- aho [~nya@fuld-590c6464.pool.mediaWays.net] has quit [Quit:
06:50 -!- B0rder [~B0rder@] has joined #go-nuts
06:56 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Read error:
Connection reset by peer]
07:01 -!- tdc [~santegoed@host217-44-215-18.range217-44.btcentralplus.com] has
joined #go-nuts
07:10 -!- napsy [~luka@] has quit [Quit: Lost terminal]
07:11 -!- tdc [~santegoed@host217-44-215-18.range217-44.btcentralplus.com] has
quit [Quit: tdc]
07:12 -!- zozoR [~Morten@] has joined #go-nuts
07:13 -!- anticw [~anticw@c-67-169-68-180.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
07:14 -!- anticw [~anticw@c-67-169-68-180.hsd1.ca.comcast.net] has joined #go-nuts
07:14 -!- B0rder [~B0rder@] has quit [Quit: 离开]
07:24 < taruti> Is it more intuitive to have one chan of interface{} and
type switch, or multiple channels with types and select?
07:27 < jessta_> depends on what you're doing
07:27 < jessta_> it's easier to pass around a chan of interface{} than losts
of chans of different types
07:31 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: Quit]
07:32 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
07:33 -!- damikin11 [~damikin11@cpe-24-30-179-173.socal.res.rr.com] has joined
07:34 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
07:49 -!- damikin11 [~damikin11@cpe-24-30-179-173.socal.res.rr.com] has quit
[Remote host closed the connection]
07:56 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
08:02 -!- dchest [~dchest@] has joined #go-nuts
08:41 -!- huin [~huin@] has joined #go-nuts
08:43 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:47 -!- Project_2501 [~Marvin@] has joined #go-nuts
08:49 -!- ccallahan [~ccallahan@ip68-102-215-66.ks.ok.cox.net] has quit [Ping
timeout: 276 seconds]
08:50 -!- ccallahan [~ccallahan@ip68-102-215-66.ks.ok.cox.net] has joined #go-nuts
08:50 -!- ww [~ww@river.styx.org] has joined #go-nuts
08:52 < dchest> Anyone knows the reason for image/png and image/jpeg Encode
not returning the number of bytes written?  Should this be fixed?
09:01 -!- Project_2501 [~Marvin@] has quit [Read error: Connection
reset by peer]
09:02 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-163-29.clienti.tiscali.it] has
joined #go-nuts
09:09 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
09:15 -!- coud [~coud@] has joined #go-nuts
09:23 -!- tyha2 [48be4003@gateway/web/freenode/ip.] has joined #go-nuts
09:25 < tyha2> is there a way to print the first rune from a string without
doing: for _,v := range myStr { fmt.Println(v); break } ? myStr[0] gives the first
byte, which is not the same thing
09:26 < tyha2> and by print, I just mean easily access.
09:28 < aiju> tyha2: i for one just define it as a routine
09:28 < aiju> func First(s string) int { for _, v := range s { return v } }
09:28 < tyha2> aiju: Thanks.  I felt like I was misunderstanding something
or missing something obvious.
09:28 < aiju> there might be a library routine
09:29 < aiju> i haven't found it though ;P
09:29 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts
09:30 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has joined
09:38 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has quit [Quit:
09:42 -!- Scorchin [~Scorchin@host86-145-11-150.range86-145.btcentralplus.com] has
joined #go-nuts
09:47 < dchest> tyha2: http://golang.org/pkg/utf8/#DecodeRuneInString
09:49 -!- Scorchin [~Scorchin@host86-145-11-150.range86-145.btcentralplus.com] has
left #go-nuts []
09:56 < tyha2> dchest: nice.  thanks.
10:04 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has quit [Ping
timeout: 276 seconds]
10:16 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 250 seconds]
10:30 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has joined
10:34 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts
10:59 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 250 seconds]
11:07 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
11:11 -!- huin [~huin@] has quit [Quit: leaving]
11:19 -!- edsrzf [~chickench@122-61-221-144.jetstream.xtra.co.nz] has quit [Remote
host closed the connection]
11:40 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-153-211.clienti.tiscali.it] has
joined #go-nuts
11:42 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 250 seconds]
11:42 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
11:42 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-163-29.clienti.tiscali.it] has
quit [Ping timeout: 240 seconds]
12:02 -!- phoeton [~phoeton@p579BDF86.dip.t-dialin.net] has joined #go-nuts
12:15 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
12:16 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has quit [Ping
timeout: 258 seconds]
12:16 < phoeton> Hi everyone!
12:24 -!- Fish- [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts
12:27 -!- prip [~foo@host188-121-dynamic.42-79-r.retail.telecomitalia.it] has quit
[Read error: Connection reset by peer]
12:28 -!- prip [~foo@host188-121-dynamic.42-79-r.retail.telecomitalia.it] has
joined #go-nuts
12:36 -!- foocraft [~dsc@] has quit [Ping timeout: 240 seconds]
12:36 -!- ewanas [~dsc@] has quit [Ping timeout: 240 seconds]
12:37 -!- nixness [~dsc@] has joined #go-nuts
12:39 < phoeton> Hi guys.  Is anyone actually here or am I alone at the
moment?  In the first case: do you know about anyone getting gocode to work with
acme sac or acme in general?  In the second case: Why are you even reading this?
12:40 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
12:43 -!- virtualsue [~chatzilla@host81-139-80-186.in-addr.btopenworld.com] has
joined #go-nuts
12:43 < taruti> phoeton: you would need to write an acme app for that.
12:45 -!- foocraft [~dsc@] has joined #go-nuts
12:45 < phoeton> Thanks, I'm reading up on that just now.
12:46 < phoeton> Pretty sure that's what I'm gonna be doing for the next
couple of days.
12:46 < taruti> phoeton: see the xplor source for tips
12:46 < phoeton> Thank you.  I will.
12:47 < phoeton> Just out of interest: have you tried actually writing and
managing some code using either gogo or liteide?
12:47 < taruti> acme and emacs
12:48 < phoeton> Only with syntax highlighting or coupled with gocode?
12:48 < taruti> btw what is the current state-of-the-art patch series for
plan9 crosscompilation?
12:49 < phoeton> I'm not sure what you mean.  Do you mean as in
comp.os.plan9 porting?  Or as in actual crosscompilation?
12:49 < phoeton> (Sorry English isn't my native language...  :-( )
12:50 < taruti> I do have an ancient native and a newer cross compiling tool
chain but that is kind of old and wondering what is the proper place to update.
12:51 < taruti> https://bitbucket.org/paulzhol/golang-plan9-runtime ?
12:51 < phoeton> Still think I'm getting you wrong here, but the place to
get the latest Plan9-style tool chain would be golang.org wouldn't it?
12:51 < phoeton> Oh now I get you.
12:52 -!- creaux [~creaux@unaffiliated/creaux] has joined #go-nuts
12:52 < phoeton> You want the latest P9 runtime?
12:52 < taruti> I think of using the paulzhol one with my patches on top of
12:53 < phoeton> Just judging from the date of the latest patch revision
(2011-04-10) it seems very up-to-date.
12:55 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 264 seconds]
12:55 < phoeton> I'm sorry, but I'm a little confused by something:
12:56 < phoeton> If you get
https://bitbucket.org/paulzhol/golang-plan9-runtime-patches, why would you still
need your own patches on top of that?
12:56 < phoeton> Seems to be working just fine as is...
12:57 < taruti> phoeton: e.g.  some net package support.
12:58 < phoeton> Well you wouldn't really need to get make that a patch,
unless you want to redistribute it, in which case it might be nice to just include
it in a fork of paulzhol and maybe merge it into his patches.
12:59 < phoeton> Just a thought.
12:59 < phoeton> taruti: Sorry for not including your name in my msgs, I'm
not really used to IRC.
13:00 < taruti> np
13:00 < taruti> yes, I should submit the patches, but they are really hacky
thus would need time to finalize them.
13:04 < phoeton> I don't think that's so much of a problem as people make it
to be all the time (not a criticizm, just in general ;) ).  "Hacky" is fine, as
long as "Working" also describes the code.  In general, I'd rather someone submit
something slightly hacky and working now and clean it up later (with the help of
others) than sit on his source forever and by the time it's clean, other people
have implemented the same thing themselves.
13:05 < phoeton> While I love pluralism in OpenSource in general, I think
less time spent sitting on code could help save other people time, taruti.
13:05 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
13:06 < taruti> point
13:09 < skelterjohn> morning
13:09 < phoeton> Again, that's really not a criticizm.
13:09 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has quit [Ping
timeout: 250 seconds]
13:10 < phoeton> I do the exact same thing myself, keeping source on
harddrive only until I deem it perfect.
13:10 < phoeton> Hi skelterjohn.
13:18 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-153-211.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
13:34 -!- g0bl1n [~g0blin@unaffiliated/g0bl1n] has joined #go-nuts
13:36 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Read error:
Operation timed out]
13:37 -!- larva_ [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com]
has quit [Quit: No Ping reply in 180 seconds.]
13:38 -!- larva [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com] has
joined #go-nuts
13:41 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
13:42 < fzzbt> how would you generate image thumbnails with go?  i tried
looking at the image package, but it doesn't seem to do much
13:48 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts
13:48 < phoeton> Hi fzzbt.  That depends entirely on what you want to do
13:49 < phoeton> If you just want to take an image as input and another
image file as output and define a function that makes the second image smaller
than the first, it is a little different business than taking an image as input
and rendering a smaller version to the screen.
13:50 < phoeton> The first thing can be done in "pure" go (depending on file
format, of course), the second would need to involve quite some non-standard
C-library work.
13:50 < telexicon> very nuts
13:51 < fzzbt> i don't want to render it
13:51 < phoeton> Say you want to make a 100X*100Y jpg into a X*Y jpg, I
could help you.
13:51 < fzzbt> please do
13:52 < fzzbt> do i need to code my own scaling algorithm(s)?
13:52 < phoeton> Alright, give me a second to draw up the reference
materials needed.
13:52 < fzzbt> k
13:55 < phoeton> Alright, here we go.
13:55 < phoeton> (let's do this in private chat)
13:55 < fzzbt> ok
13:57 < telexicon> oh ok
13:58 -!- dchest [~dchest@] has quit [Quit: dchest]
14:16 < plexdev> http://is.gd/Kbg6r4 by [Russ Cox] in go/src/pkg/runtime/ --
runtime: disable long test (fix arm build)
14:17 -!- d_m [~d_m@] has quit [Ping timeout: 260 seconds]
14:21 -!- d_m [~d_m@] has joined #go-nuts
14:47 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Ping timeout:
252 seconds]
14:51 -!- tyha2 [48be4003@gateway/web/freenode/ip.] has quit [Ping
timeout: 252 seconds]
14:57 < plexdev> http://is.gd/6tQn6W by [Anthony Martin] in go/src/cmd/ld/
-- ld: fix Plan 9 symbol table
14:57 < plexdev> http://is.gd/AjiVM2 by [Russ Cox] in 2 subdirs of go/ --
gc: fix line number at EOF
14:57 < plexdev> http://is.gd/3lSXCK by [Russ Cox] in 2 subdirs of go/ --
gc: fix return variable named _
14:57 < plexdev> http://is.gd/KIc5mo by [Russ Cox] in 2 subdirs of go/ --
gc: fix conversion of user-defined string type to []byte
15:05 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Ping
timeout: 248 seconds]
15:09 -!- TheMue [~TheMue@p5DDF79EB.dip.t-dialin.net] has joined #go-nuts
15:09 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
15:14 -!- virtualsue [~chatzilla@host81-139-80-186.in-addr.btopenworld.com] has
quit [Ping timeout: 250 seconds]
15:15 -!- dchest [~dchest@] has joined #go-nuts
15:17 -!- a2800276 [~a2800276@xdsl-213-168-108-229.netcologne.de] has quit [Quit:
15:24 -!- sjbrown [~sjbrown@c-98-210-195-242.hsd1.ca.comcast.net] has joined
15:26 -!- adu [~ajr@pool-173-66-252-173.washdc.fios.verizon.net] has joined
15:28 -!- napsy [~luka@] has joined #go-nuts
15:31 -!- a2800276 [~a2800276@xdsl-213-168-108-229.netcologne.de] has joined
15:32 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Remote
host closed the connection]
15:36 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has quit [Ping
timeout: 240 seconds]
15:38 -!- nbm [~nathan@dhcp-0-25-9c-d3-a7-c7.cpe.townisp.com] has joined #go-nuts
15:40 < nbm> Is it not legal to use interface types as receivers?  (foo
Fooer) DoStuff () { foo.Foo() }
15:40 < aiju> no
15:42 -!- rbraley_ [~rbraley@] has quit [Read error: No route to host]
15:44 < taruti> Is there a way to make the default makefiles specify
stripping for 8l?
15:49 < nbm> Okay then, thanks.
15:51 -!- adu [~ajr@pool-173-66-252-173.washdc.fios.verizon.net] has quit [Quit:
15:52 -!- adu [~ajr@pool-173-66-252-173.washdc.fios.verizon.net] has joined
15:53 < phoeton> nbm, if you think about the difference between interface
and data structure in go, that wouldn't really make a lot of sense.
15:55 < phoeton> It might be weird at first to have a strict separation
between data structure and interface at first, if you're used to a more orthodox
standard object-oriented model as in Java, but it does have its merits.
15:55 < phoeton> (sorry scratch one of those "at first"s ;) )
15:56 < phoeton> nbm: If you tell me what you wanted to do, I might be able
to show you a way to do it.
16:01 -!- adu [~ajr@pool-173-66-252-173.washdc.fios.verizon.net] has quit [Quit:
16:02 -!- sacho [~sacho@95-42-105-75.btc-net.bg] has quit [Quit: Ex-Chat]
16:04 -!- a2800276 [~a2800276@xdsl-213-168-108-229.netcologne.de] has quit [Quit:
16:05 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Ping
timeout: 248 seconds]
16:05 < exch> Is there a way I can tell http.ServerFile to use gzip
compression when the client has the 'Accept-Encoding' header set?
16:08 < phoeton> wait a second let me see, exch
16:09 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
16:09 < exch> It would be handy if it took an io.Writer as first parameter,
instead of http.ResponseWriter.  I could just pass it the client connection,
wrapped in a gzip compressor
16:09 < phoeton> Well you can use standard io.Reader and io.Writer
16:09 < phoeton> can't you?
16:10 < exch> I can't pass the gzip.compressor as an http.ResponseWriter
16:10 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
16:10 < phoeton> In fact, you can, pretty easily:
16:11 < phoeton> You simply define your own ResponseWriter that uses gzip.
16:11 < phoeton> ResponseWriter isn't a complicated interface to implement.
16:11 < exch> yea.  not sure if it's 'simple' though
16:12 < exch> afaik, the http package should do that by itself
16:12 < exch> ohg wlel.  I'll roll my own
16:12 < exch> *oh well
16:12 < phoeton> Well, you can use a normal http.ResponseWriter internally.
16:12 < phoeton> So you don't need to reimplement the wheel.
16:12 < phoeton> Just wrap the gzip compression around it using your own
function, and that's it.
16:13 < phoeton> Should be very few lines of code.
16:13 -!- sjbrown [~sjbrown@c-98-210-195-242.hsd1.ca.comcast.net] has quit [Ping
timeout: 252 seconds]
16:15 -!- zozoR [~Morten@] has quit [Remote host closed the
16:17 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Quit: ZNC -
16:20 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
16:21 < jessta_> exch:
16:22 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
16:24 < exch> that works, thanks
16:31 < Tv> i can't seem to get method expressions to work with 6g..
16:32 < aiju> Tv: do you have the newest version?
16:32 < Tv> ohh sorry T vs t confusion
16:32 < Tv> tired eye
16:32 < Tv> s
16:32 < Tv> both of them, and the brain in the middle too ;)
16:32 -!- aimxhaisse [~mxs@buffout.org] has quit [Ping timeout: 240 seconds]
16:33 -!- sjbrown [~sjbrown@c-98-210-195-242.hsd1.ca.comcast.net] has joined
16:35 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:60a5:7c86:24e6:6cef] has quit
[Read error: Operation timed out]
16:35 -!- aimxhaisse [~mxs@] has joined #go-nuts
16:36 -!- karpar [~karpar@] has joined #go-nuts
16:37 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
16:40 -!- crazy2be [~crazy2be@S01060012171a573b.cg.shawcable.net] has joined
16:46 < nbm> phoeton, I'm defining some useful functions that operate on
anything that implements a certain interface.  I went with just taking the Fooer
as the first formal parameter.
16:46 -!- m4dh4tt3r [~Adium@c-69-181-217-82.hsd1.ca.comcast.net] has joined
16:47 < phoeton> nbm, sounds good.  Does it do what you wanted it to?
16:49 < nbm> phoeton, pretty much, I was just trying to get the
item.DoStuff() syntax instead of having to use mymodule.DoStuff(item).
16:52 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:2d7f:5d2d:97fd:a5f9] has joined
16:53 < exch> jessta_: have you experienced issue with the browser returning
errors when that gzip code is used?  For certain files, chromium keeps bugging out
with a 100: Connection closed error
16:54 < exch> It only happens when using the gzip compression
16:55 < jessta_> exch: I haven't used the code, I just came across it
16:56 < exch> this seems to be a chromium issue
16:56 < exch> firefox handles it fine
16:59 < phoeton> Maybe have a look at the chromium bugtracker?
17:00 -!- Fish [~Fish@exo3753.pck.nerim.net] has quit [Ping timeout: 246 seconds]
17:01 < exch> there are more problems with this.  But I think they are in
http.ServeFile itself
17:01 < exch> some incorrect mimetypes are being reported
17:02 -!- virtualsue [~chatzilla@host81-139-80-186.in-addr.btopenworld.com] has
joined #go-nuts
17:07 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has joined
17:16 < delinka> func NewThings(count int) []*Things { var tgs
[count]*Things; } //yes, an array of pointers, however "invalid array bound count"
- how should I actually be doing this?
17:16 < aiju> array sizes must not be variables
17:17 < delinka> how do I need to allocate a variable number of pointers to
17:17 < aiju> use a slice
17:17 < aiju> make([]*Things, count)
17:18 < aiju> you are already returning one!
17:18 < Viriix> slices are pointers on steroids
17:19 < aiju> why are you quoting me?  ;P
17:19 < Viriix> i am?
17:19 < aiju> i have a patent on that phrase!
17:19 < delinka> thanks, aiju
17:19 < Viriix> shall withdrawl that statement then
17:20 < Viriix>
http://blog.golang.org/2011/01/go-slices-usage-and-internals.html << was a
real interesting read
17:20 < rm445> I had heard that patents were getting out of control, but
being able to patent a phrase?  Crazy!
17:20 < rm445> Oh well, in 17 years it will be in the public domain.
17:23 < Viriix> i'm kind of dissapointed that i'm writing my pet project web
server in C and not Go
17:25 < Viriix> but Go's http parser isnt stream based and thats the key
17:25 < aiju> "stream based"?
17:26 < Viriix> yeah, like SAX is to XML parsing
17:26 < aiju> i don't know SAX
17:26 < Viriix> http://lloyd.github.com/yajl/ << thats a stream based
parser for json
17:26 < Viriix> it does the parsing, and you provide the callbacks on what
you want to do with certain tokens
17:27 < aiju> sounds ugly
17:27 < Viriix> Go's lack of a stream based parser for JSON too is also a
deterent for me
17:27 < aiju> you could use channels
17:27 < Viriix> doesnt sound like what i want at all
17:27 < Viriix> the entire point is to not parse the entire request/document
into a massive structure
17:28 < aiju> yeah
17:28 < ww> i think aiju's right - an idiomatic streaming parser would send
tokens on channels and not use callbacks i think
17:28 < aiju> and that's what you can fucking do with channels
17:28 < Viriix> channels sure
17:28 < ww> callbacks are what other languages do because they don't have
channels :P
17:28 < aiju> exactly
17:28 < Viriix> but does go-http support that?
17:28 < Viriix> which is all that matters
17:28 < aiju> just roll your own, i mean what's the point of writing a HTTP
server if you just plumb things together
17:28 < taruti> Viriix: write your go-http-the-better-way
17:28 < Viriix> i also don't want to write an http parser
17:29 < Viriix> as thats not the end goal of the project
17:29 < aiju> but?
17:29 < aiju> i mean what else is there left?
17:30 < Viriix> :) route negotiation, route specific middleware, global
request middleware
17:30 < Viriix> all kinds of fun stuff
17:30 < Viriix> streaming filters
17:30 < Viriix> http parsing is just where the fun begins
17:30 < aiju> route negotiation ...  have i missed something about HTTP?
17:31 < Viriix> you're thinking to concrete in terms of HTTP
17:31 < Viriix> as a protocol that is
17:31 < aiju> route negotation doesn't have hits on Google ;P
17:31 < aiju> (hits related to http and not to airplanes, that is)
17:32 < Viriix> the same way varnishd or nginx route requests
17:32 < Viriix> the same way web frameworks route requests
17:33 < aiju> ah that's fanciish for "starting a script"?
17:33 < Viriix> the act of routing a request to an action, a resource and or
a set of filters
17:33 < Viriix> not really
17:33 < Viriix> because the end route may be just to a file
17:33 < aiju> "answering the request"
17:34 < Viriix> yeah, which is where the rest of the web server ends :)
17:34 < Viriix> the rest is the magic in between
17:34 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has joined
17:34 < Viriix> and thats the fun stuff
17:34 < Viriix> https://github.com/ry/http-parser << i would use Go if
they had a parser like that
17:35 < Viriix> but they don't, so i'm sad :(
17:35 < ww> hang on, i misread....
17:35 < aiju> "Update copyright headers"
17:35 < ww> i could see you wanting to do html/xml parsing in a streaming
17:35 < aiju> WOWWWWW THAT CODE
17:36 < ww> but with http, other than making a goroutine for a new
17:36 < aiju> macros
17:36 < ww> why would you bother?
17:36 < aiju> ww: because web browsers nowadays send 4 GB requests
17:36 < Viriix> pinching bytes
17:36 < ww> aiju: payload....
17:36 < ww> not 4gb of headers
17:36 < aiju> ww: that was the joke man
17:37 < Viriix> the server will only store whats needed based on the deps
specified by the negotiated route
17:37 < Viriix> just something no ones done before and i want to try it out
for shits and gigs
17:38 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has joined #go-nuts
17:41 -!- aho [~nya@fuld-590c77f6.pool.mediaWays.net] has joined #go-nuts
17:42 -!- manveru [~manveru@b08s28ur.corenetworks.net] has quit [Quit: ZNC -
17:43 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts
17:44 -!- manveru [~manveru@b08s28ur.corenetworks.net] has joined #go-nuts
17:48 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has quit [Read
error: Operation timed out]
17:53 -!- sjbrown [~sjbrown@c-98-210-195-242.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
17:55 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 250 seconds]
17:56 -!- iant [~iant@] has joined #go-nuts
17:56 -!- mode/#go-nuts [+v iant] by ChanServ
18:10 -!- crodjer [~rohanjain@] has quit [Remote host closed the
18:11 -!- crodjer [~rohanjain@] has joined #go-nuts
18:12 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has joined
18:20 -!- groves [~groves@] has quit [Quit: groves]
18:20 -!- crodjer [~rohanjain@] has quit [Quit: Leaving]
18:22 < uriel> for those asking if there are companies looking for Go
18:23 < uriel> http://news.ycombinator.com/item?id=2396375
18:23 < skelterjohn> finland :\
18:24 < exch> bit out of my way unfortunately
18:24 < delinka> helluva commute from here, too
18:25 <+iant> lots of programmers in Finland looking for work soon, I think,
as Nokia shrinks
18:25 < taruti> yes :(
18:26 < exch> what the hell were they thinking when they signed up with MS?
18:26 * ww looks out over the north sea and thinks he can see finland...  damn,
sweden's in the way
18:26 <+iant> exch: they were thinking that MS would give them a billion
18:27 < exch> I'd love to smoke some of what they were having then :p
18:27 <+iant> No, I'm serious, MS is paying them a billion dollars
18:27 < skelterjohn> heh
18:27 <+iant> it makes the deal hard to turn down
18:27 < exch> mm I should phone MS
18:29 -!- krutcha1 [~krutcha@S010600045a27676a.vs.shawcable.net] has joined
18:29 < ww> iirc they went on an acquisition spree a couple of years ago
18:29 < ww> and then proceeded to bore to death all of the good people that
they acquired
18:30 < aiju> there are no good phones anyway
18:30 < aiju> so nothing's lost
18:31 < plexdev> http://is.gd/mBsAA0 by [Rob Pike] in go/src/pkg/fmt/ --
fmt: tweak the doc for %U.
18:32 < ww> i've had the misfortune of writing management software for some
of their network equipment (HLR, BTS, etc).
18:32 < ww> dark ages stuff...  protocols documented with images of tables
pasted into word documents
18:32 * ww shudders
18:33 < ww> but they also acquired some interesting outfits like metacarta
18:34 -!- karpar [~karpar@] has quit [Quit: Bye!]
18:35 -!- sjbrown [~sjbrown@adsl-99-189-162-6.dsl.pltn13.sbcglobal.net] has joined
18:39 < ww> iant: awful lot of scaffolding supporting your
18:39 <+iant> ww: sure, but that is all in some package that you import
18:40 < ww> much of which needs to be duplicated for each element type (with
opening the g- discussion again)
18:41 <+iant> yes, generics is a separate issue, but then thinks like "range
10" are pretty much only going to be used for integral types anyhow
18:41 <+iant> s/thinks/things/
18:42 < ww> really?  i almost never use them on integral types in python
18:42 < uriel> adg, iant: any chance of a "Fireside Chat with the Go team"
at Google I/O?  It would be way more interesting than a talk on writting web apps
in Go
18:42 <+iant> you write "range 10" for a string type?  what does that mean?
18:42 <+iant> uriel: I think there will be Go office hours at I/O, but then
that will only be useful for people who actually attend
18:43 <+iant> I think for I/O a talk will be more appropriate, most
attendees will not be Go users
18:43 < ww> one common case for me is to have a set of things (in my work,
rdf statements)
18:43 < ww> and i use a comprehension to extract a subset (which means add
the members of a subset to a new set container (graph))
18:44 <+iant> sure, but then you aren't using "range 10", right?  you're
using a filter
18:44 <+iant> yes, that requires generics in the general case
18:44 < uriel> iant: precusely, because most attendees wont be Go users the
office hours wont be too useful to all the Gophers that wont go to I/O (because
really there isn't much incentive for us to join)
18:44 < ww> so [g1.add(s) for s in g0.filter(...)]
18:45 <+iant> uriel: I think a fireside chat is a good idea, I just don't
think Google I/O is the right venue
18:45 < ww> it's so common that it's very nice to have a one-liner for it
18:45 <+iant> ww: I could give you that one-liner with generics, I think
18:47 * ww time to give the toddler a bath
18:48 < plexdev> http://is.gd/aeM188 by [Joe Poirier] in go/src/ --
rc/env.bash: fix for Go tool-chain build on windows under msys.
18:49 < uriel> iant: well, I don't care much about the venue as long as it
happens and it gets recorded and published ;)
18:50 < uriel> i have been busy with other things and not paying proper
attention, but are there Bay area Gophers meetings?
18:50 < aiju> wtfi fireside chat?
18:50 <+iant> No, at least not that I'm aware of
18:50 <+iant> adg is better at setting up things like that, but he is in
18:51 < uriel> really, the main reason I suggested Google I/O is that I'd
expect most of the Go team to already be around, I'm not sure what other
opportunities there are for such a thing
18:51 <+iant> send adg an e-mail
18:51 <+iant> most of the Go team will in CA for a week or two around I/O, I
18:55 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has joined #go-nuts
18:57 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
19:01 < jsz> oh, we need an "in" operator ...  if x in myslice { } or
something like that
19:03 < cbeck> That sounds like a job for a function.
19:04 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has quit [Quit:
WeeChat 0.3.2]
19:04 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping
timeout: 258 seconds]
19:06 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
19:06 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: Quit]
19:08 -!- AndyP_ [~andyp@baud.org.uk] has quit [Read error: Operation timed out]
19:08 < TheMue> So, just finished my next Go article.  Hope it will be
printed soon.
19:08 -!- AndyP [~andyp@ubuntu/member/andyp] has joined #go-nuts
19:10 < uriel> TheMue: cool, where will it be published?
19:11 < TheMue> uriel: The German iX magazine.  I've already had one about
Go there early in 2010.  And last year I mostly wrote my book.  Now the next
articles, about Go idioms.
19:12 < uriel> ah, very cool
19:13 < uriel> any chance that a translated version could make its way
19:14 < TheMue> Sadly not, as I sell the rights to the publisher.
19:15 < TheMue> I've tried to put Go patterns on my site www.tideland.biz
since a longer time.
19:15 < jsz> meh, heise verlag sucks
19:15 < TheMue> But as you may know, starting is easy, but continuing ...
19:15 < aiju> jesus christ publishers are retarded
19:16 < TheMue> jsz: Can't say so, I'm working together with them since 1999
in a very good and fair way.
19:16 < jsz> mmh, maybe I had just bad luck :]
19:17 -!- wrtp [~rog@] has joined #go-nuts
19:18 < TheMue> jsz: Also wanted to write about Go?
19:19 < TheMue> jsz: Or a different topic.
19:19 < TheMue> ?
19:20 < phoeton> Often times illegally translated versions of articles make
their way onto the internet.  Sadly, kammer da nix machen.
19:20 < phoeton> Or zumindest not viel.
19:21 < aiju> well, it's a good thing if they do make it
19:21 < exch> Knowledge wants to be free!
19:21 < phoeton> Well, rights want to be observed, too.
19:21 < aiju> poublishers like that are outright idiotic
19:21 < aiju> -o
19:21 < TheMue> I'll try to publish more stuff at The Gopher Times.
19:21 < phoeton> you can't sell an article to someone if you're going to
make it public domain anyway
19:22 < phoeton> that's not stupid, that's just surviving!
19:22 < phoeton> (afk)
19:22 < aiju> no, it's idiotic
19:23 < aiju> surprise, people buy books which are in public domain
19:23 < TheMue> exch aiju: As long as people pay for it it's a business
model.  And I as an author get money for it that allows me to spend time
developing OSS in Go. Quite simple.
19:24 -!- phoeton [~phoeton@p579BDF86.dip.t-dialin.net] has quit [Quit: phoeton]
19:25 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
19:27 < exch> by 'free' I don't mean 'free beer'.  I mean that it should be
available to anyone, anywhere.  Unbiased and without imposed restrictions on its
19:27 < exch> s/unbiased/uncensored/
19:28 < exch> Whether it requires payment or not is another matter entirely.
In an ideal world, it would also be free as in 'free beer', but we don't live in
an ideal world.  Bills need to be paid.
19:28 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has quit [Remote host
closed the connection]
19:30 < uriel> TheMue: a business model based on government enforced
monopolies that infringe on everyone else's basic freedoms is not a very good
busines smodel
19:30 < uriel> anyway, this is all offtopic
19:30 < aiju> IRC is always offtopic, by definition
19:31 -!- fmoo [~Adium@] has joined #go-nuts
19:31 < TheMue> exch: I like to publish, as source, on my site/blogs, in
printed articles and in my book (still one).  So I find my way.
19:33 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 250 seconds]
19:46 < jsz> TheMue: different topic some years ago
19:47 < TheMue> OK. I had luck as they looked for someone writing about Java
1.2 then.  And now a friend of mine started writing about gaming.
19:48 < aiju> did you just fill pages with "it sucks.  horribly." or what
else can one write about Java?
19:49 < uriel> aiju: haha
19:50 < TheMue> Facts, no opinion.
19:50 < aiju> did i imply anything else?
19:51 < TheMue> Which answer do you expect?  ;)
19:53 -!- sjbrown [~sjbrown@adsl-99-189-162-6.dsl.pltn13.sbcglobal.net] has quit
[Quit: Leaving]
19:53 -!- wchicken [~chicken@c-24-7-112-207.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
19:57 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has quit [Quit:
20:01 -!- AndyP [~andyp@ubuntu/member/andyp] has quit [Ping timeout: 250 seconds]
20:06 -!- crazy2be [~crazy2be@S01060012171a573b.cg.shawcable.net] has quit [Ping
timeout: 258 seconds]
20:08 -!- AndyP [~andyp@ubuntu/member/andyp] has joined #go-nuts
20:15 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:2d7f:5d2d:97fd:a5f9] has quit
[Quit: Leaving.]
20:21 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
20:22 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has quit [Read
error: Operation timed out]
20:24 < Archwyrm> Anyone have any insight on how I could collapse these
functions down into one?  http://pastie.org/1826401
20:25 < Archwyrm> Note that the function bodies are the same but the type of
the channel forces me to have several functions with different signatures.
20:28 -!- damikin11 [~damikin11@cpe-24-30-179-173.socal.res.rr.com] has joined
20:34 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has joined
20:41 -!- rutkowski [~adrian@078088213084.walbrzych.vectranet.pl] has joined
20:51 -!- virtualsue [~chatzilla@host81-139-80-186.in-addr.btopenworld.com] has
quit [Read error: Connection reset by peer]
20:52 -!- virtualsue [~chatzilla@nat/cisco/x-gttiinhwihtukrqc] has joined #go-nuts
20:53 -!- rutkowski [~adrian@078088213084.walbrzych.vectranet.pl] has quit [Quit:
WeeChat 0.3.3-dev]
20:58 < TheMue> Just added map functions to execution time measuring and
stay-set variables of my CGL monitoring.
20:59 < TheMue> Now more improvements on my Redis client and then my project
can start.
20:59 < jessta_> Archwyrm: why are you using goto instead of a for{}?
21:01 -!- femtooo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts
21:03 < Archwyrm> lol, everyone who sees this immediately comments on the
21:03 < Archwyrm> It saves me one line and one level of indentation.  ;)
21:03 < Archwyrm> jessta_
21:03 < aiju> clearly all code should be reduced to the minimum level of
21:04 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Ping
timeout: 250 seconds]
21:05 < Archwyrm> Eh, it's so little code, I don't think anyone would find
it hard to follow.
21:07 < jessta_> it's just really surprising
21:08 -!- photron_ [~photron@port-92-201-42-236.dynamic.qsc.de] has quit [Ping
timeout: 276 seconds]
21:09 < Archwyrm> Hmm, actually it's the same number of lines.  Whatever.
It's not the issue that I'm having.  :/
21:09 < Archwyrm> I think it evolved from something with a different
structure anyway.
21:11 -!- TheMue [~TheMue@p5DDF79EB.dip.t-dialin.net] has quit [Quit: TheMue]
21:12 < jessta_> Archwyrm: if you want to keep the specific types then you
need a function per type
21:13 < Archwyrm> jessta_: Yeah, that's all I have been able to come up with
so far.  So, I may just use chan interface{} in a few places.
21:13 < Archwyrm> Because I'm about to add my fourth function like this with
no end in sight.  :/
21:14 -!- phoeton [~phoeton@p579BDF86.dip.t-dialin.net] has joined #go-nuts
21:15 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has joined #go-nuts
21:24 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has joined #go-nuts
21:26 -!- a2800276 [~a2800276@xdsl-213-168-108-229.netcologne.de] has joined
21:28 -!- Fish- [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Quit: So
Long, and Thanks for All the Fish]
21:31 -!- femtooo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Quit:
22:04 -!- wchicken [~chicken@adsl-71-146-80-35.dsl.pltn13.sbcglobal.net] has
joined #go-nuts
22:07 -!- boscop_ [~boscop@g227008189.adsl.alicedsl.de] has joined #go-nuts
22:09 -!- d_m [~d_m@] has quit [Ping timeout: 260 seconds]
22:10 -!- boscop [~boscop@g226237166.adsl.alicedsl.de] has quit [Ping timeout: 250
22:10 -!- d_m [~d_m@] has joined #go-nuts
22:12 -!- rlab [~Miranda@] has joined #go-nuts
22:14 -!- boscop_ [~boscop@g227008189.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
22:15 -!- boscop_ [~boscop@g225204031.adsl.alicedsl.de] has joined #go-nuts
22:22 < ccallahan> How would I inject a variable into a http.Get URL?  Just
22:22 < ccallahan> ?
22:24 < exch> simplest way: http.Get("http://moo.com/" + myvar))
22:24 < boomtopper> Use fmt.Sprintf
22:24 < exch> slightly more elaborate way:
22:24 < exch> poo
22:24 < exch> http.Get(fmt.Sprintf("http://moo.com/%s", myvar))
22:25 < str1ngs> %s works thought it was %v ?
22:25 < exch> %s is for strings
22:26 < exch> %v/%+v/%#v is for anything really
22:26 < str1ngs> hmm %s does work why didnt I think it was on %v
22:31 -!- Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has joined #go-nuts
22:31 -!- virtualsue [~chatzilla@nat/cisco/x-gttiinhwihtukrqc] has quit [Ping
timeout: 252 seconds]
22:37 -!- coud [~coud@] has quit [Ping timeout: 240 seconds]
22:45 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has quit [Quit:
22:57 -!- rlab [~Miranda@] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
23:06 -!- Innominate [~sirrobin@cpe-076-182-074-143.nc.res.rr.com] has quit [Read
error: Operation timed out]
23:07 -!- Innominate [~sirrobin@cpe-076-182-074-143.nc.res.rr.com] has joined
23:12 -!- wchicken [~chicken@adsl-71-146-80-35.dsl.pltn13.sbcglobal.net] has quit
[Quit: leaving]
23:17 -!- napsy [~luka@] has quit [Ping timeout: 240 seconds]
23:35 -!- fmoo [~Adium@] has quit [Quit: Leaving.]
23:52 -!- m4dh4tt3r [~Adium@c-69-181-217-82.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
23:58 -!- shvntr [~shvntr@] has joined #go-nuts
--- Log closed Sun Apr 24 00:00:04 2011