--- Log opened Fri Feb 18 00:00:29 2011
00:01 -!- rl [~rleland@84-74-142-37.dclient.hispeed.ch] has quit [Ping timeout:
272 seconds]
00:03 < fzzbt> does go's template package insert newlines on every Execute()
or why do I always get these unnecessary newlines at the end of every generated
output..  ? i can't find anything in my own code that would add them.
00:05 < plexdev> http://is.gd/r4F4id by [Wei Guangjing] in 2 subdirs of
go/src/cmd/ -- 6l: pe fixes
00:12 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4]
00:12 -!- binzhang [~binzhang@nat/google/x-ymlbvmfjzdxlxwig] has joined #go-nuts
00:13 -!- rl [~rleland@84-74-142-37.dclient.hispeed.ch] has joined #go-nuts
00:15 -!- binzhang [~binzhang@nat/google/x-ymlbvmfjzdxlxwig] has quit [Client
Quit]
00:18 -!- sav [~lsd@189001136104.usr.predialnet.com.br] has quit [Remote host
closed the connection]
00:19 -!- franksalim [~frank@99-123-6-19.lightspeed.sntcca.sbcglobal.net] has quit
[Quit: Ex-Chat]
00:22 < plexdev> http://is.gd/9xQ5WT by [Gustavo Niemeyer] in 2 subdirs of
go/src/ -- testing: rename cmdline flags to avoid conflicts
00:33 -!- Boney_ [~paul@124.168.120.213] has quit [Ping timeout: 255 seconds]
00:35 -!- boscop [~boscop@g230101036.adsl.alicedsl.de] has quit [Ping timeout: 272
seconds]
00:42 -!- ildorn [~ildorn@dslb-188-105-049-068.pools.arcor-ip.net] has quit [Quit:
Leaving.]
00:49 -!- toyoshim [~toyoshim@y253149.dynamic.ppp.asahi-net.or.jp] has left
#go-nuts []
00:55 < fzzbt> strange, newlines are only added when using
template.MustParseFile, but not when using template.MustParse
00:58 -!- kingdon [~yebyen@irie-arch.rit.edu] has quit [Remote host closed the
connection]
00:59 -!- niemeyer [~niemeyer@189-10-154-99.pltce701.dsl.brasiltelecom.net.br] has
quit [Quit: Leaving]
00:59 < fzzbt> i see, io.ioutil.ReadFile adds extra newline to its output
for no reason
01:03 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 255 seconds]
01:13 -!- JusticeFries_
[~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net] has joined #go-nuts
01:16 -!- saturnfive [~saturnfiv@210.74.155.131] has joined #go-nuts
01:17 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Ping timeout: 276 seconds]
01:18 -!- JusticeFries_
[~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net] has quit [Ping
timeout: 276 seconds]
01:24 < plexdev> http://is.gd/0HEmgp by [Robert Griesemer] in
go/src/pkg/go/scanner/ -- go/scanner: update comment
01:38 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
01:51 -!- toyoshim [~toyoshim@y253149.dynamic.ppp.asahi-net.or.jp] has joined
#go-nuts
01:56 -!- derferman [~derferman@citris-wlan-177-072.AirBears.Berkeley.EDU] has
quit [Quit: derferman]
02:17 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
02:18 -!- jhawk28_ [~jhawk28@user-387c58d.cable.mindspring.com] has joined
#go-nuts
02:18 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
02:24 -!- foocraft [~dsc@89.211.71.208] has quit [Remote host closed the
connection]
02:25 -!- zzing [~zzing@76.10.149.223] has joined #go-nuts
02:25 -!- zzing [~zzing@76.10.149.223] has quit [Remote host closed the
connection]
02:25 -!- zzing [~zzing@76.10.149.223] has joined #go-nuts
02:49 -!- tarrant [~tarrant@69.169.141.202.provo.static.broadweavenetworks.net]
has joined #go-nuts
02:49 -!- Sgeo [~Sgeo@ool-18bf618a.dyn.optonline.net] has joined #go-nuts
02:50 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has joined
#go-nuts
02:52 -!- jhawk28_ [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
02:52 -!- eikenberry [~jae@ivanova.zhar.net] has quit [Quit: End of line.]
03:03 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts
03:05 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has quit [Remote host
closed the connection]
03:07 -!- micrypt [~micrypt@5adee33c.bb.sky.com] has left #go-nuts []
03:07 -!- adu [~ajr@softbank220043139062.bbtec.net] has joined #go-nuts
03:12 -!- felipe [~felipe@unaffiliated/felipe] has quit [Remote host closed the
connection]
03:17 -!- adu [~ajr@softbank220043139062.bbtec.net] has quit [Ping timeout: 246
seconds]
03:20 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
03:20 -!- hypertux [~hypertux@vps1.joelegasse.com] has quit [Ping timeout: 255
seconds]
03:20 -!- hypertux [~hypertux@vps1.joelegasse.com] has joined #go-nuts
03:21 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
03:21 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
03:28 -!- aho [~nya@fuld-590c7691.pool.mediaWays.net] has joined #go-nuts
03:32 -!- hypertux [~hypertux@vps1.joelegasse.com] has quit [Ping timeout: 250
seconds]
03:32 -!- hypertux [~hypertux@vps1.joelegasse.com] has joined #go-nuts
03:41 <@nf_> fzzbt: it shouldn't
03:47 < fzzbt> nf_: does the output here look right to you?  i get newline
even tough im 99.999999% sure there's no newline in my rftest.txt file.  if there
is, then maybe vim and gedit are broken.
03:47 < fzzbt> does it add newline for you too?
03:49 <@nf_> no it does not, and it doesn't in the code.  that would be
silly if it did
03:49 <@nf_> hexdump your file to check
03:50 -!- rdm [~random@unaffiliated/rdm] has left #go-nuts []
03:57 < fzzbt> hexdump -c shows the newline, but editors not.  what is going
on..  are there always an "extra" newline at the end of files?
03:58 < fzzbt> looks like yes ahh..
04:02 < fzzbt> oh, i didnt even post the url just before
http://dpaste.com/428439/
04:03 -!- keithgcascio [~keithcasc@nat/google/x-ekjdenrpsjbxunnk] has quit [Quit:
Leaving]
04:06 -!- hcl2 [~akuma@75.41.110.112] has quit [Ping timeout: 240 seconds]
04:19 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
04:21 -!- cco3 [~conley@c-69-181-140-72.hsd1.ca.comcast.net] has joined #go-nuts
04:23 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
04:23 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 250
seconds]
05:19 -!- zozoR [~Morten@56346ed3.rev.stofanet.dk] has joined #go-nuts
05:23 -!- davisp [~davisp@couchdb/developer/davisp] has joined #go-nuts
05:40 < tarrant> Is there a difference between the builtin println and
fmt.Println?
05:41 -!- cco3 [~conley@c-69-181-140-72.hsd1.ca.comcast.net] has quit [Read error:
Operation timed out]
05:44 -!- fabled [~fabled@mail.fi.jw.org] has joined #go-nuts
05:50 -!- kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has quit [Read
error: Operation timed out]
05:51 -!- kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has joined
#go-nuts
05:52 -!- Eko [~eko@c-24-5-127-87.hsd1.ca.comcast.net] has joined #go-nuts
06:00 -!- Viriix [~joseph@c-24-130-195-91.hsd1.ca.comcast.net] has joined #go-nuts
06:00 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has joined #go-nuts
06:08 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
06:09 -!- zozoR [~Morten@56346ed3.rev.stofanet.dk] has quit [Remote host closed
the connection]
06:10 < uriel>
http://www.reddit.com/r/programming/comments/fnaqs/rob_pike_cocreator_of_google_go_on_the_history_of/
06:14 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 276 seconds]
06:18 -!- tvw [~tv@e176000157.adsl.alicedsl.de] has joined #go-nuts
06:19 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has joined
#go-nuts
06:23 -!- kkress [~kkress@2001:470:1:41::403e:ad36] has quit [Read error:
Operation timed out]
06:23 -!- kkress [~kkress@2001:470:1:41::403e:ad36] has joined #go-nuts
06:26 < fzzbt> how one gets length of characters in a string (not bytes)?
06:27 < taruti> fzzbt: unicode?
06:27 -!- pothos [~pothos@111-240-164-148.dynamic.hinet.net] has quit [Ping
timeout: 240 seconds]
06:27 < fzzbt> mm yeah
06:28 < taruti> utf8.RuneCountInString
06:30 -!- nettok_ [~quassel@200.119.177.234] has joined #go-nuts
06:30 -!- visof [~visof@41.238.232.3] has joined #go-nuts
06:30 -!- visof [~visof@41.238.232.3] has quit [Changing host]
06:30 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
06:32 -!- vegai [vegai@kapsi.fi] has joined #go-nuts
06:33 -!- nettok [~quassel@200.119.178.141] has quit [Ping timeout: 272 seconds]
06:34 -!- tarrant [~tarrant@69.169.141.202.provo.static.broadweavenetworks.net]
has quit [Remote host closed the connection]
06:34 -!- tarrant [~tarrant@216.83.139.130] has joined #go-nuts
06:39 -!- pothos [~pothos@111-240-164-148.dynamic.hinet.net] has joined #go-nuts
06:39 -!- tarrant_ [~tarrant@69.169.141.202.provo.static.broadweavenetworks.net]
has joined #go-nuts
06:40 -!- tarrant_ [~tarrant@69.169.141.202.provo.static.broadweavenetworks.net]
has quit [Client Quit]
06:41 -!- tarrant [~tarrant@216.83.139.130] has quit [Ping timeout: 240 seconds]
06:44 -!- adu [~ajr@softbank220043138128.bbtec.net] has joined #go-nuts
06:44 -!- sacho [~sacho@95-42-76-75.btc-net.bg] has joined #go-nuts
06:45 -!- espeed [~espeed@63.246.231.57] has joined #go-nuts
06:50 -!- visof [~visof@unaffiliated/visof] has quit [Read error: Operation timed
out]
06:52 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
06:52 -!- Boney [~paul@202.81.69.153] has joined #go-nuts
06:54 -!- tensorpudding [~user@99.23.127.179] has quit [Read error: Connection
reset by peer]
06:56 -!- pothos [~pothos@111-240-164-148.dynamic.hinet.net] has quit [Read error:
Connection reset by peer]
06:56 -!- pothos [~pothos@111-240-164-148.dynamic.hinet.net] has joined #go-nuts
06:58 -!- Boney [~paul@202.81.69.153] has quit [Ping timeout: 260 seconds]
07:16 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
07:18 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 240 seconds]
07:19 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has joined
#go-nuts
07:22 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
07:22 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has quit
[Client Quit]
07:24 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
07:25 -!- Boney [~paul@124-148-184-240.dyn.iinet.net.au] has joined #go-nuts
07:26 -!- visof [~visof@41.238.232.3] has joined #go-nuts
07:26 -!- visof [~visof@41.238.232.3] has quit [Changing host]
07:26 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
07:26 -!- pothos [~pothos@111-240-164-148.dynamic.hinet.net] has quit [Ping
timeout: 255 seconds]
07:27 -!- pothos [~pothos@111-240-164-148.dynamic.hinet.net] has joined #go-nuts
07:35 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
07:35 < zzing> If I have a line of code that would be easier to see if it
were on multiple lines, is there a way to accomplish this?  Specifically it is an
unavoidably long function declaration.
07:35 -!- Project-2501 [~Marvin@82.84.95.155] has joined #go-nuts
07:39 -!- wrtp [~rog@92.17.33.100] has joined #go-nuts
07:40 < fzzbt> zzing: you can just split it on multiple lines.  you have to
place the newline in such place that the compiler can deduce it continues on the
next line
07:40 < zzing> such as after a comma?
07:40 < fzzbt> yup
07:40 < zzing> fzzbt: Have you ever dealt with interfacing with C code
before?
07:41 < fzzbt> not really much, noo
07:41 < zzing> I have a C function that takes pointers to modify data, such
as getVersion(int *major, int *minor) - I need to figure out how to perform this
operation within go.  I can call the function within the C module, but that is it
so far
07:47 < zzing> I guess I need to find the documentation for the C module
07:48 -!- dario_ [~dario@domina.zerties.org] has quit [Ping timeout: 255 seconds]
07:50 -!- felipe [~felipe@unaffiliated/felipe] has joined #go-nuts
07:50 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 250 seconds]
07:51 -!- adu [~ajr@softbank220043138128.bbtec.net] has quit [Quit: adu]
07:54 -!- adu [~ajr@softbank220043138128.bbtec.net] has joined #go-nuts
07:56 -!- adu [~ajr@softbank220043138128.bbtec.net] has quit [Client Quit]
08:00 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
08:09 < wrtp> zzing: the cgo documentation isn't great...
08:09 < wrtp> you need to be very familiar with the unsafe package
08:09 < zzing> wrtp: I believe the correct response is 'what documentation'
08:09 < wrtp> there is some.
08:09 < wrtp> it's almost enough, technically...
08:10 < zzing> wrtp: The SDL module seems to provide some example, can you
suggest other packages that would provide a lot more examples?
08:10 < wrtp> you could look at the examples in the go source
08:10 < wrtp> find $GOROOT -name '*.go' | xargs grep 'import "C"'
08:11 < zzing> yeah, I see a few things that would be good to look at
08:11 < zzing> thank you
08:11 < zzing> I can always ask questions when the time warrants it
08:12 < wrtp> np.  am glad to answer.
08:12 < wrtp> (just mention my irc name so that i get a ping)
08:13 < zzing> Thyne will shall be done
08:21 -!- cenuij [~cenuij@78.112.41.178] has joined #go-nuts
08:21 -!- cenuij [~cenuij@78.112.41.178] has quit [Changing host]
08:21 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
08:31 -!- brett [~brett@rdnzl.net] has quit [Ping timeout: 246 seconds]
08:32 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
08:32 -!- nf_ [~nf@2001:470:21:20::4444:61d9] has quit [Ping timeout: 260 seconds]
08:32 -!- rphillips [~rphillips@unaffiliated/rphillips] has quit [Ping timeout:
260 seconds]
08:33 -!- drhodes [~none@drhodes.xen.prgmr.com] has quit [Ping timeout: 276
seconds]
08:35 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Remote host
closed the connection]
08:40 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
08:46 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:53 -!- drhodes [~none@drhodes.xen.prgmr.com] has joined #go-nuts
08:53 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Ping
timeout: 246 seconds]
08:53 -!- Guest66402 [~brett@rdnzl.net] has joined #go-nuts
08:55 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
08:55 -!- rphillips [~rphillips@unaffiliated/rphillips] has joined #go-nuts
08:56 -!- nf_ [~nf@2001:470:21:20::4444:61d9] has joined #go-nuts
08:56 -!- mode/#go-nuts [+o nf_] by ChanServ
09:03 -!- adu [~ajr@softbank220043138128.bbtec.net] has joined #go-nuts
09:21 -!- tvw [~tv@e176000157.adsl.alicedsl.de] has quit [Ping timeout: 240
seconds]
09:23 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has quit
[Quit: derferman]
09:25 -!- nettok_ [~quassel@200.119.177.234] has quit [Ping timeout: 250 seconds]
09:30 -!- piggy66 [~horse@118.82.154.61] has joined #go-nuts
09:30 < piggy66> does go have lambda functions?
09:30 < taruti> piggy66: yes
09:31 < piggy66> is it a light weight syntax like in ruby, c#, and scala?
09:31 < piggy66> so i can do stuff like this: collection.each { |v| puts v }
09:31 < piggy66> ?
09:32 < taruti> the natural way to express that in Go would be for _,v :=
range collection { puts v }
09:32 < piggy66> ugh
09:33 < taruti> but yes one could do a collection.Each(func(v Sometype) {
puts v })
09:33 < piggy66> not bad
09:33 < jnwhiteh> so no, they're not lightweight
09:33 < jnwhiteh> syntactically
09:34 < jnwhiteh> but they're not terrible =)
09:34 < piggy66> but not as nice as ruby/c#
09:34 < jnwhiteh> Go isn't Ruby or C# =)
09:34 < taruti> just the natural abstractions are different in different
languages
09:34 < jnwhiteh> Coming to Go looking to write code like C# and Ruby is one
way to get yourself very very frustrated, in my opinion
09:34 < piggy66> jnwhiteh: i know, it's a pity they didn't get lightweight
lambda syntax though; it just makes so many things so much easier on the eye and
therefore encourages you to do certain things too
09:35 < jnwhiteh> those 'things' aren't natural in Go
09:35 < jnwhiteh> in many cases
09:35 < piggy66> jnwhiteh: but it's just a syntactical issue, they could
easily have chosen nicer lambda syntax for example
09:35 < jnwhiteh> sure, but they didn't.
09:36 < piggy66> so i guess non-local returns are out of the questioin too
then
09:36 < jnwhiteh> what do you mean by non-local return?
09:37 < piggy66> in ruby you can do this: def if(expr) yield end
09:37 * araujo wonders if Go already supports "unions"
09:37 < jnwhiteh> piggy66: and what on earth does that mean?
09:37 < piggy66> if(number.even?) { puts "the number is even!"; return }
09:37 < jnwhiteh> araujo: Go doesn't have any support for unions right now
09:38 < piggy66> jnwhiteh: i just defined a method that behaves like an
if-statement
09:38 < araujo> jnwhiteh, yeah, been told that it is in the roadmap for a
while now
09:38 < piggy66> jnwhiteh: the 'return' inside the block actually returns
from the enclosing method, not simply from the block
09:38 < araujo> jnwhiteh, I have been waiting for them for few months now :P
09:38 < jnwhiteh> piggy66: that syntax is frankly screwed in the head.
09:38 < piggy66> jnwhiteh: this means i get macro like functionality
09:38 < jnwhiteh> piggy66: regardless of how useful you find it
09:38 < jnwhiteh> no, nothing like that is supported
09:38 < taruti> thank god.
09:39 < jnwhiteh> I should not have to explore the annals of your language
to find out what the code you wrote does O.o
09:39 < piggy66> taruti: no, not thankgod, think of it in the context of
iteration: collection.each { |v| return if v.even?  }
09:40 < piggy66> taruti: would you expect/wand that just to break out of the
lambda?  or out of the enclosing method?  the enclosing method of course
09:40 < jnwhiteh> piggy66: you mean collection.filter(event)
09:40 < jnwhiteh> ?
09:40 < jnwhiteh> err s/even/
09:40 < piggy66> jnwhiteh: no, beacause teh behaviour of that 'return' is to
break out of the enclosing method
09:40 < piggy66> but anyway
09:40 < piggy66> yeah this isn't on topic
09:41 < piggy66> thanks for your answers
09:41 < jnwhiteh> most definitely not.
09:41 < jnwhiteh> Go is not Ruby =)
09:41 < piggy66> pitty about the heavy weight lambdas
09:41 < piggy66> pity*
09:41 -!- saturnfive [~saturnfiv@210.74.155.131] has quit [Read error: Connection
reset by peer]
09:41 * taruti writes lots of lambdas in Go code and does not find them tedious
09:45 < jnwhiteh> my biggest gripe at the moment (because its hard to
explain why there's no alternative) is the fact that if I do type foo func(int)
int; then to define a 'foo' I have to use explicit declaration (var bar foo =
func(x int) {return x}) or casting.  I wish there was a way to still use func
bar(x int) syntax and be able to specify that it's a 'foo' not just a func.
09:46 < jnwhiteh> all of my reviewers remarked on this ,so I needed to write
a bit about it
09:46 < jnwhiteh> unless they snuck that in without me seeing =)
09:47 -!- jsj [4e46ff14@gateway/web/freenode/ip.78.70.255.20] has joined #go-nuts
09:47 < taruti> jnwhiteh: doesn't it autocast on calling?
09:48 < taruti> (or returning, don't remember)
09:48 < jnwhiteh> returning, yes.
09:48 < jnwhiteh> lemme check
09:51 < jnwhiteh> hrm, this seems to work properly, I should explore this
further =)
09:54 -!- jsj [4e46ff14@gateway/web/freenode/ip.78.70.255.20] has quit [Ping
timeout: 245 seconds]
09:54 < jnwhiteh> yeah it looks like its properly cast both ways, must have
been something weird I was doing previously
09:57 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
10:00 -!- kixo_ [~rbebic@93-141-66-36.adsl.net.t-com.hr] has quit [Quit: Leaving]
10:00 -!- ukai [~ukai@nat/google/x-vuttwekiuzxcawue] has quit [Remote host closed
the connection]
10:02 -!- saturnfive [~saturnfiv@210.74.155.131] has joined #go-nuts
10:03 -!- ExtraSpice [XtraSpice@78-62-101-194.static.zebra.lt] has joined #go-nuts
10:03 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
10:05 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
10:07 -!- ukai [~ukai@nat/google/x-iyfodgmovgxvavgn] has joined #go-nuts
10:19 -!- saturnfive [~saturnfiv@210.74.155.131] has quit [Read error: Connection
reset by peer]
10:19 -!- kingfishr [~kingfishr@c-98-207-87-183.hsd1.ca.comcast.net] has joined
#go-nuts
10:28 -!- adu [~ajr@softbank220043138128.bbtec.net] has quit [Quit: adu]
10:32 -!- niemeyer [~niemeyer@189.10.154.99] has joined #go-nuts
10:34 -!- artefon [~thiago@189.59.159.252.dynamic.adsl.gvt.net.br] has joined
#go-nuts
10:34 -!- adu [~ajr@softbank220043138128.bbtec.net] has joined #go-nuts
10:35 -!- ildorn [~ildorn@dslb-188-099-200-131.pools.arcor-ip.net] has joined
#go-nuts
10:37 -!- thiago__ [~thiago@189.59.163.181] has joined #go-nuts
10:38 -!- artefon [~thiago@189.59.159.252.dynamic.adsl.gvt.net.br] has quit [Ping
timeout: 246 seconds]
10:47 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
10:58 -!- visof [~visof@41.238.232.3] has joined #go-nuts
10:58 -!- visof [~visof@41.238.232.3] has quit [Changing host]
10:58 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
11:29 -!- PortatoreSanoDiI [~Marvin@82.84.83.178] has joined #go-nuts
11:32 -!- Project-2501 [~Marvin@82.84.95.155] has quit [Ping timeout: 264 seconds]
11:33 < hokapoka> Anyone using vim code folding, if so what are you using?
I'm using // vim:foldmethod=marker foldmarker={{{,}}} wondered if there was any
concensus arround it?
11:46 -!- roto [~roto@S010600215a08cecc.cg.shawcable.net] has quit [Ping timeout:
250 seconds]
11:48 -!- shvntr [~shvntr@113.84.150.244] has joined #go-nuts
12:36 < jnwhiteh> hokapoka: I don't use folding, never quite got into it =/
12:36 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Ping
timeout: 240 seconds]
12:37 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
12:40 < hokapoka> I quite like it, especially with my types the are used
with persistant storage as they implement interfaces like writer.  - hides the
generic stuff.
12:43 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
12:44 < jnwhiteh> *nod* I could definitely see how its useful :P
12:45 < hokapoka> Once I remembered the keybinding - zc -to close I started
to use them more regluarly.
12:46 < jumzi> i don't know...  i usually end up spending my time folding
instead of coding/reading code
12:46 < jumzi> but my multiplexer sux
12:47 < hokapoka> or like me - talking about folding :p
12:48 -!- boscop [~boscop@g225227102.adsl.alicedsl.de] has joined #go-nuts
12:49 -!- foocraft [~dsc@89.211.71.208] has joined #go-nuts
12:54 < wrtp> i once worked with a guy who used code folding a lot.
12:54 < wrtp> it can become a maintenance nightmare.
12:54 < wrtp> omg the memories
12:54 < wrtp> hokapoka: so i'd strongly recommend against it
12:55 < wrtp> if you're wanting to fold code, your functions are too long.
12:56 < piggy66> what is 'folding' ?
12:56 < hokapoka> It not at function level, it's just a set of common
functions
12:56 < mpl> piggy66: it's artificially hiding your source code
12:56 < hokapoka> piggy66: just where you can define a region of code that
collapses within a file.
12:57 < str1ngs> / funName and you dont need to code fold
12:57 -!- hcl2 [~akuma@75.41.110.112] has joined #go-nuts
12:58 < str1ngs> for go I just do grep func *.go and I get the same effect
if I want a top down view
12:58 -!- grumpytoad [~niel@t1004.greatnet.de] has quit [Ping timeout: 276
seconds]
12:58 < piggy66> ah, IDE stuff
12:58 < str1ngs> this is not ide I'm talking vim
13:07 < hokapoka> str1ngs: as you say finding in vim is easy, it's just that
I have a 3/4 funcs that set time, update identifier before wiring the type to a
persistant store.  TBH they are at the bottom and there very little benifit to me
doing it.
13:08 < hokapoka> And thinking about it, I'm in a possition now where I
could remove them all and do it differently
13:08 < hokapoka> I was wondering what the concensus is on vim's folding
chars - which appears tobe - don't :)
13:08 < str1ngs> hokapoka: also I guess it depends on your terminal or if
you use gvim or not.  I use dwm a tiling WM so I can have 4 vims spread across 2
monitor
13:09 -!- adu [~ajr@softbank220043138128.bbtec.net] has quit [Quit: adu]
13:09 < hokapoka> Aye I use xmonad that does that too
13:09 < aiju> what exactly is folding good for?
13:10 < hokapoka> str1ngs: though I use 1/2 vims with the window spilts.
13:10 < str1ngs> hokapoka: ya I don use splits due to dwm.  I use to now I
tend to use tabs in vmi
13:10 < str1ngs> vim*
13:11 < str1ngs> hokapoka: I also make simple session files in projects and
then open them with vim -p $(cat session)
13:11 < aiju> i open files with "vi $file"
13:12 < str1ngs> aiju: its the same thing just this will open all the files
listed in session.  into tabs
13:12 -!- bzzzz [~bzzzz@defrag.tk] has joined #go-nuts
13:12 < aiju> i find VIM tabs too annoying
13:12 < hokapoka> Never really got on with vim tabs.
13:12 < aiju> i have a window manager for that
13:13 < str1ngs> to each there own.
13:13 < hokapoka> str1ngs: is session just a file with the files listed?
13:13 < str1ngs> hokapoka: aye.  you can use mksession but its bloated
13:13 < bzzzz> i'm following the instructions at /doc/install.html to build
the non-gcc compiler, but i keep getting "./env.bash: line 41: export: `ot a valid
identifier" -- any hints?
13:13 < str1ngs> hokapoka: then I just alias vs="vim -p $(cat session)"
13:13 < aiju> bzzzz: what is your shell?
13:13 < bzzzz> aiju: bash
13:14 < aiju> odd
13:14 < hokapoka> str1ngs: will it automatically add files as I open them to
it?
13:14 < bzzzz> (08:13:26):~/dev/go/src$ echo $SHELL
13:14 < bzzzz> /bin/bash
13:14 < str1ngs> hokapoka: naw session is a file I edit by hand
13:14 < hokapoka> good
13:14 < aiju> bzzzz: have you recently cloned the repository?
13:14 < aiju> if not, do hg pull -u
13:14 < str1ngs> hokapoka: you could do something like vim -p *.go
13:14 < hokapoka> str1ngs: thanks, I'll have a play.
13:14 < bzzzz> aiju: yeah.
13:15 < aiju> so it might be just broken
13:15 < str1ngs> hokapoka: or vim -p $(find -name *.go) if you are crazy lol
13:15 < aiju> bzzzz: could you paste the mentioned line?
13:15 < hokapoka> heh
13:15 < aiju> vim -p **/*.go
13:15 < bzzzz> aiju: same deal 12 hours ago yesterday too..
13:15 < aiju> probably the fucking best of all zsh features
13:15 < bzzzz> aiju: line 41?
13:15 < hokapoka> str1ngs: I'd prefer a file that I can manage by hand over
automatic adding.
13:15 < aiju> bzzzz: yeah, in env.bash
13:15 < str1ngs> hokapoka: reason I use the session is I can manual change
orders of tabs etc
13:15 < hokapoka> str1ngs: thanks.
13:15 < bzzzz> eval $($MAKE --no-print-directory -f Make.inc go-env | egrep
'GOARCH|GOOS|GOHOSTARCH|GOHOSTOS|GO_ENV')
13:16 < aiju> oh lol
13:16 < hokapoka> str1ngs: yeah, IIRC that was one thing that annoyed me
about the tabs.
13:16 < aiju> bzzzz: what OS/distribution do you run?
13:16 < bzzzz> aiju: debian squeeze
13:16 < str1ngs> hokapoka: ya and another reason is Session.vim saves .vimrc
settings its really annoying
13:17 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
13:17 < hokapoka> str1ngs: want about switching to different buffers?  atm
I'm using :b foo<tab> to move to some/src/name_foo.go
13:17 < str1ngs> hokapoka: I dont use buffers much just tabs.
13:18 < str1ngs> hokapoka: gT gt works good normally
13:18 < hokapoka> That's what I mean, how do you tab switch?
13:18 < str1ngs> gt -> forward gT <- back
13:18 < hokapoka> That cycles the tabs.  IC
13:18 < aiju> how do you manage with that several tabs?
13:18 < str1ngs> right generally I dont switch tabs much though.
13:19 < str1ngs> if I need to look at a file its generally open in another
dwm window
13:19 < aiju> i simply move the mouse to the right window and press
alt+enter :P
13:19 < hokapoka> OIC
13:19 < aiju> anyone can recommend a PDF reader btw?
13:19 < str1ngs> hokapoka: I treat my dwm windows like pages.  so I have 4
pages open at a time.  with 2 monitor of course
13:20 < hokapoka> aiju: xpdf
13:20 < hokapoka> what dw are you using?
13:20 < str1ngs> hokapoka: also all my binding are vim like ie readline,vim
even chromium
13:20 < bzzzz> the offending line in env.bash was added during revision
a0f4eb9797 about 4 months ago..
13:21 < aiju> bzzzz: maybe try running it with bash -v or whatever that
debug flag was
13:21 < bzzzz> huh?
13:21 < aiju> there is a bash flag where all executed commands are printed
13:22 < str1ngs> -v should do that
13:23 < hokapoka> scanning throught my code the other places I've used folds
are where I've created all my add/removes on slices.
13:23 < hokapoka> that was beofre I discover the built-in funcs for
manipulating slices.
13:23 < KBme> -x does that
13:24 < KBme> set +x or bash -x
13:24 < hokapoka> s/beofre I discover/before I discovered
13:24 < str1ngs> hokapoka: I assume you reference the packages page?
13:24 < hokapoka> oh, no.  I have chomium open for that.
13:25 < str1ngs> hokapoka: also alot of times there are packages already in
the community from somethings
13:25 < str1ngs> hokapoka: godoc is good to
13:25 < str1ngs> hokapoka: godoc os FileInfo for eg.
13:25 < hokapoka> when you say reference the packages page, in vim?
13:25 < str1ngs> !godoc os FileInfo
13:26 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds]
13:27 < bzzzz> haven't any of you tried building the compiler recently?
13:27 < str1ngs> !godoc os will do the whole package ..  bit much at times
:P
13:27 < str1ngs> bzzzz: what OS/arch are you using?
13:27 < hokapoka> Oh yeah, that's much easier than using the browser - no
mouse :)
13:28 < str1ngs> hokapoka: less you take your hands off the keys better imo
:P
13:28 < bzzzz> 13:18 < aiju> bzzzz: what OS/distribution do you run?
13:28 < bzzzz> 13:18 < bzzzz> aiju: debian squeeze
13:28 < hokapoka> aye
13:28 < str1ngs> bzzzz: 86_64 of 386?
13:28 < str1ngs> or*
13:29 < str1ngs> bzzzz: also are you useing release or hg head?
13:29 < bzzzz> str1ngs: where're the releases?  there's no page for this
whatsoever
13:29 < bzzzz> str1ngs: the getting started page directs everyone to build
from head
13:30 < str1ngs> bzzzz: ok one sec I use git but let me build from mercurial
13:30 < bzzzz> str1ngs: i use git too.
13:31 -!- grumpytoad [~niel@t1004.greatnet.de] has joined #go-nuts
13:31 < str1ngs> bzzzz: hg clone -r release https://go.googlecode.com/hg/ go
13:31 < str1ngs> bzzzz: if you are using the git mirror you want to check
out the release tag
13:32 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
13:32 < str1ngs> still might not fix your issue
13:32 * cenuij makes note to self that there is a git mirror
13:32 < bzzzz> str1ngs: i get that, but the problem-causing line in env.
bash showed up in august last year.  that's a few releases back..
13:32 < aiju> why the fuck is there a git mirror
13:32 < str1ngs> why not
13:32 < bzzzz> not everyone uses hg
13:32 < cenuij> I find cloning the whole repo locally a pain in the ass
compared to git local branches
13:33 < bzzzz> cenuij: https://github.com/tav/go/
13:33 < str1ngs> bzzzz: squeeze is development?
13:33 < bzzzz> str1ngs: no
13:33 < cenuij> after using git mainly, using hg branching model is like
going back to using CVS :(
13:33 < str1ngs> bzzzz: ie bash --version
13:34 < bzzzz> GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)
13:35 < bzzzz> see if i can fix this, maybe i'll send a patch
13:35 < str1ngs> bzzzz: try with a clean bash enviroment first imo
13:35 < bzzzz> thanks for now, anyway
13:35 < str1ngs> bzzzz: but it builds find on bash 4.1.9 for me
13:36 < cenuij> fine here, GNU bash, version 4.1.7(1)-release
(x86_64-suse-linux-gnu)
13:39 < skelterjohn> morning
13:40 < bzzzz> morning
13:41 -!- plainhao [~plainhao@208.75.85.237] has joined #go-nuts
13:45 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
13:48 -!- zozoR [~Morten@56346ed3.rev.stofanet.dk] has joined #go-nuts
13:51 -!- Viriix [~joseph@c-24-130-195-91.hsd1.ca.comcast.net] has quit [Quit:
This computer has gone to sleep]
13:59 -!- ildorn [~ildorn@dslb-188-099-200-131.pools.arcor-ip.net] has quit [Quit:
Leaving.]
13:59 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
14:06 -!- mimustafa [~steve@94.142.34.102] has joined #go-nuts
14:09 -!- deso_ [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
14:12 -!- mimustafa [~steve@94.142.34.102] has left #go-nuts []
14:14 -!- jhawk28 [~jhawk28@208.118.21.13] has joined #go-nuts
14:22 -!- jhawk28 [~jhawk28@208.118.21.13] has quit [Quit: Leaving...]
14:23 -!- freetz [~fritz@secure-atrc-dip23.nat.okstate.edu] has joined #go-nuts
14:26 -!- thiago__ [~thiago@189.59.163.181] has quit [Quit: bye]
14:30 -!- boscop [~boscop@g225227102.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
14:34 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
14:38 -!- boscop [~boscop@g225227102.adsl.alicedsl.de] has joined #go-nuts
14:41 -!- ako [~nya@fuld-590c7446.pool.mediaWays.net] has joined #go-nuts
14:41 -!- aho [~nya@fuld-590c7691.pool.mediaWays.net] has quit [Disconnected by
services]
14:41 -!- Natch [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
14:42 -!- Natch| [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
14:42 -!- imsplitbit [~imsplitbi@64.39.4.132] has joined #go-nuts
14:45 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
14:45 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
14:46 -!- jhawk28_ [~jhawk28@user-387c58d.cable.mindspring.com] has joined
#go-nuts
14:46 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
14:46 < str1ngs> hokapoka: I forgot to mention nsf wrote a code completion
server works with vim.  its on github
14:48 -!- jhawk28_ [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
14:48 -!- jhawk28 [~jhawk28@208.118.21.13] has joined #go-nuts
14:49 < nsf> https://github.com/nsf/gocode
14:49 -!- jhawk28 [~jhawk28@208.118.21.13] has quit [Read error: Connection reset
by peer]
14:49 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
14:52 < str1ngs> speak of the devel
14:52 < str1ngs> devil*
14:57 < Tonnerre> Hah
14:57 < Tonnerre> Good one
14:57 < str1ngs> I sense sarcasm :P
14:59 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has quit
[Quit: JusticeFries]
15:04 -!- shvntr [~shvntr@113.84.150.244] has quit [Quit: leaving]
15:08 < str1ngs> hmm what would be the best way to get terminal column
width?
15:09 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
15:10 < str1ngs> something like tput cols but without have to fork tput
15:13 -!- sacho [~sacho@95-42-76-75.btc-net.bg] has quit [Read error: Connection
reset by peer]
15:14 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
15:15 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
15:15 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
15:15 -!- sacho [~sacho@90.154.201.194] has joined #go-nuts
15:20 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Ping
timeout: 276 seconds]
15:26 -!- femtoo [~femto@95-89-196-99-dynip.superkabel.de] has joined #go-nuts
15:26 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
15:27 -!- skelterjohn [~jasmuth@128.6.168.245] has joined #go-nuts
15:28 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
15:29 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
15:29 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
15:32 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
15:32 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Client
Quit]
15:34 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
15:35 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
15:35 -!- jhawk28_ [~jhawk28@user-387c58d.cable.mindspring.com] has joined
#go-nuts
15:37 < jnwhiteh> Is Petar around IRC at all?
15:39 -!- piggy66 [~horse@118.82.154.61] has left #go-nuts []
15:40 < skelterjohn> my brother's name is peter
15:40 < skelterjohn> but he isn't here
15:40 < jnwhiteh> =)
15:41 < jnwhiteh> Was looking for Petar Maymounkov from the mailing list, so
I shall email him =)
15:41 < skelterjohn> is he the guy who made the llrb-tree package?
15:42 < jnwhiteh> He's the one (I think) who is working on the http package
revamp, using textproto was the last change I saw
16:00 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
16:05 -!- tarrant [~tarrant@216.83.139.130] has joined #go-nuts
16:06 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
16:12 -!- iarwain [~iarwain@ec2-79-125-6-47.eu-west-1.compute.amazonaws.com] has
joined #go-nuts
16:14 -!- iarwain [~iarwain@ec2-79-125-6-47.eu-west-1.compute.amazonaws.com] has
left #go-nuts []
16:15 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
16:27 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
16:32 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
16:33 -!- adu [~ajr@softbank220043138128.bbtec.net] has joined #go-nuts
16:36 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
16:36 -!- jhawk28_ [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
16:39 < jnwhiteh> the Go http server seems to only be capable of handling
somewhere between 3000 and 4000 concurrent clients on my server with 4GB of RAM.
Once we start spiking over 4000 connections the heap blows up and I get a malloc
panic =(
16:39 < jnwhiteh> This makes me a sad panda, but it means I'll have
something to work on =)
16:41 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
16:41 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
16:41 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:42 -!- visof_ [~visof@41.238.233.11] has joined #go-nuts
16:43 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 240 seconds]
16:44 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Read error:
Connection reset by peer]
16:46 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
16:51 < exch> Am I going crazy, or could someone explain to me the why the
second loop works, but the first one doesn't?  http://pastie.org/1579370
16:51 < exch> There are no goroutines modifying the slices in the background
16:53 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Read error:
Connection reset by peer]
16:53 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
16:53 < exch> I would prefer to use the first one to prevent the creation of
copies you get in the range statement
16:54 -!- jhawk28_ [~jhawk28@user-387c58d.cable.mindspring.com] has joined
#go-nuts
16:54 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
16:54 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
16:55 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
16:57 < skelterjohn> exch: looking
16:58 < skelterjohn> what happens if you have the contents of the loop be
identical, the only difference being range vs incrementing the counter?
16:58 < skelterjohn> for k, _ := range this.d[cx][cz] { ...  }
16:59 < exch> if I use for k, _ := range
16:59 < skelterjohn> i suppose you don't need the ", _"
16:59 < exch> and then have the same loop contents, it also fails
16:59 < exch> forsome reason the contents of v are different from the
explicit this.d[x][z][k]
16:59 < skelterjohn> oh - what is the type of d[cx][cz]?
17:00 < exch> [][4]int32
17:00 < skelterjohn> so v[0], etc is an int32
17:00 < exch> ya
17:00 < skelterjohn> so the fact that v is a copy of d[cx][cz][k] shouldn't
matter
17:00 < exch> one would think so
17:01 < skelterjohn> is it convenient to do some println debugging?
17:01 < exch> I'll put some in and see what it yields
17:02 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Ping timeout: 276 seconds]
17:03 < skelterjohn> if you figure it out, let me know.  i'm curious.
17:04 < exch> tricky to debug.  I'm dealing with humongous datasets here
17:06 -!- jhawk28_ [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
17:06 < skelterjohn> one thing i will do is have most "normal" printlns use
fmt.Print*, but then debug printlns just use println()
17:06 < skelterjohn> then run > /dev/null
17:06 < skelterjohn> and only the println()s, which go to stderr, showup
17:06 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
17:07 < jnwhiteh> If I can reliably reproduce a malloc/free - deadlock
panic, would it be better to post about that on golang-nuts or golang-dev?
17:08 < skelterjohn> report an issue
17:08 < skelterjohn> how do you do anything with malloc/free in go, though?
17:08 < jnwhiteh> I don't.
17:08 < jnwhiteh> this is a Go runtime panic
17:08 < skelterjohn> pastebin it, i'll see if it happens here, too
17:09 < jnwhiteh> If you don't have httperf, a gigabit switch and four
machines I'm not sure you'll be able to reproduce it =)
17:10 -!- tvw [~tv@212.79.9.150] has quit [Ping timeout: 276 seconds]
17:10 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has quit [Ping timeout: 240
seconds]
17:10 -!- prip [~foo@host212-129-dynamic.35-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 240 seconds]
17:10 < jnwhiteh> its just the stock Go http.FileServer serving a 4k static
file at a rate of roughly 4500 requests per second
17:10 -!- Paradox924X [~Paradox92@c-68-35-229-34.hsd1.fl.comcast.net] has joined
#go-nuts
17:10 < skelterjohn> oh
17:10 < skelterjohn> is that all
17:10 < jnwhiteh> =)
17:10 -!- prip [~foo@host212-129-dynamic.35-79-r.retail.telecomitalia.it] has
joined #go-nuts
17:10 -!- rup [~rupert@deathknight.net] has quit [Ping timeout: 240 seconds]
17:10 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
17:11 < jnwhiteh> That's a shockingly low rate, actually
17:11 < skelterjohn> maybe post it to just the regular list
17:11 < skelterjohn> seems like an interesting issue
17:11 -!- rup [~rupert@deathknight.net] has joined #go-nuts
17:11 < jnwhiteh> already posted to dev, perhaps I'll work on a cross-post
17:12 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 246 seconds]
17:12 < jnwhiteh> and slap myself on the wrist =)
17:15 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
17:16 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
17:16 -!- derferman [~derferman@208.90.215.178] has joined #go-nuts
17:18 -!- deso_ [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
17:20 -!- tvw [~tv@212.79.9.150] has quit [Ping timeout: 240 seconds]
17:21 -!- Paradox924X [~Paradox92@c-68-35-229-34.hsd1.fl.comcast.net] has quit
[Changing host]
17:21 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has joined #go-nuts
17:27 < plexdev> http://is.gd/Zji2U9 by [Adam Langley] in
go/src/pkg/crypto/rsa/ -- crypto/rsa: left-pad OAEP results when needed.
17:27 < plexdev> http://is.gd/TT2hQ8 by [Russ Cox] in 4 subdirs of
go/src/cmd/ -- ld: drop rpath
17:27 < plexdev> http://is.gd/sRJbwe by [Russ Cox] in go/src/pkg/runtime/ --
runtime: record $GOROOT_FINAL for runtime.GOROOT
17:29 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
connection]
17:38 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts
17:42 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-174-149.clienti.tiscali.it] has
joined #go-nuts
17:43 -!- keithcascio [~keithcasc@nat/google/x-kdfnzqsrulizdvdq] has joined
#go-nuts
17:44 < plexdev> http://is.gd/7IrLCp by [Russ Cox] in 3 subdirs of
go/src/cmd/ -- fix build
17:46 -!- PortatoreSanoDiI [~Marvin@82.84.83.178] has quit [Ping timeout: 255
seconds]
17:51 -!- nettok [~quassel@200.119.159.3] has joined #go-nuts
17:52 -!- dfr|mac [~dfr|work@ool-182e3fca.dyn.optonline.net] has quit [Remote host
closed the connection]
17:53 -!- vsayer [~vivek@c-76-102-205-58.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
17:54 -!- vsayer [~vivek@c-76-102-205-58.hsd1.ca.comcast.net] has joined #go-nuts
17:55 < hokapoka> I'm using the RPC package to call a master from 4 nodes.
The nodes are also connected via netchans.  After some 2k calls, from each node to
the master, all the nodes hang at rpc.DialHTTP("tcp", addr) - within a few seconds
of each other.
17:56 < hokapoka> The netchans are still opperating, both from the master to
the nodes and from the master to the nodes.
17:56 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Read
error: Connection reset by peer]
17:57 -!- zozoR [~Morten@56346ed3.rev.stofanet.dk] has quit [Remote host closed
the connection]
17:58 < hokapoka> Actually I wasn't using client.Close(); I have just added
it and I'll see if it fixes the issue, I had assumed that as the client was a
local var it would have closed the connection after it was no longer referenced.
17:59 -!- temoto [~temoto@81.19.91.9] has quit [Remote host closed the connection]
18:00 < skelterjohn> go doesn't have destructors.  and i forget how talk
about some kind of cleanup finalizer went.
18:02 < str1ngs> skelterjohn: do you mean like defer?
18:02 < skelterjohn> no - i mean at some point people were talking about
something that could be invoked on an object when the GC wanted to clean it up
18:02 < skelterjohn> for instance, closing a file
18:03 < str1ngs> ah I just use defer
18:03 < str1ngs> but I'm guessing your talking about actual gc control of
sorts
18:03 < skelterjohn> defer works if your file never escapes the function
that created it
18:05 < str1ngs> hmm I cant think of a case where you would want that.
18:05 < str1ngs> event then would it not be a pointer?
18:06 < skelterjohn> yes, it'd be a pointer...
18:06 < str1ngs> hokapoka: anyways aside from this GC stuff.  you can defer
client.Close() after an open.  and it will close the file after that function has
run
18:07 < wrtp> skelterjohn: go does have finalizers
18:07 < wrtp> see runtime.SetFinalizer
18:07 -!- n___ [~n____@5ad54238.bb.sky.com] has joined #go-nuts
18:07 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
18:10 < skelterjohn> cool
18:11 < wrtp> exch: i bet you'll find that the range version of your loop is
faster
18:11 < wrtp> because it doesn't do nearly so many range checks
18:12 < exch> Not sure I understand what the difference is, apart from the
syntactic bits
18:12 < exch> and that v is going to be a copy of the datain the slice
18:13 < hokapoka> str1ngs: yes, that's what I've done.
18:14 < hokapoka> Still running, at appears to have got further so it must
have been that the unclosed connections were causing the
18:14 < hokapoka> blocking
18:14 -!- nixness [~dsc@89.211.71.208] has joined #go-nuts
18:15 < hokapoka> Yes, it's reached some 15k connections were it was only
reaching 2 before.
18:16 < hokapoka> Thought I kinda assumed that rpc.DialHTTP would have
returned a error - timeout or something.
18:17 < wrtp> hokapoka: it probably ran out of ports or something
18:17 < wrtp> or some kernel allocation limit
18:17 < hokapoka> wrtp: yes.
18:17 < wrtp> exch: it does look like they should do the same thing at first
glance
18:18 < hokapoka> But still would have assumed it to error
18:18 < wrtp> exch: how about always running both loops, and checking that
the value of k is the same after both have run
18:19 < wrtp> if it isn't, then you can print some relevant data (e.g.  cx
and cz)
18:19 < wrtp> if it is the same, you just set this.d as before and continue
18:19 < wrtp> hokapoka: yeah
18:22 -!- i___ [~none@201.80.243.212] has joined #go-nuts
18:23 -!- i___ [~none@201.80.243.212] has quit [Client Quit]
18:23 < hokapoka> Unrelated.  I was talking the other day, well week, about
a timeout for read / send on a blocking chan.  Someone mentioned using a switch
and another timeout chan.
18:24 -!- gits [~gits@77.94.219.158] has joined #go-nuts
18:25 < hokapoka> Would that be something like : switch { case foo :=
<-mainChan: ...  break; case to := <-timeoutChan: /* has exceeded timeout */
: ..  break; }
18:26 -!- DeedleFake [~Deedles@c-98-251-36-162.hsd1.ga.comcast.net] has joined
#go-nuts
18:26 < skelterjohn> select, not switch?
18:26 -!- lekernel [~lekernel@g231249066.adsl.alicedsl.de] has quit [Ping timeout:
240 seconds]
18:27 < DeedleFake> Is there any way to get the flags that were used to open
a file?
18:27 < hokapoka> So before the switch create the timeoutChan and use some
closure with time.Sleep(1e9) to send a bool down the chan
18:28 < hokapoka> skelterjohn: oh maybe not used select before.
18:28 -!- lekernel [~lekernel@g231249108.adsl.alicedsl.de] has joined #go-nuts
18:28 < wrtp> hokapoka: yeah, select
18:28 < wrtp> look at time.After
18:28 -!- femtoo [~femto@95-89-196-99-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
18:28 -!- visof_ [~visof@41.238.233.11] has quit [Ping timeout: 276 seconds]
18:28 < wrtp> or time.NewTimer
18:28 < wrtp> or time.Ticker
18:28 < hokapoka> Oh great, many thanks.
18:29 < wrtp> DeedleFake: i don't think so
18:29 < wrtp> why do you want them?
18:30 < DeedleFake> I'm trying to convert an *os.File to a *C.FILE.
18:31 < plexdev> http://is.gd/QWCH0O by [Russ Cox] in
go/src/pkg/runtime/arm/ -- runtime: handle non-standard call sequences in arm
traceback
18:31 < str1ngs> DeedleFake: as in flags sent to your program.  or in the
File mode of fd?
18:32 < wrtp> DeedleFake: you could just use fdopen with "r+"
18:32 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
18:32 -!- adu [~ajr@softbank220043138128.bbtec.net] has quit [Quit: adu]
18:32 < wrtp> the write or read will draw an error if they try to do
something inappropriate
18:32 < wrtp> so it doesn't matter too much
18:35 < wrtp> C.fdopen(C.int(osFile.Fd()), C.CString("r+"))
18:35 < wrtp> or something
18:35 < DeedleFake> The thing is, I'm trying to wrap a C function that
requires a *C.FILE with a function that takes an *os.File.  I believe the C
function works differently depending on what it's allowed to do to the file.
18:35 -!- derferman [~derferman@208.90.215.178] has quit [Quit: derferman]
18:35 -!- itrekkie_ [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
18:36 < aiju> DeedleFake: not on UNIX
18:36 -!- itrekkie_ [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Client
Quit]
18:36 -!- derferman [~derferman@208.90.215.178] has joined #go-nuts
18:36 -!- derferman [~derferman@208.90.215.178] has quit [Client Quit]
18:37 < DeedleFake> What?
18:37 < aiju> at least on the fd level
18:37 -!- derferman [~derferman@208.90.215.178] has joined #go-nuts
18:37 -!- derferman [~derferman@208.90.215.178] has left #go-nuts []
18:38 < aiju> it's just an fd ...  if it isn't readable or writable the
correspending operations will simply yield an error
18:38 < wrtp> DeedleFake: i don't think it's possible to find out the mode
that a FILE* was opened with, but i may be mistaken
18:38 < jumzi> depends on how you implement open?
18:38 < wrtp> ?
18:40 -!- [muttox] [~muttox]@93.135.70.115.static.exetel.com.au] has quit [Quit:
leaving]
18:40 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Remote
host closed the connection]
18:42 < DeedleFake> I just took a quick look at the source for the function
I'm trying to wrap, and I think it will work with just "r+".  Thanks.
18:42 < wrtp> np
18:42 -!- DeedleFake [~Deedles@c-98-251-36-162.hsd1.ga.comcast.net] has quit
[Quit: Ex-Chat]
18:47 < plexdev> http://is.gd/DwDS4R by [Gustavo Niemeyer] in go/ --
.hgignore: add doc/codelab/wiki/*.bin
18:47 < plexdev> http://is.gd/rt55DI by [Andrew Gerrand] in 2 subdirs of go/
-- godoc: serve robots.txt raw
18:47 < plexdev> http://is.gd/pHA9DX by [Rob Pike] in
go/src/pkg/crypto/openpgp/packet/ -- crypto/openpgp/packet: fix testing print
(missing arg)
18:56 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving]
18:57 -!- aho [~nya@fuld-590c7446.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
18:59 -!- itrekkie [~itrekkie@150.135.210.53] has joined #go-nuts
19:01 < str1ngs> god I'm a idiot.  I'm makeing ls clone.  and I wast testing
one file listing vs a directory listing.  and when I was testing the one file it
as .hidden which I have a -a flag for
19:01 * str1ngs face palm
19:04 < plexdev> http://is.gd/TNcmgr by [Dave Cheney] in go/src/pkg/net/ --
net: fix multicast tests
19:05 -!- gits [~gits@77.94.219.158] has quit [Remote host closed the connection]
19:06 -!- tvw [~tv@e176000157.adsl.alicedsl.de] has joined #go-nuts
19:06 -!- freetz [~fritz@secure-atrc-dip23.nat.okstate.edu] has quit [Ping
timeout: 246 seconds]
19:07 < wrtp> str1ngs: ls should always print . files IMHO
19:07 < wrtp> and * should match them too
19:07 < wrtp> -a is an abomination :-)
19:08 < aiju> my homedir has so many of them
19:08 < aiju> . files are an abomination
19:10 < jumzi> yeah, where is the good ol' registry?
19:11 < jumzi> or the programs that actually respects XDG*whatever*
19:12 < aiju> hahaahahahahaha
19:12 < aiju> xdg-crap
19:13 < str1ngs> wrtp: I couldnt read ~/ ever them.  be one ugly mess
19:14 < str1ngs> wrtp: * makes sense though
19:14 < aiju> 131 dot files here
19:14 < aiju> * matches dot files here
19:14 < str1ngs> bash?
19:14 < aiju> zsh
19:14 < jumzi> HAHAHHAHAHA
19:14 < str1ngs> eww :P
19:15 < str1ngs> * probably matches your zip code to in zsh :P
19:15 < aiju> haha
19:15 < aiju> yes, zsh is full of utter crap
19:15 < aiju> but … it behaves so much more reasonable than bash
19:16 < jumzi> ?
19:16 * jumzi is utterly confused
19:16 < jumzi> How can a shell that expands the features of bash be more
sensible
19:16 < aiju> because it doesn't
19:16 < str1ngs> I dunno about that.  anytime I've tried zsh I've run and
cuddled bash like it was a lost puppy.
19:16 < aiju> zsh is build on ksh
19:17 < aiju> str1ngs: you didn't configure it right
19:17 < jumzi> last time i checked zsh is compatible with bash
19:17 < jumzi> maybe i missed something
19:17 < str1ngs> aiju: I rather it just work
19:17 < aiju> str1ngs: me too; but it turns out to be worth it ...
19:18 < str1ngs> aiju: most people I talk to use zsh for tab completion.
which I think is silly
19:18 < aiju> yeah, that's what attracts most people
19:18 < aiju> i think the feature i like most is recursive globbing
19:19 < aiju> and usable ^R
19:19 < taruti> aiju: use rc ;P
19:19 < aiju> taruti: rc sucks without a decent mouse
19:19 < wrtp> tartuti: +1
19:19 < aiju> and this is a laptop with a TOUCHPAD
19:19 < aiju> i can't even use acme on this thing without going insane
19:20 < str1ngs> aiju: ^R how so?
19:20 < aiju> ^R with zsh actually finds what i'm looking for ;P
19:20 < jumzi> aiju: buy a mouse?
19:20 < wrtp> i just plug in a mouse
19:20 < taruti> and there is -p / --
19:20 < str1ngs> aiju: ah I see what you mean now.
19:20 < wrtp> a long time ago i wrote a vi-style command line editor thing
for --
19:21 < aiju> --?
19:21 < taruti> aiju: -- executes the last command matching it just like -p
echoes it
19:21 < aiju> oic
19:21 < aiju> weren't those called " and ""?
19:21 < wrtp> mine was --
19:22 < wrtp> and the prog was called "choose"
19:22 < wrtp> it took stdin, let the user edit & select a line, then wrote
it to stdout
19:22 < wrtp> that's all
19:22 < wrtp> then a shell script wrapper
19:22 < wrtp> and the shell fitted to write each line of user input to a
history file
19:23 < wrtp> it worked pretty well actualy
19:23 < wrtp> actually
19:23 < wrtp> and it was simple enough that it probably still compiles...  i
hate to think how many years later
19:24 < aiju> recursive globbing is something i really miss in rc
19:24 < jumzi> recursiveness is for wimps
19:24 < aiju> real men don't use subdirectories, i know
19:24 < wrtp> how does recursive globbing work?
19:25 < aiju> wc -l **/*.c
19:25 < jumzi> real men use sensible subdirectories
19:25 < aiju> equivalent to wc -l `find -iname '*.c'`
19:25 < str1ngs> real mean know where there sub directories are :P
19:25 < wrtp> aiju: so that's like wc -l `{find . -name '*.c'}, right?
19:25 < aiju> yeah
19:25 < exch> real mean dont need subdirs.  put /everything/ in the root!
19:25 < aiju> eh s/iname/name
19:26 < aiju> IBM proved it's possible!
19:26 < exch> *men
19:26 < wrtp> i can see how it might be useful
19:26 < wrtp> dangerous though
19:26 < aiju> how so?
19:26 < wrtp> well, it takes about 10 minutes to do a find . -print in my
home dir
19:26 < str1ngs> rm -f **/*.c
19:27 < aiju> there is always the interrupt key
19:27 < str1ngs> wrtp: only the first time.  after that if you are on linux
its cached
19:27 < aiju> oh, what?
19:27 < wrtp> so do things like wc -l **/parser/*.go work?
19:27 < str1ngs> time find ~/;time find ~/
19:28 < aiju> wrtp: i think yes
19:28 < wrtp> that's a bit more awkward with find
19:29 < wrtp> i'm timing the find now...
19:29 < aiju> wrtp: yes it works
19:29 < wrtp> anyway, rc gets one thing right that all the other shells get
wrong
19:29 < aiju> arrays!
19:29 < wrtp> yeah
19:30 < wrtp> it can deal with spaces in filenames with no problems
19:30 < wrtp> no need for "$@" (yeuch)
19:30 < wrtp> only 2 minutes actually to do a find in my home dir
19:30 < aiju> that's something zsh also gets right
19:30 < str1ngs> wrtp: wc -l $(find -type d -name parser)/*.go
19:32 < wrtp> str1ngs: that'll give you lots of spurious errors from all the
directories named parser that don't have go files in
19:32 < jumzi> remove the errors?
19:32 < taruti> rc having an issue with command --option=value
19:33 < taruti> is very annoying
19:33 < wrtp> i'd do wc -l `{find . -type d -name '*.go' | grep
'/parser/[^/]+$'}
19:33 < str1ngs> wrtp: I figured as much but I knew there was only one
parser dir.
19:33 < aiju> taruti: really?
19:33 < aiju> oh really
19:33 < wrtp> taruti: yeah, it's a bit awkward having to quote =
19:33 < wrtp> but you rarely actually have to use =
19:33 < wrtp> command --option value
19:34 < wrtp> usually works fine
19:34 < aiju> closure compiler!
19:34 < aiju> closure --warning_level=verbose --input_file=foo.js
19:35 < wrtp> heh, my choose program still compiles.  and in 4 weeks it'll
have been 20 years since i wrote it.
19:35 < wrtp> that's how far computers have moved on :-)
19:36 < str1ngs> lol I was going to say.
19:36 -!- freetz [~fritz@secure-atrc-dip23.nat.okstate.edu] has joined #go-nuts
19:37 < aiju> wrtp: what was it originally written for?
19:37 < wrtp> god, i can't remember.  some version of BSD
19:38 < aiju> BSD 4.2?  :P
19:38 < wrtp> nah, 4.3 was out by then
19:38 < aiju> did you write it on VAX?  ;P
19:39 < wrtp> nah it was post-VAX then
19:39 < wrtp> i might have been using NeXTstep actually
19:40 < wrtp> it's funny, lots of names in the current OSX API still start
with "NS"
19:41 < wrtp> anyway, it didn't need to do anything more unportable than set
the terminal into cbreak mode
19:41 < wrtp> pre-ANSI C though
19:45 -!- tobik [~tobik@p549FE158.dip.t-dialin.net] has joined #go-nuts
19:51 -!- itrekkie [~itrekkie@150.135.210.53] has quit [Quit: itrekkie]
19:51 -!- itrekkie [~itrekkie@150.135.210.53] has joined #go-nuts
19:57 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
20:03 -!- lekernel [~lekernel@g231249108.adsl.alicedsl.de] has quit [Quit:
Ex-Chat]
20:04 -!- eikenberry [~jae@ivanova.zhar.net] has quit [Quit: End of line.]
20:04 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts
20:06 -!- fabled [~fabled@mail.fi.jw.org] has quit [Quit: Ex-Chat]
20:07 -!- ExtraSpice [XtraSpice@78-62-101-194.static.zebra.lt] has quit [Remote
host closed the connection]
20:12 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
20:16 < skelterjohn> anyone do stuff with NACL?
20:16 < aiju> yeah
20:16 < aiju> usually food
20:16 < skelterjohn> always helpful, so good to have your input
20:19 * aiju is waiting for the day browsers completely replace operating systems
20:23 * jumzi is waiting for the day aiju fixes fossil
20:27 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Ping
timeout: 276 seconds]
20:28 < skelterjohn> what is fossil
20:28 -!- n___ [~n____@5ad54238.bb.sky.com] has quit [Quit: n___]
20:28 -!- plainhao [~plainhao@208.75.85.237] has quit [Quit: plainhao]
20:31 < tarrant> skelterjohn: without any more information I would assume
it's the distributed source management system.
20:32 -!- pothos_ [~pothos@111-240-170-46.dynamic.hinet.net] has joined #go-nuts
20:33 < aiju> the Plan 9 fs
20:33 < aiju> the broken Plan 9 fs
20:33 -!- pothos [~pothos@111-240-164-148.dynamic.hinet.net] has quit [Ping
timeout: 240 seconds]
20:34 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Quit: Venom_X]
20:37 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts
20:39 < skelterjohn> why does jumzi want you to fix it
20:40 < aiju> i have no clue
20:40 < jumzi> 2 reasons!
20:40 < aiju> are they based on oranges?
20:40 < jumzi> 1.  he'll do something besides whine on IRC (allrdy stated)
20:41 < jumzi> 2.  I can't make my system break so i can't fix it
20:41 < jumzi> 3.  MY ORANGE COMMANDS
20:41 < aiju> haha
20:41 < aiju> i haven't experienced fossil problems either
20:43 <@nf_> uriel: the fix for that malformed url problem has rolled out
(see http://code.google.com/p/go/updates/list )
20:43 <@nf_> uriel: it may have happened a while ago, i'm not sure
20:51 < plexdev> http://is.gd/rFVych by [Andrew Gerrand] in
go/misc/dashboard/godashboard/ -- misc/dashboard: tweak build fail notification
email
20:52 < uriel> nf_: cool
20:52 < uriel> nf_: any news on the updated Go roadmap?  :)
20:54 <@nf_> no :)
20:57 <@nf_> uriel: there's actually nothing to change
20:57 <@nf_> possibly with the demotion of a new gc, but that's splitting
hairs
21:01 < exch> http://code.google.com/chrome/nativeclient/ We can get NACL
support back soon it seems :)
21:01 < exch> or rather
http://blog.chromium.org/2011/02/native-client-getting-ready-for-takeoff.html
21:03 -!- zzing [~zzing@76.10.149.223] has quit [Remote host closed the
connection]
21:04 -!- willdye [~willdye@fern.dsndata.com] has left #go-nuts []
21:09 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
21:09 < skelterjohn> i saw that article - it's what prompted my question
21:10 < skelterjohn> i wonder if using go/nacl instead of js would be a nice
way to have local webapps
21:11 < aiju> NaCl reminds me of ActiveX
21:11 < jumzi> Did anyone say go on cellphones?
21:11 < wrtp> please!
21:12 < wrtp> i'd very much like to be able to write go apps on my android
phone...
21:12 * jumzi druuls
21:12 <@nf_> exch: yeah i'm gonna go chat to the nacl guys today
21:12 < aiju> android only accepts XML-encoded Go
21:12 <@nf_> wrtp: you can already write them on your phone, if you have an
android text editor.  writing them _for_ your phone, however...  ;)
21:13 < wrtp> lol
21:13 < aiju> (srsly android is one fourth XML, wtf?)
21:13 < jumzi> WELL SOME PPL LIKE XML, flame, flame, flame
21:13 -!- willdye [~willdye@fern.dsndata.com] has joined #go-nuts
21:13 < aiju> s/flame/orange/g
21:13 < jumzi> srsly we should discuss xml on more channels not more in the
same channel :P
21:14 < aiju> hahaha
21:15 -!- itrekkie [~itrekkie@150.135.210.53] has quit [Quit: itrekkie]
21:18 -!- imsplitbit [~imsplitbi@64.39.4.132] has quit [Quit: Bye!]
21:22 -!- Eko [~eko@c-24-5-127-87.hsd1.ca.comcast.net] has quit [Quit: This
computer has gone to sleep]
21:23 < wrtp> nf_: i think you read steven's question too quickly...
21:24 < wrtp> whether it's Int or *Int is beside the point.  the question
is: does calling an method on an embedded type copy the outer type too if it's a
value type?
21:26 < wrtp> the answer is in genwrapper, i think
21:27 -!- freetz [~fritz@secure-atrc-dip23.nat.okstate.edu] has quit [Read error:
Operation timed out]
21:33 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
21:49 < skelterjohn> does nacl work similarly to how java does things?
21:49 < skelterjohn> and get turned into native machine code?
21:55 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Remote host
closed the connection]
21:58 -!- lmoura [~lauromour@187.113.112.68] has quit [Quit: Leaving]
21:58 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
22:00 -!- skelterjohn [~jasmuth@128.6.168.245] has quit [Quit: skelterjohn]
22:02 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Remote
host closed the connection]
22:02 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
22:03 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
22:04 -!- sauerbraten [~sauerbrat@p508CF70A.dip.t-dialin.net] has joined #go-nuts
22:06 <@nf_> wrtp: i don't think it's beside the point
22:06 <@nf_> an embedded type?  or an interface value?
22:06 <@nf_> skelterjohn: nacl is a subset of x86 machine code that is
statically verifiable as safe
22:07 <@nf_> argh you're right
22:08 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed
the connection]
22:12 -!- mimustafa [~steve@92.62.119.57] has joined #go-nuts
22:13 -!- mimustafa [~steve@92.62.119.57] has left #go-nuts []
22:18 -!- cco3 [~conley@c-69-181-140-72.hsd1.ca.comcast.net] has joined #go-nuts
22:18 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
22:21 -!- elimisteve [~elimistev@pool-71-102-138-52.snloca.dsl-w.verizon.net] has
quit [Quit: Later]
22:24 -!- zzing [~zzing@66.78.105.13] has joined #go-nuts
22:25 < zzing> Can anyone explain what this line of code means?  func (z
*Int) Bytes() []byte My understanding is that Bytes() is the name of the function
and it returns []byte, but I don't know what the (z *Int) means
22:28 -!- sauerbraten [~sauerbrat@p508CF70A.dip.t-dialin.net] has quit [Remote
host closed the connection]
22:28 < tarrant> zzing: It refers to the object it called on.  (I'm using
oop terminology not the go)
22:28 < Xenith> zzing: The function has an explicit receiver of type *Int
22:29 < Xenith> ie, the function operates on objects of type *Int.
22:29 < zzing> So if I had one of these 'Int' objects (or what is the proper
term?), how would this function be called?
22:29 < Xenith> eg:
22:29 < Xenith> var test *Int
22:29 < Xenith> test.Bytes()
22:30 < zzing> ok
22:30 < Xenith> Then inside the funtion, it sort of acts like a this
pointer.  But instead of an implicit this, you have named it 'z'.
22:31 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
22:31 < zzing> I have been looking inside of cgo examples because I have a
challenging function to call - something like blahGetPos(int *x, int *y) where
presumably it will modify x and y inside the function.  I can't seem to find a
similar example.  Any ideas?
22:35 < zzing> Xenith: So it is very much like python in that you name it
explicitly.
22:49 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
22:56 -!- tvw [~tv@e176000157.adsl.alicedsl.de] has quit [Remote host closed the
connection]
23:01 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
23:02 -!- jhawk28_ [~jhawk28@user-387c58d.cable.mindspring.com] has joined
#go-nuts
23:02 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
23:07 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
23:09 <@nf_> zzing: it is, in that sense.  although i think 'self' is
special to python right?
23:09 <@nf_> or maybe it's just a well-held convention
23:09 < aiju> nf_: i think it's the latter
23:09 <@nf_> right, that makes sense
23:10 <@nf_> although i've always _hated_ it :P
23:10 < aiju> fack
23:10 < zzing> heh
23:11 < zzing> Is it correct that cgo does not give errors back?  I need to
check for errors in my code, not sure how to do it.
23:12 -!- n___ [~n___@5ad54238.bb.sky.com] has joined #go-nuts
23:13 -!- jhawk28_ [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Ping
timeout: 240 seconds]
23:13 < n___> Hi. Is there a way to call a function from its string name?
23:13 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X]
23:13 <@nf_> zzing: it should give errors
23:14 <@nf_> zzing: although you might not actually get the errors until you
try to build
23:14 < aiju> n___: no
23:14 -!- gr0gmint [~quassel@87.61.162.99] has joined #go-nuts
23:14 <@nf_> zzing: IIRC cgo only performs a lexical transformation, it
doesn't type check or compile
23:14 < gr0gmint> Can someone help me with a very strange crash i get?
23:14 < aiju> n___: atlho, maybe, there is some way with reflect ...  but
it's not going to be nice :P
23:14 < aiju> s/is/might be
23:14 <@nf_> n___: there is probably a better way
23:15 <@nf_> n___: it is possible to reflect on a value and find its methods
by name, but I don't think you can inspect a package namespace for function names
23:15 < zzing> nf_: I see.  I suppose I should use that makefile stuff to
automate this part
23:15 <@nf_> n___: see http://golang.org/pkg/reflect/
23:15 <@nf_> zzing: I would, yeah.
23:15 < n___> yea im already looking in reflect
23:15 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4]
23:15 <@nf_> gr0gmint: post a pastebin of it
23:15 < n___> the point is to make that bundling during run-time
23:15 < gr0gmint> http://pastebin.com/F6jLnDL7 if you want the code too, ill
paste that
23:15 < aiju> n___: you basically have to look into the symbol table ...
23:16 < zzing> nf_, at least that provides me an opportunity to see how
things are transformed...
23:16 < aiju> i don't really know whether it is exposed to Go
23:16 < n___> context: i have a machine learning algorithm/supervised
learning.  and as a final action i would like to have a function dynamically
attached, so it can be learned into the decision tree
23:18 <@nf_> gr0gmint: try rolling back to release.2011-02-01.1
23:19 < aiju> n___: the runtime has a Func struct
23:19 < gr0gmint> nf_: okay, im sorry, but whats the command in hg...  hg
update release.2011-02-01.1 ?
23:19 <@nf_> n___: you _can_ pass functions arond as values, so maybe you
want to put your functions in a map[string]func() keyed by name
23:20 <@nf_> gr0gmint: yeah, exactly.  then cd src && ./all.bash
23:20 < TheSeeker> n___: ...  you're trying to make a program that can learn
to write itself?  >_>
23:20 < n___> essentially yes
23:20 < gr0gmint> nf_: is it the garbage collector?
23:20 <@nf_> gr0gmint: sorry, we have a bit of instability at the moment.
it might be the GC
23:20 <@nf_> gr0gmint: i'm not totally aware of the details
23:20 < aiju> n___: you might just want to look into the runtime whether the
symbol table is exposed somewhere
23:20 < n___> so far for a demo i generate go code.  i want to make it fully
dynamic
23:20 < n___> what i was thinking was to have a registry like you said.
map[string]func()
23:21 < n___> and have the available functions "register" in that table
23:21 <@nf_> sounds reasonable
23:21 <@nf_> if you're generating the code, you can just do:
23:21 <@nf_> func foo() {}
23:21 <@nf_> func init() { Register("foo", foo) }
23:21 < n___> we have a journal paper accepted on code written in Go btw
23:22 <@nf_> n___: abstract?
23:22 < n___> "Current technological advancements impose a strong demand for
in future Internet for a capacity to modify dynamically the data plane or control
plane; often fast and effectively at runtime in response to emerging conditions.
Currently, ad-hoc dynamic tuning of existing functionality is being advocated in
different cross- layer optimisations and in the past a number of frameworks have
been proposed, mainly in active networking research, for enabling increm
23:22 < n___> extension of existing functionality.  However in both cases
the degree of adaptability is rather limited.  In this article we advocate a more
holistic approach of adapting data or control plane functionality to satisfy
different requirements and serve orthogonal adaptation processes.  We present the
design of a framework able to support functional composition, optimisation and
customisation of network services through dynamic selection and on-demand
modificat
23:22 < n___> network functions."
23:22 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
23:22 < aiju> // NOT INTENDED FOR PRODUCTION USE.
23:22 < aiju> my favourite comment disappeared!
23:23 <@nf_> i think some of your abstract got cut off
23:23 < n___> let me pastie
23:23 <@nf_> it has a lot of long words!
23:23 < aiju> does anybody know when this happened?
23:23 <@nf_> aiju: january i think
23:23 < n___> http://pastie.org/1580674
23:23 <@nf_> russ did major work on the GC in nov/dec which made it into the
tree in jan
23:24 < n___> nf_: the pont of academia, if you cant convince them, confuse
them
23:24 < TheSeeker> this seems like bad grammar to me ...  'impose a strong
demand for in future Internet for a capacity'
23:25 < n___> not sure if the copy/paste was from camera-ready version
23:25 < n___> i just picked a compiled copy
23:25 < gr0gmint> nf_: it didnt work, is there an even older version i can
roll back to?
23:26 < aiju> nf_: i suppose there is no date yet for the language to
stabilize
23:28 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
23:29 <@nf_> gr0gmint: try release.2011-01-20 (sorry)
23:29 -!- ShadowIce`
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
23:29 -!- ShadowIce`
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
23:29 -!- ShadowIce` [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
23:29 -!- Netsplit over, joins: steevel
23:29 -!- Netsplit *.net <-> *.split quits: rphillips, ShadowIce, pingveno,
kanru
23:30 < gr0gmint> nf_: thanks :)
23:30 <@nf_> aiju: i am just about to change our release tagging scheme, so
'release' tags will be issued once every couple of months (ideally)
23:30 <@nf_> aiju: so we're trying to protect people from churn
23:30 -!- Netsplit over, joins: pingveno
23:30 -!- emjayess [~emjayess@pix1.i29.net] has quit [Ping timeout: 272 seconds]
23:30 -!- Netsplit over, joins: kanru
23:36 -!- rphillips [~rphillips@unaffiliated/rphillips] has joined #go-nuts
23:46 < TheSeeker> aw, no more once a week or so releases?
23:47 < exch> there will be weekly releases
23:48 < exch> the monthly ones are for people who dont want to bother
updating every week and still have a stable build to work with
23:51 <@nf_> TheSeeker: i'll still do weeklies, we'll just retroactively
give the 'release' tag to particularly stable weeklies
23:51 <@nf_> TheSeeker: it's basically giving people more data about which
are the good builds
23:54 < plexdev> http://is.gd/5n7nuc by [Dave Cheney] in 2 subdirs of
go/src/ -- build: reduce the use of subshells in recursive make
23:54 < n___> something documenting API changes release-over-release would
be nice
23:54 < n___> i mean, pointing out that the API has changed
23:54 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-174-149.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
23:54 <@nf_> n___: you mean like http://golang.org/doc/devel/release.html
and the emails to golang-nuts ?
23:55 < n___> yea but thats all the change log
23:55 < n___> maybe im just too lazy sometimes, sorry :P
23:55 <@nf_> n___: if you ignore the bullet points, we always summarize any
breaking changes at the top
23:55 < n___> thanks
23:56 <@nf_> n___: and i try to note in the first paragraph who the breaking
changes are relevant to
23:56 <@nf_> so you should be able to just read one paragraph a week :)
23:56 < n___> *bookmarked*
23:56 -!- hcl2 [~akuma@75.41.110.112] has quit [Ping timeout: 240 seconds]
23:59 < n___> so all effort going into go, comes from google mostly or has
it balanced with the community nowadays?
--- Log closed Sat Feb 19 00:00:27 2011