--- Log opened Tue Jan 12 00:00:26 2010 --- Day changed Tue Jan 12 2010 00:00 -!- path[l] [i=UPP@120.138.102.34] has quit [] 00:04 -!- rhelmer [n=rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has quit [] 00:13 -!- crashR [n=crasher@codextreme.pck.nerim.net] has quit ["Leaving."] 00:15 -!- mnky [n=mcfyang@pool-151-202-73-122.ny325.east.verizon.net] has joined #go-nuts 00:19 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has quit [Read error: 110 (Connection timed out)] 00:20 -!- rhelmer [n=rhelmer@38.112.6.110] has joined #go-nuts 00:21 < plexdev> http://is.gd/65YWw by [Charles L. Dorian] in go/src/pkg/math/ -- math: special cases for Fmod 00:23 -!- xPixelDesignx_ [n=xpixelde@p5DC73F22.dip.t-dialin.net] has joined #go-nuts 00:24 -!- kota1111 [n=kota1111@gw2.kbmj.jp] has joined #go-nuts 00:24 -!- skelterjohn [n=jasmuth@c-76-116-179-93.hsd1.nj.comcast.net] has joined #go-nuts 00:29 -!- xPixelDesignx_ [n=xpixelde@p5DC73F22.dip.t-dialin.net] has quit [Client Quit] 00:29 -!- tyr42 [n=tyr_god_@CPE0022b0b261a1-CM0012254318f6.cpe.net.cable.rogers.com] has joined #go-nuts 00:30 -!- xPixelDesignx_ [n=xpixelde@p5DC73F22.dip.t-dialin.net] has joined #go-nuts 00:33 -!- xPixelDesignx_ [n=xpixelde@p5DC73F22.dip.t-dialin.net] has left #go-nuts [] 00:34 -!- mward [n=mward@242.sub-70-194-125.myvzw.com] has quit [Read error: 110 (Connection timed out)] 00:35 -!- xPixelDesignx_ [n=xpixelde@p5DC73F22.dip.t-dialin.net] has joined #go-nuts 00:36 -!- xPixelDesignx_ [n=xpixelde@p5DC73F22.dip.t-dialin.net] has left #go-nuts [] 00:37 < gnuvince> is there an easy way to read an int (I don't need error checking) from the keyboard? 00:40 < tyr42> I'm looking for the same thing, actually. 00:40 < vhold> For a console application? my $fresh_int = <STDIN>; 00:40 -!- GeoBSD [n=geobsd@lns-bzn-59-82-252-150-12.adsl.proxad.net] has quit [Remote closed the connection] 00:41 -!- kota1111 [n=kota1111@gw2.kbmj.jp] has left #go-nuts ["Leaving..."] 00:41 < vhold> perldoc -f int # if you want to force it to an int 00:41 -!- Claviceps [i=gambino@c-76-28-211-132.hsd1.wa.comcast.net] has quit [Read error: 110 (Connection timed out)] 00:45 < dagle> Hmmmm. Intressting blogentry about generics and go. 00:46 < jessta> vhold: huh? this isn't #perl 00:48 < tyr42> ya, I thought that looked too simple 00:49 -!- johan-s [n=johan@cm-84.215.111.48.getinternet.no] has joined #go-nuts 00:50 < dagle> Reading from /dev/stdin should work. 00:51 < tyr42> Do you have to use a buffer slice? 00:52 -!- iwikiwi [n=iwikiwi@202.3.77.160] has quit ["Computer has gone to sleep"] 00:52 < plexdev> http://is.gd/663DR by [Rob Pike] in go/src/cmd/prof/ -- add pprof output format to prof. 00:53 -!- skyyy [i=skyyy@129.21.116.238] has joined #go-nuts 00:54 -!- skyyy [i=skyyy@129.21.116.238] has quit [Client Quit] 00:54 -!- rhelmer [n=rhelmer@38.112.6.110] has quit [] 00:54 < dagle> tyr42: Buffer slice? Read wants a byte slice. 00:54 -!- caw [i=skyyy@129.21.116.238] has joined #go-nuts 00:55 < tyr42> as the buffer. Opps 00:55 < sebastiandeutsch> how do I replace a substring within a string? regex or LastIndex and slicing? 00:55 < tyr42> oops 00:55 < dagle> os.Stdin.Read(buffer) 00:56 -!- caw [i=skyyy@129.21.116.238] has quit [Client Quit] 00:56 < dagle> sebastiandeutsch: RepcaceAllString ? 00:56 < dagle> In regex. 00:56 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts 00:56 < sebastiandeutsch> dagle: so regex will be my choice. thx. 00:56 < tyr42> do I have to catch the error with it 00:57 < tyr42> like nr, er := f.Read(&buf); 00:57 < dagle> yes. 00:57 -!- mnky [n=mcfyang@pool-151-202-73-122.ny325.east.verizon.net] has quit ["Leaving."] 00:58 < dagle> if nr = 0 then eof or er = EOF 00:59 < dagle> so you could do nr, _ := f.Read(&buf); 01:00 < dagle> if you don't care about other errors. 01:00 < tyr42> for now at least 01:02 < reggna> Okej, just a quick question: Is there a good way to convert a []byte to a string? 01:02 < dagle> reggna: string([]byte) 01:03 < reggna> dagle: :D 01:03 < reggna> Why didn't I test that?... 01:03 -!- ashaw [n=alexis@58.108.161.163] has joined #go-nuts 01:04 -!- Ryan_ [n=ryan@cpe-98-27-182-138.neo.res.rr.com] has quit [Remote closed the connection] 01:04 < ashaw> I am in need of treating a double float as an integer. 01:05 < ashaw> I need only needed to access the high int32. 01:06 < skelterjohn> package unsafe might have what you need 01:06 -!- Ryan_ [n=ryan@cpe-98-27-182-138.neo.res.rr.com] has joined #go-nuts 01:07 -!- caw [i=skyyy@phonzdesktop.rh.rit.edu] has joined #go-nuts 01:07 < tyr42> How about turning a string into a float. Whenever I try atof, I get a segfault 01:09 < tyr42> All I'm trying is 01:09 < tyr42> str := "6.345"; 01:09 < tyr42> num, _ := strconv.Atof(str); 01:09 < tyr42> fmt.Fprintf(os.Stdout, "The number is: %d", num) 01:10 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 01:11 < skelterjohn> %d isn't a float 01:11 < skelterjohn> use %f for floar 01:11 < skelterjohn> the segfault probably happens on the type assertion 01:13 < tyr42> oh 01:13 < ashaw> is there no more elegant way? 01:13 < ashaw> I am looking at the following C code, and am trying to convert it to go. 01:14 < ashaw> #define Mul12Cond(rh, rl, a, b) \ 01:14 < ashaw> {\ 01:14 < ashaw> const double two_em53 = 1.1102230246251565404e-16; /* 0x3CA00000, 0x00000000 */\ 01:14 < ashaw> const double two_e53 = 9007199254740992.; /* 0x43400000, 0x00000000 */\ 01:14 < ashaw> double u, v; \ 01:14 < ashaw> db_number _a=a, _b=b; \ 01:14 < ashaw> \ 01:14 < ashaw> if (_a.i[HI]>0x7C900000) u = _a*two_em53; \ 01:14 < ashaw> else u = _a; \ 01:14 < ashaw> if (_b.i[HI]>0x7C900000) v = _b*two_em53; \ 01:14 < ashaw> else v = _b; \ 01:14 < ashaw> \ 01:14 < ashaw> Mul12(rh, rl, u, v); \ 01:14 < ashaw> \ 01:14 < ashaw> if (_a.i[HI]>0x7C900000) {*rh *= two_e53; *rl *= two_e53;} \ 01:14 < ashaw> if (_b.i[HI]>0x7C900000) {*rh *= two_e53; *rl *= two_e53;} \ 01:14 < ashaw> } 01:14 < ashaw> I know that the operation is only checking if the double is larger than a set number. 01:16 < ashaw> Can anyone help me 01:16 < dagle> ashaw: Please you a pastebin next time. 01:17 < ashaw> oh i 'm sorry, which one should i use. 01:17 < dagle> ashaw: http://gopaste.org/ 01:18 < KirkMcDonald> Oh yeah, that reminds me. 01:18 < KirkMcDonald> Go support was enabled on paste.pocoo.org, too. 01:18 -!- Ryan_ [n=ryan@cpe-98-27-182-138.neo.res.rr.com] has quit ["crashed"] 01:19 < ashaw> http://paste.pocoo.org/show/164523/ 01:19 -!- ikke [n=ikke@unaffiliated/ikkebr] has quit [] 01:19 < ashaw> can anyone help me? 01:20 -!- Ryan [n=ryan@cpe-98-27-182-138.neo.res.rr.com] has joined #go-nuts 01:20 < dagle> ashaw: I have no idea what the variables are in that macro. 01:21 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit [] 01:21 -!- rhelmer [n=rhelmer@c-71-202-117-54.hsd1.ca.comcast.net] has joined #go-nuts 01:23 < ashaw> in the if statement we are checking if the exponent is greater than 970, if it is the variables a and b are scaled such that they are not 01:28 -!- scarabx [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 01:30 -!- iwikiwi [n=iwikiwi@202.3.77.160] has quit ["I ascend to reality!"] 01:38 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has joined #go-nuts 01:39 < plexdev> http://is.gd/66aV0 by [Rob Pike] in go/src/cmd/prof/ -- delete debugging prints 01:39 < plexdev> http://is.gd/66aV7 by [Rob Pike] in go/src/cmd/prof/ -- delete debugging prints 01:42 -!- rhelmer [n=rhelmer@c-71-202-117-54.hsd1.ca.comcast.net] has quit [] 01:43 -!- triplez [n=triplez@bb116-14-28-100.singnet.com.sg] has joined #go-nuts 01:44 -!- araujo [n=araujo@gentoo/developer/araujo] has joined #go-nuts 01:45 < ashaw> nobody? 01:45 < fgb> "Go has interfaces, but not inheritance. Does anyone know of UI 01:45 < fgb> toolkits designed around composition, rather than inheritance?" 01:46 -!- q[mrw] [n=russd@willers.employees.org] has quit ["Leaving"] 01:48 < fgb> #go-nuts is fun to read 01:49 < fgb> damn, I meant the mailing list. hah 01:50 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has quit ["( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )"] 01:51 -!- bunz [n=bunz@unaffiliated/bunz] has joined #go-nuts 01:52 -!- b00m_chef [n=watr@d64-180-45-230.bchsia.telus.net] has quit [Read error: 110 (Connection timed out)] 01:57 -!- ashaw [n=alexis@58.108.161.163] has quit ["Leaving"] 02:00 < nf> it is fun 02:01 < nf> it can be a bit challenging at times 02:04 -!- Venom_X [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has quit [] 02:05 -!- skelterjohn [n=jasmuth@c-76-116-179-93.hsd1.nj.comcast.net] has quit [] 02:05 -!- skelterjohn [n=jasmuth@c-76-116-179-93.hsd1.nj.comcast.net] has joined #go-nuts 02:09 < fgb> and I still don't get why they call callback listeners 02:09 < fgb> *callbacks 02:15 < nf> fgb: who does? 02:17 < fgb> most gui toolkits 02:17 < fgb> widget.addListener("button1", "onclick", listener); 02:17 < fgb> that's what someone posted in the mailing list 02:20 -!- carllerche [n=carllerc@enginey-9.border1.sfo002.pnap.net] has quit [] 02:23 -!- Ryan [n=ryan@cpe-98-27-182-138.neo.res.rr.com] has quit [Nick collision from services.] 02:24 -!- mward [n=mward@c-67-167-112-122.hsd1.il.comcast.net] has joined #go-nuts 02:31 -!- skelterjohn [n=jasmuth@c-76-116-179-93.hsd1.nj.comcast.net] has quit [] 02:31 -!- pavelz [n=root@CPE000c32111133-CM00223a6aa629.cpe.net.cable.rogers.com] has joined #go-nuts 02:32 < nf> it's just nomenclature 02:32 < nf> it "listens" for an "event" 02:33 < happy_> will it be impossible for QT to ever work with go because it is written in C++? 02:43 -!- b00m_chef [n=watr@128.189.91.244] has joined #go-nuts 02:48 -!- nutate [n=rseymour@cacsag4.usc.edu] has quit [Connection timed out] 02:49 -!- jackman [n=jackman@75-169-148-56.slkc.qwest.net] has quit ["leaving"] 02:51 < absurdhero> happy_: no. bindings could be written 02:54 < happy_> absurdhero: ok, just wondering :-) 02:55 -!- jackman [n=jackman@75-169-148-56.slkc.qwest.net] has joined #go-nuts 02:56 < plexdev> http://is.gd/66nfp by [Adam Langley] in go/src/pkg/asn1/ -- asn1: fix parsing of elements after a string in a structure. 02:56 < plexdev> http://is.gd/66nfB by [Adam Langley] in go/src/pkg/asn1/ -- asn1: fix marshaling of structures with >1 elements. 03:02 -!- tyr42 [n=tyr_god_@CPE0022b0b261a1-CM0012254318f6.cpe.net.cable.rogers.com] has left #go-nuts [] 03:02 -!- sinuhe [n=user@kaptah.deevans.net] has joined #go-nuts 03:05 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 03:09 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has quit [Remote closed the connection] 03:10 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit [] 03:10 -!- p0g0 [n=pogo@unaffiliated/p0g0] has quit [Connection timed out] 03:13 -!- path[l] [i=UPP@120.138.102.34] has joined #go-nuts 03:18 -!- Wiz126 [i=Wiz126@72.20.225.20] has joined #go-nuts 03:19 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has quit ["WeeChat 0.3.0"] 03:45 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit [Read error: 104 (Connection reset by peer)] 03:46 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 03:47 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit [Success] 03:48 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 03:49 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit [Connection reset by peer] 03:50 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 03:54 -!- mward [n=mward@c-67-167-112-122.hsd1.il.comcast.net] has quit [] 04:03 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 04:14 -!- scm_ [i=justme@c209132.adsl.hansenet.de] has joined #go-nuts 04:27 -!- scm [i=justme@c209013.adsl.hansenet.de] has quit [Read error: 110 (Connection timed out)] 04:28 -!- broo [n=estabroo@97-116-179-177.mpls.qwest.net] has joined #go-nuts 04:28 < broo> hi all 04:30 < broo> anyone have an idea as to what was broken in the networking stuff? every tcp dial attempt now just results in network is unreachable, even the net and http tests have that error 04:32 -!- smooge [n=smooge@int.smoogespace.com] has quit [Read error: 60 (Operation timed out)] 04:49 -!- sinuhe [n=user@kaptah.deevans.net] has quit [Read error: 60 (Operation timed out)] 04:49 -!- pshahmumbai [n=prashant@59.164.24.241] has joined #go-nuts 04:49 -!- DerHorst [n=Horst@e176110139.adsl.alicedsl.de] has joined #go-nuts 04:55 -!- Wiz126 [i=Wiz126@72.20.225.20] has quit [Client Quit] 04:59 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts 05:00 -!- sinuhe [n=user@kaptah.deevans.net] has joined #go-nuts 05:05 -!- happy_ [n=stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit [Read error: 113 (No route to host)] 05:09 -!- scarabx [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit ["Leaving"] 05:09 -!- itrekkie [n=itrekkie@ip72-200-113-154.tc.ph.cox.net] has joined #go-nuts 05:15 -!- Wiz126 [i=Wiz126@72.20.225.20] has joined #go-nuts 05:17 -!- skelterjohn [n=jasmuth@c-76-116-179-93.hsd1.nj.comcast.net] has joined #go-nuts 05:17 -!- p0g0 [n=pogo@unaffiliated/p0g0] has joined #go-nuts 05:18 -!- scarabx [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 05:19 -!- dju [n=dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts 05:20 -!- Soak [n=Soak@mst45-1-82-231-239-194.fbx.proxad.net] has quit [] 05:20 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 110 (Connection timed out)] 05:26 -!- Olathe [n=Olathe@173-19-108-228.client.mchsi.com] has joined #go-nuts 05:27 -!- pshahmumbai [n=prashant@59.164.24.241] has quit [Read error: 110 (Connection timed out)] 05:28 < plexdev> http://is.gd/66JEm by [Charles L. Dorian] in go/src/pkg/math/ -- math: special cases for Ceil, Exp, Floor, Log, Log10 05:31 -!- path[l] [i=UPP@120.138.102.34] has quit [] 05:31 -!- b00m_chef [n=watr@128.189.91.244] has quit [Read error: 110 (Connection timed out)] 05:31 -!- Ortzinator [n=ortzinat@unaffiliated/ortzinator] has quit [Read error: 54 (Connection reset by peer)] 05:32 -!- DerHorst [n=Horst@e176110139.adsl.alicedsl.de] has quit ["Verlassend"] 05:34 -!- gnuvince [n=vince@ip-250.45.99.216.dsl-cust.ca.inter.net] has quit ["What the fruit is goin' on here!?"] 05:37 -!- Ortzinator [n=ortzinat@unaffiliated/ortzinator] has joined #go-nuts 05:38 -!- drastic [n=drastic@61.69.1.150] has joined #go-nuts 05:40 -!- arquebus [n=sdf@201.139.156.133.cable.dyn.cableonline.com.mx] has joined #go-nuts 05:44 -!- skelterjohn [n=jasmuth@c-76-116-179-93.hsd1.nj.comcast.net] has quit [] 05:45 -!- travalas_ [n=travalas@210.4.67.126] has quit [Remote closed the connection] 05:45 < drastic> When I try to install Go, I get a bunch of "make[1]: execvp: pwd: Too many levels of symbolic links" messages during compilation and then eventually get an error like: "gcc: /_exits.c: No such file or directory" when it starts making lib9. Anyone seen this before? 05:46 -!- scarabx [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit ["This computer has gone to sleep"] 05:49 -!- arquebus [n=sdf@201.139.156.133.cable.dyn.cableonline.com.mx] has left #go-nuts [] 05:59 -!- Olathe [n=Olathe@173-19-108-228.client.mchsi.com] has quit [Read error: 110 (Connection timed out)] 06:07 -!- itrekkie [n=itrekkie@ip72-200-113-154.tc.ph.cox.net] has quit [] 06:09 -!- sinuhe [n=user@kaptah.deevans.net] has quit ["ERC Version 5.2 (IRC client for Emacs)"] 06:19 -!- drastic [n=drastic@61.69.1.150] has left #go-nuts [] 06:20 -!- path[l] [n=path@122.182.0.38] has joined #go-nuts 06:21 -!- werdan7 [n=w7@freenode/staff/wikimedia.werdan7] has quit [SendQ exceeded] 06:27 -!- tomestla [n=tom@AToulouse-151-1-43-184.w83-203.abo.wanadoo.fr] has joined #go-nuts 06:42 -!- trevor [n=trevor@adsl-70-142-37-108.dsl.tul2ok.sbcglobal.net] has joined #go-nuts 06:46 -!- goplexian [n=user@d154-20-0-9.bchsia.telus.net] has joined #go-nuts 06:46 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 06:51 -!- werdan7 [n=w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts 07:00 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 07:02 < trevor> Is there a function that is called on an object when the garbage collector collects it? 07:12 -!- tomestla [n=tom@AToulouse-151-1-43-184.w83-203.abo.wanadoo.fr] has quit [Read error: 60 (Operation timed out)] 07:13 -!- syd_ [n=sydcogs@118.127.19.220] has joined #go-nuts 07:13 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit [Read error: 104 (Connection reset by peer)] 07:14 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 07:16 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit [Read error: 104 (Connection reset by peer)] 07:16 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 07:17 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Read error: 110 (Connection timed out)] 07:19 -!- goplexian [n=user@d154-20-0-9.bchsia.telus.net] has left #go-nuts ["ERC Version 5.3 (IRC client for Emacs)"] 07:21 < path[l]> why would you need that? out of curiosity 07:22 < trevor> I'm wrapping a C library using cgo 07:23 < trevor> NewX allocates memory 07:23 < trevor> func (x *X) finalize() would free that memory 07:23 < trevor> Finalize being the function the garbage collector calls 07:26 -!- fgb [n=fgb@190.246.85.45] has quit [Read error: 54 (Connection reset by peer)] 07:28 -!- idea_squirrel [i=ct2rips@77-21-26-167-dynip.superkabel.de] has joined #go-nuts 07:38 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit [Read error: 104 (Connection reset by peer)] 07:38 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 07:54 -!- mertimor [n=meowtime@vpn-ce242028.extern.uni-duisburg-essen.de] has joined #go-nuts 07:55 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit [Read error: 104 (Connection reset by peer)] 07:55 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 07:55 -!- ShadowIce [n=pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 07:56 -!- johan-s [n=johan@cm-84.215.111.48.getinternet.no] has quit [Read error: 110 (Connection timed out)] 08:00 -!- mertimor [n=meowtime@vpn-ce242028.extern.uni-duisburg-essen.de] has quit [Remote closed the connection] 08:06 < anticw> trevor: not yet 08:07 -!- johan-s [n=johan@106.80-203-21.nextgentel.com] has joined #go-nuts 08:15 -!- Netsplit kubrick.freenode.net <-> irc.freenode.net quits: scoeri, broo, triplez, [k2], bunz, Method, mjburgess, pjm0616, keesj_, rrr, (+40 more, use /NETSPLIT to show all of them) 08:17 -!- Netsplit over, joins: rndbot, johan-s, General13372, r2p2, Wiz126, broo, scm, bunz, triplez, absurdhero (+39 more) 08:19 -!- stalled [n=411@unaffiliated/stalled] has quit [Excess Flood] 08:20 -!- stalled [n=411@unaffiliated/stalled] has joined #go-nuts 08:20 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 08:21 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit [Read error: 104 (Connection reset by peer)] 08:25 -!- trickie [n=trickie@94.100.112.225] has joined #go-nuts 08:31 -!- trickie_ [n=trickie@94.100.112.225] has joined #go-nuts 08:37 -!- gnibbler [n=duckman@203-217-90-83.dyn.iinet.net.au] has joined #go-nuts 08:47 -!- trickie [n=trickie@94.100.112.225] has quit [Read error: 110 (Connection timed out)] 08:47 -!- gnibbler_ [n=duckman@124-168-39-213.dyn.iinet.net.au] has quit [Read error: 101 (Network is unreachable)] 08:50 -!- trevor [n=trevor@adsl-70-142-37-108.dsl.tul2ok.sbcglobal.net] has quit [] 08:53 -!- p0g0_ [n=pogo@unaffiliated/p0g0] has joined #go-nuts 08:56 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has quit [Read error: 104 (Connection reset by peer)] 08:56 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 08:57 -!- p0g0 [n=pogo@unaffiliated/p0g0] has quit [Read error: 110 (Connection timed out)] 09:00 -!- murodese [n=James@124-169-189-68.dyn.iinet.net.au] has joined #go-nuts 09:02 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has joined #go-nuts 09:09 -!- murodes1 [n=James@124-169-189-68.dyn.iinet.net.au] has quit [Read error: 110 (Connection timed out)] 09:10 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 09:11 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has quit [Read error: 54 (Connection reset by peer)] 09:12 -!- bortzmeyer [n=bortzmey@batilda.nic.fr] has joined #go-nuts 09:14 -!- nchaimov [n=cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined #go-nuts 09:16 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts 09:26 -!- trevor [n=trevor@adsl-70-142-37-108.dsl.tul2ok.sbcglobal.net] has joined #go-nuts 09:35 -!- crashR [n=crasher@codextreme.pck.nerim.net] has joined #go-nuts 09:38 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has quit [Read error: 110 (Connection timed out)] 09:50 -!- triplez [n=triplez@bb116-14-28-100.singnet.com.sg] has quit [] 09:54 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [Read error: 104 (Connection reset by peer)] 09:54 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 09:55 -!- Alkavan [n=alkavan@87.68.78.13.cable.012.net.il] has joined #go-nuts 09:55 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 09:56 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [Connection reset by peer] 09:56 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 09:58 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [SendQ exceeded] 09:59 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 10:00 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [Read error: 104 (Connection reset by peer)] 10:00 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 10:01 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 10:02 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [Read error: 104 (Connection reset by peer)] 10:02 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 10:04 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [Read error: 104 (Connection reset by peer)] 10:04 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 10:05 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has joined #go-nuts 10:09 -!- Kashia [n=Kashia@port-92-200-123-193.dynamic.qsc.de] has quit ["This computer has gone to sleep"] 10:12 -!- GeoBSD [n=geobsd@lns-bzn-59-82-252-150-12.adsl.proxad.net] has joined #go-nuts 10:13 -!- sebastiandeuts-1 [n=sebastia@i577AD924.versanet.de] has joined #go-nuts 10:14 -!- rajeshsr [n=rajeshsr@59.92.58.156] has joined #go-nuts 10:19 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read error: 104 (Connection reset by peer)] 10:19 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 10:21 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 10:22 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 10:26 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts 10:26 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Remote closed the connection] 10:27 -!- JSharpe [n=jamie@5adaeab4.bb.sky.com] has joined #go-nuts 10:28 -!- sebastiandeutsch [n=sebastia@i577B99F7.versanet.de] has quit [Read error: 113 (No route to host)] 10:37 -!- Alkavan [n=alkavan@87.68.78.13.cable.012.net.il] has quit [Read error: 104 (Connection reset by peer)] 10:37 -!- Alkavan [n=alkavan@87.68.78.13.cable.012.net.il] has joined #go-nuts 10:38 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [Read error: 104 (Connection reset by peer)] 10:39 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 10:40 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [Read error: 104 (Connection reset by peer)] 10:40 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 10:42 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 10:43 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [Success] 10:43 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has quit [Read error: 104 (Connection reset by peer)] 10:44 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 10:46 -!- Alkavan_ [n=alkavan@87.68.78.13.cable.012.net.il] has joined #go-nuts 10:50 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts 10:52 -!- Alkavan [n=alkavan@87.68.78.13.cable.012.net.il] has quit [Read error: 60 (Operation timed out)] 10:54 -!- Alkavan_ [n=alkavan@87.68.78.13.cable.012.net.il] has quit [Read error: 104 (Connection reset by peer)] 10:55 -!- Alkavan_ [n=alkavan@87.68.78.13.cable.012.net.il] has joined #go-nuts 10:58 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Read error: 113 (No route to host)] 10:58 -!- [Pete_27] [n=noname@115-64-1-61.static.tpgi.com.au] has joined #go-nuts 11:02 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has quit ["WeeChat 0.3.0"] 11:05 -!- murodes1 [n=James@203-59-152-164.dyn.iinet.net.au] has joined #go-nuts 11:08 -!- icy [n=icy@lighttpd/icy] has quit [Read error: 104 (Connection reset by peer)] 11:09 -!- JSharpe [n=jamie@5adaeab4.bb.sky.com] has quit [Client Quit] 11:17 -!- murodese [n=James@124-169-189-68.dyn.iinet.net.au] has quit [Read error: 110 (Connection timed out)] 11:18 -!- trevor [n=trevor@adsl-70-142-37-108.dsl.tul2ok.sbcglobal.net] has quit [] 11:21 -!- johan-s [n=johan@106.80-203-21.nextgentel.com] has quit [Read error: 104 (Connection reset by peer)] 11:28 -!- johan-s [n=johan@106.80-203-21.nextgentel.com] has joined #go-nuts 11:31 -!- prip [n=_prip@host226-128-dynamic.36-79-r.retail.telecomitalia.it] has quit [Read error: 60 (Operation timed out)] 11:32 -!- Alkavan_ [n=alkavan@87.68.78.13.cable.012.net.il] has quit ["Leaving"] 11:34 -!- mertimor [n=meowtime@vpn-ce242023.extern.uni-duisburg-essen.de] has joined #go-nuts 11:35 -!- mertimor [n=meowtime@vpn-ce242023.extern.uni-duisburg-essen.de] has quit [Client Quit] 11:36 -!- JSharpe [n=jamie@5adaeab4.bb.sky.com] has joined #go-nuts 11:45 -!- JSharpe [n=jamie@5adaeab4.bb.sky.com] has quit [Client Quit] 11:47 -!- prip [n=_prip@host226-128-dynamic.36-79-r.retail.telecomitalia.it] has joined #go-nuts 11:51 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has quit ["( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )"] 11:52 -!- sebastiandeuts-1 [n=sebastia@i577AD924.versanet.de] has quit [] 11:55 -!- p0g0_ [n=pogo@unaffiliated/p0g0] has quit [Remote closed the connection] 11:55 -!- cthom06 [n=kaitlyn_@wsip-70-169-149-118.hr.hr.cox.net] has joined #go-nuts 12:06 -!- idea_squirrel [i=ct2rips@77-21-26-167-dynip.superkabel.de] has quit [Read error: 60 (Operation timed out)] 12:07 -!- idea_squirrel [n=ct2rips@77-21-26-167-dynip.superkabel.de] has joined #go-nuts 12:10 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 12:13 -!- happy_ [n=stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined #go-nuts 12:16 -!- gnuvince [n=vince@ip-250.45.99.216.dsl-cust.ca.inter.net] has joined #go-nuts 12:16 -!- rajeshsr [n=rajeshsr@59.92.58.156] has quit [Read error: 110 (Connection timed out)] 12:19 -!- rajeshsr [n=rajeshsr@59.92.19.130] has joined #go-nuts 12:22 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts 12:25 -!- rajeshsr [n=rajeshsr@59.92.19.130] has quit [Read error: 60 (Operation timed out)] 12:26 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 12:27 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read error: 104 (Connection reset by peer)] 12:27 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 12:34 -!- Netsplit kubrick.freenode.net <-> irc.freenode.net quits: da4089 12:34 -!- Netsplit over, joins: da4089 12:37 -!- caw [i=skyyy@phonzdesktop.rh.rit.edu] has quit [Client Quit] 12:38 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [Read error: 104 (Connection reset by peer)] 12:38 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 12:40 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [Read error: 104 (Connection reset by peer)] 12:40 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 12:40 -!- mward [n=mward@87.sub-75-206-131.myvzw.com] has joined #go-nuts 12:41 -!- sebastiandeutsch [n=sebastia@mue-88-130-89-210.dsl.tropolys.de] has joined #go-nuts 12:42 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit [Remote closed the connection] 12:43 -!- gnuvince [n=vince@ip-250.45.99.216.dsl-cust.ca.inter.net] has quit [Read error: 113 (No route to host)] 12:44 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts 12:52 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has quit [Read error: 110 (Connection timed out)] 12:52 -!- Maxdamantus [n=Maxdam@203-97-238-106.cable.telstraclear.net] has quit [Read error: 104 (Connection reset by peer)] 12:52 -!- Maxdamantus [n=Maxdam@203-97-238-106.cable.telstraclear.net] has joined #go-nuts 13:02 -!- fgb [n=fgb@190.246.85.45] has joined #go-nuts 13:02 -!- mssm [n=mssmfs@ip-95-221-88-201.bb.netbynet.ru] has joined #go-nuts 13:05 -!- JohnDoe365 [n=JohnDoe3@193.171.58.27] has joined #go-nuts 13:05 -!- raichoo [n=raichoo@lain.dhcp.uni-bielefeld.de] has joined #go-nuts 13:15 -!- kanru [n=kanru@61-228-167-199.dynamic.hinet.net] has joined #go-nuts 13:17 -!- mertimor [n=mertimor@p578ED871.dip.t-dialin.net] has joined #go-nuts 13:20 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [Read error: 104 (Connection reset by peer)] 13:20 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has joined #go-nuts 13:23 -!- DerHorst [n=Horst@e176110139.adsl.alicedsl.de] has joined #go-nuts 13:32 -!- path[l] [n=path@122.182.0.38] has quit [] 13:36 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has joined #go-nuts 13:38 -!- mward_ [n=mward@chml01.drwholdings.com] has joined #go-nuts 13:39 -!- sebastiandeutsch [n=sebastia@mue-88-130-89-210.dsl.tropolys.de] has quit [] 13:42 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 13:43 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 13:44 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 13:44 -!- Amaranth__ [n=travis@97-114-236-151.sxcy.qwest.net] has quit [Read error: 54 (Connection reset by peer)] 13:47 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has quit [Read error: 104 (Connection reset by peer)] 13:47 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 13:48 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has quit [Read error: 104 (Connection reset by peer)] 13:48 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 13:48 -!- mward [n=mward@87.sub-75-206-131.myvzw.com] has quit [Read error: 110 (Connection timed out)] 13:49 -!- jdp [n=justin@75.97.120.11.res-cmts.senj.ptd.net] has joined #go-nuts 14:01 -!- jeng [n=chatzill@75.110.231.66] has joined #go-nuts 14:02 -!- JohnDoe365 [n=JohnDoe3@193.171.58.27] has left #go-nuts [] 14:05 -!- Wiz126 [i=Wiz126@72.20.225.20] has quit [Client Quit] 14:06 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 110 (Connection timed out)] 14:09 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has joined #go-nuts 14:13 -!- alc [n=alc@114.245.249.144] has joined #go-nuts 14:17 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts 14:17 -!- sudhirvkumar [n=sudhirku@122.164.29.253] has joined #go-nuts 14:24 -!- iant [n=iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read error: 113 (No route to host)] 14:29 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined #go-nuts 14:31 -!- vizzord [n=exn@195.49.206.202] has joined #go-nuts 14:35 -!- p4p4 [n=P4p4@24.121.113.82.net.de.o2.com] has joined #go-nuts 14:36 -!- sudhirvkumar [n=sudhirku@122.164.29.253] has quit [] 14:39 -!- raichoo [n=raichoo@lain.dhcp.uni-bielefeld.de] has quit ["Leaving."] 14:39 -!- LuitvD [n=luitvd@beigetower/luitvd] has joined #go-nuts 14:39 -!- sebastiandeutsch [n=sebastia@mue-88-130-89-210.dsl.tropolys.de] has joined #go-nuts 14:39 < LuitvD> hello! 14:40 < LuitvD> I'm having the weirdest trouble compiling Go, so I hoped someone here could help me fix it 14:41 < dho> can't help if you don't ask 14:41 < LuitvD> when I try to `make all` it fails while testing the Go packages, though at a different package every time I run it 14:41 < LuitvD> (was still typing/thinking :P took a while) 14:41 < dho> ah 14:41 < dho> how does it fail 14:42 < LuitvD> with a "Trace/breakpoint trap", it says 14:42 < LuitvD> after which Make calls it Error 133 14:44 < LuitvD> I'll pastebin it 14:45 < dho> that doesn't sound good. What OS/arch 14:45 < LuitvD> http://pastebin.com/d7a6e142d 14:45 < LuitvD> GOOS=linux GOARCH=386 14:45 < LuitvD> it's on a VPS 14:45 < dho> ah 14:45 < dho> Is it using Xen? 14:46 < LuitvD> (with only 265MB RAM, though it's swap is sufficient) 14:46 < LuitvD> I think it is... 14:46 < LuitvD> let me check 14:46 < LuitvD> yes, xen 14:46 < dho> Is there any chance you'd like to provide me or any of the people at Google to access to this machine? There are a couple bugs with Go under Xen and we're not sure if they're Go bugs or Xen bugs\ 14:47 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 14:47 < LuitvD> geez... err 14:47 < dho> Not a big deal if not 14:48 < dho> But in that case it's something you can just mark down as a `known issue' 14:49 < dho> Alternatively I can provide you with a patch 14:49 < dho> (maybe) 14:50 < LuitvD> hmmm... 14:51 < LuitvD> dunno if I'd want someone else 'messing' with my VPS 14:51 < LuitvD> I could try some stuff for you 14:52 < dho> yep, understood. like i said, i can try to provide you with a patch to fix the issue, but it's difficult to test 14:52 < LuitvD> try me :) 14:52 < LuitvD> why would that be difficult to test? 14:52 < LuitvD> difficult for you? :P 14:52 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts 14:53 < dho> because my low-level experience is FreeBSD and reading manpages online is a bit of a pain 14:53 < LuitvD> XD 14:53 < dho> http://code.google.com/p/go/issues/detail?id=386 is the issue anyway 14:53 < dho> I'll see if I can craft up something for you to use set_thread_area instead. 14:53 -!- p4p4_ [n=P4p4@24.121.113.82.net.de.o2.com] has joined #go-nuts 14:54 < LuitvD> my system seems comparable to the issuer's 14:54 < dho> yep 14:55 < dho> your issue looks the same to me. 14:55 < LuitvD> 64-bit hardware, 32-bit Debian Lenny 14:55 < LuitvD> does it? 14:55 < dho> to me, yes 14:55 < LuitvD> to me it doesn't, but that's because I don't know where the hell I should start reading 14:56 < dho> heh 14:56 < LuitvD> oh, wait, now I see it 14:57 < LuitvD> http://pastebin.com/d3b56477 14:57 -!- alc [n=alc@114.245.249.144] has quit [] 14:57 < LuitvD> that's another run of ./all.bash 14:57 < dho> yep, it's random 14:58 < LuitvD> how is that even possible? :P 14:58 < dho> I'm going to try to get the runtime to use set_thread_area for you 14:58 < dho> xen must have some bug or dislike it when you set the ldt in some ways 14:58 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit [] 14:58 < LuitvD> (seems even less likely than the problems my Motorola Milestone has...) 14:58 < dho> it's necessary for thread local storage 15:01 -!- skelterjohn [n=jasmuth@c-76-116-179-93.hsd1.nj.comcast.net] has joined #go-nuts 15:01 < dho> hm, maybe it is this simple 15:01 < skelterjohn> almost certainly. 15:02 < dho> LuitvD: http://www.gopaste.org/view/4Ymkl 15:02 < dho> try that 15:03 < dho> hm, no that probably won't 15:03 < dho> hold on 15:04 -!- p4p4 [n=P4p4@24.121.113.82.net.de.o2.com] has quit [Read error: 110 (Connection timed out)] 15:07 -!- LuitvD [n=luitvd@beigetower/luitvd] has quit [Read error: 60 (Operation timed out)] 15:07 < dho> Well it helps if he stays in here. 15:08 -!- iant [n=iant@67.218.110.236] has joined #go-nuts 15:09 -!- mode/#go-nuts [+v iant] by ChanServ 15:10 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read error: 110 (Connection timed out)] 15:10 -!- LuitvD [n=luitvd@82-170-227-44.ip.telfort.nl] has joined #go-nuts 15:10 < LuitvD> whoops 15:10 < LuitvD> network trouble 15:11 < dho> heh. 15:11 < LuitvD> it there a logger bot so I could read back? :P 15:11 < dho> LuitvD: http://www.gopaste.org/view/YdS1d 15:11 < dho> try that 15:11 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 15:11 < dho> I'm sure it doesn't work. 15:13 < LuitvD> it'll take a while 15:14 < dho> shouldn't. 15:14 < dho> just run gotest a bunch of times 15:14 < LuitvD> reconnecting to my server does take a moment 15:14 -!- iwikiwi [n=iwikiwi@202.3.77.160] has quit ["I ascend to reality!"] 15:14 < LuitvD> (when running Windows 7, that is) 15:15 < dho> all you need to recompile is src/pkg/runtime (just run make install there) and src/cmd/gotest (run make install there) and then take any random package (like src/pkg/asn1 for instance) and run make test there :) 15:15 * LuitvD hates his efficiency when running Win7 15:18 * LuitvD didn't use patch for a while 15:18 < LuitvD> help me out: is 'patch -p1 < YdS1d' correct while in $GOROOT? 15:19 < dho> yes that should do it. 15:19 < LuitvD> hm, 2 out of 2 hunks FAILED 15:19 < dho> hg identify 15:20 < LuitvD> f467eb7716c4 tip 15:20 < dho> weird. 15:20 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts 15:20 < dho> it's a small patch, you could just hand-aptch it 15:20 < dho> but we're at the same revision 15:20 < dho> so that's odd. 15:21 -!- iwikiwi [n=iwikiwi@202.3.77.160] has quit [Client Quit] 15:22 < LuitvD> p1 is the right patch level, isn't it? 15:22 < dho> yep 15:25 -!- kanru [n=kanru@61-228-167-199.dynamic.hinet.net] has quit ["WeeChat 0.3.0"] 15:28 -!- Metaphis [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 15:28 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read error: 54 (Connection reset by peer)] 15:31 -!- fgb1 [n=fgb@190.246.85.45] has joined #go-nuts 15:33 < LuitvD> hand-patched it 15:33 < dho> ok 15:33 < LuitvD> now what? 15:33 < LuitvD> full make? 15:33 < dho> i'll be surprised if this works 15:33 < dho> 10:18 < dho> all you need to recompile is src/pkg/runtime (just run make install there) and src/cmd/gotest (run make install there) and then take any random package (like src/pkg/asn1 for instance) and run make test there :) 15:34 < LuitvD> Segmentation fault this time 15:35 < dho> gdb gotest 15:35 < dho> run 15:35 < LuitvD> instead of the Trace/breakpoint trap 15:35 -!- Olathe [n=Olathe@173-19-108-228.client.mchsi.com] has joined #go-nuts 15:35 < dho> yeah that's because my patch doesn't work 15:36 < LuitvD> oh my, no gdb :O 15:36 < dho> that's going to make things difficult 15:36 < LuitvD> just a sec 15:36 < LuitvD> there it is 15:36 < LuitvD> "/home/luitvd/bin/gotest": not in executable format: File format not recognized 15:36 < LuitvD> ? 15:37 < LuitvD> does that mean trouble? 15:37 -!- fgb [n=fgb@190.246.85.45] has quit [Read error: 60 (Operation timed out)] 15:37 < dho> means the wrong gdb, most likely 15:37 < dho> or 15:37 < LuitvD> how is that even possible 15:37 < LuitvD> seems to be true though... 15:37 < dho> i forgot that gotest is a shell script 15:38 < LuitvD> uname -a shows a 2.6.26-2-xen-686 kernel and GDB is configured as i486-linux-gnu 15:38 < LuitvD> is that bad? 15:38 < dho> no 15:38 < LuitvD> kay :) 15:38 < LuitvD> then what? gdb sh gotest? 15:38 < dho> no 15:38 < dho> change the last line of gotestfrom $E ./$O.out "$@" to echo $E ./$O.out "$@" 15:39 < dho> figure out what it's running 15:40 < LuitvD> ./8.out 15:40 < LuitvD> that perhaps? 15:40 < dho> ok 15:41 < LuitvD> oh :) 15:41 < dho> so gdb ./8.out and run it 15:41 < LuitvD> didn't think I had the right line there 15:41 < LuitvD> no debugging symbols 15:41 < dho> right 15:41 < dho> that's why this is fun 15:41 < LuitvD> :) 15:41 < dho> run 15:41 < LuitvD> tho one warning there 15:42 < LuitvD> warning: Loadable segment ".interp" outside of ELF segments 15:42 < LuitvD> useful? 15:42 < dho> i'd ignore it 15:42 < dho> did it segfault? 15:43 < dho> (you need to type run as a command to gdb) 15:43 < LuitvD> XD 15:43 < LuitvD> Program received signal SIGSEGV, Segmentation fault. 15:43 < LuitvD> so yes 15:43 < LuitvD> 0x0808091c in ?? () 15:43 < dho> there should be more info about where it segfaulted. 15:43 < dho> ok 15:43 < LuitvD> :) 15:44 < dho> get out of gdb 15:44 < dho> (quit or ^D) 15:44 < LuitvD> and exit anyway? 15:44 < dho> yes 15:44 < LuitvD> kay, done 15:44 < dho> run objdump -d ./8.out | grep 808091c 15:45 < LuitvD> 8080918: 76 02 jbe 0x808091c 15:45 < LuitvD> 808091c: 8b 08 mov (%eax),%ecx 15:45 < LuitvD> guess the last one is what you're looking for... 15:45 < dho> oh good 15:45 < dho> at least the call to set_thread_area worked 15:45 < LuitvD> XD 15:46 < dho> oh 15:46 < dho> wow that's retarded 15:46 -!- Metaphis [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read error: 104 (Connection reset by peer)] 15:46 -!- b00m_chef [n=watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts 15:46 < LuitvD> what is? 15:46 -!- Metaphis [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 15:46 < dho> change the MOVL 0(AX), CX to MOVL 0(BX), CX 15:46 * LuitvD is doing that now, hold on 15:46 < dho> syscall returns in AX 15:47 < dho> even so this isn't likely to work :) 15:48 < LuitvD> still a segfault, I guess 15:48 < dho> you redid the make install in runtime and re-ran make test? 15:48 < LuitvD> yeah 15:49 < dho> same process, I'm guessing BX isn't right either 15:49 < dho> i'll be back in a bit; meeting 15:49 < LuitvD> 8080924: 8e e8 mov %eax,%gs 15:49 < LuitvD> that's what it fails to do 15:50 < LuitvD> I'm gone for food and more 15:50 < LuitvD> bbl 15:52 -!- selby_fiedler [n=selby_fi@173-138-17-181.pools.spcsdns.net] has joined #go-nuts 15:53 -!- Netsplit kubrick.freenode.net <-> irc.freenode.net quits: da4089 15:56 -!- Netsplit over, joins: da4089 15:59 < dho> oh 15:59 < dho> right 15:59 -!- adiabatic [n=adiabati@dsl-206-55-130-248.tstonramp.com] has joined #go-nuts 15:59 < dho> i think that should just set up gs for you maybe 15:59 < dho> try commenting out the last 4 lines before the RET 15:59 < dho> when you're back 15:59 * dho meeting 16:01 -!- skelterjohn [n=jasmuth@c-76-116-179-93.hsd1.nj.comcast.net] has quit [] 16:02 -!- Metaphis [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read error: 104 (Connection reset by peer)] 16:02 -!- Metaphis [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 16:03 -!- fgb1 [n=fgb@190.246.85.45] has quit [Read error: 104 (Connection reset by peer)] 16:04 < LuitvD> another segfault 16:04 < LuitvD> 807fdae: 89 05 00 00 00 00 mov %eax,0x0 16:04 < LuitvD> right there 16:04 * LuitvD still wasn't gone yet 16:04 -!- Garen_ [n=garen@75.87.255.36] has joined #go-nuts 16:06 -!- raichoo [n=raichoo@i577BA3D6.versanet.de] has joined #go-nuts 16:07 -!- smcquay [n=smcquay@mail.adaptivecomputing.com] has joined #go-nuts 16:08 < dho> can you run 6nm ./8.out | grep 807fd | sort 16:08 < dho> and find the one closest to 807fdae 16:08 < LuitvD> no output 16:09 < LuitvD> oh, my bad 16:10 < LuitvD> 807fd02 T _rt0_386 16:10 < LuitvD> 807fdb9 T mainstart 16:10 < LuitvD> 807fdd3 T breakpoint 16:10 < LuitvD> 807fdd6 T gosave 16:10 < LuitvD> 807fdf3 T gogo 16:11 < dho> something in _rt0_386 16:11 < dho> hold 16:15 < dho> yeah this is wrong 16:16 < dho> i don't have time to continue with it at the moment :( sorry 16:16 < LuitvD> when should I come back for this? 16:21 -!- JSharpe [n=jamie@5ad673e9.bb.sky.com] has joined #go-nuts 16:21 < dho> LuitvD: what timezone are you 16:22 -!- Garen [n=garen@75.87.255.36] has quit [Read error: 110 (Connection timed out)] 16:23 -!- ehird [n=ehird@91.104.236.31] has joined #go-nuts 16:23 -!- Venom_X [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has joined #go-nuts 16:23 -!- iant [n=iant@67.218.110.236] has quit [Read error: 110 (Connection timed out)] 16:25 -!- JSharpe [n=jamie@5ad673e9.bb.sky.com] has quit [Client Quit] 16:35 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 16:36 -!- adiabatic [n=adiabati@dsl-206-55-130-248.tstonramp.com] has quit ["Rockin’ music will set you free."] 16:41 -!- selby_fiedler [n=selby_fi@173-138-17-181.pools.spcsdns.net] has quit [Read error: 110 (Connection timed out)] 16:41 -!- fifoman [n=fifoman@p4FCC55E1.dip.t-dialin.net] has quit [Read error: 60 (Operation timed out)] 16:42 -!- fifoman [n=fifoman@p4FCC5F83.dip.t-dialin.net] has joined #go-nuts 16:43 -!- Metaphis [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Remote closed the connection] 16:46 -!- jdp [n=justin@75.97.120.11.res-cmts.senj.ptd.net] has quit [Remote closed the connection] 16:46 -!- jeng [n=chatzill@75.110.231.66] has quit [Read error: 104 (Connection reset by peer)] 16:46 -!- raichoo [n=raichoo@i577BA3D6.versanet.de] has quit ["Leaving."] 16:47 -!- raichoo [n=raichoo@i577BA3D6.versanet.de] has joined #go-nuts 16:50 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has quit ["Leaving"] 16:51 -!- adiabatic [n=adiabati@dsl-206-55-130-248.tstonramp.com] has joined #go-nuts 16:52 -!- Vova [n=Vova@77.127.8.55] has joined #go-nuts 16:53 -!- bortzmeyer [n=bortzmey@batilda.nic.fr] has quit ["Leaving."] 16:54 -!- sinuhe [n=user@97-117-67-167.slkc.qwest.net] has joined #go-nuts 16:55 < Vova> how can i make asyn sockets? 16:56 < vegai> with select, supposedly 16:56 < Vova> o: 16:57 < dho> what do you mean by `async sockets' 16:57 < vegai> did I grossly misunderstand your question? 16:57 < Vova> asyn recv,accept 16:58 < dho> dial a connection, spawn a goroutine that reads and a goroutine that writes and have them listen on channel on what to write or send on a channel for what to read? 16:59 < Vova> goroutine for each connection? 16:59 < LuitvD> why not? 17:00 < JBeshir> Vova: That's typical, yeah. 17:00 * LuitvD can spawn 100.000 goroutines on his laptop without trouble 17:00 < Vova> :o 17:00 -!- smooge [n=smooge@int.smoogespace.com] has joined #go-nuts 17:01 < Vova> i wanted something like 4 goroutines for all the accepted clients,packets 17:01 < vegai> is golang.org down or just my net... 17:01 < nickjohnson> Vova: why? 17:01 < Vova> golang.org is online 17:01 < LuitvD> vegai: http://downforeveryoneorjustme.com/golang.org 17:02 < vegai> LuitvD: touche 17:02 < LuitvD> :) 17:02 * LuitvD loves that site 17:02 * LuitvD is really gone now 17:03 -!- trickie_ [n=trickie@94.100.112.225] has quit [Read error: 113 (No route to host)] 17:03 < Vova> nickjohnson: a go routine for each client isnt too expensive? 17:04 < JBeshir> Vova: They shouldn't be, I believe. 17:04 < LuitvD> Vova: like I said: 100.000 goroutines is still manageable 17:05 < LuitvD> so 20 isn't especially heavvy 17:05 < Vova> ok thanks, i guess i need to do some reading about goroutines :x 17:06 < JBeshir> I love writing multiple synchronous "threads", and having them communicate, instead of writing polling or asynchronous code. 17:06 < LuitvD> Vova: the site has plenty of info 17:06 -!- wooyuk [n=clannadm@221.193.236.88] has joined #go-nuts 17:06 < LuitvD> the tech talk is especially interesting 17:07 < dho> goroutines are cheap 17:07 < dho> they have tiny stacks 17:07 < LuitvD> (it explains the way I built 100.000 goroutines too) 17:07 < dho> and minimal state 17:07 < dho> goroutines are not threads 17:07 < JBeshir> What's the base stack now? 17:07 < LuitvD> (had to try it after Rob set such an example) 17:07 < LuitvD> anyway, bye 17:07 < LuitvD> bbl 17:07 < dho> 4k i believe 17:07 < dho> lemme look 17:07 < LuitvD> 4k, yeah 17:08 < JBeshir> 4KB was the last one I heard, yeah. 17:08 < dho> 32k 17:08 < JBeshir> 32? 17:08 < JBeshir> Huh. 17:08 < dho> hm 17:08 < dho> no that's the signal stack. 17:08 < vegai> Vova: did you check http://golang.org/doc/go_tutorial.html#tmp_396 17:09 < dho> 4k + boundaries 17:09 < Vova> vegai: yea 17:09 < JBeshir> Any overall decrease in efficiency of the scheduler from having lots, or similar? 17:10 < dho> other than the scheduler not being horribly efficient 17:10 * JBeshir is wondering what the processing overhead is, if significant at all. 17:10 < dho> not much 17:10 < dho> it's a loop 17:10 < dho> and it's not called very often 17:10 < dho> (whenever you can yield) 17:11 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 17:11 < JBeshir> Okay. 17:11 < skelterjohn> the OS scheduler knows nothing about goroutines, and if the go runtime scheduler just picks the next goroutine from a pool then that is very efficient 17:11 < dho> i think it's just like a circle queue of runnables 17:11 < dho> it's not very smart. 17:11 < dho> but it isn't heavyweight 17:12 -!- raichoo [n=raichoo@i577BA3D6.versanet.de] has quit [Remote closed the connection] 17:12 < skelterjohn> well, when a goroutine yields, there are a limited number of goroutines that can take control 17:12 < skelterjohn> if it was just created, or if it's waiting on a channel that has been read/written 17:13 < skelterjohn> i think that this problem can be done very efficiently 17:13 < skelterjohn> without too much clever thinking required 17:13 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 17:14 < dho> right, they're `runnables' 17:27 -!- wooyuk [n=clannadm@221.193.236.88] has quit ["-=SysReset 2.55=-"] 17:27 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read error: 54 (Connection reset by peer)] 17:27 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 17:27 -!- pshahmumbai [n=prashant@59.164.24.197] has joined #go-nuts 17:35 -!- murodes1 [n=James@203-59-152-164.dyn.iinet.net.au] has quit [Read error: 104 (Connection reset by peer)] 17:40 -!- sakar [n=ivanmora@6.pool80-103-116.dynamic.orange.es] has joined #go-nuts 17:42 -!- sakar [n=ivanmora@6.pool80-103-116.dynamic.orange.es] has left #go-nuts [] 17:42 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts 17:42 -!- path[l] [n=path@59.162.86.164] has joined #go-nuts 17:44 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read error: 104 (Connection reset by peer)] 17:44 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 17:46 -!- iant [n=iant@nat/google/x-qaqlxzqraosoxazn] has joined #go-nuts 17:46 -!- mode/#go-nuts [+v iant] by ChanServ 17:49 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 17:49 < plexdev> http://is.gd/68HBH by [Roger Peppe] in go/src/cmd/gofmt/ -- Fix bug that prevented the gofmt test script being run on more 17:51 -!- deso [n=deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts 17:53 -!- rbohn [n=chatzill@192.206.100.4] has joined #go-nuts 17:54 < ehird> So if I'm doing some concurrency and doing message-passing instead of shared memory would essentially lead to a memory- and CPU-inefficient emulation of shared memory with message passing, should I just use shared memory? 17:54 < ehird> (The shared memory is inherent to the problem.) 17:56 -!- path[l] [n=path@59.162.86.164] has quit [] 17:59 < cthom06> ehird: sounds like youre approaching it in a non-idiomatic way 18:00 <+iant> ehird: there is nothing wrong with using shared memory, just make sure that only goroutine owns the memory at a time, and pass ownership of the shared memory using channels 18:00 < ehird> cthom06: It is not my fault that the problem is non-idiomatic. I think I have a solution, though: 18:00 < ehird> both goroutines talk to a central goroutine to do things like: 18:00 < ehird> get memory location N/set memory location N 18:00 < ehird> and it maintains a central copy of the memory 18:00 < ehird> That way there's no wastefulness. 18:00 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Read error: 54 (Connection reset by peer)] 18:00 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 18:03 < cthom06> ehird: iant said the better solution, pass the memory between the goroutines. 18:03 < ehird> wouldn't work, they'd be passing it every handful of ms 18:04 < ehird> it's *very* shared memory 18:04 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Remote closed the connection] 18:05 < cthom06> ehird: well the way you described you'd have no way of controlling get/set order, if i understand correctly 18:05 -!- sebastiandeutsch [n=sebastia@mue-88-130-89-210.dsl.tropolys.de] has quit [] 18:05 < plexdev> http://is.gd/68LcO by [Russ Cox] in go/src/pkg/runtime/ -- runtime: fix bug in preemption checks; was causing "lock count" panics 18:07 < ehird> cthom06: that's ok, I need to do a lot of synchronisation between them manually anyway 18:07 < ehird> (The problem is very unorthodox) 18:08 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 18:11 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts 18:17 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has quit ["Leaving"] 18:24 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit ["KVIrc Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47 UTC http://www.kvirc.net/"] 18:25 -!- path[l] [i=UPP@120.138.102.34] has joined #go-nuts 18:26 -!- jackman [n=jackman@75-169-148-56.slkc.qwest.net] has quit ["leaving"] 18:28 < ehird> it's kind of annoying that I have to put all of my program into a package named "main" even if it's quite big 18:28 < ehird> if it doesn't make sense as a library 18:28 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Remote closed the connection] 18:29 -!- xVova [n=Vova@77.127.8.55] has joined #go-nuts 18:29 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has joined #go-nuts 18:29 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts 18:30 <+iant> I routinely put self-contained modules in different packages even if they don't make sense as standalone libraries 18:30 < dho> ehird: that doesn't mean you can't organize it. 18:30 < dho> and that 18:30 < ehird> dho: I know, it's more the name "main" that irritates me :P 18:30 < skelterjohn> ehird: 1) what iant said and 2) what dho said 18:30 < skelterjohn> you guys type faster than i do 18:30 < dho> heh 18:30 < ehird> iant: that means I have to copy the src/pkg makefiles and tweak them, though 18:30 < ehird> and that's irritating for a relatively small project 18:30 < dho> it's relatively small, but quite big? 18:31 <+iant> true.... 18:31 < skelterjohn> ehird: that's a different issue :) some people (dho) are working on a go builder to streamline that process 18:31 < ehird> dho: ok, let's put it this way: it's about three files big 18:31 * dho <_< 18:31 < ehird> one with the core of the program, and two with different interfaces 18:32 < dho> weird. i don't consider that big 18:32 < skelterjohn> time to get out the ruler 18:33 -!- Eridius [n=kevin@growl/Eridius] has joined #go-nuts 18:33 < ehird> dho: it's too big for one file 18:33 < ehird> and it feels wrong having them all in "main" 18:33 < ehird> is my point 18:33 < Eridius> there's no way at runtime to extract info about constants provided by a package, is there? 18:33 < skelterjohn> when you use a new language, you have to get used to new "feelings" 18:33 < Eridius> my goal here is in a test program to be able to print out the names of constants used in my tests, without building a mapping by hand of name-to-value 18:34 < dho> skelterjohn: it would be nice to have an arbitrarily named package containing main 18:34 <+iant> Eridius: If I understand what you are asking, then you are correct that there is no way to do that 18:34 < Eridius> ok, thanks 18:34 -!- carllerche [n=carllerc@enginey-9.border1.sfo002.pnap.net] has joined #go-nuts 18:35 < skelterjohn> iant: is that something on the horizon? the names of those constants are available in the binaries aren't they? 18:35 * Eridius is working on porting his fnmatch gospecs to gotest 18:35 < skelterjohn> dho: why? *shrug* 18:35 <+iant> actually, no, the names of constants are not currently available in the binary 18:36 < dho> skelterjohn: for the same reason that java packages can have a main function inside an arbitrarily named class 18:36 < skelterjohn> well, when I reference os.O_RDONLY, is 6g taking a look at os's source? 18:36 * Eridius briefly considered trying to parse the .go source file at runtime to extract the constants, but then realized he wouldn't have a way to actually get the _value_ of the constants 18:36 < dho> skelterjohn: `main' isn't really the name of the package you're making when you're writing a program, even if you can organize it or break standalone pieces out into little mini-packages 18:37 <+iant> skelterjohn: os.O_RDONLY is stored in the os.a package export data, but that information is not copied into the linked executable 18:37 < skelterjohn> i see. thanks. 18:37 < dho> it seems like that would be difficult to do though 18:37 -!- Vova [n=Vova@77.127.8.55] has quit [Read error: 110 (Connection timed out)] 18:38 < ehird> skelterjohn: don't talk like that to me boy, I'er been here e'er since day 3 I'ave 18:38 < ehird> :P 18:38 < skelterjohn> uh, ok 18:39 < ehird> kidding 18:39 < Eridius> damn, you can't convert an integer to a bool with bool(1) 18:39 < ehird> (re "when you use a new language, you have to get used to new "feelings"") 18:40 < skelterjohn> i know. but my secret pleasure is making people feel awkward. 18:40 < skelterjohn> :) 18:40 < skelterjohn> it's hard to do online 18:40 < skelterjohn> in person i have a deadpan stare that i like to break out a lot 18:40 < dho> iant: do you know if that would be well received? have gc define two symbol where it finds the theoretical equivilant of main·init and main·main and then call those? 18:41 < skelterjohn> dho: I don't think that's a good idea - how would you invoke one or the other from the command line? 18:41 <+iant> dho: you mean, some option to set the startup package to be something other than main? 18:41 < skelterjohn> right now, you create a single executable 18:41 < ehird> couldn't you just have some sort of annotation 18:41 < dho> iant: essentially 18:41 < ehird> like 18:41 < skelterjohn> oh, i see 18:41 < ehird> func ismain main() {...} 18:41 < skelterjohn> so still exactly 1 main function, but a different package 18:41 < dho> right 18:41 < ehird> or if package, yeah 18:42 < ehird> like 18:42 < ehird> package foo hasMain 18:42 <+iant> I think that could be helpful for some sorts of testing; I think it would be OK but I don't know what Ken would think 18:43 < dho> it would probably be at least slightly gross, since your symbol would have to be called _i_dont_clash_with_your_namespace_main·main 18:43 < dho> heh 18:44 -!- path[l] [i=UPP@120.138.102.34] has quit [Read error: 110 (Connection timed out)] 18:45 < dho> ehird: seems unnecessary, since main and init are special names in general 18:45 < dho> also init is a special name in any package. 18:45 < ehird> dho: yeah true 18:46 < Eridius> I have to use an explicit "return" in a func with return values, even if the values are named, right? 18:46 < dho> it would change things a lot in gc too 18:46 <+iant> Eridius: right 18:46 < dho> Eridius: yes 18:47 < Eridius> now that StringVector is really just a []string, I can avoid using v.Data(), right? Or am I encouraged to do that anyhow? 18:48 -!- sinuhe [n=user@97-117-67-167.slkc.qwest.net] has quit [Remote closed the connection] 18:48 < ehird> Eridius: and what if it changes again? 18:51 < dho> i think it's useful but i don't really grok the compiler 18:51 < Eridius> ehird: true 18:52 < Eridius> hrm, I'm using tests patterned after path_test.go (e.g. declaring a bunch of structs that encode my test data). There's no way to preserve line information here, right? 18:52 * Eridius wishes for hygenic macros.. .or at least macros of some sort 18:52 < ehird> bearded mcaros 18:52 < ehird> *macros 18:52 < Eridius> hehe 18:57 < Eridius> whoa, I just got an error that said "expected '}', found ';'" except I don't have any semicolons in my cde. I wasn't aware the ;-insertion could propogate to errors 18:57 -!- JPascal1 [n=jpascal@93-80-27-148.broadband.corbina.ru] has joined #go-nuts 18:57 < JPascal1> Hello all! 18:57 < JPascal1> How I can lookup MAC address by IP address? 18:57 -!- Luit [n=luitvd@82-170-227-44.ip.telfort.nl] has joined #go-nuts 18:57 < dho> JPascal1: implement ARP 18:57 -!- LuitvD [n=luitvd@82-170-227-44.ip.telfort.nl] has quit [Nick collision from services.] 18:58 < LuitvD> there, finally back 18:59 < JPascal1> hm... ARP? 18:59 < dho> address resolution protocol. it's a layer-2 protocol. 18:59 < dho> your OS probably exposes its arp cache somewhere. 18:59 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 18:59 < JPascal1> The Go have any functions& 19:00 < dho> usually easiest to just look through that. 19:00 < JPascal1> ? 19:00 < dho> Go has many functions, but one of them is not GetMACForIPAddress. That would require some OS-specific knowledge 19:00 < dho> or, alternatively, and ARP client 19:00 < dho> either of which you'd have to write 19:01 < JPascal1> thx 19:03 -!- path[l] [i=UPP@120.138.102.34] has joined #go-nuts 19:03 -!- pshahmumbai [n=prashant@59.164.24.197] has quit ["Ex-Chat"] 19:03 -!- sebastiandeutsch [n=sebastia@dslb-084-060-110-083.pools.arcor-ip.net] has joined #go-nuts 19:04 -!- sebastiandeuts-1 [n=sebastia@dslb-084-060-110-083.pools.arcor-ip.net] has joined #go-nuts 19:04 -!- sebastiandeutsch [n=sebastia@dslb-084-060-110-083.pools.arcor-ip.net] has quit [Read error: 54 (Connection reset by peer)] 19:04 < Eridius> whoa, crazy error message 19:05 < Eridius> import ( "fmt", "os" ) 19:05 < Eridius> gives me: syntax error near uint8 19:05 * LuitvD applauds 19:05 < Eridius> the issue is the use of , instead of ; (in the real code, it's the use of , instead of a bare newline) 19:05 < Eridius> but that's not a very nice error message 19:07 < LuitvD> though why not just use newlines? 19:07 < Eridius> I'm not very familiar with Mercurial, and the codereview plugin changes it even more. Is it valid for me to make intermediate local commits, and then somehow submit those commits for review? Because last time I submitted something, I didn't make a local commit, it just submitted my dirty tree 19:07 < skelterjohn> that's not the point LuitvD :) 19:07 < Eridius> LuitvD: I do use newlines. I just had a , after an import 19:07 < ehird> channels are cheap right? 19:07 < Eridius> yes 19:07 < LuitvD> ehird: right 19:07 < ehird> like if I want { foo chan bool; bar chan bool } I can do that instead of { foo chan anEnumWithFooAndBar } 19:08 < Eridius> well, the two embody different concepts 19:08 -!- path[l] [i=UPP@120.138.102.34] has quit [Read error: 60 (Operation timed out)] 19:08 < dho> ehird: they're more expensive than mutexes, but they're not particularly heavyweight either. 19:08 < Eridius> the first one is two separate channels for two distinct values, the second would be for a channel where your Foo and Bar values are pairs 19:08 < Eridius> hrm, I wonder if goroutines could somehow leverage Grand Central Dispatch on darwin 19:08 < ehird> they're both used for synchronisation; one is "ok, you can X now" and the other one, coming after the first, is "ok, you can Y now" 19:08 -!- Macpunk [n=macpunk@cpe-72-177-27-209.austin.res.rr.com] has joined #go-nuts 19:09 < ehird> Eridius: *OS X; I don't think Darwin includes GCD. 19:09 < ehird> You might offend all three people who use Darwin/X11 systems. 19:09 < Macpunk> Last night I discovered how the object orientation of Go works. I shat bricks. It looks awesome. :D 19:09 < dho> ehird: they do objc. 19:09 < dho> not go. 19:09 < Eridius> ehird: ah true, darwin is technically distributed by itself, but AFAIK it's not really supported to run it by itself 19:09 < dho> :P 19:09 < Eridius> opendarwin is dead 19:09 < Macpunk> actually, there's puredarwin 19:10 < ehird> Eridius: You can manually assemble your own distro. 19:10 < Eridius> huh, someone resurrected opendarwin? 19:10 -!- cthom06 [n=kaitlyn_@wsip-70-169-149-118.hr.hr.cox.net] has left #go-nuts [] 19:10 < Macpunk> I dunno if it was a resurrection, but I know it exists and is alive :P 19:10 < Macpunk> http://puredarwin.org 19:10 < Macpunk> and Freenode/#puredarwin 19:11 < ehird> i like how a lot of those screenshots are just "the exact same screen — on a different VM host!" 19:12 -!- Kashia [n=Kashia@port-92-200-123-193.dynamic.qsc.de] has joined #go-nuts 19:12 < ehird> [19:12] <ehird> they're both used for synchronisation; one is "ok, you can X now" and the other one, coming after the first, is "ok, you can Y now" ← so should this be one or two channels? 19:12 < Macpunk> I know right. I thought the same thing. :P 19:13 < dho> ehird: can two Xs arrive before a Y? 19:13 < ehird> dho: it's always x,y,x,y,x,y,x,y 19:13 < dho> then why do you need two channels?m 19:14 < ehird> I could just use a chan bool, yes, but just saying "<-sync" both times would require a comment 19:14 < ehird> and non-self-documenting code is lame 19:14 < dho> maintain state in the worker 19:14 < ehird> I wish there was a unit type 19:14 < ehird> "chan bool" wastes *a whole bit* :-) 19:14 < ehird> (erased at compile-time obviously) 19:15 -!- JPascal1 [n=jpascal@93-80-27-148.broadband.corbina.ru] has left #go-nuts [] 19:15 < ehird> Can a function and a data type have the same name? 19:17 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Read error: 110 (Connection timed out)] 19:19 -!- gasreaa [n=atwong@nat/slide/x-rvawbrdgymydyvhf] has joined #go-nuts 19:19 < Macpunk> Actually, I had a similar question. Can a struct and an interface have the same name? 19:19 <+iant> ehird: yes, in a sense, but, e.g., if you define a function with that name, then within the function the name will always refer to the function 19:19 < ehird> pretty sure the answer is no 19:19 < ehird> they're both in the type namespace 19:19 <+iant> there is only namespace (except for labels) 19:19 < ehird> alright 19:19 < ehird> iant: yeah, I stopped when I realised my declaration would be 19:19 < ehird> func foo(foo foo) { 19:20 <+iant> so you can only have two objects with the same name if one is nested 19:20 < ehird> (literally; well, if you replace foo with the actual name) 19:20 < ehird> why are labels a different namespace? 19:20 < ehird> lame :P 19:20 <+iant> because labels don't follow scope nesting; you can define a label in an inner scope and use a goto statement to reach it from an outer scope 19:20 <+iant> you can't do that with a variable 19:21 -!- |chachan| [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts 19:21 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit [Read error: 113 (No route to host)] 19:21 < ehird> just make every label declaration bubble up :P 19:21 < ehird> (the scopes) 19:21 < ehird> and hey, you get computed goto for free 19:21 -!- gasreaa [n=atwong@nat/slide/x-rvawbrdgymydyvhf] has left #go-nuts [] 19:21 < ehird> you may decide for yourself if this is a plus or a minus 19:21 -!- p4p4 [n=P4p4@24.121.113.82.net.de.o2.com] has joined #go-nuts 19:22 -!- johan-s [n=johan@106.80-203-21.nextgentel.com] has quit ["awaaaay"] 19:24 -!- SubtleGradient [n=SubtleGr@67.58.120.235] has joined #go-nuts 19:25 -!- SubtleGradient [n=SubtleGr@67.58.120.235] has left #go-nuts ["http://subtleGradient.com"] 19:27 < ehird> iant: so in a structure is "Foo Foo" not valid? 19:27 -!- michael| [n=maikeru@unaffiliated/maikeru/x-7708887] has quit [Read error: 60 (Operation timed out)] 19:27 < ehird> example "Port Port", public field Port that is a Port 19:27 -!- robot12_ [n=robot12@inferno.kgts.ru] has joined #go-nuts 19:28 < Eridius> hey guys, I have 2 open codereviews from 2 months ago. 152115 and 152092. Is there any chance someone could look at them? 19:28 <+iant> ehird: I think that is valid; fields are nested in the scope of the struct 19:28 <+iant> ehird: I would have to look it up, though 19:29 < ehird> iant: but presumably bad practise? 19:29 < ehird> a shame; I cannot think of a better name 19:29 <+iant> I dunno, I think it's OK as long as it's clear 19:29 < ehird> It should be. 19:31 <+iant> Eridius: you should send a ping message to golang-dev@googlegroups.com 19:32 -!- bortzmeyer [n=stephane@central.sources.org] has joined #go-nuts 19:32 < ehird> hmm 19:32 < Eridius> iant: ok 19:32 < ehird> is it common practice to do const ( _ = iota; ... ) 19:32 < ehird> even if the values don't matter 19:32 < ehird> (if making a meaningless enum) 19:33 < dho> Eridius: make sure they still apply cleanly. 19:34 < Eridius> dho: one is on the go-mode.el file, I don't think that's been changed. The other is a typo fix in the docs, and that typo still exists on golang.org 19:34 * Eridius isn't really sure how to pull down those changes onto this computer for testing 19:34 -!- Garen_ [n=garen@75.87.255.36] has quit [Read error: 104 (Connection reset by peer)] 19:35 * Eridius doesn't really like the codereview extension... really wish it worked by using local commits layered on top of the remote history 19:35 -!- michael| [n=maikeru@24-107-56-173.dhcp.stls.mo.charter.com] has joined #go-nuts 19:36 * Eridius really wants to make a local commit before making some changes, so he can easily revert if he doesn't like them, but doesn't see any way to do that 19:36 < Eridius> iant: when I submit changes, how do I know who to mark as reviewer? 19:36 < ehird> when defining a constant 19:37 < ehird> should the const ( be on the next line after the type 19:37 < ehird> ? 19:37 <+iant> Eridius: golang-dev@googlegroups.com is always a good default 19:37 < ehird> gofmt inserts a newline in-between 19:37 < Eridius> you can set the mailing list as reviewer? huh 19:37 <+iant> when it gets approved it will be given a specific reviewer 19:38 < Eridius> ok 19:39 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit ["Leaving"] 19:41 < Eridius> hrm, the docs for testing/quick include ; in the code examples 19:41 -!- p4p4_ [n=P4p4@24.121.113.82.net.de.o2.com] has quit [Read error: 110 (Connection timed out)] 19:41 < dho> Eridius: it helps if there's an issue associated with the ticket. 19:42 -!- Garen [n=garen@75.87.255.36] has joined #go-nuts 19:45 -!- johan-s [n=johan@106.80-203-21.nextgentel.com] has joined #go-nuts 19:47 -!- tomestla [n=tom@AToulouse-151-1-10-131.w83-193.abo.wanadoo.fr] has joined #go-nuts 19:50 -!- |chachan| [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit ["KVIrc Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47 UTC http://www.kvirc.net/"] 19:50 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts 19:51 < Eridius> d'oh, a panic in quick.QuickCheck() doesn't tell me what the inputs were >_< 19:51 < ehird> you're porting QuickCheck to Go? 19:51 < Eridius> ehird: testing/quick 19:51 < Eridius> err I meant quick.CheckEqual() 19:52 < Eridius> but yeah, it's the same thing 19:53 < ehird> Is there shorthand for "foo := make a channel; go f(foo)"? 19:53 < ehird> Like "foo := go f(make a channel)" or something. 19:53 < ehird> It would be convenient. 19:54 < skelterjohn> "foo := go f(make(chan X))"? 19:54 < skelterjohn> not sure what you mean 19:54 < Eridius> func gof() chan interface{} { foo := make(chan interface{}); go f(foo); return foo } 19:54 < Eridius> foo := gof() 19:54 < skelterjohn> oh and get the channel back 19:54 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit [Client Quit] 19:55 < ehird> Eridius: That isn't very idiomatic, though. :P 19:55 < ehird> (Is it?) 19:55 < ehird> Actually, I don't need it. Yay. 19:55 * Eridius seems to recall seeing sample code that defined functions that returned channels used for talking to the goroutine they spawned 19:56 * ehird realises that his two synchronisation channels actually are different 19:57 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts 20:00 < Eridius> if a function has multiple return values, and I try to use it in an expression, what happens? 20:03 < ehird> *boom* 20:04 < ehird> hmm, should I use a request and response channel if I have a send request, receive response from other goroutine model? 20:04 < ehird> or one channel with both requests and responses 20:04 < skelterjohn> ehird: if you know that it will always be tit-for-tat you can use a single channel 20:05 < skelterjohn> but if, for instance, multiple sites field requests, etc, you'll need different request and response channels 20:05 < ehird> hmm wait i need two channels, one per goroutine talking to it 20:05 < ehird> ugh, this is turning into a maze of channels 20:05 < ehird> damn shared memory 20:05 < skelterjohn> what are you trying to do? 20:06 < ehird> Implement a program. What it does inherently involves shared memory 20:06 < ehird> and this is making my program ugly, and thus I am sad. Specific enough for you? :P 20:08 < Eridius> hrm, testing/quick has no good way to specify the size of inputs 20:09 -!- Macpunk [n=macpunk@cpe-72-177-27-209.austin.res.rr.com] has quit [Read error: 110 (Connection timed out)] 20:13 < Eridius> hrm, testing/quick just uses a random number 0-50 for string length. curious. 20:13 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts 20:14 < Eridius> oh, 0-49 actually 20:22 -!- atsampson [n=ats@94-193-50-45.zone7.bethere.co.uk] has quit [Read error: 60 (Operation timed out)] 20:28 < Eridius> if I want to get a reflect.Type representing a string, do I really have to do something like reflect.Typeof("")? There's no public value that is a reflect.StringType? 20:28 < Eridius> or can I say new(type.StringType)? 20:28 -!- dfgdfgdfg [n=sadf@ip68-98-141-64.dc.dc.cox.net] has joined #go-nuts 20:28 < Eridius> well no, I don't need a *reflect.Type. hmm 20:30 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit [Remote closed the connection] 20:33 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the connection] 20:35 < Eridius> if I have a reflect.Value, how do I get the particular concrete value type back (e.g. reflect.StringValue)? 20:35 -!- xVova [n=Vova@77.127.8.55] has quit [Read error: 104 (Connection reset by peer)] 20:35 -!- Vova [n=Vova@77.127.8.55] has joined #go-nuts 20:36 < KirkMcDonald> Eridius: A type assertion: foo.(*reflect.StringValue) 20:37 < Eridius> oh hey, Value is an interface. How'd I miss that? 20:39 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts 20:39 -!- gnuvince [n=vince@ip-250.45.99.216.dsl-cust.ca.inter.net] has joined #go-nuts 20:40 -!- sinuhe [n=user@97-117-67-167.slkc.qwest.net] has joined #go-nuts 20:44 -!- crashR [n=crasher@codextreme.pck.nerim.net] has quit [No route to host] 20:46 -!- p4p4_ [n=P4p4@24.121.113.82.net.de.o2.com] has joined #go-nuts 20:46 -!- atsampson [n=ats@94-193-50-45.zone7.bethere.co.uk] has joined #go-nuts 20:47 -!- Macpunk [n=macpunk@cpe-72-177-27-209.austin.res.rr.com] has joined #go-nuts 20:48 < Eridius> to answer my earlier question: it looks like I can say new(reflect.StringType) to get a reflect.Type that works just fine 20:49 -!- bortzmeyer [n=stephane@central.sources.org] has quit ["Leaving."] 20:49 -!- iwikiwi [n=iwikiwi@202.3.77.160] has quit [Remote closed the connection] 20:50 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts 20:50 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has quit [] 20:51 -!- vizzord [n=exn@195.49.206.202] has quit ["see you"] 20:53 < Eridius> hrm, strings.Map() can remove characters, but it can't map one char -> multiple chars 20:54 < dho> a map isn't a one-to-many relationship 20:54 -!- sebastiandeuts-1 [n=sebastia@dslb-084-060-110-083.pools.arcor-ip.net] has left #go-nuts [] 20:54 < Eridius> dho: it's also not a one-to-none relationship 20:54 < Eridius> I just thought it was odd that it can remove chars but not add them 20:54 < KirkMcDonald> You can make a thing to a slice of things. 20:54 < KirkMcDonald> s/make/map/ 20:54 < Eridius> strings.Map maps runes in the string 20:55 < skelterjohn> map[char]map[char]bool 20:55 < skelterjohn> map a char to a set of chars 20:55 < Eridius> not that type of map 20:57 < Eridius> d'oh, regexp.ReplaceAllString doesn't provide backreferences. That's annoying 20:58 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has quit [Read error: 54 (Connection reset by peer)] 20:58 -!- shasbot [n=shasbot@ip70-171-218-55.tc.ph.cox.net] has joined #go-nuts 21:01 -!- crashR [n=crasher@codextreme.pck.nerim.net] has joined #go-nuts 21:02 -!- p4p4 [n=P4p4@24.121.113.82.net.de.o2.com] has quit [Read error: 110 (Connection timed out)] 21:04 -!- dfgdfgdfg [n=sadf@ip68-98-141-64.dc.dc.cox.net] has quit [Read error: 54 (Connection reset by peer)] 21:08 -!- jhnx [i=bb17b1d3@gateway/web/freenode/x-cgzbwrwpkqysjmvo] has joined #go-nuts 21:10 -!- gasreaa [n=atwong@nat/slide/x-nvmrfbruyvdfiwnb] has joined #go-nuts 21:10 -!- Macpunk [n=macpunk@cpe-72-177-27-209.austin.res.rr.com] has quit [Read error: 110 (Connection timed out)] 21:18 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts 21:21 -!- Olathe [n=Olathe@173-19-108-228.client.mchsi.com] has quit [Read error: 60 (Operation timed out)] 21:23 < Eridius> whoa, I'm getting a wacky error 21:24 -!- ikke [n=ikke@unaffiliated/ikkebr] has joined #go-nuts 21:24 < Eridius> bogus syntax errors 21:24 < Eridius> but if I extract my func() literal and assign it to a variable, and put that variable in place of the func() literal, it works 21:25 < dho> context? 21:26 * Eridius is writing some unit tests 21:26 * Eridius is trying to extract this into a snippet 21:30 -!- rsc9 [n=Adium@nat/google/x-qdgbfwpcfrvgedsz] has joined #go-nuts 21:30 -!- mode/#go-nuts [+v rsc9] by ChanServ 21:32 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Read error: 110 (Connection timed out)] 21:33 -!- |chachan| [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts 21:33 -!- rbohn [n=chatzill@192.206.100.4] has quit ["ChatZilla 0.9.86 [Firefox 3.5.7/20091221164558]"] 21:35 -!- rsc9 [n=Adium@nat/google/x-qdgbfwpcfrvgedsz] has left #go-nuts [] 21:36 -!- lmoura [n=lauromou@200.184.118.130] has quit [Read error: 54 (Connection reset by peer)] 21:36 -!- mssm [n=mssmfs@ip-95-221-88-201.bb.netbynet.ru] has quit ["WeeChat 0.3.0"] 21:36 -!- lmoura [n=lauromou@200.184.118.130] has joined #go-nuts 21:37 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit [Read error: 113 (No route to host)] 21:48 -!- trevor [n=trevor@adsl-70-142-37-108.dsl.tul2ok.sbcglobal.net] has joined #go-nuts 21:50 -!- ehird [n=ehird@91.104.236.31] has left #go-nuts ["Konversation terminated!"] 21:51 < Eridius> dho: http://gopaste.org/view/hY7yW 21:52 < skelterjohn> that compiles for me 21:53 -!- robot12_ [n=robot12@inferno.kgts.ru] has quit ["Ухожу я от вас (xchat 2.4.5 или старше)"] 21:53 < Eridius> I get syntax error on else 21:53 < Eridius> and if I delete the else, I get syntax error on for 21:53 < Eridius> this is on the latest release 21:53 < skelterjohn> else doesn't appear in that snippet 21:53 < Eridius> oh I had deleted it 21:53 < Eridius> ok, I get syntax error on for 21:53 < Eridius> and if you add else {} in there, I get syntax error on else insetad 21:53 < Eridius> *instead 21:53 < skelterjohn> i updated two days ago 21:53 < Eridius> what happens if I update while I have dirty files? 21:54 < skelterjohn> i put an else in and it still works fine 21:54 < skelterjohn> well, compiles fine, anyway 21:54 * Eridius updates to tip 21:55 < Eridius> d'oh, it compiles now 21:55 * Eridius just wasted a bunch of effort reducing something that's already been fixed >_< 21:56 < skelterjohn> <3 21:56 * Eridius wonders what the issue was? 22:00 -!- stalled_ [n=411@unaffiliated/stalled] has joined #go-nuts 22:01 -!- san_ [i=8cef7483@gateway/web/freenode/x-werfujudxfaiohgd] has joined #go-nuts 22:05 -!- pure_x01 [n=pure@c83-248-3-188.bredband.comhem.se] has joined #go-nuts 22:05 < pure_x01> hi there i get a segmentation fault on TCPConn.Close http://pastebin.com/m7fb74fad .. any recomendations? 22:09 < jhh> looks like you're trying to dereference a nil pointer 22:10 < pure_x01> jhh: how can you tell 22:10 < jhh> by "SIGSEGV: segmentation violation - Faulting address: 0x0" 22:11 < pure_x01> jhh: thanx alot .. good to know cause it is probably going to happen again :-) 22:12 < pure_x01> jhh: when looking at the code i can now see that it is the case 22:12 -!- idea_squirrel [n=ct2rips@77-21-26-167-dynip.superkabel.de] has quit ["zu müde oder muss afk ... suchs dir aus"] 22:12 < pure_x01> jhh: are there any plans to be able to detect a nullptr error since that is probably one of the most common programming mistakes ? 22:13 < Eridius> when I create a change and assign golang-dev@googlegroups.com as the reviewer, an email is automatically sent, right? Or do I have to explicitly tell it to send mail? 22:13 < pure_x01> jhh: i mean with an easier to understand error text. Would probably simplify for users 22:13 < Eridius> if anybody is interested, here's fnmatch: http://codereview.appspot.com/186111 22:13 <+iant> Eridius: you have to use hg mail to send the mail, I think 22:14 < Eridius> is that the same thing as "Public+Mail Comments" in the web interface? 22:14 < jhh> pure_x01: I don't have the slightest idea. Maybe ask somebody more involved, like iant. 22:14 <+iant> I think that "Publish+Mail Comments" is more for reviewers, but in truth I'm not sure; it may be the same 22:15 * Eridius really hates how it keeps the change in the local working tree as dirty changes 22:15 < jhh> Eridius: I tried it, I think it worked. 22:15 < jhh> at least the mail was sent. :) 22:15 < pure_x01> iant: are there any plans to give a more userfriendly output when you get a null pointer error since that is a very common programming mistake and it would help newbies? 22:15 <+iant> pure_x01: if you write a patch to change the error text we would certainly look at it; I don't know that anybody is planning on changing it 22:16 < Eridius> jhh: mail was sent when you submitted a changelist, or am I misinterpreting what you're saying? 22:16 < pure_x01> iant: sure i can probably take a look at doing that. 22:17 -!- deso [n=deso@x0561a.wh30.tu-dresden.de] has quit [Read error: 54 (Connection reset by peer)] 22:17 -!- stalled [n=411@unaffiliated/stalled] has quit [Read error: 110 (Connection timed out)] 22:18 < jhh> Eridius: I uploaded code, replied to comments and then hit the "Public+Mail Comments" link and everything was send to the specified recipients. 22:18 < Eridius> ah ok 22:18 * Eridius just ran `hg mail 186111` 22:19 -!- jdp [n=justin@75.97.120.11.res-cmts.senj.ptd.net] has joined #go-nuts 22:19 < jhh> Eridius: tell me if it does publish your replies also 22:19 < Eridius> ok 22:20 < jhh> i find it all a bit confusing, too 22:20 * Eridius really wishes it was just handled the way git.git handles submissions - create local commits, send patches to an email list. 22:22 < pure_x01> i have read alot about go the past month(s) but this is the first time i start programming in it and i must say that i really enjoy it. Coming from a Java background it is refreshing to have such good compile and startup times 22:22 < skelterjohn> compile times were never an issue for me with java, since eclipse compiles in the background ;) 22:23 < skelterjohn> and my programs take so long to run that the startup time doesn't matter so much 22:23 -!- fgb [n=fgb@190.246.85.45] has joined #go-nuts 22:23 < skelterjohn> but java's type system is driving me INSANE right now 22:25 < KirkMcDonald> That's a feature. 22:25 < jhh> heh 22:25 < skelterjohn> i really think that it's just wrong about me not being able to cast one of these types to the other 22:25 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has quit ["( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )"] 22:26 < pure_x01> skelterjohn: ever worked with maven? 22:26 < skelterjohn> is she the one who teaches typing? 22:26 < Eridius> no that's mavis beacon 22:26 < Eridius> alternately: mario 22:26 < skelterjohn> ah, not that one either, then. 22:27 < pure_x01> skelterjohn: no its her fried 22:27 < pure_x01> skelterjohn: that teaches english 22:27 < skelterjohn> is this a really roundabout zinger? 22:28 < skelterjohn> perhaps my english needs work: i don't get it 22:28 < pure_x01> skelterjohn: no my english.. i dont spell so good.. and typing fast does not help 22:29 < pure_x01> skelterjohn: maven is a build tool that is extremly advanced compared to anything on the market on any platform but build times are terrible 22:30 -!- gasreaa [n=atwong@nat/slide/x-nvmrfbruyvdfiwnb] has left #go-nuts [] 22:30 < skelterjohn> depending on how you define "advanced", ok. but no, never heard of it 22:31 < jhh> skelterjohn: "Convention over Configuration" you should like it ;) 22:31 < KirkMcDonald> (Personally I would expect build times to be a factor taken into consideration by any "advanced" build tool...) 22:31 < pure_x01> skelterjohn: advanced as in advanced dependency management and very good extensibillity. 22:32 -!- |chachan| [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit ["KVIrc Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47 UTC http://www.kvirc.net/"] 22:32 < pure_x01> KirkMcDonald: but git is an advanced cm system but still extremly fast 22:32 < KirkMcDonald> ... okay? 22:33 < skelterjohn> pure_x01: saying "but" implies you disagree, though your statement supported his opinion 22:34 < pure_x01> skelterjohn: I failed 22:34 < pure_x01> skelterjohn: to read the entire sentence before replying 22:34 < pure_x01> KirkMcDonald: so ignore what i replied. I agree with you 22:37 * jhh concludes advanced building tools should be programmed in C. ;) 22:38 < pure_x01> jhh: or in go? 22:38 < skelterjohn> ? 22:38 < plexdev> http://is.gd/69B6Q by [Evan Shaw] in go/misc/kate/ -- kate: Highlighting improvements 22:39 < jhh> Linus would probably call you full of bullshit. ;) 22:39 < pure_x01> the important thing is to do as much as possible in paralell 22:39 < pure_x01> :-) 22:41 < pure_x01> java is very fast the problem is that it is easy to get lazy and loose a little bit of performance here and there and then you get a slow system. It will be nice when go can reach java's performance one day 22:41 * skelterjohn thinks that "go foo()" should have a return type of "chan X" when foo() has a return type of "X" 22:41 < jhh> was trying to refer to Linus Torvalds trolling about git 22:42 < skelterjohn> or maybe type "func() X" 22:42 < jhh> skelterjohn: that's a nice idea, but "foo := go bar()" looks a bit weird. 22:42 < skelterjohn> make it easy to join goroutines 22:43 < skelterjohn> jhh: sure, but so does setting up a mini-infrastructure ot get bar's return 22:43 < jhh> but at least it rounds up the ugly thing of just forgetting about the return type 22:44 < skelterjohn> so, "x = go bar()()" would be the same as "x = bar()" :) 22:44 < jhh> oO 22:44 < skelterjohn> if the return type for go becomes the func, the 2nd idea 22:44 < skelterjohn> rather than the chan 22:45 * LuitvD is playing with the image package 22:45 < LuitvD> can an Image be initialized to anything other than completely transparent? 22:45 < jhh> you mean you run it with "x = go bar()" and wait for it and get the return value by "x()"? 22:46 < damjan> skelterjohn: can't you make your own wrapper for that? 22:46 < skelterjohn> yes 22:46 < skelterjohn> damjan: sure, but it takes typing 22:46 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has quit [] 22:46 < damjan> what's the difference with x = bar(); then? 22:46 < skelterjohn> damjan: and different typing depending on what bar's parameters are 22:47 < skelterjohn> what's the same about it? 22:47 < damjan> [23:50] <jhh> you mean you run it with "x = go bar()" and wait for it and get the return value by "x()"? 22:47 < skelterjohn> caveat: this suggestion will never happen. just thinking out loud 22:47 < skelterjohn> x = bar() waits for bar to complete 22:47 < damjan> this seems to me exactly the same as calling the function 22:47 < skelterjohn> with x = go bar() and then later x(), you can do things in between 22:48 < damjan> ah so x() waits 22:48 < skelterjohn> like, the rest of the program and call x() at the end 22:48 < skelterjohn> or defer it 22:48 < damjan> there was a name for that 22:48 < LuitvD> that's what channels are for, isn't it? 22:48 < skelterjohn> you could do it with a channel, too 22:48 < skelterjohn> i think that sometimes a thunk's syntax is a bit nicer 22:51 < skelterjohn> though in this case it's just my aesthetics... using chans wherever possible is clearly the go way so that would be it 22:53 < damjan> skelterjohn: it's something like lazy evaluation 22:53 < damjan> haskell has it, it seems D has it too 22:53 -!- rhelmer [n=rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has joined #go-nuts 22:53 < skelterjohn> i call them "Future"s in http://code.google.com/p/goconc/ 22:54 < skelterjohn> what would be sweet is if you could say "foo(go a(), go b())" 22:54 < skelterjohn> and have a and b execute in parallel, but the call to foo wait for both of them 22:54 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 22:55 < skelterjohn> but that is asking a bit much, i think 22:57 -!- nchaimov [n=cowtown@c-71-237-208-209.hsd1.or.comcast.net] has quit [Read error: 104 (Connection reset by peer)] 22:58 < jessta> skelterjohn: you could do that by wrapping it up in a function the takes a function pointer 22:58 < skelterjohn> as i did in goconc 22:59 < skelterjohn> i understand that i am not suggesting new functionality 22:59 < skelterjohn> just new sugar 22:59 -!- nchaimov [n=cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined #go-nuts 22:59 -!- Demp [n=Demp@bzq-79-179-1-219.red.bezeqint.net] has quit [Read error: 104 (Connection reset by peer)] 23:00 < jessta> but how often would you do such a thing? 23:02 -!- cc_br [n=caio@200-101-118-179.bsace704.dsl.brasiltelecom.net.br] has joined #go-nuts 23:03 < cc_br> hi all 23:03 < cc_br> is there some type of "using" directive in go so I dont need to re-type the package name every time I want to use a function of it? 23:04 < jessta> nope 23:04 < skelterjohn> jessta: don't know - haven't written anything serious in go yet :) 23:04 -!- jackman [n=jackman@75-169-148-56.slkc.qwest.net] has joined #go-nuts 23:04 < skelterjohn> well, i made gomatrix, but that doesn't have serious concurrency 23:04 < Eridius> cc_br: you could alias the package to a 1-char name 23:04 < jessta> cc_br: namespaces are a honky great idea 23:04 < Eridius> import P "path" 23:04 < skelterjohn> cc_br: import . "path" 23:05 -!- Netsplit kubrick.freenode.net <-> irc.freenode.net quits: Fringehead, kleinchris, trevor, jdp, Garen, viirya, Fraeon, DerHorst, mward, fifoman, (+34 more, use /NETSPLIT to show all of them) 23:05 < skelterjohn> naming it '.' means you don't have to identify the package 23:06 < Ycros> if you use shortcuts like that, and I ever have to read your code, I will be angry 23:06 -!- tav [n=tav@78.147.5.123] has quit [Read error: 60 (Operation timed out)] 23:06 < cc_br> ok, so I will not use them =) 23:06 < cc_br> but thanks for the answers 23:07 -!- Netsplit over, joins: jdp, mycroftiv, eno, Guest74057, p4p4_, Vova, Kniht, Kashia, Cyanure, Venom_X (+13 more) 23:07 -!- rrr_ [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts 23:07 -!- Netsplit over, joins: soul9, yiyus, trevor, iwikiwi, sinuhe, Garen, General1337, +iant, fifoman, smcquay (+11 more) 23:08 < LuitvD> whoops, split 23:08 < cc_br> I will use the shortcut skelterjohn suggested me to code, and do a s/shortcut/actual_package_name/ after that 23:08 < cc_br> will ease coding a lot. thx :-D 23:08 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [Remote closed the connection] 23:08 < LuitvD> does anyone know how to make a vector of, for example, floats? 23:09 < skelterjohn> you won't be able to find/replace a blank 23:09 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined #go-nuts 23:09 < skelterjohn> LuitvD: you can use containers/Vector, but it won't be as fast as it could be until there are generics 23:09 < cc_br> I will use an uncommon character like 23:09 < cc_br> import $ "package" 23:10 < Eridius> cc_br: and how is that going to solve anything? 23:10 < cc_br> Eridius: just to reduce my typin' 23:10 -!- stalled_ [n=411@unaffiliated/stalled] has quit [Excess Flood] 23:10 < skelterjohn> can you use $ as an identifier? 23:11 -!- stalled [n=411@unaffiliated/stalled] has joined #go-nuts 23:11 < cc_br> didn't test, if not will find another char 23:11 < cc_br> will do a quick test here, hang on 23:12 -!- andern [n=NA@55.84-234-230.customer.lyse.net] has quit [Read error: 104 (Connection reset by peer)] 23:12 -!- andern [n=NA@55.84-234-230.customer.lyse.net] has joined #go-nuts 23:16 < cc_br> Funny, i've tried $, #, %, a theta θ, and ohf***, none of them worked 23:16 < cc_br> but import P "path" worked. 23:16 < pure_x01> In Go is SIGSEGV: segmentation violation allways considered a null pointer error ? 23:16 -!- tav [n=tav@92.27.163.221] has joined #go-nuts 23:17 < jessta> cc_br: learn to copy paste 23:17 <+iant> pure_x01: a null pointer is certainly the most common cause of a SIGSEGV, but it's not the only cause; you should be able to check whether the memory address is 0 23:18 -!- Vova [n=Vova@77.127.8.55] has quit [Connection timed out] 23:18 < skelterjohn> I'm surprised that θ didn't work 23:18 < cc_br> skelterjohn: I've tested with a capital theta now ϴ and it worked :) 23:19 < pure_x01> iant: i did a simple test and i got the address: Faulting address: 0x20 http://pastebin.com/m64143ea2 23:19 < jhh> do you have a greek keyboard layout or how does that reduce your typing? 23:19 < cc_br> skelterjohn: it seems that the first letter of the identifier needs to be capitalized 23:19 <+iant> pure_x01: hmmm, that's true, the address need not be zero 23:20 <+iant> maybe the message could say something like "probably a null pointer dereference" 23:20 < skelterjohn> lower case θ works fine for me 23:20 < cc_br> jhh: the theta was just a test 23:20 < skelterjohn> jhh: I have ctrl-option-space switch me to a greek keyboard :) 23:20 < pure_x01> iant: sounds like a good idea.. 23:21 < cc_br> skelterjohn: hmm, maybe I should do an update of my go source code, I've compiled mine 4 days ago. 23:21 < jhh> skelterjohn: you're using greek letters in code on a regular basis? 23:21 < skelterjohn> for some statistics stuff, yeah 23:21 < jhh> skelterjohn: I suppose you're half american, half greek ;) 23:21 -!- Venom_X [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has quit [] 23:22 < skelterjohn> no, half computer scientist, half statistician (= machine learning ist) 23:22 < pure_x01> iant: the error text is emmitted from signal.c and there is version for each supported os and platform and i have only access to Linux x86 and amd64 .. so i guess only submit patches for the platforms that i can verify on ? 23:23 < jhh> skelterjohn: me too. always used the english transcription 23:23 < skelterjohn> now that go accepts unicode, it was nice to label the mean μ :) 23:24 -!- ShadowIce [n=pyoro@unaffiliated/shadowice-x841044] has quit ["Verlassend"] 23:24 <+iant> pure_x01: change all the targets if you can; you should be able to build them to make sure that they compile, even if you can't test the results; thanks 23:25 < jhh> pure_x01: I can try darwin 23:25 < pure_x01> iant: sure i will do that 23:25 -!- Venom_X [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has joined #go-nuts 23:25 -!- Demp [n=Demp@bzq-79-177-30-49.red.bezeqint.net] has joined #go-nuts 23:26 < pure_x01> bed time now.. thanx everybody 23:26 -!- pure_x01 [n=pure@c83-248-3-188.bredband.comhem.se] has quit ["Leaving"] 23:27 < cc_br> i am going to sleep too, got to work tomorrow. thk for all the help 23:27 -!- cc_br [n=caio@200-101-118-179.bsace704.dsl.brasiltelecom.net.br] has left #go-nuts [] 23:28 -!- Amaranth_ [n=travis@ubuntu/member/Amaranth] has quit [Read error: 60 (Operation timed out)] 23:29 -!- mward_ [n=mward@136.sub-75-207-168.myvzw.com] has joined #go-nuts 23:29 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined #go-nuts 23:30 < Eridius> ugh codereview fail. I cannot download a changelist I created on another computer to this one, and make it a local change 23:30 < jhh> The curse of CET... 23:30 < Eridius> which means I cannot hg sync and re-upload 23:31 <+iant> Eridius: hg clpatch 23:31 <+iant> should download the CL to your computer 23:31 < Eridius> iant: the changelist is 2 months old. The file in question has been modified, and clpatch rejects it 23:31 <+iant> ugh 23:31 <+iant> I guess you could update back to the old date, apply clpatch, and update to tip 23:31 * Eridius reiterates his annoyance at codereview. Why can't it generate commits and trade those around? 23:31 <+iant> maybe 23:32 < Eridius> hrm 23:32 < Eridius> well no, I can't 23:32 < Eridius> because I have local changes 23:32 < Eridius> due to pending changelists 23:32 <+iant> well, you could do it in a different working tree 23:32 < Eridius> and since those aren't stored as a commit, I can't revert my history 23:32 * Eridius hates on codereview 23:32 < Eridius> why doesn't it keep local commits for the changelists? 23:32 <+iant> I don't know; could we get the same workflow if it worked that way? 23:32 < Eridius> I don't see why not 23:33 <+iant> it's not my area of expertise 23:33 < Eridius> keep changelists as a series of patches layered on top of history, the way quilt works in git 23:33 -!- RobRussell [n=rob@76-10-156-191.dsl.teksavvy.com] has joined #go-nuts 23:33 * Eridius wishes it was at least using git, then he'd have the knowledge to fix this stuff 23:33 <+iant> that one wasn't our choice 23:34 -!- mertimor [n=mertimor@p578ED871.dip.t-dialin.net] has quit [] 23:34 < skelterjohn> everyone should just use RCS and diff and quit whining so much 23:34 <+iant> hey, when I started working on gcc, it used numbered emacs backup files 23:34 <+iant> switching to RCS was a big step 23:34 -!- tomestla [n=tom@AToulouse-151-1-10-131.w83-193.abo.wanadoo.fr] has quit [Read error: 60 (Operation timed out)] 23:34 < Ycros> lol 23:35 < Ycros> iant: and is your preferred tool now git? 23:35 <+iant> I actually haven't used git much at all 23:35 < Ycros> okay. I don't like it much 23:35 <+iant> I'm not happy with any of the tools at present, but I'm not enough of an expert to complain well 23:35 * Eridius prefers git over all other DVCSs 23:36 < Ycros> iant: just vaguely curious what you would have chosen if it had been up to you 23:36 < damjan> git is great 23:36 < Ycros> Eridius: I prefer bzr 23:36 <+iant> This is what I want: http://www.airs.com/blog/archives/222 23:36 -!- mward [n=mward@chml01.drwholdings.com] has quit [Read error: 110 (Connection timed out)] 23:36 <+iant> I would probably have picked git for Go, since it seems to be the most popular these days 23:37 -!- plexdev [n=plexdev@arthur.espians.com] has quit [Remote closed the connection] 23:38 < Ycros> iant: sounds like you want a lot of cherrypicking 23:38 < Ycros> darcs is _awesome_ for that 23:38 <+iant> I haven't looked at darcs at all 23:38 < Eridius> darcs is interesting, but not terribly practical 23:38 < Ycros> iant: it makes me sad that people pick git because it's the popular choice, because I don't think it's that great 23:38 < Eridius> Ycros: why don't you like it? 23:39 < Ycros> Eridius: in my previous job darcs was the primary dvcs used, it was practical 23:39 < damjan> ... or better what do you like more 23:39 -!- plexdev [n=plexdev@arthur.espians.com] has joined #go-nuts 23:39 < adiabatic> Ycros: What do you like more than git, and why? 23:39 < damjan> i used darcs 1 .. it wasn't better than git and the community vanished then 23:40 -!- Cyanure [n=cyanure@81-65-198-68.rev.numericable.fr] has quit [Remote closed the connection] 23:40 < Ycros> bzr. It has a nicer user interface (ie. I find it a lot simpler and straightforeward to use, I dived right into bzr - git took me a while to wrap my head around) 23:40 < Ycros> plus bzr has a neat plugin system, and a whole ton of useful plugins 23:41 < Ycros> damjan: the haskell community still mostly uses darcs 23:41 < Eridius> git is confusing if you try and think about it like other VCSs, but once you stop trying to cram it into the shape left behind by other VCSs you'll handle it much better 23:41 < damjan> the 2.0 branch should be better, but it lost momentum 23:41 < Eridius> Ycros: yes, the fact that the haskell community still mostly uses darcs is rather annoying any time I have to deal with one of those repos 23:42 < Ycros> Eridius: "git is confusing if you try and think about it like other VCSs" this is exactly why I don't like it 23:42 < Eridius> ack, iant, I cloned my repo, backdated to a known good revision, clpatch'd the changelist, and hit `hg sync`... and I get a python exception 23:43 <+iant> sigh, sorry about all this 23:43 < Ycros> but the fact is, bzr can do everything git can - but I don't have to wrap my head around it 23:43 < Eridius> Ycros: once you learn how to treat git like git instead of like other VCSs, you'll learn to love it. Git is the most powerful and flexible of any VCS I've ever used 23:43 < Ycros> so why is git so different/hard? 23:43 < Ycros> there's no reason for it 23:43 < Eridius> it's not different because it was made to be different, it's different because it was built without any regard for trying to ape other systems 23:44 < Ycros> once again, "bzr can do everything git can - but I don't have to wrap my head around it" 23:44 < Eridius> iant: ok, I just tweaked my hgrc to point to the original go's codereview.py, and now it works 23:44 < Ycros> bzr has more intuitive commands 23:44 < Eridius> Ycros: bzr is the one DVCS I have the least familiarity with, but my impression is that it's not as flexible as git 23:44 -!- p4p4_ [n=P4p4@24.121.113.82.net.de.o2.com] has quit [Client Quit] 23:46 < Ycros> I mean, I don't mind too much, since I can work with git repos using bzr-git 23:46 < skelterjohn> i know how to use CVS and subversion, and now with go I can use mercurial 23:46 < skelterjohn> I am slow :( 23:47 < damjan> I don't buy the "git is hard" ethos... for me it was easier than cvs, svn or hg 23:48 < damjan> and darcs 1 23:48 < Eridius> ok, when I do `hg sync` and get a merge conflict, and I fix it, how do I mark it as fixed? 23:48 < Ycros> damjan: I picked up bzr and darcs easily, git was hard 23:49 < Ycros> plus i know a bunch of other people (whom I consider to be much better programmers than me) that also had the same experience 23:49 < Ycros> I'm not very familiar with hg though, I haven't really tried learning it 23:49 < skelterjohn> Eridius: I think "hg merge" but that aspect of hg always threw me off a bit - had to figure it out each time it came up 23:50 < damjan> well Iam a bad programmer, and with little experience at that.. and git just came easy 23:50 < Eridius> hrm I just did `hg upload ###` to modify the changelist 23:50 < damjan> :) 23:50 < skelterjohn> so the moral of the story is: git is different, so if you are used to the status quo, it will be tough to pick up 23:50 -!- mward_ [n=mward@136.sub-75-207-168.myvzw.com] has joined #go-nuts 23:51 < Eridius> how do I abandon an issue? 23:51 < Ycros> but once again, when it comes to hg, I have bzr-hg to work with hg repos 23:51 -!- mward [n=mward@136.sub-75-207-168.myvzw.com] has quit [Read error: 104 (Connection reset by peer)] 23:51 < Ycros> I think the only repos I can't work with easily in bzr is darcs or monotone 23:51 < Ycros> but then I haven't looked 23:51 -!- happy_ [n=stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit [Read error: 113 (No route to host)] 23:51 <+iant> Eridius: hg change --delete 23:52 * Eridius just clicked the (X) button in the web interface. Is that appropriate, or should I actually delete it? 23:52 <+iant> I have no idea what that does 23:52 < Eridius> it closes it 23:56 < Eridius> ugh, just got another python exception when trying to submit a new change 23:56 < Eridius> apparently if it has an error parsing the change list, it fucks up because it gave the wrong number of arguments to the prompt() function 23:56 < plexdev> http://is.gd/69O1L by [Adam Langley] in 2 subdirs of go/src/ -- Add 'bench' target to makefiles. 23:56 < LuitvD> does anyone know how to make a vector of, for example, floats? or my own type? 23:57 < Eridius> LuitvD: you can use the vector.Vector class, as long as you're ok with treating everythign as interface{} 23:57 < LuitvD> I don't understand interface{} I guess 23:57 < skelterjohn> container/Vector 23:57 < Ycros> Eridius: are these bugs in the extension that's bundled with go, or hg itself? 23:58 -!- Venom_X_ [n=pjacobs@66.54.185.131] has joined #go-nuts 23:58 < Eridius> Ycros: codereview.py 23:58 < skelterjohn> LuitvD: an interface contains a pointer to a struct or other base type 23:58 < Ycros> mmm 23:58 < skelterjohn> to get a float out of an interface{}, you can say theInterface.(float) 23:58 < skelterjohn> called a type assertion 23:58 < Ycros> Eridius: what line was that on? 23:58 < Eridius> Ycros: sadly I already cleared my history. But it was a call to prompt() about error parsing change list 23:59 < Eridius> 591 23:59 < LuitvD> how do I convert a interface {} object back to what I put into it? 23:59 < Eridius> LuitvD: see what skelterjohn just said 23:59 < skelterjohn> just told you,, LuitvD --- Log closed Wed Jan 13 00:00:12 2010