--- Log opened Wed Aug 24 00:00:09 2011
--- Day changed Wed Aug 24 2011
00:00 -!- avelino [~avelino@unaffiliated/avelino] has quit [Remote host closed the
connection]
00:01 < knowmercy> I'll pick up where you left off
00:01 -!- Ginto8 [~ginto8@pool-173-72-98-105.cmdnnj.fios.verizon.net] has joined
#go-nuts
00:01 < skelterjohn> he hath been resummoned
00:01 < knowmercy> hiya skelterjohn
00:01 < Ginto8> he shoved a bottled fairy in my face
00:02 < skelterjohn> Ginto8: i did some dev with windows+go this summer, and
I found that from within mingw, go builds and works fine
00:02 < Ginto8> I got 8 hearts, whether I wanted them or not
00:02 < skelterjohn> though i did have some trouble with opengl
00:02 < Ginto8> cgo still being slow?
00:03 < Ginto8> or was it just the windows build?  :P
00:03 < skelterjohn> i wasn't aware of cgo being slow in windows - maybe
someone else can say something more about that
00:03 < skelterjohn> it's not appreciably slow in general, if i read you
right.  it's a few function calls
00:04 < Ginto8> ok cool
00:04 < Ginto8> I'm considering doing some go stuff, not entirely sure if
I'll go through with it :P
00:04 < skelterjohn> what kind of project?
00:05 < Ginto8> a cross-platform windowing and graphics library
00:05 < skelterjohn> well, that'd certainly be nice
00:05 < skelterjohn> using an existing library that would be wrapped?  or
from scratch?
00:06 < Ginto8> using OpenGL for rendering; XLib for X11, winAPI for
windows, and DevIL for image loading
00:06 < Ginto8> btw, what's the status of generics?
00:07 < skelterjohn> no generics
00:07 < Ginto8> I would very much like having those available :P
00:07 < Ginto8> aww
00:07 < skelterjohn> any reason in particular?
00:07 < Ginto8> oh well I can deal
00:07 < Ginto8> generic container types?
00:07 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza]
00:07 < Ginto8> ie.  Vector but without interface{}
00:08 < skelterjohn> we have vectors - they're called slices
00:08 < Ginto8> yup, but some easy wrapping for generic operations would be
nice
00:08 < Ginto8> I've done some go programming before
00:08 < Ginto8> it was crappy, but I still did it
00:08 < skelterjohn> i agree, to an extent - some generic container classes
would be nice
00:09 < qeed> i thought the container/ stuff has been holded up because of
the decision with generics, if the decision has been decided why dont people have
trees, i heard it be slow with interface conversions but i just want c style void
pointers
00:09 < skelterjohn> interface conversions are not slow
00:09 < skelterjohn> it's a pointer comparison
00:09 < skelterjohn> that's all
00:09 < Ginto8> qeed, interface conversions should not be slower than C++
pointer casting, which isn't noticeably slow at all
00:10 < qeed> so whats the hold up with not having more containers
00:10 < skelterjohn> there are some...
00:10 < skelterjohn> gohash.googlecode.com for one (i wrote that)
00:10 < skelterjohn> it uses someone's LLRB tree package
00:10 < skelterjohn> the url escapes me, for the moment
00:10 < Ginto8> skelterjohn, I remember a generic precompiler
00:10 < skelterjohn> gotgo
00:10 < Ginto8> gotta look that up
00:11 < skelterjohn> it was neat, but didn't catch on
00:11 < Ginto8> not around anymore?
00:11 < f2f> qeed, the most often used one, container vector, was removed
because append() took over that functionality.  in some sense you can say generics
have arrived in go, for some special things :)
00:11 < skelterjohn> i don't know
00:11 < kuroneko> iant: hola!  If I want to try to make a llvm frontend for
go, do you recommend pulling gccgo from the gcc repo, or from the googlecode
project?
00:11 < skelterjohn> f2f: container/vector is still there - it just is no
longer used anywhere else in the core libs
00:11 < qeed> i just want a btree or some sort of bst tree
00:11 <+iant> kuroneko: from the googlecode project
00:12 < kuroneko> [this is still pie in the sky stuff - I'm not really sure
I have enough compiler-fu to pull this off]
00:12 < f2f> skelterjohn: it was actively removed from the standard lib
00:12 < skelterjohn> by me
00:12 < f2f> i don't think it'll be there for long
00:12 < skelterjohn> and it was only the instances of it in the other
packages
00:12 < Ginto8> how's gccgo's goroutine performance nowadays?  still kinda
slow?
00:12 < skelterjohn> removing the actual container/vector is more invasive,
since it can break stuff elsewhere
00:13 < f2f> what stuff, where?
00:13 < skelterjohn> Ginto8: iant is the one to ask
00:13 < f2f> since when are goers into backward compatibility?  :)
00:13 < skelterjohn> f2f: i have no idea, but i assume it's in use out in
the wild somewhere
00:13 < skelterjohn> f2f: i think it will be junked at some point :) but not
by a CL from me
00:13 < f2f> uriel has made sure no container/vector is in the wild
00:13 < skelterjohn> that's a decision for the core guys
00:14 <+iant> Ginto8: yes, still kind of slow
00:14 <+iant> relative to 6g
00:14 < skelterjohn> qeed: github.com/petar/GoLLRB/llrb
00:14 < f2f> so, then, what's your argument?
00:14 < skelterjohn> qeed: what is a bst tree?
00:14 < f2f> or are you just point out minutiae?
00:14 -!- CoverSlide [~Richardh@66-113-67-35.rev.ibsinc.com] has quit [Quit:
Konnichiwa Bitches]
00:14 < skelterjohn> the latter
00:14 < qeed> just remove the "tree" part heh, a bst
00:15 < Ginto8> iant, I know 6g/8g are super fast about it, but how many
goroutines can it sustain at a reasonable speed?  and how's channel speed?
00:16 < f2f> i think the answer to qeed's question is "the hold up with more
containers is that append, copy, len and friends are half-assed solutions to the
generics problem, but they're enough to stop anybody from trying anything new in
there" :)
00:16 < skelterjohn> f2f: that's my feeling, too
00:16 < skelterjohn> i'd love to make gohash generic, for instance
00:16 <+iant> Ginto8: the number of goroutines gccgo can handle depends on
your pthread library; thousands should work on GNU/Linux
00:16 < skelterjohn> but i almost feel like it's more likely that built-in
map types will accept things with Hashcode() methods, first
00:16 <+iant> channels are pretty fast, just a mutex lock
00:17 < skelterjohn> and then gohash would be pretty useless
00:17 < f2f> well, i want some sort of generics in.  it'll help me, just
like 'append' helped when that made it in.  it removed a lot of duplicate code.
00:18 < knowmercy> speaking of performance I need/want to see how well go
runs on openbsd :)
00:19 < knowmercy> I'm not sure how to build a useless benchmark for it
though
00:19 -!- magn3ts [~magn3ts@colemickens.unl.edu] has quit [Ping timeout: 252
seconds]
00:19 -!- magn3ts [~magn3ts@colemickens.unl.edu] has joined #go-nuts
00:24 < knowmercy> apparently I sure know how to shut up a channel :)
00:24 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
00:24 < skelterjohn> got nothing to say about *bsd
00:24 < skelterjohn> i know nothing about it
00:24 < skelterjohn> except meta-comments
00:29 < knowmercy> well, openbsd has biglock enabled and generally performs
well enough...  but it's not like some ricer :)
00:30 < f2f> openbsd takes a performance penalty because it tries to be
secure
00:30 < prudhvi> How do you read for a reader if you do not know the size
before hand?
00:30 < f2f> there are a lot of checks in there for the purpose of avoiding
any sillyness
00:31 < f2f> that takes time :)
00:31 < knowmercy> yup
00:31 < jlaffaye> prudhvi: why do you need the size?
00:31 < knowmercy> f2f: but on the internet I don't mind a minimal trade off
00:31 < prudhvi> jlaffaye: to write it to a buffer?
00:32 < f2f> go by itself should run fast, but its interactions with the
rest of the system may slow it down
00:32 < knowmercy> f2f: that's what I aim to find out
00:32 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 264 seconds]
00:32 < jlaffaye> prudhvi: you append to your buffer whil there is data
00:32 < f2f> the last time i ran obsd it felt great not to have any util
crash.
00:33 < f2f> and the system is always faster than the device in front of the
keyboard
00:33 < f2f> :)
00:33 < knowmercy> how long ago was that?
00:34 < f2f> back when some linux utils still crashed :)
00:34 < f2f> 2003-4
00:35 < knowmercy> it's really come a long way
00:35 < prudhvi> jlaffaye: im confused, if i have a http response and i'd
want to read the response when content length is set to -1 because it is chunked
00:35 < knowmercy> there are some really neat things now
00:35 < f2f> i'm in calgary, so a lot of obsd users here.  one colleague and
friend did work for theo, he runs obsd everywhere
00:35 < knowmercy> yup
00:35 < f2f> i'm not unfamiliar with it :)
00:35 < knowmercy> I left it for a couple years and now I'm back
00:37 < prudhvi> jlaffaye: never mind i found an utility function in
io/ioutil
00:38 < f2f> i've had beers with theo on a few occasions.  he feels sorry
for me because i'm a plan9 afficionado :) an even slower OS to behold ;)
00:38 < knowmercy> lol
00:39 < knowmercy> he's a really cool guy isn't he
00:39 -!- sunfmin [~sunfmin@115.199.194.138] has joined #go-nuts
00:40 < f2f> well, he has his quirks, but he's very entertaining to listen
to.
00:40 < knowmercy> I'm happy to see some solid work on rthreads
00:42 < Ginto8> skelterjohn, how's gc performance?
00:42 < skelterjohn> never bothers me
00:42 < Ginto8> ok good
00:42 < skelterjohn> *shrug* glad you think so highly of my opinion O:-)
00:42 < Ginto8> makin' sure it won't bottleneck me :P
00:43 < Ginto8> skelterjohn, well you tend to know what you're talking about
:P
00:43 < skelterjohn> or i come across as really confident
00:43 < skelterjohn> it's hard to be sure which is the case
00:43 < Ginto8> I don't remember being led astray by your advice last time
00:44 < Ginto8> just my own idiocy
00:44 < skelterjohn> but also, my applications don't have real-time
dependencies
00:44 < skelterjohn> so the gc grabbing the world lock for a bit here and
there doesn't bother me
00:45 < Ginto8> have you used opengl yourself?
00:45 < Ginto8> in go
00:45 < skelterjohn> yes
00:45 < Ginto8> which binding?
00:46 < Ginto8> wait, stupid question
00:46 < skelterjohn> i recommend https://github.com/jteeuwen/glfw +
https://github.com/banthar/Go-opengl
00:46 < skelterjohn> though i think glfw only allows a single window, which
might not work for you
00:46 < skelterjohn> could be wrong - ask exch
00:47 < Ginto8> well I'm going for the direct access, so a windowing library
isn't exactly what I'm going for :P
00:47 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Quit:
Textual IRC Client: http://www.textualapp.com/]
00:48 < skelterjohn> i suppose everyone is entitled to reinvent the wheel
from time to time =p
00:48 < Ginto8> learning experience
00:48 < Ginto8> :D
00:50 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
00:51 -!- fvbommel [~fvbommel_@86.86.15.250] has quit [Ping timeout: 250 seconds]
00:51 -!- c00w [~colin@c-67-183-138-2.hsd1.wa.comcast.net] has quit [Quit:
Ex-Chat]
00:52 < knowmercy> that's how we get wheels better suited for different
tasks, like cars, versus trucks and bikes, etc :)
00:54 -!- icey [u2593@gateway/web/irccloud.com/x-ldvraznspuribrts] has left
#go-nuts []
00:55 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has quit [Read
error: Connection reset by peer]
00:57 < f2f> speaking of generics, i would be happy if the "ok, err"
patterns was augmented to allow nested function calls with the provision that any
errors are carried up to the outernmost function that returns an err
00:57 < f2f> during the static type checking all functions in the nest are
assumed to return , err
00:58 < f2f> however if they don't in reality, then it shouldn't matter
(this part is just for typechecking)
00:58 < f2f> i would also be happy if someone told me why this is a bad
idea.
01:00 -!- miker2 [~miker2@pool-96-245-224-59.phlapa.fios.verizon.net] has joined
#go-nuts
01:01 < skelterjohn> seems complicated
01:02 < knowmercy> so are women but we like them!
01:02 < knowmercy> sorry, been a rough day at the office :)
01:02 < Ginto8> knowmercy, we don't put women in our programs
01:02 < knowmercy> there are many reasons for that
01:02 < skelterjohn> programs go in the woman, not the other way around
01:02 -!- iant [~iant@67.218.106.149] has quit [Quit: Leaving.]
01:02 < f2f> yes, i agree it's complicated
01:03 -!- fvbommel [~fvbommel_@86.86.15.250] has joined #go-nuts
01:03 < f2f> not something that can easily be explained in a paragraph, and
i don't know about side-effects
01:03 < Ginto8> well remind me of one thing
01:03 < f2f> but i do like the concept of "we'll carry the last 'err' until
it's needed"
01:03 < Ginto8> is there an Error type for the 'err' return?
01:04 < f2f> os.Error
01:04 < f2f> it's an interface
01:04 < Ginto8> ah then my issue is moot
01:04 < skelterjohn> type Error { String() string }
01:04 < skelterjohn> i think
01:04 < skelterjohn> in the os package
01:04 < skelterjohn> it's used everywhere
01:04 < skelterjohn> err, stick an "interface" in there
01:05 < f2f> hence the silent typecheck ensuring that even you don't change
the error type even if the functions surrounding you don't carry it.
01:05 < f2f> s/that even/that/
01:08 < knowmercy> bah, isn't xsl dead yet?
01:08 < knowmercy> for templating
01:13 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has quit [Quit: ERC Version 5.3
(IRC client for Emacs)]
01:14 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has joined #go-nuts
01:21 -!- miker2 [~miker2@pool-96-245-224-59.phlapa.fios.verizon.net] has quit
[Quit: Textual IRC Client: http://www.textualapp.com/]
01:31 < xash> Do I need to close a chan to get it detected by the garbage
collecter?
01:33 < Namegduf> No.
01:33 < xash> Thanks!
01:34 < Namegduf> Closing a channel is entirely optional, and serves as a
way for a single sender to tell receivers that nothing more will be sent.
01:34 < Namegduf> If you don't need to send such a message, then you don't
need to do it.
01:34 < Namegduf> It doesn't clean anything up or such.
01:37 -!- moraes [~moraes@189.103.177.124] has quit [Quit: Leaving]
01:38 -!- i__ [~none@69.164.206.224] has quit [Changing host]
01:38 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts
01:49 -!- fvbommel [~fvbommel_@86.86.15.250] has quit [Ping timeout: 245 seconds]
01:56 < knowmercy> hah, I couldn't figure out why my gowiki wouldn't run on
my openbsd box and it's because it's listening on the ipv6 address!
02:02 -!- hargettp [~hargettp@pool-71-174-142-225.bstnma.east.verizon.net] has
joined #go-nuts
02:06 -!- qeed [~qeed@adsl-98-85-45-106.mco.bellsouth.net] has quit [Quit:
Leaving]
02:18 -!- ccc [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has quit [Quit:
leaving]
02:21 -!- sunfmin [~sunfmin@115.199.194.138] has quit [Quit: sunfmin]
02:23 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
02:24 < knowmercy> http://pastebin.com/HMwxtdis My bench just kinda hangs
right here...
02:24 < knowmercy> what am I missing?
02:25 -!- niemeyer [~niemeyer@200-102-220-163.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
02:27 < str1ngs> knowmercy: iirc ListenAndServe blocks
02:27 < knowmercy> oh
02:28 < str1ngs> also you might check out httptest.NewServer
02:31 < knowmercy> interesting
02:33 -!- xash [~xash@d026184.adsl.hansenet.de] has quit [Quit: Lost terminal]
02:46 < knowmercy> I'm lost
02:47 < knowmercy> url := &http.URL{ ...  } The compiler is saying
"undefined: http.URL"
02:47 < knowmercy> I've got http in my import
02:51 < str1ngs> url has its own package now.
02:59 -!- hargettp [~hargettp@pool-71-174-142-225.bstnma.east.verizon.net] has
quit [Quit: Linkinus - http://linkinus.com]
03:02 < knowmercy> aha
03:05 -!- justicefries [u2891@gateway/web/irccloud.com/x-jffbgrxwhmkermay] has
joined #go-nuts
03:06 -!- benjack [~benjack@bb116-15-174-30.singnet.com.sg] has joined #go-nuts
03:17 -!- aho [~nya@fuld-590c7636.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
03:29 < mkb218> if gdb segfaults when reading a golang executable, who gets
the bug report?
03:47 < skelterjohn> is this one of those "tree falls in the woods when no
one is listening" questions?
03:49 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
04:04 < mkb218> i presume somebody else cares besides me.  after all,
somebody wrote the darn thing
04:05 -!- crazy2be [~crazy2be@S01060012171a573b.cg.shawcable.net] has joined
#go-nuts
04:06 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
04:06 -!- mode/#go-nuts [+v iant] by ChanServ
04:07 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
04:12 < odoacre> hi, is the draw package meant to be usable ?
04:13 < odoacre> image/draw i mean
04:15 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has quit [Remote
host closed the connection]
04:15 < crazy2be> I beleive it was used for the gopher demo
04:15 < crazy2be> so probably
04:15 < crazy2be> I've not used it personally
04:17 < odoacre> it has only 2 exoported functions
04:18 < crazy2be> heh
04:19 < jessta> odoacre: image/draw is usable, but it's fairly low level
04:19 < jessta> there are other higher level third pparty packages
04:19 < crazy2be> night
04:19 < odoacre> i see, so what do you guys recommend for generating images
?
04:22 < jessta> odoacre: you could try http://code.google.com/p/draw2d/
04:23 < jessta> and there are a few others at
http://godashboard.appspot.com/project
04:24 -!- crazy2be [~crazy2be@S01060012171a573b.cg.shawcable.net] has quit [Ping
timeout: 264 seconds]
04:25 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
04:38 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
04:42 < tdnrad_> I'd like to have a map that has 5 values (5-tuple) as its
key..  Is there any relatively clean way I can achieve this?
04:47 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Quit:
Computer has gone to sleep.]
04:53 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:f5ee:48ea:5dc1:530] has joined
#go-nuts
04:55 < Husio> eh, it's impossible to use any library because of the way
that go's standard library is changing.  It's my third try to use go-xmpp and
always the code is not valid because of the missing imports.
04:56 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
04:57 < Husio> I was wondering..  is it only me or it is a known issue?
04:58 < tdnrad> Husio: have you looked into using gofix?
04:58 < jessta> tdnrad: using the standard map, you'd have to hash the tuple
04:59 < tdnrad> jessta: I suppose that is the cleanest way, eh?
04:59 -!- fvbommel [~fvbommel_@86.86.15.250] has joined #go-nuts
05:00 < Husio> tdnrad: no, but I guess I have to
05:00 < tdnrad> Husio: It might be useful :)
05:01 < jessta> Husio: yeah, it's a bit annoying.  If a package doesn't
compile with the latest release then submit a fix to the dev
05:01 < jessta> *bug
05:01 < jessta> or a fix
05:01 < jessta> or, you can use an older release of Go that works with the
package you want to use
05:02 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
05:03 < Husio> jessta: but it's like never ending patch submitting for a
code that was correct few days ago
05:07 -!- shoenig_ [~shoenig@rrcs-71-42-216-104.sw.biz.rr.com] has joined #go-nuts
05:08 < jessta> Husio: releases are usually monthly
05:08 < jessta> third party package developers should try to stick to the
monthly releaes
05:09 < jessta> and you can always use the older release until the package
is updated
05:10 -!- shoenig [~shoenig@rrcs-71-42-216-106.sw.biz.rr.com] has quit [Ping
timeout: 240 seconds]
05:17 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
05:26 -!- Bigbear1 [~Cody@S010600222dcddd0f.cg.shawcable.net] has joined #go-nuts
05:37 -!- magn3ts [~magn3ts@colemickens.unl.edu] has quit [Quit: Leaving]
05:46 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
05:47 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:f5ee:48ea:5dc1:530] has left
#go-nuts []
06:00 -!- remy_o [~babar@archlinux/developer/remy-o] has joined #go-nuts
06:04 -!- moraes [~moraes@189.103.177.124] has joined #go-nuts
06:05 -!- resonator127001 [~resonator@c-71-228-213-38.hsd1.tn.comcast.net] has
joined #go-nuts
06:08 < resonator127001> does anyone know if Go will be made available to
Plan 9?
06:09 < jessta> resonator127001: there is a port in progress
06:10 < resonator127001> awesome!  can you point me to any docs or
discussions so that I might follow the progress?
06:13 < jessta> the golang-dev mailinglist gets all the change lists
06:14 < f2f> go can compile simple binaries for plan9 on a different
platform (say, linux)
06:14 < f2f> the port that's ongoing is native, so that you can use native
compilers on plan9 to compile your code
06:15 < f2f> there's also a port of an older version of the go runtime that
works on plan9.  i can find you the link.
06:16 < resonator127001> yeah, if it's handy I would appreciate the link.
06:19 < f2f> https://bitbucket.org/taruti/go.plan9
06:20 < resonator127001> sweet, thanks!  glad to see others are interested
in this.
06:21 < f2f> it's been actively worked on.  join #cat-v to meet some of the
people who are doing it.
06:21 < f2f> although i think they might be sleeping now :)
06:21 < resonator127001> sleep is for the weak
06:22 < f2f> :)
06:23 -!- prip [~foo@host36-124-dynamic.11-87-r.retail.telecomitalia.it] has quit
[Ping timeout: 246 seconds]
06:35 -!- vmil86 [~vmil86@78.57.250.113] has joined #go-nuts
06:36 -!- prip [~foo@host36-124-dynamic.11-87-r.retail.telecomitalia.it] has
joined #go-nuts
06:36 -!- foxen [~foxen@212.12.18.237] has joined #go-nuts
06:37 -!- foxen [~foxen@212.12.18.237] has left #go-nuts []
06:41 < jessta> sleep is for the week.
06:43 -!- yogib [~yogib@dslb-188-100-007-079.pools.arcor-ip.net] has joined
#go-nuts
06:56 -!- yogib [~yogib@dslb-188-100-007-079.pools.arcor-ip.net] has quit [Quit:
yogib]
06:57 -!- remy_o [~babar@archlinux/developer/remy-o] has quit [Ping timeout: 240
seconds]
07:00 -!- Bigbear1 [~Cody@S010600222dcddd0f.cg.shawcable.net] has quit [Read
error: Connection reset by peer]
07:09 -!- photron [~photron@port-92-201-5-144.dynamic.qsc.de] has joined #go-nuts
07:12 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has joined
#go-nuts
07:14 -!- yogib [~yogib@131.234.59.64] has joined #go-nuts
07:26 -!- vmil86 [~vmil86@78.57.250.113] has quit [Ping timeout: 268 seconds]
07:29 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
07:32 -!- napsy [~luka@193.2.66.6] has joined #go-nuts
07:33 -!- resonator127001 [~resonator@c-71-228-213-38.hsd1.tn.comcast.net] has
quit [Quit: Leaving]
07:34 -!- erus` [~chatzilla@mailgate.ips-international.com] has joined #go-nuts
07:37 -!- zcram [~zcram@8.177.190.90.sta.estpak.ee] has quit [Quit: Leaving]
07:40 -!- vmil86 [~vmil86@78.57.250.113] has joined #go-nuts
07:43 -!- samuell [~samuel@pc2-samuel.uppmax.uu.se] has joined #go-nuts
07:52 -!- meling [~meling@85.252.66.250] has quit [Read error: Connection reset by
peer]
07:53 -!- meling [~meling@85.252.66.250] has joined #go-nuts
07:59 -!- TimKack [~tkack@213.208.236.186] has joined #go-nuts
08:00 -!- tvw [~tv@e176001177.adsl.alicedsl.de] has joined #go-nuts
08:02 -!- ccc1 [~Adium@140.109.98.187] has quit [Quit: Leaving.]
08:06 -!- ccc1 [~Adium@140.109.103.153] has joined #go-nuts
08:07 -!- alanl [~yogafire@c-71-204-189-190.hsd1.ca.comcast.net] has quit [Ping
timeout: 252 seconds]
08:11 -!- yogib [~yogib@131.234.59.64] has quit [Ping timeout: 276 seconds]
08:23 -!- alanl [~yogafire@c-71-204-189-190.hsd1.ca.comcast.net] has joined
#go-nuts
08:24 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:49 -!- MX80 [~MX80@cust151.253.117.74.dsl.g3telecom.net] has quit [Ping
timeout: 240 seconds]
08:52 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 245 seconds]
08:55 -!- Solak [~stijnw@cthia.xs4all.nl] has joined #go-nuts
08:56 -!- Project_2501 [~Marvin@82.84.95.161] has joined #go-nuts
09:06 -!- alanl [~yogafire@c-71-204-189-190.hsd1.ca.comcast.net] has quit [Ping
timeout: 258 seconds]
09:06 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts
09:07 < str1ngs> anyone have examples of a simple key/pair scanner?
09:07 < str1ngs> I need to create one for bash.  does not need to be fancy.
but I'm wondering what is the best approach
09:22 -!- ccc1 [~Adium@140.109.103.153] has quit [Quit: Leaving.]
09:23 -!- sahid_ [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
09:24 -!- sahid_ [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Client Quit]
09:24 < erus`> str1ngs: for config files or something?
09:25 < str1ngs> erus`: they are actually bash files but contain simple meta
fields
09:25 < str1ngs> ie name="foo"
09:26 -!- Project-2501 [~Marvin@82.84.95.161] has joined #go-nuts
09:28 -!- ccc1 [~Adium@140.109.103.153] has joined #go-nuts
09:28 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 245 seconds]
09:29 -!- alanl [~yogafire@c-71-204-189-190.hsd1.ca.comcast.net] has joined
#go-nuts
09:29 -!- Project_2501 [~Marvin@82.84.95.161] has quit [Ping timeout: 240 seconds]
09:36 -!- ccc12 [~Adium@140.109.98.187] has joined #go-nuts
09:36 -!- Crnobog [~crnobog@cpc3-nmal12-0-0-cust48.croy.cable.virginmedia.com] has
quit [Read error: Connection reset by peer]
09:37 -!- Crnobog [~crnobog@cpc3-nmal12-0-0-cust48.croy.cable.virginmedia.com] has
joined #go-nuts
09:37 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has joined #go-nuts
09:38 -!- ccc1 [~Adium@140.109.103.153] has quit [Ping timeout: 258 seconds]
09:39 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
09:42 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts
09:42 -!- benjack [~benjack@bb116-15-174-30.singnet.com.sg] has quit [Quit:
Leaving.]
09:58 -!- tvw [~tv@e176001177.adsl.alicedsl.de] has quit [Read error: Connection
reset by peer]
10:10 -!- TimKack [~tkack@213.208.236.186] has quit [Remote host closed the
connection]
10:10 -!- TimKack [~tkack@college.cvtc.edu] has joined #go-nuts
10:12 -!- TimKack_ [~tkack@213.208.236.186] has joined #go-nuts
10:13 -!- TimKack_ [~tkack@213.208.236.186] has quit [Remote host closed the
connection]
10:14 -!- TimKack_ [~tkack@college.cvtc.edu] has joined #go-nuts
10:15 -!- TimKack [~tkack@college.cvtc.edu] has quit [Ping timeout: 252 seconds]
10:18 -!- MX80 [~MX80@cust151.253.117.74.dsl.g3telecom.net] has joined #go-nuts
10:23 < mpl> is there a way to "trigger" the termination of a whole program
from a goroutine, without having having to bother to send anything through a chan?
10:24 < mpl> heh, os.Exit should do, silly me.
10:28 -!- benjack [~benjack@bb116-15-174-30.singnet.com.sg] has joined #go-nuts
10:30 -!- benjack [~benjack@bb116-15-174-30.singnet.com.sg] has quit [Client Quit]
10:31 -!- dustyw1 [~dustyw@c-98-247-248-194.hsd1.wa.comcast.net] has quit [Ping
timeout: 260 seconds]
10:41 -!- napsy [~luka@193.2.66.6] has quit [Ping timeout: 245 seconds]
10:43 < jessta> str1ngs: readline(); strings.Split(s,"=");
10:46 -!- dustyw [~dustyw@c-98-247-248-194.hsd1.wa.comcast.net] has joined
#go-nuts
10:47 < str1ngs> jessta: I think thats going to be my approach
10:48 < str1ngs> I might need to check if the line starts with a known key
but thats no biggy
10:48 -!- TimKack_ [~tkack@213.208.236.186] has joined #go-nuts
10:50 -!- TimKack [~tkack@college.cvtc.edu] has quit [Ping timeout: 246 seconds]
10:51 -!- wayneeseguin [~wayneeseg@vs9873.blueboxgrid.com] has quit [Read error:
Operation timed out]
10:51 -!- wayneeseguin [~wayneeseg@vs9873.blueboxgrid.com] has joined #go-nuts
10:55 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
11:06 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has quit [Quit: wrtp]
11:06 -!- TimKack [~tkack@213.208.236.186] has quit [Remote host closed the
connection]
11:06 -!- TimKack [~tkack@college.cvtc.edu] has joined #go-nuts
11:27 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has joined #go-nuts
11:30 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
11:31 -!- aaagirl [~aaagirl@212-198-248-35.rev.numericable.fr] has joined #go-nuts
11:32 -!- sebastianskejoe [~sebastian@5634762d.rev.stofanet.dk] has joined
#go-nuts
11:33 -!- aaagirl [~aaagirl@212-198-248-35.rev.numericable.fr] has quit [Client
Quit]
11:42 -!- tncardoso [~thiago@189.59.179.144.dynamic.adsl.gvt.net.br] has joined
#go-nuts
11:44 -!- sebastianskejoe [~sebastian@5634762d.rev.stofanet.dk] has quit [Ping
timeout: 276 seconds]
11:45 -!- TimKack_ [~tkack@213.208.236.186] has joined #go-nuts
11:47 < str1ngs> jessta: https://gist.github.com/9496c695f4dded620123 I
guess that works.  I should probably add some bounds checking
11:47 -!- Argue [~Argue@112.201.172.5] has joined #go-nuts
11:47 -!- TimKack [~tkack@college.cvtc.edu] has quit [Ping timeout: 260 seconds]
11:48 -!- TimKack [~tkack@213.208.236.186] has quit [Remote host closed the
connection]
11:49 -!- TimKack [~tkack@college.cvtc.edu] has joined #go-nuts
11:50 -!- sebastianskejoe [~sebastian@5634762d.rev.stofanet.dk] has joined
#go-nuts
12:11 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-179-3.clienti.tiscali.it]
has joined #go-nuts
12:14 -!- Project-2501 [~Marvin@82.84.95.161] has quit [Ping timeout: 252 seconds]
12:17 < skelterjohn> str1ngs: goargcfg.googlecode.com
12:19 < str1ngs> skelterjohn: that wont work for what I need.  but it mind
come in handy at some other time.
12:26 -!- TimKack_ [~tkack@213.208.236.186] has joined #go-nuts
12:29 -!- TimKack [~tkack@college.cvtc.edu] has quit [Ping timeout: 240 seconds]
12:30 -!- moraes [~moraes@189.103.177.124] has quit [Remote host closed the
connection]
12:34 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
12:38 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 245 seconds]
12:39 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit:
Leaving.]
12:41 -!- xyproto [~alexander@77.40.159.131] has quit [Quit: WeeChat 0.3.5]
12:43 -!- dlowe [~dlowe@nat/google/x-yhnlgoebprujsbsd] has joined #go-nuts
12:44 -!- alehorst [~alehorst@201.47.17.122.dynamic.adsl.gvt.net.br] has joined
#go-nuts
12:45 -!- GeertJohan [~Squarc@clal-5-212.eduroam.inholland.nl] has quit [Remote
host closed the connection]
12:46 -!- ericvh [~Adium@cpe-72-177-122-77.austin.res.rr.com] has joined #go-nuts
12:57 -!- iant1 [~iant@67.218.106.149] has joined #go-nuts
13:02 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
13:02 -!- MX80 [~MX80@cust151.253.117.74.dsl.g3telecom.net] has quit [Ping
timeout: 240 seconds]
13:04 < knowmercy> morning all
13:07 < jnwhiteh> morning
13:07 < jnwhiteh> or rather, ugt!
13:07 < knowmercy> yes, ugh too!
13:07 -!- rajender [~rajender@122.183.102.226] has joined #go-nuts
13:08 -!- sebastianskejoe [~sebastian@5634762d.rev.stofanet.dk] has quit [Quit:
Lost terminal]
13:12 -!- rajender [~rajender@122.183.102.226] has quit [Quit: Leaving]
13:14 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-170-35.clienti.tiscali.it] has
joined #go-nuts
13:15 -!- rajender [~rajender@122.183.102.226] has joined #go-nuts
13:16 -!- xyproto [~alexander@77.40.159.131] has joined #go-nuts
13:17 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-179-3.clienti.tiscali.it]
has quit [Ping timeout: 260 seconds]
13:20 -!- rajender [~rajender@122.183.102.226] has quit [Quit: Leaving]
13:20 -!- rajender [~rajender@122.183.102.226] has joined #go-nuts
13:22 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has joined #go-nuts
13:23 -!- benjack [~benjack@cm224.omega195.maxonline.com.sg] has joined #go-nuts
13:25 -!- benjack [~benjack@cm224.omega195.maxonline.com.sg] has quit [Remote host
closed the connection]
13:26 -!- TimKack [~tkack@213.208.236.186] has quit [Remote host closed the
connection]
13:26 -!- TimKack [~tkack@college.cvtc.edu] has joined #go-nuts
13:27 -!- benjack [~benjack@cm224.omega195.maxonline.com.sg] has joined #go-nuts
13:27 -!- MX80 [~MX80@cust151.253.117.74.dsl.g3telecom.net] has joined #go-nuts
13:27 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
13:28 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
13:29 -!- niemeyer [~niemeyer@200-102-220-163.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
13:34 -!- Slant [~scott@124-168-203-197.dyn.iinet.net.au] has joined #go-nuts
13:40 -!- sacho [~sacho@95-42-121-139.btc-net.bg] has quit [Ping timeout: 258
seconds]
13:40 -!- rajender [~rajender@122.183.102.226] has quit [Quit: Leaving]
13:49 -!- avelino [~avelino@unaffiliated/avelino] has quit [Remote host closed the
connection]
13:56 -!- sacho [~sacho@46.10.17.252] has joined #go-nuts
13:58 -!- Slant [~scott@124-168-203-197.dyn.iinet.net.au] has quit [Quit: Slant]
14:00 -!- Bigbear1 [~Cody@S010600222dcddd0f.cg.shawcable.net] has joined #go-nuts
14:00 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
14:01 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Read error:
Connection reset by peer]
14:02 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
14:02 -!- Ginto8 [~ginto8@pool-173-72-98-105.cmdnnj.fios.verizon.net] has quit
[Remote host closed the connection]
14:04 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
14:04 -!- tncardoso [~thiago@189.59.179.144.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 245 seconds]
14:04 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined
#go-nuts
14:05 -!- iant1 [~iant@67.218.106.149] has quit [Quit: Leaving.]
14:05 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
14:07 -!- TimKack_ [~tkack@213.208.236.186] has joined #go-nuts
14:07 -!- TimKack [~tkack@college.cvtc.edu] has quit [Read error: Connection reset
by peer]
14:10 -!- kamaji_ [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
14:10 -!- iant [~iant@nat/google/x-vbkajckoysdyywip] has joined #go-nuts
14:10 -!- mode/#go-nuts [+v iant] by ChanServ
14:10 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Read error:
Connection reset by peer]
14:15 -!- Sh4rK [sh4rk@4d6f41c7.adsl.enternet.hu] has joined #go-nuts
14:17 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined
#go-nuts
14:20 -!- JakeyChan [~JakeyChan@118.132.214.248] has joined #go-nuts
14:20 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Read error:
Connection reset by peer]
14:20 -!- tncardoso [~thiago@187.114.48.53] has joined #go-nuts
14:22 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has joined
#go-nuts
14:26 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
14:31 -!- sunfmin [~sunfmin@122.234.233.10] has joined #go-nuts
14:37 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 240
seconds]
14:37 -!- TimKack [~tkack@213.208.236.186] has quit [Remote host closed the
connection]
14:37 -!- TimKack [~tkack@college.cvtc.edu] has joined #go-nuts
14:49 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
14:56 -!- kamaji_ [~kamaji@handtomouse.demon.co.uk] has quit [Read error:
Connection reset by peer]
14:56 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
15:01 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
15:03 -!- avelino [~avelino@unaffiliated/avelino] has quit [Remote host closed the
connection]
15:08 -!- TimKack_ [~tkack@213.208.236.186] has joined #go-nuts
15:08 -!- TimKack [~tkack@college.cvtc.edu] has quit [Read error: Connection reset
by peer]
15:08 -!- nicka [~nicka@142.176.0.21] has joined #go-nuts
15:08 -!- nicka [~nicka@142.176.0.21] has quit [Changing host]
15:08 -!- nicka [~nicka@unaffiliated/nicka] has joined #go-nuts
15:10 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
15:13 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
15:13 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
15:17 -!- iant [~iant@nat/google/x-vbkajckoysdyywip] has quit [Ping timeout: 264
seconds]
15:24 -!- iant [~iant@nat/google/x-ulajrdkukfysibne] has joined #go-nuts
15:24 -!- mode/#go-nuts [+v iant] by ChanServ
15:25 -!- Sh4rK [sh4rk@4d6f41c7.adsl.enternet.hu] has left #go-nuts ["I'm out"]
15:25 -!- tncardoso [~thiago@187.114.48.53] has quit [Quit: bye]
15:33 -!- moraes [~moraes@189.103.177.124] has joined #go-nuts
15:38 -!- erus` [~chatzilla@mailgate.ips-international.com] has quit [Remote host
closed the connection]
15:39 -!- zaero [~eclark@50-82-164-104.client.mchsi.com] has quit [Quit: ZNC -
http://znc.sourceforge.net]
15:39 -!- zaero- [~eclark@servo.m.signedint.com] has joined #go-nuts
15:44 -!- pjacobs2 [~pjacobs@66.54.185.130] has joined #go-nuts
15:44 -!- alm [~alm@unaffiliated/alm] has joined #go-nuts
15:46 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Ping timeout: 252 seconds]
15:54 -!- TimKack [~tkack@213.208.236.186] has quit [Quit: TimKack]
15:56 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
15:57 -!- mattn_jp [~mattn@112-68-72-173f1.hyg1.eonet.ne.jp] has joined #go-nuts
15:57 -!- iant [~iant@nat/google/x-ulajrdkukfysibne] has quit [Ping timeout: 264
seconds]
16:05 -!- Argue [~Argue@112.201.172.5] has quit [Ping timeout: 240 seconds]
16:13 -!- nekoh [~nekoh@dslb-188-107-175-130.pools.arcor-ip.net] has joined
#go-nuts
16:17 -!- smw [~stephen@unaffiliated/smw] has quit [Ping timeout: 245 seconds]
16:23 < zeebo> am i correct in my assumption that if you write to an
http.ResponseWriter it immediately sends out the data, making it so you can't send
headers anymore?
16:23 < exch> indeed
16:23 < zeebo> is there a simple solution for buffering data besides
reimplementing the interface on a buffer?
16:23 < exch> send headers first, or cache the data somewhere before pushing
it out through the response writer
16:24 < zeebo> im trying to maintain compatability with the http.HandlerFunc
type, so i cant just send in an io.Writer :(
16:26 < zeebo> seems like a lot of work to just wrap any given
http.HandlerFunc and have it buffer
16:27 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
joined #go-nuts
16:28 < zeebo> oh well.  maybe it wont be so bad
16:28 < zeebo> thanks
16:33 -!- JakeyChan [~JakeyChan@118.132.214.248] has quit [Ping timeout: 246
seconds]
16:35 -!- tncardoso [~thiagon@150.164.2.20] has joined #go-nuts
16:37 < f2f> zeebo, just use bytes.Buffer?
16:38 < zeebo> yeah but you need to implement Header() and WriteHeader() to
make it a ResponseWriter
16:39 < f2f> why do you need to make it a response writer?  just use it as a
local buffer, when you have all the data in, write it out to the real response
writer
16:39 < zeebo> because im trying to wrap a http.HandleFunc
16:40 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
16:40 < f2f> you can still do that inside a closure, i think
16:41 < zeebo> thats basically what im doing
16:42 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Read error:
Connection reset by peer]
16:44 < zeebo> but because i want to send out headers after calling the
closed handler, i need to buffer the response
16:45 < f2f> i wonder if this is a possible solution: type myRW struct {
bytes.Buffer, http.ResponseWriter }
16:45 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
16:45 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
16:45 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:45 < zeebo> ResponseWriter is an interface
16:46 < zeebo> the underlying type that it usually passes to handlers is
unexported
16:46 < zeebo> :(
16:47 -!- Bigbear1 [~Cody@S010600222dcddd0f.cg.shawcable.net] has quit [Read
error: Connection reset by peer]
16:49 < knowmercy> if only this were RoR
16:49 < knowmercy> </lolz>
16:51 < knowmercy> zeebo: I've fooled around with mango for simplification
on that stuff
16:52 < zeebo> knowmercy: thanks for the suggestion.  im just having fun and
trying to roll my own and come up with a good solution
16:52 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
16:56 < knowmercy> ahhh, that's fair, I've done the same thing a few times
now
17:08 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
17:13 -!- ShadowIce` [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
17:13 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Read error:
Connection reset by peer]
17:22 < moraes> wrtp, you saw the router right?
17:22 -!- iant [~iant@nat/google/x-yorqhlrqfhbrhbzd] has joined #go-nuts
17:22 -!- mode/#go-nuts [+v iant] by ChanServ
17:23 < moraes> knowmercy, thanks it is not RoR!
17:23 < moraes> hope you were kidding.
17:24 < nsf> interesting
17:24 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
17:24 < nsf> I just saw a commit on escape analysis
17:24 < nsf> almost 2k lines of code
17:24 < nsf> (tests are 615 loc)
17:24 -!- dfr|mac [~dfr|work@nat/google/x-mogtnkhqdkvvpzap] has joined #go-nuts
17:25 < aiju> huddhini code
17:25 -!- sunfmin [~sunfmin@122.234.233.10] has quit [Quit: sunfmin]
17:26 < f2f> it's turned off for now
17:26 < f2f> and there are some benchmarks there
17:27 < f2f> Atof64 if you want to search
17:28 < f2f> gofmt -l src misc: 0m18.359s without escape analysis, 0m16.430s
with
17:28 < nsf> interesting
17:28 < nsf> not impressive though :)
17:29 < nsf> I'm mostly curious about array allocations on the stack
17:29 < nsf> is it possible now?  )
17:29 < nsf> var tmp [8]byte;
17:29 < nsf> well, and passing tmp to functions
17:30 < nsf> previously it resulted in "move to heap"
17:30 < nsf> well, no, I lied
17:30 < nsf> it's impressive
17:30 * nsf will check that feature out definitely
17:31 < f2f> you can check it now
17:31 < f2f> just compile with -s
17:32 -!- remy_o [~babar@archlinux/developer/remy-o] has joined #go-nuts
17:32 < nsf> yeah, sure, I can do it now, but I will do it later :D
17:32 < f2f> more benchmarks:
http://groups.google.com/group/golang-dev/msg/4a1f3118d792a9a1
17:33 < nsf> nice
17:36 -!- jbooth1 [~jay@209.249.216.2] has joined #go-nuts
17:36 < str1ngs> tar.Header.Atime I'm assuming this should be seconds?
17:36 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has joined
#go-nuts
17:37 < nsf> "Last modification time in numeric Unix time format"
17:37 < nsf> str1ngs: yes it should be
17:37 < str1ngs> hmm so time.Seconds() should work
17:38 < nsf> yes
17:38 < zeebo> moraes: i think i found a bug in gorilla/mux.  lemme see if i
can reduce it to a simple test case
17:38 < str1ngs> tar -tvf gives me 1969-12-31 16:00 so I must be doing
something wrong
17:39 < moraes> zeebo, awesome.  not really, this is bad news.  but awesome
if you do.
17:39 -!- clr_ [~colin@c-67-183-138-2.hsd1.wa.comcast.net] has joined #go-nuts
17:39 < nsf> str1ngs: hm..
17:39 < moraes> i haven't yet tried the coverage tool.
17:39 < moraes> i'm kinda moved by coverage.
17:40 < str1ngs> ah there using hdr.Mtime in the tests
17:41 < zeebo> moraes: it seems like if you go to a page that isnt routed
before you go to a page that is, it panics
17:41 < zeebo> like if you have "/foo" routed to some handler, and you visit
"/bar" which doesn't exist first, it panics.  but it stops panicing after you
visit "/foo"
17:42 < zeebo> lemme get you the example code and traceback
17:42 < str1ngs> nsf: I found it . seems I need to set Mtime to
17:42 < nsf> str1ngs: i see
17:42 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
17:43 < moraes> zeebo, got it
17:44 < zeebo> moraes: heres my pastie anyway
http://pastie.org/private/iminhsgdchzgcozrxqyq :)
17:46 < moraes> zeebo, ah easy one
17:46 < zeebo> yeah.  just do the same check you do in Set
17:47 < moraes> yeah.  and never use Brad Fitzpatrick's code anymore.
17:47 < zeebo> haha :)
17:47 < moraes> no, kidding.  that was awesome.
17:49 < zeebo> it's a good thing im a bad typist and typo'd a url hehe
17:49 -!- djbrown [~djbrown@unaffiliated/djbrown] has quit [Ping timeout: 258
seconds]
17:50 < moraes> sent a fix.  thanks a lot, zeebo.
17:50 < zeebo> np.  good work on it so far :)
17:52 < moraes> :)
17:56 -!- kevlar_work [~kevlar@unaffiliated/eko] has joined #go-nuts
18:11 -!- Nisstyre [~yours@infocalypse-net.info] has quit [Ping timeout: 245
seconds]
18:16 -!- yretssin [~yours@infocalypse-net.info] has joined #go-nuts
18:22 -!- resonator127001 [~resonator@c-71-228-213-38.hsd1.tn.comcast.net] has
joined #go-nuts
18:27 -!- dfr|youtube [~dfr|work@nat/google/x-mogtnkhqdkvvpzap] has quit [Ping
timeout: 258 seconds]
18:28 < fzzbt> moraes: really nice package!  with mux, i was able to convert
my legacy ~100 lines of code to less than 10.
18:29 < moraes> fzzbt, really?  what were you doing?
18:31 < fzzbt> moraes: well i had built a hacky solution to do routing and
reverse routing just like mux does, but it didnt allow putting variable names in
the regexp URL match like mux does which why it took so many lines.
18:31 < moraes> :)
18:33 < moraes> i tried appengine-go and was: "what?".  too used to this
kind of router in other languages.  and then: "oh wait, i have a project to learn
go".
18:34 < moraes> :D
18:35 < fzzbt> one issue is however that i used sre2 to do variable length
matching with the {n,m}-syntax (which conflicts with the syntax of mux, btw),
which the included go regexp package doesnt support now.  i have to do checks for
that separately
18:36 < moraes> fzzbt, i thought about using sre2.  then exp/regexp (and was
frustrated because {x,y} is still not supported).
18:37 < moraes> then stayed with regexp as it will soon support more stuff
and is one less dependency.
18:37 < aiju> exp/regexp is an abomination
18:38 < nsf> reg/exp/regexp
18:38 < nsf> :D
18:38 < nsf> do it java style
18:38 -!- dfr|youtube [~dfr|work@nat/google/x-mwoekdhnksnlkozi] has joined
#go-nuts
18:39 -!- dfr|youtube [~dfr|work@nat/google/x-mwoekdhnksnlkozi] has quit [Remote
host closed the connection]
18:39 < aiju> org.go-lang.data.factory.regular.expression
18:39 -!- dfr|youtube [~dfr|work@nat/google/x-kmnjoqvdgnkhdquq] has joined
#go-nuts
18:39 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Ping
timeout: 252 seconds]
18:40 < zozoR> why is it an abomination?
18:40 -!- yogib [~yogib@dslb-188-100-007-079.pools.arcor-ip.net] has joined
#go-nuts
18:41 -!- mattn_jp [~mattn@112-68-72-173f1.hyg1.eonet.ne.jp] has quit [Quit:
leaving]
18:41 < aiju> it's the sort of regexp you can't describe in less than 2000
pages
18:42 < aiju> you type something like \{!=%)$8\} and it matches all unicode
characters with an even number of strokes
18:42 -!- Dr_K [~Adium@gng0221.urh.uiuc.edu] has joined #go-nuts
18:48 < moraes> fzzbt, hmm, that's probably why i used <> as
separators one i made for python.
18:48 < moraes> *in one
18:48 -!- Dr_K [~Adium@gng0221.urh.uiuc.edu] has left #go-nuts []
18:53 < fzzbt> moraes: like this `/<name:[A-Za-z]{2,10}>/` instead of
`/{name:[A-Za-z]{2,10}}/` ?
18:54 -!- smw [~stephen@unaffiliated/smw] has quit [Ping timeout: 260 seconds]
18:55 -!- dfr|yout_ [~dfr|work@nat/google/x-udtiocervjgpbnvj] has joined #go-nuts
18:55 -!- dfr|youtube [~dfr|work@nat/google/x-kmnjoqvdgnkhdquq] has quit [Read
error: Connection reset by peer]
18:56 < moraes> fzzbt, yep
18:59 -!- tncardoso [~thiagon@150.164.2.20] has quit [Quit: Leaving]
19:00 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 264
seconds]
19:02 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
19:05 -!- molto_alfredo [~molto_alf@142.176.0.21] has joined #go-nuts
19:06 -!- dfr|youtube [~dfr|work@nat/google/x-qnsxjkusrvvksqri] has joined
#go-nuts
19:06 -!- dfr|yout_ [~dfr|work@nat/google/x-udtiocervjgpbnvj] has quit [Read
error: Connection reset by peer]
19:07 -!- molto_alfredo1 [~molto_alf@142.176.0.21] has quit [Ping timeout: 240
seconds]
19:07 -!- remy_o [~babar@archlinux/developer/remy-o] has quit [Ping timeout: 240
seconds]
19:08 -!- TheMue [~FMueller@p5DDF5C1E.dip.t-dialin.net] has joined #go-nuts
19:10 -!- remy_tel [~remy_tel@80.214.0.5] has joined #go-nuts
19:14 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Remote host
closed the connection]
19:16 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
19:19 -!- yretssin [~yours@infocalypse-net.info] has quit [Ping timeout: 245
seconds]
19:22 -!- yretssin [~yours@infocalypse-net.info] has joined #go-nuts
19:22 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Read error:
Connection reset by peer]
19:23 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
19:24 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
19:30 -!- samuell [~samuel@pc2-samuel.uppmax.uu.se] has quit [Quit: Ex-Chat]
19:35 < niemeyer> moraes: Good stuff
19:36 -!- remy_tel [~remy_tel@80.214.0.5] has quit [Remote host closed the
connection]
19:36 -!- ccc [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has joined #go-nuts
19:40 < moraes> niemeyer, thanks.  :)
19:43 -!- qeed [~qeed@adsl-74-235-197-58.mco.bellsouth.net] has joined #go-nuts
19:50 -!- adg [~nf@atka.wh3rd.net] has quit [Ping timeout: 240 seconds]
19:51 -!- Tekerson [~brenton@gir.tekerson.com] has quit [Ping timeout: 260
seconds]
19:58 -!- xash [~xash@d004066.adsl.hansenet.de] has joined #go-nuts
19:58 -!- alehorst [~alehorst@201.47.17.122.dynamic.adsl.gvt.net.br] has quit
[Quit: Leaving.]
20:01 -!- alehorst [~alehorst@201.47.17.122.dynamic.adsl.gvt.net.br] has joined
#go-nuts
20:11 -!- Nisstyre [~yours@infocalypse-net.info] has quit [Read error: Connection
reset by peer]
20:12 -!- Count_Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has quit [Quit: (
www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
20:17 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: Quit]
20:17 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
20:23 -!- qeed [~qeed@adsl-74-235-197-58.mco.bellsouth.net] has quit [Remote host
closed the connection]
20:26 -!- qeed [~qeed@adsl-74-235-197-58.mco.bellsouth.net] has joined #go-nuts
20:33 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
20:40 -!- adg [~nf@atka.wh3rd.net] has joined #go-nuts
20:40 -!- mode/#go-nuts [+o adg] by ChanServ
20:41 -!- Tekerson [~brenton@gir.tekerson.com] has joined #go-nuts
20:48 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-170-35.clienti.tiscali.it] has
quit [Ping timeout: 276 seconds]
20:50 -!- Fish- [~Fish@9fans.fr] has quit [Quit: WeeChat 0.3.5]
20:59 -!- avelino [~avelino@unaffiliated/avelino] has quit [Remote host closed the
connection]
21:01 < prudhvi> If i have a json such as this
http://developer.github.com/v3/git/refs/.  What are my options for specifying an
Interface that i could use to Marshal and Unmarshal json objects and perhaps maybe
create new Go-objects from them
21:03 < prudhvi> I tried something like this []map[string]interface{}.  But,
i still can't specify say jsobj["object"]["type"] that resolves correctly
21:06 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
21:11 -!- photron [~photron@port-92-201-5-144.dynamic.qsc.de] has quit [Ping
timeout: 268 seconds]
21:14 -!- ccc [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has quit [Quit:
leaving]
21:34 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Ping
timeout: 258 seconds]
21:35 -!- Solak [~stijnw@cthia.xs4all.nl] has quit [Remote host closed the
connection]
21:37 -!- TheMue [~FMueller@p5DDF5C1E.dip.t-dialin.net] has quit [Quit: Lost
terminal]
21:46 -!- Niedar [~dgdfg@ip68-99-166-222.hr.hr.cox.net] has joined #go-nuts
22:01 -!- Slant [~scott@124-168-113-99.dyn.iinet.net.au] has joined #go-nuts
22:01 -!- Slant [~scott@124-168-113-99.dyn.iinet.net.au] has quit [Client Quit]
22:02 -!- remy_o [~babar@archlinux/developer/remy-o] has joined #go-nuts
22:05 -!- Slant [~scott@124-168-113-99.dyn.iinet.net.au] has joined #go-nuts
22:06 -!- ShadowIce` [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:08 -!- d3xter [~sinz@188-22-29-60.adsl.highway.telekom.at] has joined #go-nuts
22:08 -!- nicka [~nicka@unaffiliated/nicka] has quit [Quit: Leaving]
22:09 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
22:11 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has quit [Remote
host closed the connection]
22:12 -!- d3xter [~sinz@188-22-29-60.adsl.highway.telekom.at] has quit [Ping
timeout: 260 seconds]
22:12 -!- itrekkie [c0373725@gateway/web/freenode/ip.192.55.55.37] has joined
#go-nuts
22:13 < itrekkie> Hi everyone--in what kind of case would copy() return 0?
I'm having troubles copying a slice to another slice
22:14 -!- magn3ts [~magn3ts@colemickens.unl.edu] has joined #go-nuts
22:18 < exch> presumably when the target slice does not have enough capacity
to hold whatever it is you are copying into it.  e.g.: var b []byte; <-- len(b)
== cap(b) == 0
22:18 < itrekkie> that would explain it I think, thank you :)
22:20 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
22:21 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
22:22 -!- d3xter [~sinz@188-22-29-60.adsl.highway.telekom.at] has joined #go-nuts
22:23 < itrekkie> I'm trying currently to parallelize a simple program that
imports the contents of a number of files into a slice.  Unforuntately, my
parallel version is much slower than the serial version.  Could someone take a
look and give me a couple hints?  http://pastie.org/2424814
22:24 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
connection]
22:28 < pharris> Parallelizing an IO-bound operation often makes it slower
(due to adding more seeks).  How much work does dictionary.ProcessFile do?
22:29 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
22:30 < itrekkie> It's pretty simple too, just slurping up the file and some
splits to return a slice: http://pastie.org/2424849
22:30 -!- yogib [~yogib@dslb-188-100-007-079.pools.arcor-ip.net] has quit [Quit:
yogib]
22:30 < itrekkie> thanks for the insight on parallelizing io though, I
didn't think of that
22:30 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit
[Quit: Lost terminal]
22:31 < remy_o> itrekkie: you may not want to do I/O and processing
alternatively
22:32 < remy_o> maybe have a goroutine that just reads files and push the
contents to a channel for processing
22:32 -!- aho [~nya@fuld-590c7dea.pool.mediaWays.net] has joined #go-nuts
22:33 -!- pothos [~pothos@111-240-176-240.dynamic.hinet.net] has quit [Remote host
closed the connection]
22:34 -!- pothos_ [~pothos@111-240-176-240.dynamic.hinet.net] has joined #go-nuts
22:36 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
22:37 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
22:37 -!- dlowe [~dlowe@nat/google/x-yhnlgoebprujsbsd] has quit [Quit: Leaving.]
22:37 < itrekkie> okay, thanks guys, reading the file contents ahead of time
improves runtime a bit, but still slower than my serial version
22:38 < itrekkie> are slices pass by reference?
22:39 < itrekkie> I ask because I'm afraid I'm copying the file's contents
when passing to Dictionary.ProcessFile, though maybe not.  Here's an updated
version: http://pastie.org/2424877
22:41 -!- remy_o [~babar@archlinux/developer/remy-o] has quit [Ping timeout: 240
seconds]
22:52 -!- pjacobs [~pjacobs@66.54.185.130] has quit [Ping timeout: 260 seconds]
22:54 < d3xter> hey guysj
22:55 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
22:55 -!- c00w [~colin@c-67-183-138-2.hsd1.wa.comcast.net] has quit [Quit:
Ex-Chat]
22:56 < d3xter> i'm reading 2 values from os.Stdin with a bufio.Reader
through ReadLine.  is it an expected behaviour, that both slices have the same
data afterwards?
22:56 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
quit [Remote host closed the connection]
22:57 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
22:57 -!- crazy2be [~crazy2be@S01060012171a573b.cg.shawcable.net] has joined
#go-nuts
23:02 < f2f> d3xter, if the slices have the same backing array, or if you're
passing pointers to the same slice, or...  better make a small sample and post it
on a pastie
23:04 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
23:08 -!- EvilJStoker [jstoker@unaffiliated/jstoker] has quit [Quit: EvilJStoker
is gone :(]
23:09 < d3xter> f2f, for example http://pastebin.com/Jz551tEn
23:09 < d3xter> when i enter "1" and "2", it prints out "2" and "2"
23:10 -!- hargettp [~hargettp@pool-71-174-142-225.bstnma.east.verizon.net] has
joined #go-nuts
23:12 -!- itrekkie [c0373725@gateway/web/freenode/ip.192.55.55.37] has quit [Ping
timeout: 252 seconds]
23:12 < f2f> see the documentation for ReadLine: "The returned buffer is
only valid until the next call to ReadLine."
23:13 < f2f> so you either copy the value out of the buffer or print it
immediately
23:14 -!- EvilJStoker [jstoker@unaffiliated/jstoker] has joined #go-nuts
23:14 -!- kergoth_ [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
23:14 -!- EvilJStoker [jstoker@unaffiliated/jstoker] has quit [Remote host closed
the connection]
23:14 < d3xter> f2f, thanks :)
23:14 < d3xter> my bad
23:15 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
23:15 -!- resonator127001 [~resonator@c-71-228-213-38.hsd1.tn.comcast.net] has
quit [Quit: Leaving]
23:16 -!- Slant [~scott@124-168-113-99.dyn.iinet.net.au] has quit [Quit: Slant]
23:17 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
23:24 -!- iant [~iant@nat/google/x-yorqhlrqfhbrhbzd] has quit [Ping timeout: 264
seconds]
23:27 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.5]
23:35 -!- iant [~iant@66.109.104.221] has joined #go-nuts
23:35 -!- mode/#go-nuts [+v iant] by ChanServ
23:35 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
23:36 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has quit [Quit: wrtp]
23:37 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
23:41 -!- d3xter [~sinz@188-22-29-60.adsl.highway.telekom.at] has quit [Quit:
Ex-Chat]
23:55 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
23:56 < magn3ts> I'm starting to develop a crush on Pike as well now.
23:56 < magn3ts> es-operating-system :D drool
23:57 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
23:58 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
23:58 < magn3ts> And the wiki and project is being worked on still to some
degree
--- Log closed Thu Aug 25 00:00:21 2011