--- Log opened Fri Jun 25 00:00:13 2010
00:04 -!- rhelmer [~rhelmer@adsl-69-107-75-202.dsl.pltn13.pacbell.net] has quit
[Ping timeout: 264 seconds]
00:05 -!- stanlly [~user@redhat/stanlly] has left #go-nuts ["puff"]
00:05 -!- rhelmer [~rhelmer@adsl-69-107-67-110.dsl.pltn13.pacbell.net] has joined
#go-nuts
00:05 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
00:06 -!- artefon [~thiago@189.107.213.158] has joined #go-nuts
00:12 -!- gpolo [~gpolo@189.58.44.99.dynamic.adsl.gvt.net.br] has joined #go-nuts
00:13 -!- photron [~photron@port-92-201-171-41.dynamic.qsc.de] has quit [Ping
timeout: 240 seconds]
00:13 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit
[Remote host closed the connection]
00:13 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined
#go-nuts
00:14 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
00:17 -!- ikke [~ikke@unaffiliated/ikkebr] has quit [Ping timeout: 240 seconds]
00:17 -!- ikke [~ikke@unaffiliated/ikkebr] has joined #go-nuts
00:22 -!- kanru [~kanru@118-168-235-167.dynamic.hinet.net] has joined #go-nuts
00:24 -!- danderson [~dave@atlas.natulte.net] has joined #go-nuts
00:24 -!- mode/#go-nuts [+v danderson] by ChanServ
00:26 <+danderson> so, is git://github.com/boggle/gonewrong.git supposed to
build with the latest release of go?
00:27 <+danderson> getting started again after a long pause, and I'm getting
errors about semicolons.  I thought they were gone?
00:29 -!- Altercato [~Altercati@ogygia.ethanschoonover.com] has joined #go-nuts
00:30 -!- bartbes_ [~bartbes@uapps.org] has joined #go-nuts
00:30 -!- homa_ran1 [~erice@HATESHELL.MIT.EDU] has joined #go-nuts
00:30 -!- Davidian2024 [~Davidian1@cpe-98-27-192-193.neo.res.rr.com] has joined
#go-nuts
00:31 -!- nimmen_ [~blunt@62.82.37.114] has joined #go-nuts
00:31 -!- thomas_b_ [~thomasb@cm-84.215.37.40.getinternet.no] has joined #go-nuts
00:31 -!- Netsplit *.net <-> *.split quits: homa_rano, tux21b, grncdr,
bartbes, nsf, Dr_Who, nimmen, thomas_b, Altercation, kjk, (+4 more, use /NETSPLIT
to show all of them)
00:31 -!- grncdr__ [~stephen@sdo.csc.UVic.CA] has joined #go-nuts
00:31 -!- Netsplit over, joins: viirya
00:33 -!- ikke [~ikke@unaffiliated/ikkebr] has quit [Ping timeout: 260 seconds]
00:34 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Ping
timeout: 240 seconds]
00:35 -!- kjk [~Adium@67.215.69.69] has joined #go-nuts
00:35 -!- ikke [~ikke@187.53.200.202] has joined #go-nuts
00:35 -!- ikke [~ikke@187.53.200.202] has quit [Changing host]
00:35 -!- ikke [~ikke@unaffiliated/ikkebr] has joined #go-nuts
00:36 -!- bundacia [~tlittle@pool-96-233-232-234.rlghnc.dsl-w.verizon.net] has
joined #go-nuts
00:40 -!- cco3-hampster [~conleyo@nat/google/x-whyjulnehrrdxoyz] has joined
#go-nuts
00:40 -!- kanru [~kanru@118-168-235-167.dynamic.hinet.net] has quit [Ping timeout:
260 seconds]
00:41 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
00:41 -!- tux21b [~christoph@90.146.60.30] has joined #go-nuts
00:43 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
00:44 < skelterjohn> danderson: i didn't see anything with a scan - what
line doesn't compile?
00:45 <+danderson> skelterjohn: lines 20 and 21 need a semicolon
00:45 <+danderson> same for l37
00:46 <+danderson> I'm actually still trying to decide if my go install is
just borked
00:47 -!- Netsplit *.net <-> *.split quits: gpolo, homa_ran1, emmanuel_oga,
Wiz126, bundacia, araujo, tav, scm, eikenberry, artefon, (+2 more, use /NETSPLIT
to show all of them)
00:48 -!- Netsplit over, joins: homa_ran1, gpolo, artefon, Wiz126, araujo,
Guest26221, smw, tav, scm, emmanuel_oga (+1 more)
00:50 -!- KinOfCain [~KinOfCain@rrcs-64-183-61-2.west.biz.rr.com] has quit [Ping
timeout: 240 seconds]
00:51 <+danderson> gaaah
00:51 -!- mikespook [~mikespook@219.137.234.178] has joined #go-nuts
00:51 <+danderson> skelterjohn: forget it, I was using a random 6c installed
by the OS package manager
00:51 <+danderson> which is probably two million years old
00:52 -!- rhelmer [~rhelmer@adsl-69-107-67-110.dsl.pltn13.pacbell.net] has quit
[Quit: rhelmer]
00:52 < skelterjohn> ok :)
00:52 <+danderson> hah, even better, it's a neolithic installation of the
toolchain from last september
00:52 <+danderson> that I completely forgot about but somehow is still in my
path
00:55 -!- welterde [~welterde@not.welterde.de] has joined #go-nuts
01:01 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout:
620 seconds]
01:09 -!- perdiy [~perdix@sxemacs/devel/perdix] has joined #go-nuts
01:09 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
01:10 -!- perdix [~perdix@sxemacs/devel/perdix] has quit [Ping timeout: 245
seconds]
01:11 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
01:15 -!- rhelmer [~rhelmer@adsl-69-107-67-110.dsl.pltn13.pacbell.net] has joined
#go-nuts
01:18 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
01:21 <+danderson> yay, near-win
01:21 <+danderson> so the zeromq bindings no longer build with the latest
zeromq :)
01:23 <+danderson> more stuff to fiddle with tomorrow, after sleep.
01:33 < gpolo> uriel: I believe I have now fixed that issue about languages
that influenced Go, the updated version is available at
http://www.slideshare.net/secret/bbFf6mQx6p5E02 if you want to read it some time
(I can't update an uploaded file in google docs).  The problem you pointed about
Lua is stil pending.
01:39 -!- Dr_Who [~tgall@gentoo/developer/dr-who] has joined #go-nuts
01:44 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
01:47 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
01:47 -!- rhelmer [~rhelmer@adsl-69-107-67-110.dsl.pltn13.pacbell.net] has quit
[Ping timeout: 240 seconds]
01:48 -!- nettok [~quassel@200.119.191.224] has quit [Quit: No Ping reply in 180
seconds.]
01:48 -!- nettok [~quassel@200.119.191.224] has joined #go-nuts
01:48 -!- nettok [~quassel@200.119.191.224] has quit [Remote host closed the
connection]
01:52 -!- rhelmer [~rhelmer@adsl-69-107-76-224.dsl.pltn13.pacbell.net] has joined
#go-nuts
01:55 -!- gpolo_ [~gpolo@189.58.44.99.dynamic.adsl.gvt.net.br] has joined #go-nuts
01:55 -!- gpolo [~gpolo@189.58.44.99.dynamic.adsl.gvt.net.br] has quit [Read
error: Connection reset by peer]
01:58 -!- brx [brx@erxz.com] has left #go-nuts []
01:58 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has joined
#go-nuts
02:03 < uriel> gpolo: sorry, but wont be able to look at the rest of the
presentation for a while, but will certainly do it in the next few days
02:04 < gpolo> uriel: sure, that is fine.  thanks for taking a initial look
on it
02:06 -!- rhelmer [~rhelmer@adsl-69-107-76-224.dsl.pltn13.pacbell.net] has quit
[Quit: rhelmer]
02:36 -!- nettok [~quassel@200.119.191.224] has joined #go-nuts
02:37 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit
[Quit: Leaving...]
02:37 -!- gpolo [~gpolo@189.58.44.99.dynamic.adsl.gvt.net.br] has quit [Read
error: Connection reset by peer]
02:37 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined
#go-nuts
02:42 -!- iLeNsTR [~quassel@unaffiliated/lenstr] has quit [Read error: Connection
reset by peer]
02:43 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has quit [Quit: LeNsTR]
02:44 -!- LeNsTR [~quassel@unaffiliated/lenstr] has joined #go-nuts
02:46 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Disconnected by
services]
02:46 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
02:54 -!- LeNsTR [~quassel@unaffiliated/lenstr] has quit [Remote host closed the
connection]
03:01 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 260 seconds]
03:02 -!- artefon [~thiago@189.107.213.158] has quit [Ping timeout: 265 seconds]
03:18 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat
0.3.2]
03:21 -!- LeNsTR [~quassel@unaffiliated/lenstr] has joined #go-nuts
03:22 -!- LeNsTR [~quassel@unaffiliated/lenstr] has quit [Read error: Connection
reset by peer]
03:23 -!- LeNsTR [~quassel@unaffiliated/lenstr] has joined #go-nuts
03:23 -!- LeNsTR [~quassel@unaffiliated/lenstr] has quit [Remote host closed the
connection]
03:23 -!- LeNsTR [~quassel@unaffiliated/lenstr] has joined #go-nuts
03:26 -!- Chryson [~Chryson@c-71-61-11-114.hsd1.pa.comcast.net] has joined
#go-nuts
03:26 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
03:27 -!- ikkebr [~ikke@187.53.200.202] has joined #go-nuts
03:27 -!- ikkebr [~ikke@187.53.200.202] has quit [Changing host]
03:27 -!- ikkebr [~ikke@unaffiliated/ikkebr] has joined #go-nuts
03:30 -!- ikke [~ikke@unaffiliated/ikkebr] has quit [Ping timeout: 260 seconds]
03:32 -!- alc [~arx@114.245.254.215] has joined #go-nuts
03:34 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Ping timeout: 245
seconds]
03:35 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
03:50 -!- ikkebr [~ikke@unaffiliated/ikkebr] has quit []
03:59 -!- grncdr__ [~stephen@sdo.csc.UVic.CA] has left #go-nuts []
04:00 -!- grncdr [~stephen@sdo.csc.UVic.CA] has joined #go-nuts
04:04 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit
[Remote host closed the connection]
04:14 -!- jer [~jtregunna@unaffiliated/jer] has quit [Ping timeout: 245 seconds]
04:18 -!- rv2733 [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
04:24 -!- KinOfCain [~KinOfCain@cpe-76-170-26-1.socal.res.rr.com] has joined
#go-nuts
04:24 -!- KinOfCain [~KinOfCain@cpe-76-170-26-1.socal.res.rr.com] has quit [Remote
host closed the connection]
04:30 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 240
seconds]
04:33 -!- ExtraSpice [~ExtraSpic@78-62-86-161.static.zebra.lt] has joined #go-nuts
04:39 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
04:42 -!- LeNsTR [~quassel@unaffiliated/lenstr] has quit [Remote host closed the
connection]
04:46 -!- alc [~arx@114.245.254.215] has quit [Ping timeout: 264 seconds]
04:48 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts
04:49 < kmeyer> anyone have any example code for a simple tls server with
crypto/tls?
04:49 < kmeyer> e.g.  how do I create a tls.Certificate object?
04:59 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
05:00 -!- scm [justme@d018223.adsl.hansenet.de] has quit [Ping timeout: 265
seconds]
05:02 -!- scm [justme@d070230.adsl.hansenet.de] has joined #go-nuts
05:03 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 260 seconds]
05:06 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
05:11 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has quit [Quit: LeNsTR]
05:18 -!- adu [~ajr@pool-71-191-173-125.washdc.fios.verizon.net] has joined
#go-nuts
05:21 -!- iant [~iant@216.239.45.130] has joined #go-nuts
05:21 -!- mode/#go-nuts [+v iant] by ChanServ
05:22 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has
joined #go-nuts
05:23 -!- rv2733 [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
05:26 < nsf> runtime.chansend1(0xb19b6e40, panic: runtime error: SIGSEGV:
segmentation violation
05:26 < nsf> T_T
05:27 < nsf> any ideas why that might happen?
05:30 < nsf> stack traces are horrible
05:30 < nsf> :(
05:31 -!- adu [~ajr@pool-71-191-173-125.washdc.fios.verizon.net] has quit [Ping
timeout: 245 seconds]
05:32 < nsf> ah..  I think I know what's the problem
05:32 < nsf> or not :(
05:33 -!- monteslu [~monteslu@ip68-109-175-168.ph.ph.cox.net] has quit [Ping
timeout: 260 seconds]
05:33 -!- monteslu [~monteslu@ip68-109-175-168.ph.ph.cox.net] has joined #go-nuts
05:37 < nsf> safe language fail
05:37 < nsf> :(
05:39 -!- alc [~arx@114.245.253.202] has joined #go-nuts
05:39 -!- adu [~ajr@pool-71-191-173-125.washdc.fios.verizon.net] has joined
#go-nuts
05:42 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
05:42 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
05:43 -!- adu [~ajr@pool-71-191-173-125.washdc.fios.verizon.net] has quit [Client
Quit]
05:45 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 260 seconds]
05:49 -!- adu [~ajr@pool-71-191-173-125.washdc.fios.verizon.net] has joined
#go-nuts
05:50 < nsf> http://codepad.org/TpSxfpr0
05:50 < nsf> what does it even mean?
05:55 < jesusaurus> nsf can you post the relavent code from gomandel.go
05:56 < nsf> I think it's all relavent, I totally don't understand what is
wrong
05:56 < nsf> it's pretty simple
05:57 < nsf> a lot of goroutines drawing mandelbrot to a []byte then
returning it using buffered chan []byte
05:57 < nsf> main thread uploads everything to the opengl
05:57 < nsf> and draws :)
05:57 < jesusaurus> huh
05:58 < nsf> it's a Go bug or I guess Go-OpenGL bug
05:58 < nsf> or something else
05:58 < nsf> it just dies a lot with different errors
05:58 < nsf> "throw: malloc/free - deadlock"
05:58 < nsf> SEGSEGV, etc.
05:58 <+iant> sounds like there is memory corruption somewhere
05:58 < nsf> yes
05:58 < nsf> but how it is possible?  :)
05:59 < nsf> in Go :)
05:59 < nsf> it is supposed to be safe
05:59 < nsf> I use unsafe.Pointer only to upload data to a texture
05:59 <+iant> you're using cgo, so it's possible if you are passing some
value which the C++ code expects to be a pointer
05:59 <+iant> but the value is not really a pointer
05:59 <+iant> or it points to the wrong thing
05:59 <+iant> there is no real type safety in the cgo interface
06:00 < nsf> well if a texture data pointer points to a wrong chunk of
memory
06:00 < nsf> I'll see it
06:00 < nsf> on a screen
06:00 < nsf> but textures are ok
06:00 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
06:00 < nsf> after some random time it crashes for no reason :(
06:00 < nsf> the only thing I have in mind
06:00 < nsf> that OpenGL saves pointer and delays texture uploading
06:01 < nsf> but even things like gl.Flush doesn't solve the problem
06:01 < nsf> and the opengl should really copy the data (as far as I know)
06:03 < nsf> well, I can post all the code somewhere (620 lines) but it's a
bit messy
06:04 < nsf> http://gist.github.com/452493
06:06 < nsf> more likely it's SDL's fault or OpenGL's fault
06:06 < nsf> I mean the bindings
06:07 -!- alc [~arx@114.245.253.202] has quit [Ping timeout: 265 seconds]
06:15 < nsf> ok, I leave it then, I have no idea how to debug this
06:15 < nsf> stack trace is useless, debuggers do not work either
06:20 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
06:23 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 260 seconds]
06:25 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
06:25 < nsf> I think it's GL because it's actually not the first app where
it happens
06:25 < nsf> gotris sometimes (rarely) dies too
06:26 < nsf> but if you give it enough GOMAXPROCS it works fine
06:26 < nsf> but here I just have too much goroutines
06:26 < nsf> it's somehow connected with a bug
06:28 -!- snearch [~snearch@f053011249.adsl.alicedsl.de] has joined #go-nuts
06:29 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 276 seconds]
06:29 -!- snearch [~snearch@f053011249.adsl.alicedsl.de] has quit [Client Quit]
06:29 -!- snearch [~snearch@f053011249.adsl.alicedsl.de] has joined #go-nuts
06:33 -!- ender2070 [~ender2070@bas22-toronto12-2925103372.dsl.bell.ca] has joined
#go-nuts
07:05 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 245
seconds]
07:10 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de]
has joined #go-nuts
07:12 -!- snearch [~snearch@f053011249.adsl.alicedsl.de] has quit [Quit:
Verlassend]
07:20 -!- ikaros [~ikaros@f052122024.adsl.alicedsl.de] has joined #go-nuts
07:24 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
07:27 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Ping timeout: 245
seconds]
07:30 < MizardX> Hmm...  Is GOMAXPROCS read at compiletime, or runtime?
07:31 -!- mbarkhau [~koloss@dslb-084-059-163-201.pools.arcor-ip.net] has joined
#go-nuts
07:36 < jessta> MizardX: runtime
07:43 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 276
seconds]
07:49 < nsf> http://gist.github.com/452580 - um..  is it correct?
SDL_PollEvent expects pointer to a struct which has sizeof(SDL_Event) == 20
07:49 < nsf> but cgo thinks it has size 8
07:49 -!- lux` [~lux@151.71.215.184] has quit [Remote host closed the connection]
07:50 < nsf> I mean it can be the cause of a crash
07:51 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
07:56 < nsf> yep, I guess it is certainly a part of the bug
07:56 < nsf> cgo fail
07:59 < nsf> or not
07:59 < nsf> argh..
08:02 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
08:03 -!- alc [~arx@222.128.138.160] has joined #go-nuts
08:04 < nsf> but it has to be SDL, because commenting out e.Poll statement
solves the bug
08:15 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Ping timeout: 245
seconds]
08:16 -!- tvw [~tv@e176004091.adsl.alicedsl.de] has joined #go-nuts
08:21 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:21 -!- boscop [~boscop@f055156255.adsl.alicedsl.de] has quit [Ping timeout: 260
seconds]
08:23 -!- wrtp [~rog@92.17.63.193] has joined #go-nuts
08:25 -!- photron [~photron@port-92-201-101-123.dynamic.qsc.de] has joined
#go-nuts
08:33 -!- wrtp [~rog@92.17.63.193] has quit [Remote host closed the connection]
08:33 -!- wrtp [~rog@92.17.63.193] has joined #go-nuts
08:33 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
08:43 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
joined #go-nuts
08:59 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
09:11 -!- nettok [~quassel@200.119.191.224] has quit [Ping timeout: 260 seconds]
09:17 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 265
seconds]
09:27 -!- napsy [~luka@88.200.96.14] has joined #go-nuts
09:28 -!- alc [~arx@222.128.138.160] has quit [Remote host closed the connection]
09:32 -!- mikespook [~mikespook@219.137.234.178] has quit [Quit: Leaving.]
09:37 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
09:44 -!- adu [~ajr@pool-71-191-173-125.washdc.fios.verizon.net] has quit [Quit:
adu]
09:52 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Ping timeout: 245
seconds]
09:52 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Quit: (◣_◢)
BigBrowser is watching ⓎⓄⓊ]
09:57 -!- jb55 [~jb55@bas11-kitchener06-1176452138.dsl.bell.ca] has quit [Ping
timeout: 276 seconds]
09:59 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
10:10 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
10:50 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat
0.3.2]
10:54 -!- zcram [~zcram@133.193.159.217.dyn.estpak.ee] has joined #go-nuts
11:14 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
11:17 -!- visof_ [~visof@41.238.232.172] has joined #go-nuts
11:20 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 252 seconds]
11:24 -!- visof [~visof@41.238.232.172] has quit [Changing host]
11:24 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
11:24 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode]
11:26 -!- zcram [~zcram@133.193.159.217.dyn.estpak.ee] has quit [Quit: Leaving]
11:27 -!- tux21b [~christoph@90.146.60.30] has quit [Ping timeout: 240 seconds]
11:30 -!- Adys [~Adys@athedsl-343545.home.otenet.gr] has joined #go-nuts
11:30 -!- Adys [~Adys@athedsl-343545.home.otenet.gr] has quit [Changing host]
11:30 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
11:30 -!- redberry [~reddy@151.58.0.157] has joined #go-nuts
11:31 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Ping timeout: 248
seconds]
11:31 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
11:31 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts
11:48 -!- lux` [~lux@151.71.215.184] has joined #go-nuts
11:57 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving]
11:57 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
connection]
11:58 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
12:00 -!- napsy [~luka@88.200.96.14] has quit [Ping timeout: 240 seconds]
12:01 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has joined
#go-nuts
12:12 -!- rv2733 [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
12:13 -!- rv2733 [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Client Quit]
12:32 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
12:32 -!- gpolo [~gpolo@189.58.44.99.dynamic.adsl.gvt.net.br] has joined #go-nuts
12:35 -!- artefon [~thiago@189.107.175.7] has joined #go-nuts
12:39 -!- redberry [~reddy@151.58.0.157] has quit [Quit: Sto andando via]
12:39 -!- redberry [~reddy@151.58.0.157] has joined #go-nuts
12:53 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has joined #go-nuts
13:00 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
13:15 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
13:16 * nsf thinks that cgo has bugs, but can't prove it yet
13:18 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 248 seconds]
13:22 < i__> it definitely has
13:22 < nsf> i mean cgo runtime (part that calls cgo functions in go)
13:23 < nsf> not the cgo utility itself
13:23 < nsf> because it's easy to say that cgo utility does misbehave, it
produces readable output :)
13:24 < nsf> but I think something is wrong with the runtime
13:24 < i__> yup, i also suspect the runtime, the output looks fine
13:25 < i__> a couple months ago i was getting structure elements zeroed
when it reached the C code
13:25 < i__> but if i removed some prints, it would look fine
13:25 < nsf> I have a worse problem
13:25 < nsf> app corrupts stacks or something when I have cgo calls in
parallel with computation goroutines
13:26 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
13:26 < nsf> for example sdl.GL_SwapBuffers() (simple function call, no
arguments, no returns)
13:26 < nsf> when I add it, SIGSEGV sometimes
13:26 < nsf> when I remove it, everythink is ok
13:26 < nsf> everything*
13:27 < i__> how quick does it crash?
13:28 -!- gpolo [~gpolo@189.58.44.99.dynamic.adsl.gvt.net.br] has quit [Quit:
gpolo]
13:28 < nsf> that's the problem
13:28 < nsf> it is very unpredictable
13:28 < nsf> and because of that I have doubts
13:34 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 276 seconds]
13:39 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has
quit [Quit: Morten.  Desu~]
13:40 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
13:41 -!- pjm0616 [~user@61.250.113.98] has quit [Ping timeout: 240 seconds]
13:42 -!- pjm0616 [~user@61.250.113.98] has joined #go-nuts
13:46 < nsf> basically here is the picture:
13:46 < nsf> I have a loop that does a lot of computations using goroutines
13:46 < nsf> it's pure Go loop (e.g.  runtime.Cgocalls() is the same before
and after the loop)
13:46 < nsf> it works fine
13:46 < nsf> but!
13:47 < nsf> if I add some cgo calls inside that loop
13:47 < nsf> like even very simple ones: sdl.GL_SwapBuffers()
13:47 < nsf> and run that program 50 or so times
13:47 < nsf> almost certainly it crashes at least once
13:48 < nimmen> =]
13:48 < nimmen> maybe its kind of
http://blog.ksplice.com/2010/06/attack-of-the-cosmic-rays/
13:48 < nimmen> ?
13:49 < nsf> I don't think so
13:49 < jessta> or sdl is writing to some memory that it shouldn't
13:49 < nsf> jessta: sdl.GL_SwapBuffers() is a very simple function call
13:49 < nsf> as I said earlier
13:49 < nsf> it doesn't have any arguments nor return values
13:50 < nsf> I don't think that SDL itself has a bug
13:50 < bartbes> nsf: I thought drawing could only be done in the main
(initing) thread
13:50 < bartbes> that might be the problem
13:50 < nsf> bartbes: that loop I'm talking about is running in a separate
thread always (e.g.  runtime.LockOSThread())
13:51 < nsf> I'll try other cgo functions
13:51 < bartbes> and it is the same one that inits the screen?
13:51 < nsf> yes
13:51 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has quit [Ping
timeout: 265 seconds]
13:51 < nsf> I'm pretty aware of that behaviour
13:52 < nsf> you see that cgo function is not neccessary swapbuffers
13:52 < nsf> it might be SDL_PollEvents
13:52 < nsf> which has nothing to do with opengl
13:52 < nsf> and it still causes the crash
13:52 < nsf> I'll try some neutral function now, and see what happens
13:53 < nsf> afaik Go runtime has simple cgo functions too
13:53 < nsf> like Alloc and Free
13:55 -!- redberry [~reddy@151.58.0.157] has quit [Quit: redberry flies...and go
away....]
13:55 -!- perdix [~perdix@sxemacs/devel/perdix] has quit [Remote host closed the
connection]
13:56 -!- redberry [~reddy@151.58.0.157] has joined #go-nuts
13:56 < nsf> nope, they are not cgo
13:58 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
14:04 -!- napsy [~luka@88.200.96.14] has joined #go-nuts
14:04 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has joined #go-nuts
14:07 < nsf> now that's interesting
14:07 < nsf> it crashes when there are no cgo calls at all too
14:07 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 260 seconds]
14:07 < bartbes> so, is it cgo?
14:07 < nsf> but time.Sleep
14:07 -!- adu [~ajr@pool-71-191-173-125.washdc.fios.verizon.net] has joined
#go-nuts
14:07 < nsf> which calls entersyscall (cgo calls that too)
14:08 -!- artefon [~thiago@189.107.175.7] has quit [Ping timeout: 265 seconds]
14:08 < bartbes> well, that's a possibility as well
14:10 < nsf> I guess I'll try to strip out all SDL and OpenGL code and try
to make a simple example that crashes a lot
14:16 -!- perdix [~perdix@sxemacs/devel/perdix] has joined #go-nuts
14:18 -!- boscop [~boscop@f055156255.adsl.alicedsl.de] has joined #go-nuts
14:22 -!- perdix [~perdix@sxemacs/devel/perdix] has quit [Quit: A cow.  A
trampoline.  Together they fight crime!]
14:35 -!- pjm0616 [~user@61.250.113.98] has quit [Max SendQ exceeded]
14:35 -!- pjm0616 [~user@61.250.113.98] has joined #go-nuts
14:36 < nsf> progress: not it crashes with runtime.Cgocalls() == 0
14:36 < nsf> so, it's not cgo's fault
14:36 < nsf> or not just cgo
14:36 -!- boscop [~boscop@f055156255.adsl.alicedsl.de] has quit [Ping timeout: 265
seconds]
14:36 < nsf> s/not/now/
14:37 -!- boscop [~boscop@f055109220.adsl.alicedsl.de] has joined #go-nuts
14:37 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
14:41 < nsf> stripped down example to 288 lines, still a lot, but it's
getting interesting because import packages are: "runtime" and "time" (e.g.  no
unsafe, no cgo packages)
14:41 < nsf> obviously still crashes too
14:41 < nsf> definitely a bug
14:42 < nsf> crashes only with runtime.LockOSThread()
14:42 < nsf> without that works just fine
14:43 < nimmen> maybe os problem?
14:43 < nsf> what do you mean?
14:43 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-181-238.clienti.tiscali.it] has
joined #go-nuts
14:43 < nsf> it is possible of course that it is linux specific bug
14:44 < nsf> but I do use only those things that are supposed to be "safe"
in Go
14:44 < nsf> and still get: "panic: runtime error: invalid memory address or
nil pointer dereference"
14:44 < nimmen> well you could try same code on different os or kernel
14:44 < nsf> I don't have one
14:45 < nimmen> virtualization?
14:45 < jessta> nsf: pastebin the code?
14:45 < nsf> my CPU doesn't really support that and I'm lazy to install new
OS
14:45 < nsf> jessta: one sec
14:45 < nsf> http://gist.github.com/452949
14:46 < nsf> it crashes a lot on my PC
14:47 < nsf> like every 5th run
14:47 < nsf> or even more often
14:47 < vrtical> Hey guys, I'm just starting to learn about concurrency.
The simplest goroutine example (start some goroutines, fall off end of main())
seems to terminate immediately without the goroutines finishing.  What could be
going on?
14:47 < vrtical> (this is with an up-to-date 6g)
14:48 < napsy> the program probably finishes before the gorutine
14:49 < wrtp> vrtical: when you fall off the end of main, the entire program
finishes
14:49 < vrtical> okay, that simple huh.  Thank you.
14:50 < nsf> jessta: have you tried the code?  does it work fine?
14:50 < nsf> should print "0 0" if everything is ok
14:50 < wrtp> nsf: gist.github.com doesn't seem to exist
14:51 -!- amliao [~chatzilla@222.73.189.45] has joined #go-nuts
14:51 < nsf> :D
14:51 < nsf> http://codepad.org/UkdUm5P9
14:51 -!- rv2733 [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
14:51 < wrtp> it exists now
14:51 < wrtp> my bizarre connection, probably
14:52 < wrtp> nsf: i recognise some of the concepts going on there :-)
14:53 < nsf> yep :)
14:53 < nsf> well I've just started today writing tile-based renderer for my
OpenGL-based mandelbrot thing
14:53 < nsf> and found this horrible bug
14:53 < nsf> app just crashes a lot, can't continue
14:54 < jessta> nsf: I'm getting a error "mark - world not stopped"
14:54 < nsf> jessta: it's one of them
14:54 < nsf> I saw it too
14:54 < nsf> but there are others too sometimes
14:55 < nsf> removing runtime.LockOSThread() solves the problem
14:55 < nsf> GOMAXPROCS doesn't help
14:55 < nsf> but OpenGL requires thread locking since its context is tied
with a thread
14:55 < wrtp> that was what i was going to try first
14:55 < nsf> and I need to make sure that OpenGL runs only on a specific
thread
14:56 < nsf> but apparently something is wrong with LockOSThread and a lot
of goroutines
14:56 < wrtp> see if you can strip it down to a minimum size
14:57 < wrtp> then raise an issue...
14:57 < nsf> well it's pretty minimal now
14:57 < nsf> I'll try of course
14:57 < nsf> but current version is mostly computations and a simple manager
to handle them
14:58 < wrtp> yeah, so keep stripping out stuff until it starts working,
etc, etc...
14:58 < nsf> it works without runtime.LockOSThread() :)
14:59 < wrtp> BTW, if the LockOSThread is in a different goroutine, it works
ok
14:59 < napsy> hm
14:59 < nsf> interesting :)
14:59 < napsy> this sound like guessing
14:59 < wrtp> i'm sure that LockOSThread is the source of the bug
14:59 < wrtp> hardly anything uses it
14:59 < nsf> LockOSThread and entersyscall together :)
14:59 < nsf> (time.Sleep calls entersyscall)
14:59 < wrtp> yeah - experimental guessing is often a good way to find out
the nature of reality :-)
15:02 < nimmen> :D
15:02 < nsf> ok, I'm gonna go now for some team fortress 2 fun and will
continue this bug quest later, see you :)
15:02 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2]
15:10 -!- iant [~iant@nat/google/x-lmbhovecggdtwtlk] has joined #go-nuts
15:10 -!- mode/#go-nuts [+v iant] by ChanServ
15:10 < wrtp> most odd - removing the (redundant) running boolean causes it
to work ok
15:20 -!- iant [~iant@nat/google/x-lmbhovecggdtwtlk] has quit [Quit: Leaving.]
15:23 < wrtp> racy racy
15:28 -!- redberry [~reddy@151.58.0.157] has quit [Quit: redberry flies...and go
away....]
15:37 -!- adu [~ajr@pool-71-191-173-125.washdc.fios.verizon.net] has quit [Quit:
adu]
15:45 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 264 seconds]
15:51 -!- Chryson [~Chryson@c-71-61-11-114.hsd1.pa.comcast.net] has quit [Quit:
Leaving]
15:56 -!- gpolo [~gpolo@189.58.44.99.dynamic.adsl.gvt.net.br] has joined #go-nuts
16:05 -!- napsy [~luka@88.200.96.14] has quit [Ping timeout: 265 seconds]
16:09 -!- KinOfCain [~KinOfCain@rrcs-64-183-61-2.west.biz.rr.com] has joined
#go-nuts
16:11 -!- qIIp [~qIIp@d-70-177.MavNet.MNSU.EDU] has joined #go-nuts
16:13 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
16:17 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts
16:22 -!- pjm0616 [~user@61.250.113.98] has quit [Read error: Connection timed
out]
16:22 -!- pjm0616 [~user@61.250.113.98] has joined #go-nuts
16:24 -!- amliao [~chatzilla@222.73.189.45] has quit [Remote host closed the
connection]
16:27 -!- ender2070 [~ender2070@bas22-toronto12-2925103372.dsl.bell.ca] has quit
[Remote host closed the connection]
16:27 -!- willdye [~willdye@fern.dsndata.com] has left #go-nuts []
16:27 -!- qIIp [~qIIp@d-70-177.MavNet.MNSU.EDU] has quit [Quit: leaving]
16:31 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts
16:35 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has quit [Client Quit]
16:36 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
quit [Quit: leaving]
16:41 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:42 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
16:43 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
17:00 -!- amliao [~chatzilla@222.73.189.45] has joined #go-nuts
17:11 -!- rv2733 [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
17:19 -!- carrus85 [~carrus85@64.0.193.15] has joined #go-nuts
17:27 -!- gnuvince_ [~vince@72.0.215.102] has quit [Quit: What the fruit is goin'
on here!?]
17:29 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts
17:40 < Namegduf> Hmm, what happens if you try to write to a closed channel
again?
17:43 < exch> panic() ensues
17:44 < Namegduf> Hmm, okay, I'm going to need a more complex answer to
this, then.
17:45 < MizardX> Nothing happens.  http://ideone.com/Z9fAA
17:45 < MizardX> At least in that version
17:45 < Namegduf> I think I remembered that it could be unsafe, but randomly
work, so I'm going to take that with some caution.
17:46 < exch> use a closed() check to be sure
17:47 < Namegduf> Yeah.
17:47 < Namegduf> I have a fairly straightforward "goroutine handling input,
goroutine handling output" arrangement for client connections.
17:48 < Namegduf> They need to be able to "go away" when the client does,
but people can still have a copy.
17:48 < Namegduf> Is closed() actually safe?
17:49 < Namegduf> Because it doesn't return true immediately.
17:50 < Namegduf> It looks like things could still write to the closed
channel until it empties.
17:53 < exch> mm it's a bit sketchy.  As I see it, closed() only returns
true if the channel was close()'d and it is empty
17:53 < Namegduf> Yeah.
17:57 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Ping timeout: 276
seconds]
17:59 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2]
18:00 < Namegduf> I think if closing the channel counts as a synchronisation
event, I can do it.
18:00 < Namegduf> By setting a flag somewhere else before closing that they
can check.
18:17 -!- cenuij [~cenuij@78.112.253.165] has joined #go-nuts
18:17 -!- cenuij [~cenuij@78.112.253.165] has quit [Changing host]
18:17 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
18:18 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Quit: (◣_◢)
BigBrowser is watching ⓎⓄⓊ]
18:21 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
18:25 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
18:26 -!- mattikus [~mattikus@witty.mcs.anl.gov] has joined #go-nuts
18:27 -!- rlab_ [~Miranda@91.200.158.34] has joined #go-nuts
18:29 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 265 seconds]
18:29 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 265 seconds]
18:34 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de]
has quit [Quit: Shyde]
18:36 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has quit
[Ping timeout: 248 seconds]
18:36 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has joined
#go-nuts
18:53 -!- tvw [~tv@e176004091.adsl.alicedsl.de] has quit [Remote host closed the
connection]
19:00 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:08 -!- chaos95 [chaos95@mafianode.com] has quit [K-Lined]
19:08 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has quit [Quit: LeNsTR]
19:11 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has joined
#go-nuts
19:13 -!- LeNsTR [~quassel@unaffiliated/lenstr] has joined #go-nuts
19:14 -!- LeNsTR [~quassel@unaffiliated/lenstr] has quit [Remote host closed the
connection]
19:16 -!- rhelmer [~rhelmer@adsl-69-107-77-64.dsl.pltn13.pacbell.net] has joined
#go-nuts
19:16 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts
19:18 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Quit: Venom_X]
19:23 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
19:31 -!- surma [~surma@91-64-25-134-dynip.superkabel.de] has joined #go-nuts
19:31 -!- surma [~surma@91-64-25-134-dynip.superkabel.de] has left #go-nuts []
19:38 -!- lux` [~lux@151.71.215.184] has quit [Quit: Sto andando via]
19:51 -!- gpolo [~gpolo@189.58.44.99.dynamic.adsl.gvt.net.br] has quit [Quit:
gpolo]
19:51 -!- Venom_X [~pjacobs@71.21.124.111] has joined #go-nuts
20:00 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has quit [Ping timeout: 258
seconds]
20:02 -!- Kashia [~Kashia@port-92-200-30-74.dynamic.qsc.de] has joined #go-nuts
20:05 < wrtp> Namegduf: closed should only be called by the reader of the
channel.  close should only be called by the writer.
20:05 < wrtp> that way it's not sketchy
20:07 < wrtp> if you want a writer to go away, have it select on another
channel and write to that (or close it)
20:13 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-181-238.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
20:18 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has joined
#go-nuts
20:23 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:50b0:32:2809:f178] has joined
#go-nuts
20:24 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has
joined #go-nuts
20:36 -!- kjk [~Adium@67.215.69.69] has left #go-nuts []
20:40 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:50b0:32:2809:f178] has quit
[Quit: Leaving.]
20:42 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has quit [Remote host
closed the connection]
20:49 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
20:53 < Namegduf> wrtp: Having writers select is not practical, because
writers in this case can be "anything"
20:53 < Namegduf> Goroutines handling other users' input and thus blocking
on I/O rather than select...
20:54 -!- micrypt [~micrypt@94-195-127-212.zone9.bethere.co.uk] has joined
#go-nuts
20:55 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
20:55 < Namegduf> I guess I could have a central goroutine managing all user
I/O.  Won't improve speeds, though.
20:55 -!- Tiger_ [~chatzilla@222.73.189.45] has joined #go-nuts
20:55 -!- amliao [~chatzilla@222.73.189.45] has quit [Ping timeout: 240 seconds]
20:57 -!- artefon [~thiago@189.107.189.92] has joined #go-nuts
20:59 < Namegduf> It must be able to handle at least some writes when
closed, because there's no atomic way to check another channel for a message and
send only if there isn't one, meaning it's always possible for it to be closed
while you're writing/about to write.
21:06 < Soultaker> Namegduf: how do you figure?
21:07 < Soultaker> a send is "atomic" in the sense that it succeeds if the
channel isn't closed and fails if it doesn't.
21:08 -!- rhelmer_ [~rhelmer@adsl-69-107-73-8.dsl.pltn13.pacbell.net] has joined
#go-nuts
21:08 -!- rhelmer [~rhelmer@adsl-69-107-77-64.dsl.pltn13.pacbell.net] has quit
[Ping timeout: 260 seconds]
21:12 -!- tvw [~tv@e176004091.adsl.alicedsl.de] has joined #go-nuts
21:12 < Namegduf> Soultaker: Is that true?
21:13 < Namegduf> That doesn't seem to figure into what I said, at any rate.
21:13 < Soultaker> actually, I'm not 100% sure
21:13 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
21:14 < Namegduf> Which is simply that you can't reliably get a message to
tell you to stop sending before the close, because you can check for the message,
have the message arrive, then send.
21:14 < Soultaker> ah, probably true if you are using blocking writes.
21:14 < Soultaker> so then why not select?
21:15 < Namegduf> I have no idea what you mean.
21:16 -!- rhelmer_ [~rhelmer@adsl-69-107-73-8.dsl.pltn13.pacbell.net] has quit
[Ping timeout: 245 seconds]
21:16 < Soultaker> not sure if I'm making sense, but we're talking about a
scenario where a writer sends data into a first channel, and listens on a second
channel for a termination request?
21:16 < Namegduf> Right.
21:17 -!- rhelmer [~rhelmer@adsl-69-107-76-87.dsl.pltn13.pacbell.net] has joined
#go-nuts
21:17 < Soultaker> so you could do something like select { case ch1 <-
newData: case mustQuit <- ch2 } right?
21:18 < Namegduf> Hmm.  Close.
21:19 < Namegduf> I don't think there's any guarantee about which select
case will be picked if both are true.
21:19 < Soultaker> yes, I was about to mention that =)
21:19 < Soultaker> so maybe you want to check ch2 in the first case again as
well.  depends a bit on how expensive your writer is (does it matter if it
generates a couple of items before terminating?)
21:21 < Soultaker> I admit it's not a very pretty pattern.
21:22 < Soultaker> it would be nice if select supported a hierarchy of
events.
21:22 < Soultaker> s/events/cases/
21:22 < Namegduf> It'd be nice if writes to closed channels didn't kill
stuff.
21:23 < kmeyer> anyone familiar with profiling go code?
21:24 < Namegduf> I might need to make another goroutine "own" the existence
of others and manage both requests from others to them, and sending them a
shutdown message.
21:24 < Namegduf> And not let them kill themselves aside by sending their
own request to the other goroutine.
21:26 -!- LionMadeOfLions [~LionMadeO@70.114.156.242] has quit [Ping timeout: 276
seconds]
21:30 -!- mattikus_ [~mattikus@alcfwl133.alcf.anl.gov] has joined #go-nuts
21:31 -!- mattikus [~mattikus@witty.mcs.anl.gov] has quit [Ping timeout: 258
seconds]
21:32 -!- gpolo [~gpolo@189.58.44.99.dynamic.adsl.gvt.net.br] has joined #go-nuts
21:33 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
21:35 -!- TR2N [email@89.180.129.244] has joined #go-nuts
21:37 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has
quit [Quit: Morten.  Desu~]
21:40 -!- visof_ [~visof@41.238.235.135] has joined #go-nuts
21:41 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 264 seconds]
21:41 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
21:42 -!- rhelmer [~rhelmer@adsl-69-107-76-87.dsl.pltn13.pacbell.net] has quit
[Quit: rhelmer]
21:42 -!- rhelmer [~rhelmer@adsl-69-107-76-87.dsl.pltn13.pacbell.net] has joined
#go-nuts
22:01 -!- Kashia [~Kashia@port-92-200-30-74.dynamic.qsc.de] has quit [Quit: This
computer has gone to sleep]
22:02 -!- tvw [~tv@e176004091.adsl.alicedsl.de] has quit [Remote host closed the
connection]
22:07 -!- mattikus_ [~mattikus@alcfwl133.alcf.anl.gov] has quit [Quit: mattikus_]
22:15 -!- LionMadeOfLions [~LionMadeO@70.114.156.242] has joined #go-nuts
22:17 -!- mbarkhau [~koloss@dslb-084-059-163-201.pools.arcor-ip.net] has quit
[Quit: Leaving.]
22:27 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has joined
#go-nuts
22:27 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has quit
[Client Quit]
22:32 -!- LionMadeOfLions [~LionMadeO@70.114.156.242] has quit [Ping timeout: 240
seconds]
22:32 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined
#go-nuts
22:32 -!- Venom_X [~pjacobs@71.21.124.111] has quit [Quit: Venom_X]
22:34 -!- mattikus [~mattikus@alcfwl133.alcf.anl.gov] has joined #go-nuts
22:35 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has joined
#go-nuts
22:38 -!- rhelmer [~rhelmer@adsl-69-107-76-87.dsl.pltn13.pacbell.net] has quit
[Ping timeout: 240 seconds]
22:42 -!- gregc [~gregc@c-68-42-97-89.hsd1.mi.comcast.net] has joined #go-nuts
22:42 -!- gregc [~gregc@c-68-42-97-89.hsd1.mi.comcast.net] has quit [Client Quit]
22:43 -!- gregc [~gregc@c-68-42-97-89.hsd1.mi.comcast.net] has joined #go-nuts
22:43 -!- wrtp_ [~rog@92.17.63.193] has joined #go-nuts
22:46 -!- wrtp [~rog@92.17.63.193] has quit [Ping timeout: 265 seconds]
22:46 -!- LionMadeOfLions [~LionMadeO@70.114.156.242] has joined #go-nuts
22:47 < nsf> I've made a very simple example of yesterday's bug
22:49 < nsf> http://gist.github.com/453566
22:50 < nsf> very high chance of failure (I haven't seen a successful run
yet)
22:50 -!- wrtp [~rog@92.17.63.193] has quit [Ping timeout: 264 seconds]
22:54 -!- ikaros [~ikaros@f052122024.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
22:57 -!- mattikus [~mattikus@alcfwl133.alcf.anl.gov] has quit [Ping timeout: 248
seconds]
23:00 -!- Shyde [~Shyde^^@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de]
has joined #go-nuts
23:08 -!- rhelmer [~rhelmer@adsl-69-107-74-177.dsl.pltn13.pacbell.net] has joined
#go-nuts
23:11 -!- gpolo [~gpolo@189.58.44.99.dynamic.adsl.gvt.net.br] has quit [Quit:
gpolo]
23:12 -!- perdix [~perdix@sxemacs/devel/perdix] has joined #go-nuts
23:18 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
23:20 -!- jb55 [~jb55@bas11-kitchener06-1176452140.dsl.bell.ca] has joined
#go-nuts
23:21 -!- cog|away [~cogwheel@WoWUIDev/WoWProgramming/morlando/cogwheel] has
joined #go-nuts
23:24 -!- gregc [~gregc@c-68-42-97-89.hsd1.mi.comcast.net] has quit [Ping timeout:
240 seconds]
23:28 -!- visof_ [~visof@41.238.235.135] has quit [Remote host closed the
connection]
23:33 -!- rhelmer_ [~rhelmer@adsl-69-107-71-183.dsl.pltn13.pacbell.net] has joined
#go-nuts
23:33 -!- artefon [~thiago@189.107.189.92] has quit [Ping timeout: 265 seconds]
23:34 -!- gpolo [~gpolo@189.58.44.99.dynamic.adsl.gvt.net.br] has joined #go-nuts
23:34 -!- lux` [~lux@151.71.215.184] has joined #go-nuts
23:35 -!- rhelmer [~rhelmer@adsl-69-107-74-177.dsl.pltn13.pacbell.net] has quit
[Ping timeout: 276 seconds]
23:41 -!- rlab_ [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
23:52 -!- lux` [~lux@151.71.215.184] has quit [Remote host closed the connection]
23:55 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
--- Log closed Sat Jun 26 00:00:12 2010