--- Log opened Wed Jun 29 00:00:54 2011
00:03 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
00:07 -!- Andy_S [~kvirc@212.38.176.8] has joined #go-nuts
00:10 -!- franciscosouza [~francisco@187.105.0.199] has joined #go-nuts
00:13 -!- photron [~photron@port-92-201-3-103.dynamic.qsc.de] has quit [Ping
timeout: 260 seconds]
00:16 -!- franciscosouza_ [~francisco@187.105.7.88] has joined #go-nuts
00:18 -!- franciscosouza [~francisco@187.105.0.199] has quit [Ping timeout: 264
seconds]
00:22 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined
#go-nuts
00:27 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
00:28 < brandini> ugh, so I'm studying over the CWE top 25 for a PCI test
this week and man I can't believe this crap still happens
00:29 < brandini> "These were the top 25 exploited.."
00:29 < brandini> among them are buffer overflows, sql injection, os command
injection etc
00:29 < brandini> sheesh
00:33 < uriel> so sad *sigh*
00:35 < brandini> I'm not sure where they find these developers :)
00:35 < brandini> or why they're working at banks, sony, etc :)
00:35 < brandini> ;)
00:37 < uriel> the whole software industry is rotten
00:38 < brandini> You'd think these regulators would be bored of telling
people the same things by now
00:40 < uriel> regulators?  yea, that is the only thing missing in the
software industry, a bureaucrazy that if by chance you try to do something sane
using not-insane technology, makes sure you switch to the same crap everyone else
is using
00:41 < uriel> the most insane failures in software development have
happened in governments, there have been quite a few multi-hundred-of-millions of
$ failed software projects
00:41 < brandini> uriel: I couldn't agree more, you know what the most
common solution to these vulns is?  Use a framework
00:41 < uriel> (what the fuck did they spend the money on, who knows,
thousands of java monkeys and certified Oracle fucktards I guess)
00:42 < brandini> we're doing a PCI audit and we developers have to know
these top 25
00:43 -!- sniper506th [~sniper506@cpe-098-122-081-186.sc.res.rr.com] has quit
[Quit: Leaving...]
00:43 < yebyen> pci audit?  sounds like a nightmare
00:44 < uriel> I'm sure it is not a nightmare
00:44 < uriel> I'm sure it is more
00:44 < brandini> oh it's fun times guys
00:44 < yebyen> i work on dropbox, it's been hacked within the last two
weeks :D
00:45 < brandini> http://cwe.mitre.org/top25/#CWE-434
00:45 < brandini> it's all don't double encode, don't use known bad crypto
alg's, etc
00:46 < gnuvince> Which revision of Go does gb require, release or weekly?
00:46 < brandini> don't get buffer overflows
00:46 < brandini> gb == gingerbread?
00:46 < gnuvince> http://go-gb.googlecode.com
00:47 -!- jemeshsu [~jemeshsu@bb121-6-26-212.singnet.com.sg] has quit [Quit:
jemeshsu]
00:51 < brandini> another compiler
00:51 < brandini> nice!
00:51 < yebyen> brandini: this looks like a good list to me, i might even be
able to use it to convince someone to hire me for an audit...
00:52 -!- franciscosouza [~francisco@187.105.7.88] has quit [Read error:
Connection reset by peer]
00:52 < uriel> oh, god, do we really need another build tool?
00:52 < brandini> yebyen: I like the list, but it makes me furious that we
still have to teach folks this
00:52 * uriel sighs
00:52 < uriel> brandini: it is not anothe rcompiler
00:52 < yebyen> go-gb is terrific
00:52 < brandini> uriel: gb == make?
00:52 < yebyen> and it's been around for a while
00:52 < yebyen> no, gb saves you from writing Makefiles
00:53 < brandini> all I know is that I love Go even more after doing the
gowiki tutorial
00:53 < yebyen> and gb -g does automatic triggering of goinstall for
packages that depend on github or other online repos
00:53 < uriel> doesn't goinstall do that already?
00:53 < exch> yes
00:53 < yebyen> yeah probably, I don't really know what goinstall does
00:53 < yebyen> i just use gb
00:54 * uriel sighs
00:54 < yebyen> goinstall does not automatically do goinstall
00:54 < uriel> yea, why use the standard tool that comes with Go, when we
can have dozens of half-working alternatives
00:54 < yebyen> go-gb uses goinstall
00:54 < yebyen> and go-gb knows when it's appropriate to use goinstall
00:54 < yebyen> otherwise, you would need a makefile, right?
00:55 < Tv> gb predates a smart goinstall
00:55 < brandini> I'm confused
00:55 < Tv> or more so, gobuild or what was that up-and-coming thing called
00:55 < uriel> who cares, Makefiles are trivial, and all this hundreds of
'build tools' are annoying as hell, every project requires a differen tone
00:55 < yebyen> so you're saying i should read what goinstall does again
00:55 < uriel> plus, if the project works with plain goinstall, the tool is
useless
00:55 < brandini> go should create a makefile for you anyhow
00:55 < uriel> and all projects should be installable with plain goinstall
00:55 < yebyen> gb is useful and trivially simple, if you can't see why you
need it, you are probably still writing makefiles
00:55 < Tv> brandini: goinstall already works without any makefiles, that's
way better
00:56 < yebyen> you name your directories for your packages or your
binaries, and you put your sources into directories...
00:56 < yebyen> when "import pkg" comes up, gb makes sure it has a linker
object from pkg/ build from files that are package pkg
00:57 < yebyen> or something else to import from the go tree that already
exists installed
00:57 < uriel> yebyen: you didn't address my point: if a package is already
goinstallable, (and all packages should be), what is the point?
00:57 < exch> the makefiles for a go project are 4 lines long.  That's
hardly rocket science
00:57 < yebyen> uriel: i don't really know what goinstall does, but from my
understanding, it's able to git pull and run gomake
00:57 < yebyen> does gomake require a makefile?
00:58 < yebyen> i'll go see if I can find out what goinstall is really doing
nowadays...
00:58 < uriel> again, all that is irrelevant, all packages should be
goinstallable, if a package is goinstallable, all this build tools don't add any
value
00:59 < yebyen> all i hear is "you must write makefiles"
00:59 < yebyen> my project is not at that stage yet
01:00 < uriel> if you can't write trivial 4 lines makefiles, maybe you
should not be writting code, in any case, Go is well on its way to not need
makefiles at all, but even when it did, that was a very poor argument
01:00 < yebyen> it's about do not repeat yourself, if the dependencies
between my modules are changing, why should I have to update a secondary file that
says how to build and link?
01:01 < yebyen> gb solves this, and it will write your makefiles for you
01:01 < |Craig|> I use gb to avoid dealing with things at the package level.
I have a few .go files, and I want them all built with proper dependancy ordering,
I can run one short command.  Or I can write a 4 line make file for every package,
and run them all in some order (perhaps with another make file)
01:01 < yebyen> if you need to generate them for a project that is slated to
be goinstallable
01:02 < yebyen> "perform this extra boilerplate.  no?  maybe you should not
be writing code" -- duh
01:02 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Read
error: Connection reset by peer]
01:02 -!- franciscosouza [~francisco@187.105.7.88] has joined #go-nuts
01:03 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined
#go-nuts
01:03 -!- mnoel [~mnoel@c-75-65-250-60.hsd1.la.comcast.net] has quit [Quit: mnoel]
01:03 < yebyen> anyway, this list is really good.  (mitre top 25)
01:03 -!- robteix [~robteix@host243.200-82-125.telecom.net.ar] has joined #go-nuts
01:04 < brandini> yup
01:04 < brandini> better than owasp
01:04 < yebyen> the headlines are all intelligible to me, they sound like
mistakes that would be easy to make
01:04 < yebyen> and if i put them on somebody's bill, i think they would get
passed
01:06 < uriel> why the hell is anyone in this day and age still using SQL
boggles the mind
01:07 < uriel> it is the COBOL of databases
01:07 < brandini> I wouldn't go that far
01:08 < brandini> also, what was this scala vs go performance thing I read?
01:08 < uriel> a load of bullshit , that is what it is
01:08 < uriel> (if it is the paper that I'm thinking about)
01:09 < uriel> (but then, that was c++, vs java, vs Go vs scala, or
something like that)
01:09 -!- crazy2be [~crazy2be@S01060012171a573b.cg.shawcable.net] has joined
#go-nuts
01:09 < uriel> is that some other benchmark you have seen?
01:11 -!- iant [~iant@67.218.104.187] has quit [Quit: Leaving.]
01:14 < brandini> I think that's the one
01:15 < brandini> I wish I could take the go docs with me so I didn't have
to be online to read them
01:15 < |Craig|> brandini: run godoc
01:16 < brandini> huh
01:16 < |Craig|> http://golang.org/cmd/godoc/
01:18 < |Craig|> among other things, it will run a web server with
documentation just like the golang site
01:18 < brandini> oh perfect!
01:18 < brandini> -http 6060
01:18 < brandini> thanks!
01:19 < brandini> now, off to bed
01:19 < crazy2be> you can also run godoc package Function
01:19 < crazy2be> to get documentation on the commandline
01:19 < crazy2be> but night
01:21 -!- ancientlore [~ancientlo@ip68-110-238-176.dc.dc.cox.net] has joined
#go-nuts
01:26 < crazy2be> there's quite a few people asking "why go?", so I started
on a wiki in the form of a github repository to address this question
01:26 < crazy2be> https://github.com/crazy2be/whygo
01:26 < crazy2be> Feel free to suggest additions or delections, correct
grammer or spelling, etc
01:28 < crazy2be> If you use or like go for other reasons, feel free to add
them
01:36 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
01:42 -!- sunfmin [~sunfmin@125.119.3.55] has joined #go-nuts
01:58 -!- pvarga [~pvarga@pool-71-172-108-117.nwrknj.east.verizon.net] has joined
#go-nuts
02:02 < fzzbt> because go is adequate
02:02 -!- pvarga [~pvarga@pool-71-172-108-117.nwrknj.east.verizon.net] has quit
[Client Quit]
02:02 < yebyen> i like this goinstall popular packages listing, that's
something that must be new
02:04 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has joined #go-nuts
02:07 -!- timetrap [~jkern@74.72.185.232] has joined #go-nuts
02:07 < timetrap> Where should i start?
02:07 < timetrap> (i'd like to lear)
02:07 < timetrap> (*n)
02:07 -!- robteix [~robteix@host243.200-82-125.telecom.net.ar] has quit [Quit:
Leaving...]
02:08 < fzzbt> timetrap: read the tutorials on golang.org and then maybe
this book http://miek.nl/files/go/
02:10 < timetrap> fzzbt: Thanks!  Just what I wanted.
02:15 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
02:19 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
02:27 < crazy2be> I do have to say that writing Cgo is nicer than writing
straight C/C++
02:27 < crazy2be> at least it warns you when memory is strange
02:28 < crazy2be> in C++, an out-of-bounds access for a vector started
printing my entire memory :/
02:30 < skelterjohn> heh
02:32 -!- qrush [u1528@gateway/web/irccloud.com/x-jqwlmniwbrsyyjgx] has quit [Read
error: Operation timed out]
02:32 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Ping timeout: 240 seconds]
02:33 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
02:34 < crazy2be> do go arrays allocate contiguous memory?
02:35 < crazy2be> like if I started poking around with unsafe, would I be
able to use them like C arrays?
02:35 < crazy2be> e.g.  is https://gist.github.com/1052853 correct?
02:36 < crazy2be> I have only a fuzzy understanding of how C-arrays work
02:37 < skelterjohn> arrays are contiguous memory, yeah
02:38 < skelterjohn> um, i'm not sure that code makes any sense
02:38 < crazy2be> ok, what should it be doing?
02:39 < skelterjohn> well, you're allocating an array of *C.JSValueRef
instead of an array of C.JSValueRef
02:39 -!- benjack [~benjack@bb119-74-99-26.singnet.com.sg] has joined #go-nuts
02:39 < skelterjohn> and since you're returning a *C.JSValueRef, i'm
guessing you want an array of C.JSValueRef, and want to return a pointer to its
beginning
02:39 < crazy2be> this is for javascript bindings.  Value is a struct that
can hold any javascript type, and has a ref C.JSValueRef and a ctx C.JSContext
02:39 < crazy2be> yeah
02:39 < crazy2be> that's what I did originally, changed it to this because
that was giving me a fault
02:39 < skelterjohn> so change that to make([]C.JSValueRef, length)
02:40 -!- qrush [u1528@gateway/web/irccloud.com/x-cahwuqfwnxoaulyd] has joined
#go-nuts
02:40 < crazy2be> updated
02:41 < crazy2be> does that function as-advertised?
02:41 < skelterjohn> that's a strange question :)
02:41 < skelterjohn> as who advertised?
02:41 < crazy2be> as the comment advertises :)
02:41 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
02:42 -!- mode/#go-nuts [+v iant] by ChanServ
02:43 < skelterjohn> you'd return &arr[0]
02:44 < skelterjohn> that gives a pointer to the first data element in a
slice, ie what C uses to point to the array
02:44 < crazy2be> o.k., that's what I thought
02:44 < crazy2be> now to figure out why I'm getting a fault :P
02:50 < skelterjohn> that's the fun part!
03:04 < crazy2be> how can I simulate how C sees arrays?
03:04 < crazy2be> like If I have a pointer, how can I check what the next
element in the array looks like?
03:09 -!- keithcascio [~keithcasc@nat/google/x-vsaucdtfpgumkhkn] has quit [Quit:
Leaving]
03:11 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has quit [Quit:
WeeChat 0.3.0]
03:13 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Ping timeout: 240 seconds]
03:13 -!- opt [~opt@174.3.227.184] has joined #go-nuts
03:14 < opt> what ide is best?
03:14 < crazy2be> there is no best IDE
03:14 < crazy2be> IDEs are gross anyway
03:14 < crazy2be> :P
03:14 < opt> what do you prefer to edit with then?
03:14 < opt> emacs?  vim?
03:14 < crazy2be> I personally use kate
03:14 < crazy2be> many here use vim
03:15 < crazy2be> crazy people
03:15 < ccc1> vim +1
03:15 < muke> i usually just an instance of vim in emacs
03:15 < muke> just *spawn
03:15 < ancientlore> nothing wrong with vim...it's everywhere
03:15 < ancientlore> hey I know - let's have editor wars!  (oh not again!)
03:16 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 258 seconds]
03:16 < vyom> How can I assigning a C long type to a C int type in Go?
03:17 < vyom> right now compiler error says : cannot use rate (type
_Ctype_long) as type _Ctype_int in assignment
03:17 < crazy2be> vyom: C.int(clongtype)
03:17 < crazy2be> does that work?
03:17 < vyom> crazy2be: let me try
03:17 < crazy2be> been using lots of cgo lately
03:18 < vyom> crazy2be: Yes it compiles..  Thanks!
03:19 < crazy2be> no problem
03:19 < vyom> crazy2be: me too..  I am trying to interface with 2 audio C
libraries and there is a lot of implicit int to long
03:19 < vyom> and char to unsigned char conversions
03:20 < ancientlore> how's gojs going?
03:20 < crazy2be> ugly
03:20 < crazy2be> well, that's a response to both possible conversations :P
03:20 < vyom> :)
03:21 < vyom> Does anybody know how using a C library function to write data
into an audio buffer interacts with goroutines..
03:22 < cbeck> Probably not well
03:22 < vyom> I am trying to write a simple audio playing app..  with the
control plane (ie play/pause etc) in Go but all the audio decoding using libmpg123
and libao
03:23 < vyom> wondering if I can use a goroutine with a control channel to
which I send play/pause messages
03:23 < cbeck> Are you thinking multiple goroutines will be invoking those
lib calls?
03:23 < vyom> cbeck: I am trying to keep the audio playing loop in one
goroutine which is also listening on a buffered channel
03:24 < cbeck> As long as you're not making calls to the lib in multiple
goroutines, you should be fine
03:25 < vyom> cbeck: sounds encouraging.  But I am wondering how the
scheduling happens if system calls are actually being made in C code
03:26 < chomp> that would be the tricky part
03:26 < cbeck> Unsure about that, but I've had no issues
03:26 < chomp> though from what i recall from a discussion earlier this
week, the (blocking) syscalls themselves are actually pushed off into their own
goroutine
03:27 < chomp> rather than movng other goroutines to (potentially) other OS
threads
03:27 < vyom> chomp: exactly..  but for that to happen..  doesnt it need to
be in Go code?
03:27 < chomp> yes, true
03:28 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has joined
#go-nuts
03:28 < chomp> in this case the best approach is probably to just run with
it until you have problems :)
03:28 < chomp> which i assume is what you're doing anyway
03:29 < vyom> chomp: yes..  I am still figuring out cgo and basic audio
playing..  will get to the control plane in a bit
03:30 < chomp> are you actually planning to use cgo to interface directly
with mpg123 and ao, or are you going to build an interface around them
03:32 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has quit [Ping
timeout: 252 seconds]
03:32 < vyom> yes..  here is the code I wrote in the last couple of hrs :
https://gist.github.com/1052975
03:33 < chomp> ah nice
03:33 < vyom> it plays an MP3 file if I call it from main
03:33 < vyom> now i need to clean it up and add a control plane and see how
that works :)
03:38 < drhodes> anyone know if there is a package with IsAlpha, IsNum,
those type of functions?
03:42 < crazy2be> drhodes: IsAlpha?
03:43 < drhodes> IsAlpha("a") -> true
03:44 < jessta> drhodes: http://golang.org/pkg/unicode/
03:44 < drhodes> thanks!
03:57 < yebyen> anybody got an opinion on redis vs memcache?
03:57 < yebyen> or redis vs memcachedb, if you think that's not a fair
comparison
03:58 < yebyen> the redis documentation looks really smart, i want to try
both, but it would be good to know who is actually using these...
04:01 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has joined #go-nuts
04:02 -!- gnuvince [~vince@ip-96-43-233-174.dsl.netrevolution.com] has quit [Ping
timeout: 252 seconds]
04:04 -!- gnuvince [~vince@ip-96-43-233-174.dsl.netrevolution.com] has joined
#go-nuts
04:06 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services]
04:07 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
04:10 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote
host closed the connection]
04:10 -!- gnuvince [~vince@ip-96-43-233-174.dsl.netrevolution.com] has quit [Ping
timeout: 240 seconds]
04:11 -!- gnuvince [~vince@ip-96-43-233-174.dsl.netrevolution.com] has joined
#go-nuts
04:12 < vyom> anyone have any idea what could be causing this :
https://gist.github.com/1053100 I am executing doing some audio decoding in C in a
goroutine
04:12 -!- ancientlore [~ancientlo@ip68-110-238-176.dc.dc.cox.net] has left
#go-nuts []
04:16 -!- gnuvince [~vince@ip-96-43-233-174.dsl.netrevolution.com] has quit [Ping
timeout: 246 seconds]
04:18 -!- gnuvince [~vince@ip-96-43-233-174.dsl.netrevolution.com] has joined
#go-nuts
04:27 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has quit [Quit:
Lost terminal]
04:29 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
04:45 -!- foocraft [~ewanas@178.152.126.101] has quit [Ping timeout: 244 seconds]
04:45 -!- foocraft_ [~ewanas@78.100.177.234] has joined #go-nuts
04:46 -!- anticide [~textual@91.200.224.93] has joined #go-nuts
04:46 -!- anticide [~textual@91.200.224.93] has quit [Client Quit]
04:46 -!- gnuvince [~vince@ip-96-43-233-174.dsl.netrevolution.com] has quit [Ping
timeout: 240 seconds]
04:47 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has quit [Quit:
WeeChat 0.3.0]
04:48 -!- gnuvince [~vince@ip-96-43-233-174.dsl.netrevolution.com] has joined
#go-nuts
04:49 -!- danilo04 [~danilo04@66.44.225.80] has joined #go-nuts
04:49 -!- danilo04 [~danilo04@66.44.225.80] has quit [Client Quit]
04:50 < magn3ts> I wish there were a camlistore irc so I could ask my dumb
questions without having to use a mailing list :/
04:51 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has quit [Quit:
Leaving]
04:51 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has joined #go-nuts
04:59 < jessta> vyom: time.sleep() isn't a good way to wait for a goroutine
05:00 < vyom> jessta: I tried fmt.Scanf just as a test..  and that caused
the same error as well
05:01 < vyom> jessta: are you suggesting that I need to do something else
apart from firing off the goroutine
05:03 -!- AlphaCluster [~quassel@thief-pool2-121-125.mncable.net] has joined
#go-nuts
05:04 -!- Netsplit *.net <-> *.split quits: kevin``
05:04 -!- Netsplit over, joins: kevin``
05:04 < magn3ts> is there a good design paradigm or pattern for some sort of
go routine that just puts out on a channel but my have some configuration that
needs to be updated?
05:04 < magn3ts> Say I have a filter string for pcap and want to have a go
routing putting out on a channel.  How can I get new configuration into the go
routine?
05:05 < zozoR> use a nonblock channel as input for config?
05:05 < jessta> magn3ts: select{}
05:05 -!- Alpha_Cluster [~quassel@thief-pool2-121-125.mncable.net] has quit [Ping
timeout: 246 seconds]
05:05 < magn3ts> zozoR, and is there a good pattern or example of
nonblocking channels?
05:06 < magn3ts> jessta, is that enough to google on?  I'm really brand new
at this.
05:06 < zozoR> what jessta said, select
05:06 < jessta> magn3ts:
http://golang.org/doc/go_spec.html#Select_statements
05:06 < zozoR> magn3ts, always look at the spec ;) its amazing :D
05:06 < jessta> it's best not to google, everything you need to know is on
golang.org
05:07 < magn3ts> wait, lol, sorry, wow.  I know what a select statement is.
I don't understand how it helps me here.
05:07 < magn3ts> (also, ha, google "go", google "+", google "+1", all very
difficult to find in android market and google itself)
05:08 < zozoR> nonblocking channel to check "CAN I HAS CONFIG?" if none,
send stuff out via other channel in the meantime
05:08 < jessta> magn3ts: you can have a select{} that sends on one channel
and recieves on another
05:08 -!- wchicken [~chicken@cpe-72-229-150-126.nyc.res.rr.com] has joined
#go-nuts
05:09 < magn3ts> so is that select nonblocking then?
05:09 < magn3ts> does it not have to wait for c1 to provide a value for i1
before sending to c2?
05:11 < opt> do many people use the gccgo frontend?  or is 6g/8g the norm
05:11 < opt> i'm having to compile gcc 4.6 and wondering if it is worth it
05:12 < zozoR> magn3ts, no, just put the c2 <- value in the default block
05:13 < magn3ts> I see.  I can test around.  I think I understand.
05:14 < zozoR> good idea :D spoon feeding gets you nowhere ;)
05:14 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has joined #go-nuts
05:15 < magn3ts> lol, it just spurred more questions about the meaning of
"nil" which I'm sure will be more beneficial if I read about for myself.  Thanks
for getting me pointed though, I didn't appreciate go-style select statements.
05:15 < jessta> opt: most people use 6g
05:16 < jessta> magn3ts: yeah, select{} will do one channel operation,
randomly selected from the operations that can proceed
05:17 < magn3ts> awesomeness
05:23 < opt> jessta: is gccgo unstable or just difficult to build / obtain
05:24 < zozoR> if i recall correctly, gcc uses one os thread per go routine?
is that right
05:24 < zozoR> because that would be a good enough reason not to use it for
now, i think
05:25 -!- ijknacho [~goofy@cpe-72-190-64-3.tx.res.rr.com] has quit [Ping timeout:
244 seconds]
05:28 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has joined
#go-nuts
05:30 -!- wchicken [~chicken@cpe-72-229-150-126.nyc.res.rr.com] has quit [Read
error: Operation timed out]
05:31 < jessta> opt: gccgo is fine.
05:31 < jessta> yeah, no goroutine mutiplexing
05:31 -!- ExtraSpice [XtraSpice@88.118.37.245] has joined #go-nuts
05:32 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has quit [Ping
timeout: 252 seconds]
05:32 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has quit [Remote host
closed the connection]
05:34 -!- sunfmin [~sunfmin@125.119.3.55] has quit [Quit: sunfmin]
05:35 -!- Tekerson [~brenton@gir.tekerson.com] has quit [Ping timeout: 240
seconds]
05:37 < opt> what's wrong with one os thread per go routine?
05:37 < opt> i take it there's more overhead per goroutine call, but is it
really significant?  also, wouldn't the runtime create a thread pool anyway?
05:37 -!- _foocraft [~ewanas@178.152.77.164] has joined #go-nuts
05:38 < edsrzf> opt: You can't create as many goroutines with that
implementation
05:41 -!- foocraft_ [~ewanas@78.100.177.234] has quit [Ping timeout: 250 seconds]
05:43 < opt> How many is "as many"?
05:43 < crazy2be> opt: several orders of magnitude
05:44 < opt> how many orders?  how big are the magnitudes?
05:44 < crazy2be> each os thread requires a full stack and other fixed
resource allocations
05:44 < opt> doesn't a goroutine use a stack?
05:44 < Namegduf> opt: It is MUCH heavier on RAM usage.
05:44 < crazy2be> yes, but a segmented stack
05:44 < crazy2be> so it grows as needed
05:44 < Namegduf> A goroutine uses about 4KB of RAM as its initial stack.
05:45 < Namegduf> And you can make as many as you like.
05:45 < zozoR> you can have millions of goroutines in 6g, try having one
million os threads running
05:45 < Namegduf> Up to RAM limit.
05:45 < opt> ok
05:45 < zozoR> true that
05:45 < crazy2be> like at least 100x I would say
05:45 < opt> I don't think I need that many goroutines
05:45 < crazy2be> if you were making a http server you could scale up to the
10k problem
05:45 < Namegduf> It's normal to use them.
05:46 < Namegduf> For networking, for example, a goroutine per connection is
nice and pretty.
05:46 < Namegduf> Lets you use synchronous I/O.
05:46 < opt> I'm not making client-server software
05:46 < Namegduf> (In fact, DUE to synchronous I/O, it is hard not to)
05:46 < crazy2be> opt: what are you making?
05:46 < Namegduf> At any rate, this is why one OS thread per goroutine is
far more expensive.
05:47 < Namegduf> The stdlib will use goroutines fairly liberally
05:47 < opt> numerical applications
05:47 < Namegduf> The timer package, for example, will always use at least
one internally.
05:48 < opt> I just wanted to try out the language, really
05:48 < Namegduf> Well, there's your reason.
05:49 < Namegduf> Threads are expensive, goroutines don't have to be.
05:49 < zozoR> why not just use 6g when trying the language?  ^^
05:49 < Namegduf> If you don't care about performance, gccgo will be fine.
05:49 < opt> Is the C interface difficult to use?
05:49 < zozoR> no
05:49 < Namegduf> You mean wrapping C libraries for Go?
05:49 < crazy2be> not compared to other languages
05:49 < Namegduf> Not really.
05:50 < opt> More difficult than python or MATLAB?
05:50 < Namegduf> I don't know how to do it with gccgo
05:50 < Namegduf> No, not more difficult.
05:50 < Namegduf> Likely a lot easier, although I've not used those
languages.
05:50 < crazy2be> heck of a lot easier than python
05:51 < zozoR> i never figured out how python worked xD
05:51 < zozoR> so much easier
05:51 < zozoR> cgo that is
05:52 < crazy2be> because it's a lot closer to C than python is
05:52 < crazy2be> so there's no abstraction conversions there
05:53 < opt> You have to write your C code to fit the python calling
interface, don't you?  I haven't used it myself, only MATLAB.
05:53 < crazy2be> like when you call C code from python you have to convert
all of the arguments from Py_Value to whatever type you want
05:53 < zozoR> yeah
05:53 < crazy2be> or something like that
05:53 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has quit [Quit:
WeeChat 0.3.0]
05:53 < zozoR> in cgo its just k := C.int(kage) or something like that
05:54 < zozoR> although, i found the cgo examples and help on golang at
little lacking in the start
05:54 < crazy2be> examples?
05:54 < crazy2be> I never used any :p
05:54 < zozoR> maybe
05:56 -!- ccc1 [~Adium@140.109.98.187] has left #go-nuts []
05:56 -!- message144 [~message14@cpe-75-83-155-145.socal.res.rr.com] has quit
[Quit: gone]
05:58 < zozoR> i would have liked an example for every conversion :D
05:58 < zozoR> instead of just "this is how it works, go figure it out"
05:58 < kuroneko> cgo use is kinda discouraged is my take on it
05:59 < crazy2be> Well cgo is nice enough that it's not that hard in what
i've done so far
05:59 < crazy2be> but hard to debug
05:59 < zozoR> why?
05:59 < crazy2be> well I was debugging gojs, and was ending up with negative
line numbers in my stack traces
06:00 < crazy2be> not particularilly helpful
06:00 < crazy2be> and because you're dealing with C, it can read and write
arbitrary memory
06:00 < crazy2be> so you loose a lot of the safety go provides
06:01 < crazy2be> you're not in fluffy la-la land anymore
06:01 < zozoR> xD
06:01 < crazy2be> suddenly, there's anvils in some of the pillows
06:01 < zozoR> "error at line -203, fuck you"
06:01 < zozoR> :D
06:01 < crazy2be> basically
06:01 < zozoR> that is almost like coding assembly :D
06:02 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
06:02 -!- Gertm [~Gertm@178-119-230-147.access.telenet.be] has joined #go-nuts
06:02 < crazy2be> here's the gist: https://gist.github.com/1048190
06:03 < zozoR> : |
06:03 -!- ccc1 [~Adium@140.109.103.153] has joined #go-nuts
06:03 < crazy2be> that actual autogenerated file, base.cgo1.go, is actually
only like 100 lines or less
06:04 < zozoR> not anymore :|
06:04 < crazy2be> lol
06:04 < zozoR> and that is exactly why i dont want a software education
06:05 < crazy2be> why?
06:05 < crazy2be> because computers don't work?
06:05 < crazy2be> :P
06:06 < zozoR> because i dont want balls touching the ground
06:11 -!- franciscosouza [~francisco@187.105.7.88] has quit [Read error: Operation
timed out]
06:11 < crazy2be> anywho night all
06:11 < crazy2be> dreams.Sweet()
06:13 < zozoR> wat, sleeping?
06:13 < zozoR> cant you just do
06:13 -!- franciscosouza [~francisco@187.105.7.88] has joined #go-nuts
06:13 < zozoR> go Sleep()
06:13 < zozoR> and code some more?  :D
06:16 -!- crazy2be [~crazy2be@S01060012171a573b.cg.shawcable.net] has quit [Ping
timeout: 246 seconds]
06:16 < |Craig|> nah, I run on one thread, and sleep blocks it
06:18 -!- noodles775 [~michael@g225132062.adsl.alicedsl.de] has joined #go-nuts
06:18 -!- noodles775 [~michael@g225132062.adsl.alicedsl.de] has quit [Changing
host]
06:18 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts
06:19 -!- joepoe [hidden-use@194-236-28-194.customer.telia.com] has joined
#go-nuts
06:20 -!- napsy [~luka@193.2.66.6] has joined #go-nuts
06:23 -!- neshaug_ [~oyvind@213.239.108.5] has joined #go-nuts
06:23 -!- neshaug_ [~oyvind@213.239.108.5] has quit [Client Quit]
06:29 -!- benjack [~benjack@bb119-74-99-26.singnet.com.sg] has quit [Quit:
Leaving.]
06:30 -!- ccc1 [~Adium@140.109.103.153] has quit [Quit: Leaving.]
06:38 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Read error: Connection
reset by peer]
06:39 -!- johanlundberg [hidden-use@194-236-28-194.customer.telia.com] has joined
#go-nuts
06:41 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
06:44 -!- joepoe [hidden-use@194-236-28-194.customer.telia.com] has quit [Quit:
ChatZilla 0.9.87 [Firefox 5.0/20110615151330]]
06:47 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
06:50 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Remote host closed
the connection]
06:50 -!- Tv [~Tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
06:53 -!- ronnyy [~quassel@p4FF1C58E.dip0.t-ipconnect.de] has joined #go-nuts
07:00 -!- ccc1 [~Adium@140.109.103.153] has joined #go-nuts
07:14 -!- ccc1 [~Adium@140.109.103.153] has quit [Quit: Leaving.]
07:21 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has joined #go-nuts
07:25 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has quit [Ping timeout:
240 seconds]
07:26 -!- yogib [~kaiser@131.234.59.53] has joined #go-nuts
07:28 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has joined
#go-nuts
07:31 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
07:32 -!- bakedb [~kel@188.28.35.234.threembb.co.uk] has joined #go-nuts
07:33 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has quit [Ping
timeout: 252 seconds]
07:34 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
07:39 -!- maxpenguin [~malcolm@121.98.148.91] has joined #go-nuts
07:39 -!- maxpenguin [~malcolm@121.98.148.91] has left #go-nuts []
07:39 -!- maxpenguin [~malcolm@121.98.148.91] has joined #go-nuts
07:52 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Read error:
Connection reset by peer]
07:53 -!- vegai [v@discord.fi] has quit [Changing host]
07:53 -!- vegai [v@archlinux/developer/vegai] has joined #go-nuts
07:56 -!- zippoxer [~zippoxer@bzq-79-181-249-97.red.bezeqint.net] has joined
#go-nuts
08:13 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Read error: Connection
reset by peer]
08:14 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
08:14 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:18 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts
08:18 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Client
Quit]
08:19 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts
08:20 -!- ronnyy [~quassel@p4FF1C58E.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
08:20 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Read error: Connection
reset by peer]
08:21 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
08:22 -!- niemeyer [~niemeyer@conference/canonical/x-klvszrarcwmhsfes] has joined
#go-nuts
08:23 < vegai> http://www.etalabs.net/musl/faq.html fascinating
08:24 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has left #go-nuts []
08:27 -!- moraes [~moraes@189.103.188.201] has quit [Remote host closed the
connection]
08:34 -!- photron [~photron@port-92-201-114-204.dynamic.qsc.de] has joined
#go-nuts
08:45 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Read
error: Operation timed out]
08:48 -!- noodles775 [~michael@g229200017.adsl.alicedsl.de] has joined #go-nuts
08:48 -!- noodles775 [~michael@g229200017.adsl.alicedsl.de] has quit [Changing
host]
08:48 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts
08:50 -!- enferex [~enferex@users.757.org] has quit [Ping timeout: 240 seconds]
08:51 < zippoxer> when not using functions at all, my code went from 2.027ms
to 1.98ms, once when i used python, such test, almost doubled the speed when not
using functions..  scary
08:51 -!- enferex [~enferex@users.757.org] has joined #go-nuts
08:52 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has joined #go-nuts
09:01 -!- zcram [~zcram@78-28-67-129.cdma.dyn.kou.ee] has joined #go-nuts
09:05 -!- gnuvince [~vince@ip-96-43-233-174.dsl.netrevolution.com] has quit [Ping
timeout: 250 seconds]
09:08 -!- napsy [~luka@193.2.66.6] has quit [Ping timeout: 264 seconds]
09:14 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
09:17 -!- GeertJohan [~geertjoha@s51478c91.adsl.wanadoo.nl] has joined #go-nuts
09:17 -!- tux21b [~christoph@chello080109196184.3.graz.surfer.at] has joined
#go-nuts
09:18 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
09:21 -!- niemeyer [~niemeyer@conference/canonical/x-klvszrarcwmhsfes] has quit
[Ping timeout: 240 seconds]
09:27 -!- maxpenguin [~malcolm@121.98.148.91] has quit [Quit: maxpenguin]
09:33 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
09:39 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has quit [Remote
host closed the connection]
09:40 -!- GilJ [~GilJ@zeus.ugent.be] has quit [Read error: Operation timed out]
09:42 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 255 seconds]
09:42 -!- GilJ [~GilJ@zeus.ugent.be] has joined #go-nuts
09:55 -!- tux21b [~christoph@chello080109196184.3.graz.surfer.at] has quit [Ping
timeout: 255 seconds]
09:57 -!- zippoxer [~zippoxer@bzq-79-181-249-97.red.bezeqint.net] has quit [Ping
timeout: 260 seconds]
10:03 -!- hcatlin [~hcatlin@host86-161-237-3.range86-161.btcentralplus.com] has
joined #go-nuts
10:03 -!- hcatlin [~hcatlin@host86-161-237-3.range86-161.btcentralplus.com] has
quit [Changing host]
10:03 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
10:06 -!- kanliot-noob [~chatzilla@76.5.136.186] has joined #go-nuts
10:10 -!- Sep102 [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has quit [Read
error: Connection reset by peer]
10:10 -!- kanliot-noob [~chatzilla@76.5.136.186] has quit [Ping timeout: 240
seconds]
10:12 -!- Sep102 [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has joined
#go-nuts
10:30 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has quit [Quit:
WeeChat 0.3.0]
10:31 -!- virtualsue [~chatzilla@nat/cisco/x-mfjzhwftpducjhxf] has joined #go-nuts
10:31 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 276
seconds]
10:32 -!- alehorst [~alehorst@189.58.29.36.dynamic.adsl.gvt.net.br] has joined
#go-nuts
10:33 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
10:35 -!- tux21b [~christoph@chello080109196184.3.graz.surfer.at] has joined
#go-nuts
10:43 -!- ccc1 [~Adium@140.109.98.187] has quit [Quit: Leaving.]
10:53 -!- tux21b [~christoph@chello080109196184.3.graz.surfer.at] has quit [Ping
timeout: 255 seconds]
10:56 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
10:57 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has joined #go-nuts
11:02 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has quit [Ping timeout:
264 seconds]
11:18 -!- niemeyer [~niemeyer@conference/canonical/x-xyvvmoipgitxbnml] has joined
#go-nuts
11:22 < GeertJohan> what are the styling guidelines towards package names
containing uppercase characters?
11:22 < GeertJohan> should I use: usagesync or usageSync ?
11:25 < str1ngs> package names I would use lower case
11:25 < str1ngs> in this case you might want a namespace.  ie usage/sync
11:27 -!- photron [~photron@port-92-201-114-204.dynamic.qsc.de] has quit [Quit:
Leaving]
11:28 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
11:31 -!- nekoh [~nekoh@dslb-178-004-069-165.pools.arcor-ip.net] has joined
#go-nuts
11:36 -!- tncardoso [~thiago@187.58.197.172] has joined #go-nuts
11:36 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
11:37 -!- ronnyy [~quassel@p4FF1C58E.dip0.t-ipconnect.de] has joined #go-nuts
11:40 -!- gnuvince|work [8e544424@gateway/web/freenode/ip.142.84.68.36] has joined
#go-nuts
11:48 -!- franciscosouza_ [~francisco@187.105.9.70] has joined #go-nuts
11:49 -!- franciscosouza [~francisco@187.105.7.88] has quit [Ping timeout: 264
seconds]
12:04 -!- franciscosouza [~francisco@187.105.9.70] has quit [Quit: franciscosouza]
12:04 -!- zippoxer [~zippoxer@bzq-79-176-249-25.red.bezeqint.net] has joined
#go-nuts
12:05 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has left #go-nuts
[]
12:08 -!- dario [~dario@domina.zerties.org] has quit [Read error: Operation timed
out]
12:08 -!- dario [~dario@domina.zerties.org] has joined #go-nuts
12:08 -!- aiju [~aiju@unaffiliated/aiju] has quit [Ping timeout: 255 seconds]
12:09 -!- aslakr [~aslak@static.42.114.40.188.clients.your-server.de] has quit
[Ping timeout: 240 seconds]
12:09 -!- mnemoc [~amery@shell.opensde.net] has quit [Ping timeout: 260 seconds]
12:09 -!- [dmp] [~dennis@unaffiliated/dmp/x-546784] has quit [Ping timeout: 240
seconds]
12:10 -!- qrush [u1528@gateway/web/irccloud.com/x-cahwuqfwnxoaulyd] has quit [Ping
timeout: 244 seconds]
12:10 -!- coffeejunk [~max@static.58.62.47.78.clients.your-server.de] has quit
[Ping timeout: 240 seconds]
12:10 -!- coffeejunk [~max@static.58.62.47.78.clients.your-server.de] has joined
#go-nuts
12:10 -!- welterde [welterde@thinkbase.srv.welterde.de] has quit [Ping timeout:
255 seconds]
12:10 -!- mnemoc [~amery@shell.opensde.net] has joined #go-nuts
12:10 -!- Crnobog|Work [u1041@gateway/web/irccloud.com/x-cgdhuyuwcymagyfm] has
quit [Ping timeout: 264 seconds]
12:10 -!- aiju [~aiju@unaffiliated/aiju] has joined #go-nuts
12:11 -!- aslakr [~aslak@static.42.114.40.188.clients.your-server.de] has joined
#go-nuts
12:11 -!- [dmp] [~dennis@unaffiliated/dmp/x-546784] has joined #go-nuts
12:12 -!- Kai` [u327@gateway/web/irccloud.com/x-tcjjhmdtowsklqcr] has quit [Ping
timeout: 246 seconds]
12:12 -!- darkhelmetlive [u1769@gateway/web/irccloud.com/x-gloeotybueijutiv] has
quit [Ping timeout: 240 seconds]
12:13 -!- ronnyy [~quassel@p4FF1C58E.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
12:14 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 246
seconds]
12:14 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined
#go-nuts
12:15 -!- Kai` [u327@gateway/web/irccloud.com/x-lfncztjvvasytpwe] has joined
#go-nuts
12:15 -!- darkhelmetlive [u1769@gateway/web/irccloud.com/x-cszdniajitjbkgfn] has
joined #go-nuts
12:18 -!- qrush [u1528@gateway/web/irccloud.com/x-oswbinvwfcgyxhda] has joined
#go-nuts
12:22 -!- Gertm [~Gertm@178-119-230-147.access.telenet.be] has quit [Quit: C-x
C-c]
12:23 -!- zippoxer [~zippoxer@bzq-79-176-249-25.red.bezeqint.net] has quit [Read
error: Connection reset by peer]
12:24 -!- welterde [welterde@thinkbase.srv.welterde.de] has joined #go-nuts
12:24 -!- Crnobog|Work [u1041@gateway/web/irccloud.com/x-ozbpynrsfmnupxre] has
joined #go-nuts
12:27 -!- ccc1 [~Adium@114-45-85-144.dynamic.hinet.net] has joined #go-nuts
12:28 -!- tux21b [~christoph@chello080109196184.3.graz.surfer.at] has joined
#go-nuts
12:30 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has joined #go-nuts
12:30 -!- ijknacho [~goofy@cpe-72-190-64-3.tx.res.rr.com] has joined #go-nuts
12:34 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
12:34 -!- niemeyer [~niemeyer@conference/canonical/x-xyvvmoipgitxbnml] has quit
[Ping timeout: 240 seconds]
12:39 -!- replore_ [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has
joined #go-nuts
12:39 -!- darkhelmetlive [u1769@gateway/web/irccloud.com/x-cszdniajitjbkgfn] has
quit [Remote host closed the connection]
12:39 -!- qrush [u1528@gateway/web/irccloud.com/x-oswbinvwfcgyxhda] has quit
[Write error: Broken pipe]
12:40 -!- Kai` [u327@gateway/web/irccloud.com/x-lfncztjvvasytpwe] has quit [Read
error: Connection reset by peer]
12:41 -!- Crnobog|Work [u1041@gateway/web/irccloud.com/x-ozbpynrsfmnupxre] has
quit [Remote host closed the connection]
12:42 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
12:42 -!- zippoxer [~zippoxer@bzq-109-67-200-156.red.bezeqint.net] has joined
#go-nuts
12:44 -!- kfmfe04 [~kfeng@114-32-57-164.HINET-IP.hinet.net] has joined #go-nuts
12:46 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts
12:46 -!- replore_ [~replore@ntkngw256114.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit
[Remote host closed the connection]
12:49 -!- Fish- [~Fish@coss6.exosec.net] has quit [Ping timeout: 240 seconds]
12:51 -!- Fish- [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
12:54 -!- nekoh [~nekoh@dslb-178-004-069-165.pools.arcor-ip.net] has quit [Quit:
nekoh]
12:55 -!- yogib [~kaiser@131.234.59.53] has quit [Ping timeout: 260 seconds]
12:56 -!- dario [~dario@domina.zerties.org] has quit [Read error: Operation timed
out]
12:58 -!- Fish- [~Fish@exo3753.pck.nerim.net] has quit [Quit: So Long, and Thanks
for All the Fish]
12:58 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
13:02 -!- zippoxer [~zippoxer@bzq-109-67-200-156.red.bezeqint.net] has quit [Ping
timeout: 252 seconds]
13:06 -!- hargettp_ [~hargettp_@dhcp-161.mirrorimage.net] has left #go-nuts []
13:07 -!- Kai` [u327@gateway/web/irccloud.com/x-desplkvagmfqfbps] has joined
#go-nuts
13:07 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
13:08 -!- moraes [~moraes@189.103.188.201] has quit [Read error: Operation timed
out]
13:09 -!- hargettp_ [~hargettp_@dhcp-161.mirrorimage.net] has joined #go-nuts
13:10 -!- JimPeak [~lejimpeak@modemcable213.208-160-184.mc.videotron.ca] has
joined #go-nuts
13:19 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
13:19 -!- darkhelmetlive [u1769@gateway/web/irccloud.com/x-lgbaspucqicinoje] has
joined #go-nuts
13:22 -!- qrush [u1528@gateway/web/irccloud.com/x-pqcyorgzjtaxazfl] has joined
#go-nuts
13:25 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit:
Leaving.]
13:26 -!- bakedb [~kel@188.28.35.234.threembb.co.uk] has quit [Read error:
Connection timed out]
13:26 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has quit [Remote host
closed the connection]
13:26 -!- bakedb [~kel@188.28.35.234.threembb.co.uk] has joined #go-nuts
13:27 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined
#go-nuts
13:27 -!- Crnobog|Work [u1041@gateway/web/irccloud.com/x-sqxzckswxuejlhnc] has
joined #go-nuts
13:29 -!- Gertm [~Gertm@178-119-230-147.access.telenet.be] has joined #go-nuts
13:33 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
13:38 -!- iant [~iant@67.218.109.241] has joined #go-nuts
13:38 -!- mode/#go-nuts [+v iant] by ChanServ
13:38 -!- niemeyer [~niemeyer@conference/canonical/x-bgsmqjzxfdlklkds] has joined
#go-nuts
13:39 -!- iant1 [~iant@67.218.104.187] has joined #go-nuts
13:41 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
13:42 -!- iant [~iant@67.218.109.241] has quit [Ping timeout: 258 seconds]
13:44 -!- Fish [~Fish@exo3753.pck.nerim.net] has quit [Quit: So Long, and Thanks
for All the Fish]
13:44 -!- ArgonneIntern [~ArgonneIn@mcswl151.mcs.anl.gov] has joined #go-nuts
13:45 < ArgonneIntern> hello everyone
13:46 -!- niemeyer [~niemeyer@conference/canonical/x-bgsmqjzxfdlklkds] has quit
[Ping timeout: 240 seconds]
13:48 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has quit [Quit: "Wait...  what?!"]
13:51 -!- Belg [~kim@gw-gbg.ilait.se] has joined #go-nuts
13:54 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has
joined #go-nuts
13:55 -!- GeertJohan [~geertjoha@s51478c91.adsl.wanadoo.nl] has quit [Quit:
Leaving.]
13:56 < Belg> In a server where each connection is handled by a goroutine,
where each goroutine is in a for-loop reading from the client, what's a good way
to kick individual clients out?  I can't see a way to do a select statement, since
there doesn't seem to be a way to use select on anything but channels.
13:58 < jessta> Belg: you can close the connections
13:59 < Belg> jessta: Not in this case.  I have to inform the clients that
they will be disconnected and give them some time to deal with it.  The ideal way
would be if I could check for data on channels in the goroutine that is already
handling the client, but that doesn't seem possible.
14:01 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
14:01 < chomp> can't each connection have a control channel associated with
it that is selected by their goroutine?
14:01 < ArgonneIntern> Belg: close the connection on the server side and
change the header of the response to "Connection":"close"
14:02 < Belg> ArgonneIntern: It's not a http server
14:02 < ArgonneIntern> this will tellt he client the connection is closing
14:02 < chomp> ArgonneIntern, lol...  not the same thing.
14:02 < ArgonneIntern> oh
14:02 < ArgonneIntern> well the same logic can be applied
14:02 < Belg> chomp: Ideally, yes, but there's no way to use select when
reading from a connection.  Select only accepts channels, from what I can tell
14:02 < chomp> Belg, do you need any information back from the client once
you tell it it's time to go?
14:02 < ArgonneIntern> just with sockets
14:02 < Belg> I could dump all data I read into channels, but that seems
horrible.
14:03 < chomp> Belg, you could also have two goroutines per connection
14:03 < skelterjohn|work> morning
14:03 < Belg> chomp: Yes.  There's a whole lot of other stuff involved too,
but that's not relevant to this I think
14:04 < Belg> chomp: One that reads and one that writes?
14:04 < chomp> or more generally one that reads and one that controls
14:04 < chomp> yes
14:05 < chomp> the reader could deal with processing incoming data and
firing specific signals to the control goroutine when appropriate
14:05 < chomp> the controller would do any writing and closing
14:06 < Belg> But then I could be stuck with a bunch of reading goroutines
that never close down, assuming the clients hang and don't close the connection.
A semantic problem perhaps, but it's not clean.
14:07 < chomp> so you have a timeout which force-closes
14:07 < chomp> like pretty much any other service
14:07 < jessta> Belg: it's easy enough to wrap a socket in a channel
14:07 < Belg> Yeah, I'm using timeouts now, and checking for data on
channels after each timeout, but that seemed ugly too.  Or more of an "old" way of
doing it, I figured there had to be a cleaner way to do it in Go,.
14:08 < Belg> jessta: The socket itself, so I wouldn't have do suffer
massive memory copying for the data going in and out?
14:08 < chomp> yeah generally the "cleaner" way is to relegate blocking
operations to their own goroutines and use channels for communication
14:09 < jessta> Belg: you don't have to send all the data over the channel,
just a send a slice
14:09 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has joined #go-nuts
14:09 < Belg> riight, and it's just references
14:10 -!- sunfmin [~sunfmin@125.119.3.55] has joined #go-nuts
14:14 -!- rzoz [801d2b01@gateway/web/freenode/ip.128.29.43.1] has joined #go-nuts
14:21 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
14:22 -!- Bigbear1 [~Cody@d75-158-128-85.abhsia.telus.net] has joined #go-nuts
14:26 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
14:34 -!- bmizerany [~bmizerany@vpn13.hotsplots.net] has joined #go-nuts
14:38 -!- xyproto [~alexander@77.40.159.131] has quit [Ping timeout: 244 seconds]
14:39 -!- jsj [~johan@78-70-253-105-no149.tbcn.telia.com] has joined #go-nuts
14:40 -!- mattn_jp [~mattn@112-68-59-121f1.hyg1.eonet.ne.jp] has joined #go-nuts
14:41 -!- xyproto [~alexander@77.40.159.131] has joined #go-nuts
14:45 -!- jkleier [~zombified@li42-87.members.linode.com] has quit [Quit: leaving]
14:47 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has
joined #go-nuts
14:50 -!- bmizerany [~bmizerany@vpn13.hotsplots.net] has quit [Remote host closed
the connection]
14:51 -!- Narren [~skald@narren.la.net.ua] has joined #go-nuts
14:52 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
14:54 -!- Venom_X_ [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
14:55 -!- hallas [~Hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has joined
#go-nuts
14:56 -!- iant1 [~iant@67.218.104.187] has quit [Quit: Leaving.]
14:57 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
15:00 -!- niemeyer [~niemeyer@conference/canonical/x-gvubcygguhmeorte] has joined
#go-nuts
15:01 -!- ArgonneIntern [~ArgonneIn@mcswl151.mcs.anl.gov] has quit [Read error:
Connection reset by peer]
15:08 -!- ArgonneIntern [~ArgonneIn@mcswl151.mcs.anl.gov] has joined #go-nuts
15:08 -!- iant [~iant@nat/google/x-fdzagftyzxhrooyi] has joined #go-nuts
15:08 -!- mode/#go-nuts [+v iant] by ChanServ
15:08 < ArgonneIntern> al right first time I hard crashed from running a go
program!
15:09 < skelterjohn|work> how'd you manage that?
15:09 < skelterjohn|work> infinite memory-consuming loop?
15:09 < zozoR> its awesome when go eats your memory
15:09 < zozoR> om nom nom
15:10 < skelterjohn|work> is there a way to hard-limit the amount of memory
consuming by a particular program?
15:10 < skelterjohn|work> and just have it crash if it tries to grab more?
15:10 -!- zippoxer [~zippoxer@109.67.200.156] has joined #go-nuts
15:10 < ArgonneIntern> ran an exec.Run, closed the returned command, tried
to read all from command.Stdout pipe (failed), split the string of the bytes not
returned by the failed readall, then iterated through the string array that was
not created fromt he split lmao
15:10 -!- jsj [~johan@78-70-253-105-no149.tbcn.telia.com] has quit [Read error:
Connection reset by peer]
15:10 < ArgonneIntern> so pretty much I epicly failed there
15:11 < ArgonneIntern> copy and paste error from an earlier routine, not
taking the cmd.Close() out
15:11 < skelterjohn|work> and that crashed your computer?
15:11 < ArgonneIntern> oh yea
15:11 < ArgonneIntern> hard crash
15:11 < zozoR> ulimit can apparently limit the memory usage
15:11 < ArgonneIntern> go did return with the index out of range and allthat
but then it immediattely hard crash
15:12 -!- rzoz [801d2b01@gateway/web/freenode/ip.128.29.43.1] has left #go-nuts []
15:13 -!- jsj [~johan@78-70-253-105-no149.tbcn.telia.com] has joined #go-nuts
15:13 < ArgonneIntern> can anyone recommend a good linux irc client, empathy
just is too clunky for irc IMO
15:14 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has joined #go-nuts
15:14 < pjz> irssi
15:14 < ment> ArgonneIntern: BitchX
15:14 < zozoR> xchat
15:14 < zozoR> :D
15:16 < ArgonneIntern> at first I thought you were joking but bithX seems to
be good
15:17 < skelterjohn|work> i'm using xchat, it seems fine
15:17 * pjz runs irssi under screen
15:18 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has quit [Ping timeout:
250 seconds]
15:21 < ArgonneIntern> brb
15:21 -!- ArgonneIntern [~ArgonneIn@mcswl151.mcs.anl.gov] has left #go-nuts []
15:23 < zozoR> .gov
15:23 < zozoR> government?  :D
15:24 < skelterjohn|work> he's interning at some national lab
15:24 < skelterjohn|work> he thinks it's famous, but i've never heard of it
15:24 -!- ArgonneIntern [~gauge@mcswl151.mcs.anl.gov] has joined #go-nuts
15:24 < ArgonneIntern> well this is much better lol
15:24 < chomp> i prefer xchat
15:25 < ArgonneIntern> yea I decided to try xChat as I could just apt-get it
vs making bitchX
15:25 < chomp> only because btichx scripting angers me and i can never get
it to do what i want with windows
15:25 < skelterjohn|work> on the bitchx site they recommend not using it in
windows
15:25 < skelterjohn|work> "do you hang a picasso in the bathroom?"
15:25 < chomp> err i meant chat windows, not the OS :)
15:25 < skelterjohn|work> aha
15:25 < chomp> but nice quote lol
15:26 -!- ancientlore [~ancientlo@63.76.22.10] has joined #go-nuts
15:26 < chomp> i once upon a time had a perfect bitchx config that i used
everywhere, and then i lost it
15:26 < chomp> never have been able to reproduce it
15:27 < skelterjohn|work> :'(
15:27 -!- niemeyer [~niemeyer@conference/canonical/x-gvubcygguhmeorte] has quit
[Ping timeout: 240 seconds]
15:28 -!- alehorst [~alehorst@189.58.29.36.dynamic.adsl.gvt.net.br] has quit [Read
error: Connection reset by peer]
15:28 -!- subiron_ [~subiron@host-79.173.12.50.tesatnet.pl] has joined #go-nuts
15:29 -!- ancientlore [~ancientlo@63.76.22.10] has quit [Client Quit]
15:30 -!- subiron_ [~subiron@host-79.173.12.50.tesatnet.pl] has quit [Quit:
Ex-Chat]
15:30 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has quit []
15:30 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
15:30 -!- ancientlore [~ancientlo@63.76.22.10] has joined #go-nuts
15:31 -!- ancientlore [~ancientlo@63.76.22.10] has quit [Client Quit]
15:31 -!- mrmikenev [~mkn24@128.187.207.179] has joined #go-nuts
15:32 < ArgonneIntern> if you do a for range on an array and you append that
array, will the range update upon every loop?
15:33 -!- ancientlore [~ancientlo@63.76.22.10] has joined #go-nuts
15:33 < skelterjohn|work> append doesn't necessarily return the same slice
15:33 < ArgonneIntern> right
15:33 < skelterjohn|work> if it has to allocate, you'll get back something
new and it won't affect the ranging at all
15:33 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
15:33 < skelterjohn|work> if it doesn't have to allocate, i'm not sure what
will happen - it might calculate the length once at the beginning
15:33 < skelterjohn|work> or it might use the length in the slice
datastructure each time, i don't know
15:33 < ArgonneIntern> so if I range someArray, and then do someArray =
append(someSmallerArray)
15:33 < skelterjohn|work> slice, not array
15:34 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
15:34 < ArgonneIntern> err yes
15:34 < skelterjohn|work> but that's not safe, no
15:34 < skelterjohn|work> the thing you're ranging over isn't whatever
happens to be named someArray
15:34 < ArgonneIntern> even if the parts I'm removing are after the current
position
15:34 < skelterjohn|work> it's whatever someArray evaluated to in the range
clause, when you began
15:34 < ArgonneIntern> ahh
15:34 < ArgonneIntern> dang
15:34 < skelterjohn|work> static language, etc
15:35 < ArgonneIntern> well it works for maps
15:35 < ArgonneIntern> which is why I asked
15:35 < ArgonneIntern> I can range a map and remove values from it and it
still works
15:35 < skelterjohn|work> that's different than adding them
15:35 < skelterjohn|work> and that won't always work
15:35 < skelterjohn|work> it will depend on where the element was added
15:36 < ArgonneIntern> i'm not using append to add
15:36 < ArgonneIntern> i'm using apped to remove
15:37 < ArgonneIntern> but it seems like I'll have to collect positions of
the array I would like removed and then do a seperate loop to remove them
15:37 < skelterjohn|work> like, append(slice[:t], slice[t+1:]...)?
15:37 < ArgonneIntern> yes
15:37 < skelterjohn|work> i bet you would lose iterations
15:37 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Quit:
leaving]
15:37 < ArgonneIntern> well Iw ould expect it to
15:37 < skelterjohn|work> i bet if you did that to the current element, the
index would still be incremented and you would never see the one that follows
15:37 < ArgonneIntern> the positions being removed are always after the
position I'm starting from
15:37 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 252 seconds]
15:38 < ArgonneIntern> ohh
15:38 < ArgonneIntern> like it would skip the next one
15:38 < ArgonneIntern> but then wouldn't it also have an index out of range
at the end?
15:38 < skelterjohn|work>
http://golang.org/doc/play/#package%20main%0A%0Aimport%20%22strings%22%0A%0A%2F%2F%20'%20only%20as%20an%20example%2C%20could%20be%20any%20convenient%20string%0Avar%20sql%20%3D%20strings.Replace(%60%0Aselect%20*%20%0Afrom%20'table'%0Aorder%20by%20'ID'%60%2C%20%0A%20%20%20%20%22'%22%2C%20%22%60%22%2C%20-1)%0A%0Afunc%20main()%20%7B%0A%09println(sql)%0A%7D%0A
15:39 < skelterjohn|work> all sorts of problems
15:39 < skelterjohn|work> (see long url'd example)
15:39 < skelterjohn|work> i think that page should have abbreviated links
15:39 < skelterjohn|work> like a pastebin
15:39 -!- Project_2501 [~Marvin@82.84.73.58] has joined #go-nuts
15:40 < skelterjohn|work> anyway, the moral of the story is "don't do that"
15:40 < skelterjohn|work> um, i might have an old url there..one sec
15:40 < ArgonneIntern> right
15:40 < ArgonneIntern> but it does work for maps?
15:40 < ArgonneIntern> I'm confused lol
15:41 < skelterjohn|work> http://pastebin.com/JjKmjsjB
15:41 < skelterjohn|work> i think you can remove safely with maps
15:41 < skelterjohn|work> not sure
15:41 < ArgonneIntern> hmm
15:41 < ArgonneIntern> well I'll tel it and let you know
15:42 < ArgonneIntern> so do you know of an efficient way to test for
positions of an array and remove those positions
15:42 < ArgonneIntern> or does that just require 2 loops no matter what in
go
15:42 -!- joepoe [hidden-use@194-236-28-194.customer.telia.com] has quit [Remote
host closed the connection]
15:43 -!- tncardoso [~thiago@187.58.197.172] has quit [Quit: bye]
15:43 < skelterjohn|work> http://pastebin.com/CQ8XFqUn
15:43 < skelterjohn|work> what does "test for positions of an array" mean?
15:44 -!- Project_2501 [~Marvin@82.84.73.58] has quit [Ping timeout: 246 seconds]
15:44 < ArgonneIntern> test to see if certain values in the array meet a
condition, and if they do, remove them
15:45 < skelterjohn|work> i see - the normal way to describe that is a
filter
15:45 < ArgonneIntern> if you can't safely append, you would have to save
the positions and then append them out in a second loop
15:46 < ArgonneIntern> I can't wait to be done with this project so I can
work on an []string package
15:46 < skelterjohn|work> i'd just create a new slice
15:46 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-173-193.clienti.tiscali.it] has
joined #go-nuts
15:47 < ArgonneIntern> append does create a new slice
15:47 < ArgonneIntern> the point is, I can't do it in one loop
15:47 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has joined
#go-nuts
15:47 < ArgonneIntern> if I only had 1 position I could do it in one loop
then create a new slice
15:48 < ArgonneIntern> but with multiple positions to be removed
15:48 < ArgonneIntern> values, sorry
15:48 < skelterjohn|work> i mean, x := make([]int, len(y), 0); for v :=
range y { if foo(v) { x = append(x, v) } }
15:48 < ArgonneIntern> oh..intesting
15:49 < skelterjohn|work> you could also not use range
15:49 < skelterjohn|work> and do a regular for loop that you have control
over
15:49 < ArgonneIntern> and set the index position
15:49 < skelterjohn|work> but if you do it with one slice, you have to copy
lots of data each time you remove
15:49 < ArgonneIntern> actually sorry the end condition
15:49 < skelterjohn|work> if you just copy into another, you copy each of
the elements you want, exactly once
15:50 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error:
Connection reset by peer]
15:50 < skelterjohn|work> instead of O(n^2) like the single slice version
15:50 < ArgonneIntern> right just copy all the elements that don't meet the
condition
15:50 < ArgonneIntern> and you end up with the slice you want
15:50 < ArgonneIntern> thanks
15:50 < skelterjohn|work> np
15:50 -!- alehorst [~alehorst@177.40.51.63] has joined #go-nuts
15:50 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
15:50 -!- iant [~iant@nat/google/x-fdzagftyzxhrooyi] has quit [Quit: Leaving.]
15:53 -!- subiron [~subironp@king.tracepoint.pl] has joined #go-nuts
15:54 -!- niemeyer [~niemeyer@conference/canonical/x-cerjsylepthzovrx] has joined
#go-nuts
15:54 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-173-193.clienti.tiscali.it] has
quit [Ping timeout: 258 seconds]
16:02 -!- subiron [~subironp@king.tracepoint.pl] has quit [Quit: leaving]
16:06 < ArgonneIntern> value, ok := someMap[someKey] <- will the add the
entry to the map
16:07 < ArgonneIntern> I'm aware on the first pass it will check for
presence but will it create it with zero value just by checking as above
16:12 -!- tncardoso [~thiagon@150.164.2.20] has joined #go-nuts
16:16 -!- virtualsue [~chatzilla@nat/cisco/x-mfjzhwftpducjhxf] has quit [Ping
timeout: 260 seconds]
16:18 < exch> no
16:19 -!- ijknacho [~goofy@cpe-72-190-64-3.tx.res.rr.com] has quit [Quit: Leaving]
16:38 < chomp> i for one like my reads to have side-effects
16:45 -!- alsvidr [~sf@2001:41d0:1:530d::1] has left #go-nuts ["ERC Version 5.3
(IRC client for Emacs)"]
16:49 -!- ccc1 [~Adium@114-45-85-144.dynamic.hinet.net] has quit [Quit: Leaving.]
16:50 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 240
seconds]
16:50 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:50 -!- Bigbear1 [~Cody@d75-158-128-85.abhsia.telus.net] has left #go-nuts []
16:50 -!- bytbox [~s@129.2.129.145] has joined #go-nuts
16:53 -!- sacho [~sacho@90.154.221.44] has quit [Ping timeout: 276 seconds]
16:53 -!- stalled [~stalled@unaffiliated/stalled] has quit [Quit: ...]
16:53 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has joined #go-nuts
16:56 -!- sunfmin [~sunfmin@125.119.3.55] has quit [Quit: sunfmin]
16:59 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Quit: pjacobs]
17:03 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
17:03 -!- anticide [~textual@91.200.224.93] has joined #go-nuts
17:03 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Quit:
pyrhho]
17:06 -!- bytbox [~s@129.2.129.145] has quit [Ping timeout: 244 seconds]
17:07 -!- Transformer [~Transform@ool-4a59e397.dyn.optonline.net] has joined
#go-nuts
17:07 -!- Transformer [~Transform@ool-4a59e397.dyn.optonline.net] has quit [Excess
Flood]
17:10 -!- iant [~iant@nat/google/x-jmgnscqzzyyhyulp] has joined #go-nuts
17:10 -!- mode/#go-nuts [+v iant] by ChanServ
17:11 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
17:12 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
17:15 -!- anticide [~textual@91.200.224.93] has quit [Read error: Connection reset
by peer]
17:19 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
17:26 -!- jbooth1 [~jay@209.249.216.2] has joined #go-nuts
17:28 -!- lucian_ [~lucian@78-86-217-168.zone2.bethere.co.uk] has joined #go-nuts
17:29 -!- bakedb [~kel@188.28.35.234.threembb.co.uk] has quit [Ping timeout: 255
seconds]
17:42 -!- pjacobs [~pjacobs@rrcs-24-73-248-196.sw.biz.rr.com] has joined #go-nuts
17:45 -!- Sxan [~russes02@12.175.119.20] has joined #go-nuts
17:46 < Sxan> Are there instructions with specifics about setting up a Go
install for cross-compiling to another OS?
17:46 -!- alehorst [~alehorst@177.40.51.63] has quit [Read error: Connection reset
by peer]
17:48 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has quit
[Quit: Leaving...]
17:48 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
17:48 < skelterjohn|work> Sxan: you can use env vars to do it
17:48 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has
joined #go-nuts
17:49 < skelterjohn|work> GOOS=linux gomake
17:49 < skelterjohn|work> etc
17:49 < skelterjohn|work> but to do that you'll need to build the core libs
for the target platform
17:50 < skelterjohn|work> i think you can do that if you go to
$GOROOT/src/pkg
17:50 < skelterjohn|work> and run: GOOS=linux ./make.bash
17:50 < skelterjohn|work> for the appropriate os, ofc
17:51 < skelterjohn|work> oh, just make, not ./make.bash
17:51 < skelterjohn|work> GOOS=linux make clean
17:51 < skelterjohn|work> GOOS=linux make
17:51 < Sxan> Ok, that's what I was missing.
17:52 < Sxan> I was trying to build go itself with GOOS set, and it (of
course) barfs when it gets to running it's own tools to install packages.
17:53 < Sxan> And, of course, you can't just do GOOS=darwin gomake unless
you have the packages for that platform :-/
17:53 < skelterjohn|work> actually, when i do what i just told you, it has
problems building some things...it seems like the makefile in src/pkg still tries
to build the cmds
17:53 < Sxan> So, to cross-compile, you *must* have access to the target
platform at some point to get the packages.  Right?
17:53 < skelterjohn|work> no
17:53 < skelterjohn|work> 6g on linux can compile for darwin, etc
17:54 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has quit
[Quit: Leaving...]
17:54 < skelterjohn|work> however...some cgo packages present problems
17:55 < skelterjohn|work> i'm trying to build the core lib for darwin from
linux, here, using gb (instead of make, which tries to rebuild the cmds causing me
to not be able to run them)
17:55 < skelterjohn|work> i try to build net for darwin, and some of its C
deps aren't met
17:55 < skelterjohn|work> which i have no obvious way around
17:56 < Sxan> If I just set GOOS=darwin, gomake fails, complaining it can't
find packages (like strings).
17:56 < Sxan> (I'm on Linux ATM)
17:57 < Sxan> How are you getting the core libraries installed?
17:57 < skelterjohn|work> so, with the disclosure that i wrote gb, you might
be able to get this working with gb if it doesn't need to import any packages that
have problems (like net)
17:57 -!- Pathin [~root@gladsheim.nullbytestudios.net] has quit [K-Lined]
17:57 < skelterjohn|work> if you run "GOOS=darwin gb -R"
17:57 < Sxan> Hm. http?
17:57 < skelterjohn|work> it will build only the bits of the core that it
needs
17:57 < Sxan> Is gb compiling with weekly?
17:57 < skelterjohn|work> go-gb.googlecode.com
17:57 < skelterjohn|work> yes
17:57 < skelterjohn|work> i keep up to date with weekly for my own projects,
and use gb to compile them
17:58 < skelterjohn|work> so i have to keep gb up with weekly, too
17:58 < Sxan> K, thx.
18:00 < Sxan> Hrm.
18:00 < Sxan> Which weekly?  Just "weekly"?
18:00 < Sxan> I mean, that you've verified it for?
18:00 < skelterjohn|work> the gb tip works with the go weekly
18:00 < gnuvince|work> How can I verify whether a file on the disk exists or
not?
18:00 < skelterjohn|work> i do hg pull; hg up weekly
18:00 < skelterjohn|work> gnuvince|work: os.Stat
18:00 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has
joined #go-nuts
18:00 < exch> or os.Lstat
18:01 < skelterjohn|work> what's the difference?  never noticed Lstat
18:01 < exch> it follows symbolic links afaik
18:01 < exch> Stat doesn't
18:01 < skelterjohn|work> cool
18:03 < skelterjohn|work> Sxan: so yeah, "GOOS=darwin gb -R" will work for
some of my projects, not for others.  the ones that don't appear to have a dep on
the "net" package, and i can't build that pkg for darwin
18:03 -!- Project_2501 [~Marvin@82.84.87.199] has joined #go-nuts
18:04 < Sxan> skelterjohn|work: gb is failing to compile for me with
goinstall, but I cloned the source and it builds from there, so I'm OK.
18:04 < skelterjohn|work> goinstall gets the "release" version of whatever
it grabs
18:04 < skelterjohn|work> and i have release versions of gb to work with the
release version of go
18:04 < Sxan> Aha.
18:04 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has quit
[Ping timeout: 240 seconds]
18:05 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-158-9.clienti.tiscali.it] has
joined #go-nuts
18:06 < Sxan> Hmm.  What does it mean when gb reports that it "Could not
find '' in path"
18:07 < skelterjohn|work> strange error - but it looks like it's trying to
find a command it needs and is failing
18:07 -!- njustn [~njustn@c-24-5-251-77.hsd1.ca.comcast.net] has joined #go-nuts
18:07 < skelterjohn|work> the specific command is supposed to be in the ''
18:07 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has
joined #go-nuts
18:07 < Sxan> Strace says the last thing it tried to open was workspace.gb
18:08 < Sxan> skelterjohn|work: I don't know.  It reports that with any
command I try; -c, -L, -R...
18:08 < Sxan> s/command/argument/
18:08 < skelterjohn|work> yes - it won't stop
18:08 < skelterjohn|work> what's your GOOS/GOARCH?
18:08 -!- Project_2501 [~Marvin@82.84.87.199] has quit [Ping timeout: 240 seconds]
18:08 < Sxan> GOOS=darwin, GOARCH=i386.  Real OS is linux + amd64
18:08 < skelterjohn|work> GOARCH should be 386
18:08 < skelterjohn|work> not i386
18:09 < Sxan> Duh.
18:09 < skelterjohn|work> it doesn't know what compiler to use for i386
18:09 < Sxan> Thanks.
18:09 < skelterjohn|work> that being said, it should report a better error
18:10 -!- nannto__ [~nanto@pee5b70.tokyff01.ap.so-net.ne.jp] has quit [Quit:
Leaving...]
18:11 -!- alehorst [~alehorst@186.212.213.85] has joined #go-nuts
18:11 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has joined
#go-nuts
18:11 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-174-162.clienti.tiscali.it] has
joined #go-nuts
18:12 < Sxan> Are there any other dependencies that I need to have
installed?
18:12 < skelterjohn|work> hmm - if you are on a machine with GOARCH=amd64,
and you want to target GOARCH=386, gb will look for 8g to use as a compiler
18:12 < skelterjohn|work> even though it doesn't exist on that machine
18:12 < skelterjohn|work> gb has no deps outside the core lib
18:14 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-158-9.clienti.tiscali.it] has
quit [Ping timeout: 240 seconds]
18:15 < Sxan> It looks like I may need some 32-bit C headers -- gnu/stubs.h
is failing to find gnu/stubs-32.h; that's the first error, but then the whole
thing goes pear-shaped after that.
18:15 -!- SmilingRob [~SmilingRo@67-134-147-188.dia.static.qwest.net] has joined
#go-nuts
18:15 < skelterjohn|work> yeah - i don't have a solution for you there.
18:15 < skelterjohn|work> sorry that this turned into a dead end
18:15 < Sxan> Naw.
18:15 < Sxan> I'll poke at it some more.
18:15 < Sxan> I appreciate the help.
18:16 < skelterjohn|work> np
18:16 < skelterjohn|work> i wonder, though...  to compile for 386 on amd64,
do you have to run 8g?  or can you do GOARCH=386 6g
18:18 < Sxan> Dunno.  I'll try.
18:18 < Sxan> I'm installing the 32-bit libc6 packages now.
18:19 < Sxan> gomake doesn't work that way, but gb does.
18:19 < skelterjohn|work> what do you mean?
18:19 < skelterjohn|work> gomake will use the tool corresponding to GOARCH
18:19 < skelterjohn|work> same as gb
18:20 < Sxan> Um...  ok, that's wierd.
18:21 < Sxan> First time I ran GOARCH=386 gomake, it failed with an error.
18:21 < Sxan> But now it works (after a clean).
18:21 -!- tav [~tav@2.99.70.91] has quit [Quit: Hakuna Matata]
18:21 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has joined #go-nuts
18:21 < skelterjohn|work> might have old intermediate .8 files hanging
around
18:21 < skelterjohn|work> they were built for the wrong os, so they bombed
on the link stage
18:22 < Sxan> But, yeah, it builds a 32-bit LSB ELF
18:22 -!- Urtie [~kim@90-227-159-22-no57.tbcn.telia.com] has joined #go-nuts
18:22 -!- tav [~tav@2.99.70.91] has joined #go-nuts
18:22 -!- hargettp_ [~hargettp_@dhcp-161.mirrorimage.net] has left #go-nuts []
18:23 < Urtie> Is it correct that bufio on a TCPConn makes SetTimeout on
that TCPConn meaningless?
18:23 < Sxan> Hmm.  Back to cross-compiling OSes...
18:23 < Sxan> /usr/bin/ld: i386:x86-64 architecture of input file
`/home/russes02/Software/go/lib/lib9.a(exits.o)' is incompatible with i386 output
18:23 < Sxan> That's with gb -R
18:23 < skelterjohn|work> gb -cbR
18:23 < skelterjohn|work> cb = clean build
18:23 < skelterjohn|work> it's almost certainly the same issue about
intermediate files
18:24 < Sxan> Is it going to nuke the .a files for my AMD arch?
18:24 < skelterjohn|work> (btw if you use gb for anything else - the -R
option is to have it go into $GOROOT/src/pkg and build stuff there if it needs to)
18:24 < skelterjohn|work> Sxan: .a files are in $GOROOT/pkg/$GOOS_$GOARCH
18:24 < Sxan> 'Cause the files it's complaining about are part of my go
install
18:25 < skelterjohn|work> so if you -cb for a different arch than your
actual one, it won't touch the old .a files
18:25 < Sxan> So why is it complaining about files in $GOROOT/lib?
18:25 < Sxan> Ok.
18:25 < skelterjohn|work> oh
18:25 < skelterjohn|work> lib9.a
18:25 < skelterjohn|work> that's not something built from go source
18:25 < skelterjohn|work> (and gb doesn't touch it)
18:25 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
18:25 < skelterjohn|work> um, not sure how to deal with that
18:26 < skelterjohn|work> probably have to rebuild it with the makefiles
18:26 < Sxan> Same error, basically.
18:26 < Sxan> Ah.
18:26 -!- niemeyer [~niemeyer@conference/canonical/x-cerjsylepthzovrx] has quit
[Ping timeout: 240 seconds]
18:26 < skelterjohn|work> the lib9 folder is in $GOROOT/src/lib9
18:27 < skelterjohn|work> there are some other similar folders
18:27 < skelterjohn|work> they get built when you run ./make.bash in
$GOROOT/src
18:27 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
18:27 < Sxan> Huh.  I don't have a lib9 directory; I just have lib/lib9.a
18:28 < skelterjohn|work> are you looking for $GOROOT/lib9 or
$GOROOT/src/lib9
18:28 < Sxan> Urk
18:28 < Sxan> Yeah, sorry.
18:28 < Sxan> lib
18:30 < Sxan> Oh, well.  Maybe it'll be easier going in the other direction.
I'll try it tonight.
18:30 < Sxan> Thanks again.
18:30 < skelterjohn|work> np
18:34 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
18:37 -!- tncardoso [~thiagon@150.164.2.20] has quit [Quit: Leaving]
18:38 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Client
Quit]
18:41 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-174-162.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
18:41 < zippoxer> anyway that part of google+'s backend is written in go?
:)
18:41 < zippoxer> google+ if you haven't heard about it:
18:41 < zippoxer> plus.google.com
18:41 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 240 seconds]
18:44 -!- lucian [~lucian@78-86-217-168.zone2.bethere.co.uk] has joined #go-nuts
18:44 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
18:45 < GeertJohan> I need a pointer to a string I just made...  like:
&"stringContents"
18:45 < GeertJohan> but that doesnt work..
18:46 -!- lucian_ [~lucian@78-86-217-168.zone2.bethere.co.uk] has quit [Ping
timeout: 250 seconds]
18:46 < GeertJohan> how to do that?
18:46 < zippoxer> I think you have to store the string in a variable
18:46 < Sxan>
http://groups.google.com/group/golang-nuts/browse_thread/thread/98a25b1914499bb7/0ebba1afc737792b
18:46 < zippoxer> s := "stringContents"
18:46 < zippoxer> &s
18:47 < zippoxer> or use that function: ptr(s string) *string { return &s }
18:47 < skelterjohn|work> is google+ the fb competitor?
18:47 < zippoxer> yeah :)
18:47 < zippoxer> looks like the future..
18:48 < skelterjohn|work> facebook seems fine, to me
18:49 < zippoxer> there's always better than the best
18:49 < zippoxer> i say we should give it a try
18:49 < skelterjohn|work> i like the circles idea
18:50 < zippoxer> yeah and sparks is fantastic
18:50 < zippoxer> to share things with people that share an interest with
you
18:50 < zippoxer> like Go programming :)
18:52 < zippoxer> like you, when i read the title, i though that facebook is
great and there's nothing to add/change
18:53 -!- niemeyer [~niemeyer@89.127.177.74] has joined #go-nuts
18:53 < zippoxer> thought*
18:53 < skelterjohn|work> honestly i think part of what made facebook so
successful is that you *don't* (by default) share things with only smaller groups
of people
18:53 < skelterjohn|work> you log on to facebook just to see what people you
hardly know are up to
18:54 < skelterjohn|work> if you aren't in their "circle", it's less
appealing :)
18:54 < zippoxer> right :P
18:54 < zippoxer> the circle thing is like i think
18:54 < aiju> google+ is just part of google world domination
18:54 -!- Gertm [~Gertm@178-119-230-147.access.telenet.be] has quit [Ping timeout:
246 seconds]
18:54 < skelterjohn|work> i have no problem with google world domination
18:54 < skelterjohn|work> especially if they hire my and ply me with free
soda all day long
18:55 < zippoxer> google makes me feel in 2011!
18:55 < aiju> haha
18:55 < aiju> google is the new microsoft
18:55 < zippoxer> lol
18:55 < skelterjohn|work> microsoft is the new google
18:55 < zippoxer> microsoft never invented something out of the box.
18:55 < aiju> * -> google -> microsoft
18:55 < skelterjohn|work> zippoxer: nonsense
18:55 < aiju> the internet food chain
18:55 < aiju> zippoxer: bs
18:55 < zippoxer> ofcourse they did, 100k workers there
18:56 < zippoxer> but not enough!
18:56 < aiju> just like google
18:56 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has quit [Ping
timeout: 255 seconds]
18:56 -!- magn3ts [~magn3ts@ip68-103-225-65.ks.ok.cox.net] has quit [Read error:
Connection reset by peer]
18:58 -!- gnuvince|work [8e544424@gateway/web/freenode/ip.142.84.68.36] has quit
[Quit: Page closed]
18:59 -!- yogib [~kaiser@dslb-188-100-008-136.pools.arcor-ip.net] has joined
#go-nuts
18:59 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has joined
#go-nuts
19:00 < mkb218> google is like microsoft backwards
19:00 < aiju> no, that's tfosorcim
19:00 < mkb218> first with the internet and THEN with the desktop software
19:00 < aiju> oh yeah
19:01 < aiju> but quite successfully
19:01 < skelterjohn|work> all of google's 'desktop' software is cloud-based
in-browser apps
19:01 < aiju> skelterjohn|work: except the browser
19:01 < chomp> i.e.  "the future" according to MS now ;)
19:01 < skelterjohn|work> yes
19:01 < mkb218> chrome and chrome os aren't
19:01 < mkb218> android isn't
19:01 < aiju> chrome os is a glorified browser
19:01 < skelterjohn|work> android is *not* a piece of desktop software =p
19:02 < aiju> skelterjohn|work: but google earth!  haha
19:02 < chomp> aiju, more like chrome is a miniature OS ;)
19:02 < aiju> chomp: all web browsers are
19:02 < chomp> chrome will be the emacs of browsers and i like it that way
19:02 < mkb218> by desktop i should say "the code that runs on hardware you
own"
19:02 < aiju> chomp: firefox is the macs of browsers
19:02 < aiju> *emacs
19:02 < skelterjohn|work> mkb218: i specifically didn't mean that
19:03 < mkb218> i'm nto going to keep defending an off the cuff analogy :)
19:03 < chomp> i'm reporting you to the internet police
19:03 < GeertJohan> consequences will nev--- ah nevermind..
19:04 < chomp> :p
19:04 < chomp> mkb218 done goofed.
19:04 < skelterjohn|work> lol
19:04 < GeertJohan> 8D
19:06 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has joined
#go-nuts
19:07 -!- twolfe18 [~twolfe18@c-71-61-180-11.hsd1.pa.comcast.net] has quit [Client
Quit]
19:10 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 255 seconds]
19:12 < uriel> [reading backlog]
19:12 < uriel> ArgonneIntern: everyone is opinionated, the only questio is
how much they clowd their opinions with a hypocritical pretense of objectivity
19:12 -!- tncardoso [~thiago@187.58.197.172] has joined #go-nuts
19:12 < skelterjohn|work> whoah - is that a reply to something from
yesterday?
19:12 < aiju> this is uriel
19:13 < aiju> like santa claus he remembers everything you say or do
19:13 < uriel> also, smart people don't need to try hard to be assholes,
they just are, or aren't (there are plenty of very nice very smart people, but
people only notices the assholes, obviously)
19:13 < chomp> hypocritical pretense of objectivity, now that's an ironic
phrase.
19:15 < jlaffaye> on the website, the pkg docs is for the tip, release,
weekly, other?
19:15 < skelterjohn|work> release
19:15 < GeertJohan> how do I do this?  func (i *Inventory) AddItem(item
*Item) bool {
19:15 < GeertJohan> noteAsserted, okNote := item.(Note)
19:15 < jlaffaye> and exec.Run went away in the meantime?
19:16 * uriel finds that somewhat unfortunate, at least would be nice if a copy of
weekly and tip docs was side-by-side with the release ones
19:16 < uriel> (anyone knows if there is an issue filled about this?)
19:16 < chomp> jlaffaye, http://goneat.org/ has tip docs
19:16 < skelterjohn|work> jlaffaye: replaced by exec.Command
19:16 < uriel> I know goneat.org, but the proper place for this is
golang.org
19:16 < GeertJohan> gives compile error on item.(Note) assertion: invalid
type assertion: item.(Note) (non-interface type *Item on left)
19:16 < jlaffaye> chomp: thanks
19:16 < skelterjohn|work> GeertJohan: too much code in chan
19:17 < GeertJohan> skelterjohn|work: sorry
19:17 < skelterjohn|work> not annoyed, but i also can't follow it
19:17 < skelterjohn|work> make a pastebin
19:18 < chomp> GeertJohan, the problem is item is an *Item type, not an
interface type.  type assertions are for interfaces.
19:18 < chomp> a more complete pastebin will still help of course
19:19 -!- robteix [~robteix@nat/intel/x-eehxxzmavwejczsm] has joined #go-nuts
19:19 < skelterjohn|work> GeertJohan: is Note an interface?  if so, you can
just do "var n Note = item"
19:19 < skelterjohn|work> and it that's allowed (ie *Item has enough methods
for Note) it will work
19:21 < skelterjohn|work> and it -> and if
19:23 < GeertJohan> ok but that will give me a copy of item to n right?
19:23 < zippoxer> var n *Note = &item
19:24 < zippoxer> or not?
19:24 < skelterjohn|work> if Note is an interface, you probably don't want
to deal with a *Note
19:24 < skelterjohn|work> interfaces are already reference types
19:24 < GeertJohan> oh
19:24 < skelterjohn|work> also, item is already a *Item, so you probably
don't want its address (a **Item)
19:24 < GeertJohan> Item is an interface too
19:25 < GeertJohan> ItemStruct is the underlying struct
19:25 < skelterjohn|work> then you probably want the type to be Item
19:25 < skelterjohn|work> *Item is not an interface (it's a pointer to one)
19:25 -!- huin [~huin@91.85.188.1] has joined #go-nuts
19:26 < GeertJohan> pastebin:http://pastebin.com/23hVh1Qe
19:26 < GeertJohan> ok so I replaced *Item with Item and that works :)
19:27 < skelterjohn|work> cool
19:38 -!- pjacobs2 [~pjacobs@66.54.185.130] has joined #go-nuts
19:42 -!- pjacobs [~pjacobs@rrcs-24-73-248-196.sw.biz.rr.com] has quit [Ping
timeout: 252 seconds]
19:43 -!- TheMue [~TheMue@p5DDF738B.dip.t-dialin.net] has joined #go-nuts
19:47 -!- keithcascio [~keithcasc@nat/google/x-botqorpdavbulpum] has joined
#go-nuts
19:53 -!- njustn [~njustn@c-24-5-251-77.hsd1.ca.comcast.net] has quit [Quit:
leaving]
19:55 -!- pbgc [~pbgc@2.81.179.224] has joined #go-nuts
19:55 -!- debill [~ivan@95-55-24-237.dynamic.avangarddsl.ru] has joined #go-nuts
19:57 -!- mattn_jp [~mattn@112-68-59-121f1.hyg1.eonet.ne.jp] has quit [Quit:
Ex-Chat]
20:00 -!- arun_ [~arun@e71020.upc-e.chello.nl] has joined #go-nuts
20:00 -!- arun_ [~arun@e71020.upc-e.chello.nl] has quit [Changing host]
20:00 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts
20:06 -!- ashxo [sekgds@app7.chatmosphere.org] has joined #go-nuts
20:07 -!- tease [sekgds@app7.chatmosphere.org] has quit [Client Quit]
20:09 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
20:26 -!- bakedb [~kel@cpc4-lea21-0-0-cust755.6-3.cable.virginmedia.com] has
joined #go-nuts
20:26 -!- alehorst [~alehorst@186.212.213.85] has quit [Quit: Leaving.]
20:30 -!- pothos_ [~pothos@111-240-171-213.dynamic.hinet.net] has joined #go-nuts
20:31 -!- pothos [~pothos@111-240-172-131.dynamic.hinet.net] has quit [Read error:
Operation timed out]
20:35 < chomp> sometimes i really wish i had the unity source code :/
20:35 < chomp> bah wrong channel
20:37 -!- robteix [~robteix@nat/intel/x-eehxxzmavwejczsm] has quit [Ping timeout:
255 seconds]
20:39 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has joined #go-nuts
20:43 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 252
seconds]
20:44 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has quit [Ping timeout:
260 seconds]
20:53 -!- bakedb [~kel@cpc4-lea21-0-0-cust755.6-3.cable.virginmedia.com] has quit
[Ping timeout: 255 seconds]
20:55 -!- TheMue [~TheMue@p5DDF738B.dip.t-dialin.net] has quit [Quit: TheMue]
21:01 -!- foocraft_ [~ewanas@78.100.217.94] has joined #go-nuts
21:02 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
21:04 -!- _foocraft [~ewanas@178.152.77.164] has quit [Ping timeout: 258 seconds]
21:05 -!- JimPeak [~lejimpeak@modemcable213.208-160-184.mc.videotron.ca] has left
#go-nuts []
21:08 -!- ArgonneIntern [~gauge@mcswl151.mcs.anl.gov] has quit [Ping timeout: 264
seconds]
21:10 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has quit [Remote
host closed the connection]
21:11 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has quit [Ping
timeout: 240 seconds]
21:13 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
21:18 -!- gnuvince [~vince@ip-96-43-233-174.dsl.netrevolution.com] has joined
#go-nuts
21:20 -!- opt [~opt@174.3.227.184] has quit [Quit: Leaving]
21:23 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has quit
[Quit: Leaving...]
21:33 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
21:37 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
21:38 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
21:38 -!- huin [~huin@91.85.188.1] has quit [Quit: bedtime]
21:49 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
22:03 < str1ngs> how do I get the value of a fields tag.  ie type Foo struct
{ Bar string "bar" }
22:05 < pharris> str1ngs: reflect.StructField.Tag
22:05 < str1ngs> pharris: ok thanks
22:06 < kevlar_work> str1ngs, you might want to sync to tip if you're doing
that, as struct tags changed
22:06 < kevlar_work> they're now `key:"value"`
22:06 < kevlar_work> and you do f.Tag.Get("key")
22:07 < kevlar_work> (yes, they know this will break a lot of existing code)
22:08 < str1ngs> ah I generally run tip no biggy
22:08 -!- lucian [~lucian@78-86-217-168.zone2.bethere.co.uk] has quit [Remote host
closed the connection]
22:09 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
22:09 < str1ngs> kevlar_work: can you give an example of key:"value" please
22:09 < str1ngs> not sure what you mean there
22:11 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has quit
[Quit: Leaving]
22:16 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:27 -!- mrmikenev [~mkn24@128.187.207.179] has left #go-nuts []
22:27 -!- zcram [~zcram@78-28-67-129.cdma.dyn.kou.ee] has quit [Quit: Leaving]
22:28 < kevlar_work> str1ngs, type Foo struct { Bar string `yourpkg:"bar"` }
22:29 -!- ExtraSpice [XtraSpice@88.118.37.245] has quit [Remote host closed the
connection]
22:31 < str1ngs> kevlar_work: gah ok thanks
22:37 < Xenith> Hmm.  Was there a bug introduced in the signal package, or
perhaps something changed in recent weeklys?
22:37 < Xenith> 6g -o _go_.6 main.go server.go player.go package.go
22:37 < Xenith> main.go:100: undefined: signal.UnixSignal
22:37 < str1ngs> Xenith: its moved to os package
22:37 < dforsyth> there was a change, its on os
22:37 < dforsyth> in os, rather
22:37 < Xenith> Ah
22:37 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has joined #go-nuts
22:38 < str1ngs> os.UnixSignal use in place
22:38 < Xenith> Yep, there it is.  Thanks.
22:39 < Tonnerre> Is there a known problem with putting []bytes with gob
encoded data into gob encoders?
22:42 < Tonnerre> I have corrupted data, i.e.  gobs that I cannot restore,
and I don't quite see where it comes from
22:51 -!- yogib [~kaiser@dslb-188-100-008-136.pools.arcor-ip.net] has quit [Remote
host closed the connection]
22:54 -!- meling [~meling@cse-dhcp-10-91.ucsd.edu] has joined #go-nuts
22:54 -!- meling [~meling@cse-dhcp-10-91.ucsd.edu] has quit [Remote host closed
the connection]
22:54 -!- meling [~meling@cse-dhcp-10-91.ucsd.edu] has joined #go-nuts
23:03 -!- hcatlin [~hcatlin@host86-161-237-3.range86-161.btcentralplus.com] has
joined #go-nuts
23:03 -!- hcatlin [~hcatlin@host86-161-237-3.range86-161.btcentralplus.com] has
quit [Changing host]
23:03 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
23:07 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
23:13 -!- pjacobs [~pjacobs@66.54.185.130] has quit [Ping timeout: 240 seconds]
23:16 -!- niemeyer [~niemeyer@89.127.177.74] has quit [Ping timeout: 240 seconds]
23:20 -!- iant [~iant@nat/google/x-jmgnscqzzyyhyulp] has quit [Ping timeout: 260
seconds]
23:24 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
23:26 -!- ancientlore [~ancientlo@63.76.22.10] has quit [Quit: ~ Trillian Astra -
www.trillian.im ~]
23:30 -!- iant [~iant@67.218.104.187] has joined #go-nuts
23:30 -!- mode/#go-nuts [+v iant] by ChanServ
23:31 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
23:35 -!- hcatlin [~hcatlin@host86-161-237-3.range86-161.btcentralplus.com] has
joined #go-nuts
23:35 -!- hcatlin [~hcatlin@host86-161-237-3.range86-161.btcentralplus.com] has
quit [Changing host]
23:35 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
23:40 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Client
Quit]
23:41 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza]
23:41 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Ping timeout: 240 seconds]
23:43 -!- pbgc [~pbgc@2.81.179.224] has quit [Quit: Textual IRC Client:
http://www.textualapp.com/]
23:47 -!- hallas [~Hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has left
#go-nuts []
23:47 -!- vyom [~vyom@c-24-18-47-160.hsd1.wa.comcast.net] has joined #go-nuts
23:56 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Read error:
Operation timed out]
23:58 -!- franciscosouza [~francisco@187.105.9.70] has joined #go-nuts
--- Log closed Thu Jun 30 00:00:54 2011