--- Log opened Wed Nov 25 00:00:14 2009
--- Day changed Wed Nov 25 2009
00:00 < mikedee> also, if you cant read from that then neither can the
Parser
00:00 < General1337> what should I do instead?
00:00 < Ibw> Why are all the issues being fixed by Google folks?  Are they
allowing community members to accept bugs?
00:01 < mikedee> create a io.Reader from a string which you pasted into the
code
00:01 < yiyus> Ibw: they accept patches
00:01 -!- cetico [n=nictuku@unaffiliated/nictuku] has joined #go-nuts
00:01 < mikedee> i dont know how to do that
00:01 < mikedee> then you can cut out the buffer and the http until you work
out the parser
00:02 <+danderson> Ibw: patches are both accepted and very welcome
00:02 <+danderson> the guide on how to contribute is on golang.org
00:02 < General1337> mikedee thatl work, I have no idea how to do that
either tho
00:02 < General1337> :P
00:03 < Ibw> danderson: Thanks (though I must say, the "how to contribute"
page is not a very easy read)
00:03 < drhodes> Given a: type I interface{f()} , type T struct {val I} and
func (t *T) bar (i I){} then, if f isn't implemented the compiler complains:
"undefined :f".  I was expecting it to compile, then have the ability to import T,
implement f and get bar for free.
00:04 < yvesj> Ibw: why not?  give us pointers to difficult sections so we
can fix them?
00:04 -!- willdye [n=willdye@fern.dsndata.com] has left #go-nuts []
00:04 < Ibw> yvesj: Sure, let me look through and I'll send some of my
opinions your way.
00:04 <+danderson> (doc fixes are also welcome, and may be a good way to get
your feet wet while helping the Go community :)
00:04 < KirkMcDonald> drhodes: You must implement methods within the same
package that the type is defined in.
00:05 < drhodes> ok KirkMcDonald, thanks.
00:05 < yvesj> Ibw: even better, open an issue in the tracker, and describe
your concerns
00:05 <+danderson> pretty much any contribution is welcome, although patches
are more useful than debate
00:05 < Ibw> yvesj: Do I need to write test routines for every function I
add?
00:06 <+danderson> (debate has a way of never going nowhere on sensitive
issues, whereas a test implementation for the proposal lets people play around
with it, see how things interact, and generally provides some concrete support for
the discussion)
00:06 < yvesj> I don't know.  but I don't think the library has test
routines for every function.  the more the better I guess
00:06 <+danderson> never going anywhere, even
00:06 < sm> oh plexdev, nice
00:06 < sm> hey tav!  :)
00:07 < mikedee> you should be able to implement an object which has a Read
method like this one Read(p []byte) (n int, err os.Error); which returns your xml
as a byte array and its length
00:08 < plexdev> http://is.gd/52X4T by [Rob Pike] in go/doc/ -- add freebsd
to the list of os'es.
00:08 < plexdev> http://is.gd/52X4V by [Russ Cox] in go/src/ -- make.bash:
clear CDPATH to avoid output from cd
00:10 -!- h4xOr [n=prudhvi@aldebaran.surapaneni.in] has quit [Read error: 110
(Connection timed out)]
00:11 < mikedee> Is there a typo in this file?
http://golang.org/src/pkg/xml/xml.go#L157
00:11 < mikedee> if rb, ok := r.(readByter); ok { should be if rb, ok :=
r.(readByte); ok {
00:12 < mikedee> the comment says it is testing that the readByte method
exists
00:13 < mikedee> danderson?
00:13 < alexsuraci> Interesting comment diff for the vector package.  :P
"...  package implements an efficient container ..." -> "...  package
implements a container ..."
00:14 -!- werdan7 [n=w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
00:14 <+danderson> mikedee: looks like a typo to me, though I'm not a Go
hacker myself.  I'd send a patch.
00:14 <+danderson> or at the very least poke someone on the go team, since
this is actually a trivial change the overhead would be smaller for them to just
fix it directly
00:15 < mikedee> Sorry, thought you were
00:15 <+danderson> although I see none online right now :/
00:15 < mikedee> maybe the go team have gone
00:15 -!- rbohn [n=rbohn@192.206.100.4] has quit ["ChatZilla 0.9.85 [Firefox
3.0.15/2009101601]"]
00:15 < Ibw> does all.bash start a makefile?  Meaning it won't rebuild
everything if I only change a few files?
00:15 <+danderson> I just work here and throw out trolls
00:15 < dg> there's a readByter type defined a bit further up in the file,
looks right to me
00:15 -!- diltsman [n=diltsman@64.122.18.77] has joined #go-nuts
00:15 <+danderson> it's the others who do all the work
00:15 < antarus> danderson: hah; I read that as you work here and troll ;)
00:16 <+danderson> doh, that's correct
00:16 <+danderson> dg: thanks.  Shows how much I've had time to play with
Go, I hardly know the syntax
00:16 -!- alathon [n=Martin@h59ec0ac9.dkkoyno.dyn.perspektivbredband.net] has left
#go-nuts []
00:17 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined
#go-nuts
00:17 <+danderson> mikedee: the ReadByter interface is defined just a little
above, and the code you highlight checks whether the object conforms to that
interface (ie.  whether it has a ReadByte object or not)
00:17 < dg> i think the syntax for casts is possibly the most confusing bit
of syntax
00:17 < mikedee> thanks...
00:17 -!- michaelh- [n=mux@66-169-117-157.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
00:17 < mikedee> very strange.(syntax)
00:18 < yvesj> Ibw: last time I tried, all.bash cleans and rebuilds
everything
00:18 < KirkMcDonald> dg: They're not really "casts." Or at leat the spec
doesn't refer to them as such.
00:18 <+danderson> I'm told you get used to it
00:18 < Ibw> huh, running gotest on reader.go in the strings package gives
the error s[1:] which I though was totally legal
00:18 <+danderson> although as I said, haven't had time to play much myself
:(
00:18 < Ibw> yvesj: Is there a way to only build the changed files?
00:18 < General1337> lbw that's legal in Go
00:18 < General1337> oh no wait
00:18 < General1337> it shouldn't be, it's legal in python
00:18 < dg> kirkmcdonald: yeah ok, but that's how my mind thinks of them ;)
00:18 < WalterMundt> actually, it is legal now
00:18 < General1337> awesome
00:18 < WalterMundt> they added it to Go recently
00:19 -!- diltsman [n=diltsman@64.122.18.77] has quit [Client Quit]
00:19 < yvesj> Ibw: try just 'make' in the pkg directory
00:19 < WalterMundt> you have to hg pull and rebuild to get it if you have
an older checkout
00:19 < WalterMundt> older than a few days that is
00:19 < General1337> mine is like first day old
00:19 < General1337> let me update it
00:19 < KirkMcDonald> dg: I think it is useful to distinguish between type
assertions (x.(T)) and conversions (T(x)), both of which are sort of cast-like.
00:19 < Ibw> WalterMundt: I have the newest tip and all.bash built
everything just fine, so I don't know what the problem is
00:19 < WalterMundt> hih
00:19 < Ibw> hmm
00:20 < mikedee> did you do clean.bash for luck?
00:20 < mikedee> and hg update
00:21 -!- Daminvar [n=Daminvar@cpe-67-241-129-149.buffalo.res.rr.com] has quit
["Leaving"]
00:21 < Ibw> sure did.  I think I'm having permission issues and am silently
failing at the end of the build.
00:22 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit
["Leaving"]
00:22 < Ibw> oh darn
00:22 < Ibw> that means I just submitted a false issue
00:22 < Ibw> oh well
00:23 -!- michaelh [n=mux@66.169.117.157] has quit [Read error: 148 (No route to
host)]
00:23 < mikedee> ls -l `which 6c`
00:23 < mikedee> that will give you location and build time
00:24 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined
#go-nuts
00:24 < plexdev> http://is.gd/52Xy5 by [Russ Cox] in 2 subdirs of go/ -- gc:
correct type check for x, ok map assignment
00:26 < Ibw> yup, the build was failing at gc, which means it was also not
getting to cgo, which is where I was having trouble earlier
00:26 -!- dschn^ [n=dschn@pool-70-19-202-109.bos.east.verizon.net] has quit [Read
error: 110 (Connection timed out)]
00:29 < Gracenotes> okay, rndbot and I will be offline for a bit (driving
home from university)..  but I don't have to use SSH at home, at least.  *wave*
00:29 -!- shoafb [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has quit [Read
error: 110 (Connection timed out)]
00:30 < General1337> whats this
00:30 < General1337> I cant compile the latest version
00:30 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit ["Leaving"]
00:30 -!- rndbot [n=bot@wikipedia/Gracenotes] has quit [Remote closed the
connection]
00:33 -!- Ibw [n=isaac@cpe-67-241-42-134.twcny.res.rr.com] has quit [Nick
collision from services.]
00:33 -!- Ibw [n=isaac@67.241.42.134] has joined #go-nuts
00:35 -!- shoafb [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has joined
#go-nuts
00:36 < ziyu4huang> *r = s[1:]; , will this make a new string ?
00:36 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has
quit ["Leaving."]
00:36 < General1337> no ziyu4huang
00:38 < Ibw> Anyone recognize this build error (buildint in root) of the top
of their head?
00:38 < Ibw> exec·Run: undefined: runtime·arraytoslice
00:38 < Ibw> hash_remove_n: undefined: mmov
00:38 -!- brunov [n=bruno@190.191.110.64] has quit [Read error: 110 (Connection
timed out)]
00:38 < General1337> lbw that happened to me
00:38 < General1337> run ./clean.bash
00:38 < General1337> and it worked
00:39 -!- sliceofpi [n=Adium@c-98-194-205-176.hsd1.tx.comcast.net] has joined
#go-nuts
00:41 < Ibw> thanks
00:42 -!- alexsuraci [n=alex@71.188.133.67] has quit ["Lost terminal"]
00:45 -!- ziyu4huang [n=ziyu_hua@220-133-3-82.HINET-IP.hinet.net] has quit []
00:46 -!- aaront [n=aaront@unaffiliated/aaront] has quit ["And that's all he
wrote..."]
00:50 -!- shoafb [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has quit
["Leaving..."]
00:50 -!- raichoo [n=raichoo@i577BB4B4.versanet.de] has quit []
00:54 < Ibw> huh?  hg change gives error: abort: no username supplied (see
"hg help config")
00:54 < Ibw> eventually I'll get this mercurial thing
00:55 -!- aa [n=aa@190.135.192.25] has joined #go-nuts
00:57 < yvesj> did you login?
00:57 < yvesj> hg code-login
00:58 -!- dschn [n=dschn@pool-70-19-202-109.bos.east.verizon.net] has joined
#go-nuts
00:58 < yvesj> ..  but I never used mercurial, I'm just guessing.
00:59 < Ibw> yvesj: Someone over on #mercurial helped me.  It's a name set
in ~/.hgrc for signing changes to repos
01:00 < Ibw> I do have another question though: Do I need to specify a
reviewer?  There is a space to say who needs to review the code in the code
submission process, but I don't know what to put there...
01:01 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
quit [Remote closed the connection]
01:05 < Ibw> Awesome, just submitted a patch (hope I did it right)
01:11 -!- snicket [n=Promethe@148.227.201.174] has quit ["Saliendo"]
01:15 < General1337> ugh
01:15 < General1337> http://golang.org/pkg/xml/#Token
01:15 < General1337> what does this do?
01:15 < General1337> I don't understand, when I run it, all it does it send
a string
01:15 < General1337> tokenreader := xml.Token("country");
01:16 < General1337> all it does is send "country"
01:16 < mikedee> http://golang.org/src/pkg/xml/read.go#L139
01:16 < mikedee> this shows token being used
01:16 < mikedee> surely it is xmlparser.Token()?
01:17 < mikedee> tok, err := p.Token();
01:17 < mikedee> if err != nil {
01:17 < mikedee> return err
01:17 < mikedee> }
01:17 < mikedee> switch t := tok.(type) {
01:17 < mikedee> case StartElement:
01:17 -!- Omei [n=chatzill@99.178.130.115] has joined #go-nuts
01:18 < General1337> gah the variable names make my head hurt
01:18 -!- The_Doctor [n=The_Doct@168.105.232.71] has joined #go-nuts
01:18 < General1337> hmm
01:18 -!- jdp [n=justin@ool-435238c0.dyn.optonline.net] has joined #go-nuts
01:18 < General1337> ahh
01:18 < General1337> it makes sense now
01:18 -!- The_Doctor [n=The_Doct@168.105.232.71] has quit [Remote closed the
connection]
01:19 < mikedee> tok.(type) is a strange one
01:19 < mikedee> must be similar to tok instanceOf x
01:19 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit []
01:20 -!- WalterMundt [n=waltermu@twiki/developer/EtherMage] has quit ["Leaving."]
01:22 < General1337> nevermind, makes no sense
01:22 < General1337> :|
01:22 < General1337> that's just unmarshal
01:22 < General1337> and it does it all automatically
01:22 < General1337> calling unmarshall should find the original start
element if it's nil, which I'll put
01:23 < mikedee> you are doing something similar but without the
reflection...
01:24 < mikedee> scroll down to the line which starts Loop:
01:24 < mikedee> you need a case statement like that in an infinite loop,
just do whatever you want when you hit each type of element
01:24 < mikedee> when token is nil then you are at the end so break the loop
01:25 < General1337> oh
01:25 < General1337> I thought token would just spat out everything parsed
01:25 < General1337> hence the StartElement
01:25 < General1337> so giving it a StartElement would make it spit out a
specific value
01:25 < mikedee> no - it relates to an xml node roughly
01:25 < mikedee> Unmarshall will do that
01:26 < mikedee> it looks a bit harder and more brittle though
01:26 < plexdev> http://is.gd/52ZiY by [Robert Griesemer] in
go/src/pkg/container/heap/ -- Replace sort.Sort call with heapify algorithm in
Init.
01:27 < mikedee> it is sax style parsing, i dont think there is a dom/xquery
style which is what you are really looking for
01:28 < General1337> wait a minute, what is this
01:28 < General1337> // Save accumulated character data and comments
01:28 < General1337> whoops
01:28 < General1337> switch t := saveData.(type) {
01:28 < General1337> case *reflect.StringValue:
01:28 < General1337> how did you get the line numbers from the source pages
01:29 < mikedee> click the name of the function in the doc page
01:29 < General1337> lower than Loop:
01:29 < General1337> it saves everything it grabs
01:29 < General1337> in *reflect, which is given by what
01:29 < General1337> unmarshal?
01:29 < mikedee> i think thats because Token will lose the data next time it
is called
01:30 < General1337> hmm
01:30 -!- timmcd [n=Adium@97-117-100-106.slkc.qwest.net] has joined #go-nuts
01:30 < timmcd> anyone working on a site like Luaforge or Rubyforge or
sourceforge?
01:30 < mikedee> http://golang.org/src/pkg/xml/read.go - see comments at top
01:31 -!- brunov [n=bruno@190.191.110.64] has joined #go-nuts
01:31 < mikedee> it basically takes a reader and a reference to a structure
and then populates the structure from the xml
01:31 < mikedee> its good if you have 1 xml doc -> 1 structure
01:32 < General1337> thats exactly what I need
01:32 < General1337> :|
01:32 < exch> mikedee: http://github.com/jteeuwen/go-pkg-xmlx
01:33 < General1337> gah
01:33 < General1337> exch I love you
01:33 < exch> :)
01:33 < timmcd> anyone working on a site like Luaforge or Rubyforge or
sourceforge?
01:33 < exch> not me
01:33 -!- rob| [n=rob@95-90-45-206-dynip.superkabel.de] has quit [Read error: 110
(Connection timed out)]
01:33 -!- rob| [n=rob@95-90-45-206-dynip.superkabel.de] has joined #go-nuts
01:33 < KirkMcDonald> timmcd: Didn't you ask that one already?
01:33 < timmcd> KirkMcDonald:My client game me some kind of error, sorry if
so >_<
01:33 < exch> the closest thing we have to a repository of go contributions
is cat-v.org
01:34 < mikedee> that looks nice, but I think the standard parser + token
will be just as easy
01:34 -!- timmcd [n=Adium@97-117-100-106.slkc.qwest.net] has left #go-nuts []
01:34 -!- mxcl [n=mxcl@94.193.125.246] has quit [Remote closed the connection]
01:34 < KirkMcDonald> Also there is
http://code.google.com/hosting/search?q=label:go
01:34 < exch> the standard parser doesn't allow you to repeatedly search the
same node sets
01:35 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
01:35 < mikedee> you shouldnt need to go back up the tree
01:35 < mikedee> i thought it was sax style so just ran through everything
once
01:35 < General1337> node := doc.SelectNode("", "car");
01:35 < General1337> brand := node.GetValue("", "brand");
01:35 < exch> not always.  depends on your needs really.  for me the biggest
gripe is being dependant on the order of the xml document.  that just makes little
sense
01:35 < General1337> this is cool and what I need
01:36 < exch> specially if you don't control the contents of the xml
document
01:36 -!- tedster [n=tedster@67.23.158.117] has joined #go-nuts
01:39 -!- zhaozhou [n=zhaozhou@linfast76.bitnet.nu] has quit [Read error: 110
(Connection timed out)]
01:41 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit []
01:42 -!- Popog [n=Adium@66.192.186.101] has quit ["Leaving."]
01:42 < plexdev> http://is.gd/52ZLE by [Robert Griesemer] in
go/src/pkg/go/parser/ -- Handle presence of illegal semicolon after package clause
better.
01:42 -!- scandal [n=nobody@unaffiliated/scandal] has quit ["leaving"]
01:44 < General1337> exch
01:45 < General1337> how do you retrieve the data with this?
01:45 < General1337> actually u have examples that I did not read
01:45 < Ibw> what hg command lets me check if I'm up to date with the tip
01:45 < General1337> :|
01:45 < Ibw> ?
01:45 < exch> you mean from a website?
01:45 < General1337> yes
01:45 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit ["This
computer has gone to sleep"]
01:45 < Ibw> hg summary
01:45 < Ibw> thanks everyone
01:45 -!- andern_ [n=NA@55.84-234-230.customer.lyse.net] has quit [Remote closed
the connection]
01:45 < General1337> doc.LoadFile("test.xml");
01:45 -!- andern [n=NA@84.234.230.55] has joined #go-nuts
01:46 < exch> that only does local files.  I use LoadString() myself and
just pass it the raw data I fetched using http.Get()
01:46 -!- woofer2 [n=wooferer@168.81-166-171.customer.lyse.net] has quit [Read
error: 60 (Operation timed out)]
01:46 -!- zhaozhou [n=zhaozhou@linfast76.bitnet.nu] has joined #go-nuts
01:46 < exch> I need to add a function to fetch from an url really
01:47 < General1337> LoadString()?
01:47 < Ibw> what does plexdev keep posting?
01:47 < General1337> well
01:47 < mikedee> LoadStream() takes an io.Reader, cant you give it Body from
the http?
01:47 < General1337> yes
01:48 < General1337> that's what I have right now
01:48 < Ibw> danderson: If I see an issue in the issue tracker that I want
to fix, is there any way to say that so that a Google engineer doesn't take it and
fix the issue first?
01:48 -!- mxcl [n=mxcl@94.193.125.246] has joined #go-nuts
01:49 -!- woofer2 [n=wooferer@168.81-166-171.customer.lyse.net] has joined
#go-nuts
01:49 <+danderson> Ibw: not quite sure how to do that.  I'd email the list
and ask there how to do this, since none of the go devs are on at the moment
01:50 <+danderson> Ibw: at the very least, leave a comment on the issue
saying you're working on a patch for it
01:50 < Ibw> Thanks
01:50 <+danderson> it's not as good as an assignment of the issue to you,
but it's better than nothing
01:50 < General1337> exch I dont understand what you did to get it from a
url
01:53 < Ibw> I just ran a file through cgo, now I have foo.cgo3.c and
foo.cgo4.c.  Now what?  (I am trying to figure out how to use cgo by running
everything by hand)
01:53 -!- kimelto [n=kimelto@boulz.org] has joined #go-nuts
01:53 -!- jurdendurden [n=dude@70.250.37.35] has quit []
01:54 < exch> sec.  i'm comitting a patch that adds a LoadUri() method
01:54 < exch> done
01:55 < Ibw> nvm, looking through make.pkg.  Found where it compiles the cgo
files
01:59 < General1337> LoadUri
02:00 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
02:01 -!- tanamo [n=tanamo@125.252.70.230] has joined #go-nuts
02:01 < General13372> exch
02:01 < General13372> I don't understand why *document is with LoadUri
02:01 < General13372> actually I can't even call it
02:01 < General13372> :|
02:01 < exch> huh?
02:01 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Nick collision from services.]
02:02 -!- loureiro [n=loureiro@201008199213.user.veloxzone.com.br] has joined
#go-nuts
02:02 < exch> did you dl/build the changes I just made?
02:02 < General1337> yes
02:03 < exch> doc := xmlx.New(); err :=
doc.LoadUri("http://someplace.com/file.xml");
02:04 < exch>
http://github.com/jteeuwen/go-pkg-xmlx/blob/master/src/xmlx_test.go <- the
TestLoadRemote() works with that
02:06 < tanamo> hello, what is the equivalent of void* type in Go ?
02:06 < tanamo> *C.void wont work
02:06 < kimelto> interface{} ?
02:06 < mikedee> i think it is interface{}
02:07 < mikedee> list.List uses them
02:07 < exch> cgo defines void as type _C_void [0]byte
02:07 -!- Venom_X [n=pjacobs@66.54.185.131] has quit []
02:08 < tanamo> i see, thanks everyone
02:09 < jordyd> That sounds counter-intuitive.  Why is it interface{}?
02:09 < General1337> awesome exch
02:09 < General1337> it works
02:09 < exch> yay :)
02:09 < General1337> i've been messing around with XML all day
02:09 < General1337> and you pop out with somethign 20x easier
02:09 < General1337> how long did it take you to make this?
02:09 < exch> note that currently the Go http package does not support ssl
(https) calls yet.  So as long as you don't supply urls to secure sites, you;'ll
be fine.
02:10 < exch> a couple of hours
02:10 < General1337> yeah not going to anyway
02:10 < General1337> wow
02:10 < exch> I already knew what I need as I was wrapping the last.fm
webservice.  so that made it easier :)
02:10 < General1337> lol
02:10 < exch> i've made an xml lib like that for other languages to in the
past
02:11 < exch> still.  It's very basic.  Room for a lot of extra stuff like
XPath.  but right now it does what I need it to do
02:11 -!- tor7 [n=tor@213.113.122.152] has quit ["Z?"]
02:12 < yvesj> can I use a Google Apps domain account (i.e: non-gmail.com)
to authenticate in order to submit changes?
02:12 < General1337> what IDE are you guys using
02:12 -!- hstimer [n=hans@70.90.170.37] has quit ["Leaving..."]
02:12 < exch> Gedit :p
02:12 < General1337> I'm using GEdit with something my friend made real
quick for Go syntax but it's so tiny on my theme :(
02:12 < yvesj> the contribute.html shows golang.org, which is not gmail.com,
yet I cant use my own domain.
02:12 < General1337> or well, not tiny
02:12 < General1337> huge
02:12 < jordyd> vim
02:13 < General1337> lol
02:13 < General1337> i'll probably make something for notepad++
02:13 < General1337> with Wine
02:13 < exch> there are a couple of gedit syntax files available
02:13 < Ibw> ah
02:13 < Ibw> For a second, I was wondering what you were talking about
02:13 < General1337> do you have a link to any of them exch
02:13 < Ibw> notepad++ is a windows only program
02:13 < exch> http://go-lang.cat-v.org/text-editors/gedit/
02:13 < Ibw> btw, I have a decent kate syntax file
02:14 < General1337> lbw
02:14 < General1337> use Wine
02:14 < Ibw> nah
02:14 < Ibw> It's impure
02:14 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
02:14 < General1337> thanks exch
02:14 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
[Read error: 104 (Connection reset by peer)]
02:14 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
02:15 < mikedee> lbw do you have a link to that file?  I am using kate here
too
02:15 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
[Read error: 104 (Connection reset by peer)]
02:15 <+danderson> yvesj: due to various things too sad to go into, Google
Apps domain accounts can't directly log into Google Code
02:16 < mikedee> netbeans is a good ide too...  it has very good refactoring
support in lots of languages
02:16 <+danderson> however, at google.com/accounts, you can create a Google
account using your Google Apps email, and from there on you can log into Google
Code using that account (which, confusingly, will have the same email address).
02:16 <+danderson> that's likely what the golang.org folks did.
02:16 < yvesj> ahh
02:17 <+danderson> and as I said, yes, it's terminally confusing that you
can have a Google Apps and a "Normal Google" account with the same login, but
that's unfortunately the way things are right now :(
02:18 < yvesj> it worked
02:18 < yvesj> :-)
02:19 < exch> Google is getting too big for it's own good :p the right hand
doesn't know what the left ear is doing anymore
02:20 <+danderson> it's more like one of those 20/20 hindsight things
02:20 < exch> ah
02:20 <+danderson> it seemed like a good idea at the time...  except it
wasn't.
02:21 <+danderson> and since google.com also runs Google Apps, we get to
feel that pain as well, if it makes you feel any better :P
02:22 < exch> hehe a bit :p
02:22 < General1337>
http://picasaweb.google.com/mystilleef/Linux#5398206202023669378
02:22 < General1337> does anyone know what that is
02:22 < General1337> the dock stuff for gnome
02:23 <+danderson> looks like avant-window-navigator from a distance
02:23 < exch> General1337: http://do.davebsd.com/wiki/index.php?title=Docky
02:23 <+danderson> also, what the heck is that ubuntu distro?  Loopy Lemur?
02:24 < exch> lol :p
02:24 <+danderson> ah, so it's a gnome thing
02:24 < General1337> thanks exch
02:24 < General1337> yeah danderson
02:24 <+danderson> which looks somewhat like a meshing of the OS X taskbar
and spotlight and quicksilver, or something
02:24 <+danderson> nice.
02:24 < exch> I prefer things a bit more minimalistic
02:25 <+danderson> same
02:25 * danderson runs xmonad, task bars and docks waste real estate :P
02:26 < exch> i've got openbox with tint2
02:26 < exch>
http://img256.imageshack.us/img256/8273/200911251259115687x3xno.png \o/
02:27 < exch> love how I can make the taskbar only show small icons without
text
02:28 < exch> the list of go packages on cat-v.org is getting quite nice
02:29 < General1337> btw that wasnt Docky
02:29 < General1337> it's "Cairo"
02:30 < exch> ah
02:30 < General1337> I love dark themes
02:31 -!- zhaozhou [n=zhaozhou@linfast76.bitnet.nu] has quit [Read error: 110
(Connection timed out)]
02:32 < General1337> exch I have to figure out my github pass so I can
follow you
02:32 -!- zhaozhou [n=zhaozhou@linfast76.bitnet.nu] has joined #go-nuts
02:32 < exch> heh you'll just be disappointed.  I'm not particularly
follow-worthy :)
02:34 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit ["Leaving"]
02:37 < Ibw> yum Silk nog
02:37 -!- clip9 [i=tj@12.81-166-62.customer.lyse.net] has quit ["leaving"]
02:38 -!- ukai [n=ukai@220.109.219.244] has joined #go-nuts
02:38 < Ibw> exch: Is that your site?
02:38 < Ibw> cat-v?
02:39 -!- lenst [n=user@81-237-244-185-no52.tbcn.telia.com] has quit [Read error:
110 (Connection timed out)]
02:39 < exch> nope.  uriel's
02:39 -!- clip9 [i=tj@12.81-166-62.customer.lyse.net] has joined #go-nuts
02:40 < Ibw> uriel: How would one go about adding a link to your cat-v go
section?
02:40 -!- alc [n=alc@222.128.142.124] has joined #go-nuts
02:41 < Ibw> As in, getting you to put on a link to an outside project
02:42 < exch> either poke him here, or email him.  I think his mail is
listed on the site somewhere
02:43 < exch> http://uriel.cat-v.org/contact
02:43 < yvesj> okay, I created a CL. Then I changed a file.  since I can't
'commit', how do I push the further changes to the CL? 'hg change <change
#>' didn't work.
02:45 < Ibw> CL?
02:45 < Ibw> What does that stand for?
02:45 < Ibw> code login?
02:46 < Ibw> no
02:46 < Ibw> yvesj: What does CL stand for?
02:46 < yvesj> changelist, sorry.
02:46 -!- The_Doctor [n=The_Doct@168.105.232.71] has joined #go-nuts
02:47 < Ibw> So you made a change, sent it in, then changed it again and you
want to resend?
02:47 < yvesj> I didn't send it yet.  Just made one.
02:48 < yvesj> but yes, then I changed the files and want to update the
change.
02:48 < yvesj> ahhh hg upload <change #>
02:48 < yvesj> It's pretty clear in the doc.  dumb me.
02:49 < Ibw> You didn't send it yet?  Then hg change (no number) should be
enough
02:49 -!- scandal [n=nobody@unaffiliated/scandal] has joined #go-nuts
02:49 -!- loureiro [n=loureiro@201008199213.user.veloxzone.com.br] has quit
["Quit"]
02:50 < yvesj> Ibw: actually no, it's not enough.  I created the changelist
(hg change), but I didn't mail it.  So to update it I need to run "hg upload
<change #>"
02:50 < Ibw> Oh, alright.
02:50 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts
02:50 < Ibw> I guess I shouldn't really be trying to give advice about a
tool that I have absolutely no idea how to use
02:51 < yvesj> we're all just learning :-)
02:52 < Ibw> Do you work at Google, yvesj
02:52 < Ibw> ?
02:55 < yvesj> Ibw: yep
02:55 < yvesj> as a proof that dumb people are everywhere
02:56 <+danderson> hey, that's my job title!
03:00 -!- nictuku [n=nictuku@unaffiliated/nictuku] has quit ["."]
03:03 < Ibw> Anyone know what $0 means in a makefile?
03:03 < Ibw> wait, nevermind
03:04 < Ibw> that would be an O (capital o)
03:04 < Ibw> Anyone know what $O means?
03:06 < KirkMcDonald> Ibw: $(GOROOT)/src/Make.$(GOARCH) defines it to be one
of 5, 6, or 8.
03:06 < KirkMcDonald> Ibw: Depending on your target architecture.
03:11 -!- ssmall [n=stuart@rrcs-97-77-53-108.sw.biz.rr.com] has joined #go-nuts
03:13 < Ibw> awesome, thanks
03:15 < Ibw> Why is make.pkg having trouble with this?  cp: cannot create
regular file `/home/isaac/golang/pkg/linux_386/mycgoprogram.a': Permission denied
I should have all the permissions I need to do whatever I need to there
03:16 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: Raziel2p,
sepoy, jvogel, mycroftiv, bakkdoor, jnwhiteh, keeto, raphael, ac, Egelmex, (+35
more, use /NETSPLIT to show all of them)
03:17 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: biosed,
bombuzal, uxp, inittab, mjburgess, Yappo_, elmarco, jiing, ssb, djanderson, (+24
more, use /NETSPLIT to show all of them)
03:17 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: halfdan,
gnuvince, sqweek, toft, soul9, maacl, The_Ball, Pete_27, cyt, kve_, (+23 more, use
/NETSPLIT to show all of them)
03:17 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: eek,
sahazel, rup, michaelh, Hong_MinHee, cworth, alus, Zaba, FxChiP, shasbot, (+26
more, use /NETSPLIT to show all of them)
03:17 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: JoNaZ,
freespace, exDM69, nsz, honeyhoney, Hertta, redondos, pilt, mitsuhiko, westymatt,
(+79 more, use /NETSPLIT to show all of them)
03:17 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits:
rbancroft, shardz, q[mrw], Jerub, drry, yiyus, arun, alc, akheron, nickjohnson,
(+58 more, use /NETSPLIT to show all of them)
03:17 < Ibw> nvm
03:18 -!- Netsplit over, joins: hnaz, facemelter, nbaum, Smergo, +danderson,
soul9, andguent, dibb, shardz, jessta (+228 more)
03:20 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has quit
["Leaving"]
03:21 -!- Pete_27 [n=noname@115.64.1.61] has quit [Remote closed the connection]
03:21 -!- Omei [n=chatzill@99.178.130.115] has quit [Success]
03:21 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
03:22 -!- ajray-away [n=alex@wvc32383rh.rh.ncsu.edu] has quit [Remote closed the
connection]
03:22 -!- ajray-away [n=alex@wvc32383rh.rh.ncsu.edu] has joined #go-nuts
03:22 -!- mycroftiv [n=infernus@h69-128-47-243.mdsnwi.dedicated.static.tds.net]
has joined #go-nuts
03:22 -!- cgibreak [n=cgibreak@71.171.143.73] has joined #go-nuts
03:24 -!- The_Doctor [n=The_Doct@168.105.232.71] has quit ["Leaving..."]
03:25 -!- ajray-away [n=alex@wvc32383rh.rh.ncsu.edu] has left #go-nuts []
03:26 -!- alexsuraci [n=alex@71.188.133.67] has joined #go-nuts
03:27 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
03:29 -!- ssmall [n=stuart@rrcs-97-77-53-108.sw.biz.rr.com] has quit ["Leaving."]
03:30 < Ibw> WOAH!  I finally got a Gtk+ window opened from Go!
03:30 < Ibw> I have been trying to figure this out for days!
03:30 < Ibw> yeeeeeesh
03:30 < Ibw> Everyone should look forward to some quality Gtk+ bindings soon
then
03:30 < Ibw> man, cgo is such a pain though
03:31 < Ibw> in fact, gtk is a pain too
03:32 -!- johncylee [n=john@61.57.131.211] has left #go-nuts []
03:32 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
03:32 -!- brunov [n=bruno@190.191.110.64] has quit [Success]
03:34 -!- The_Doctor [n=The_Doct@dhcp-168-105-232-71.wireless.manoa.hawaii.edu]
has joined #go-nuts
03:34 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
03:35 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts
03:37 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
03:40 < tanamo> Ibw, wow man congrats, actually im experimenting with it as
of now, could you share some code please?  hehe
03:41 < Ibw> Sure.  The hardest part was getting cgo to cooperate though.
03:41 < tanamo> can you please see my code?
03:41 < Ibw> http://gopaste.org/view/HeUF3
03:41 < tanamo> ah thanks
03:42 < Ibw> I'm not sure how I will get callbacks to work though...
03:42 < Ibw> hmm
03:42 < Ibw> this stupid gobject system makes cgo stutter all the time
03:42 < Ibw> not fun at all
03:42 -!- path[l] [n=path@115.240.119.128] has joined #go-nuts
03:43 < kuroneko> you can't yet.
03:43 < kuroneko> callbacks require stuff that hasn't been written yet
03:43 < kuroneko> like a C->Go FFI
03:43 < Ibw> Ya, that's what I was thinking.  I may be able to work around
it somehow, but it won't be pretty
03:44 < kuroneko> ultimately you've got to call Go code from C
03:44 < kuroneko> I'm not sure how to make it pretty at all from that point
03:44 < KirkMcDonald> D managed to do it.
03:44 < kuroneko> there just isn't the support for it right now
03:44 < kuroneko> KirkMcDonald: D probably does less magic.
03:44 < KirkMcDonald> True.
03:44 < Ibw> I suppose so.  I could also somehow dump all the events into a
stack which Go can access, then Go loops through the event stack.  Not really
callbacks, but it solves the problem
03:44 < kuroneko> and in gccgo, it's not as hard too
03:44 < kuroneko> Ibw: "ew"
03:44 < kuroneko> but yes, it'll work.
03:44 < Ibw> hah
03:45 -!- cpr420 [n=cpr420@67.165.199.143] has quit ["Vision[0.9.7-H-090423]: i've
been blurred!"]
03:45 < Ibw> Then on the Go side, I could pretty that up a bit
03:45 < kuroneko> what's really needed are people who are crazy enough to
hack on cgo
03:45 < kuroneko> and provide the other half of the problem
03:45 < kuroneko> the C->Go calling support
03:46 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
03:46 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-nuts
03:47 < directrixx> > fmt.Printf("%T",{'0'});
03:48 < General1337> : malformed HTTP status code "HTML"
03:48 < General1337> what is that
03:49 < kuroneko> General1337: exactly what it says.
03:49 < General1337> :|
03:49 < General1337> what does it mean
03:49 < kuroneko> hint: HTTP status codes are numerical
03:49 < Ibw> kuroneko: agreed
03:50 < Ibw> @eval 1
03:50 < Ibw> no bot
03:51 < kuroneko> secondary hint: where do you think the '404' in the
standard document not found on the web comes from
03:51 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
03:51 < General1337> ok
03:51 < General1337> but that's not a numerical error
03:51 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
03:51 < General1337> or code
03:51 < kuroneko> yes it is.
03:51 < kuroneko> 404 is a numerical error.
03:51 < kuroneko> :P
03:51 < General1337> no I mean
03:51 < General1337> malformed HTTP status code "HTML"
03:51 < kuroneko> anyway, your error message suggests you're doing something
wrong.
03:51 < General1337> where is the numerical code
03:51 < kuroneko> or something is very broken
03:52 < General1337> well it works when I use just a link
03:52 < General1337> im doing an http request
03:52 < General1337> so if I do http://whatever.com
03:52 < General1337> it works
03:52 < General1337> BUT
03:52 < kuroneko> that much is obvious
03:52 < General1337> if I use "http://whatever.com" + whatever[1]
03:52 < General1337> it breaks, and when I print it out, it displays it
correctlyt, going to the link itself, it works
03:52 < kuroneko> what's whatever[1] ?
03:52 < General1337> it retrieves a command I send to it
03:53 < General1337> which it retrieves correctly, when I do http get though
it doesn't like it
03:53 < kuroneko> what is it literally when it fails
03:53 < kuroneko> you're probalby producing an invalid request
03:53 < General1337> the link?
03:53 < kuroneko> and getting strange results back
03:53 < General1337> Get
http://services.tvrage.com/feeds/full_search.php?show=buffy
03:53 < General1337> : malformed HTTP status code "HTML"
03:54 < General1337> this is what happens when it errors
03:54 < General1337> when it works correctly, instead of displaying that
link it shows <nil>
03:54 < kuroneko> can you pastebin the code?
03:54 < General1337> i'm using a package someone else made for the xml
03:54 < General1337> it might be from that, but I can paste what I have
03:55 < Ibw> gopaste.org it
03:55 < General1337> Get
http://services.tvrage.com/feeds/full_search.php?show=buffy
03:55 < General1337> : malformed HTTP status code "HTML"
03:55 < General1337> er whoops
03:55 < General1337> http://gopaste.org/view/private:5dIr8
03:55 < Ibw> ergh, maybe you should format the paste
03:55 < General1337> by the way those 2/3 variables are unnecessary I was
just testing it
03:55 < kuroneko> also
03:56 < kuroneko> that's the WRONG WAY to use fmt.Printf
03:56 < General1337> ?
03:56 < kuroneko> Right.
03:56 < General1337> what do you mean wrong way
03:56 < kuroneko> First fault: you must escape retrievalcommand, else you're
inviting hell.
03:56 < kuroneko> Printf is a multiple argument print command.
03:57 < kuroneko> you don't construct the output string using concatination,
you use format specifiers, and pass your component strings as arguments
03:57 < kuroneko> because the first argument to printf is interpretted
specially
03:57 < kuroneko> I'm pretty sure fmt has a .Print which is for whjat you're
doing
03:58 < General1337> this is what it's for though
03:58 < General1337> it's not ruining it either, the tutorial on Go has them
written like this as well
03:58 < kuroneko> so either switch to fmt.Print, or fix your Printfs to use
proper format strings
03:58 < General1337> even though you can use format specifiers and component
strings as well
03:58 < General1337> ok
03:58 < General1337> I'll switch to print then
03:59 < kuroneko> no, the tutorial uses format specifiers
03:59 < kuroneko> the '%s', '%d', etc, is a format specifier
03:59 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Read error: 54 (Connection
reset by peer)]
03:59 < kuroneko> they don't construct the format using user input
03:59 < kuroneko> because that's dangerous and silly
03:59 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
04:00 < kuroneko> secondly, you have to absolutely and utterly make sure
that whatever you postpend onto the request URL is properly escaped
04:00 < General1337> the package escapes it properly
04:00 < kuroneko> [and hence contains no new-lines or carriage returns,
spaces, or other special characters]
04:01 -!- reppie [i=refugee@192.203.228.196] has joined #go-nuts
04:01 -!- fosho [n=afitz@adsl-190-192-105.asm.bellsouth.net] has joined #go-nuts
04:01 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit
["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"]
04:02 < kuroneko> the error you're getting is probably caused by a malformed
request
04:02 < General1337> what does that even mean
04:02 < kuroneko> so I wouldn't count on it
04:02 < General1337> malformed request
04:02 < kuroneko> it means that whatever does the HTTP request is producing
something that doesn't conform fo the HTTP specification
04:02 < kuroneko> this is most likely due to the GIGO principle
04:02 < mikedee> Shouldnt "if xmlloader != nil" be "if xmlloader == nil"?
04:03 < General1337> you know what, I think I know what's wrong
04:03 < General1337> kuroneko I'm using IRC for this, and it splits the
second half which has \r\n
04:03 < General1337> would it be grabbing that?
04:03 < kuroneko> yes.
04:03 < General1337> from retrieval
04:03 < kuroneko> probably.
04:03 < General1337> ah that might be it then
04:03 < kuroneko> hence my comment about escaping the second argument.
04:04 < kuroneko> you can't assume that it's safe, you have to actually
verify that it's clean of crap
04:04 < kuroneko> of make sure it's clean of crap
04:04 < kuroneko> especially since it's basically user input
04:04 < kuroneko> s/of/or/
04:04 < kuroneko> this is also why you can't include client-provided strings
in the first argument of Printf
04:04 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
04:05 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
04:06 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
04:07 -!- Null-A [n=jason@76.21.4.0] has joined #go-nuts
04:08 -!- halfdan_ [n=halfdan@87.169.80.181] has joined #go-nuts
04:12 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
04:14 -!- Null-A [n=jason@76.21.4.0] has left #go-nuts []
04:15 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
04:16 < General1337> kuroneko
04:16 < General1337> do you know how I would get rid of those characters
then?
04:17 -!- moriyoshi [n=moriyosh@i118-19-92-230.s04.a014.ap.plala.or.jp] has joined
#go-nuts
04:20 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has quit [Read error:
104 (Connection reset by peer)]
04:20 -!- dD0T [n=dD0T@unaffiliated/dd0t] has joined #go-nuts
04:22 < General1337> the length of it is "7" which is too much, there's
something added on there I need stripped down only to words
04:22 < General1337> or well letters
04:22 < General1337> ah TrimSpace
04:23 < General1337> yay that worked
04:23 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Read error: 54 (Connection
reset by peer)]
04:24 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
04:26 -!- halfdan [n=halfdan@p57A9496A.dip.t-dialin.net] has quit [Read error: 110
(Connection timed out)]
04:26 -!- mfb [n=mark@j0.ramona.indybay.org] has quit ["leaving"]
04:27 -!- aaront [n=aaront@d24-141-25-171.home.cgocable.net] has joined #go-nuts
04:28 -!- Zeffrin [n=root@203.141.132.221.static.zoot.jp] has joined #go-nuts
04:30 -!- Zeffrin [n=root@203.141.132.221.static.zoot.jp] has quit ["leaving"]
04:31 -!- michaelh| [n=mux@66-169-117-157.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
04:32 -!- michaelh [n=mux@66-169-117-157.dhcp.ftwo.tx.charter.com] has quit [Read
error: 113 (No route to host)]
04:32 -!- Zeffrin [n=zeffrin@203.141.132.221.static.zoot.jp] has joined #go-nuts
04:32 -!- aaront [n=aaront@unaffiliated/aaront] has quit [Client Quit]
04:32 -!- michaelh [n=mux@66-169-117-157.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
04:32 -!- aa [n=aa@190.135.192.25] has quit [Read error: 145 (Connection timed
out)]
04:34 < Zeffrin> so, anyone else finding the syntax hard to digest?  Like
the docs say coming from C everything seems backwards :)
04:35 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
04:35 < scandal> i do keep writing the type first inside func() :)
04:35 < General1337> cwhat does Go use instead of Char?
04:35 < scandal> byte
04:35 < General1337> lol
04:36 < vegai> how's that funny?
04:37 -!- dru [n=VirUs@adsl-75-6-5-246.dsl.spfdmo.sbcglobal.net] has joined
#go-nuts
04:39 -!- Fl1pFl0p [n=FlipFlop@68.8.225.187] has joined #go-nuts
04:40 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
04:43 -!- Fl1pFl0p [n=FlipFlop@68.8.225.187] has left #go-nuts []
04:43 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit [Read error: 104
(Connection reset by peer)]
04:44 < Zeffrin> So with goroutines, so far the max running at a time is
defined at compile time?  If so, will that change in the future does anyone know?
04:45 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
04:47 < Zeffrin> ohwait its the runtime that uses GOMACPROCS already right..
so with any luck in the future that env var will be something more automated
04:48 < scandal> http://golang.org/pkg/runtime/#GOMAXPROCS "This call will
go away when the scheduler improves.  "
04:48 -!- aa [n=aa@r190-135-136-19.dialup.adsl.anteldata.net.uy] has joined
#go-nuts
04:50 -!- michaelh| [n=mux@66-169-117-157.dhcp.ftwo.tx.charter.com] has quit [Read
error: 113 (No route to host)]
04:52 -!- path[l] [n=path@115.240.119.128] has quit [Read error: 60 (Operation
timed out)]
04:52 -!- Drusepth_ [n=VirUs@adsl-75-6-5-246.dsl.spfdmo.sbcglobal.net] has joined
#go-nuts
04:53 -!- Makavel [n=eddw@hoasb-ff08dd00-36.dhcp.inet.fi] has quit ["Leaving"]
04:54 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-nuts
04:56 -!- triplez [n=triplez@121.7.199.95] has joined #go-nuts
04:57 < Zeffrin> woot
04:58 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
04:58 < Amaranth> Zeffrin: That's not a limit to the number of goroutines
you can use, that's a limit to the number of processors/cores go will try to run
the goroutines on
04:59 < Amaranth> But if a goroutine blocks on a syscall it'll spawn a new
thread so other goroutines keep running automatically
04:59 -!- djanderson [n=dja@hltncable.pioneerbroadband.net] has quit [Read error:
60 (Operation timed out)]
05:00 -!- drusepth [n=VirUs@adsl-75-6-5-246.dsl.spfdmo.sbcglobal.net] has quit
[Read error: 60 (Operation timed out)]
05:03 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
05:09 -!- roto [n=roto@64.79.202.154] has quit [Client Quit]
05:09 -!- woofer2 [n=wooferer@168.81-166-171.customer.lyse.net] has quit [Read
error: 113 (No route to host)]
05:09 -!- Drusepth__ [n=VirUs@adsl-75-6-5-246.dsl.spfdmo.sbcglobal.net] has joined
#go-nuts
05:09 -!- tonyg [n=tonyg@82.153.198.135] has joined #go-nuts
05:13 < tonyg> what is idiom for reading a line of console input from the
user?
05:13 < tonyg> is it bufio's ReadSlice?
05:14 < tonyg> ...  cause that seems very low-level
05:15 -!- cpr420 [n=cpr@67.165.199.143] has joined #go-nuts
05:15 -!- Drusepth_ [n=VirUs@adsl-75-6-5-246.dsl.spfdmo.sbcglobal.net] has quit
[Read error: 60 (Operation timed out)]
05:16 < Gracenotes> you can ReadString
05:16 < Gracenotes> to \n
05:16 < tonyg> on bufio.Reader, right?
05:17 < Gracenotes> yes.  in terms of IO, what it provides is along the
lines of C
05:17 < tonyg> great.  Thanks, Gracenotes!
05:17 < tonyg> I'll give it a go
05:17 < Gracenotes> if you have \r\n terminated lines, it might be more
complicated..  but quite doable :) and as for \r-terminated..  you may as well
give up there..
05:18 < tonyg> heh
05:18 < tonyg> yeah
05:18 < tonyg> i'm still just finding my feet
05:18 < tonyg> nothing serious yet
05:20 -!- roto [n=roto@64.79.202.154] has joined #go-nuts
05:21 -!- Drusepth_ [n=VirUs@adsl-75-6-5-246.dsl.spfdmo.sbcglobal.net] has joined
#go-nuts
05:21 -!- ybits [n=ryan@68.46.83.85] has joined #go-nuts
05:21 -!- ybits [n=ryan@68.46.83.85] has quit [Client Quit]
05:27 -!- Drusepth__ [n=VirUs@adsl-75-6-5-246.dsl.spfdmo.sbcglobal.net] has quit
[Read error: 60 (Operation timed out)]
05:30 -!- The_Doctor [n=The_Doct@dhcp-168-105-232-71.wireless.manoa.hawaii.edu]
has quit ["Leaving..."]
05:33 < Ibw> @eval 1
05:33 < Ibw> Gracenotes: no bot?
05:35 < Gracenotes> I just hg pull -u'd for the compiler source, and am
compiling right now :)
05:36 * Gracenotes boots up the VM meanwhile
05:36 < Gracenotes> now to mount the shared folder containing the binaries..
05:37 < tonyg> hmm.  given a net socket, is it a sensible thing to want to
do to get the underlying fd?  i have a library that implements a network protocol
that wants to read/write a fd
05:37 < tonyg> a c library, i should say
05:37 < tonyg> that i'm wrapping
05:38 -!- rndbot [n=bot@wikipedia/Gracenotes] has joined #go-nuts
05:39 < Gracenotes> @eval math.Pi
05:39 < rndbot> 3.1415927
05:39 < Gracenotes> @eval "hello"[3:]
05:40 < rndbot> lo
05:40 < Gracenotes> great :) we have that now
05:40 < Ibw> hmm, How would one leave comments on a codereview.appspot.com
submission?
05:40 -!- The_Doctor [n=The_Doct@168.105.232.71] has joined #go-nuts
05:41 -!- jamalta [n=jamalta@209.20.66.76] has joined #go-nuts
05:41 -!- droid001 [n=g1@79.220.226.70] has joined #go-nuts
05:45 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined
#go-nuts
05:46 < spikebike> @eval 50!
05:46 < rndbot> <Error: syntax error near 50>
05:46 < Ibw> @eval 2
05:46 < rndbot> 2
05:47 < Ibw> @eval os.Args
05:47 < rndbot> [mrunijvjzbjshkkzgen]
05:47 < Ibw> heh
05:47 < Ibw> what is that?
05:47 < Ibw> fmt.Printf("%v", os.Args);
05:47 < Ibw> > fmt.Printf("%v", os.Args);
05:47 < rndbot> [yutbrzhynhxpgapjgen]
05:47 < Ibw> hmm
05:47 < Ibw> Not sure that should be different
05:48 -!- droid0011 [n=g1@79.220.222.157] has quit [Read error: 145 (Connection
timed out)]
05:49 < Gracenotes> that's the name of the executable
05:49 < Gracenotes> by default, os.Args[0] is the executable name
05:49 < Ibw> What would happen if someone ran os.Exit(1)?
05:50 < Ibw> Would the bot quit?
05:50 < Ibw> or how does it work?
05:50 < spikebike> er
05:50 < Ibw> exactly?  No, it probably wouldn't quit woudl it
05:50 < Ibw> no
05:50 < Ibw> I don't suppose so
05:50 < Gracenotes> the subprocess would quit
05:50 < spikebike> it's gotta be running in s sub process
05:50 < Ibw> ya, Just realized how it probably worked
05:50 < spikebike> a python bot might though
05:50 < Gracenotes> > fmt.Print("hello"); os.Exit(483);
05:50 < rndbot> hello
05:50 < Ibw> cool
05:50 < Gracenotes> afaik it is relatively hard to bring the bot down
05:51 < Ibw> @eval os.Time
05:51 < rndbot> 0x805063e
05:51 < Ibw> @eval os.Time()
05:51 < rndbot> <Error: implicit assignment of (sec int64, nsec int64,
err os.Error) field 'sec' in ...>
05:51 < spikebike> > syscall.sleep(1e9);
05:51 < rndbot> <Error: undefined: syscall>
05:52 -!- Drusepth__ [i=VirUs@adsl-75-6-5-246.dsl.spfdmo.sbcglobal.net] has joined
#go-nuts
05:52 < Ibw> >sec, nsec, err := os.Time(); fmt.Printf("%v", sec);
05:52 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has quit
["Leaving"]
05:52 -!- crashR [n=crasher@codextreme.pck.nerim.net] has quit ["Leaving."]
05:52 < Ibw> > sec, nsec, err := os.Time(); fmt.Printf("%v", sec);
05:52 < rndbot> 1259128415
05:52 < Ibw> > sec, nsec, err := os.Time(); fmt.Printf("%v", sec);
05:52 < rndbot> 1259128420
05:52 < Gracenotes> I should have it detect return functions like that
05:52 < Ibw> > sec, nsec, err := os.Time(); fmt.Printf("%v", sec);
05:52 < rndbot> 1259128425
05:52 < Ibw> Would be nice
05:52 < Ibw> 5 second timer resolution?  You're running Windows?
05:53 < Gracenotes> would need some type inference.  probably kind of hacky
though.
05:53 < Ibw> VritualBox issues?
05:53 < spikebike> >time.sleep(1e9*1000)
05:53 < Ibw> Maybe its just the function
05:53 < Gracenotes> Ibw: eh?  :x
05:53 < Ibw> nothing
05:53 < Ibw> I'm talking nonsense
05:53 < spikebike> >time.sleep(1e9*1000)
05:53 < Ibw> A bit tired I suppose
05:53 < Ibw> > os.Lstat(".");
05:53 < rndbot> <no output>
05:53 < Ibw> @eval os.Lstat(".");
05:53 < rndbot> <Error: syntax error near "<string>">
05:54 < Gracenotes> (semicolon)
05:54 < Ibw> @eval os.Lstat(".")
05:54 < rndbot> <Error: implicit assignment of (dir *os.Dir, err
os.Error) field 'dir' in ...>
05:54 < Gracenotes> hm.  I should have multiple return values
05:54 < Ibw> totally
05:54 -!- Drusepth_ [n=VirUs@adsl-75-6-5-246.dsl.spfdmo.sbcglobal.net] has quit
[Read error: 60 (Operation timed out)]
05:55 -!- dru [i=VirUs@75.6.5.246] has joined #go-nuts
05:55 < Gracenotes> @eval os.Remove("important_file");
05:55 < rndbot> <Error: syntax error near "<string>">
05:55 < Ibw> func fun1() { gosub fun2(); } func fun2() { gosub fun1(); }
fun();
05:55 < Ibw> hmm
05:55 < Gracenotes> heh
05:55 < Ibw> what would that do?
05:55 < Gracenotes> @eval os.Remove("important_file")
05:55 < rndbot> os.Remove not allowed
05:56 < Ibw> func fun1() { gosub fun2(); } func fun2() { gosub fun1(); }
fun1();
05:56 -!- crashR [n=crasher@62.212.121.29] has joined #go-nuts
05:56 < Ibw> well, the syntax is wrong
05:56 < Ibw> totally
05:56 < Gracenotes> would probably make lots of goroutines and run out of
memory
05:56 < Ibw> Would you not like that?
05:56 < Gracenotes> and, if main exits immediately after that, the
goroutines probably wouldn't stick around either
05:56 < Ibw> func fun1() { go fun2(); } func fun2() { go fun1(); } fun1();
05:56 < Gracenotes> also, declarations like that aren't allowed in main
mehods
05:56 < Ibw> Oh
05:57 < Ibw> is that how the bot works?
05:57 < Ibw> darn
05:57 < Ibw> go main(); ?
05:57 < Gracenotes> it places it in a main method.  but you can still use
function literals
05:57 < Ibw> hmm, I wonder if that would work.
05:58 < Gracenotes> I'll run through some cases
05:58 < Gracenotes> > var f, g func(); f = func() { go g(); }; g = func()
{ go f(); }; f();
05:58 < rndbot> <no output>
05:58 < Gracenotes> this immediately exits because main does not wait for
goroutines to exit
05:59 < Ibw> mm
05:59 < Gracenotes> > var f, g func(); f = func() { go g(); }; g = func()
{ go f(); }; f(); <-make(chan bool);
05:59 < rndbot> <killed> <no output>
05:59 < Ibw> Hey, I got a Gtk window open from Go. cgo is such a pain
though.
05:59 < Gracenotes> this sticks around, and exits either from timeout or
from too much memory.  probably the former
05:59 < Gracenotes> (since allocation isn't *that* fast, really)
05:59 -!- Drusepth__ [i=VirUs@adsl-75-6-5-246.dsl.spfdmo.sbcglobal.net] has quit
[Read error: 60 (Operation timed out)]
05:59 < Gracenotes> > var f, g func(); f = func() { fmt.Print("f"); go
g(); }; g = func() { fmt.Print("g"); go f(); }; f(); <-make(chan bool);
05:59 < rndbot>
fgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfgfg...
05:59 < Gracenotes> shows some basic output (kills after a certain amount)
06:00 -!- crashR1 [n=crasher@62.212.121.29] has joined #go-nuts
06:00 -!- crashR [n=crasher@62.212.121.29] has quit [Read error: 113 (No route to
host)]
06:01 < Gracenotes> and since the go routines do exit immediately, this
could take constant space in theory
06:04 -!- dschn [n=dschn@pool-70-19-202-109.bos.east.verizon.net] has quit
[Connection timed out]
06:04 -!- crashR1 [n=crasher@62.212.121.29] has quit [Client Quit]
06:05 -!- goplexian [n=acombas@d154-20-0-9.bchsia.telus.net] has joined #go-nuts
06:05 -!- goplexian [n=acombas@d154-20-0-9.bchsia.telus.net] has quit [Read error:
54 (Connection reset by peer)]
06:05 -!- goplexian [n=acombas@d154-20-0-9.bchsia.telus.net] has joined #go-nuts
06:05 -!- goplexian [n=acombas@d154-20-0-9.bchsia.telus.net] has quit [Read error:
104 (Connection reset by peer)]
06:07 < Ibw> Any SDL bindings around?
06:07 -!- goplexian [n=acombas@154.20.0.9] has joined #go-nuts
06:07 -!- goplexian [n=acombas@154.20.0.9] has quit [Remote closed the connection]
06:08 -!- goplexian [n=acombas@154.20.0.9] has joined #go-nuts
06:08 -!- goplexian [n=acombas@154.20.0.9] has quit [Client Quit]
06:08 -!- Altercation [n=Altercat@pdpc/supporter/active/altercation] has quit
[Remote closed the connection]
06:08 < tonyg> cgo generates bad code on opaque structs (issue 334)
06:09 -!- goplexian_ [n=acombas@d154-20-0-9.bchsia.telus.net] has joined #go-nuts
06:09 -!- goplexian_ [n=acombas@d154-20-0-9.bchsia.telus.net] has quit [Remote
closed the connection]
06:09 -!- goplexian [n=acombas@154.20.0.9] has joined #go-nuts
06:10 < goplexian> sorry I'm having irc issues, please excuse my joining and
leaving, i may need to do it once or twice more.
06:10 < goplexian> a bad state somewhere
06:10 -!- Altercation [n=Altercat@pdpc/supporter/active/altercation] has joined
#go-nuts
06:10 -!- goplexian [n=acombas@154.20.0.9] has quit [Client Quit]
06:13 -!- mizai [n=mizai@rhou-164-107-213-187.resnet.ohio-state.edu] has joined
#go-nuts
06:15 < Ibw> Has anyone written a lexical analysis package yet?
06:15 -!- dschn [n=dschn@pool-70-19-202-109.bos.east.verizon.net] has joined
#go-nuts
06:16 < uriel> Ibw: http://go-lang.cat-v.org/library-bindings
06:16 < uriel> for sdl
06:16 -!- goplexian [n=goplexia@d154-20-0-9.bchsia.telus.net] has joined #go-nuts
06:16 < goplexian> hmm
06:16 < uriel> and I think there is a lexical analizer somewhere in the
distribution, can't remember where
06:16 -!- goplexian [n=goplexia@d154-20-0-9.bchsia.telus.net] has quit [Client
Quit]
06:16 < Ibw> yup, found it uriel
06:17 < Ibw> thanks
06:18 -!- drusepth [n=drusepth@adsl-75-6-5-246.dsl.spfdmo.sbcglobal.net] has
joined #go-nuts
06:20 -!- Ibw [n=isaac@67.241.42.134] has quit [Remote closed the connection]
06:22 -!- scandal [n=nobody@unaffiliated/scandal] has quit ["Leaving."]
06:23 -!- drhodes [n=none@209-20-72-61.slicehost.net] has joined #go-nuts
06:26 -!- goplexian [n=goplexia@d154-20-0-9.bchsia.telus.net] has joined #go-nuts
06:26 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
06:26 -!- nictuku [n=nictuku@65.99.215.8] has joined #go-nuts
06:26 -!- tedster [n=tedster@67.23.158.117] has joined #go-nuts
06:26 -!- sliceofpi [n=Adium@c-98-194-205-176.hsd1.tx.comcast.net] has joined
#go-nuts
06:26 -!- gnibbler [n=duckman@210-84-4-209.dyn.iinet.net.au] has joined #go-nuts
06:26 -!- chid_pingedout [n=ppwryktv@c122-106-95-175.rivrw1.nsw.optusnet.com.au]
has joined #go-nuts
06:26 -!- nullpo [n=nullpo@221x252x46x83.ap221.ftth.ucom.ne.jp] has joined
#go-nuts
06:26 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts
06:26 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
06:26 -!- Raziel2p [n=Raziel2p@ti0032a380-dhcp0316.bb.online.no] has joined
#go-nuts
06:26 -!- i3d [n=i3dmaste@74.125.59.73] has joined #go-nuts
06:26 -!- plexdev [n=plexdev@arthur.espians.com] has joined #go-nuts
06:26 -!- pdusen [n=pdusen@68-188-190-192.dhcp.bycy.mi.charter.com] has joined
#go-nuts
06:26 -!- wollw [n=wollw4@75-101-22-68.dsl.dynamic.sonic.net] has joined #go-nuts
06:26 -!- smooge [n=smooge@int.smoogespace.com] has joined #go-nuts
06:26 -!- Odemia [n=Odemia-D@207.47.143.154] has joined #go-nuts
06:26 -!- bakkdoor [n=bakkdoor@s15229144.onlinehome-server.info] has joined
#go-nuts
06:26 -!- sepoy [n=sepoy@c-98-202-50-243.hsd1.ut.comcast.net] has joined #go-nuts
06:26 -!- jvogel [n=jonathan@friedpancakes.com] has joined #go-nuts
06:26 -!- Peter- [n=peter@92.254.21.251] has joined #go-nuts
06:26 -!- tav [n=tav@78.147.249.190] has joined #go-nuts
06:26 -!- coax [n=dark@unaffiliated/coax] has joined #go-nuts
06:26 -!- quag [n=quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts
06:26 -!- stalled [n=411@unaffiliated/stalled] has joined #go-nuts
06:26 -!- adante [n=adante@59.167.212.65] has joined #go-nuts
06:26 -!- jb55 [n=jb55@64.231.41.97] has joined #go-nuts
06:26 -!- Whtiger [n=josh@c-68-40-105-104.hsd1.mi.comcast.net] has joined #go-nuts
06:26 -!- hd_ [n=hd_@253.176.233.220.static.exetel.com.au] has joined #go-nuts
06:26 -!- anticw [n=anticw@c-76-126-87-56.hsd1.ca.comcast.net] has joined #go-nuts
06:26 -!- evilhackerdude [n=stephan@78.46.203.42] has joined #go-nuts
06:26 -!- Gussi [n=gussi@gussi.is] has joined #go-nuts
06:26 -!- TheDracle [n=jthomas@72-254-127-105.hq.ibahn.com] has joined #go-nuts
06:26 -!- F1sh [n=Fish@86.65.182.194] has joined #go-nuts
06:26 -!- raphael [n=rgb@did75-11-82-231-40-223.fbx.proxad.net] has joined
#go-nuts
06:26 -!- exch [n=nuada@h144170.upc-h.chello.nl] has joined #go-nuts
06:26 -!- madmoose [n=madmoose@chef.nerp.net] has joined #go-nuts
06:26 -!- bluszcz [n=bluszcz@static.144.74.47.78.clients.your-server.de] has
joined #go-nuts
06:26 -!- vcgomes [n=vcgomes@li17-238.members.linode.com] has joined #go-nuts
06:26 -!- kcwu [i=fakeidkc@kcwu.csie.org] has joined #go-nuts
06:26 -!- jnwhiteh [n=jnwhiteh@WoWUIDev/WoWI/Featured/Dongle/cladhaire] has joined
#go-nuts
06:26 -!- ac [i=foobar@174-21-106-252.tukw.qwest.net] has joined #go-nuts
06:26 -!- Egelmex [n=me92@myrtle.ukc.ac.uk] has joined #go-nuts
06:26 -!- mrd` [n=matthew@shinobi.dempsky.org] has joined #go-nuts
06:26 -!- vt100 [n=vt@cust125.179.113.38.dsl.g3telecom.net] has joined #go-nuts
06:26 -!- Freeaqingme [n=Freeaqin@ns3.hostdelight.com] has joined #go-nuts
06:26 -!- ukai [n=ukai@220.109.219.244] has joined #go-nuts
06:26 -!- biosed [i=biosed@2001:770:188:0:7171:8f10:4d7a:4fc3] has joined #go-nuts
06:26 -!- zum [n=jsykari@xdsl-83-150-88-4.nebulazone.fi] has joined #go-nuts
06:26 -!- mat_ [n=mat@mx3.absolight.net] has joined #go-nuts
06:26 -!- alamar [i=alamar@oops.kernel.de] has joined #go-nuts
06:26 -!- u4ia [n=weechat@quepasa.solcon.nl] has joined #go-nuts
06:26 -!- RooTer [i=rooter@87-205-66-223.adsl.inetia.pl] has joined #go-nuts
06:26 -!- mjburgess [n=michael@m1.mjburgess.co.uk] has joined #go-nuts
06:26 -!- bombuzal [n=sbus@77.75.105.130] has joined #go-nuts
06:26 -!- hoodow [n=hoodow@2001:41d0:1:f5e5:0:0:0:666] has joined #go-nuts
06:26 -!- uxp [n=uxp@uxp.dsl.xmission.com] has joined #go-nuts
06:26 -!- luca__ [n=luca@host29.190-230-2.telecom.net.ar] has joined #go-nuts
06:26 -!- erikd [n=aphistic@72.14.183.166] has joined #go-nuts
06:26 -!- elmarco [n=elmarco@a83-245-167-151.elisa-laajakaista.fi] has joined
#go-nuts
06:26 -!- Yappo_ [n=yappo@221x243x122x124.ap221.ftth.ucom.ne.jp] has joined
#go-nuts
06:26 -!- Ycros [n=ycros@211.30.206.246] has joined #go-nuts
06:26 -!- jiing [n=jiing@59-120-12-62.HINET-IP.hinet.net] has joined #go-nuts
06:26 -!- ssb [n=ssb@213.167.39.150] has joined #go-nuts
06:26 -!- zhaozhou_ [n=zhaozhou@linfast76.bitnet.nu] has joined #go-nuts
06:27 < tav> wb all
06:27 < sepoy> finally decide to join the real internet again?  ;)
06:28 -!- Zarutian [n=zarutian@194-144-84-110.du.xdsl.is] has quit []
06:29 < tav> ;p
06:29 -!- inittab [n=dlbeer@ip-118-90-81-112.xdsl.xnet.co.nz] has quit [Read
error: 60 (Operation timed out)]
06:30 < goplexian> I wonder if go will find it's way into Sketchup and
Googleearth :) that would be awersome
06:30 -!- inittab [n=dlbeer@ip-118-90-81-112.xdsl.xnet.co.nz] has joined #go-nuts
06:31 -!- binaryjohn [n=binaryjo@24.30.132.50] has joined #go-nuts
06:31 -!- idm [n=i3dmaste@c-24-16-26-161.hsd1.wa.comcast.net] has joined #go-nuts
06:31 < tav> goplexian: interesthing thought
06:31 < tav> but, personally, i hope enough focus is given to nativeclient
to start with
06:32 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
06:32 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
06:33 < goplexian> I have a fair bit of modeling and animation experience,
but I really don't have any experience with sketchup, it may already have a
scripting language built in, I wouldnt be surprised.
06:34 -!- stalled [n=411@unaffiliated/stalled] has quit [Excess Flood]
06:35 < goplexian> I just installed sketchup on my Ubuntu workstation with
wine a little while go, works well so far but haven't given it much of a run yet.
06:35 -!- BMeph [n=black_me@65.103.151.24] has quit [Read error: 104 (Connection
reset by peer)]
06:35 -!- stalled [n=411@unaffiliated/stalled] has joined #go-nuts
06:36 < tav> well, sketchup has a ruby api
06:36 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts
06:36 < tav> http://code.google.com/apis/sketchup/
06:37 -!- beneth` [n=beneth`@beneth.fr] has quit [Remote closed the connection]
06:37 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
06:37 < goplexian> I'm very surprised they didn't go with python, it is
practically an industry standard, or even Lua.
06:37 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
06:37 -!- beneth` [n=beneth`@beneth.fr] has joined #go-nuts
06:38 < tav> the thing i'd like to know is how
http://pdos.csail.mit.edu/papers/vx32:usenix08/ relates to nativeclient — Vx32
seems to be by Russ Cox of Go, so ...  ?
06:38 < uriel> tav: it doesn't relate other than they are similar ideas
06:38 < uriel> (I personally like vx32 better, but I'm no expert)
06:38 < uriel> from what I have heard russ is not involved with nacl
06:39 < tav> goplexian: well, there is supy:
http://www.cosc.canterbury.ac.nz/greg.ewing/SuPy/
06:39 < tav> uriel: ah, i presume the nacl folk are aware of vx32 ?
06:39 < uriel> I think so
06:40 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit [Remote closed
the connection]
06:40 * uriel is not too convinced nacl really makes sense inside a browser, but
I'm clueless, and this is offtopic
06:41 < goplexian> North American Cultural Labratory?
06:41 < tav> http://code.google.com/p/nativeclient/
06:42 < goplexian> Thats a pretty natural place for Google to go given the
Chrome OS thing.
06:43 -!- msbranco [n=msbranco@64-172.61-188.cust.bluewin.ch] has joined #go-nuts
06:44 < tonyg> @eval fmt.Sprintf("%d", 123)
06:44 < rndbot> 123
06:44 -!- maacl [n=mac@0x573526c8.virnxx17.dynamic.dsl.tele.dk] has quit []
06:44 < tonyg> @eval fmt.Sprintf("%v", 123)
06:44 < rndbot> 123
06:45 < goplexian> I hope to soon see $50 Google-mini-laptops running
ChromeOS, which also function as distributed WAP nodes sometime in the next year
or two :)
06:46 -!- drusepth [n=drusepth@adsl-75-6-5-246.dsl.spfdmo.sbcglobal.net] has quit
[Read error: 60 (Operation timed out)]
06:47 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
06:48 * K6HX suspects that $150 is closer to the price range you might see.
06:48 < tav> heh, given the cost of an iPhone, i'd be happy with £500
06:49 < K6HX> the little netbook i'm on now is probably around $250 or so.
I expect them to get somewhat cheaper.
06:50 < goplexian> Yeah but Google likes to give its stuff away for near
free and make money back through advertising.  A $50 advertising infused mini-lap
with free internet access would definitely sell and wouldn't cost Google much
since it is basically just a browser, no need for HD or much ram, or a powerful
cpu.
06:51 < goplexian> Computer nuts would still keep their towers at home, but
the mini-lap would be great for irc, facebook, gmail, or whatever the kids are
into
06:51 -!- beneth` [n=beneth`@beneth.fr] has quit [Remote closed the connection]
06:51 < K6HX> i think it more likely that google will develop white space
cellular phones.
06:51 -!- triplez [n=triplez@121.7.199.95] has quit []
06:52 < Zeffrin> the free internet access would be nice
06:52 < K6HX> it's not clear to me where the line between internet device
and phone will really be drawn, if it is actually meaningful.
06:53 -!- quag_ [n=quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts
06:53 -!- path[l] [n=path@59.162.86.164] has joined #go-nuts
06:53 < goplexian> Zeffrin: yeah, if they started with just one city, say
NY, and bought 2-3 cell towers and provided free internet, and setup the mini-laps
to function as wap points, maybe gave 1000 away for free..  sold another 50,000
easy, it would be free access paid for by advertising.
06:54 < goplexian> the only issue would be security, the $$ would not be a
problem
06:55 < K6HX> i'm not actually a huge believer in the advertising driven
utopia
06:56 -!- cgibreak [n=cgibreak@71.171.143.73] has left #go-nuts ["WeeChat 0.3.0"]
06:56 -!- cpr420 [n=cpr@67.165.199.143] has quit ["Ex-Chat"]
06:56 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts
06:56 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
06:57 < goplexian> heretic!  jk yeah I've always been skeptical of
advertising, but it seems to have worked so far.
06:58 < tav> K6HX: agreed
06:58 < spikebike> goplexian: heh, there's a 3rd world cell phone company
that basically started that way
06:59 < spikebike> he's viewed by some as a hero, radically undercutting the
monopolies that existed
06:59 < spikebike> political pressure mounted from larger corperations
because of his grass roots efforts effecting their profits
07:00 < K6HX> it seems obvious to me that advertising can only fund as much
"stuff" as a fraction of the amount of goods sold by advertising.
07:00 < spikebike> military started pressuring him...  practically leading a
revolt
07:00 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts
07:00 -!- fosho_ [n=notroot@adsl-190-192-105.asm.bellsouth.net] has joined
#go-nuts
07:00 < spikebike> K6HX: sure, well it's a percentage of the perceived
fraction of goods
07:01 < spikebike> the degree that it coorelates varies
07:01 < K6HX> i'm also less than completely enthused about trading my
attention for $$$.
07:01 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
07:02 < K6HX> watching tv is already about 25% wasted attention (100% if you
could the crappy programming :-)
07:02 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
07:03 < spikebike> well yeah I've given up on broadcast tv
07:03 < spikebike> but watch much of the same content through netflix
(without commercials)
07:03 < K6HX> but at least go is interesting.  :-)
07:04 -!- dru [i=VirUs@75.6.5.246] has quit [Read error: 110 (Connection timed
out)]
07:04 < spikebike> I wish scifi would sell me an espisode that I wanted for
$0.50 and give $0.25 to person who made it
07:04 < spikebike> instead of paying $80 to the cable co and them kicking
approximately zero to the people who actually make the content I watch
07:06 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Read error: 54 (Connection
reset by peer)]
07:07 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
07:07 -!- quag [n=quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Read error:
113 (No route to host)]
07:10 -!- knave [n=kn4ve@41.240.187.198] has joined #go-nuts
07:12 -!- goplexian [n=goplexia@d154-20-0-9.bchsia.telus.net] has left #go-nuts []
07:13 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
07:16 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
07:20 < tav> spikebike: don't forget the marketing budget for renaming to
syfy ;p
07:21 < Zeffrin> really it's amazing advertising can pay for so much...
every now and again I google up some company and they've got a paid link so sure
i'll use it but
07:21 < Zeffrin> its pretty rare I'll follow an advert link knowingly
07:21 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
07:22 < tav> Zeffrin: i think most of our experiences would be similar — but
i think advertising revenue mainly comes from the not-so-informed...
07:23 < spikebike> I hit google links fairly often
07:23 < spikebike> usually because I'm *gasp* looking to purchase something
07:24 < tav> well, increasingly i find i can buy direct from the source
07:25 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit [Read error: 60
(Operation timed out)]
07:25 < spikebike> sure
07:25 < spikebike> but sometimes I've got a need without a product in mind
07:26 < Zeffrin> yah, granted actually, there have been times i've been
searching for something without a particular supplier I've probably used a few ad
links
07:27 < Zeffrin> google and then open new tabs of anything relevant sounding
on the first page so meh, maybe it does work for me more than I realise
07:28 < spikebike> anyone done a gccgo build today?
07:28 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
07:34 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
07:36 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
07:37 -!- idm [n=i3dmaste@c-24-16-26-161.hsd1.wa.comcast.net] has quit [Client
Quit]
07:39 -!- aa [n=aa@r190-135-136-19.dialup.adsl.anteldata.net.uy] has quit [Remote
closed the connection]
07:39 -!- rrr_ [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the
connection]
07:39 -!- trickie [n=trickie@94.100.112.225] has joined #go-nuts
07:40 -!- trickie [n=trickie@94.100.112.225] has quit [Client Quit]
07:40 < msbranco> question on mercurial...
07:40 -!- trickie [n=trickie@94.100.112.225] has joined #go-nuts
07:40 < msbranco> after I do hg change...
07:41 < msbranco> that's it right?  or do i need to do hg mail ?
07:41 < anticw> hg submit
07:41 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
07:41 -!- dschn [n=dschn@pool-70-19-202-109.bos.east.verizon.net] has quit [Read
error: 110 (Connection timed out)]
07:41 -!- AmirMohammad [n=amir@unaffiliated/gluegadget] has quit [Read error: 110
(Connection timed out)]
07:41 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
07:42 -!- th98 [n=jfodw98@c-24-218-4-142.hsd1.ma.comcast.net] has joined #go-nuts
07:42 -!- Chris [n=chris@unaffiliated/chris] has quit ["Hmmm.  EPIC5-0.3.8 (1545)
has another bug.  Go figure..."]
07:43 -!- mizai [n=mizai@rhou-164-107-213-187.resnet.ohio-state.edu] has quit
[Read error: 110 (Connection timed out)]
07:43 -!- th98 [n=jfodw98@c-24-218-4-142.hsd1.ma.comcast.net] has quit [Client
Quit]
07:43 -!- th98 [n=jfodw98@c-24-218-4-142.hsd1.ma.comcast.net] has joined #go-nuts
07:43 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit ["This
computer has gone to sleep"]
07:43 < th98> sup
07:46 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
07:47 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
07:47 < plexdev> http://is.gd/53adx by [Nigel Tao] in
go/src/pkg/exp/draw/x11/ -- Initial exp/draw/x11 implementation.
07:47 -!- lenst [n=user@81-237-244-185-no52.tbcn.telia.com] has joined #go-nuts
07:47 -!- th98 [n=jfodw98@c-24-218-4-142.hsd1.ma.comcast.net] has quit [Client
Quit]
07:48 -!- th98 [n=jfodw98@c-24-218-4-142.hsd1.ma.comcast.net] has joined #go-nuts
07:50 < spikebike> at code.google.com/p/go I have an open issue
07:50 < spikebike> that is labeled fixed.
07:50 < spikebike> but it's not
07:50 -!- al-maisan [n=al-maisa@f049185135.adsl.alicedsl.de] has joined #go-nuts
07:50 < spikebike> I added a comment
07:50 -!- fosho_ [n=notroot@adsl-190-192-105.asm.bellsouth.net] has quit [Read
error: 110 (Connection timed out)]
07:50 < spikebike> can I change it to unfixed?
07:50 -!- al-maisan [n=al-maisa@f049185135.adsl.alicedsl.de] has left #go-nuts
["Parting is tough.."]
07:51 < th98> yes
07:52 -!- mfilenko [n=decoy@ns1.ukr.ua] has quit ["Ex-Chat"]
07:52 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
07:52 -!- directrixx [n=aleksand@68.231.189.247] has quit ["Adios"]
07:52 < spikebike> how?
07:52 < spikebike> it's $311
07:52 < spikebike> #311
07:53 -!- mkanat [n=mkanat@c-67-188-1-39.hsd1.ca.comcast.net] has quit ["Bye!"]
07:53 < th98> what are you trying with go?
07:53 * tav waves to sm
07:53 < spikebike> well at the open I'm trying to reopen my ticket ;-)
07:54 < uriel> spikebike: only developers can change the status of issues
07:54 -!- inittab- [n=dlbeer@ip-118-90-0-154.xdsl.xnet.co.nz] has joined #go-nuts
07:54 < spikebike> ah, k, thanks.  I'll send him an email
07:55 < uriel> spikebike: just wait for iant to wake up
07:55 < uriel> spikebike: he is usually in the channel later in the day
07:55 -!- slashus2 [n=slashus2@74.137.26.8] has joined #go-nuts
07:55 < spikebike> Often too busy at work (or asleep) later in the day,
otherwise I would
07:57 -!- Pete_27 [n=noname@115.64.1.61] has joined #go-nuts
07:58 -!- th98 [n=jfodw98@c-24-218-4-142.hsd1.ma.comcast.net] has quit ["Leaving"]
07:59 -!- awishformore [n=awishfor@78.141.152.48] has joined #go-nuts
07:59 -!- nomism [n=nomism@85.179.247.99] has joined #go-nuts
07:59 -!- nomism [n=nomism@85.179.247.99] has left #go-nuts ["Verlassend"]
08:00 -!- Zeffrin [n=zeffrin@203.141.132.221.static.zoot.jp] has quit [Client
Quit]
08:00 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
08:06 -!- Pete_27 [n=noname@115.64.1.61] has quit [Remote closed the connection]
08:07 -!- inittab [n=dlbeer@ip-118-90-81-112.xdsl.xnet.co.nz] has quit [Read
error: 110 (Connection timed out)]
08:07 -!- dschn [n=dschn@70.19.202.109] has joined #go-nuts
08:07 -!- binaryjohn [n=binaryjo@24.30.132.50] has quit []
08:09 -!- turutosiya [n=turutosi@219.106.251.65] has joined #go-nuts
08:09 -!- idm [n=i3dmaste@c-24-16-26-161.hsd1.wa.comcast.net] has joined #go-nuts
08:09 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit ["Leaving"]
08:11 -!- rakd [n=rakd@219.117.252.7.static.zoot.jp] has quit [Read error: 60
(Operation timed out)]
08:11 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
08:12 -!- stalled_ [n=411@unaffiliated/stalled] has joined #go-nuts
08:12 -!- awishformore_ [n=awishfor@78.141.152.48] has quit [Read error: 113 (No
route to host)]
08:13 -!- rrr_ [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
08:13 -!- rrr_ [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Client Quit]
08:15 -!- alc [n=alc@222.128.142.124] has quit ["Ex-Chat"]
08:16 -!- rrr_ [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
08:17 -!- fosho [n=afitz@adsl-190-192-105.asm.bellsouth.net] has quit ["Peace and
Protection 4.22"]
08:17 -!- stalled [n=411@unaffiliated/stalled] has quit [Read error: 145
(Connection timed out)]
08:23 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
08:23 -!- ritolatu [n=ritolatu@84.251.84.201] has joined #go-nuts
08:25 < tonyg> @eval 1 << 8 | 1
08:25 < rndbot> 257
08:26 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the
connection]
08:29 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
08:29 -!- Zeffrin [n=no@110-175-179-56.tpgi.com.au] has joined #go-nuts
08:29 * spikebike digs through the docs for an explanation of go's _
08:30 < exch> _ is your personal little black hole
08:30 < uriel> or /dev/null ;)
08:30 < exch> indeed :)
08:31 < exch> it means 'i don't need this value.  So get it out of my face'
08:31 < spikebike> _ = freeList <- b; // reuse buffer if room
08:31 < spikebike> var freeList = make(chan *Buffer, 100)
08:32 < spikebike> so that basically says hey GC come get this buffer?
08:32 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection]
08:32 < uriel> spikebike: no
08:32 < spikebike> or does the channel actually get it's buffer back
08:32 < uriel> in the case of _ = x <- chan;
08:33 < uriel> what you do is make the chan read non-blocking
08:33 < exch> in his example, freelist is the channel
08:33 < exch> he;s pushing b into it
08:33 < spikebike> I got that part
08:33 < exch> that's a funky example
08:33 < uriel> ah, yes, didn't pay attention, but anyway, same thing
08:33 < spikebike> it's the "_ =" that's confusing
08:33 < spikebike> (and it's mentioned in just about ever go doc
08:33 < spikebike> )
08:34 < exch> im guessing _ gets the 'success' value and tosses it away
08:34 < spikebike> it's part of the leaky buffer example
08:34 < uriel> spikebike: a channel operation, when used as an expression,
returns True on success, false if it woul have blocked
08:34 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
08:34 < spikebike> http://golang.org/doc/effective_go.html#leaky_buffer is
full example
08:34 < spikebike> it's also on the day3 slides
08:34 < uriel> if you don't care, and just want to do a fetch or send in
case it is possible, by asigning the expression to _, you do that
08:34 < uriel> spikebike: are you paying attention to what we are saying?
08:35 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
08:35 < spikebike> yeah
08:35 < uriel> ok
08:35 < spikebike> I'm just trying to reconsile what is being said with the
command and my understanding of go
08:35 < spikebike> that channel has 100 buffers
08:35 < uriel> I don't think the buffering is relevant
08:35 < uriel> only whatever the operation *would* block or not
08:35 < spikebike> and the comment implies you can use one, then when done
return in
08:35 < spikebike> it
08:36 < uriel> by asigning to _ you never block, and nothing happens in case
you would have blocked
08:36 < tonyg> @eval string([]byte{65,66,67})
08:36 < rndbot> ABC
08:36 < tonyg> @eval string([]byte{165,66,67})
08:36 < rndbot> ¥BC
08:37 < tonyg> @eval string([]byte{196,164,67})
08:37 < rndbot> ĤC
08:38 < tonyg> @eval string([]byte{195,164,67})
08:38 < rndbot> äC
08:38 < tonyg> @eval len(string([]byte{195,164,67}))
08:38 < rndbot> 3
08:38 -!- foucist [n=foucist@69.93.127.31] has joined #go-nuts
08:38 < tonyg> @eval utf8.RuneCountInString(string([]byte{195,164,67}))
08:38 < rndbot> <Error: undefined: utf8>
08:39 < uriel> tonyg: there is #go-run to play with rndbot
08:39 < tonyg> uriel, thanks - and sorry all for the noise
08:39 < uriel> no problem
08:39 * exch wears headphones
08:40 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
08:40 < foucist> i heard Go is a new language designed by some google ppl ?
08:41 < foucist> meh, time to wiki it heh
08:41 * uriel wouldn't call rob and ken 'some google ppl'
08:42 < uriel> of course, isn't like creating Unix is a big deal..
08:42 -!- Sylvain_ [i=d4528311@gateway/web/freenode/session] has joined #go-nuts
08:42 -!- raichoo [n=raichoo@87.123.168.186] has joined #go-nuts
08:43 < spikebike> okay, so ignoring the _
08:44 -!- snearch [n=olaf@g225055205.adsl.alicedsl.de] has joined #go-nuts
08:44 < spikebike> b <- freelist pulls a buffer out of the channel
08:44 -!- foucist [n=foucist@69.93.127.31] has left #go-nuts []
08:44 < spikebike> and freelist <- b puts it back
08:44 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
08:45 < uriel> spikebike: *only* if there is anything to pull (or there is
space in the channel in the case of a push)
08:45 < uriel> that is what the _ = trick does
08:47 < spikebike> so if client loads 50 buffers
08:47 < spikebike> sends them to the server
08:47 < spikebike> server consumers 50 buffers
08:47 < spikebike> consumes
08:48 < spikebike> and then puts them back on the freelist
08:49 < spikebike> there's then 100 buffers in the freelist?
08:50 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
08:50 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
08:51 < spikebike> and the _ trick means if you consume 150 buffers
(allocating 50) then you can put 100 back on the free list and the other 50
silently leak
08:51 < spikebike> (and hopefully get gc'd)
08:51 < spikebike> it's a slick little example
08:51 < spikebike> hadn't thought of channels as pools of buffers instead of
communications before
08:51 < spikebike> especially reusable pools of buffers
08:53 -!- dschn [n=dschn@70.19.202.109] has quit [Read error: 145 (Connection
timed out)]
08:56 -!- kaigan|work
[n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined
#go-nuts
09:00 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
09:01 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
09:01 -!- slashus2 [n=slashus2@74.137.26.8] has quit []
09:03 -!- nullpo [n=nullpo@221x252x46x83.ap221.ftth.ucom.ne.jp] has quit
["Leaving..."]
09:05 -!- Meowtimer [n=meowtime@vpn-ce242012.extern.uni-duisburg-essen.de] has
joined #go-nuts
09:06 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Read error: 54 (Connection
reset by peer)]
09:06 -!- Meowtimer [n=meowtime@vpn-ce242012.extern.uni-duisburg-essen.de] has
quit [Client Quit]
09:07 -!- crashR [n=crasher@codextreme.pck.nerim.net] has joined #go-nuts
09:11 -!- turutosiya [n=turutosi@219.106.251.65] has quit [Read error: 110
(Connection timed out)]
09:16 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
09:22 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
09:22 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
09:23 -!- knave_ [n=Knave@dsl-240-187-198.telkomadsl.co.za] has joined #go-nuts
09:23 -!- Anders_ [n=Anders@90-230-227-144-no110.business.telia.com] has joined
#go-nuts
09:29 -!- knave [n=kn4ve@41.240.187.198] has quit [Read error: 148 (No route to
host)]
09:30 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Read error: 54 (Connection
reset by peer)]
09:31 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
09:37 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
09:37 -!- awishformore [n=awishfor@78.141.152.48] has quit [Remote closed the
connection]
09:38 -!- beneth` [n=beneth`@beneth.fr] has joined #go-nuts
09:39 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
09:39 -!- rbancroft [n=rumble@S01060014bf54b5eb.cg.shawcable.net] has quit [Remote
closed the connection]
09:39 -!- rbancroft [n=rumble@S01060014bf54b5eb.cg.shawcable.net] has joined
#go-nuts
09:40 -!- mizai [n=mizai@rhou-164-107-213-187.resnet.ohio-state.edu] has joined
#go-nuts
09:41 -!- Kashia [n=Kashia@port-92-200-24-186.dynamic.qsc.de] has quit ["This
computer has gone to sleep"]
09:42 -!- jshriver [n=jshriver@24.53.165.86] has quit [Read error: 145 (Connection
timed out)]
09:44 -!- tonyg [n=tonyg@82.153.198.135] has quit [Read error: 148 (No route to
host)]
09:45 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
09:49 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
09:50 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has
joined #go-nuts
09:51 -!- Lorthirk [n=cm0901@109.112.33.43] has joined #go-nuts
09:51 -!- p0g0 [n=pogo@unaffiliated/p0g0] has joined #go-nuts
09:53 -!- tonyg [n=tonyg@82.153.198.135] has joined #go-nuts
09:54 -!- triplez [n=triplez@bb121-7-5-153.singnet.com.sg] has joined #go-nuts
09:57 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
09:57 -!- Pete_27 [n=noname@115.64.1.61] has joined #go-nuts
10:01 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit []
10:02 -!- crashR [n=crasher@codextreme.pck.nerim.net] has quit ["Leaving."]
10:05 -!- Zeffrin [n=no@110-175-179-56.tpgi.com.au] has quit []
10:11 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
10:11 -!- The_Doctor [n=The_Doct@168.105.232.71] has quit [Read error: 131
(Connection reset by peer)]
10:13 -!- XniX23 [n=XniX23@89-212-10-29.dynamic.dsl.t-2.net] has joined #go-nuts
10:19 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
10:19 -!- jshriver [n=jshriver@cblmdm24-53-165-86.buckeyecom.net] has joined
#go-nuts
10:20 * exch flexes his muscles
10:20 < exch> http://github.com/jteeuwen/go-pkg-lastfm
10:20 < exch> One more for the list uriel :)
10:20 < exch> that was a shit ton of work :s
10:21 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
10:21 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has joined #go-nuts
10:21 -!- Pete_27 [n=noname@115.64.1.61] has quit [Read error: 110 (Connection
timed out)]
10:21 < tonyg> how do i get hold of the underlying bytes in a string?
[]byte(s) doesn't work
10:21 < tonyg> @eval []byte("darn")
10:21 < rndbot> <Error: cannot convert "darn" (type string) to type
[]uint8 in conversion>
10:22 < exch> tonyg: b := strings.Bytes("foo");
10:22 < tonyg> exch, thank you!
10:27 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
10:27 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
10:28 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts
10:30 -!- giorgiobasilisco [n=gbasilis@89.97.209.204] has joined #go-nuts
10:31 -!- keeto [n=keeto@121.54.92.149] has quit [Read error: 104 (Connection
reset by peer)]
10:31 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts
10:33 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
10:33 -!- keeto [n=keeto@121.54.92.149] has quit [Read error: 104 (Connection
reset by peer)]
10:33 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
10:33 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts
10:34 -!- giorgiobasilisco [n=gbasilis@89.97.209.204] has left #go-nuts []
10:38 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
10:39 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
10:39 -!- triplez [n=triplez@bb121-7-5-153.singnet.com.sg] has quit []
10:39 < nickjohnson> Can anyone suggest why running 'gotest' on this would
segfault: http://gist.github.com/240988 - but changing the signature of
IterativeFindNode, in kademlia.go, which isn't called anywhere, would eliminate
the segfault?
10:40 < exch> change the signature how?
10:41 < nickjohnson> For example, by turning the "target NodeID" into
"target *NodeID", or turning "delta int" into "delta, foo int"
10:42 < exch> hmm
10:42 < exch> you sure it's not called somewhere?
10:42 < nickjohnson> Positive.
10:42 < nickjohnson> The code still compiles if I comment it out entirely,
and still segfaults even if I comment out the entire method body.
10:43 < exch> code doesn't segfault for no reason..  does the segv give you
a dump of all the running go routines?
10:44 < nickjohnson> It does if there's something wrong with the compiler ;)
10:44 < exch> true :p
10:44 < nickjohnson> And it does - it's crashing in
go/src/pkg/reflect/type.go:305
10:44 < nickjohnson> Being called, ultimately, by rpc.Register
10:45 < nickjohnson> Given the GC and lack of pointer arithmetic in Go,
aren't segfaults pretty much by definition Not My Fault?
10:45 < exch> they can be if you mess around in the reflect package.  I
found that out the hard way earlier :D
10:46 -!- dju [i=dju@80.236.37.39] has quit ["Quitte"]
10:46 < nickjohnson> Heh.  Well, it's Go library code that's doing the
messing around.  :P
10:46 < exch> unsafe.Pointer is called unsafe for good reason apparently :p
10:47 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
10:50 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
10:52 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts
10:55 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
10:56 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
10:59 -!- Meowtimer [n=meowtime@132.252.242.10] has joined #go-nuts
11:00 -!- ziyu [n=ziyuhuan@114-137-227-216.dynamic.hinet.net] has joined #go-nuts
11:00 -!- Meowtimer [n=meowtime@132.252.242.10] has quit [Client Quit]
11:01 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
11:01 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
11:02 < nickjohnson> Gah, vector.New got deleted
11:02 -!- turutosiya [n=turutosi@219.106.251.65] has joined #go-nuts
11:03 -!- rog [n=rog@89.240.136.210] has joined #go-nuts
11:04 -!- dju [i=dju@ip-39.net-80-236-37.suresnes.rev.numericable.fr] has joined
#go-nuts
11:07 < snake_> nickjohnson: segfaults are not 'Not My Fault'.  They are
actually quite often your fault.  You still allowed to shoot yourself into the
foot.  There are couple of safety bars, but that is by no way impossible.
11:07 < nickjohnson> snake_: Besides with reflection and unsafe pointers,
how would one cause a segfault in Go?
11:07 -!- Pete_27 [n=noname@115.64.1.61] has joined #go-nuts
11:07 < XniX23> http://gopaste.org/view/0Q0hw if im not mistaken this code
should do three squares on next to each other?
11:08 < snake_> simplest example of segfault: var a chan int; a<-1;
11:08 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
11:08 < snake_> I just gave you an example.  It segfaults and there is no
unsafe package in sight
11:08 < XniX23> however i get this out:
http://imagebin.ca/view/W4V60biy.html (the code is for the blue squares)
11:08 < nickjohnson> How will that cause a segfault?
11:08 < nickjohnson> Looks to me like it'll just block indefinitely
11:08 < nickjohnson> Oh, uninitialized channel, right
11:09 < nickjohnson> (Shouldn't the compiler catch that?  ;)
11:09 < snake_> it won't catch that.  Not atm at least
11:09 < nickjohnson> Anyway, more to the point, how would the signature of a
method I never call cause a segfault and be my fault?  :P
11:10 < snake_> no idea, sorry.  There is too much code in your link.  Try
to strip it down to at least 20 lines.  Better - to 10
11:11 < nickjohnson> I think I've tracked down the problem to the RPC
package - line 217
11:12 < nickjohnson> If the first argument to a two argument method is not a
pointer, it attempts to print an error to that effect, causing a segfault as
argType is not initialized
11:14 -!- Pete_27 [n=noname@115.64.1.61] has quit [Remote closed the connection]
11:14 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
11:14 -!- Anders_ [n=Anders@90-230-227-144-no110.business.telia.com] has quit
[Read error: 60 (Operation timed out)]
11:15 -!- Anders_ [n=Anders@90-230-227-144-no110.business.telia.com] has joined
#go-nuts
11:17 < nickjohnson> snake_: How's this, then?  :)
11:17 < nickjohnson> http://gopaste.org/view/62pUa
11:18 < XniX23> anyone?  :p
11:20 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
11:20 -!- tonyg [n=tonyg@82.153.198.135] has quit ["Leaving"]
11:21 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
11:21 < nickjohnson> XniX23: Args to Rect appear to be x,y,w,h
11:21 -!- JSharpe2 [n=jamie@5ad1d7f1.bb.sky.com] has quit [Read error: 104
(Connection reset by peer)]
11:22 < nickjohnson> not left,top,right,bottom
11:22 -!- JSharpe [n=jamie@5ad1d7f1.bb.sky.com] has joined #go-nuts
11:24 < nickjohnson> http://code.google.com/p/go/issues/detail?id=338
11:27 -!- ziyu [n=ziyuhuan@114-137-227-216.dynamic.hinet.net] has quit ["Colloquy
for iPhone - http://colloquy.mobi"]
11:27 < XniX23> nickjohnson: ok thanks, ill try that
11:29 -!- andrebq [n=chatzill@189.107.174.172] has joined #go-nuts
11:29 < andrebq> hi
11:30 -!- brunov [n=bruno@190.191.110.64] has joined #go-nuts
11:30 < andrebq> i developed a syntax file for using go with gtksourceview
editors
11:30 < andrebq> is there any place wich i can publish this?
11:30 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
11:30 < knave> the internet !
11:30 < andrebq> well, a more specific location, related to go
11:30 < exch> there are a couple of them around already
11:30 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
11:30 < exch> but you can have it added to the list
http://go-lang.cat-v.org/text-editors/gedit/
11:30 < andrebq> i alredy have svn accounts and other things
11:31 < andrebq> thanks exch
11:31 < exch> uriel maintains that site, so send him a PM with a link to
your file
11:32 < andrebq> exch, if I know that site before, i would not made the file
11:32 < andrebq> they already have 3 versions
11:33 < exch> heh :) the more the merrier :p
11:33 < andrebq> reinvent the wheel...  :(
11:34 < andrebq> thanks anyway
11:35 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
11:36 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
11:36 < andrebq> i will follow this site, to avoid reinventing the wheel
again
11:36 < spikebike> heh cool
11:37 < exch> that site is pretty up to date with the available packages and
tools, so probably a good idea :)
11:37 < spikebike> I just spend up one of the shootout go codes by a factor
of 3
11:37 -!- alc [n=alc@222.128.135.147] has joined #go-nuts
11:39 -!- Anders_ [n=Anders@90-230-227-144-no110.business.telia.com] has quit
["Leaving"]
11:39 -!- andrebq [n=chatzill@189.107.174.172] has quit ["ChatZilla 0.9.85
[Firefox 3.5.3/20090824101458]"]
11:41 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
11:42 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
11:44 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has joined #go-nuts
11:45 -!- alc [n=alc@222.128.135.147] has quit []
11:46 -!- doxtor [n=doxtor@unaffiliated/mitja] has joined #go-nuts
11:46 -!- knave [n=Knave@dsl-240-187-198.telkomadsl.co.za] has quit [Remote closed
the connection]
11:46 -!- alc [n=alc@222.128.135.147] has joined #go-nuts
11:49 < mikedee> Does go support getters and setters, or any plans for it?
11:49 -!- dreda [n=elmindre@h-142-232.A213.priv.bahnhof.se] has joined #go-nuts
11:51 * spikebike looks for the 3 days of PDFs
11:51 < nickjohnson> No, and I don't know
11:51 < spikebike> (for go)
11:52 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
11:52 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
11:53 -!- Meowtimer [n=meowtime@vpn-ce242010.extern.uni-duisburg-essen.de] has
joined #go-nuts
11:56 -!- Meowtimer [n=meowtime@vpn-ce242010.extern.uni-duisburg-essen.de] has
quit [Remote closed the connection]
11:57 -!- oklofok [n=oklopol@a91-153-117-63.elisa-laajakaista.fi] has joined
#go-nuts
11:57 -!- knave [n=Knave@dsl-240-187-198.telkomadsl.co.za] has joined #go-nuts
11:57 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
11:57 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
12:02 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
12:02 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
12:03 -!- Perberos [n=Perberos@190.49.53.219] has joined #go-nuts
12:07 -!- mizai [n=mizai@rhou-164-107-213-187.resnet.ohio-state.edu] has quit
[Read error: 110 (Connection timed out)]
12:07 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
12:08 -!- knave [n=Knave@dsl-240-187-198.telkomadsl.co.za] has quit [Read error:
104 (Connection reset by peer)]
12:08 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
12:10 < r2p2> mikedee, what do you mean with getters and setters?
my_struct.set_a(2) or my_struct.a(2)?
12:10 -!- bechamel [n=bch@host-85-201-159-186.brutele.be] has joined #go-nuts
12:10 -!- knave [n=Knave@41.240.187.198] has joined #go-nuts
12:11 < mikedee> my_struct.something = "blah" - where something is not
defined
12:11 < nickjohnson> r2p2: I presume he means like in .net, or Python
properties, where fetching or setting a field implicitly calls a function
12:11 < nickjohnson> Or maybe not
12:11 < mikedee> I wanted to wrote a ORM
12:11 < mikedee> nick - yes
12:11 < r2p2> ah i see
12:12 -!- alc [n=alc@222.128.135.147] has quit []
12:12 -!- bechamel [n=bch@host-85-201-159-186.brutele.be] has left #go-nuts []
12:14 -!- oklokok [n=oklopol@a91-153-117-63.elisa-laajakaista.fi] has quit [Read
error: 110 (Connection timed out)]
12:14 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
12:15 -!- alc [n=alc@222.128.135.147] has joined #go-nuts
12:16 -!- Sylvain_ [i=d4528311@gateway/web/freenode/x-qjsvtrvovmdhczqk] has quit
[Ping timeout: 180 seconds]
12:17 < mikedee> is there are difference between MyType(v) and v.(MyType)?
12:17 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
12:18 < mikedee> and what about *MyType(v) and v.(*MyType) or even
[]MyType(v) or v.([]MyType) - are they valid?
12:25 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
12:25 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
12:26 -!- Zeffrin [n=no@110.175.179.56] has joined #go-nuts
12:30 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
12:30 -!- path[l] [n=path@59.162.86.164] has quit []
12:30 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
12:31 -!- path[l] [n=path@59.162.86.164] has joined #go-nuts
12:32 -!- hcatlin [n=hcatlin@81.154.246.241] has joined #go-nuts
12:32 < hcatlin> Wow.  373.  nice.
12:33 < hcatlin> That's a good sign for a language...  how interested in
freenode.
12:33 < hcatlin> That's more than #ruby-lang
12:33 < sladegen> it's falling steadily from peak +500
12:34 -!- peter-k [n=petergre@117.136.19.4] has joined #go-nuts
12:34 < hcatlin> steady numbers are what matter.
12:34 < hcatlin> so, that's not great
12:34 < peter-k> hi all the nuts here
12:35 < hcatlin> hello peter
12:35 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
12:35 < hcatlin> i'm evaluating Go for wikimedia
12:35 < hcatlin> when a new lang comes out, someone always learns it to see
if its a good fit for anything
12:36 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
12:36 < vsmatck> Interesting, for what function at wikimedia?  Some sort of
backend service?
12:36 < peter-k> you are talking to yourself hcatlin?
12:36 < hcatlin> peter-k: I'm sharing!
12:36 < peter-k> yeah ,now i see no
12:36 -!- alc [n=alc@222.128.135.147] has quit []
12:36 < hcatlin> Its what I do.
12:37 < hcatlin> vsmatck: yeah, we use a couple in the backend....
12:37 < vsmatck> hah!  :) That wasn't what I meant!
12:37 < hcatlin> Well, nothing particularly yet
12:38 < hcatlin> I guess for me, I am interested to see how easy web dev is
in it
12:38 < hcatlin> m.wikipedia.org is a possible target
12:38 < hcatlin> its in Ruby and has been handling a damn good load in Ruby
12:38 < mikedee> go seems ideal for web services
12:38 < hcatlin> ...but what could a compiled language do?
12:38 < hcatlin> peak for mobile right now is like....  6.8 million a day
12:38 < jdp> the same as any other language
12:38 < vsmatck> Well as a wikipedian I salute your efforts.  :)
12:39 < mikedee> I think go routines are the best feature
12:39 < mikedee> its a shame that they cannot be sharded across machines
though
12:39 < hcatlin> yeah, those look pretty damn cool
12:39 < sladegen> it's far from finished aka production ready.  some really
silly bugs lurking, spec and lib in flux, and implementaion far from optimum.  but
one can write test apps to get a feel for it.
12:39 < mikedee> that would be perfect
12:39 < mikedee> golang.org runs go AFAIK - but that errors a lot
12:40 < hcatlin> sladegen: see, i never know what "not production ready"
means....  if you can get something stable running...  then its stable for that
production environment.  you know what i mean?
12:40 < mikedee> stable != stable under load
12:40 < hcatlin> but yeah, deep/bad bugs can certainly make that difficult
12:40 < hcatlin> hahahah
12:40 < hcatlin> true.
12:40 < sladegen> hcatlin: i suppose one can say it's standard google beta
product for now.
12:40 < hcatlin> has anyone benchmarked webservers in go?
12:41 < vsmatck> I saw a post on the go mailing list comparing a http server
in go to a http server included with libevent.  The performance was about the same
which is impressive.
12:41 -!- peter-k [n=petergre@117.136.19.4] has left #go-nuts []
12:41 < mikedee> go doesnt have enough features to compare it against a
proper web server
12:42 < mikedee> you would only be serving static files, which is not a
bottleneck normally
12:42 < mikedee> + servers like nginx use sendfile which I dont think go
does
12:43 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
12:47 < uriel> hcatlin: remember that Go is still experimental, the language
itself is not completely set in stone, and the implementation is not tunned at all
12:47 < uriel> (the implementation*s* I must have said)
12:48 < uriel> andrebq: can you send me the syntax file?
12:48 < uriel> oh, he left?
12:49 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
12:49 < exch> I think he realizes it would be a bit pointless to submit even
more files :)
12:49 < exch> I told him to do it anyways, but I guess he decided not to
12:51 < nickjohnson> Part 2 of my DHT series:
http://blog.notdot.net/2009/11/Implementing-a-DHT-in-Go-part-2
12:51 < uriel> blah, I wanted to reach 100 syntax files for gedit!  maybe it
would be a new world record or something
12:51 < uriel> nickjohnson: awesome!
12:51 < exch> heh
12:51 < nickjohnson> uriel: I'm not totally satisfied with how it's turning
out, but oh well.
12:51 -!- melba [n=blee@unaffiliated/lazz0] has joined #go-nuts
12:52 < uriel> nickjohnson: well, it takes time to get used to a new
programming style
12:52 < spikebike> has anyone here used alioth shootout?
12:52 -!- turutosiya [n=turutosi@219.106.251.65] has quit [Remote closed the
connection]
12:52 < uriel> channels and goroutines mostly make sense to me because I'm
used a bit to limbo, but the interface stuff is still sinking in..
12:52 < uriel> spikebike: I think rog did
12:52 < nickjohnson> uriel: Indeed.  Also, DHTs are always more complicated
to implement than their specs suggest.  ;)
12:52 * spikebike prods rog
12:52 -!- Sylvain_ [i=d4528311@gateway/web/freenode/x-ecyfvaycnkqplevb] has joined
#go-nuts
12:53 < spikebike> I've much improved one of the go entries, but the form I
found looks like it's for a new benchmark not an existing one
12:53 < uriel> nickjohnson: heh, never tried, but from what I seen in other
projects, that indeed seems to be the case
12:53 < uriel> hey Sylvain_!
12:53 < uriel> spikebike: 'a new benchmark'?
12:53 < rog> spikebike: no i didn't use the website - i just wrote one of
the tests
12:53 < nickjohnson> uriel: And Kademlia is simple as DHTs go
12:54 < spikebike> ah, I have a new entry for mandelbrot with go
12:54 < rog> spikebike: i think rob or rsc has just submitted it
12:54 < spikebike> around 3x faster on my machine
12:54 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
12:54 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
12:55 -!- moriyoshi [n=moriyosh@i118-19-92-230.s04.a014.ap.plala.or.jp] has quit
[Remote closed the connection]
12:55 < uriel> spikebike: I think somebody posted a faster version in
go-nuts recently, but maybe your version is even faster?
12:55 -!- rakd [n=rakd@219.117.252.7.static.zoot.jp] has joined #go-nuts
12:56 < spikebike> I'll look, I'm around 3x faster with 6g, and 4x faster if
I switch to gccgo
12:56 -!- alc [n=alc@222.128.135.147] has joined #go-nuts
12:56 -!- moriyoshi [n=moriyosh@118.19.92.230] has joined #go-nuts
12:56 < uriel> spikebike: nice
12:57 < spikebike>
http://shootout.alioth.debian.org/u64q/help.php#contribute looks kinda like a new
benchmark
12:57 < spikebike> hrm maybe it is
12:57 < spikebike> I'll try it
12:59 -!- knave [n=Knave@41.240.187.198] has quit [Remote closed the connection]
13:00 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
13:01 -!- Fraeon [n=kzer-za@dyn-154-39.public.tut.fi] has joined #go-nuts
13:03 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
13:04 -!- me__ [n=venkates@c-68-55-179-48.hsd1.md.comcast.net] has joined #go-nuts
13:04 -!- rrr_ [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Read error: 104
(Connection reset by peer)]
13:05 -!- gnibbler_ [n=duckman@124-168-4-29.dyn.iinet.net.au] has joined #go-nuts
13:06 -!- moriyoshi [n=moriyosh@118.19.92.230] has left #go-nuts []
13:08 -!- lazz0 [n=blee@unaffiliated/lazz0] has joined #go-nuts
13:10 -!- rares_ [n=rares@c-69-143-38-77.hsd1.va.comcast.net] has joined #go-nuts
13:11 -!- stalled [n=411@unaffiliated/stalled] has joined #go-nuts
13:11 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
13:11 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
13:11 -!- lazz0 [n=blee@unaffiliated/lazz0] has quit [Client Quit]
13:12 < hcatlin> mikedee: why would you only be able to send static files?
13:12 < hcatlin> i'm not up to that point yet...  but that sounds strange to
me?
13:12 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
13:14 < mikedee> its not that you can only do that...  its that you cant do
a realistic benchmark yet because most web servers have many more features
13:14 < hcatlin> ah, right.
13:15 < hcatlin> its hard to ever have meaningful benchmarks.....
13:15 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has quit [Remote closed
the connection]
13:15 < uriel> that doesn't mean those 'features' are necessarily useful,
I'm more worried about more extensive testing of the quirks of http itself
13:16 < mikedee> go really excels in the ease of coding threads IMHO
13:16 -!- simonz05 [n=simon@143.84-49-89.nextgentel.com] has joined #go-nuts
13:16 < mikedee> you can do that in any language, but it will melt your
brain...  go routines and channels are much easier
13:17 < Smergo> Goroutines you mean.
13:17 < Smergo> :)
13:17 < mpl> mikedee: you can do it in C with libthread on plan 9.  or in
limbo.
13:17 < Smergo> And Erlang.
13:18 < mikedee> exactly
13:18 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has joined #go-nuts
13:18 * spikebike submitted the new entry
13:18 -!- gnibbler [n=duckman@210-84-4-209.dyn.iinet.net.au] has quit [Read error:
101 (Network is unreachable)]
13:18 < spikebike> should move go a few steps up in the rankings ;-)
13:19 -!- x2cast2 [n=alvaro@87.218.232.127] has joined #go-nuts
13:20 < spikebike> uriel did you mean posted to the go-nuts mailing list or
irc channel?
13:21 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
13:22 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
13:22 -!- stalled_ [n=411@unaffiliated/stalled] has quit [Read error: 110
(Connection timed out)]
13:22 -!- loureiro [n=loureiro@189.2.128.130] has joined #go-nuts
13:24 -!- x2cast2 [n=alvaro@87.218.232.127] has left #go-nuts []
13:24 < me__> or libtask on C on unix....
13:26 < uriel> spikebike: mailing list
13:27 < spikebike> I'm digging for it, I see a post from the original author
on nov 21st.
13:27 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
13:27 -!- Cyanure [n=cyanure@212-198-164-142.rev.numericable.fr] has joined
#go-nuts
13:27 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
13:28 < spikebike> oh maybe that was the faster one
13:29 < spikebike> there's an older on on nov 15th
13:30 -!- Cyanure [n=cyanure@212-198-164-142.rev.numericable.fr] has quit [Read
error: 60 (Operation timed out)]
13:30 < mikedee> I have been spending 6 months looking at writing a comet
server, I have considered C, C++, PHP, Python and now Go
13:30 < mikedee> Go took < 1 day to get exactly what I want
13:31 < mikedee> the other languages were dead ends
13:32 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
13:33 < r2p2> ther is a nice comet implementation in nitrogen / is it
possible to see the code mikedee?
13:33 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
13:34 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has quit [Remote closed
the connection]
13:35 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has joined #go-nuts
13:38 -!- Pete_27 [n=noname@115.64.1.61] has joined #go-nuts
13:39 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Remote closed the connection]
13:40 -!- Cyanure [n=cyanure@212.198.164.142] has joined #go-nuts
13:40 < uriel> mikedee: awesome
13:47 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has quit ["Leaving"]
13:47 -!- Freeaqingme [n=Freeaqin@ns3.hostdelight.com] has quit [Read error: 110
(Connection timed out)]
13:47 < r2p2> mh
13:47 -!- alphazero [n=alphazer@ip68-106-96-239.dc.dc.cox.net] has joined #go-nuts
13:47 -!- hackbench [n=hackbenc@160.75.106.6] has joined #go-nuts
13:51 -!- ziyu [n=ziyuhuan@114-137-253-23.dynamic.hinet.net] has joined #go-nuts
13:52 < alphazero> HI all!  did a quick look around but didn't find atomic
variables.  Do we roll our own with sync constructs?  I need an atomic flag for
use in a high perf driver that will get read on every request and occasionally
written.  RWMutex wrapped bool then?
13:53 < mikedee> i decided to start with only dom events and multipart/mixed
transfers
13:53 < uriel> alphazero: noticed this thing called *channels*?
13:53 -!- zhaozhou_ [n=zhaozhou@linfast76.bitnet.nu] has quit [Read error: 110
(Connection timed out)]
13:54 -!- lericson [n=lericson@aurorum104-0.aurorum.se] has joined #go-nuts
13:54 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has quit []
13:54 < lericson> Hi, I was thinking I'd make monads in go.  What do you
suggest these would be named?
13:54 < exch> :p
13:54 -!- snearch [n=olaf@g225055205.adsl.alicedsl.de] has quit ["Ex-Chat"]
13:54 < exch> i'm not gonna say it!
13:55 < lericson> Huh?
13:55 < alphazero> Hi uriel.  Yep.  "These are intended for use by low-level
library routines." The driver qualifies for low-level library routine.
13:56 < lericson> I was thinking something like monadsgo or gomonads.
13:56 < lericson> But it still doesn't feel right...
13:56 < exch> gonads of course!
13:56 < lericson> gotcha
13:56 -!- lericson [n=lericson@aurorum104-0.aurorum.se] has left #go-nuts []
13:57 < exDM69> lol @ gonads
13:57 < mikedee> r2p2 - Here is the entire server (except 2 util functions)
- it just relays events received on a tcp port to waiting clients
http://pastebin.com/m1901f54e
13:57 -!- Cyanure [n=cyanure@212.198.164.142] has quit [Success]
13:57 < r2p2> thanks
13:58 < mikedee> i have a dual-MVC framework with php and javascript, this
is part of it....  I am ignoring IE which is great for productivity
13:58 -!- Zarutian [n=zarutian@194.144.84.110] has joined #go-nuts
13:58 < mikedee> i am waiting for all the browsers to implement dom events
(only webkit nightly at the mo) and they do not seem to work properly yet
13:59 -!- ejb [n=ejb@unaffiliated/ejb] has joined #go-nuts
14:01 * spikebike updates the mandelbrot entry on shootout
14:01 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
14:02 -!- sm [n=sm@pool-71-104-89-201.lsanca.dsl-w.verizon.net] has quit [" "]
14:03 -!- Fraeon [n=kzer-za@dyn-154-39.public.tut.fi] has quit []
14:03 < uriel> spikebike: link?
14:03 -!- sm [n=sm@pool-71-104-89-201.lsanca.dsl-w.verizon.net] has joined
#go-nuts
14:03 -!- sm [n=sm@pool-71-104-89-201.lsanca.dsl-w.verizon.net] has quit [Remote
closed the connection]
14:06 -!- rares_ [n=rares@c-69-143-38-77.hsd1.va.comcast.net] has quit
["Leaving..."]
14:08 -!- hackbench [n=hackbenc@160.75.106.6] has quit [Remote closed the
connection]
14:09 < spikebike> umm do you have an alioth account?  (they are free)
14:09 < spikebike> I think it needs approved before it's publically visible
14:09 -!- lenst [n=user@81-237-244-185-no52.tbcn.telia.com] has quit [Remote
closed the connection]
14:10 < spikebike> I already got feedback asking me to add
runtime.GOMAXPROCS(4);
14:11 -!- Spaghettini [n=Spaghett@vaxjo6.150.cust.blixtvik.net] has joined
#go-nuts
14:12 -!- rbohn [n=rbohn@192.206.100.4] has joined #go-nuts
14:12 -!- jamalta [n=jamalta@209.20.66.76] has left #go-nuts []
14:14 -!- ziyu [n=ziyuhuan@114-137-253-23.dynamic.hinet.net] has quit ["Colloquy
for iPhone - http://colloquy.mobi"]
14:17 -!- p4p4 [n=P4p4@82.113.106.24] has joined #go-nuts
14:18 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Success]
14:18 < p4p4> #go-run
14:18 -!- alphazero [n=alphazer@ip68-106-96-239.dc.dc.cox.net] has quit []
14:20 -!- scandal [n=nobody@unaffiliated/scandal] has joined #go-nuts
14:21 -!- Rob_Russell [n=chatzill@70.53.98.76] has joined #go-nuts
14:23 -!- dschn [n=dschn@pool-70-19-202-109.bos.east.verizon.net] has joined
#go-nuts
14:29 -!- dju_ [i=dju@216.168.1.52] has joined #go-nuts
14:31 -!- dju__ [i=dju@80.236.37.39] has joined #go-nuts
14:36 -!- Perberos [n=Perberos@190.49.53.219] has quit [Read error: 145
(Connection timed out)]
14:36 -!- trutkin [n=trutkin@24.42.93.107] has joined #go-nuts
14:38 -!- dreda [n=elmindre@h-142-232.A213.priv.bahnhof.se] has left #go-nuts []
14:41 -!- tonyg [n=tonyg@host238.lshift.net] has joined #go-nuts
14:41 < tonyg> #go-run
14:42 < tonyg> Hi all.  Does 6g have any kind of macro facility?  Even cpp
would be handy
14:43 -!- Freeaqingme [n=Freeaqin@ns3.hostdelight.com] has joined #go-nuts
14:43 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
14:46 -!- ikke [n=1kk3@unaffiliated/ikkebr] has joined #go-nuts
14:46 -!- Perberos [n=Perberos@190.49.20.149] has joined #go-nuts
14:46 -!- dju [i=dju@ip-39.net-80-236-37.suresnes.rev.numericable.fr] has quit
[Read error: 110 (Connection timed out)]
14:46 < mikedee> not AFAIK - it doesnt really sound like it would fit with
the go methodology
14:47 < Rob_Russell> from what i've read the preprocessor (which
traditionally handles macros) is built in to 6g
14:47 < Rob_Russell> so if there were macros that's where they'd be, and
they're not there :)
14:48 < tonyg> ah well.  thanks :)
14:48 < mikedee> I would imagine that it kills compile times
14:48 -!- mizai [n=mizai@rhou-164-107-213-187.resnet.ohio-state.edu] has joined
#go-nuts
14:49 -!- dju_ [i=dju@216.168.1.52] has quit [Read error: 110 (Connection timed
out)]
14:49 < uriel> tonyg: ugh, hasn't cpp caused enough pain to the world
already?
14:49 < uriel> Rob_Russell: there is no such thing as a 'preprocessor' for
go, AFAIK, the C preprocessor is built-in on ken's c compilers
14:50 < uriel> (it is a rather limited and less harmful preprocessor than
the standard C one)
14:51 < uriel> mikedee: the reason to get rid of cpp has nothing to do with
compile times, and all with it being evil and universally abused to commit the
most atrocious and evil crimes
14:51 -!- JSharpe [n=jamie@5ad1d7f1.bb.sky.com] has quit [Success]
14:52 < Rob_Russell> uriel: i was going by section 3.2 of this thing about
the Plan 9 compiler somebody linked to a while back
http://plan9.bell-labs.com/sys/doc/compiler.pdf
14:52 < Rob_Russell> uriel: (which is not 6g)
14:53 < tonyg> uriel, *meh* :-) I miss macros when they're not around.  Must
be my Scheme background.
14:53 < uriel> Rob_Russell: and that is what I said
14:53 < uriel> Rob_Russell: ken's C compilers only implement a (more sane)
subset of the preprocessor
14:53 < uriel> tonyg: if you want scheme macros, you certainly don't want
cpp anyway
14:54 < Rob_Russell> uriel: dunno, i think we both said "built in" and no
macros...
14:54 < uriel> but Go is not scheme (and I love scheme), and macros don't
really fit with the design and philosphy of Go (or C)
14:55 < uriel> Rob_Russell: ken's C compilers do have macros, kind of
anyway, in anyway, none of it has much to do with Go itself
14:55 < tonyg> uriel, true, many macro systems more sophisticated than
string pasting exist; but nothing at all seems a little harsh.  Still, I guess I
know where to find m4 and some makefile hackery, if I need it!
14:55 < mikedee> uriel: I was thinking about preprocessing macros, not the
actual compile
14:55 < uriel> tonyg: it is not harsh, it is sane
14:56 < uriel> having a preprocessor would be repeating one of C's biggest
mistakes
14:56 < uriel> (and perhaps the biggest)
14:56 < mikedee> i agree its better to have nothing than something which
seems ok to start but then shows its limitations
14:56 < uriel> mikedee: and which will bring us back to #ifdef hell
14:57 < mikedee> if function call overhead can be reduced then aren't macros
redundant anyway?
14:57 < tonyg> mikedee, nope
14:57 < me__> tonyg: if you really want it, run m4 on your Go source...
14:57 < uriel> mikedee: the compiler should know when to inline or not
anywat
14:57 < tonyg> me__, indeed.
14:57 < jordyd> uriel: Though a C-like preprocessor is a bad idea, I'd
rather like something like a Lispish macro system.
14:57 < uriel> me__: ugh
14:58 < vsmatck> Why are macros bad?  I've heard the argument that they make
detecting errors harder but that just seems like inadaquacy of compilers.  LLVM
will point out what macro the error occured in.
14:58 -!- decriptor [n=decripto@137.65.133.11] has joined #go-nuts
14:58 < uriel> jordyd: that makes sense in a lispish language, not in Go
14:58 < JBeshir> vsmatck: It means that everything using them has a slightly
different language.
14:58 < mikedee> macros are really ugly...  not sure about bad
14:58 < uriel> vsmatck: they make everything harder
14:59 < uriel> can somebody show me a single sane example of macros used in
C? because i have never seen any
14:59 -!- crashR [n=crasher@62.212.121.29] has joined #go-nuts
14:59 * tonyg eyeroll
14:59 -!- pace_t_zulu_ [n=pacetzul@unaffiliated/pacetzulu/x-585030] has joined
#go-nuts
14:59 < vsmatck> The preprocessor language for C doesn't seem very complex.
How do they make stuff harder?  (I'm not arguing for them BTW, I just don't know).
14:59 < me__> uriel: different opinions of sane; what do you think if
sys/queue.h?
14:59 < JBeshir> Does someone implementing foreach in macro count ass sane?
14:59 < jordyd> Perhaps we should just use Lisp :)
14:59 < JBeshir> It was pretty obvious in semantics, and shortened stuff a
lot.
14:59 < tonyg> jordyd, indeed :)
14:59 < uriel> me__: I tink I need to reach for my barf bag
14:59 < me__> vsmatck: 'not very complex'; container_of?
15:00 < tor7> vsmatck: try debugging some of the more insane parts of the
macro-abuse in ghostscript.  then you will be cured of any notion that macros ever
were a good idea in c
15:00 < nbaum> Anyone can write horrible incomprehensible code with macros.
Anyone can write horrible incomprehensible code without macros.
15:00 < vsmatck> Ah, one of those things you have to have experience to
know?  I've never used macros apart from platform dependend stuff.
15:01 < me__> vsmatck: on a UNIX system?
15:01 < uriel> nbaum: again, show me macro code that is not horrible or
useless
15:01 < vsmatck> I write stuff which works on windows/posix.  So I have a
lot of #ifdef __WIN32 and stuff.
15:01 < me__> fair, that's defensible i think
15:01 < vsmatck> I've never used the "macro functions" much, or whatever
they're called.
15:01 < JBeshir> Defines are usefulish.
15:01 -!- crashR [n=crasher@62.212.121.29] has quit [Client Quit]
15:01 < me__> vsmatck: look at /usr/include/sys/queue.h for a great example
of something that is awful, but tragically makes C better...
15:01 < tor7> trying to trace macro-generated code in a debugger, or even to
understand the source sometimes...  isn't always easy
15:02 < tonyg> uriel, take a look at the backend of gambit sometime.
Macros, like functions, are useful for DSLs
15:02 < uriel> vsmatck: that is the wrong way to do portability (although in
some very few cases it might be necessary), see Rob's sam code to see how portable
C is done right
15:02 < vsmatck> *looks*
15:02 < uriel> (without #ifdef)
15:02 < uriel> tonyg: errr...  building a DSL on top of C is just a *bad*
idea
15:02 < vsmatck> There is not a piece of C in this file!  It's all macros!
15:02 < tonyg> hah
15:02 < me__> vsmatck: :D
15:03 < tonyg> well there you have it i guess :) it's a bad idea!
15:03 < me__> tragically, the result is pretty nice to use...
15:03 < vsmatck> Yeah, hmm!  It does seem like all this should be able to be
done in within the C language.
15:03 < vsmatck> Is this needed in C because of lack of generics?  Like is
this a generic queue?
15:03 < me__> yep
15:03 < uriel> tor7: when it is easy to understand macro code, it is because
the macros aren't doing anything useful (of course I would couldn't whatever
macros ever do anything useful in C)
15:03 < me__> in C, they're pretty much the 'best' way to do generic data
structures; if you're willing to eat the code size explosion
15:04 < nbaum> Smells like a No True Scotsman argument to me.
15:04 < tonyg> :)
15:04 < tor7> uriel: and if they aren't doing anything useful, why have them
eh?
15:04 < vsmatck> Generics in C++ are insanely complicated.  I wonder how
that compares.  D generics seem a bit more sane.
15:04 < tonyg> i guess macros beat uriel up for his lunch money once or
something :)
15:04 < nbaum> You're going to put all macro code in either the
"incomprehensible" or "useless" bin.
15:05 < uriel> tor7: everyone makes mistakes, including Dennis (and I'm sure
that unlike most people that uses macros, he is well aware that it was a mistake)
15:05 < uriel> just like suid, and so many other things were mistakes in
unix
15:05 < me__> vsmatck: C++ templates are implemented ultimately the same way
- creating copies of code with the per-type bits filled in.  the template language
was designed to do generic work, unlike macros, though.
15:05 < uriel> but it seems that only the people that made those mistakes
have been able to learn the lesson, everyone else is stuck
15:06 -!- XniX23 [n=XniX23@89-212-10-29.dynamic.dsl.t-2.net] has quit [Remote
closed the connection]
15:06 < uriel> tonyg: I'm just used to Plan 9's C, which is for the most
part completely free of macros
15:06 -!- zhaozhou_ [n=zhaozhou@linfast76.bitnet.nu] has joined #go-nuts
15:07 < uriel> and every time I run into them, I always end up cursing like
crazy
15:07 < tor7> well, ghostscripts biggest problem is that peter didn't like
writing c code that looked like c
15:07 < tonyg> uriel, fair enough; but dismissing an entire form of
abstraction really seems like strong medicine.  macros have been done well, and
will be done well again; just not in go, I suppose.  Like I say -- I know where to
find m4 (or lisp), should I need it
15:07 < me__> /sys/src/libc/port/pool.c would fail that bar...  also P9 is
not above open-coding lists and such pretty much everywhere, which is another
'solution' to a lack of generics
15:07 < uriel> tor7: that seems to be a common trait of people that abuse
macros ;(
15:08 < mikedee> dont forget sed!
15:08 < uriel> tonyg: I'm not dismissing an entire form of abstraction, as I
said, I love scheme, all I'm saying is that macros in C are an abomination that
should be avoided as much as possible, and probably completely
15:09 < uriel> a feature that makes perfect sense in one language, can be a
total disaster in another
15:10 < uriel> (and in any case, cpp and scheme macros are almost completely
different)
15:12 -!- arun [n=arun@unaffiliated/sindian] has quit [Read error: 104 (Connection
reset by peer)]
15:13 -!- scandal [n=nobody@unaffiliated/scandal] has quit ["Leaving."]
15:15 < mikedee> uriel : Have you ever thought of making a CPAN/PECL style
repo for these extensions?  http://go-lang.cat-v.org/pure-go-libs
15:16 < uriel> mikedee: no, I haven't, and I doubt it would make sense, btw,
I also hate CPAN
15:16 < uriel> ;P
15:16 < mikedee> yeah - I prefer PECL
15:16 < mikedee> all it would need is a common package format
15:17 < mikedee> then a rpc server and a client
15:17 < uriel> I don't think it is yet clear how external packages will be
added to a go installation
15:17 < mikedee> oh
15:17 -!- snicket [n=Promethe@187.149.58.235] has joined #go-nuts
15:18 < mikedee> are they all statically compiled in at the moment?
15:19 < uriel> I think so (which is a good thing IMHO)
15:19 < uriel> but it is more a question of where should they be installed
and so on
15:19 < uriel> and how gotest, the build system, etc will find them, and so
on
15:19 -!- maacl [n=mac@87.53.38.200] has joined #go-nuts
15:20 < uriel> at the moment I think the recommended way is just to put
things on go/pkg/
15:20 < mikedee> then Modift pkg/Makefile ?
15:21 < mikedee> modify
15:21 -!- mdevan [n=mdevan@59.92.157.31] has joined #go-nuts
15:22 -!- triddell [n=tim@207-191-198-64.cpe.ats.mcleodusa.net] has left #go-nuts
[]
15:30 < tav> http://tav.espians.com/ciao-python-hola-go.html
15:32 -!- sm [n=sm@pool-71-104-89-201.lsanca.dsl-w.verizon.net] has joined
#go-nuts
15:33 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts
15:33 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts []
15:34 -!- rakd [n=rakd@219.117.252.7.static.zoot.jp] has quit ["See you..."]
15:35 -!- XniX23 [n=XniX23@89-212-10-29.dynamic.dsl.t-2.net] has joined #go-nuts
15:36 -!- Odemia [n=Odemia-D@207.47.143.154] has quit [Remote closed the
connection]
15:39 -!- Odemia [n=Odemia-D@207.47.143.154] has joined #go-nuts
15:40 < nickjohnson> tav: :(
15:40 < tav> at ?
15:41 < nickjohnson> Leaving Python
15:42 < tav> well, i learnt a lot from that relationship — i'm sure i'll
bring baggage to the new one ;p
15:42 < nickjohnson> I have subscribed to your newsletter, however ;)
15:42 -!- smooge [n=smooge@int.smoogespace.com] has quit [Read error: 113 (No
route to host)]
15:42 < tav> woo!
15:42 -!- smooge [n=smooge@int.smoogespace.com] has joined #go-nuts
15:44 -!- qbit_ [n=qbit_@c-75-71-160-106.hsd1.co.comcast.net] has joined #go-nuts
15:44 -!- mdevan [n=mdevan@59.92.157.31] has quit ["Leaving"]
15:46 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined
#go-nuts
15:47 -!- alc [n=alc@222.128.135.147] has quit []
15:47 -!- raichoo [n=raichoo@87.123.168.186] has quit []
15:48 < dho> djm: uh, there is
15:48 < dho> djm: maybe not in release
15:49 -!- kfx [n=kfx@location-b.madleet.net] has joined #go-nuts
15:50 < djm> dho: ahh, okay, freebsd/amd64 is there, so I was looking there
for the i386 one too
15:50 -!- alc [n=alc@222.128.135.147] has joined #go-nuts
15:51 < dho> djm: if you hg sync or hg pull -u (depending on if you have
codereview or not, respectively), you should find i386 support
15:52 -!- Cyanure [n=cyanure@212.198.164.142] has joined #go-nuts
15:52 < dho> me___: hello
15:53 < me___> dho: hi!
15:53 < djm> dho: thanks
15:53 < dho> me___: you were suggesting a potential talk to jhu acm?
15:53 < dho> djm: no problem :)
15:54 < me___> dho: sure, if you were interested.  just coming by and
chatting would be good too
15:54 < dho> when / where?
15:54 < dho> I only know of the bayview campus which is uberduper close to
me
15:54 -!- Cyanure [n=cyanure@212.198.164.142] has quit [Client Quit]
15:54 < uriel> dho: how did your talk go btw?
15:54 < dho> uriel: pretty ok, but the crowd is largely sysadmins so i
didn't get many q's
15:55 -!- path[l] [n=path@59.162.86.164] has quit [No route to host]
15:57 < uriel> oh well, giving talks is always fun and good practice
15:57 < me___> dho: oops, i was in the wrong tab when i messaged you...
15:57 < dho> yeah, I think it would be a decent talk for a more interested
crowd
15:57 -!- Cyanure [n=cyanure@212.198.164.142] has joined #go-nuts
15:58 -!- path[l] [n=path@122.182.0.38] has joined #go-nuts
15:59 < nickjohnson> tav: When you say "my friend Ade" - is that Ade
Oshineye?
16:00 < tav> nope, Ade Thomas, we built http://www.green.tv together
16:00 -!- Cyanure [n=cyanure@212.198.164.142] has quit [Client Quit]
16:00 -!- Cyanure [n=cyanure@212-198-164-142.rev.numericable.fr] has joined
#go-nuts
16:00 < nickjohnson> ah, okay
16:00 -!- trickie [n=trickie@94.100.112.225] has quit ["outty"]
16:00 -!- fosho [n=notroot@lawn-128-61-112-39.lawn.gatech.edu] has joined #go-nuts
16:01 -!- maacl [n=mac@87.53.38.200] has quit []
16:02 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts
16:02 -!- aa [n=aa@r200-40-114-26.ae-static.anteldata.net.uy] has joined #go-nuts
16:02 -!- snicket [n=Promethe@187.149.58.235] has quit ["Saliendo"]
16:04 -!- chrelad [n=chrelad@76.164.12.11] has joined #go-nuts
16:06 < nickjohnson> uriel: Curse you.  I'm still trying to figure out how
you'd implement Go in .net.  :P
16:08 < uriel> hahaha!
16:08 * uriel is evil
16:08 -!- theGussi [n=gussi@gussi.is] has joined #go-nuts
16:08 -!- doxtor [n=doxtor@unaffiliated/mitja] has quit [No route to host]
16:09 < nickjohnson> Oh, the other caveat is that, like gccgo, it'd have to
emulate goroutines using real threads, I think
16:10 < uriel> nickjohnson: I don't think gccgo *has* to do that, I think it
is just a current limitation
16:10 -!- p4p4 [n=P4p4@82.113.106.24] has quit [Read error: 110 (Connection timed
out)]
16:10 < uriel> (like the lack of garbagecollection)
16:11 < nickjohnson> uriel: True.
16:11 -!- dju__ [i=dju@80.236.37.39] has quit [Read error: 110 (Connection timed
out)]
16:11 < nickjohnson> gccgo doesn't garbage collect?  :/
16:12 < me___> not yet.
16:12 < uriel> I think it is only partially implemented...
16:12 -!- mikedee [n=quassel@91.111.24.173] has quit [Remote closed the
connection]
16:13 < nickjohnson> Well, in .NET, at least, there's no practical way to
schedule your own coroutines that I'm aware of
16:13 < me___> nickjohnson: fibers?
16:13 < me___> (map each coroutine onto one)
16:14 < uriel> me___: I don't think fibers are part of .net
16:14 < nickjohnson> me___: Not supported directly by .net
16:14 < nickjohnson> You can maybe sort of schedule .net processes on fibers
using the native API for .net
16:14 < nickjohnson> But it's iffy at best
16:14 < me___> ah, didn't realize.  i thought CLR exposed fibers
16:17 -!- hd_ [n=hd_@253.176.233.220.static.exetel.com.au] has quit ["Nettalk6 -
www.ntalk.de"]
16:17 -!- pace_t_zulu [n=pacetzul@unaffiliated/pacetzulu/x-585030] has quit []
16:18 -!- Cyanure [n=cyanure@212-198-164-142.rev.numericable.fr] has quit
["Quitte"]
16:18 -!- Venom_X [n=pjacobs@66.54.185.131] has joined #go-nuts
16:19 -!- raichoo [n=raichoo@87.123.168.186] has joined #go-nuts
16:20 -!- Gussi [n=gussi@gussi.is] has quit [Read error: 110 (Connection timed
out)]
16:21 -!- fosho [n=notroot@lawn-128-61-112-39.lawn.gatech.edu] has quit ["Lost
terminal"]
16:22 -!- Meidor [n=quassel@cl-936.ams-05.nl.sixxs.net] has quit [Read error: 60
(Operation timed out)]
16:23 -!- trickie [n=trickie@94.100.112.225] has joined #go-nuts
16:24 -!- Meidor [n=quassel@cl-936.ams-05.nl.sixxs.net] has joined #go-nuts
16:25 -!- Karuna [n=chatzill@114.56.179.150] has joined #go-nuts
16:26 -!- Karuna [n=chatzill@114.56.179.150] has left #go-nuts []
16:27 -!- snearch_ [n=olaf@92.229.52.227] has joined #go-nuts
16:30 -!- FxChiP [n=FxChiP@99-72-237-154.lightspeed.frokca.sbcglobal.net] has quit
[Read error: 110 (Connection timed out)]
16:30 -!- idm [n=i3dmaste@c-24-16-26-161.hsd1.wa.comcast.net] has quit [Client
Quit]
16:33 -!- Sylvain_ [i=d4528311@gateway/web/freenode/x-ecyfvaycnkqplevb] has quit
["Page closed"]
16:37 -!- dju [i=dju@ip-39.net-80-236-37.suresnes.rev.numericable.fr] has joined
#go-nuts
16:39 -!- kaigan|work
[n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit []
16:44 -!- brunov [n=bruno@190.191.110.64] has quit [Read error: 110 (Connection
timed out)]
16:46 -!- trickie [n=trickie@94.100.112.225] has quit [Read error: 113 (No route
to host)]
16:49 -!- vasudev [n=kakashi@117.254.120.217] has joined #go-nuts
16:50 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit ["This
computer has gone to sleep"]
16:55 -!- clearscreen [n=clearscr@213.93.248.70] has joined #go-nuts
16:57 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit []
16:58 < maruel> I almost built 8g with cygwin, but I got a coredump from ld
:(
17:00 < uriel> maruel: is there some particular reason you want to build on
cygwin instead of using the native port?
17:00 < uriel> (just curious)
17:01 < anticw> should a consumer of io.Reader be expected to block on more
data and dal with EOF cleanly should it get one?
17:01 < maruel> uriel: native port on windows?
17:02 < uriel> maruel: yes: http://code.google.com/p/go-windows/
17:03 < maruel> uriel: that's cute, too bad he has forked
17:03 < maruel> I was just trying the path of least resistance
17:03 < uriel> maruel: uhu?  he had to make changes, obviously, the code is
in process of being merged back
17:04 < XniX23> how can i clone a struct?  but it must not be the same in
memory
17:04 < uriel> XniX23: use =?
17:04 < maruel> uriel: ok, interesting
17:04 < Gynvael> woah, already there is a windows port?
17:04 < Gynvael> nicce
17:04 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts
17:04 -!- Rob_Russell [n=chatzill@70.53.98.76] has quit ["ChatZilla 0.9.85
[Firefox 3.5.5/20091102152451]"]
17:05 < XniX23> uriel: oh i thought that these two would point to the same
struct :$
17:05 < maruel> uriel: in any case, if I can make it link in cygwin, it's
fine enough for my needs
17:05 < uriel> XniX23: if you asign a pointer, you will copy the pointer, if
you asign a value, you will copy the value..
17:05 -!- odemia_ [n=Odemia-D@207.47.143.154] has joined #go-nuts
17:06 < uriel> XniX23: if you have a pointer, you do copy = *myptr
17:06 -!- drry [n=drry@unaffiliated/drry] has quit [Read error: 110 (Connection
timed out)]
17:06 -!- p4p4 [n=P4p4@82.113.121.24] has joined #go-nuts
17:06 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
17:06 < uriel> maruel: I think somebody else is working on a cygwin port,
but I'm not sure why, that is why I was asking
17:06 -!- fhs [n=fhs@pool-72-89-203-117.nycmny.east.verizon.net] has joined
#go-nuts
17:06 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
17:07 -!- drry [n=drry@unaffiliated/drry] has joined #go-nuts
17:07 < XniX23> uriel: so if i have func (c *Lala) Do(lala int) { var Lala2
Lala = *c; } ?
17:08 < uriel> anyway, until the changes are merged back, and more of the
libs are ported, if you run windows the best way to play with go is inside a vm
that run slinux
17:08 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts
17:08 < uriel> XniX23: I think you would do { lala =: *c }
17:08 < XniX23> ok i get it
17:09 < XniX23> ty
17:09 < maruel> uriel: I know, I have specific needs, otherwise I wouldn't
bother
17:09 < soul9> aye
17:09 < uriel> hey soul9
17:09 < soul9> anyone know why the rpc module uses http?
17:10 < soul9> uriel: ☺
17:10 < uriel> soul9: didn't know other network protocols existed...
17:11 < soul9> heh
17:11 < soul9> and since http is so reliable
17:11 < uriel> and so simple!  everyone knows http is super simple!
17:11 < uriel> (hah!)
17:12 -!- Odemia [n=Odemia-D@207.47.143.154] has quit [Read error: 60 (Operation
timed out)]
17:12 < soul9> riight#
17:12 < JBeshir> (The "hah!" was to inform people he was being sarcastic in
case they didn't get it.)
17:12 < JBeshir> (As was the double "ii")
17:12 < uriel> JBeshir: hehehehe...
17:13 * uriel hears inside his head rob saying "the generated code is excellent...
it is gcc quality!"
17:13 < soul9> lol
17:14 < soul9> yeah that surprised me
17:15 -!- ssmall [n=stuart@rrcs-97-77-53-108.sw.biz.rr.com] has joined #go-nuts
17:15 < uriel> I could be wrong, but I could sense expontaneously condensed
drops of sarcasm falling like rain when he said that
17:15 < soul9> you did?  heh, i totally thought he was serious
17:16 < uriel> but then, he was using a mac, and we all know what does to
the brain, so who knows, he might have been seriuos!
17:16 -!- rbohn [n=rbohn@192.206.100.4] has quit ["ChatZilla 0.9.85 [Firefox
3.0.15/2009101601]"]
17:16 < uriel> I think the best part was when he said "*where is my
feature!*"
17:17 < eiro> hey soul9 ! playing with go ?
17:17 < soul9> yeah
17:17 < soul9> i'm kind of thinking i want to do some stuff in go
17:17 < eiro> i had no time for my anagram algorithm
17:17 < soul9> but i was so surprised at the rpc stuff
17:17 -!- skelterjohn [n=jasmuth@c-71-58-123-111.hsd1.nj.comcast.net] has joined
#go-nuts
17:17 < soul9> i had to come troll it ;)
17:18 < eiro> stuff to code for work!  but i'll try when i have few minutes
17:18 < uriel> soul9: I think rob said the rpc stuff is a bit of a
placeholder, protocolbuffers are on its way, and other things perhaps too
17:18 < soul9> you're working?  now?  you insane?  :P
17:18 < uriel> soul9: but there is 9p now ;)
17:18 < soul9> uriel: oh cool
17:18 < soul9> uriel: OH WOW WHERE?!
17:19 < soul9> it's in the distribution?
17:19 < uriel> soul9: ah, you lucky bastard don't read 9fans!
17:19 < uriel> soul9: see http://9p.cat-v.org/implementations last line
17:19 < soul9> heh, nope, not that often
17:19 < soul9> awesome, thanks
17:19 < eiro> speaking of 9P, can someone points me to implementor's doc ?
17:19 < skelterjohn> morning, all
17:19 < eiro> (specifications)
17:20 < skelterjohn> if anyone has a few minutes, we're soliciting feedback
(http://code.google.com/p/gomatrix)
17:20 < soul9> eiro: http://plan9.bell-labs.com/sys/man/5/INDEX.html
17:20 < uriel> eiro: http://man.cat-v.org/plan_9/5/intro
17:21 < eiro> thanks, both of ya
17:21 -!- maacl [n=mac@0x573526c8.virnxx17.dynamic.dsl.tele.dk] has joined
#go-nuts
17:21 < uriel> skelterjohn: wow, you guys have made quite a bit of progress
already!
17:21 < eiro> (i'm really new in plan9 world but soul9 told me about some
basics and it seems to be great)
17:21 < skelterjohn> My research got set back about two weeks.
17:22 < eiro> i didn't tried before because there is no way to install plan9
on a pc afaik
17:22 < eiro> only VMs
17:22 < soul9> eiro: qemu
17:22 < soul9> yeah
17:22 < soul9> or 9vx
17:23 -!- malkomalko [n=malkomal@66.234.41.82] has joined #go-nuts
17:23 < soul9> eiro: 9vx uses the same technology as google native client
17:23 < uriel> skelterjohn: hehehe
17:23 < soul9> and so you run plan9 native on unix
17:23 < eiro> soul9, that's another thing i'll try some day :)
17:23 < eiro> latter
17:23 < uriel> skelterjohn: how did you like Go so far?
17:23 -!- maacl [n=mac@0x573526c8.virnxx17.dynamic.dsl.tele.dk] has quit [Client
Quit]
17:23 < skelterjohn> uriel: I like it very much.  There are some quirks that
need to be ironed out, but that is to be expected.
17:24 < uriel> skelterjohn: cool
17:24 -!- Associat0r [n=Associat@62.194.163.153] has joined #go-nuts
17:24 < skelterjohn> I look forward to a more mature 6g :)
17:26 -!- Kashia [n=Kashia@port-92-200-24-186.dynamic.qsc.de] has joined #go-nuts
17:26 -!- directrixx [n=aleksand@68.231.189.247] has joined #go-nuts
17:26 -!- lmoura_ [n=lauromou@200.184.118.130] has joined #go-nuts
17:26 -!- crashR [n=crasher@codextreme.pck.nerim.net] has joined #go-nuts
17:26 < skelterjohn> uriel: Are you one of the go designers?  I ask only
because of the way you posed your question.
17:27 < uriel> skelterjohn: well, seems that fixes and improvements are
coming fast and furious so far...  this week thing shave slowed down a bit, but
seems to be related to the holidays
17:27 -!- Perberos [n=Perberos@190.49.20.149] has quit ["Ex-Chat"]
17:27 < uriel> skelterjohn: me?  no way, I'm just a clown and fanboy ;)
17:27 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
17:27 < uriel> skelterjohn: I try to maintain http://go-lang.cat-v.org and a
few other things..
17:28 -!- __ed [i=bitch@62.147.134.58] has joined #go-nuts
17:28 < skelterjohn> uriel: yeah - I check the changelog every so often.  I
hope to see a nice exception implementation soon.
17:28 < jordyd> cgo gives me this: unexpected type: ...
17:28 < jordyd> Anyone have any idea what that means?
17:28 < skelterjohn> and templating would be good for matrices, too
17:28 < uriel> skelterjohn: exceptions?  I hope not :(
17:28 < skelterjohn> jordyd: not specifically, but the "..." refers to an
extended argument list.
17:28 < uriel> jordyd: cgo doesn't support varargs yet
17:29 < uriel> I think kuroneko was supposed to be working on it ;P
17:29 < skelterjohn> uriel: Why not?  If it can be done without overhead?  A
lot of the matrix routines do the "val, ok" thing and it clutters things up a bit.
17:29 -!- lmoura [n=lauromou@200.184.118.130] has quit [Read error: 113 (No route
to host)]
17:30 < uriel> the more I think about them, the less I like exceptions, they
seem like a convoluted form of CAMEFROM
17:30 < uriel> and in the context of goroutines, how exceptions would work
is not clear at all
17:31 -!- Perberos [n=Perberos@190.49.20.149] has joined #go-nuts
17:31 < uriel> plus explixit error handling is IMHO the only way to write
reliable software
17:31 < skelterjohn> I agree that there are unanswered questions, but if it
were done nicely, gomatrix would be cleaner :)
17:32 < uriel> channels also allow you rather nice ways to pass errors
around if you really want to
17:32 < uriel> skelterjohn: did you see this:
http://code.google.com/p/go/source/detail?r=aff697587839774c069bbf35bc120257d4a83865
17:32 < skelterjohn> How so?  I remember seeing some stuff about that on the
mailing list but I didn't dig down
17:32 < skelterjohn> yes
17:32 < skelterjohn> I noticed that, but it didn't seem ready
17:33 < uriel> skelterjohn: I think it was more of an illustration of some
of the things that are already possilbe without changing anything in the language
17:34 -!- __ed [i=bitch@62.147.134.58] has quit ["changing servers"]
17:34 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
17:34 < skelterjohn> I see try and throw demonstrated - if that isn't
exceptions changing the langauge, what are they for?
17:34 < skelterjohn> or are they just regular functions
17:35 < skelterjohn> Give me a minute to scan the source a bit.
17:35 < uriel> Try() is a function
17:35 < uriel> 6 + // can be emulated using goroutines, channels, and
closures.
17:35 < uriel> blah, copy/paste fail
17:36 < uriel> s/^/5 + // This package illustrates how basic try-catch
exception handling
17:36 < skelterjohn> i see.  interesting.
17:36 -!- gnuvince [n=vince@64.235.203.22] has quit [Remote closed the connection]
17:36 -!- gnuvince [n=vince@64.235.207.85] has joined #go-nuts
17:37 < skelterjohn> there is some boilerplate involved in invoking
exception throwing code, there
17:37 < uriel> again, I don't think that is suggested as a general/universal
solution to error handling, but it shows some of the things you can do if you
really want/need to
17:37 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts
17:37 -!- CallToPower [n=CallToPo@s15229144.onlinehome-server.info] has left
#go-nuts []
17:38 * uriel thinks that between multi-value returns, and error notification via
channels, the need for such tricks is probably very, very small)
17:40 -!- mikedee [n=quassel@91.111.24.173] has joined #go-nuts
17:44 < skelterjohn> Well, it's true that, as a language, go seems to favor
explicit anything
17:44 -!- me____ [n=venkates@c-68-55-179-48.hsd1.md.comcast.net] has quit [Read
error: 104 (Connection reset by peer)]
17:45 < dho> any clue why i'd get an `unknown char type R' when running
godefs?
17:46 < dho> sorry, `unknown type char R'
17:46 < skelterjohn> perhaps someone did char R instead of R char?
17:47 < dho> for what?
17:48 < dho> there's no context.
17:48 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
17:48 < skelterjohn> I dunno.  I don't know what godefs does.
17:48 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
17:48 -!- vasudev [n=kakashi@117.254.120.217] has quit [Read error: 104
(Connection reset by peer)]
17:48 < JBeshir> Hmm.  How WOULD one do compile-time constants in Go?
17:48 < JBeshir> Generate and include a file exporting them or something?
17:49 < dho> the problem is that it's generating `typedef uint64 Sigset' (no
semicolon); sigset is an unsigned int.
17:50 < dho> including if I do `typedef unsigned int $Sigset;' in defs.c
17:51 < dho> it should have the definition; __POSIX_VISIBLE is set.
17:51 -!- alc [n=alc@222.128.135.147] has quit ["Leaving..."]
17:57 < soul9> oh they implemented 9p2000.u :)
17:57 < uriel> silly people :(
17:57 < soul9> heh
17:58 -!- tonyg [n=tonyg@host238.lshift.net] has quit ["Leaving"]
17:58 < soul9> uriel: the thing is that to use a 9p root fs in unix you need
those syml..s
17:58 < uriel> how many people have you seen doing that?
17:58 < soul9> heh there are even sockets
17:58 < soul9> uriel: who knows, maybe they use it ( i think they are the
authors of u9fs also no?)
17:58 < skelterjohn> uriel: I was looking at your website.  Would you please
add gomatrix?  :)
17:59 < skelterjohn> oh you did
17:59 < skelterjohn> dang
17:59 < skelterjohn> well, thanks
18:00 < uriel> skelterjohn: heh, no problem :) added it a few days ago
18:01 < uriel> soul9: no, they are not the authors of u9fs, they are the
ones that hacked up .u onto u9fs, but offtopic -> #cat-v
18:02 < soul9> oh
18:02 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts
18:02 -!- anticw [n=anticw@c-76-126-87-56.hsd1.ca.comcast.net] has quit [Read
error: 110 (Connection timed out)]
18:05 -!- snicket [n=Promethe@148.227.201.174] has joined #go-nuts
18:06 -!- qbit_ [n=qbit_@c-75-71-160-106.hsd1.co.comcast.net] has quit
["WinPants!"]
18:06 -!- qbit_ [n=qbit_@c-75-71-160-106.hsd1.co.comcast.net] has joined #go-nuts
18:08 -!- geocalc [n=geocalc@lns-bzn-37-82-253-36-191.adsl.proxad.net] has joined
#go-nuts
18:09 -!- deufrai [n=deu@www.wardsback.org] has joined #go-nuts
18:16 -!- aho [n=nya@f051022076.adsl.alicedsl.de] has joined #go-nuts
18:17 -!- djanderson [n=dja@hltncable.pioneerbroadband.net] has joined #go-nuts
18:18 -!- Venom_X_ [n=pjacobs@66.54.185.131] has joined #go-nuts
18:19 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
18:19 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined
#go-nuts
18:20 -!- brunov [n=bruno@190.191.110.64] has joined #go-nuts
18:21 -!- GeoBSD [n=geocalc@lns-bzn-37-82-253-36-191.adsl.proxad.net] has quit
[Read error: 110 (Connection timed out)]
18:22 -!- ssmall [n=stuart@rrcs-97-77-53-108.sw.biz.rr.com] has quit ["Leaving."]
18:22 -!- clearscreen [n=clearscr@213.93.248.70] has quit [Read error: 104
(Connection reset by peer)]
18:22 -!- deufrai_ [n=deu@www.wardsback.org] has quit [Read error: 110 (Connection
timed out)]
18:25 -!- Lorthirk` [n=cm0901@109.114.63.27] has joined #go-nuts
18:25 -!- Venom_X [n=pjacobs@66.54.185.131] has quit [Read error: 148 (No route to
host)]
18:26 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
18:28 -!- Lorthirk [n=cm0901@109.112.33.43] has quit [Read error: 104 (Connection
reset by peer)]
18:28 -!- shambler [i=kingrat@mm-187-163-84-93.dynamic.pppoe.mgts.by] has joined
#go-nuts
18:30 < kimelto> morning!
18:32 < alexsuraci> mornin'
18:32 -!- Popog [n=Adium@pool-71-121-200-233.sttlwa.dsl-w.verizon.net] has joined
#go-nuts
18:35 < mikedee> is there an easy way to cast a [500]byte as a string?
18:35 < mikedee> I am using net.UDPConn.Read()
18:36 < directrixx> string(x)
18:36 < mikedee> cannot convert buf (type [500]uint8) to type string in
conversion :(
18:37 < Kashia> what happens if you convert it to a slice first?
18:37 -!- ArtemZ [n=artemz@95-37-214-220.dynamic.mts-nn.ru] has joined #go-nuts
18:37 < alexsuraci> perhaps string(buf[0:499])?
18:37 < Gracenotes> I think you need to make it a slice
18:37 < directrixx> ah
18:37 < Gracenotes> just say [0:]
18:38 < ArtemZ> hello guys
18:38 < alexsuraci> ah, yeah
18:38 < Gracenotes> technically, if the length is 500, it should be [0:500]
18:38 < Gracenotes> since the latter index is exclusive
18:38 < alexsuraci> right
18:38 < mikedee> thanks - that worked
18:39 -!- oklokok [n=oklopol@a91-153-117-63.elisa-laajakaista.fi] has joined
#go-nuts
18:39 -!- ned- [n=ned@c-76-19-208-96.hsd1.ma.comcast.net] has quit [Read error:
104 (Connection reset by peer)]
18:39 < Gracenotes> you could possibly declare the array to make a slice in
the first place.  but I'm not sure if it would allocate it on the stack or not in
that case (or in either case..  500 bytes is a fair amount)
18:40 < ArtemZ> why sometimes 8g cannot find packages?  for example, now it
cannot find http
18:40 -!- ned [n=ned@c-76-19-208-96.hsd1.ma.comcast.net] has joined #go-nuts
18:41 < Gracenotes> ArtemZ: does $GOROOT/src/pkg/http/_obj contain anything?
18:41 < ArtemZ> omg, looks like my $GOROOT has been changed.  thanks
18:42 < Gracenotes> ah.  yeah, the compiler/linker does need it.  doesn't
need gobin, but, yeah
18:42 < Gracenotes> as far as I can tell
18:44 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
18:49 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
[Client Quit]
18:49 -!- gasreaa [n=atwong@nat/slide/x-luisnrawxxfwqobj] has joined #go-nuts
18:51 < ArtemZ> Hmm, I trying to access FileServer function in Handler type,
but it returns req.FileServer undefined (type http.Handler has no field
FileServer)
18:54 -!- gasreaa [n=atwong@nat/slide/x-luisnrawxxfwqobj] has left #go-nuts []
18:55 -!- path[l] [n=path@122.182.0.38] has quit []
18:55 < Kashia> ArtemZ, the FileServer function only returns a new handler
object
18:56 -!- belkiss [n=belkiss@78.235.168.105] has joined #go-nuts
18:57 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit [Read
error: 110 (Connection timed out)]
18:57 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts
18:57 -!- oklofok [n=oklopol@a91-153-117-63.elisa-laajakaista.fi] has quit [Read
error: 110 (Connection timed out)]
18:58 -!- mkanat [n=mkanat@c-67-188-1-39.hsd1.ca.comcast.net] has joined #go-nuts
18:58 < ArtemZ> thanks.
18:58 < ArtemZ> go is so cool :)
18:59 -!- Perberos [n=Perberos@190.49.20.149] has quit ["Ex-Chat"]
19:00 -!- brunov [n=bruno@190.191.110.64] has quit [Read error: 60 (Operation
timed out)]
19:01 < mikedee> hmm string(buf[0:500]) seems to return a string with 500
bytes (mostly null ones)
19:01 < mikedee> when I send it over http the content length is incorrect
19:03 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection]
19:03 -!- Makavel [n=eddw@hoasb-ff08dd00-36.dhcp.inet.fi] has joined #go-nuts
19:03 -!- qbit_ [n=qbit_@c-75-71-160-106.hsd1.co.comcast.net] has quit [No route
to host]
19:04 -!- diabolix [n=jsoyke@206.210.81.55] has joined #go-nuts
19:06 -!- Meidor [n=quassel@cl-936.ams-05.nl.sixxs.net] has quit [Read error: 60
(Operation timed out)]
19:06 -!- Meidor [n=quassel@cl-936.ams-05.nl.sixxs.net] has joined #go-nuts
19:07 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has quit
[Read error: 110 (Connection timed out)]
19:07 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
19:08 -!- aa [n=aa@r200-40-114-26.ae-static.anteldata.net.uy] has quit [Remote
closed the connection]
19:08 < XniX23> hmm...  anyone has any idea why i would get seg fault when
--> press_r_txt := ttf.RenderText_Blended(press_r_font, txt, color); ? i do
call that like a million times but is that the reason?  :|
19:09 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has joined
#go-nuts
19:09 < XniX23> and yes it succeeds until two images touch
19:10 < dho> this is so weird
19:10 < clip9> hm..  how long is the default net.Dail timeout?
19:10 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts
19:13 -!- Lorthirk [n=cm0901@109.114.63.27] has left #go-nuts []
19:13 -!- murodese [n=James@124-169-247-17.dyn.iinet.net.au] has quit [Read error:
101 (Network is unreachable)]
19:13 < mikedee> http://golang.org/pkg/net/#TCPConn.SetTimeout - accroding
to that there is no timeeout
19:14 < clip9> For net.Dial?  That seems pretty strange.
19:15 < clip9> ok getting a invalid arguemnt error after about a minute.
19:18 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits:
DJCapelis, hooopy, sfuentes, kuroneko, nigeltao, spikebike, korfuri, bengl,
chipdude, scoopr, (+8 more, use /NETSPLIT to show all of them)
19:18 -!- stesla_ [n=samuel@saffron.thoughtlocker.net] has joined #go-nuts
19:18 -!- feenode_ [n=emad@mealworm.blorpy.org] has joined #go-nuts
19:18 -!- Netsplit over, joins: kuroneko
19:18 -!- bengl_ [n=benglish@oasis.nexus.carleton.ca] has joined #go-nuts
19:18 -!- Netsplit over, joins: sstangl, chipdude
19:18 -!- Netsplit over, joins: scoopr
19:18 -!- ingmar5 [n=ingmar@endgegner.net] has joined #go-nuts
19:18 -!- DJCapelis [n=djc@capelis.dj] has joined #go-nuts
19:18 -!- sfuentes_ [n=sfuentes@cpe-98-154-70-216.socal.res.rr.com] has joined
#go-nuts
19:18 -!- Netsplit over, joins: nigeltao
19:18 -!- hooopy [i=hoopy@173.30.98.140] has joined #go-nuts
19:18 -!- korfuri [n=korfuri@91.121.194.94] has joined #go-nuts
19:18 -!- Netsplit over, joins: lazzurs
19:18 -!- t5vaha01 [i=t5vaha01@193.167.100.97] has joined #go-nuts
19:19 -!- Netsplit over, joins: lstoll
19:19 -!- niko [i=niko@freenode/staff/ubuntu.member.niko] has joined #go-nuts
19:19 -!- Netsplit over, joins: spikebike
19:21 -!- murodese [n=James@124-169-42-199.dyn.iinet.net.au] has joined #go-nuts
19:24 -!- huf [n=huf@mu.parawag.net] has quit [Read error: 60 (Operation timed
out)]
19:25 -!- trutkin [n=trutkin@24.42.93.107] has quit ["This computer has gone to
sleep"]
19:26 -!- Associat0r [n=Associat@62.194.163.153] has quit []
19:27 -!- huf [i=huf@mu.parawag.net] has joined #go-nuts
19:28 -!- ikke [n=1kk3@unaffiliated/ikkebr] has quit []
19:28 -!- jamalta [n=jamalta@209.20.66.76] has joined #go-nuts
19:31 -!- lmoura_ [n=lauromou@200.184.118.130] has quit [Read error: 113 (No route
to host)]
19:33 -!- lmoura_ [n=lauromou@200.184.118.130] has joined #go-nuts
19:34 -!- jaxdahl [i=foobar@cpe-70-112-126-227.austin.res.rr.com] has joined
#go-nuts
19:34 -!- jaxdahl2 [i=foobar@cpe-70-112-126-227.austin.res.rr.com] has quit
[Connection reset by peer]
19:35 -!- nomism [n=nomism@e179243250.adsl.alicedsl.de] has joined #go-nuts
19:35 -!- nomism [n=nomism@e179243250.adsl.alicedsl.de] has left #go-nuts
["Verlassend"]
19:38 -!- snearch_ [n=olaf@92.229.52.227] has quit ["Ex-Chat"]
19:40 -!- path[l] [n=path@115.240.41.124] has joined #go-nuts
19:40 -!- Fl1pFl0p [n=FlipFlop@68.8.225.187] has joined #go-nuts
19:42 -!- Popog [n=Adium@pool-71-121-200-233.sttlwa.dsl-w.verizon.net] has quit
["Leaving."]
19:42 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection]
19:42 -!- maacl [n=mac@0x573526c8.virnxx17.dynamic.dsl.tele.dk] has joined
#go-nuts
19:43 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has quit
[Connection timed out]
19:43 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
19:45 -!- Zaba_ [n=zaba@about/goats/billygoat/zaba] has joined #go-nuts
19:45 -!- nictuku [n=nictuku@unaffiliated/nictuku] has left #go-nuts []
19:45 -!- nictuku [n=nictuku@unaffiliated/nictuku] has joined #go-nuts
19:45 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has quit ["Leaving"]
19:48 -!- simonz05 [n=simon@143.84-49-89.nextgentel.com] has quit ["Ex-Chat"]
19:49 * dho is confused as to why godefs isn't finding WNOHANG in sys/wait.h
19:52 -!- snicket [n=Promethe@148.227.201.174] has quit [Remote closed the
connection]
19:52 -!- Zaba [n=zaba@about/goats/billygoat/zaba] has quit [Read error: 110
(Connection timed out)]
19:52 -!- niko [i=niko@freenode/staff/ubuntu.member.niko] has left #go-nuts []
19:52 < plexdev> http://is.gd/53Bs2 by [Rob Pike] in go/src/pkg/utf8/ --
rewrite RuneCountInString to use range.
19:53 < dho> there we go
19:53 -!- path[l] [n=path@115.240.41.124] has quit [Read error: 104 (Connection
reset by peer)]
19:55 -!- path[l] [n=path@115.240.41.124] has joined #go-nuts
19:57 -!- muntasir [n=muntasir@202.72.235.199] has joined #go-nuts
19:58 -!- muntasir [n=muntasir@202.72.235.199] has left #go-nuts []
19:58 -!- muntasir [n=muntasir@202.72.235.199] has joined #go-nuts
20:00 -!- alexsuraci [n=alex@71.188.133.67] has quit ["Lost terminal"]
20:01 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has joined
#go-nuts
20:02 -!- p4p4 [n=P4p4@82.113.121.24] has quit [Client Quit]
20:04 -!- brunov [n=bruno@190.191.110.64] has joined #go-nuts
20:04 -!- mikedee_ [n=quassel@91.111.24.173] has joined #go-nuts
20:04 -!- msbranco_ [n=msbranco@64-172.61-188.cust.bluewin.ch] has joined #go-nuts
20:04 -!- ingmar5 [n=ingmar@endgegner.net] has joined #go-nuts
20:06 -!- Fatal_ [i=fatal@debian.as] has joined #go-nuts
20:06 -!- rup_ [i=Rupert@78.159.100.189] has joined #go-nuts
20:06 -!- The_Ball_ [n=The_Ball@123-2-12-83.static.dsl.dodo.com.au] has joined
#go-nuts
20:06 -!- inittab [n=dlbeer@118.90.0.154] has joined #go-nuts
20:06 -!- eek_ [n=eivind@213-155-151-233.customer.teliacarrier.com] has joined
#go-nuts
20:06 -!- feenode [n=emad@mealworm.blorpy.org] has joined #go-nuts
20:06 -!- DJCapeli1 [n=djc@capelis.dj] has joined #go-nuts
20:06 -!- bengl [n=benglish@oasis.nexus.carleton.ca] has joined #go-nuts
20:06 -!- huf_ [i=huf@mu.parawag.net] has joined #go-nuts
20:06 -!- eek [n=eivind@213-155-151-233.customer.teliacarrier.com] has quit
[Remote closed the connection]
20:06 -!- inittab- [n=dlbeer@ip-118-90-0-154.xdsl.xnet.co.nz] has quit [Remote
closed the connection]
20:06 -!- rup [i=Rupert@deathcoil.net] has quit [Remote closed the connection]
20:06 -!- mikedee [n=quassel@91.111.24.173] has quit [Remote closed the
connection]
20:06 -!- msbranco [n=msbranco@64-172.61-188.cust.bluewin.ch] has quit [Remote
closed the connection]
20:06 -!- KiNgMaR [n=ingmar@endgegner.net] has quit [Remote closed the connection]
20:06 -!- feenode_ [n=emad@mealworm.blorpy.org] has quit [Remote closed the
connection]
20:06 -!- bengl_ [n=benglish@oasis.nexus.carleton.ca] has quit [Remote closed the
connection]
20:06 -!- vz [n=vz@static133-147.adsl.no] has quit [Remote closed the connection]
20:06 -!- DJCapelis [n=djc@blender/coder/DJCapelis] has quit [Broken pipe]
20:06 -!- The_Ball [n=The_Ball@123-2-12-83.static.dsl.dodo.com.au] has quit
[Broken pipe]
20:06 -!- Fatal [i=fatal@debian.as] has quit [Broken pipe]
20:06 -!- jshriver_ [n=jshriver@cblmdm24-53-165-86.buckeyecom.net] has joined
#go-nuts
20:06 -!- nathanielk_ [n=quassel@frigga.summersault.com] has joined #go-nuts
20:06 -!- nathanielk [n=quassel@frigga.summersault.com] has quit [Broken pipe]
20:06 -!- huf [i=huf@mu.parawag.net] has quit [Dead socket]
20:06 -!- jshriver [n=jshriver@cblmdm24-53-165-86.buckeyecom.net] has quit [Dead
socket]
20:06 -!- nathanielk_ [n=quassel@frigga.summersault.com] has quit [Remote closed
the connection]
20:08 -!- elmar [n=elmar@dslb-094-219-214-086.pools.arcor-ip.net] has joined
#go-nuts
20:08 -!- vz [n=vz@static133-147.adsl.no] has joined #go-nuts
20:10 -!- hugov [n=hugov@sjc237n225.joh.cam.ac.uk] has joined #go-nuts
20:13 < dho> hahaha
20:13 < dho> $ file gofmt
20:13 < dho> gofmt: , 44.1 kHz, Stereo
20:17 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit ["Leaving"]
20:21 -!- path[l] [n=path@115.240.41.124] has quit [Read error: 145 (Connection
timed out)]
20:24 -!- Daminvar [n=Daminvar@cpe-67-241-129-149.buffalo.res.rr.com] has joined
#go-nuts
20:25 -!- amro [n=amro@li37-20.members.linode.com] has quit [Read error: 104
(Connection reset by peer)]
20:28 -!- Popog [n=Adium@66-192-186-101.static.twtelecom.net] has joined #go-nuts
20:29 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit ["Leaving"]
20:29 -!- path[l] [n=path@115.240.41.124] has joined #go-nuts
20:29 -!- sku [n=sk@93.190.179.37] has joined #go-nuts
20:31 -!- hackbench [n=hackbenc@88.242.151.136] has joined #go-nuts
20:33 -!- octoploid [n=octoploi@77-22-106-65-dynip.superkabel.de] has joined
#go-nuts
20:34 -!- DreamCodeR [n=BleakGad@168.81-166-171.customer.lyse.net] has joined
#go-nuts
20:39 -!- Daminvar [n=Daminvar@cpe-67-241-129-149.buffalo.res.rr.com] has quit
["Leaving"]
20:40 -!- Ibw [n=isaac@cpe-67-241-42-134.twcny.res.rr.com] has joined #go-nuts
20:42 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
joined #go-nuts
20:45 < Ibw> github is pretty cool
20:46 < XniX23> indeed, i wish i knew how to use it lol
20:46 < XniX23> git i mean
20:47 < Ibw> heh, ya.  Mercurial is new for a lot of people though, so I
doubt git would be that much more of a learning curve
20:47 -!- muntasir [n=muntasir@202.72.235.199] has left #go-nuts []
20:49 < XniX23> lbw: hows your gtk doing?  still stuck with gobject?
20:50 < Ibw> XniX23: Well, I got a window open from Go, but yes, gobject is
a pain.  The biggest problem though is how to handle callbacks
20:51 < Ibw> As of now, there is no true way to get callbacks working with
cgo.  I could hack something together though, like C dumping all the events into
an event stack, then something on the Go side making that prettier
20:51 -!- geocalc [n=geocalc@lns-bzn-60-82-254-222-50.adsl.proxad.net] has joined
#go-nuts
20:52 -!- sku [n=sk@93.190.179.37] has quit [" "]
20:53 < XniX23> lbw: oh nice!  you doing that already?
20:54 -!- shambler [i=kingrat@mm-187-163-84-93.dynamic.pppoe.mgts.by] has quit
["What you have been is not on boats."]
20:56 < Ibw> uh, sort of.  Mostly I'm still thinking about how it might be
done.  It would be much easier if I had some nice C++ oop
20:56 < Ibw> Do you know who made gopaste.org?  I want that color scheme
20:56 < Ibw> ah, found the css file
20:57 -!- malkomalko [n=malkomal@66.234.41.82] has quit []
21:00 < Ibw> XniX23: I'll let you know when something usable it going, along
with an email to the mailing list
21:01 < XniX23> alexsuraci or something like that i believe has gopaste.org
21:02 < XniX23> ok thanks lbw
21:03 -!- Kashia [n=Kashia@port-92-200-24-186.dynamic.qsc.de] has quit [Read
error: 60 (Operation timed out)]
21:05 -!- Popog [n=Adium@66-192-186-101.static.twtelecom.net] has quit
["Leaving."]
21:06 -!- Popog [n=Adium@66.192.186.101] has joined #go-nuts
21:06 -!- Popog [n=Adium@66.192.186.101] has quit [Client Quit]
21:06 -!- ikke [n=1kk3@unaffiliated/ikkebr] has joined #go-nuts
21:07 < Ibw> XniX23: I think I'll have to create a layer between pure Gtk
and Go to get rid of all the stupid gobject stuff.  Then cgo won't blow up trying
to figure it out
21:07 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts
21:08 -!- Popog [n=Adium@66-192-186-101.static.twtelecom.net] has joined #go-nuts
21:08 -!- GeoBSD [n=geocalc@lns-bzn-37-82-253-36-191.adsl.proxad.net] has quit
[Read error: 110 (Connection timed out)]
21:09 -!- nomism [n=nomism@85.179.243.250] has joined #go-nuts
21:09 -!- nomism [n=nomism@85.179.243.250] has left #go-nuts ["Verlassend"]
21:12 < XniX23> lbw: good idea
21:12 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has quit [Remote closed
the connection]
21:13 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
21:15 < XniX23> hmmm is it possible that i get segfault coz i use too much
memory?
21:16 < Ibw> XniX23: What are you doing?
21:17 < XniX23> lbw: im playing with a stupid rubic cube game
21:17 < Ibw> XniX23: Pure go?
21:17 < XniX23> yes
21:17 < Ibw> And you're segfaulting?  That doesn't sound right.
21:17 < Ibw> Maybe it's a bug with Go
21:18 < drhodes> I've got a 2d game environment with a tile layout (like
simcity).  Each tile shares a couple channels with each of its neighbors in order
to pass packets around the grid.  Each cell has a couple goroutines pumping data
in and out of these channels.  Each goroutine ends with a
time.Sleep(tenthOfASecond), is this appopriate for rate limiting here?  It's using
%50 cpu with a grid size of 15x15.
21:18 < XniX23> lbw: yes i am segfaulting :(...  im also using sdl-go
21:19 < Ibw> XniX23: Oh, then it's probably a bug/other issue with sdl-go
21:19 < Ibw> No idea though...
21:19 < XniX23> lbw: so go should never segfault?
21:22 < Ibw> XniX23: Theoretically, no.  That's sort of the point, Go is
supposed to be safe.  The only reason it should segfault (I think) is because of
something screwy with mixing C in there
21:22 < mikedee_> i have seen quite a few segfaults
21:23 < mikedee_> no c
21:24 -!- alexsuraci [n=alex@71.188.133.67] has joined #go-nuts
21:24 < XniX23> is it possible that it makes so much variables that it
looses available space and tries to get the address it shouldn't?
21:25 < Ibw> mikedee_: XniX23: I guess so, especially after hearing what
mikedee_ said.  But from what I understand, it shouldn't.  That's an issue with Go
21:26 < sladegen> > a:=new(int);b:=*a;
21:26 < rndbot> <no output>
21:26 < sladegen> > a:=new(int);b:=*a;print(b)
21:26 < rndbot> 0
21:26 < Ibw> do @eval
21:27 < Ibw> @eval a:=new(int);b:=*a;
21:27 < rndbot> <Error: syntax error near a, syntax error near a>
21:27 < Ibw> um
21:27 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts
21:27 < Ibw> nevermind, don't do that...
21:28 < sladegen> > a:=new(struct{int,int});b:=*a;print(b)
21:28 < rndbot> <Error: syntax error near int>
21:29 < sladegen> > a:=new(struct{c, d int});b:=*a;print(b)
21:29 < rndbot> <Error: { c int; d int }, illegal types for operand:
PRINT>
21:32 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has quit
[Connection timed out]
21:33 -!- elmar [n=elmar@dslb-094-219-214-086.pools.arcor-ip.net] has quit
["Leaving"]
21:33 < Ibw> Gracenotes: You should wrap your bot around a web service and
set up a simple website for testing out Go code
21:34 < Gracenotes> mm, I'm also working on getting PMs working..  just need
to make sure things are really secure :)
21:34 < XniX23> lbw: if i remember right, there was a site like that i think
21:34 -!- diltsman [n=diltsman@ip68-108-197-127.ph.ph.cox.net] has joined #go-nuts
21:34 < Gracenotes> but meanwhile, try http://gofmt.com/compile.html for
compiling/running entire programs
21:34 < Gracenotes> not run by me
21:35 < jordyd> Couldn't it easily be transformed into a command-line
interpreter?
21:35 < XniX23> is there a way to do free(blabla) in go?
21:35 < Gracenotes> the IRC bot is nice also for didactic purposes
21:36 < Gracenotes> jordyd: there *is* an interpreter built in, in exp/eval
21:36 < Ibw> oh, awesome.  That's exactly what I meant (the gofmt site)
21:36 < Gracenotes> still, for short pieces of code, the IRC bot is nice.
it formats and imports everything necessary
21:37 < jordyd> Gracenotes: Is there a command for it or just a package?
21:38 < Gracenotes> uh.  just a package.  some buffered reads and writes are
all that's needed to make it into an interpreter.  note that it's by no means
fast, which is the main reason I don't use it in the IRC bot.  (other reasons too)
21:38 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
21:38 < Gracenotes> also, according to the docs it's not all of Go, but a
lot of it
21:39 < Gracenotes> so I think it's a higher level than interpretable
bytecode.  (higher-level = slower).  If the compiler could target an interpreter,
that might be good
21:39 < Gracenotes> if you use it, tell me what you think.  I've just
skimmed the docs
21:39 < plexdev> http://is.gd/53FbP by [Rob Pike] in go/src/pkg/utf8/ -- a
few utf8 benchmarks.  on my mac:
21:40 -!- patcito [n=pat@190.42.85.89] has joined #go-nuts
21:40 -!- diltsman [n=diltsman@ip68-108-197-127.ph.ph.cox.net] has quit []
21:40 -!- tomestla [n=tom@78.251.239.114] has joined #go-nuts
21:40 -!- Pete_27 [n=noname@115.64.1.61] has quit [Remote closed the connection]
21:41 -!- Odemia [n=Odemia-D@207.47.143.154] has joined #go-nuts
21:41 < XniX23> so there is no way to free memory in go?
21:42 < XniX23> oh i see, i can
21:43 < patcito> how?
21:43 < Gracenotes> yeah, have it garbage collected
21:43 < Ibw> XniX23: Maybe you're keeping references to things you don't
need anymore.  As long as you keep these references, the memory won't be freed
21:43 < XniX23> Gracenotes: i believe that is done in background, not by us?
or can we trigger it?  ;p
21:44 < XniX23> patcito: there is a malloc package, and it has Free(*byte)
21:44 < Ibw> XniX23: Memory is released as soon as there are no more
references to that memory in the program
21:44 < Gracenotes> XniX23: it's possible to trigger it, I suppose.  but
please don't.
21:44 -!- poul [n=pool@ip98-182-40-121.ri.ri.cox.net] has joined #go-nuts
21:44 < patcito> k
21:44 < Gracenotes> XniX23: unless you have an intimate knowledge of the
compiler and are smarter than it, that is
21:44 < Ibw> Go is great because you don't have to worry about that stuff.
If you start messing with it anyway, then...
21:45 -!- hugov [n=hugov@sjc237n225.joh.cam.ac.uk] has quit []
21:45 < Gracenotes> there is malloc.GC(), but if that's guaranteed to do a
garbage collection, then the current implementation for 8g and ilk is
mark-and-sweep
21:45 < Gracenotes> this might be world-stopping
21:45 < XniX23> i dont want to, but i want to continue to do to program that
thing coz its fun
21:46 < Ibw> XniX23: I think you should find out why it's segfaulting.  If
it _is_ because Go is out of memory, in my opinion that's an issue and should be
filed in the issue tracker
21:46 < Gracenotes> Go has no limit on memory allocation.  lower your
rlimit, and if you run into problems *then* turn to malloc
21:47 < XniX23> lbw: i have about 500 lines of code...  it runs ok and after
some time it seg faults...  it may be go-sdl indeed but i dunno really :\
21:47 < XniX23> Gracenotes: what is rlimit?
21:48 -!- Venom_X [n=pjacobs@66.54.185.131] has quit [No route to host]
21:49 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
["Leaving."]
21:50 < Gracenotes> XniX23: limiting the memory that can be malloc'd by your
code
21:50 < XniX23> Gracenotes: and how do i do that?  is there a flag or smth?
21:50 < Gracenotes> if an sbrk fails, I'm pretty sure it won't result in a
segfault
21:51 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has joined
#go-nuts
21:54 -!- ArtemZ [n=artemz@95-37-214-220.dynamic.mts-nn.ru] has left #go-nuts []
21:54 < Gracenotes> XniX23: hm..  testing to see what kind of error results
21:55 < XniX23> Gracenotes: thanks, i was just getting confused with sbrk in
syscall
21:55 -!- odemia_ [n=Odemia-D@207.47.143.154] has quit [Read error: 110
(Connection timed out)]
21:56 < Gracenotes> "ulimit -v 1000000", then running "var arr [100][]int;
for i := range arr { arr[i] = make([]int, 10000000); arr[i][i] = 1 }", yields
"mmap: errno=0xc"
21:56 < mikedee_> http://pastebin.com/m114ebd9a - This simple program eats
over 6Gb of RAM, is that expected?
21:56 < Ibw> can 8l/6l link .o files as well?
21:56 < mikedee_> I am only creating 1 channel and 1,000,000 ints
21:56 < Gracenotes> that limits virtual memory to 1000000 KB, about 0.95 GB
21:57 -!- aa [n=aa@r190-133-139-121.dialup.adsl.anteldata.net.uy] has joined
#go-nuts
21:57 < Gracenotes> XniX23: you can do the same thing within a program with
syscall.Setrlimit(9, &syscall.Rlimit{blah, blah}); //RLIMIT_AS = 9, blah = number
of bytes to limit to
21:57 < XniX23> Gracenotes: is that a shell program?
21:57 < skelterjohn> btw - there is gopaste.org that you might enjoy using
rather than pastebin
21:58 < Gracenotes> yes, which calls setrlimit.  you can do it without a
number, which only does getrlimit
21:59 < XniX23> so if it segfault now, then its not that i run out of mem
huhz
21:59 < Gracenotes> "ulimit -a".  the resource change only applies to the
current process and subprocesses.  but..  through that, you can see the program
just prints something related to mmap and exits immediately
21:59 < XniX23> hmmm i got a segfault even with that
21:59 < Gracenotes> let me put it this way: if you run out of memory, your
entire OS will crash.  Your mouse and keyboard will gradually slow down because of
no place to buffer it, until your left with something as interactive as a rock
21:59 < Gracenotes> *you're
22:00 < Gracenotes> if that hasn't happened to you, you haven't run out :)
22:00 < Gracenotes> XniX23: you know, the SIGSEGV dump does include line
number information
22:01 < mikedee_> run that pastebin code above to see what it is really like
if you are not sure ;)
22:01 -!- blackmagik [n=blackmag@unaffiliated/blackmagik] has joined #go-nuts
22:02 < Gracenotes> mikedee_: well, you do have 1000000 goroutines running
at the same time in a blocking state
22:02 < mikedee_> Because of the limit on the channel you mean?
22:03 < mikedee_> Still that should just cause it to hang shouldnt it?
22:03 < XniX23> Gracenotes: unfortunately im not that good to know how to
use that :(
22:03 < Gracenotes> yes.  two of them are able to store to the channel and
exit, but the other 999998 are waiting around for comchannel to be emptied so they
can place their own data into it
22:03 < Ibw> hum
22:04 < mikedee_> but I get the same result without the limit
22:04 < mikedee_> I thought that would just limit it to 2 of my CPUs
22:04 < Gracenotes> it's possible you've run into pathological compiler
behavior..
22:04 < mikedee_> It looked pathalogical to me!
22:04 < Gracenotes> mikedee_: eh?  so what is the problem again?
22:05 < Gracenotes> goroutines are probably crowding up memory.
22:05 -!- Metaphorically [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined
#go-nuts
22:05 < mikedee_> That code uses 8Gb, just to throw some booleans around
22:05 < mikedee_> how much overhead is in a chan and a goroutine?
22:06 < Gracenotes> they're lightweight threads, remember?  they each have
their own stack, maybe heap space, probably register configuration
22:06 -!- andrebq [n=andre@bhe201062224109.res-com.wayinternet.com.br] has joined
#go-nuts
22:06 < Gracenotes> no, heap space should be shared, I think
22:06 < skelterjohn> heap space is shared, hopefully
22:06 < Gracenotes> chans have very minimum overhead comparatively
22:06 < mikedee_> but my stack must be tiny
22:06 < antarus> the stack is like 512 or less bytes, and should grow
22:07 < antarus> If i recall Iant correctly ;)
22:07 < Gracenotes> well, goroutines each have very little overhead for a
concurrent process, but you're making 1000000 of them, you know
22:07 < antarus> 1 million 1k structs is still only 1gig of ram ;p
22:07 < mikedee_> I didnt think that was too big of a number
22:07 -!- devewm [n=eric@erc-avl-ptp62.net.ercbroadband.org] has joined #go-nuts
22:07 -!- skyyy [n=caw@24.58.178.87] has joined #go-nuts
22:07 < Gracenotes> are you sure you used 8GB of memory at the same time?
22:08 < Gracenotes> hm..  or did it just allocate 8GB in total?
22:08 < Ibw> is there an hg command that let's me see what the newest tip
is?
22:08 -!- getisboy [n=Family@71.174.56.27] has joined #go-nuts
22:08 < skelterjohn> there are 2x1000000
22:08 -!- devewm [n=eric@erc-avl-ptp62.net.ercbroadband.org] has left #go-nuts []
22:08 -!- hackbench [n=hackbenc@88.242.151.136] has quit [Read error: 110
(Connection timed out)]
22:09 < mikedee_> Gracenotes: I am not sure
22:09 < Gracenotes> I have Haskell programs that allocate that much, but its
generational garbage collection is careful to free up things and overwrite them
22:09 < mikedee_> I was just looking at top
22:09 < mikedee_> it went from about 3Gb used to fully used and swap writing
22:09 < mikedee_> luckily 1000000 items finishes just as the system is about
to die
22:10 < Gracenotes> XniX23: well, the SIGSEGV information should just be a
stack trace
22:10 < mikedee_> a billion does not end well
22:10 -!- getisboy [n=Family@71.174.56.27] has left #go-nuts []
22:10 < Gracenotes> XniX23: there are probably stack traces for each
goroutine, and for the currently executing routine, that should be listed first,
along with the program counter of each
22:11 < Gracenotes> you read stack traces, right?  like in Java, Python,
basically any language with reasonable abstractions for that kind of thing
22:11 -!- patcito [n=pat@190.42.85.89] has left #go-nuts ["Konversation
terminated!"]
22:12 -!- Popog [n=Adium@66-192-186-101.static.twtelecom.net] has quit
["Leaving."]
22:12 < Gracenotes> mikedee_: if you split up making the goroutines and
consuming the channels into two concurrent loops, instead of sequential ones, I
have a feeling that might make things..  cleaner
22:12 < Gracenotes> in terms of memory use, at least.  just my hypothesis.
22:13 -!- aho [n=nya@f051022076.adsl.alicedsl.de] has quit
["EXEC_over.METHOD_SUBLIMATION"]
22:13 < Gracenotes> oh, I have the take a quick shower :/ be right back
22:13 -!- mkanat [n=mkanat@c-67-188-1-39.hsd1.ca.comcast.net] has quit ["Bye!"]
22:13 < mikedee_> The script was really just to test the ordering of channel
messages with lots of goroutines
22:13 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
22:14 < Gracenotes> mm.  the goroutines just stick around even when you
don't need em
22:15 < XniX23> Gracenotes: i know when i get segfault...  but cant really
see why :\
22:15 < Gracenotes> XniX23: okay, I'll be right back (shower), but maybe
gopaste the entire segfault dump
22:16 < XniX23> ok in the meanwhile, can someone tell me what he meant by
segfault dump?  yes, i will practice my english
22:16 -!- poul [n=pool@ip98-182-40-121.ri.ri.cox.net] has quit [Client Quit]
22:16 < Makavel> Hi...  can someone tell me what i am doing wrong here:
http://gopaste.org/view/88gys
22:17 < Makavel> it outputs only 0
22:17 < mikedee_> segfault == crash
22:17 < Makavel> I thought it was suppose to output several numbers
22:18 < KirkMcDonald> Makavel: You are starting these two goroutines, and
then immediately closing the channel.
22:18 < Ibw> how strange.  I've run all.bash about three times (with some
clean.bash's in there as well), but cgo just isn't rebuilding
22:18 < Ibw> No errors though
22:18 < Ibw> huh
22:19 -!- brunov [n=bruno@190.191.110.64] has quit [Read error: 110 (Connection
timed out)]
22:19 < mikedee_> Makavel: Not sure about your range on a channel
22:19 < KirkMcDonald> Makavel: Oh, wait, I misread it.
22:19 < KirkMcDonald> Makavel: Still, you're starting the 'suck' goroutine,
and then main ends.
22:20 -!- andrebq [n=andre@bhe201062224109.res-com.wayinternet.com.br] has quit
["Ex-Chat"]
22:20 < KirkMcDonald> Makavel: You need to somehow block until suck is done.
The easiest way to do that is to not make it a goroutine.  Or you could pass it a
second channel which it sends something on when it is done.
22:20 < mikedee_> suck should be just fmt.Println(<-ch)
22:20 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit [No
route to host]
22:20 < mikedee_> and you are calling push twice
22:20 < mikedee_> pump
22:21 < mikedee_> suck(pump()); could then just be go suck(stream);
22:21 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit ["Leaving"]
22:21 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit ["KVIrc
Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47
UTC http://www.kvirc.net/"]
22:22 < mikedee_> also your main might be exiting before the goroutines
22:22 -!- Popog [n=Adium@66-192-186-101.static.twtelecom.net] has joined #go-nuts
22:23 < Makavel> so should i put the receiver in a forever loop in other to
prevent the main method from exiting or is there some other way?
22:24 < mikedee_> the quick and dirty way is to just run for
{time.Sleep(1)}; after go suck
22:24 < mikedee_> best way is i think to count the number of items in and
then count them out
22:25 < mikedee_> I dont think it is a good idea to create an infinite
stream into a channel
22:26 < Makavel> alright...  thanks a lot guys for your help
22:26 -!- skyyy [n=caw@24.58.178.87] has quit [Client Quit]
22:27 -!- ni| [n=ni|@cpe-72-191-33-69.satx.res.rr.com] has joined #go-nuts
22:28 -!- aho [n=nya@78.51.22.76] has joined #go-nuts
22:29 -!- rog [n=rog@89.240.136.210] has quit []
22:30 < XniX23> http://www.gopaste.org/view/CjxUx anyone knows why i would
get segfault here?
22:31 < XniX23> and i run that code a lot of times, but after some time it
just segfaults ˇ_ˇ
22:31 -!- subat_qn [n=subat_qn@78.236.214.16] has joined #go-nuts
22:32 -!- Popog1 [n=Adium@66-192-186-101.static.twtelecom.net] has joined #go-nuts
22:32 * K6HX tunes into the arduino chat.
22:32 -!- crashR [n=crasher@codextreme.pck.nerim.net] has quit ["Leaving."]
22:32 -!- JSharpe [n=jamie@5adaeaa9.bb.sky.com] has joined #go-nuts
22:32 -!- alathon [n=Martin@h59ec0ac9.dkkoyno.dyn.perspektivbredband.net] has
joined #go-nuts
22:32 -!- Popog [n=Adium@66-192-186-101.static.twtelecom.net] has quit
["Leaving."]
22:33 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts []
22:33 < K6HX> autojack: well, order some extras for all your irc friends!
22:33 < K6HX> doh.
22:33 < K6HX> wrong channel.  sorry lads.
22:33 -!- JoLeClodo [n=JoLeClod@wallinfire.net] has quit [Read error: 110
(Connection timed out)]
22:34 -!- loureiro [n=loureiro@189.2.128.130] has quit ["Quit"]
22:34 -!- K6HX [n=markv@c-76-126-161-201.hsd1.ca.comcast.net] has quit ["ircII
EPIC5-1.0 -- Are we there yet?"]
22:34 < dagle2> Hmmm.
22:35 < dagle2> Wonder how hard it would be to extend the crypto lib with
ECC.
22:35 < dagle2> Not that it would be package...  damn US patent.  :P
22:39 < General13372> exch
22:39 < Gracenotes> okay..  leaving for a greek restaurant with parents :x
22:39 < General13372> http://github.com/jteeuwen/go-pkg-pcre
22:39 < General13372> how would you compile this
22:39 < Gracenotes> goin down to the restaurant, gonna get myself some gyros
22:39 < Gracenotes> *eat
22:41 < XniX23> cya Gracenotes, thanks
22:42 < XniX23> General13372: make?
22:42 < General13372> no its compiling c files
22:42 < General13372> for some reason
22:42 -!- octoploid [n=octoploi@77-22-106-65-dynip.superkabel.de] has left
#go-nuts ["WeeChat 0.3.1-dev"]
22:42 < Gracenotes> XniX23: that is weird
22:43 < Gracenotes> is it a C FFI, by chance?
22:43 < XniX23> FFI?
22:43 < Gracenotes> foreign function interface.  binding
22:43 < XniX23> yes it is, sdl-go
22:43 < Gracenotes> it's possible the bug is coming from there
22:43 < Gracenotes> or from the binding itself.  dunno :x
22:43 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection]
22:44 < XniX23> Gracenotes: how can do global vars?
22:44 < XniX23> so that they would have one location and that it could have
gone wrong (i hope d0h)
22:44 < Gracenotes> when Go programs get a SIGSEGV, they print out a nice
stack trace and lots of info.  C programs just say "Segmentation fault"
22:44 < XniX23> ohhh i see
22:45 -!- Popog1 [n=Adium@66-192-186-101.static.twtelecom.net] has quit
["Leaving."]
22:45 -!- jdp [n=justin@ool-435238c0.dyn.optonline.net] has quit [Remote closed
the connection]
22:45 < Gracenotes> anyway, gotta go.  good luck getting it resolved :)
22:45 < Gracenotes> might want to look at sdl bindings themselves
22:45 * Gracenotes out
22:45 < XniX23> Gracenotes: thanks, ill try
22:45 -!- tomestla [n=tom@78.251.239.114] has quit [Read error: 110 (Connection
timed out)]
22:47 -!- eno__ [n=eno@70.137.166.236] has joined #go-nuts
22:48 < dagle2> Hmm.  I wonder how much I can fail implementing a
cryptographic algorithm in go.  :)
22:49 < XniX23> i wonder how much i could succeed
22:49 -!- ni| [n=ni|@cpe-72-191-33-69.satx.res.rr.com] has quit ["Leaving..."]
22:50 < dagle2> Would like to have ECC.
22:50 < XniX23> dagle2: try it, im sure u will learn a lot
22:50 -!- eno [n=eno@nslu2-linux/eno] has quit [Read error: 145 (Connection timed
out)]
22:50 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
22:50 < dagle2> Maybe doing during the break.
22:50 < dagle2> Might start doing diffie-hellman first.
22:51 -!- ni| [n=ni|@cpe-72-191-33-69.satx.res.rr.com] has joined #go-nuts
22:52 < Ibw> This is the second time I've submitted an issue.  I hope it's
not an error on my part like it was last time
22:52 < dagle2> Hehe.  :)
22:52 -!- hagna_ [n=hagna@70.102.57.178] has joined #go-nuts
22:52 -!- Popog [n=Adium@66.192.186.101] has joined #go-nuts
22:52 < Ibw> I submitted a bit of string manipulation code for code review,
then this morning I realized that Go works with UTF-8, so my code would break
anything that goes outside of the basic ascii set.
22:53 < Ibw> darn...
22:53 -!- sm [n=sm@pool-71-104-89-201.lsanca.dsl-w.verizon.net] has quit [" "]
22:56 * chrelad is out
22:56 -!- subat_qn [n=subat_qn@78.236.214.16] has left #go-nuts []
22:56 -!- chrelad [n=chrelad@76.164.12.11] has quit ["[Q] 0.2.6.3"]
22:57 < Rob_Russell> i put some non-ascii characters in my current project
to watch for exactly that - old habits die hard
22:57 -!- ni| [n=ni|@cpe-72-191-33-69.satx.res.rr.com] has quit ["Leaving..."]
22:58 -!- ni| [n=ni|@72.191.33.69] has joined #go-nuts
23:00 -!- hcatlin [n=hcatlin@81.154.246.241] has quit []
23:01 -!- ni| [n=ni|@72.191.33.69] has quit [Client Quit]
23:01 -!- belkiss [n=belkiss@78.235.168.105] has quit ["KVIrc Insomnia 4.0.0,
revision: 3498, sources date: 20090907, built on: 2009-09-15 20:07:23 UTC
http://www.kvirc.net/"]
23:02 -!- directrixx [n=aleksand@68.231.189.247] has quit [Remote closed the
connection]
23:03 -!- directrixx [n=directri@ip68-231-189-247.tc.ph.cox.net] has joined
#go-nuts
23:04 -!- aa [n=aa@r190-133-139-121.dialup.adsl.anteldata.net.uy] has quit [Read
error: 104 (Connection reset by peer)]
23:08 -!- fosho [n=notroot@12.130.118.68] has joined #go-nuts
23:08 -!- Fl1pFl0p [n=FlipFlop@68.8.225.187] has left #go-nuts []
23:09 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
23:10 -!- Stericson [i=0ca6b485@gateway/web/freenode/x-huqxkdljhdbzdxhp] has
joined #go-nuts
23:12 -!- Cyanure [n=cyanure@212-198-164-142.rev.numericable.fr] has joined
#go-nuts
23:15 -!- diabolix [n=jsoyke@206.210.81.55] has quit [Broken pipe]
23:16 -!- Cyanure [n=cyanure@212-198-164-142.rev.numericable.fr] has quit
[Operation timed out]
23:17 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
23:19 -!- Zeffrin [n=no@110.175.179.56] has quit []
23:24 -!- brunov [n=bruno@190.191.110.64] has joined #go-nuts
23:24 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 54 (Connection
reset by peer)]
23:24 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined
#go-nuts
23:26 -!- lux` [n=lux@151.54.240.211] has quit [Read error: 145 (Connection timed
out)]
23:28 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
23:31 -!- tc [n=travis@rrcs-67-78-243-170.se.biz.rr.com] has left #go-nuts []
23:33 < raichoo> Hi, is there an offline reference (PDF document) for the go
libraries?  I'm on the train very often and don't have a mobile internet
connection to look up stuff.
23:35 < dagle2> raichoo: I think you can generate the docs.
23:37 < raichoo> Sure, I just wanted to know if there was already something
so I didn't have to do it myself ^^
23:39 < dagle2> raichoo: It's just a command.  Kinda like javadocs.
23:40 -!- ni| [n=james@isp2-resnet-nat1.union.edu] has joined #go-nuts
23:43 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 104
(Connection reset by peer)]
23:43 < raichoo> Found it.  Thanks for the hint dagle2 :)
23:43 < dagle2> raichoo: Np.
23:44 < KirkMcDonald> I have been writing some unit tests for my optparse
package.
23:45 < KirkMcDonald> I found myself implementing "assertEquals".  It's very
useful.
23:45 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
23:45 < KirkMcDonald> (And also about three lines, given
reflect.DeepEquals.)
23:50 < Rob_Russell> for some reason when i build the http test fails, but i
can go run it manually afterward and it seems to pass
23:50 < Rob_Russell> any ideas?
23:53 -!- fosho [n=notroot@12.130.118.68] has quit [Read error: 110 (Connection
timed out)]
23:55 < jessta> Rob_Russell: firewall, proxy servr?
23:56 < Ibw> Rob_Russell: What's the fail message?
23:56 < Rob_Russell> jessta: it looks like it's the name resolution for
google that's failing but i can do an nslookup right after that and it works
23:56 < Rob_Russell> Ibw: i did an hg pull and i'm rebuilding again, soon as
it fails i'll paste it
23:57 < Rob_Russell> i did have some network issues earlier but now it's
only when building Go that i have trouble
23:57 < Rob_Russell> weird, worked that time
23:57 < Rob_Russell> failed several times previously
23:58 < Ibw> Rob_Russell: Are you clean.bashing?
23:58 < Rob_Russell> Ibw: i run all.bash & that calls clean.bash afair
23:59 < Ibw> It "does", but many people have been having unexplainable
success by calling clean.bash manually first
23:59 < Rob_Russell> loverly...  going to keep that in mind
23:59 -!- brunov [n=bruno@190.191.110.64] has quit [Read error: 145 (Connection
timed out)]
--- Log closed Thu Nov 26 00:00:29 2009