--- Log opened Fri Feb 11 00:00:05 2011
00:02 < plexdev> http://is.gd/4r3sVC by [Yasuhiro Matsumoto] in
go/src/cmd/godoc/ -- godoc: Use IsAbs to test for absolute paths (fix for win32).
00:05 < erus_> i posted that issue :D
00:10 -!- erus_ [5687a0dd@gateway/web/freenode/ip.86.135.160.221] has quit [Ping
timeout: 245 seconds]
00:11 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-149-210.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
00:11 < skelterjohn> apparently there is a new package, pathutil?
00:14 < skelterjohn> oh, godoc probably imports path as pathutil
00:14 < skelterjohn> so it can use path as a variable name
00:19 < foocraft> I think I'll try to use go for this code jam
00:19 < foocraft> (my temptation is for java though)
00:21 -!- tensorpudding [~user@99.23.127.179] has quit [Read error: Connection
reset by peer]
00:21 < vice_virtue> code jam looks like fun :)
00:21 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
00:21 < foocraft> :D yeah, I've been playing with some old problems today;
pretty neat I have to say
00:22 < foocraft> although the IEEE competition touches on more, fake, but
relevant examples to things like OS design, compilers, etc.
00:22 < foocraft> they had a scheduling problem in it last time
00:22 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the
connection]
00:23 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
00:25 < vice_virtue> starts in 6 days
00:26 < foocraft> depends on the region
00:26 -!- iant [~iant@nat/google/x-qgcjepcshslgcalj] has quit [Quit: Leaving.]
00:26 < vice_virtue> or not...  I wonder why the..  oh?
00:26 < vice_virtue> I'm in Australia
00:27 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
00:28 -!- dancek [~hthartik@kekkonen.cs.hut.fi] has left #go-nuts []
00:30 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
00:34 < plexdev> http://is.gd/P2bBb3 by [Robert Griesemer] in
go/src/cmd/godoc/ -- godoc: godoc: Use IsAbs to test for absolute paths (fix for
win32).
00:36 -!- iant [~iant@67.218.104.194] has joined #go-nuts
00:36 -!- mode/#go-nuts [+v iant] by ChanServ
00:36 -!- tensorpudding [~user@99.23.127.179] has quit [Quit: ERC Version 5.3 (IRC
client for Emacs)]
00:36 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 250 seconds]
00:39 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
00:42 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
00:44 -!- niemeyer [~niemeyer@201-2-134-248.pltce701.dsl.brasiltelecom.net.br] has
quit [Ping timeout: 240 seconds]
00:47 -!- tensorpudding [~user@99.23.127.179] has quit [Quit: ERC Version 5.3 (IRC
client for Emacs)]
00:47 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
00:49 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
00:49 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
00:50 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the
connection]
00:51 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
00:52 -!- Venom_X [~pjacobs@75.92.43.21] has quit [Quit: Venom_X]
00:55 -!- ShadowIce` [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
01:00 -!- darkhelmetlive [~darkhelme@174.3.226.0] has joined #go-nuts
01:03 -!- boscop [~boscop@f055068219.adsl.alicedsl.de] has quit [Ping timeout: 240
seconds]
01:05 -!- darkhelmetlive [~darkhelme@174.3.226.0] has quit [Client Quit]
01:06 -!- saturnfive [~saturnfiv@210.74.155.131] has joined #go-nuts
01:06 < plexdev> http://is.gd/MEAHlJ by [Adam Langley] in
go/src/pkg/crypto/openpgp/packet/ -- crypto/openpgp/packet: add remainder of
packet types.
01:07 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
01:08 -!- darkhelmetlive [~helmet@174.3.226.0] has joined #go-nuts
01:09 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
01:09 -!- darkhelmetlive [~helmet@174.3.226.0] has quit [Client Quit]
01:10 -!- darkhelmetlive [ae03e200@gateway/web/freenode/ip.174.3.226.0] has joined
#go-nuts
01:19 -!- [muttox] [muttox@creep.bur.st] has quit [Quit: leaving]
01:23 -!- artefon [~thiago@189.59.130.162.dynamic.adsl.gvt.net.br] has quit [Quit:
bye]
01:24 -!- [muttox] [~muttox]@93.135.70.115.static.exetel.com.au] has joined
#go-nuts
01:27 -!- prip_ [~foo@host130-128-dynamic.52-79-r.retail.telecomitalia.it] has
quit [Ping timeout: 255 seconds]
01:27 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
01:29 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
01:32 < darkhelmetlive> Having a problem with exec.Run() not working as I
think it should
01:32 < darkhelmetlive> ie, this doesn't work: cmd, _ :=
exec.Run("/path/to/python", []string{"-m", "SimpleHTTPServer"}, os.Environ(), cwd,
exec.PassThrough, exec.PassThrough, exec.PassThrough)
01:32 < darkhelmetlive> spits this out: -m: can't open file
'SimpleHTTPServer': [Errno 2] No such file or directory
01:40 -!- prip_ [~foo@host15-122-dynamic.32-79-r.retail.telecomitalia.it] has
joined #go-nuts
01:42 < darkhelmetlive> any ideas?  am i using exec.Run wrong?
01:44 < exch> presumably it's looking for the file in the wrong place?  Try
specying an absolute path to SimpleThingy
01:44 < exch> though technically, passing the current working dir should
take care of that.  unless of course simpleThingy isn't actually there
01:44 < darkhelmetlive> if i run it in the console "python -m
01:45 < darkhelmetlive> python -m SimpleHTTPServer
01:45 < darkhelmetlive> it works
01:46 < Eridius> darkhelmetlive: the first argument needs to be the name of
the executable
01:46 -!- dRbiG [drbig@unhallowed.pl] has quit [Ping timeout: 240 seconds]
01:46 < Eridius> stick python in as the very first argument
01:46 < Eridius> darkhelmetlive: that's why the error message used "-m" as
the program name
01:47 < exch> ah right..  the python path has to be in the []string thing as
well
01:47 < Eridius> darkhelmetlive: you did the equivalent of "ln -s
/usr/bin/python -m && -m SimpleHTTPServer'
01:47 < darkhelmetlive> the first argument to exec.Run is just the name?
01:47 -!- dRbiG [drbig@unhallowed.pl] has joined #go-nuts
01:47 < Eridius> darkhelmetlive: yep
01:47 < exch> bit peculiar really
01:47 < darkhelmetlive> bizarre
01:47 < Eridius> darkhelmetlive: have you ever written a C program?  The
first argument to main() is the name of the program as it was invoked
01:47 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
01:47 -!- m4dh4tt3r1
[~Adium@75.144.24.109-BusName-walnutcreek.ca.hfc.comcastbusiness.net] has quit
[Ping timeout: 240 seconds]
01:48 < Eridius> this lets programs know their own name, and also lets them
change behavior based on the name (e.g.  vim will act like vim -g if you invoke it
as "gvim")
01:48 < darkhelmetlive> that makes sense i suppose
01:48 < Eridius> similarly shells act as login shells if their name starts
with - (which is why `ps` shows names like "-bash")
01:49 -!- iant [~iant@67.218.104.194] has quit [Quit: Leaving.]
01:50 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
01:52 < darkhelmetlive> okay so that works now.  it runs the first argument
as the binary, but then you still need a name as the first value in the argv
[]string (as you pointed out)
01:52 < darkhelmetlive> thanks!
01:53 < darkhelmetlive> now the next problem :) i have to specify the full
path to the binary to run...why?  I pass the environment through...
01:56 < skelterjohn> darkhelmetlive: You can use exec.LookPath for that
01:57 < darkhelmetlive> oh silly me..i could have just RTFM, lol.  thanks!
01:57 < skelterjohn> but you don't want to have exec.Run look up the
location of the actual binary every time
01:57 < rm445> the answer is that it's all passed through to a UNIX syscall,
which has always worked that way.  The environment is a different matter as you
might want to change it.
01:57 < skelterjohn> for instance, if you run some command 30k times, you
only have to look up where the binary is once in the beginning
01:58 < darkhelmetlive> makes sense
01:58 < rm445> (btw I think you can pass 0 as the envv and get the current
environment passed through, last time I looked at the source that was what it did
anyway)
01:58 < skelterjohn> i use os.Envs
01:58 < skelterjohn> can't pass 0 as an env...  unless you mean nil
02:00 -!- skj-phone_ [~skelterjo@mobile-166-137-138-243.mycingular.net] has joined
#go-nuts
02:00 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has quit
[Quit: Leaving.]
02:01 < rm445> yes nil, pkg/os/exec.go, line 31 in os.StartProcess: if envv
== nil { \ envv = Environ() \ }
02:04 -!- cafesofie [~cafesofie@ool-4a5978f2.dyn.optonline.net] has left #go-nuts
["Leaving..."]
02:08 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
02:10 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
02:18 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts
02:28 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
02:30 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
02:39 -!- skj-phone_ [~skelterjo@mobile-166-137-138-243.mycingular.net] has left
#go-nuts []
02:43 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Remote
host closed the connection]
02:48 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
02:51 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
02:55 -!- rpdillon [~user@12.9.187.140] has left #go-nuts ["ERC Version 5.3 (IRC
client for Emacs)"]
03:05 -!- itrekkie_ [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
03:09 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Ping
timeout: 240 seconds]
03:19 -!- m4dh4tt3r [~Adium@76.sub-75-208-241.myvzw.com] has joined #go-nuts
03:23 -!- dchest [~dchest@95.155.52.241] has quit [Quit: dchest]
03:25 < skelterjohn> I just wrote "This chapter is well written, though on
occasion a preposition was used to end a sentence with." into a review.
03:25 < skelterjohn> had to share, sorry
03:25 -!- itrekkie_ [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
03:26 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit
[Disconnected by services]
03:28 -!- Netsplit *.net <-> *.split quits: bartbes, @adg, apexo, Cobi,
cco3-hampster, cdsgf, nictuku, elimisteve, Guest34184, Aco-
03:29 < skelterjohn> tough crowd
03:32 -!- hcl2 [~akuma@75.41.110.112] has quit [Ping timeout: 240 seconds]
03:32 < mdxi> i like to start sentences with conjunctions.  because the
Victorians are all dead.  so they can't stop me.
03:36 -!- m4dh4tt3r [~Adium@76.sub-75-208-241.myvzw.com] has quit [Ping timeout:
250 seconds]
03:37 < skelterjohn> and i see no reason not to do so
03:44 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
03:44 -!- mode/#go-nuts [+v iant] by ChanServ
03:58 -!- tgall_foo [~tgall@linaro/tgall-foo] has quit [Ping timeout: 246 seconds]
03:59 -!- Netsplit over, joins: Cobi, Guest34184, Aco-, elimisteve, @adg,
cco3-hampster, apexo, cdsgf, nictuku, bartbes
04:02 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Quit:
itrekkie]
04:04 -!- tgall_foo [~tgall@206.9.88.154] has joined #go-nuts
04:07 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping
timeout: 255 seconds]
04:09 -!- darkhelmetlive [ae03e200@gateway/web/freenode/ip.174.3.226.0] has quit
[Quit: Page closed]
04:12 -!- keithcascio [~keithcasc@nat/google/x-wzvekwhaqmaokesf] has quit [Quit:
Leaving]
04:14 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
04:16 -!- Xenith [~xenith@xenith.org] has quit [Quit: leaving]
04:16 -!- phalax [~phalax@c213-100-72-128.swipnet.se] has joined #go-nuts
04:21 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
04:23 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
04:30 -!- Xenith [~xenith@xenith.org] has joined #go-nuts
04:41 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
04:41 < |Craig|> skelterjohn: nice joke an hour and a half ago, sorry I was
away and missed it
04:41 < skelterjohn> lol
04:42 < skelterjohn> thanks, i appreciate it
04:54 -!- phalax [~phalax@c213-100-72-128.swipnet.se] has quit [Ping timeout: 240
seconds]
04:58 < vice_virtue> rsa.EncryptOAEP has a constraint on the maximum length
of the data it can encrypt...  what if I want to encrypt more data?  Do I run
EncryptOAEP over successive blocks of data?
05:04 -!- nettok_ [~quassel@200.119.152.57] has joined #go-nuts
05:07 -!- nettok [~quassel@200.119.172.170] has quit [Ping timeout: 245 seconds]
05:07 < jessta> vice_virtue: it seems so
05:08 < jessta> vice_virtue: or have a large public key
05:08 < jessta> *larger
05:08 < vice_virtue> thank, jessta
05:08 < vice_virtue> *thanks
05:09 < jessta> vice_virtue: it's in the docs, you should read the docs
05:09 < jessta> "MessageTooLongError is returned when attempting to encrypt
a message which is too large for the size of the public key."
05:09 < vice_virtue> Where is it in the docs?
05:09 < vice_virtue> oh
05:09 < jessta> "EncryptOAEP encrypts the given message with RSA-OAEP.  The
message must be no longer than the length of the public modulus less twice the
hash length plus 2."
05:10 < vice_virtue> I saw that, but it doesn't quite tell me the
solution...  just tells me to avoid it.  Some cryptography is very sensitive, and
I am trying to make sure I do things correctly
05:18 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
05:19 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
05:25 -!- KingPhilroy [~kingphilr@shc-nat-newhall.stonehill.edu] has quit [Read
error: Operation timed out]
05:36 -!- nettok [~quassel@200.119.152.57] has joined #go-nuts
05:37 -!- nettok_ [~quassel@200.119.152.57] has quit [Ping timeout: 250 seconds]
05:37 -!- niemeyer [~niemeyer@201-2-134-248.pltce701.dsl.brasiltelecom.net.br] has
joined #go-nuts
05:41 -!- gits [~gits@77.94.219.158] has joined #go-nuts
05:45 -!- gits [~gits@77.94.219.158] has quit [Ping timeout: 240 seconds]
05:47 -!- vasu [~vasu@202.63.112.184] has joined #go-nuts
05:48 -!- vasu_ [~chatzilla@202.63.112.184] has joined #go-nuts
05:50 -!- vasu_ [~chatzilla@202.63.112.184] has quit [Client Quit]
06:11 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
06:14 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
06:14 -!- dju [~dju@fsf/member/dju] has joined #go-nuts
06:15 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 255
seconds]
06:16 -!- dju [~dju@fsf/member/dju] has quit [Max SendQ exceeded]
06:17 -!- dju [~dju@at.dmz.me] has joined #go-nuts
06:17 -!- dju [~dju@at.dmz.me] has quit [Changing host]
06:17 -!- dju [~dju@fsf/member/dju] has joined #go-nuts
06:23 -!- dju [~dju@fsf/member/dju] has quit [Ping timeout: 245 seconds]
06:23 -!- dju_ [~dju@fsf/member/dju] has joined #go-nuts
06:25 -!- dju_ [~dju@fsf/member/dju] has quit [Max SendQ exceeded]
06:26 -!- dju_ [~dju@fsf/member/dju] has joined #go-nuts
06:34 -!- KingPhil_ [~kingphilr@shc-nat-newhall.stonehill.edu] has joined #go-nuts
06:40 -!- nettok [~quassel@200.119.152.57] has quit [Ping timeout: 250 seconds]
06:48 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Ping
timeout: 245 seconds]
06:49 -!- KirkMcDonald [~Kirk@python/site-packages/KirkMcDonald] has quit [Quit:
Back later.]
06:52 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-152-28.clienti.tiscali.it] has
joined #go-nuts
06:56 -!- aconran [~aconran-o@adsl-67-119-205-150.dsl.pltn13.pacbell.net] has quit
[Remote host closed the connection]
06:57 -!- aconran [~aconran-o@adsl-67-119-205-150.dsl.pltn13.pacbell.net] has
joined #go-nuts
06:58 -!- niemeyer [~niemeyer@201-2-134-248.pltce701.dsl.brasiltelecom.net.br] has
quit [Ping timeout: 240 seconds]
06:59 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-152-28.clienti.tiscali.it] has
quit [Read error: Connection reset by peer]
07:03 -!- tensorpudding [~user@99.23.127.179] has quit [Ping timeout: 240 seconds]
07:03 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
07:04 < hypertux> any devs around?
07:04 < hypertux> or anyone that knows about submitting bugs/fixes
07:11 -!- niemeyer [~niemeyer@201-34-87-121.pltce701.dsl.brasiltelecom.net.br] has
joined #go-nuts
07:12 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-152-28.clienti.tiscali.it] has
joined #go-nuts
07:14 -!- nettok [~quassel@200.119.152.57] has joined #go-nuts
07:14 -!- wrtp [~rog@92.17.35.133] has joined #go-nuts
07:17 -!- KirkMcDonald [~Kirk@python/site-packages/KirkMcDonald] has joined
#go-nuts
07:18 -!- nettok [~quassel@200.119.152.57] has quit [Remote host closed the
connection]
07:19 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
07:28 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
07:28 < uriel> hypertux: http://golang.org/doc/contribute.html
07:34 -!- tux21b [~christoph@pyhost.srv.tux21b.org] has quit [Excess Flood]
07:34 -!- tux21b [~christoph@pyhost.srv.tux21b.org] has joined #go-nuts
07:35 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
07:35 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Remote host
closed the connection]
07:36 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
07:45 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Remote host
closed the connection]
07:48 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
07:49 -!- unhygienix [~unhygieni@host86-162-216-117.range86-162.btcentralplus.com]
has quit [Quit: unhygienix]
07:54 -!- KingPhil_ [~kingphilr@shc-nat-newhall.stonehill.edu] has quit [Remote
host closed the connection]
07:58 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
08:02 -!- zillar [~ziller@187.196.189.72.cfl.res.rr.com] has joined #go-nuts
08:03 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
08:04 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:06 -!- there-he-is [~there-he-@173-137-16-216.pools.spcsdns.net] has joined
#go-nuts
08:06 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
08:07 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Excess
Flood]
08:10 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
08:15 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
08:15 < taruti> Is there a way to get the i:th key from a map?
08:22 < nsf> taruti: there is, you can iterate over (keys, values) in map
using "for range" statement
08:23 < nsf> but it doesn't make sense, map is unordered data structure
08:23 < nsf> it gives no guarantees about ordering
08:23 < taruti> nsf: I'd like to have random access (which may be unsorted)
when using map as a kind of a cache for the eviction algorithm
08:24 < nsf> most likely you'll have to build your own map in that case
08:30 -!- niemeyer [~niemeyer@201-34-87-121.pltce701.dsl.brasiltelecom.net.br] has
quit [Ping timeout: 240 seconds]
08:34 < wrtp> taruti: use a slice in parallel to the map
08:35 < wrtp> have each member of the map know its position in the slice.
when you remove an item from the map, remove it from the slice and replace it with
the last element from the slice.
08:37 < taruti> I'm pondering writing an evil C accessor
08:37 -!- there-he-is [~there-he-@173-137-16-216.pools.spcsdns.net] has quit [Ping
timeout: 245 seconds]
08:41 < wrtp> what do you mean?
08:42 < nsf> i guess she wants to access Go's map internals via C code
08:43 < taruti> yes :)
08:43 < nsf> sure, one of the ways
08:47 < wrtp> no need
08:48 < wrtp> and you really don't wanna go delving into the map code
08:52 < taruti> point.  I'll do it the slice way then.
08:53 -!- nighty__ [~nighty@x122091.ppp.asahi-net.or.jp] has joined #go-nuts
08:54 < wrtp> it's pretty trivial, i reckon
08:55 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the
connection]
08:56 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
08:57 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
09:03 -!- zillar [~ziller@187.196.189.72.cfl.res.rr.com] has quit [Quit: Leaving]
09:09 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
09:23 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
09:27 -!- erus [50b135f2@gateway/web/freenode/ip.80.177.53.242] has joined
#go-nuts
09:28 -!- vice_virtue [~vice@220-253-155-186.VIC.netspace.net.au] has quit [Ping
timeout: 250 seconds]
09:29 < erus> I'm trying to sort strings by there length
09:29 < erus> I have to write a new wrapper for string?
09:32 < wrtp> erus: make a new wrapper for []string
09:33 < wrtp> type LengthSorted []string
09:33 < erus> i was about to ask about naming converntions :P thanks wrtp
09:33 < wrtp> actually i don't think that's a great name
09:34 < wrtp> and also it's probably easiest just to encapsulate
StringVector
09:35 < wrtp> type LengthSortedStringVector struct {vector.StringVector}
09:35 < wrtp> ok it's a long name, but you don't have to use it much
09:35 < wrtp> then you only have to implement the Less method
09:36 < wrtp> func (v *LengthSortedStringVector) Less(i, j int) {return
len((*v)[i]) < len((*v)[j])}
09:36 < wrtp> there - two lines.  not too bad really.
09:37 < wrtp> func sortByLength(a []string) {
sort.Sort(LengthSortedStringVector(&v)) }
09:39 < wrtp> oops no that should be
LengthSortedStringVector{(*vector.StringVector)(&v)}
09:41 < wrtp> actually LengthOrderedStringVector would probably be better,
as it isn't always sorted
09:44 < erus> you can do var meh int = 3
09:44 < erus> but not meh := int(3)
09:44 < erus> that sucks
09:47 < erus> (outside of a function body)
09:47 < nsf> erus: var meh = 3
09:47 < nsf> var meh = int(3)
09:47 < nsf> all should work
09:48 < erus> I tend not to use 'var' in my code
09:48 < erus> but i have to for globals :(
09:48 < nsf> you have to
09:50 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
joined #go-nuts
09:52 -!- JHaskly [~Juz30@c122-108-245-123.kelvn3.qld.optusnet.com.au] has joined
#go-nuts
09:53 < JHaskly> Hello.  I'm trying to create a simple GUI program, and I'm
using the exp/draw/x11 library.  Can anyone explain what the use of FlushImage is?
Also, what is the best way to update the pixels of the window as a group, rather
than one at a time?
09:54 -!- vice_virtue [~vice@220-253-155-186.VIC.netspace.net.au] has joined
#go-nuts
10:00 -!- wrtp [~rog@92.17.35.133] has quit [Ping timeout: 240 seconds]
10:07 -!- saturnfive [~saturnfiv@210.74.155.131] has quit [Read error: Connection
reset by peer]
10:08 -!- wrtp [~rog@92.17.93.139] has joined #go-nuts
10:08 < wrtp> JHaskly: the X11 library keeps a local buffer
10:08 < wrtp> FlushImage sends that to the actual X server
10:08 < wrtp> if you want to update the pixels of a window as a group, use a
Draw request
10:09 < JHaskly> Ok
10:11 -!- lorrden_ [~lorrden@ip51cc3b9a.adsl-surfen.hetnet.nl] has joined #go-nuts
10:11 -!- erus [50b135f2@gateway/web/freenode/ip.80.177.53.242] has quit
[Disconnected by services]
10:11 -!- lorrden_ [~lorrden@ip51cc3b9a.adsl-surfen.hetnet.nl] has quit [Client
Quit]
10:20 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
10:22 < JHaskly> Alright, thanks for that!  It works fine :)
10:27 -!- JHaskly [~Juz30@c122-108-245-123.kelvn3.qld.optusnet.com.au] has left
#go-nuts []
10:31 -!- sauerbraten [~sauerbrat@p508CDF5C.dip.t-dialin.net] has joined #go-nuts
10:32 -!- ExtraSpice [~XtraSpice@78-62-101-194.static.zebra.lt] has joined
#go-nuts
10:32 -!- saturnfive [~saturnfiv@222.90.15.68] has joined #go-nuts
10:34 -!- dchest [~dchest@95.155.52.241] has joined #go-nuts
10:36 -!- shvntr [~shvntr@116.26.131.140] has joined #go-nuts
10:41 < wrtp> cool
10:42 < Ina> Is there any way to modify the window size in exp/draw
codewise?
10:42 < wrtp> no
10:42 < wrtp> the exp/draw code hasn't been touched in ages.  it needs work.
10:42 < Ina> clearly
10:45 -!- vice_virtue [~vice@220-253-155-186.VIC.netspace.net.au] has quit [Ping
timeout: 240 seconds]
10:56 -!- stalled [~stalled@unaffiliated/stalled] has quit [Quit: ...]
11:00 -!- Project-2501 [~Marvin@82.84.81.88] has joined #go-nuts
11:03 -!- phalax [~phalax@c213-100-72-128.swipnet.se] has joined #go-nuts
11:04 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-152-28.clienti.tiscali.it] has
quit [Ping timeout: 265 seconds]
11:04 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
11:05 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
11:26 -!- virtualsue [~chatzilla@nat/cisco/x-jepifqeiygunaxnn] has joined #go-nuts
11:26 -!- rphillips [~rphillips@unaffiliated/rphillips] has quit [Quit: ZNC -
http://znc.sourceforge.net]
11:28 -!- rphillips [~rphillips@unaffiliated/rphillips] has joined #go-nuts
11:34 -!- phalax [~phalax@c213-100-72-128.swipnet.se] has quit [Ping timeout: 240
seconds]
11:35 < plexdev> http://is.gd/ygdCuX by [Luuk van Dijk] in go/src/pkg/flag/
-- flag: allow hexadecimal and octal input for integer flags.
11:41 -!- adu [~ajr@softbank220043139062.bbtec.net] has joined #go-nuts
11:51 -!- xyproto [~alexander@77.40.159.131] has joined #go-nuts
11:55 -!- adu [~ajr@softbank220043139062.bbtec.net] has quit [Ping timeout: 245
seconds]
12:01 < foocraft> http://fpaste.org/yPNA/ I don't get why this gives an
invalid memory address panic
12:06 < wrtp> foocraft: you haven't initialised df
12:06 < wrtp> d
12:07 < wrtp> you could say d := Dog(D(0))
12:07 < wrtp> oh, not quite.
12:07 < wrtp> you could say
12:07 < foocraft> but what if I want to explicitly say the type?  (i.e.  not
the := operator)
12:07 < wrtp> var d D
12:07 < wrtp> d.Bark()
12:07 < wrtp> var d Dog = new(D)
12:08 < wrtp> equivalent do d := Dog(new(D))
12:08 < foocraft> oooh okay so it's like normal interfaces when it comes to
that
12:08 < wrtp> s/do/to
12:08 < foocraft> thanks wrtp
12:08 < wrtp> what's like normal interfaces?  there's nothing abnormal going
on here, i think.
12:09 < foocraft> yeah that's why it's like interfaces in other languages in
terms of dealing with them; that's what I meant
12:10 < wrtp> ok
12:11 < wrtp> if the interface is uninitialised, there's no concrete type
underneath, so it can't know what methods to call.
12:11 < foocraft> I think, given how Go does interfaces, it makes no sense
to say var d D, but rather everything should declare an instance of the interface
12:12 < wrtp> it can easily make sense to do that
12:12 < wrtp> e.g.  var err os.Error; a[i], err = os.Open("foo",
os.O_RDONLY, 0)
12:13 -!- adu [~ajr@softbank220043139062.bbtec.net] has joined #go-nuts
12:13 -!- vasu [~vasu@202.63.112.184] has quit [Remote host closed the connection]
12:13 < foocraft> hmm true that
12:13 < wrtp> it makes as much sense as declaring a pointer with nil value
12:15 < foocraft> saying type D interface{} let the compiler slap me
12:19 -!- nighty__ [~nighty@x122091.ppp.asahi-net.or.jp] has quit [Quit:
Disappears in a puff of smoke]
12:19 -!- sauerbraten [~sauerbrat@p508CDF5C.dip.t-dialin.net] has quit [Read
error: Connection reset by peer]
12:22 < adu> compilers?  slap?
12:22 < adu> can I watch?
12:23 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the
connection]
12:24 -!- boscop [~boscop@g225224043.adsl.alicedsl.de] has joined #go-nuts
12:37 -!- adu [~ajr@softbank220043139062.bbtec.net] has quit [Quit: adu]
12:39 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
12:39 -!- niemeyer [~niemeyer@201-34-87-121.pltce701.dsl.brasiltelecom.net.br] has
joined #go-nuts
12:41 -!- user [~chatzilla@c-83-233-52-50.cust.bredband2.com] has joined #go-nuts
12:42 -!- artefon [~thiago@187.20.209.175] has joined #go-nuts
12:44 < xyproto> I need an advice.  I adopted a package in AUR, "motor", a
handy little curses-based IDE.  However, development seems to have stopped.  I
managed to make it compile again, but it still has issues (it segfaults).  Is it
okay to let the non-working package hang around on AUR for a while, in case a fix
should magically appear, or should non-working packages be immediately deleted in
all cases?
12:49 < exch> xyproto: I believe you intended that for #archlinux?  :)
12:54 < xyproto> exch: indeed :D thx
13:04 -!- saturnfive [~saturnfiv@222.90.15.68] has left #go-nuts []
13:11 < exch> mm json marshaller changes the representation of a map if it
only has one kay/value :s
13:11 < exch> not very consistent
13:11 < exch> actually, scratch that
13:11 < exch> I made booboo
13:37 < plexdev> http://is.gd/vPqjgK by [Mathieu Lonjaret] in
go/src/pkg/os/inotify/ -- fix example in inotify
13:37 < plexdev> http://is.gd/sVQr14 by [Adam Langley] in 3 subdirs of
go/src/pkg/crypto/openpgp/ -- crypto/openpgp: minor updates to subpackages
13:39 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
13:40 -!- PortatoreSanoDiI [~Marvin@82.84.76.103] has joined #go-nuts
13:42 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
13:43 -!- Project-2501 [~Marvin@82.84.81.88] has quit [Ping timeout: 246 seconds]
13:45 < dchest> Is there a way to import module and not use it directly
without compiler complaining that I don't use it?
13:46 < jessta> dchest: import _ "somepackage"
13:46 < dchest> jessta: awesome, thanks!
13:55 -!- hcl2 [~akuma@75.41.110.112] has joined #go-nuts
14:04 -!- dchest [~dchest@95.155.52.241] has quit [Quit: dchest]
14:09 -!- lmoura [~lauromour@186.212.117.110] has joined #go-nuts
14:19 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
14:28 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
quit [Ping timeout: 240 seconds]
14:29 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
14:31 -!- Urmel| [~11087Urme@82-136-196-44.ip.telfort.nl] has quit [Ping timeout:
276 seconds]
14:37 -!- Urmel| [~11087Urme@82-136-196-44.ip.telfort.nl] has joined #go-nuts
14:39 <@adg> haha i like this posting:
14:39 <@adg> Is there any easier way to iterate over the pointers than:
14:39 <@adg> for i := range items {
14:39 <@adg> item := &items[i]
14:39 <@adg> ...
14:39 <@adg> }
14:39 <@adg> uhh, no?
14:43 < skelterjohn> :)
14:43 < exch> O.o
14:44 < exch> I think Go is in dire need of a package with one exposed
function: MakeMyAppForMe().
14:44 <@adg> i think this is a really interesting phenomena, though
14:44 < Namegduf> They're probably one of those people who confuse terseness
for being easy.
14:44 < Namegduf> i.e.  Ruby programmers
14:44 <@adg> people are so concerned with micro-optimizations of syntax
14:45 < skelterjohn> let's just all use K instead
14:46 <@adg> is K like R?
14:46 < aiju> K is the language god would use
14:46 < wrtp> adg: i have seen code in the go source tree which uses for i
:= 0; i < len(items); i++ { } to avoid the struct copying
14:46 < aiju> http://aiju.phicode.de/code/k/tictactoe
14:46 < exch> You could suggest 'for _, v := range items { item := *v }' to
him :p Not necessarily easier, but perhaps just a few tokens shorter.
14:46 < Namegduf> But it won't work.
14:47 < Namegduf> There
14:47 < wrtp> ah, but that code probably doesn't do the copying anyway
14:47 < Namegduf> *There's only ever one v.
14:47 < aiju> the copying thing is annoying
14:47 < aiju> i'd much rather have a for range statement which used
references
14:47 < wrtp> aiju: how would that work on channels of maps?
14:47 < Namegduf> I'd rather have a fast one for the more common case where
I'm not dealing with a slice of structs
14:47 < wrtp> s/of/or
14:48 < skelterjohn> aiju: yeah, it's for i := range thelist { thelist[i] is
now a reference }
14:48 < Namegduf> Just using that notation is nice and simple
14:48 * wrtp wishes that the range variables were redeclared each time through the
loop
14:49 < exch> why?
14:49 < Namegduf> wrtp: I'd only want that if escape analysis was much
better, and it could guarantee reuse of the variable if it could not escape
14:49 < exch> Seems like an aweful lot of allocation for no reason
14:49 < skelterjohn> wrtp: what's the difference?
14:49 < Namegduf> Which is highly unlikely
14:49 < wrtp> so that you can use them in closures without overwriting
14:49 < skelterjohn> ah
14:49 < wrtp> exch: it would do no allocation unless it escaped
14:49 -!- emjayess [~emjayess@pix1.i29.net] has quit [Ping timeout: 240 seconds]
14:49 < Namegduf> Which is highly likely.
14:50 < aiju> references would allow modifying values easily ...
14:50 < Namegduf> Go doesn't have references
14:50 < aiju> you don't need references for that
14:50 < Namegduf> Adding them just for range would be weird and strange
14:50 < Namegduf> blah[i] serves perfectly well in that regular
14:50 < wrtp> yeah, i suppose that for _, x := range blah { foo(&x) } would
become more inefficient
14:50 < Namegduf> *regard
14:50 < Namegduf> wrtp: Just foo(x)
14:50 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
14:51 < aiju> for _, v := range array { v++ }
14:51 < wrtp> no, because foo(x) doesn't take the address of x
14:51 < Namegduf> Actually, no, you're right
14:51 < Namegduf> But if it's a struct, passing the address to something,
possibly via method call
14:51 < Namegduf> Is highly likely
14:51 < skelterjohn> I see no problem with having to reassign it first
14:52 < skelterjohn> leaving too much guesswork up to the compiler makes it
hard to figure out what's really going on
14:52 < Namegduf> Yeah, if you want to use it in a closure all you have to
do is declare a variable within the loop yourself.
14:52 < Namegduf> You can get declared-in-the-loop behaviour just by using i
alone, and v := slice[i]
14:52 < wrtp> yeah, but why bother?  there's almost no reason for the
reference to stay around from iteration to iteration
14:53 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has joined
#go-nuts
14:53 < Namegduf> Because it means it can reliably reuse the same place in
memory.
14:53 < wrtp> i know you can always do: i := i; inside the loop
14:53 < Namegduf> No repeated allocation.
14:53 < wrtp> it can reuse the same place in memory anyway
14:53 < skelterjohn> sometimes...
14:53 < wrtp> unless you take the address of it
14:53 < Namegduf> i := i would be weird anyway.
14:53 < Namegduf> i is an int
14:53 < wrtp> no it wouldn't
14:53 < wrtp> it's idiomatic
14:53 < Namegduf> it's an int
14:54 < wrtp> so what
14:54 < wrtp> ?
14:54 < skelterjohn> it's an idiomatic int
14:54 < Namegduf> It's not duplicating the value for you.
14:54 < wrtp> you need to do it (or something equivalent) if you want to use
i inside a closure
14:54 < skelterjohn> how is it not duplicating the value?
14:54 < wrtp> for i := range blah {go func() {print(i)}}
14:54 < wrtp> that's wrong
14:54 < erus_> My lexer is coming along nicely :)
14:54 < Namegduf> skelterjohn: Because i is the index, not the value.
14:55 < wrtp> for i := range blah {i := i; go func() { print(i)}}
14:55 < wrtp> that works ok
14:55 < Namegduf> wrtp: Yes, it is, for the same reason it'd be wrong
written without the range statement.
14:55 -!- artefon [~thiago@187.20.209.175] has quit [Ping timeout: 265 seconds]
14:55 < Namegduf> The index has to be kept between iterations so it can be
incremented.
14:56 < wrtp> it does not
14:56 < wrtp> it's copied anyway
14:56 < wrtp> try for i := range blah { i += 99 }
14:56 < aiju> wrtp: it would be cool if that worked
14:56 < Namegduf> Ah.
14:56 < wrtp> the increment does nothing
14:56 < Namegduf> So "it does", but it's copied anyway.
14:57 < wrtp> yeah sure
14:57 < wrtp> of course it's actually kept
14:57 < wrtp> but it's not kept in the slot that you're given
14:57 < skelterjohn> so it's kept in two places
14:57 < skelterjohn> once in the variable that you have access to
14:57 < skelterjohn> and once somewhere else in the depths of range
14:57 < wrtp> maybe it only copies it if it needs to.
14:58 < skelterjohn> but having something re-declared for each iteration of
a loop...  what does that make the stack look like, anyway?
14:58 < wrtp> anyway, i'd like for i := range foo {f{&i) }; to have the same
performance as for i := range foo {j := i+1;f(&j)}
14:59 < skelterjohn> well, i guess whatever i := i makes the stack look like
14:59 < wrtp> yup
14:59 < wrtp> the second piece of code above does an allocation once each
time through the loop
15:00 < wrtp> i think that the first should too (until the compiler gets
better at escape analysis and can avoid the allocation)
15:00 < wrtp> it's such a common pitfall, and there's really no reason for
it, other than an avoidable optimisation
15:01 < skelterjohn> it changes the common substitution for a for loop
15:02 < skelterjohn> i translate "for i:=0;i<n;i++ { stuff }" to "i:=0;
begin: if !(i<n) goto end; stuff; i++; goto begin; end:"
15:02 < skelterjohn> pretending i knew how to write code with labels and
gotos properly
15:02 < skelterjohn> which i don't
15:03 -!- vasu [~vasu@202.63.112.184] has joined #go-nuts
15:03 < wrtp> what?
15:03 < skelterjohn> heh, i guess that was confusing
15:03 -!- shvntr [~shvntr@116.26.131.140] has quit [Ping timeout: 240 seconds]
15:03 < skelterjohn> my point is, for is not a machine primitive...it's
something that can be described in the other primitives, and what i wrote above is
how i think of it
15:04 < skelterjohn> and in that example, it's clear that throwing a pointer
to i around can be dangerous
15:04 < wrtp> yeah, but the substitute code doesn't actually look like that
15:04 < wrtp> it's something like
15:04 < erus_> whats a unicode code point?
15:04 < wrtp> var i, j int
15:04 < exch> erus_: it's an index into a large table of predefined
characters
15:05 < wrtp> for i := 0; i < n; i++ {j = i; ...  }
15:05 < erus_> how do i define one?
15:05 < wrtp> erus_: it's a character
15:05 < wrtp> 'X'
15:05 < exch> erus_: with the benefit that the integers representing normal
ascii characters in ascii text, map to the same characters in unicode
15:05 < erus_> strings.Trim()
15:05 < exch> ascii('A') == unicode('A')
15:05 < wrtp> '♔'
15:06 < skelterjohn> heh
15:06 -!- femtoo [~femto@95-89-196-223-dynip.superkabel.de] has joined #go-nuts
15:06 < erus_> strings.Trim(src, unicode("!?")) ?
15:06 < wrtp> skelterjohn: and when you look at it like that, it's not clear
why j is declared outside the loop
15:07 < exch> erus_: strings in Go are UTF-8 encoded by default.  s :=
"foo"; s[0] <- yields a unicode rune
15:07 < erus_> basicly i wanna trim all whitespace chars exept new line char
so src = strings.Trim(src, " \r\t") ?
15:07 < wrtp> exch: no it doesn't.  well...  it does in that case, but not
in general.
15:08 < exch> you can convert the entire string to unicode runes with: runes
:= []int("foo")
15:08 < wrtp> s := "♔"; s[0] is not a unicode rune
15:08 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4]
15:08 < exch> ah good point.  Must do int conversion first
15:08 * exch more coffee
15:08 < wrtp> for i, r := range s { ...  } where s is a string ranges over
the unicode code points in s
15:08 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
15:09 < wrtp> BTW unicode code points are also known in Go as "runes"
15:14 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has quit [Ping
timeout: 245 seconds]
15:14 -!- hachiya [~hachiya@encyclical.net] has quit [Ping timeout: 265 seconds]
15:14 -!- Innominate [~sirrobin@cpe-076-182-074-143.nc.res.rr.com] has quit [Ping
timeout: 255 seconds]
15:14 -!- clip9 [clip9@er.en.svarteper.com] has quit [Ping timeout: 255 seconds]
15:14 -!- xb95 [~weechat@dreamwidth/staff/mark] has quit [Ping timeout: 255
seconds]
15:15 -!- emjayess [~emjayess@pix1.i29.net] has quit [Ping timeout: 265 seconds]
15:15 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 265
seconds]
15:15 -!- Archwyrm [~archwyrm@archwyrm.net] has quit [Ping timeout: 265 seconds]
15:15 -!- Namegduf [~namegduf@eu.beshir.org] has quit [Ping timeout: 265 seconds]
15:15 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Ping timeout: 255
seconds]
15:15 -!- BlaSux [7f000001@69.195.144.4] has quit [Ping timeout: 255 seconds]
15:15 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 255
seconds]
15:15 -!- Urmel| [~11087Urme@82-136-196-44.ip.telfort.nl] has quit [Ping timeout:
265 seconds]
15:15 -!- tgall_foo [~tgall@206.9.88.154] has quit [Ping timeout: 265 seconds]
15:15 -!- nsfx [~nsfx@pool-96-225-70-167.nwrknj.fios.verizon.net] has quit [Ping
timeout: 265 seconds]
15:15 -!- steevel [steevel@yahoe.se] has quit [Ping timeout: 265 seconds]
15:15 -!- yugui [~yugui@yugui.jp] has quit [Ping timeout: 265 seconds]
15:16 -!- Innominate [~sirrobin@cpe-076-182-074-143.nc.res.rr.com] has joined
#go-nuts
15:17 -!- d_m_ [d6@SDF.ORG] has joined #go-nuts
15:17 -!- nsfx [~nsfx@pool-96-225-70-167.nwrknj.fios.verizon.net] has joined
#go-nuts
15:18 -!- Netsplit *.net <-> *.split quits: rejb, kurt, tux21b, jbooth1,
rup, pothos, user, madari, Rennex, rphillips, (+99 more, use /NETSPLIT to show all
of them)
15:18 -!- erus [50b135f2@gateway/web/freenode/ip.80.177.53.242] has joined
#go-nuts
15:18 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
15:20 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts
15:20 -!- yugui [~yugui@yugui.jp] has joined #go-nuts
15:20 -!- xb95 [~weechat@xb95.com] has joined #go-nuts
15:20 -!- Namegduf [~namegduf@eu.beshir.org] has joined #go-nuts
15:20 -!- steevel [steevel@yahoe.se] has joined #go-nuts
15:20 -!- hachiya [~hachiya@encyclical.net] has joined #go-nuts
15:20 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
15:20 -!- Archwyrm [~archwyrm@archwyrm.net] has joined #go-nuts
15:20 -!- clip9 [clip9@er.en.svarteper.com] has joined #go-nuts
15:20 -!- Urmel| [~11087Urme@82-136-196-44.ip.telfort.nl] has joined #go-nuts
15:20 -!- cenuij [~cenuij@78.112.41.178] has joined #go-nuts
15:20 -!- Netsplit over, joins: hcl2, rejb, user, boscop, xyproto, rphillips,
napsy, ExtraSpice, rlab, wrtp (+98 more)
15:20 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
15:21 -!- Venom_X [~pjacobs@75.92.43.21] has joined #go-nuts
15:21 < wrtp> KBme: y'know i always thought IRC was just a single-server
thing
15:23 -!- anticw_ [~anticw@c-67-169-68-180.hsd1.ca.comcast.net] has joined
#go-nuts
15:23 -!- Netsplit *.net <-> *.split quits: cw, cde, Tonnerre, tokuhiro_,
fluffle, ssalbiz, d_m_, Paradox924X, leczb, chaos95, (+4 more, use /NETSPLIT to
show all of them)
15:23 < KBme> oh?  well you were very wrong :)
15:23 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
15:23 -!- kimelto_ [~kimelto@sd-13453.dedibox.fr] has joined #go-nuts
15:24 -!- jessta_ [~jessta@li7-205.members.linode.com] has joined #go-nuts
15:24 -!- bXi_ [bluepunk@irssi.co.uk] has joined #go-nuts
15:25 -!- Netsplit over, joins: d_m_, cde, leczb, rl, XenoPhoenix, ssalbiz,
hypertux, Paradox924X, chaos95, cw (+4 more)
15:27 -!- dchest [~dchest@95.155.52.241] has joined #go-nuts
15:28 -!- bXi [bluepunk@irssi.co.uk] has quit [Write error: Broken pipe]
15:28 -!- anticw [~anticw@c-67-169-68-180.hsd1.ca.comcast.net] has quit [Write
error: Broken pipe]
15:28 -!- kimelto [~kimelto@sd-13453.dedibox.fr] has quit [Remote host closed the
connection]
15:28 -!- jessta [~jessta@li7-205.members.linode.com] has quit [Remote host closed
the connection]
15:28 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has quit [Ping
timeout: 493 seconds]
15:29 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
15:29 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
15:31 -!- deso_ [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
15:34 -!- fluffybunnies [~imsplitbi@64.39.4.132] has joined #go-nuts
15:38 -!- itrekkie_ [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
15:39 -!- itrekkie_ [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Client
Quit]
15:41 -!- tgall_foo [~tgall@206.9.88.154] has joined #go-nuts
15:41 -!- tgall_foo [~tgall@206.9.88.154] has quit [Changing host]
15:41 -!- tgall_foo [~tgall@linaro/tgall-foo] has joined #go-nuts
15:42 < 15WAAB7TO> skelterjohn...
15:42 -!- 15WAAB7TO [50b135f2@gateway/web/freenode/ip.80.177.53.242] has quit
[Quit: Page closed]
15:42 -!- vasu [~vasu@202.63.112.184] has quit [Remote host closed the connection]
15:42 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Ping
timeout: 276 seconds]
15:45 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
15:49 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
15:51 -!- femtoo [~femto@95-89-196-223-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
16:00 -!- mikejs [~mike@ec2-174-129-238-128.compute-1.amazonaws.com] has quit
[Quit: leaving]
16:00 -!- wtfness [~dsc@89.211.71.208] has joined #go-nuts
16:01 -!- foocraft [~dsc@78.101.56.175] has quit [Ping timeout: 240 seconds]
16:06 -!- Venom_X_ [~pjacobs@66.54.185.131] has joined #go-nuts
16:07 -!- Venom_X [~pjacobs@75.92.43.21] has quit [Disconnected by services]
16:08 -!- Fish [~Fish@exo3753.pck.nerim.net] has quit [Quit: So Long, and Thanks
for All the Fish]
16:10 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
16:14 -!- fluffybunnies [~imsplitbi@64.39.4.132] has quit [Quit: Bye!]
16:21 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Ping
timeout: 240 seconds]
16:26 -!- toyoshim [~toyoshim@y252189.dynamic.ppp.asahi-net.or.jp] has quit [Ping
timeout: 255 seconds]
16:29 -!- phalax [~phalax@c213-100-72-128.swipnet.se] has joined #go-nuts
16:30 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
16:32 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: Quit]
16:40 < skelterjohn> so, now that a package can have the name "main", gb can
test commands if they have _test.go files, although "make test" still does nothing
16:47 -!- Adys [~Adys@cpc7-chap8-2-0-cust19.aztw.cable.virginmedia.com] has joined
#go-nuts
16:47 -!- Adys [~Adys@cpc7-chap8-2-0-cust19.aztw.cable.virginmedia.com] has quit
[Changing host]
16:47 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
16:48 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
16:51 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
16:53 -!- toyoshim [~toyoshim@y253149.dynamic.ppp.asahi-net.or.jp] has joined
#go-nuts
16:56 -!- niemeyer_ [~niemeyer@201-14-240-9.pltce701.dsl.brasiltelecom.net.br] has
joined #go-nuts
16:56 -!- niemeyer [~niemeyer@201-34-87-121.pltce701.dsl.brasiltelecom.net.br] has
quit [Ping timeout: 240 seconds]
16:57 -!- PortatoreSanoDiI [~Marvin@82.84.76.103] has quit [Quit: E se abbasso
questa leva che succ...]
17:01 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Remote host
closed the connection]
17:05 -!- tvw [~tv@212.79.9.150] has quit [Ping timeout: 240 seconds]
17:07 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
17:07 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
17:22 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 265
seconds]
17:30 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
17:32 -!- zillar [~ziller@187.196.189.72.cfl.res.rr.com] has joined #go-nuts
17:32 -!- zillar [~ziller@187.196.189.72.cfl.res.rr.com] has left #go-nuts []
17:38 -!- erus` [~tommo@host86-135-162-107.range86-135.btcentralplus.com] has
joined #go-nuts
17:40 < plexdev> http://is.gd/hTKsyl by [Evan Shaw] in go/src/pkg/bytes/ --
bytes: fix bugs in buffer.ReadBytes
17:44 -!- Innominate [~sirrobin@cpe-076-182-074-143.nc.res.rr.com] has quit [Ping
timeout: 255 seconds]
17:46 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has quit [Ping timeout: 255 seconds]
17:47 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 265
seconds]
17:48 -!- d_m [d6@SDF.ORG] has joined #go-nuts
17:49 -!- preflex_ [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
17:49 -!- keithcascio [~keithcasc@nat/google/session] has joined #go-nuts
17:49 -!- keithcascio [~keithcasc@nat/google/session] has quit [Changing host]
17:49 -!- keithcascio [~keithcasc@nat/google/x-icpfibefxjbxigsb] has joined
#go-nuts
17:49 -!- Innomina- [~sirrobin@cpe-076-182-074-143.nc.res.rr.com] has joined
#go-nuts
17:49 -!- awidegreen_ [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
17:49 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Remote host
closed the connection]
17:49 -!- d_m_ [d6@SDF.ORG] has quit [Remote host closed the connection]
17:49 -!- phalax [~phalax@c213-100-72-128.swipnet.se] has quit [Ping timeout: 240
seconds]
17:55 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
17:57 -!- phalax [~phalax@c213-100-72-128.swipnet.se] has joined #go-nuts
18:10 -!- wtfness [~dsc@89.211.71.208] has quit [Remote host closed the
connection]
18:12 -!- foocraft [~dsc@89.211.71.208] has joined #go-nuts
18:14 < erus`> skelterjohn: I dont think gb is working right on linux
18:15 < skelterjohn> can you be more specific?
18:15 < erus`> i entered a directory and built it.  Then added a new source
file.  tried to build again and it says up to date
18:16 < skelterjohn> if you gb -cb, does it build correctly?
18:16 < erus`> and i do gb -c then gb and it says up to date :/
18:16 < skelterjohn> aha
18:17 < skelterjohn> ok, i bet there is a compile error in that new source,
and i was actually just looking at the code that determines what happens in that
case
18:17 < erus`> you need a stable branch :P
18:17 < erus`> im starting to depend on gb
18:18 < skelterjohn> heh
18:18 < skelterjohn> good idea
18:18 < skelterjohn> however, i was able to reproduce your issue, so i'll be
able to fix it
18:18 < skelterjohn> i try to only commit stuff that works, but I don't have
a very good set of tests yet
18:19 -!- plainhao [~plainhao@208.75.85.237] has joined #go-nuts
18:19 -!- xb95 [~weechat@xb95.com] has quit [Changing host]
18:19 -!- xb95 [~weechat@dreamwidth/staff/mark] has joined #go-nuts
18:21 -!- jodaro [~user@poquito.divinia.com] has joined #go-nuts
18:26 < skelterjohn> erus`: for now, the best way to get a stable version is
to use the downloads from go-gb.googlecode.com
18:26 < skelterjohn> is there a good way to do this with github?
18:27 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Ping
timeout: 276 seconds]
18:27 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 276 seconds]
18:27 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
18:27 -!- iant [~iant@216.239.45.130] has joined #go-nuts
18:27 -!- mode/#go-nuts [+v iant] by ChanServ
18:29 < erus`> skelterjohn: i think github has downloads too
18:29 < skelterjohn> ok, i'll look into it
18:29 < skelterjohn> in the meantime, i may have fixed the issue
18:30 < skelterjohn> or at least, gb should tell you what's wrong
18:35 -!- phalax [~phalax@c213-100-72-128.swipnet.se] has quit [Ping timeout: 240
seconds]
18:36 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
18:43 < plexdev> http://is.gd/qpCm2A by [Yuval Pavel Zholkover] in 4 subdirs
of go/src/ -- 8l, runtime: place G and M pointers relative to _tos on Plan 9,
instead of hardcoded values for USTKTOP.
18:45 -!- twolfe18 [~twolfe18@CMU-421570.WV.CC.CMU.EDU] has joined #go-nuts
18:45 -!- virtualsue [~chatzilla@nat/cisco/x-jepifqeiygunaxnn] has quit [Ping
timeout: 255 seconds]
18:54 -!- itrekkie [~itrekkie@150.135.210.48] has joined #go-nuts
18:59 -!- fhs [~fhs@pool-74-101-66-112.nycmny.east.verizon.net] has joined
#go-nuts
19:05 -!- aho [~nya@fuld-590c7c59.pool.mediaWays.net] has joined #go-nuts
19:07 -!- intel_ix [~chatzilla@adsl-152-47-197.asm.bellsouth.net] has joined
#go-nuts
19:09 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
19:11 -!- twolfe18 [~twolfe18@CMU-421570.WV.CC.CMU.EDU] has quit [Ping timeout:
240 seconds]
19:13 -!- jodaro [~user@poquito.divinia.com] has quit [Ping timeout: 260 seconds]
19:16 < intel_ix> can go be compiled on cygwin?
19:16 < skelterjohn> i know that you can use go with cygwin
19:16 < skelterjohn> i don't know if you compile it in cygwin, or if you get
some binaries
19:17 -!- Adys` [~Adys@unaffiliated/adys] has quit [Quit: Quit]
19:17 -!- Adys` [~Adys@cpc7-chap8-2-0-cust19.aztw.cable.virginmedia.com] has
joined #go-nuts
19:21 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
19:21 < erus`> intel_ix: its hard to set up
19:21 < erus`> i know an eays way
19:21 < erus`> hang on
19:22 < erus`> https://bitbucket.org/jpoirier/go_mingw/downloads there.
Just download, follow the instructions and build
19:22 < erus`> its a portable package too so you dont have to install loads
of junk
19:23 < erus`> I cant get Go-SDL or opengl to build in it tho
19:23 < erus`> but i havnt tried too hard
19:23 -!- Adys [~Adys@cpc7-chap8-2-0-cust19.aztw.cable.virginmedia.com] has quit
[Changing host]
19:23 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
19:25 < intel_ix> cygwin window is tied up downloading the svn at the moment
19:25 < intel_ix> Ill try that though
19:26 < Ina> cgo is currently not supported under windows, that's why, erus`
19:26 < Ina> Go-SDL and Go-OpenGL both use cgo
19:26 -!- huin [~huin@91.84.176.107] has joined #go-nuts
19:27 -!- impl [impl@atheme/member/impl] has quit [Read error: Operation timed
out]
19:29 -!- impl [impl@224-74.ip4.durham0.network.cynigram.com] has joined #go-nuts
19:29 -!- impl [impl@224-74.ip4.durham0.network.cynigram.com] has quit [Changing
host]
19:29 -!- impl [impl@atheme/member/impl] has joined #go-nuts
19:31 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
19:31 < nictuku> I created a large number of constants: AA, BB, CC, etc.
How can I do something like reflect.Get("AA").(int) == AA ? // of course,
reflect.Get() doesn't exist.
19:32 < nictuku> The closest I found was FieldByName for structs.
19:38 -!- Ayoi [~david@mic92-12-88-161-108-143.fbx.proxad.net] has joined #go-nuts
19:39 -!- deso_ [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
19:41 < Ayoi> hi there, is it possible to have a pointer to an "http"
instance ?
19:41 < aiju> why not?
19:42 < Ayoi> hmmm..  how can you do that ? with make() ?
19:42 < aiju> make() is for channels, maps and slices
19:42 -!- virtualsue [~chatzilla@nat/cisco/x-afbzclsccqyopjqw] has joined #go-nuts
19:42 < aiju> new() is for everything else
19:43 < Ayoi> oh, i see, so to create an instance of http, i should put
new(http)
19:43 < aiju> what's this http you're referring to?
19:43 < aiju> the http package?
19:43 < Ayoi> yep
19:43 < aiju> you can't create instances of packages
19:44 < Ayoi> i'm new to go, and i'm a bit confused, it seems there are no
classes
19:44 < Ayoi> oh okay
19:44 < aiju> there are "classes"
19:44 < aiju> structs are quite similar to classes
19:44 < Ayoi> so you can new() structs ?
19:44 < aiju> yeah, but that doesn't initialize them
19:44 < aiju> you probably need to use the New* method for that struct
19:45 < Ayoi> oh i see
19:45 < plexdev> http://is.gd/9RMJJ1 by [Russ Cox] in go/src/pkg/runtime/ --
runtime: check that SysReserve returns aligned memory
19:45 < aiju> http://golang.org/pkg/http/#ServerConn.NewServerConn
19:45 < aiju> like this one
19:45 < plexdev> http://is.gd/Rc3bWQ by [Mikio Hara] in go/src/pkg/syscall/
-- syscall: add sockaddr_dl, sysctl with routing message support for darwin,
freebsd
19:46 -!- TheMue [~TheMue@p5DDF515E.dip.t-dialin.net] has joined #go-nuts
19:47 < aiju> memory allocation in Go may seem difficult, but it's actually
simple
19:47 < aiju> new() allocates pieces of memory, make() allocates and
initializes "built-in" objects like channels and New*() functions allocate and
initialize everything else
19:48 < aiju> Ayoi: have you read effective go?
19:48 < Ayoi> aiju thanks for the explaination, i will dig this way
19:48 < Ayoi> aiju i am crrently reading it
19:50 -!- phalax [~phalax@c213-100-72-128.swipnet.se] has joined #go-nuts
19:51 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:52 -!- stalled [~stalled@unaffiliated/stalled] has quit [Quit: ...]
19:57 -!- gits [~gits@77.94.219.158] has joined #go-nuts
19:59 -!- tvw [~tv@e176000031.adsl.alicedsl.de] has joined #go-nuts
20:01 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
20:05 -!- femtoo [~femto@95-89-196-223-dynip.superkabel.de] has joined #go-nuts
20:05 -!- twolfe18 [~twolfe18@CMU-421570.WV.CC.CMU.EDU] has joined #go-nuts
20:07 < nictuku> is it legal to do 'type foo map[string]int' and then attach
a method to foo?
20:07 < aiju> yes, of course
20:07 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
#go-nuts
20:08 < nictuku> doesn't have to be a struct then?
20:08 < aiju> you can attach methods to any type you define
20:08 < aiju> even type foo int
20:08 < nictuku> cool, ok.  the bug is elsewhere then..  grr
20:08 < huin> can you attach things to built-in types?
20:08 < aiju> huin: no
20:09 < aiju> only to types you define
20:09 < nictuku> I should still be able to range over foo, right?
20:09 < aiju> nictuku: i think so
20:09 < aiju> what's "the bug"?
20:09 < nictuku> let me paste somewhere
20:09 < aiju> this is not javascript, illegal behaviour will either yield a
compiler error (mostly) or runtime error
20:13 -!- decaf [~mehmet@85.106.192.52] has joined #go-nuts
20:15 < nictuku> yes of course, I *am* doing something illegal and it
doesn't compile but I can't find what.
20:16 < aiju> just paste the error
20:16 < nictuku> sure, I was trying a few more things first
20:16 < nictuku> http://pastie.org/1553922
20:17 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
20:17 < plexdev> http://is.gd/ED0IUl by [Petar Maymounkov] in
go/src/pkg/http/ -- http: add pipelining to ClientConn, ServerConn
20:17 < aiju> maps are reference types
20:17 < nictuku> & didn't solve the problem
20:17 < aiju> func (s statsType) is what you want
20:17 < nictuku> ah
20:17 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Remote
host closed the connection]
20:17 < nictuku> aiju, :-) awesome
20:18 < aiju> Go only has two reference types afaik
20:18 < aiju> maps and channels
20:18 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
#go-nuts
20:20 < nictuku> this compiles, yay http://pastie.org/1553940
20:20 < nictuku> aiju, big thanks!
20:20 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Client
Quit]
20:20 < nsf> aiju: slices and strings are reference types as well
20:20 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
#go-nuts
20:24 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Ping
timeout: 245 seconds]
20:25 < aiju> nsf: hm not really
20:25 < nsf> uhm..  yes, really
20:25 < nsf> :)
20:25 < aiju> depends on your definition of reference type
20:25 < nsf> their internal representation contains pointer to the real data
20:26 < aiju> slices are just fancy pointers for me
20:26 < nsf> so as maps and channels
20:27 < nsf> anyways, arguing about that is a waste of time, call them
whatever you like :)
20:27 < aiju> and strings are immutable
20:29 -!- femtoo [~femto@95-89-196-223-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
20:29 -!- jodaro [~user@poquito.divinia.com] has joined #go-nuts
20:30 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
#go-nuts
20:39 -!- phalax [~phalax@c213-100-72-128.swipnet.se] has quit [Ping timeout: 240
seconds]
20:43 -!- gits [~gits@77.94.219.158] has quit [Ping timeout: 276 seconds]
20:47 -!- museun [~what@c-98-252-140-73.hsd1.ga.comcast.net] has joined #go-nuts
20:53 -!- plainhao [~plainhao@208.75.85.237] has quit [Quit: plainhao]
21:06 < MaybeSo> Folks, what's the standard go way to ensure a temp file
gets cleaned up, even if the program is hit with a signal?  Would it be to install
some sort of signal handler using goroutine and the os.signal package, or is there
something I can do w/ just defer?
21:07 < aiju> MaybeSo: i think defer is sufficient
21:08 < exch> Not a guarantee though.  Then again, I doubt you can really
specify an absolutely foolproof way for that
21:09 < MaybeSo> ok, thanks
21:09 < aiju> exch: you can't catch SIGKILL anyway :P
21:09 < exch> there's that
21:09 < huin> or power failure :)
21:09 < exch> A panic will do the trick as well
21:09 < aiju> most programs don't need to be meteor proof
21:09 < huin> MaybeSo: do you need the temp file to exist as a directory
entry?
21:09 < exch> Unless you intercept it somewhere
21:09 < MaybeSo> I'm just thinking about those cases where somebody is
running a program and decides to hit Ctrl-C or something
21:10 < MaybeSo> or a sysadmin send a kill signal out of spite
21:10 < huin> MaybeSo: or just to be read/writable until program death?
21:10 < kimelto> in C if you unlink the file but keep a fd open it last
until the fd is closed.
21:10 < kimelto> dunoo if we can do that in Go
21:10 < huin> why not?  :)
21:10 < MaybeSo> kimelto: ah, yes I forgot about that technique
21:10 < Xenith> Put the temp file in /tmp and punt responsibility to the OS?
21:10 < aiju> kimelto: that's something inherent to Unix, not C
21:10 < exch> As far as I know, fd's in go are always closed when the
process exits
21:10 < aiju> exch: s/go/unix
21:11 < exch> not neccesarily.  If the fd is created without CLOEXEC, it
will remain open
21:12 < aiju> uh what?
21:12 < exch> you can pass an open fd to a different process that way
21:12 < aiju> CLOEXEC is linux specific
21:13 < exch> I am talking about linux in this case
21:13 < aiju> and i don't think CLOEXEC modifies program exit behaviour
21:13 < aiju> s/program/process
21:13 -!- illya77 [~illya77@252-16-133-95.pool.ukrtel.net] has joined #go-nuts
21:13 < exch> it did in my tests
21:13 < exch> at least as far as the closing of an open file wasconcerned
21:13 < aiju> really strange
21:14 < MaybeSo> huin: sorry, I missed your question.  I open the temp file
as scratch space for internal book keeping for the program, nothing else
read/writes it, and the data is useless beyond the life of the program.
21:14 < huin> MaybeSo: cool.  i was gonna suggest the aforementioned unlink
trick if so :)
21:20 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X]
21:23 -!- illya77 [~illya77@252-16-133-95.pool.ukrtel.net] has quit [Read error:
Connection reset by peer]
21:24 -!- itrekkie [~itrekkie@150.135.210.48] has quit [Quit: itrekkie]
21:26 -!- jodaro [~user@poquito.divinia.com] has quit [Quit: ERC Version 5.3 (IRC
client for Emacs)]
21:26 -!- dforsyth_ [~dforsyth@bastion.inap.yelpcorp.com] has joined #go-nuts
21:27 -!- jodaro [~user@poquito.divinia.com] has joined #go-nuts
21:30 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
21:34 < plexdev> http://is.gd/qYNR5O by [Mikio Hara] in go/src/pkg/syscall/
-- syscall: remove obsolete socket IO control
21:34 < plexdev> http://is.gd/rx67XA by [Ken Thompson] in go/src/cmd/5l/ --
5ld: stoped generating 64-bit eor
21:36 < erus`> if the reciever is a ptr and i modify the reciever within a
method, will the affect anything else?
21:37 < nsf> erus`: no
21:37 < erus`> good good
21:37 < nsf> reciever is just another function argument
21:37 < nsf> a bit special though
21:51 -!- Venom_X [~pjacobs@rrcs-97-79-206-26.sw.biz.rr.com] has joined #go-nuts
21:56 -!- twolfe18 [~twolfe18@CMU-421570.WV.CC.CMU.EDU] has quit [Ping timeout:
240 seconds]
22:02 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
22:05 -!- twolfe18 [~twolfe18@CMU-421570.WV.CC.CMU.EDU] has joined #go-nuts
22:05 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
22:09 -!- decaf [~mehmet@85.106.192.52] has quit [Ping timeout: 246 seconds]
22:09 -!- TheMue [~TheMue@p5DDF515E.dip.t-dialin.net] has quit [Quit: TheMue]
22:16 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has joined
#go-nuts
22:17 -!- huin [~huin@91.84.176.107] has quit [Quit: leaving]
22:23 -!- decaf [~mehmet@78.162.31.144] has joined #go-nuts
22:23 -!- jodaro [~user@poquito.divinia.com] has quit [Ping timeout: 240 seconds]
22:28 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
22:29 -!- intel_ix [~chatzilla@adsl-152-47-197.asm.bellsouth.net] has quit [Read
error: Connection reset by peer]
22:31 < skelterjohn> evening
22:31 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
22:33 -!- Venom_X [~pjacobs@rrcs-97-79-206-26.sw.biz.rr.com] has quit [Quit:
Venom_X]
22:33 -!- jodaro [~user@poquito.divinia.com] has joined #go-nuts
22:35 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
22:39 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4]
22:41 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
22:44 -!- jbooth1 [~jay@209.249.216.2] has left #go-nuts []
22:45 -!- virtualsue [~chatzilla@nat/cisco/x-afbzclsccqyopjqw] has quit [Ping
timeout: 272 seconds]
22:46 -!- vice_virtue [~vice@220-253-14-193.VIC.netspace.net.au] has joined
#go-nuts
22:46 -!- jbooth1 [~jay@209.249.216.2] has joined #go-nuts
22:48 -!- emjayess [~emjayess@pix1.i29.net] has quit [Quit: Leaving]
22:51 -!- jodaro [~user@poquito.divinia.com] has quit [Ping timeout: 240 seconds]
22:51 < plexdev> http://is.gd/osl6eU by [Russ Cox] in go/src/pkg/sync/ --
sync: check Unlock of unlocked Mutex
22:51 < plexdev> http://is.gd/SmJVAY by [Lorenzo Stoakes] in 2 subdirs of
go/ -- gc: correct receiver in method missing error
22:52 -!- jbooth1 [~jay@209.249.216.2] has left #go-nuts []
22:53 -!- ExtraSpice [~XtraSpice@78-62-101-194.static.zebra.lt] has quit [Ping
timeout: 240 seconds]
22:59 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
23:02 < Guest80739> gah im so dim today, been trying to range over a pointer
value instead of the slice :(
23:05 -!- Guest80739 [~cenuij@78.112.41.178] has quit [Remote host closed the
connection]
23:06 -!- cenuij [~cenuij@78.112.41.178] has joined #go-nuts
23:06 -!- cenuij [~cenuij@78.112.41.178] has quit [Changing host]
23:06 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
23:07 -!- vice_virtue [~vice@220-253-14-193.VIC.netspace.net.au] has quit [Ping
timeout: 272 seconds]
23:08 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts
23:08 -!- kimelto [~kimelto@sd-13453.dedibox.fr] has quit [Ping timeout: 260
seconds]
23:10 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Quit:
itrekkie]
23:11 -!- kimelto [~kimelto@sd-13453.dedibox.fr] has joined #go-nuts
23:14 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
23:18 -!- decaf [~mehmet@78.162.31.144] has left #go-nuts ["Leaving"]
23:18 -!- twolfe18 [~twolfe18@CMU-421570.WV.CC.CMU.EDU] has quit [Ping timeout:
276 seconds]
23:21 -!- dchest [~dchest@95.155.52.241] has quit [Quit: dchest]
23:21 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 240 seconds]
23:21 -!- dchest [~dchest@95.155.52.241] has joined #go-nuts
23:27 -!- twolfe18 [~twolfe18@CMU-421570.WV.CC.CMU.EDU] has joined #go-nuts
23:30 -!- Ayoi [~david@mic92-12-88-161-108-143.fbx.proxad.net] has quit [Ping
timeout: 255 seconds]
23:32 < plexdev> http://is.gd/u2yQkS by [Russ Cox] in go/src/pkg/testing/ --
testing: include elapsed time in output
23:35 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
23:36 -!- dchest [~dchest@95.155.52.241] has quit [Quit: dchest]
23:40 -!- twolfe18 [~twolfe18@CMU-421570.WV.CC.CMU.EDU] has quit [Ping timeout:
240 seconds]
23:41 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Remote host closed the
connection]
23:50 -!- lmoura [~lauromour@186.212.117.110] has quit [Quit: Leaving]
--- Log closed Sat Feb 12 00:00:05 2011