--- Log opened Wed Dec 30 00:00:00 2009 --- Day changed Wed Dec 30 2009 00:00 < dho> yeah it's still doing that even for a simple enum { a, b, c, d }; 00:00 < WalterMundt> it compiles something that looks like typeof(IDNA_SUCCESS) __cgo__42; and then checking the debug info of the latter symbol 00:00 < dho> yeah. 00:01 < WalterMundt> ahh 00:01 < WalterMundt> I think I see it now 00:01 < WalterMundt> if you reference the enum type being typedef'd, it generates a Cref to the TYPE 00:02 < dho> no 00:02 < dho> create test.go 00:02 < WalterMundt> no? 00:02 < dho> package enum 00:02 < dho> // enum {a, b, c, d}; 00:02 < dho> import "C" 00:02 < dho> import "fmt" 00:02 < dho> func Test() { fmt.Printf("%d %d %d %d", C.a, C.b, C.c, C.d) } 00:02 < dho> does the same thing 00:02 < dho> i'll take a look at it in a bit 00:02 < dho> i gotta go home 00:03 < WalterMundt> k 00:03 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined #go-nuts 00:05 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has quit ["ChatZilla 0.9.85-rdmsoft [XULRunner 1.9.0.14/2009090900]"] 00:06 < WalterMundt> dho: try this 00:07 < WalterMundt> http://gopaste.org/view/4CzD7 00:07 < WalterMundt> you'll note the code generated is completely different 00:07 -!- yoyo_ [n=chatzill@45.246.39-62.rev.gaoland.net] has quit [Remote closed the connection] 00:07 < WalterMundt> and changes back if you comment out the declaration of Test2() 00:08 < WalterMundt> Referring to the enum as a type via C.* (anywhere in the cgo file) will change the way it translates members to the enum vars 00:10 -!- yoyo_ [n=chatzill@45.246.39-62.rev.gaoland.net] has joined #go-nuts 00:15 -!- stevenyvr [n=schan@76-10-184-108.dsl.teksavvy.com] has quit ["Computer has gone to sleep"] 00:17 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has quit [Read error: 104 (Connection reset by peer)] 00:20 < WalterMundt> gotta go home myself, so I filed an issue: http://code.google.com/p/go/issues/detail?id=479 00:23 -!- WalterMundt [n=waltermu@twiki/developer/EtherMage] has quit ["Leaving."] 00:23 -!- spacebug [n=spacebug@jabberwocky.forty-two.be] has joined #go-nuts 00:24 -!- iant [n=iant@nat/google/x-gkhvadlozgvqipvb] has quit [Read error: 60 (Operation timed out)] 00:25 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts 00:25 -!- osmosis [n=steven@m1d0e36d0.tmodns.net] has joined #go-nuts 00:34 -!- carllerche [n=carllerc@99-8-186-86.lightspeed.snfcca.sbcglobal.net] has quit [] 00:42 -!- peterallenwebb [n=peterall@c-68-40-48-227.hsd1.mi.comcast.net] has joined #go-nuts 00:45 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 00:52 -!- iant [n=iant@67.218.110.145] has joined #go-nuts 00:52 -!- mode/#go-nuts [+v iant] by ChanServ 00:53 -!- peterallenwebb [n=peterall@c-68-40-48-227.hsd1.mi.comcast.net] has left #go-nuts [] 00:54 -!- peterallenwebb [n=peterall@c-68-40-48-227.hsd1.mi.comcast.net] has joined #go-nuts 01:01 < gnuvince> With the new syntax changes, the go compiler inserts semi-colons after everyline? 01:02 < jhh> dho: great mail 01:02 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit [] 01:03 <+iant> gnuvince: sort of but not quite, the exact rules are in the spec 01:03 < jhh> gnuvince: I think you don't have to type the semi-colons. The compiler doesn't want them anymore. 01:04 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts [] 01:04 < gnuvince> Cause I found out that my usual programming style messes up the new syntax 01:04 < gnuvince> I write my if/else like this: 01:04 < gnuvince> if ... { 01:04 < gnuvince> } 01:04 < gnuvince> else { 01:04 < gnuvince> } 01:04 <+iant> now you have to write } else { 01:05 < gnuvince> Yeah 01:05 < gnuvince> Which I hate 01:05 < gnuvince> (the else should be aligned with the if) 01:13 < jhh> you can use gofmt to change something you like into something the go compiler likes 01:13 < jhh> (i think) 01:13 -!- yoyo_ [n=chatzill@45.246.39-62.rev.gaoland.net] has quit ["ChatZilla 0.9.86 [Firefox 3.0.5/2009102814]"] 01:25 -!- triplez [n=triplez@bb116-14-22-12.singnet.com.sg] has joined #go-nuts 01:34 -!- vizzord [n=exn@195.49.206.202] has joined #go-nuts 01:41 -!- tav_ [n=tav@92.27.175.249] has joined #go-nuts 01:51 -!- crakrjak [n=merc@rrcs-70-62-156-154.central.biz.rr.com] has quit [Remote closed the connection] 01:52 -!- tav [n=tav@89.243.205.194] has quit [Read error: 110 (Connection timed out)] 01:54 -!- fyusy [n=fyusman@110.174.144.171] has joined #go-nuts 01:54 -!- iant [n=iant@67.218.110.145] has quit [Read error: 60 (Operation timed out)] 01:55 -!- carllerche [n=carllerc@c-69-181-129-204.hsd1.ca.comcast.net] has joined #go-nuts 01:59 < osmosis> how do I get started with Go on ubuntu? 02:00 -!- sinuhe [n=user@kaptah.deevans.net] has quit ["ERC Version 5.3 (IRC client for Emacs)"] 02:00 < osmosis> carriage returns matter? 02:01 -!- Guest56148 [n=elmar@188.107.223.252] has quit ["Leaving"] 02:05 -!- fwiffo [n=fwiffo@unaffiliated/fwiffo] has joined #go-nuts 02:28 -!- wayneese2uin [n=wayneese@rrcs-72-45-208-165.nys.biz.rr.com] has joined #go-nuts 02:29 -!- wayneeseguin [n=wayneese@rrcs-72-45-208-165.nys.biz.rr.com] has quit [Nick collision from services.] 02:30 -!- napsy [n=luka@93-103-201-54.dynamic.dsl.t-2.net] has quit [Read error: 60 (Operation timed out)] 02:31 < dho> osmosis: You install it? More specific questions are useful. 02:31 < dho> jhh: Thanks 02:35 -!- vizzord [n=exn@195.49.206.202] has quit ["see you"] 02:38 -!- plexdev [n=plexdev@arthur.espians.com] has quit [Remote closed the connection] 02:40 -!- plexdev [n=plexdev@arthur.espians.com] has joined #go-nuts 02:42 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has joined #go-nuts 02:44 -!- michaelh [n=mux@66-169-117-157.dhcp.ftwo.tx.charter.com] has quit [Read error: 54 (Connection reset by peer)] 02:45 -!- jhh [n=jhh@g228195120.adsl.alicedsl.de] has quit [Read error: 60 (Operation timed out)] 02:45 -!- jhh [n=jhh@f049008158.adsl.alicedsl.de] has joined #go-nuts 02:46 -!- Zarutian [n=zarutian@194-144-84-110.du.xdsl.is] has quit [] 02:47 -!- michaelh [n=mux@66-169-117-157.dhcp.ftwo.tx.charter.com] has joined #go-nuts 02:49 < dho> I wonder if the problem is that no dwarf symbols are generated 02:49 < dho> if the enum isn't given a type 02:50 < dho> that doesn't make sense. 02:50 -!- fwiffo [n=fwiffo@unaffiliated/fwiffo] has quit [Remote closed the connection] 02:55 < dho> aha. 02:59 -!- adiabatic [n=adiabati@dsl-206-55-130-248.tstonramp.com] has quit ["Rockin’ music will set you free."] 03:00 -!- kmc [n=keegan@207.237.163.75] has joined #go-nuts 03:00 -!- kmc [n=keegan@207.237.163.75] has left #go-nuts ["Leaving"] 03:00 < dho> except that's exactly what happens for some reason 03:03 -!- rbohn [n=chatzill@d103.digis.net] has joined #go-nuts 03:03 < dho> plot thickens. 03:03 < dho> we exit the for loop skipping the enum type. 03:03 < dho> because it is unused... 03:04 -!- ikke [n=ikke@unaffiliated/ikkebr] has quit [] 03:04 -!- mertimor [n=mertimor@p4FE75DFA.dip.t-dialin.net] has quit [] 03:04 -!- acangiano [n=acangian@69-196-190-129.dsl.teksavvy.com] has joined #go-nuts 03:09 -!- osmosis [n=steven@m1d0e36d0.tmodns.net] has quit ["Ex-Chat"] 03:14 -!- acangiano [n=acangian@69-196-190-129.dsl.teksavvy.com] has quit [] 03:14 < dho> nope. 03:14 < dho> still wrong :) 03:30 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit [Read error: 54 (Connection reset by peer)] 03:30 -!- triplez [n=triplez@bb116-14-22-12.singnet.com.sg] has quit [] 03:31 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 03:33 -!- triplez [n=triplez@bb116-14-22-12.singnet.com.sg] has joined #go-nuts 03:35 -!- rndbot [n=bot@wikipedia/Gracenotes] has joined #go-nuts 03:38 -!- iant [n=iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 03:38 -!- mode/#go-nuts [+v iant] by ChanServ 03:38 < dho> ugh, dealing with dwarf is a pita 03:39 -!- Transformer [n=Transfor@ool-43563460.dyn.optonline.net] has joined #go-nuts 03:42 -!- Transformer [n=Transfor@ool-43563460.dyn.optonline.net] has left #go-nuts [] 03:59 < dho> Was there some data::dumper style thing for go? 03:59 < dho> I know fmt.Printf("%t"), but I'd like to know which fields have those values 04:01 -!- murodese [n=James@124-169-145-61.dyn.iinet.net.au] has joined #go-nuts 04:06 < dho> Yeah, the problem is that there's no way to reference an anonymous enum to get dwarf output for it. 04:20 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has quit ["ChatZilla 0.9.85-rdmsoft [XULRunner 1.9.0.14/2009090900]"] 04:26 < dho> hrm 04:26 * dho loves being the only person in here. 04:31 < dho> I'm really not sure how to address this issue. 04:32 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit [Read error: 60 (Operation timed out)] 04:32 < dho> iant: you don't happen to be around? 04:32 <+iant> dho: I am around 04:32 <+iant> I don't think I know anything helpful here, though 04:33 < dho> heh 04:33 < dho> more problems with enums in cgo 04:33 < dho> reading through how it actually works, cgo is really limited and fragile. 04:33 <+iant> yeah 04:36 < dho> There's seemingly no way to get dwarf stabs for an anonymous enum 04:38 <+iant> I assume that the enum is not used for any actual variable 04:38 < dho> And I'm fresh out of ideas. For enum {a}; there is no way to understand that C.a comes from an enum 04:38 < dho> You actually have to have something like 04:38 < dho> typedef enum {a} foo; 04:38 < dho> and then have 04:39 < dho> func useless() C.foo { return C.a; } 04:39 <+iant> What if you use -fno-eliminate-unused-debug-types? 04:39 < dho> well that would require me to know every -foption <_< 04:40 < dho> I'll try that. 04:40 <+iant> you don't read the gcc manual regularly?? 04:40 < dho> haha 04:40 < dho> poor you :) 04:40 < dho> oh my gooses 04:40 < dho> you are a god. 04:41 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 04:41 <+iant> now you can find out what else breaks when you use that.... 04:42 < dho> Well, no way to do that without putting it in, I guess. 04:42 * dho doesn't have a comprehensive cgo suite. 04:42 < dho> although 04:46 < dho> Seems to be OK if you don't reference the types 04:51 -!- [[sroracle]] [n=sroracle@unaffiliated/sroracle] has quit ["<sresp.co.cc>"] 04:55 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined #go-nuts 04:57 -!- tar_ [n=tom@cpe-24-210-143-83.woh.res.rr.com] has joined #go-nuts 04:58 -!- tar_ [n=tom@cpe-24-210-143-83.woh.res.rr.com] has quit [Remote closed the connection] 05:00 -!- skelterjohn [n=jasmuth@c-76-99-92-193.hsd1.nj.comcast.net] has joined #go-nuts 05:07 -!- peterallenwebb [n=peterall@c-68-40-48-227.hsd1.mi.comcast.net] has quit [] 05:13 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit ["Bye Bye"] 05:16 -!- Macpunk [n=macpunk@cpe-72-177-27-209.austin.res.rr.com] has joined #go-nuts 05:32 -!- skelterjohn [n=jasmuth@c-76-99-92-193.hsd1.nj.comcast.net] has quit [] 05:36 -!- crakrjak [n=merc@rrcs-70-62-156-154.central.biz.rr.com] has joined #go-nuts 05:37 -!- ephemere [n=todd@97-84-0-169.dhcp.aldl.mi.charter.com] has joined #go-nuts 05:48 -!- tar_ [n=tom@cpe-24-210-143-83.woh.res.rr.com] has joined #go-nuts 06:14 -!- ephemere [n=todd@97-84-0-169.dhcp.aldl.mi.charter.com] has quit ["Leaving"] 06:16 -!- SoniaKeys [n=soniakey@c-76-118-178-209.hsd1.ma.comcast.net] has joined #go-nuts 06:19 -!- asyncster [n=asyncste@206.169.213.106] has quit [Read error: 60 (Operation timed out)] 06:23 -!- HeavensRevenge [n=quassel@S0106001346f3dd33.ls.shawcable.net] has joined #go-nuts 06:30 -!- alc [n=alc@222.128.130.69] has joined #go-nuts 06:31 -!- amuck [n=amuck@h242.92.88.75.dynamic.ip.windstream.net] has quit [Remote closed the connection] 06:34 -!- rbohn [n=chatzill@d103.digis.net] has quit [Read error: 60 (Operation timed out)] 06:41 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit [] 06:42 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts 06:47 -!- path[l] [n=path@120.138.102.34] has quit [] 06:52 -!- AmirMohammad [n=amir@unaffiliated/gluegadget] has joined #go-nuts 06:58 -!- jA_cOp [n=yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 07:01 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit [Connection timed out] 07:09 -!- alc [n=alc@222.128.130.69] has quit ["Leaving..."] 07:21 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit [] 07:33 -!- Kindred [n=squirt@obscured.x6b.org] has joined #go-nuts 07:37 -!- carllerche [n=carllerc@c-69-181-129-204.hsd1.ca.comcast.net] has quit [] 07:56 -!- cam [n=cam@unaffiliated/cam] has joined #go-nuts 07:56 -!- cam [n=cam@unaffiliated/cam] has left #go-nuts ["Time to get some fresh non-indoors air."] 08:01 -!- HeavensRevenge [n=quassel@S0106001346f3dd33.ls.shawcable.net] has left #go-nuts ["http://quassel-irc.org - Chat comfortably. Anywhere."] 08:04 -!- Garen [n=garen@cpe-75-87-255-36.natnow.res.rr.com] has joined #go-nuts 08:04 -!- rauli [i=x@luno.fi] has joined #go-nuts 08:05 -!- SoniaKeys [n=soniakey@c-76-118-178-209.hsd1.ma.comcast.net] has left #go-nuts [] 08:14 -!- path[l] [n=path@59.162.86.164] has joined #go-nuts 08:19 -!- teedex [n=teedex@adsl-75-36-137-249.dsl.pltn13.sbcglobal.net] has joined #go-nuts 08:19 -!- robot12 [n=root@robot12.kgts.ru] has quit [Read error: 104 (Connection reset by peer)] 08:31 -!- Macpunk [n=macpunk@cpe-72-177-27-209.austin.res.rr.com] has quit ["Leaving"] 08:38 -!- tar_ [n=tom@cpe-24-210-143-83.woh.res.rr.com] has quit [] 08:41 -!- p0g0__ [n=pogo@unaffiliated/p0g0] has quit [Read error: 60 (Operation timed out)] 08:46 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has joined #go-nuts 08:54 -!- p0g0__ [n=pogo@unaffiliated/p0g0] has joined #go-nuts 09:03 -!- fyusy [n=fyusman@110.174.144.171] has quit [Read error: 113 (No route to host)] 09:11 -!- mycroftiv [n=infernus@h69-128-47-243.mdsnwi.dedicated.static.tds.net] has quit [Read error: 104 (Connection reset by peer)] 09:23 -!- ShadowIce [i=shadowic@unaffiliated/shadowice-x841044] has joined #go-nuts 09:26 -!- mycroftiv [n=infernus@h69-128-47-243.mdsnwi.dedicated.static.tds.net] has joined #go-nuts 09:26 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 09:30 -!- jA_cOp [n=yakobu@unaffiliated/ja-cop/x-9478493] has quit ["Leaving"] 09:32 -!- Oejet [n=s022018@glint04.gbar.dtu.dk] has left #go-nuts [] 09:32 -!- triplez [n=triplez@bb116-14-22-12.singnet.com.sg] has quit [] 09:33 -!- triplez [n=triplez@bb116-14-22-12.singnet.com.sg] has joined #go-nuts 09:35 -!- ineol [n=hal@mar75-9-88-171-191-168.fbx.proxad.net] has joined #go-nuts 09:35 -!- ineol [n=hal@mar75-9-88-171-191-168.fbx.proxad.net] has quit [Client Quit] 09:37 -!- gkmngrgn [n=gkmngrgn@78.185.220.154] has joined #go-nuts 09:42 -!- GeoBSD [n=geocalc@lns-bzn-20-82-64-3-143.adsl.proxad.net] has joined #go-nuts 09:43 -!- tomestla [n=tom@87.100.115.249] has joined #go-nuts 09:43 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Connection timed out] 09:44 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has quit [Read error: 110 (Connection timed out)] 09:44 -!- ineol [n=hal@mar75-9-88-171-191-168.fbx.proxad.net] has joined #go-nuts 09:51 -!- triplez [n=triplez@bb116-14-22-12.singnet.com.sg] has quit [] 10:04 -!- rakd [n=rakd@219.117.252.7.static.zoot.jp] has joined #go-nuts 10:13 -!- hyakuhei [n=hyakuhei@78.32.138.28] has joined #go-nuts 10:17 -!- yoyo_ [n=chatzill@45.246.39-62.rev.gaoland.net] has joined #go-nuts 10:21 -!- elmar [n=elmar@188.107.223.163] has joined #go-nuts 10:25 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit [] 10:39 -!- JPascal [n=jpascal@195.239.8.22] has joined #go-nuts 10:42 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has joined #go-nuts 10:44 -!- path[l] [n=path@59.162.86.164] has quit [] 10:45 < JPascal> iant, http://pastebin.com/m7e0839bb 10:46 < JPascal> Can`t build after hg pull .... make 10:46 -!- path[l] [n=path@122.182.0.38] has joined #go-nuts 10:54 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts 10:57 -!- Soak [n=root@mst45-1-82-231-239-194.fbx.proxad.net] has joined #go-nuts 10:58 -!- kanru [n=kanru@61-30-10-70.static.tfn.net.tw] has quit ["WeeChat 0.3.1-dev"] 10:59 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has joined #go-nuts 11:08 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 11:17 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has quit [Connection timed out] 11:20 -!- gkmngrgn [n=gkmngrgn@unaffiliated/gkmngrgn] has quit [Remote closed the connection] 11:30 -!- path[l] [n=path@122.182.0.38] has quit [] 11:31 -!- path[l] [n=path@59.162.86.164] has joined #go-nuts 11:35 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has joined #go-nuts 12:04 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts 12:23 -!- ikke [n=ikke@unaffiliated/ikkebr] has joined #go-nuts 12:24 -!- mertimor [n=mertimor@p4FE75CA1.dip.t-dialin.net] has joined #go-nuts 12:25 -!- mertimor [n=mertimor@p4FE75CA1.dip.t-dialin.net] has quit [Client Quit] 12:28 -!- alc [n=alc@222.128.137.233] has joined #go-nuts 12:34 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has joined #go-nuts 12:40 -!- DerHorst [n=Horst@e176121212.adsl.alicedsl.de] has joined #go-nuts 12:50 -!- path[l] [n=path@59.162.86.164] has quit [] 12:57 -!- Demp_ [n=Demp@bzq-79-176-26-96.red.bezeqint.net] has joined #go-nuts 12:58 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts 13:03 -!- Demp [n=Demp@109.64.48.40] has quit [Read error: 60 (Operation timed out)] 13:05 -!- rbohn [n=chatzill@d103.digis.net] has joined #go-nuts 13:08 -!- TMinus36 [n=serverz@pdpc/supporter/student/tminus36] has joined #go-nuts 13:14 -!- Soak [n=root@mst45-1-82-231-239-194.fbx.proxad.net] has quit [] 13:18 -!- SoniaKeys [n=soniakey@c-76-118-178-209.hsd1.ma.comcast.net] has joined #go-nuts 13:18 -!- Soak [n=root@mst45-1-82-231-239-194.fbx.proxad.net] has joined #go-nuts 13:21 -!- JPascal [n=jpascal@195.239.8.22] has left #go-nuts [] 13:36 -!- wayneeseguin [n=wayneese@rrcs-72-45-208-165.nys.biz.rr.com] has quit ["Lost terminal"] 13:38 -!- hyakuhei [n=hyakuhei@78.32.138.28] has quit ["Leaving"] 13:47 -!- wayneeseguin [n=wayneese@rrcs-72-45-208-165.nys.biz.rr.com] has joined #go-nuts 13:48 -!- rakd [n=rakd@219.117.252.7.static.zoot.jp] has quit ["See you..."] 13:59 -!- path[l] [n=path@59.162.86.164] has joined #go-nuts 14:04 -!- hyakuhei [n=hyakuhei@unaffiliated/robc] has joined #go-nuts 14:06 -!- Xera` [n=brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 14:07 -!- DerHorst [n=Horst@e176121212.adsl.alicedsl.de] has quit [Remote closed the connection] 14:16 -!- jA_cOp [n=yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 14:25 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has quit [Read error: 110 (Connection timed out)] 14:26 -!- Ryan__ [n=ryan@cpe-98-27-170-194.neo.res.rr.com] has quit ["throng to learn what the heck unity3d does"] 14:26 -!- Ryan__ [n=ryan@cpe-98-27-170-194.neo.res.rr.com] has joined #go-nuts 14:28 -!- alc [n=alc@222.128.137.233] has quit [] 14:35 -!- tomestla [n=tom@87.100.115.249] has quit [Read error: 60 (Operation timed out)] 14:43 -!- mertimor [n=mertimor@p4FE75CA1.dip.t-dialin.net] has joined #go-nuts 15:12 -!- Ryan__ [n=ryan@cpe-98-27-170-194.neo.res.rr.com] has quit [Read error: 110 (Connection timed out)] 15:17 -!- gracchus [n=jesse@207-229-149-97.c3-0.stk-ubr1.chi-stk.il.cable.rcn.com] has joined #go-nuts 15:20 -!- skelterjohn [n=jasmuth@c-76-99-92-193.hsd1.nj.comcast.net] has joined #go-nuts 15:20 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined #go-nuts 15:20 < dho> morning john 15:21 < dho> and john. 15:21 < dho> <_< 15:22 < binaryjohn> Morning 15:23 < dho> I wish Russ wasn't out, it's making it a real pain in the ass for me to work on cgo 15:29 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts 15:35 -!- tomestla [n=tom@87.100.115.249] has joined #go-nuts 15:42 -!- mssm [n=mssmfs@ip-95-221-91-60.bb.netbynet.ru] has joined #go-nuts 15:43 -!- Soak [n=root@mst45-1-82-231-239-194.fbx.proxad.net] has quit [Remote closed the connection] 15:45 < skelterjohn> hi dho 15:48 < dho> You don't happen to use cgo for anything do you? 15:52 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit [] 15:52 -!- yoyo__ [n=chatzill@45.246.39-62.rev.gaoland.net] has joined #go-nuts 15:53 -!- AmirMohammad [n=amir@unaffiliated/gluegadget] has quit ["leaving"] 15:53 -!- yoyo_ [n=chatzill@45.246.39-62.rev.gaoland.net] has quit [Read error: 110 (Connection timed out)] 15:54 -!- Vova [i=Vova@87.68.28.206.cable.012.net.il] has quit [Read error: 110 (Connection timed out)] 16:04 < ShadowIce> who can I kick for LC_CTYPE != C -> application crashs? ^^ 16:04 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined #go-nuts 16:05 < dho> is this with gc or gccgo 16:05 < ShadowIce> gc 16:05 < dho> do you have a simple program to demonstrate the crash 16:06 < ShadowIce> sadly no... 16:06 < ShadowIce> but it's quick to reproduce 16:06 < dho> So it won't do it just by having a simple package main func main() {}? 16:08 < ShadowIce> no, it looks like there's a string that gets its memory freed too soon, but I can't reproduce it yet 16:08 -!- insaneroot [n=insanero@p57A28C7F.dip0.t-ipconnect.de] has joined #go-nuts 16:10 < dho> I don't see Go actually using CTYPE anywhere except for setting it in e.g. gotest and cgo 16:12 -!- scm_ [i=justme@c133140.adsl.hansenet.de] has joined #go-nuts 16:12 < ShadowIce> it has to do with gotest (sort of) 16:12 < dho> You are providing next to no useful information. 16:13 < ShadowIce> sorry, trying to watch 26c3 stream at the same time ^^ 16:13 < ShadowIce> if you want to reproduce it: 16:13 < ShadowIce> 1) git clone git://github.com/skybrian/Gongo.git 16:13 < ShadowIce> 2) cd Gongo, 3) gotest 16:14 < dho> ok 16:14 < ShadowIce> 4) set LC_CTYPE to something not C (and the other LC_ stuff as well) and run ./6.out 16:14 < dho> What other LC_ stuff? 16:14 < dho> I don't use it. 16:14 < dho> So you will have to remind me 16:15 -!- WalterMundt [n=waltermu@twiki/developer/EtherMage] has joined #go-nuts 16:15 < dho> WalterMundt: I fixed your problem last night :P 16:15 < WalterMundt> dho: Very nice. I saw your first...four? comments but at last check it was still a WIP 16:15 < dho> haha 16:15 -!- skelterjohn [n=jasmuth@c-76-99-92-193.hsd1.nj.comcast.net] has quit [] 16:15 < ShadowIce> http://pastebin.com/m12852cc0 <-- that's what I have 16:15 < dho> it was very frustrating 16:16 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined #go-nuts 16:16 < WalterMundt> I would have tried to synthesize the type into the test compile so as to get DWARF symbols. Maybe add a "typeof(someexpr);" line for the expressions so you get debug info on their types 16:17 < dho> ShadowIce: so it only faults sometimes? what os? (i'm assuming amd64) 16:17 < WalterMundt> lemme read the bug 16:17 < ShadowIce> Linux/AMD64 16:17 < ShadowIce> no, it faults always 16:17 < ShadowIce> if you run gotest it will set LC_ALL and LC_CTYLE to C, so it won't happen in that case 16:18 -!- skelterjohn [n=jasmuth@c-76-99-92-193.hsd1.nj.comcast.net] has joined #go-nuts 16:18 < skelterjohn> dho: no i don't use cgo for anything 16:18 < ShadowIce> if you run the executable with different LC the last test crashes 16:18 < dho> ShadowIce: works for me. 16:18 < dho> what version of go are you running? 16:18 < dho> (hg identify in $GOROOT) 16:19 < ShadowIce> f2bcfd1ad575 tip 16:19 < WalterMundt> yay for obscure compiler flags 16:19 < dho> ShadowIce: what sort of linux? 16:19 < dho> it doesn't happen here. 16:19 < ShadowIce> Gentoo 16:19 < ShadowIce> did you change the LC? 16:19 < dho> Yes. 16:20 < dho> i've a lolnux workstation at work, it's running centos 5.whatever 16:20 < dho> doesn't crash. 16:20 < dho> ever 16:20 < dho> WalterMundt: yeah. 16:21 < ShadowIce> LC_ALL="de_DE.utf8" ./6.out <-- this crashes here, maybe you don't have that local and it defaults to C or so 16:21 < dho> WalterMundt: iant said to me last night, `what, you don't spend hours every day reading gcc manuals?' 16:22 -!- Daminvar [n=Daminvar@cpe-67-241-129-149.buffalo.res.rr.com] has quit [Read error: 60 (Operation timed out)] 16:22 < dho> ShadowIce: That locale is in /usr/lib/locale 16:22 < dho> so 16:22 < WalterMundt> dho: well, I suppose you could for quite a while without running out 16:22 < WalterMundt> though I won't speculate as to your sanity level afterwards 16:23 < dho> i'm sure haha 16:23 < dho> WalterMundt: you don't happen to have anything that uses _Bool 16:23 < dho> do you? 16:23 < WalterMundt> I don't know what _Bool is so, no 16:23 < dho> C99 boolean type 16:23 < ShadowIce> dho: http://pastebin.com/m1ed6c4d 16:23 < WalterMundt> ahh. ok. I'm not up on most of the C99-isms 16:23 < dho> would like to have someone test it 16:23 < dho> with a patch 16:24 -!- scm [i=justme@c185084.adsl.hansenet.de] has quit [Read error: 110 (Connection timed out)] 16:26 < dho> ShadowIce: yeah, dunno 16:26 < dho> i don't see that 16:26 < dho> file an issue 16:26 < dho> You'll probably want to paste your uname in because Linux/amd64 clearly doesn't cut it for reproducing :) 16:27 < ShadowIce> Linux norad 2.6.31-gentoo-r6 #5 SMP PREEMPT Mon Dec 21 11:35:02 CET 2009 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ AuthenticAMD GNU/Linux 16:27 < dho> in the issue 16:27 < ShadowIce> I'll try it on some other PCs here :) 16:28 < dho> WalterMundt: just out of curiosity though, if I have a cgo file with e.g. 16:29 < dho> package foo /* int bla = 1; */ import ( "C" "fmt" ) func Bar { fmt.Printf("%d\n", C.bla); } 16:29 < dho> is that supposed to print out 1 16:29 < dho> or am I doing something wrong 16:30 < WalterMundt> I don't know. That's the behavior I'd expect, but I don't consider myself an authority on the topic, and I can see why it might break 16:31 < WalterMundt> It looks to me like cgo's variable handling is mainly designed to deal with externs from C libs 16:33 -!- skelterjohn [n=jasmuth@c-76-99-92-193.hsd1.nj.comcast.net] has quit [] 16:34 < keet> is there something similar to C's scanf in go? 16:34 -!- skelterjohn [n=jasmuth@c-76-99-92-193.hsd1.nj.comcast.net] has joined #go-nuts 16:35 < dho> WalterMundt: sure, ok 16:35 < dho> misunderstanding on my part 16:36 < WalterMundt> what does it do, anyway? 16:36 < dho> what does what do? cgo? 16:36 < WalterMundt> your line of cgo 16:36 < dho> crash 16:36 < WalterMundt> ahh 16:36 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has quit [Read error: 110 (Connection timed out)] 16:36 < dho> That's fine in that case. 16:37 < ShadowIce> dho: can't reproduce it on my laptops (linux/386, single core)...and the crash disappears here if I set GOMAXPROCS to 1 16:37 < dho> you didn't say that GOMAXPROCS was not set to 1 16:37 < dho> but it still works for me with GOMAXPROCS=4 16:38 < ShadowIce> I have it at two 16:39 < dho> still works 16:40 < keet> how do I read (formatted) input from stdin? I just want to know if there's a straightforward simple thing like scanf 16:41 < mauke> WHAT 16:41 < mauke> scanf is the opposite of straightforward and simple 16:41 < SoniaKeys> lol 16:42 < keet> ok then how do I read stuff from console in go.. I'm pretty new to it 16:42 < dho> you can use a bufio.Reader on os.Stdin 16:42 -!- [[sroracle]] [n=sroracle@c-98-215-178-14.hsd1.in.comcast.net] has joined #go-nuts 16:44 -!- mssm [n=mssmfs@ip-95-221-91-60.bb.netbynet.ru] has quit ["WeeChat 0.3.0"] 16:44 -!- mssm [n=mssmfs@ip-95-221-91-60.bb.netbynet.ru] has joined #go-nuts 16:45 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts 16:46 < dho> er 16:46 < dho> where the fuck is stdbool.h on linux 16:46 < dho> the only one i can find is at /usr/lib/gcc/x86_64-redhat-linux/4.1.1/include/stdbool.h 16:46 -!- Zarutian [n=zarutian@194-144-84-110.du.xdsl.is] has joined #go-nuts 16:46 -!- hyakuhei [n=hyakuhei@unaffiliated/robc] has quit [Nick collision from services.] 16:46 < WalterMundt> that may be it; it's possible that the distro has it packaged by compiler version 16:47 <+iant> that's the one, it is considered to be a compiler header file 16:47 < mauke> yeah, basically 16:47 < dho> weird. 16:47 -!- rob__ [n=hyakuhei@78.32.138.28] has joined #go-nuts 16:47 * dho wonders why cgo's throwing a syntax error now 16:47 <+iant> stddef.h is the same way 16:47 -!- hyakuhei [n=hyakuhei@unaffiliated/robc] has joined #go-nuts 16:47 < dho> oh, right. 16:47 < dho> semicolons matter in c <_< 16:48 -!- nanooo [n=nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts 16:53 -!- Venom_X [n=pjacobs@66.54.185.131] has joined #go-nuts 16:53 < WalterMundt> heh 16:53 < WalterMundt> they matter in Go too, even the implicit ones. func foo() \n { ... still catches me because that is one place where I'm accustomed to putting the brace on a new line 16:54 -!- rob__ [n=hyakuhei@78.32.138.28] has quit ["Leaving"] 16:55 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has quit [Read error: 60 (Operation timed out)] 16:56 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts 16:56 < dho> hm 16:57 < dho> still not sure what i'm doing wrong. created a libtest.so that has a symbol `foo' which is a boolean set to true 16:57 < dho> have TARG=ctest, CGOFILES=test.go, CGO_LDFLAGS=-ltest 16:57 < dho> libtest.so => /usr/lib64/libtest.so (0x00002b29c87d1000) 16:57 < dho> still segfaults when I try to call it's function to print the bool 16:58 < WalterMundt> strange 16:58 < WalterMundt> does the cgo-generated code look sane? 16:58 < dho> var _C_foo *_C__Bool 16:58 < dho> looks ok to me 16:58 < dho> type _C__Bool bool 16:58 < dho> so 16:59 < WalterMundt> and elsewhere there's a #pragma dynld _C_foo ... 16:59 < WalterMundt> I believe 16:59 < dho> _cgo_defun.c:#pragma dynld ctest·_C_foo foo "/home/devon/golang/pkg/linux_amd64/ctest.so" 16:59 < dho> which again finds the libtest.so in the right place 16:59 < WalterMundt> yeah 16:59 < WalterMundt> I wonder what &C.foo would do 17:00 < dho> http://gopaste.org/view/nS68H 17:00 -!- path[l] [n=path@59.162.86.164] has quit [] 17:01 < dho> [devon@hoko gotest]$ 6g main.go; 6l main.6; ./6.out 17:01 < dho> %t(*ctest._C__Bool=<nil>) 17:01 < dho> heh 17:01 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has quit [Client Quit] 17:01 < WalterMundt> nil, huh? That doesn't sound right... 17:02 < WalterMundt> oh 17:02 < WalterMundt> try changing it from bool foo = true; to "extern bool foo;" 17:02 < dho> oh, right 17:03 < dho> nope :\ 17:05 < WalterMundt> okay, you've hit the limit of any help I can give, I think 17:05 < dho> on your cgo stuff, if you nm the _cgo_.so, what symbols do you get? 17:06 < WalterMundt> I;ll check 17:08 < WalterMundt> http://gopaste.org/view/8y5s3 17:09 < dho> hm, weird. 17:10 < dho> does libidn have anything exported that isn't a function or an enum? 17:10 -!- nanooo [n=nano@95-89-198-45-dynip.superkabel.de] has quit [Read error: 110 (Connection timed out)] 17:11 -!- AmirMohammad [n=amir@unaffiliated/gluegadget] has joined #go-nuts 17:13 < WalterMundt> nope 17:13 < WalterMundt> or rather, nothing I'm using at least, can't say 100% 17:13 < WalterMundt> since I only really need the three functions there and the enums to go with them 17:13 < dho> I guess that's not typically horrendously useful in C anyway 17:14 < dho> er, with shared libraries 17:14 < WalterMundt> yeah, it's usually only old non-threadsafe libs that have so-linked externs 17:15 < WalterMundt> since in general having global data that you actively expect outside code to tinker with is no longer considered good practice 17:16 < dho> eh, good enough then i guess 17:16 < dho> [devon@hoko gotest]$ 6g main.go; 6l main.6; ./6.out 17:16 < dho> true 17:16 < dho> false 17:23 -!- Brandon\wcr [n=wcr@unaffiliated/warcrime] has joined #go-nuts 17:23 < Brandon\wcr> Just curious, anyone here ever attempt to make a baseball simulator? 17:36 -!- Qwizie [n=dunno@cpe-24-95-54-134.columbus.res.rr.com] has quit [Read error: 104 (Connection reset by peer)] 17:37 -!- djh4u [n=dunno@cpe-24-95-54-134.columbus.res.rr.com] has joined #go-nuts 17:41 < jhh> a good day to you sirs 17:42 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts 17:46 -!- toft [n=jlewis@unaffiliated/crassworm] has left #go-nuts [] 17:47 -!- decriptor [n=decripto@53.250.sfcn.org] has joined #go-nuts 17:55 -!- ShadowIce [i=shadowic@unaffiliated/shadowice-x841044] has quit ["Leaving"] 17:55 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts 17:59 -!- Daminvar [n=Daminvar@cpe-67-241-129-149.buffalo.res.rr.com] has joined #go-nuts 17:59 -!- ShadowIce [n=pyoro@p54A23BF8.dip.t-dialin.net] has joined #go-nuts 18:05 -!- insaneroot2 [n=insanero@p57A28C7F.dip0.t-ipconnect.de] has joined #go-nuts 18:06 -!- iwikiwi [n=iwikiwi@202.3.77.160] has quit [Read error: 110 (Connection timed out)] 18:07 -!- skelterjohn [n=jasmuth@c-76-99-92-193.hsd1.nj.comcast.net] has quit [] 18:08 < dho> how does one get rid of an entry in an array? 18:08 -!- stevenyvr [n=schan@76-10-184-108.dsl.teksavvy.com] has joined #go-nuts 18:12 -!- insaneroot [n=insanero@p57A28C7F.dip0.t-ipconnect.de] has quit [Read error: 60 (Operation timed out)] 18:22 -!- youngbull [n=youngbul@ti0025a380-dhcp1720.bb.online.no] has joined #go-nuts 18:23 -!- ikke [n=ikke@unaffiliated/ikkebr] has quit [] 18:26 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Read error: 110 (Connection timed out)] 18:26 < dho> Well. 18:27 < dho> I think I have something that fixes most of hte outstanding cgo issues. 18:29 -!- gasreaa [n=atwong@nat/slide/x-hdveyljbgqbrleif] has joined #go-nuts 18:30 -!- mbarkhau [n=koloss@p54A7E337.dip.t-dialin.net] has joined #go-nuts 18:30 -!- gasreaa [n=atwong@nat/slide/x-hdveyljbgqbrleif] has left #go-nuts [] 18:39 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts 18:39 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 18:39 -!- JSharpe [n=jamie@5ad5025e.bb.sky.com] has joined #go-nuts 18:40 -!- JSharpe [n=jamie@5ad5025e.bb.sky.com] has quit [Client Quit] 18:40 * dho is always paranoid about losing changes 18:42 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 18:50 < jhh> dho: did your recipeing work out? 18:50 * skelterjohn is curious too 18:57 < dho> I didn't play with it last night, was working on cgo 19:07 < dho> I left it struggling to figure out how to get things like 19:07 < dho> OFILES=(list) 19:07 < dho> %.$O: %.c 19:07 < dho> and then generating the %.c if they're not there 19:08 < dho> it's kind of hard to express that in such a format 19:13 < jhh> and regenerate even if they are there if their source changed :/ 19:17 < jhh> cgo effectively creates 3 object files? 19:19 -!- asyncster [n=asyncste@206.169.213.106] has joined #go-nuts 19:20 < jhh> i think i'll try working on a parser 19:23 < asyncster> wow, just discovered bufio.ReadString 19:32 < dho> jhh: what's the third? 19:33 -!- tps_ [n=eddw@dsl-roibrasgw1-fe55de00-239.dhcp.inet.fi] has quit [Remote closed the connection] 19:33 < jhh> i have no idea. i thought you said something about go, 6c and gcc or so 19:34 < dho> you get two 19:34 < dho> the gc and cc stuff are compiled together 19:34 < dho> and then you get the .so that is compiled with gcc 19:42 -!- deso [n=deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts 19:42 -!- mertimor [n=mertimor@p4FE75CA1.dip.t-dialin.net] has quit [] 19:43 -!- mertimor [n=mertimor@p4FE75CA1.dip.t-dialin.net] has joined #go-nuts 19:46 -!- rbohn [n=chatzill@d103.digis.net] has quit ["out for the afternoon"] 19:47 < jhh> ah okay 19:47 -!- zz [i=fusion@193.104.228.25] has quit [Killed by sagan.freenode.net (Nick collision)] 19:48 -!- _zz [i=fusion@193.104.228.25] has joined #go-nuts 19:51 -!- zz [i=fusion@193.104.228.25] has quit [Killed by douglas.freenode.net (Nick collision)] 19:52 -!- _zz [i=fusion@193.104.228.25] has joined #go-nuts 19:53 -!- tps_ [n=eddw@dsl-roibrasgw1-fe55de00-239.dhcp.inet.fi] has joined #go-nuts 19:55 -!- tomestla1 [n=tom@87.100.115.249] has joined #go-nuts 19:55 -!- gkmngrgn [n=gkmngrgn@78.185.220.154] has joined #go-nuts 19:56 -!- zz [i=fusion@193.104.228.25] has quit [Killed by sagan.freenode.net (Nick collision)] 19:56 -!- tomestla [n=tom@87.100.115.249] has quit [Read error: 104 (Connection reset by peer)] 19:57 -!- _zz [i=fusion@193.104.228.25] has joined #go-nuts 19:57 -!- Fringehead [n=fringe@c-24-126-235-188.hsd1.ga.comcast.net] has joined #go-nuts 20:01 -!- zz [i=fusion@193.104.228.25] has quit [Killed by sagan.freenode.net (Nick collision)] 20:01 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit [Remote closed the connection] 20:02 -!- _zz [i=fusion@193.104.228.25] has joined #go-nuts 20:02 < dho> oh god, not again. 20:02 < skelterjohn> heh 20:02 < dho> two /ignores fixes that right up. 20:03 < skelterjohn> i don't think my client's ignore list filters leave/join messages 20:04 < dho> ah 20:06 -!- zz [i=fusion@193.104.228.25] has quit [Killed by sagan.freenode.net (Nick collision)] 20:07 -!- _zz [i=fusion@193.104.228.25] has joined #go-nuts 20:07 < skelterjohn> definitely doesn't 20:07 -!- gkmngrgn [n=gkmngrgn@unaffiliated/gkmngrgn] has quit [Remote closed the connection] 20:08 < skelterjohn> she/he is only in this room. I wish she/he would read what is said now and then. 20:10 -!- plainhao [n=plainhao@mail.xbiotica.com] has joined #go-nuts 20:11 -!- gkmngrgn [n=gkmngrgn@78.185.220.154] has joined #go-nuts 20:11 -!- Guest56406 [i=fusion@193.104.228.25] has quit [Killed by sagan.freenode.net (Nick collision)] 20:12 -!- _zz [i=fusion@193.104.228.25] has joined #go-nuts 20:12 < dho> 15:35 [freenode] -!- channels : #ironpython #jython #jquery-ui #jquery #go-nuts #pypy #django-cms #django 20:12 < dho> was from yesterday 20:13 -!- SoniaKeys [n=soniakey@c-76-118-178-209.hsd1.ma.comcast.net] has left #go-nuts [] 20:15 -!- SoniaKeys [n=soniakey@c-76-118-178-209.hsd1.ma.comcast.net] has joined #go-nuts 20:15 -!- SoniaKeys [n=soniakey@c-76-118-178-209.hsd1.ma.comcast.net] has left #go-nuts [] 20:16 -!- SoniaKeys [n=soniakey@c-76-118-178-209.hsd1.ma.comcast.net] has joined #go-nuts 20:16 -!- difekta [n=clays@75.101.111.19] has joined #go-nuts 20:19 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit [No route to host] 20:29 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts 20:35 -!- mertimor [n=mertimor@p4FE75CA1.dip.t-dialin.net] has quit [] 20:45 < jhh> why are there no moderators here? 20:46 < asyncster> i dont think freenode is big on mods in general 20:47 < dho> the google people can have chanserv set their mode to +o in the channel 20:48 < dho> see also 20:48 < dho> /quote chanserv access #go-nuts list 20:48 < WalterMundt> the general Freenode policy is that channel owners should only invoke the op role when needed to fix things 20:49 < WalterMundt> it's not a rule, but a lot of Freenode channels follow it 20:49 < dho> I like pissing people off by setting +o and leaving it. 20:49 < dagle> :) 20:52 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the connection] 20:53 -!- iwikiwi [n=iwikiwi@202.3.77.160] has quit [Read error: 110 (Connection timed out)] 20:53 -!- mssm [n=mssmfs@ip-95-221-91-60.bb.netbynet.ru] has quit ["WeeChat 0.3.0"] 20:57 -!- Elfix [i=elfix@wikipedia/elfix] has joined #go-nuts 20:59 -!- difekta [n=clays@75.101.111.19] has quit ["This computer has gone to sleep"] 21:01 -!- insaneroot2 [n=insanero@p57A28C7F.dip0.t-ipconnect.de] has quit ["Nettalk6 - www.ntalk.de"] 21:04 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts 21:05 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts 21:08 < asyncster> woohoo just created another library: http://github.com/hoisie/gostache 21:11 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has quit [] 21:15 -!- niko [i=niko@freenode/staff/ubuntu.member.niko] has joined #go-nuts 21:18 -!- itrekkie [n=itrekkie@ip98-165-246-56.ph.ph.cox.net] has joined #go-nuts 21:18 -!- KB1JWQ [i=KB1JWQ@freenode/staff/kb1jwq] has joined #go-nuts 21:18 -!- ErrantEgo [n=ErrantEg@c-68-41-78-208.hsd1.mi.comcast.net] has joined #go-nuts 21:19 -!- ErrantEgo [n=ErrantEg@c-68-41-78-208.hsd1.mi.comcast.net] has left #go-nuts [] 21:19 -!- JSharpe [n=jamie@5adaeab6.bb.sky.com] has joined #go-nuts 21:21 -!- itrekkie [n=itrekkie@ip98-165-246-56.ph.ph.cox.net] has quit [Read error: 104 (Connection reset by peer)] 21:21 -!- itrekkie_ [n=itrekkie@ip98-165-246-56.ph.ph.cox.net] has joined #go-nuts 21:21 -!- fredmorcos [n=fred@196.221.186.173] has joined #go-nuts 21:21 -!- Fish [n=Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts 21:21 < dho> asyncster: what does your web framework do that src/pkg/http doesn't? 21:21 -!- fredmorcos [n=fred@196.221.186.173] has quit [Client Quit] 21:22 < asyncster> for basic web stuff, it does routing by regular expressions 21:22 < asyncster> and now it supports fastcgi and scgi 21:22 < asyncster> soon it'll have session support 21:23 < asyncster> but right now it's pretty basic 21:23 < dho> http supports regexp mappings 21:23 -!- Fish [n=Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Remote closed the connection] 21:23 -!- eno [n=eno@nslu2-linux/eno] has quit [Read error: 60 (Operation timed out)] 21:24 -!- Fish [n=Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts 21:26 -!- Fish [n=Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Remote closed the connection] 21:26 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined #go-nuts 21:26 < asyncster> yeah, the goal is to be quick and simple 21:27 < asyncster> i used the http server interface and its a little clunky 21:27 -!- eno [n=eno@nslu2-linux/eno] has joined #go-nuts 21:28 < asyncster> dho didnt you submit a patch to web.go ? :) 21:28 -!- gkmn_zZz [n=gkmngrgn@unaffiliated/gkmngrgn] has joined #go-nuts 21:29 -!- gkmngrgn [n=gkmngrgn@unaffiliated/gkmngrgn] has quit [Read error: 60 (Operation timed out)] 21:29 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit [Read error: 60 (Operation timed out)] 21:29 -!- tgall_foo [n=tgall@gentoo/developer/dr-who] has quit ["Leaving"] 21:30 -!- itrekkie_ [n=itrekkie@ip98-165-246-56.ph.ph.cox.net] has quit [] 21:30 < dho> yeah I did. 21:30 < dho> I haven't actually used it yet :) 21:30 < dho> much like I've submitted a lot of bugfixes to Go, and haven't used Go much yet :) 21:30 < asyncster> haha 21:31 < asyncster> i think theres only one site out there that runs web.go : http://getwebgo.com/ 21:32 < skelterjohn> heh 21:33 < asyncster> dho: oh, web.go supports regex groups in patterns, which get passed as arguments to handler functions 21:34 < dho> ok 21:39 -!- tgall_foo [n=tgall@gentoo/developer/dr-who] has joined #go-nuts 21:39 < asyncster> dho hows the freebsd project doing? 21:39 < asyncster> i used to be a huge fbsd user back in the day 21:44 < dho> it works 21:44 < dho> not a whole lot to do after that :) 21:44 < dho> i could probably go through and implement more syscalls 21:48 < asyncster> hmm 21:49 < asyncster> im sure something interesting will pop up 21:49 < dho> well, I need to churn a bit more discussion from the go team about how to handle versioning 21:49 < dho> FreeBSD 9 will be out at some point in the not too distant future and it has some improvements that go can take advantage of 21:49 < dho> some of those will end up back in 8.1 as well, I believe 21:50 < dho> (like enhancements to kqueue/kevent) 21:50 < dho> iant brought up some discussion on that, but it's a complicated thing. you don't really want to check for that sort of stuff at runtime to see what you should use. 21:50 < dho> or i don't at least. 21:50 < dho> i also don't want to litter the source tree 21:51 < dho> and i don't want to litter the source code 21:51 < dho> so, it'll be interesting to see what we work out. 21:51 < asyncster> hm 21:51 < yoyo__> #psychology 21:51 < dho> philosophy, really. 21:51 -!- yoyo__ [n=chatzill@45.246.39-62.rev.gaoland.net] has quit [Client Quit] 21:52 < asyncster> yeah compile time would be ideal 21:52 < asyncster> i haven't really worked with that stuff though 21:52 -!- difekta [n=clays@75.101.111.19] has joined #go-nuts 21:53 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit ["Leaving"] 21:54 -!- SoniaKeys [n=soniakey@c-76-118-178-209.hsd1.ma.comcast.net] has quit [] 21:55 -!- rndbot [n=bot@wikipedia/Gracenotes] has quit [Remote closed the connection] 21:56 < asyncster> anyone know a good tool that does stress tests on web servers? 21:56 -!- crakrjak [n=merc@rrcs-70-62-156-154.central.biz.rr.com] has quit [Remote closed the connection] 21:56 < asyncster> esp. something that simulates real requests 21:57 < asyncster> maybe even crawls the site and requests links off of the site 22:00 < dho> ab is reasonable 22:00 < dho> wget can do the latter 22:00 < dho> don't run it on the same machine 22:01 < asyncster> hm yeah 22:01 < WalterMundt> hehe, I wrote a little tool in Go that just slams a single URL to test maximum throughput, but that's hardly a realistic test 22:05 < oal> Can Go be used to create everything C++ can? 22:06 < dho> software is software. 22:06 < jhh> ask Alan Turing ;) 22:10 -!- klooj [n=kloojit@173-15-136-74-BusName-Philadelphia.hfc.comcastbusiness.net] has joined #go-nuts 22:10 < oal> jhh: Alan Turing? 22:11 < youngbull> I'm guessing that would be "is go Turing complete?" but I guess C capabilities > Turing complete 22:11 <+iant> youngbull: no, the point of "Turing complete" is that it is complete 22:11 <+iant> any system which is Turing complete can emulate any other system which is Turing complete 22:12 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts 22:12 < youngbull> oh ok, never really read that much about that 22:13 <+iant> the Church-Turing hypothesis is that humans are also Turing complete and can thus be simulated by any sufficiently large computer 22:15 -!- jhh [n=jhh@f049008158.adsl.alicedsl.de] has quit [Remote closed the connection] 22:15 < dho> I'm not sure I'd agree with that hypothesis 22:15 -!- jhh [n=jhh@f049008158.adsl.alicedsl.de] has joined #go-nuts 22:16 < dho> turing completeness describes traits of a system. therefore, turing-completeness of a human would describe a set of traits of a human, but it is by no means a comprehensive list of those traits :) 22:16 -!- sheb [n=seb@AToulouse-152-1-64-142.w82-125.abo.wanadoo.fr] has joined #go-nuts 22:17 -!- mertimor [n=mertimor@p4FE75CA1.dip.t-dialin.net] has joined #go-nuts 22:19 <+iant> Another way to say it is to ask whether a human can do anything which a computer can not do 22:19 <+iant> I think it remains an open question 22:19 -!- youngbull [n=youngbul@ti0025a380-dhcp1720.bb.online.no] has quit [Read error: 104 (Connection reset by peer)] 22:20 < dho> Sure, we can ignore instructions :) 22:24 < jhh> it doesn't need much to emulate me. 22:25 < jhh> Pentium III might be sufficient. 22:28 < skelterjohn> dho: the "complete" part means that it's comprehensive 22:28 < skelterjohn> the turing part means that it can do things that other turing complete things can do 22:28 < skelterjohn> so human's can be turing capable, and i'm sure they are, without being turing complete 22:29 < skelterjohn> humans 22:29 -!- tomestla1 [n=tom@87.100.115.249] has quit ["Leaving."] 22:31 < dho> that or math doesn't answer everything :) 22:33 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 22:33 < skelterjohn> i believe that the universe is turing complete :) 22:33 < skelterjohn> and that, as you put it, math answers everything 22:34 < jhh> do you have a turing capability proof? 22:34 < skelterjohn> sure - you, as a human, can follow directions written on paper to do what a turing machine would do to its infinite tape 22:35 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has quit [Client Quit] 22:35 < skelterjohn> since a human can describe exactly a turing machine and the process it goes through, a human is capable of emulating that process. 22:36 < jhh> ah okay, then my laptop can as well, so that's the boring half of the proof 22:36 < skelterjohn> yes 22:36 < jhh> for some reason i started thinking about how to use planets to calculate 22:36 < skelterjohn> not sure where you're going with that :) 22:36 < jhh> me neither 22:37 < dho> skelterjohn: there's a critical philosophical difference between can and does. 22:37 < skelterjohn> sure? 22:38 < skelterjohn> a human can certainly emulate a process that isn't turing complete 22:38 < skelterjohn> the question is whether or not a human can do something a turing machine can't do 22:38 < dho> sorry, there's a critical difference between capability and completeness that i read over. 22:39 < dho> I think so, and I will leave you with burden of proof :) 22:39 < skelterjohn> all you have to do is give a counter-example ;) 22:39 <+iant> I don't think anybody knows how to either prove or disprove the hypothesis 22:40 < dho> I think that the fact that most people don't know about it, don't care, or both, serves to the fact that it's a totally uninteresting point, even if it could be proved :) 22:40 < skelterjohn> i disagree strongly 22:40 <+iant> well, that is true of most philosophy, yet people keep working on it 22:41 < dho> iant: yep 22:41 < skelterjohn> "most people" do not determine what is or is not interesting, since "interesting" is subjective to the viewer 22:41 < dho> as they do most other philosophies 22:41 < WalterMundt> I find all kinds of things fascinating that would bore most people to death. Type systems in programming languages, for example. 22:42 < skelterjohn> most people find calculus uninteresting. yet without it the human race will be extinguished when or before our sun dies 22:42 < rbancroft> humans don't really suffer from the halting problem 22:42 -!- deso [n=deso@x0561a.wh30.tu-dresden.de] has quit [Read error: 54 (Connection reset by peer)] 22:43 < dho> rbancroft: humans halt :) 22:43 < dho> unless you count offspring 22:43 < dho> and the autistic 22:43 < skelterjohn> rbancroft: so you're saying that a human can always determine whether or not a program will complete? 22:43 < dho> skelterjohn: yes, i can complete it by turning off the computer :) 22:44 < skelterjohn> there are number sequences that people have yet to prove if they converge to any value or not, for instance 22:44 < rbancroft> skelterjohn: no, just simply that a human always halts eventually :) 22:44 < WalterMundt> I don't think a non-halting human has been proven impossible 22:45 < skelterjohn> 2nd law of thermodynamics, or something 22:45 < WalterMundt> well, short of things like the heat death of the universe anyway 22:45 < skelterjohn> there you go 22:45 < skelterjohn> all humans halt :) 22:45 < skelterjohn> (probably) 22:45 < WalterMundt> but then, we say all kinds of things are turing complete that don't actually have unlimited memory and time to process 22:45 < skelterjohn> since the heat-death of the universe is a probabilistic theory 22:45 < skelterjohn> it's just....really really likely 22:46 < dho> i wish that proofs and guarantees weren't so important 22:46 < skelterjohn> they aren't if you ignore them 22:46 < WalterMundt> Well, when I think about it, I wonder if, even once it happens, there isn't a chance that the matter will unbalance itself enough to draw together again 22:46 < dho> skelterjohn: that's also not true 22:46 < skelterjohn> important being a subjective measure, again 22:47 < dho> but it isn't. 22:47 < WalterMundt> but I'm not even a casual physics student, so I try not to expose too much of my ignorance in such matters 22:47 < skelterjohn> WalterMundt: the idea is that once all particles stop moving, they can never start again 22:47 < dho> until someone flicks the marble again 22:48 < WalterMundt> hmm. 22:48 < skelterjohn> as long as that someone isn't a particle, sure 22:48 * dho finds debates about things that nobody knows for sure mostly pointless and uninteresting 22:48 < skelterjohn> hard to know something for sure if you don't start out not knowing for sure 22:48 < WalterMundt> doesn't a non-moving universe imply the absence of heat? I thought the problem of thermodynamics is that the energy in the universe is getting inexorably converted to heat and then spread out. 22:49 < skelterjohn> we're crossing the threshold of "i have a clue" here 22:50 < WalterMundt> okay, we can give dho a reprieve then I suppose 22:50 < rbancroft> scientific theories are generally discussed in laymans terms as though they are proven true and cannot be wrong, however that is never the case 22:50 < skelterjohn> rbancroft: certainly, since there are at least two theories that can never be proven wrong 22:50 < skelterjohn> the western god, and the flying spaghetti monster 22:50 < WalterMundt> rbancroft: even so, oftentimes laypeople think they can overturn well-established theory with a bit of heavily metaphor-influenced armchair thought experimentation 22:51 -!- ozzloy [n=ozzloy@ozzloy.lifeafterking.org] has left #go-nuts [] 22:52 < rbancroft> WalterMundt: true. the climate change debate is an exhausting example of that 22:52 < WalterMundt> my comments above about thermodynamics would likely be in that category if I was actually trying to say they were sufficiently informed 22:53 -!- rndbot [n=bot@wikipedia/Gracenotes] has joined #go-nuts 22:54 < rbancroft> skelterjohn: well not even going there. those aren't scientific theories, just philosophical possibilities 22:55 < skelterjohn> the main difference is intent 22:56 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has quit ["Leaving"] 22:56 < dho> rbancroft: depends who you ask. 22:56 < dho> though probably not for the flying spaghetti monster. 22:59 < rbancroft> dho, well, for the most rational believers, imo, god is untestable 22:59 < rbancroft> the less rational, well they have yet to produce any solid evidence 22:59 < rbancroft> miracles and so forth 22:59 < skelterjohn> it's like string theory 22:59 < dho> it's burden of proof again 23:00 < dho> rbancroft: you have yet to produce any solid evidence contrary to their claims as well 23:00 < dho> You can certainly believe in the Christian God and not accept that the world is 4,000 years old or whatever 23:00 < rbancroft> dho: thats fine, but its not a scientific question 23:01 < dho> bleh 23:01 * dho does something useful and chews out qtvali 23:02 < WalterMundt> useful? 23:02 < WalterMundt> well, maybe it will help your blood pressure 23:02 < skelterjohn> theraputic, perhaps 23:02 < rbancroft> dho: I think it was dawkins who mentioned how the curtain of ignorance has been moved farther back over the years 23:03 < rbancroft> dho: and god was always used to explain what couldn't otherwise be explained 23:04 < rbancroft> he's always floating back there somewhere. as our knowledge increases, his use is more and more diminished 23:05 -!- asyncster [n=asyncste@206.169.213.106] has quit [Read error: 54 (Connection reset by peer)] 23:05 -!- asyncster [n=asyncste@206.169.213.106] has joined #go-nuts 23:06 < dho> skelterjohn: hence useful :) 23:06 < skelterjohn> not to me! :) 23:08 < jhh> why is goyacc so c'ishly using no channels but rather loads of global variables 23:09 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has quit ["ChatZilla 0.9.85-rdmsoft [XULRunner 1.9.0.14/2009090900]"] 23:09 < skelterjohn> probably because it was a translation 23:09 < skelterjohn> easier to make sure it has no bugs if you just emulate C code that you know works 23:09 < skelterjohn> i did that for a bunch of stuff in gomatrix :) 23:09 < dho> same reason that the roff port on plan 9 is unmaintainable 23:09 < dho> direct translation of pdp-11 asm to c 23:10 < dho> ..and it's roff 23:10 < skelterjohn> jhh: since you can actually grok LALR parsing, you should make a more go-ish version of yacc ;) 23:11 < jhh> are you serious? 23:11 < skelterjohn> call it go compiler compiler (gcc). I don't think that name is taken yet. 23:11 -!- mertimor_ [n=mertimor@p4FE75CA1.dip.t-dialin.net] has joined #go-nuts 23:11 * dho waits for a utility called gonads 23:11 < skelterjohn> jhh: am I serious? in that if you did, I'd think that was great. but no, i don't reasonably expect you to. 23:12 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-nuts 23:13 < jhh> heh 23:15 -!- tps_ [n=eddw@dsl-roibrasgw1-fe55de00-239.dhcp.inet.fi] has quit ["Leaving"] 23:25 < WalterMundt> why port yacc to Go at all if it's just going to do the same thing? 23:26 < skelterjohn> because they you can use go code with it 23:26 < skelterjohn> remember, yacc embeds C code in a compiler 23:26 < skelterjohn> goyacc does the same except it embeds go code 23:27 -!- sheb [n=seb@AToulouse-152-1-64-142.w82-125.abo.wanadoo.fr] has quit [] 23:30 < WalterMundt> I've usually written recursive descent parsers when I need them because said generated code was just too ugly to integrate. I used yacc for a college course and never wanted to again. 23:31 -!- Venom_X [n=pjacobs@66.54.185.131] has quit [] 23:31 < skelterjohn> it's hard to beat yacc for efficient compilers 23:31 -!- mertimor [n=mertimor@p4FE75CA1.dip.t-dialin.net] has quit [Read error: 110 (Connection timed out)] 23:31 < WalterMundt> *nods* granted, but that's rarely been a big part of my objectives. I'm certainly not arguing that it's useless 23:31 < skelterjohn> and if you're familiar enough with it, you can create a compiler really quickly and know that it will be fast, to boot 23:34 < WalterMundt> *nods* I just couldn't get past the globals and generally archaic conventions I guess 23:34 < skelterjohn> it's pretty old school 23:34 < WalterMundt> otoh, I did programming competitions and can whip up a decent recursive descent parser in a day or two for a syntax that's amenable to that parsing method 23:35 < skelterjohn> but it caught on, and it's too hard to make something that is all of "as fast", "as easy to use" and "is as wide-spread" 23:35 < jhh> but recursive descend parsers are harder to maintain, are they not? 23:35 < WalterMundt> they have plenty of disadvantages; for software you plan to use and maintain over the long haul they're not an awesome choice 23:36 < skelterjohn> a recursive descent parser LL(k) is really easy to write and understand, imo 23:36 < WalterMundt> I used javacc a time or two as well. That takes some inspiration from yacc but generated threadsafe OO code 23:36 < jhh> i had the same thought: i write a recursive descend parser faster than i understand yacc 23:36 < WalterMundt> IIRC anyway, been awhile 23:37 -!- fyusy [n=fyusman@110.174.144.171] has joined #go-nuts 23:37 < WalterMundt> Does goyacc dispense with the prefixing? One of the things I like least about old-school C is the lack of namespacing 23:38 < WalterMundt> or rather, the emulation of namespaces by identifier prefixes 23:38 -!- Adys_ [n=Adys@unaffiliated/adys] has joined #go-nuts 23:38 < skelterjohn> i got stopped with goyacc when i realized it didn't come with a golex and I'd have to rewrite the tokenizer :) 23:39 -!- gkmngrgn [n=gkmngrgn@unaffiliated/gkmngrgn] has quit [Remote closed the connection] 23:39 < WalterMundt> lol 23:39 -!- carllerche [n=carllerc@99-8-186-86.lightspeed.snfcca.sbcglobal.net] has joined #go-nuts 23:41 < plexdev> http://is.gd/5H9Us by [Robert Griesemer] in go/misc/xcode/ -- More Xcode support. 23:41 -!- fwiffo [n=fwiffo@unaffiliated/fwiffo] has joined #go-nuts 23:46 < WalterMundt> huh, I doubt units.y will work 23:46 < WalterMundt> the embedded Go code didn't get updated for the semicolon change 23:47 < skelterjohn> the removed semicolons don't cause errors if they're there 23:47 < skelterjohn> they're just ignored 23:47 < WalterMundt> that doesn't necessarily mean old programs will work 23:47 < WalterMundt> this ine has type \n Var struct { ... 23:48 < WalterMundt> which will confuse the new parser because it will inject a ; after the "type", no? 23:48 < skelterjohn> ah 23:48 < skelterjohn> um 23:48 < skelterjohn> i don't know the ; injection rules 23:48 < skelterjohn> only after certain kinds of elements 23:48 < skelterjohn> but that is certainly bad style and should be fixed 23:48 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 110 (Connection timed out)] 23:48 < skelterjohn> easy way to get your name in the authors list if you have the time :) 23:49 < WalterMundt> I might fix it up later, about to head out atm 23:49 < dho> i wonder when the next language is going to come out so that all the whiny people will leave the list 23:52 < jhh> i could practice submitting something to the src dir with that 23:52 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has quit [Remote closed the connection] 23:54 -!- fwiffo [n=fwiffo@unaffiliated/fwiffo] has quit ["Lost terminal"] 23:55 -!- fwiffo [n=fwiffo@unaffiliated/fwiffo] has joined #go-nuts 23:56 < jhh> but units.y happens to work 23:57 < WalterMundt> okay, working is good 23:57 < WalterMundt> I wonder if keywords aren't in the auto-semicolon-able class of things 23:58 < skelterjohn> i think it's an inclusory list, rather than an exclusory one 23:58 < skelterjohn> it's in one of the ML posts 23:58 <+iant> it's also in the language spec --- Log closed Thu Dec 31 00:00:19 2009