--- Log opened Tue Jun 15 00:00:10 2010 00:02 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has left #go-nuts [] 00:15 -!- cenuij [~cenuij@78.112.253.165] has joined #go-nuts 00:15 -!- cenuij [~cenuij@78.112.253.165] has quit [Changing host] 00:15 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts 00:24 < plexdev> http://is.gd/cPrdD by [Rob Pike] in 2 subdirs of go/ -- fmt.Print*: reimplement to switch on type first. 00:26 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 00:40 -!- photron [~photron@port-92-201-73-188.dynamic.qsc.de] has quit [Ping timeout: 260 seconds] 00:41 < plexdev> http://is.gd/cPs4P by [Rob Pike] in go/src/pkg/fmt/ -- fmt.Printf: write tests for %T. 00:49 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 01:02 -!- scm [justme@d019128.adsl.hansenet.de] has quit [Quit: leaving] 01:06 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Remote host closed the connection] 01:12 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts 01:12 < plexdev> http://is.gd/cPu9G by [Russ Cox] in 3 subdirs of go/ -- runtime: correct fault for 16-bit divide on Leopard 01:16 -!- stanlly [~user@redhat/stanlly] has joined #go-nuts 01:18 -!- scm [justme@d056114.adsl.hansenet.de] has joined #go-nuts 01:20 -!- artefon [~thiago@189.107.237.199] has quit [Ping timeout: 265 seconds] 01:22 -!- carrus85 [~carrus85@216.83.145.38] has quit [Ping timeout: 240 seconds] 01:33 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: ( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )] 01:49 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has quit [Ping timeout: 240 seconds] 01:52 -!- ikke [~ikke@unaffiliated/ikkebr] has quit [] 01:54 -!- adu [~ajr@pool-71-191-173-118.washdc.fios.verizon.net] has joined #go-nuts 02:07 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts 02:18 -!- gnuvince_ [~vince@220.223-ppp.3menatwork.com] has joined #go-nuts 02:28 -!- htoothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has quit [Read error: Connection reset by peer] 02:41 -!- htoothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has joined #go-nuts 02:46 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 02:47 -!- stanlly [~user@redhat/stanlly] has quit [Read error: Connection reset by peer] 02:48 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 03:03 -!- htoothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has quit [Read error: Connection reset by peer] 03:11 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit [Remote host closed the connection] 03:14 -!- htoothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has joined #go-nuts 03:14 -!- htoothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has quit [Excess Flood] 03:15 -!- htoothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has joined #go-nuts 03:29 -!- carrus85 [~carrus85@216.83.145.38] has joined #go-nuts 03:38 -!- carrus85 [~carrus85@216.83.145.38] has quit [Ping timeout: 260 seconds] 03:44 -!- htoothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has quit [Read error: Connection reset by peer] 03:55 -!- htoothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has joined #go-nuts 04:15 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 04:32 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts 04:32 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 276 seconds] 04:36 < ekontsevoy> Any news regarding compiling code into shared libraries? I've been following go news for half a year now waitingn for it... (what do you guys use Go for? nearly all systems programming tasks I ever needed C for were all so/dlls...) 04:36 < kmeyer> ekontsevoy: gccgo. 04:37 < Eko> ekontsevoy: I use it for monolithic solutions… it'd be nice to have shared library loading of go code, but I don't expect C code to be able to call go code even though it's on the roadmap 04:38 < ekontsevoy> Eko: its' kind of weird that they started with executables... 04:38 < ekontsevoy> kmeyer: will check it out, thanks! 04:38 < ekontsevoy> I'm looking to call it from C(Nginx) and Python... 04:39 < Eko> ekontsevoy: not really, actually. It makes a lot more sense. 04:40 < Eko> It's a lot easier to write a compiler that goes from source to executable objects than to make one that writes object code that conforms to all of the calling conventions and expectations of another language while still trying to do all of the stuff that Go does (garbage collection, goroutines, etc) 04:40 -!- ExtraSpice [~ExtraSpic@78-62-86-161.static.zebra.lt] has joined #go-nuts 04:41 < ekontsevoy> Well, whatever they needed themselves. :) I, for one, haven't produced an executable in 4-5 years. The stuff usually runs under python/ruby/apache/java/nginx or even iexplore.exe :-) Could be just "bad luck" 04:42 < Eko> eh, yeah, that doesn't sound much like systems programming though 04:42 < Namegduf> Stuff that runs under Python, Ruby or Java would be produced as an executable in Go 04:42 < Eko> augmenting existing systems isn't really in the purview of a "systems language" 04:43 < Eko> and I wouldn't consider any of those languages a systems language, though I know I'd be fought with on the Java front. 04:43 < Eko> (and I'd probably concede, because I still base my judgment on the Java of 10 years ago, when I tried to use it before going quickly to C) 04:44 < ekontsevoy> Eko: well, I did some protocol work in C which was used primarily by Python processes, then an nginx module and an IE plug-in. Typical stuff one would want to use C or C++ for. Eager to try out Go for that. 04:44 < Ginto8> well if you use small but useful packages as part of your program you get a semi-monolithic program that is still compact and can be moved from one system to the next, still working regardless of other libraries 04:45 < Ginto8> Go is quite small in regard to the size of its libraries 04:45 < Namegduf> ekontsevoy: You typically write modules and such in C because they're plugging into something already written in C. 04:45 < Namegduf> C plugging into C isn't quite the same to expect as Go plugging into C. 04:45 < ekontsevoy> Namegduf: the world is written in C. everything else is just configuration :) 04:46 < Ginto8> well C or a C derivative 04:46 < Namegduf> ekontsevoy: And perhaps that means Go needs stuff to work with C. 04:46 < Ginto8> even Go is based on C 04:46 < Ginto8> Namegduf, you mean better than cgo? 04:46 < Namegduf> But it's not quite the same. 04:46 < Ginto8> b/c cgo is really useful 04:46 < Namegduf> No, I don't mean anything in particular 04:46 < Eko> cgo… doesn't have a gc 04:47 < Eko> er, gccgo, I guess 04:47 < Ginto8> wtf 04:47 < Namegduf> No, cgo is something different. 04:47 < Eko> yeah, I keep getting them backward. 04:47 < Ginto8> now that isn't just begging for memory leaks 04:47 < Eko> Ginto8: they're working on it 04:48 < Ginto8> so anyway what are you attempting to do Namegduf ? 04:48 -!- nighty^ [~nighty@210.188.173.245] has joined #go-nuts 04:48 < Eko> ekontsevoy: protocol work should be done with protocol buffers, which are supported by just about everything now ^_^ 04:50 < ekontsevoy> Eko: not following.... 04:51 < ekontsevoy> Oh found it. 04:51 < Ginto8> proto.protobuf right? 04:51 < Ginto8> or somethin like that 04:51 < ekontsevoy> holy moses... nice 04:51 < Eko> http://protobuf.googlecode.com/ 04:52 < Eko> and if that's not good enough, JSON is also widely supported, and http://json-rpc.org/ could be the solution of choice 04:53 < ekontsevoy> Eko: thats kinda what I was doing: I wanted to take nginx and add BSON support to it (binary json from 10gen's MongoDB) 05:03 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has quit [Ping timeout: 245 seconds] 05:06 -!- kingdon [~yebyen@harrydavis.csh.rit.edu] has quit [Ping timeout: 245 seconds] 05:09 -!- eikenberry [~jae@ivanova.zhar.net] has quit [Ping timeout: 272 seconds] 05:20 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has joined #go-nuts 05:32 -!- Killerkid [~killerkid@host86-181-227-87.range86-181.btcentralplus.com] has quit [Ping timeout: 245 seconds] 05:36 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 05:41 -!- carrus85_ [~carrus85@216.83.145.38] has joined #go-nuts 05:41 -!- carrus85_ [~carrus85@216.83.145.38] has quit [Read error: Connection reset by peer] 05:41 -!- carrus85 [~carrus85@216.83.145.38] has joined #go-nuts 05:41 -!- carrus85_ [~carrus85@216.83.145.38] has joined #go-nuts 05:41 -!- carrus85 [~carrus85@216.83.145.38] has quit [Client Quit] 05:41 -!- carrus85_ [~carrus85@216.83.145.38] has quit [Client Quit] 05:45 -!- gnuvince_ [~vince@220.223-ppp.3menatwork.com] has quit [Read error: Operation timed out] 05:46 < plexdev> http://is.gd/cPJ3H by [Rob Pike] in go/doc/ -- Effective Go: update ... discussion. 05:46 -!- gnuvince_ [~vince@70.35.163.158] has joined #go-nuts 05:48 -!- Killerkid [~killerkid@host86-181-227-87.range86-181.btcentralplus.com] has joined #go-nuts 06:01 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 06:02 -!- kota1111 [~kota1111@gw2.kbmj.jp] has joined #go-nuts 06:04 -!- adu [~ajr@pool-71-191-173-118.washdc.fios.verizon.net] has quit [Quit: adu] 06:05 -!- kashia_ [~Kashia@port-92-200-121-21.dynamic.qsc.de] has joined #go-nuts 06:07 -!- Kashia [~Kashia@port-92-200-3-7.dynamic.qsc.de] has quit [Ping timeout: 264 seconds] 06:10 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts 06:11 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 06:15 -!- vrtical [rm445@pip.srcf.societies.cam.ac.uk] has quit [Read error: Operation timed out] 06:16 -!- vrtical [rm445@pip.srcf.societies.cam.ac.uk] has joined #go-nuts 06:22 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 260 seconds] 06:26 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 06:28 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts 06:31 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 276 seconds] 06:31 -!- ikaros [~ikaros@g227017246.adsl.alicedsl.de] has joined #go-nuts 06:36 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 06:38 -!- tvw [~tv@e176004078.adsl.alicedsl.de] has joined #go-nuts 06:45 -!- tvw [~tv@e176004078.adsl.alicedsl.de] has quit [Remote host closed the connection] 07:01 -!- scm [justme@d056114.adsl.hansenet.de] has quit [Ping timeout: 264 seconds] 07:01 -!- divoxx [~divoxx@c9150aca.virtua.com.br] has quit [Quit: divoxx] 07:02 -!- scm [justme@d136152.adsl.hansenet.de] has joined #go-nuts 07:13 -!- wrtp [~rog@92.17.30.53] has joined #go-nuts 07:23 -!- thomas_b [~thomasb@cm-84.215.37.40.getinternet.no] has quit [Quit: leaving] 07:24 -!- thomas_b [~thomasb@cm-84.215.37.40.getinternet.no] has joined #go-nuts 07:25 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This computer has gone to sleep] 07:33 -!- lost4815162342 [~chatzilla@222.73.189.45] has quit [Ping timeout: 265 seconds] 07:39 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by peer] 07:49 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 07:50 -!- path[l] [UPP@120.138.102.50] has quit [Quit: path[l]] 08:01 -!- tsykoduk [~tsykoduk@2001:470:1f04:671:20d:93ff:fe77:1dc4] has quit [Ping timeout: 260 seconds] 08:02 -!- Shyde [~Shyde^^@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has joined #go-nuts 08:03 -!- tsykoduk [~tsykoduk@2001:470:1f04:671:20d:93ff:fe77:1dc4] has joined #go-nuts 08:08 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has joined #go-nuts 08:08 -!- barismetin [~barismeti@kde/developer/baris] has joined #go-nuts 08:12 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 08:18 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has joined #go-nuts 08:19 -!- path[l] [~path@59.162.86.164] has joined #go-nuts 08:19 -!- kashia_ [~Kashia@port-92-200-121-21.dynamic.qsc.de] has quit [Quit: This computer has gone to sleep] 08:25 -!- photron [~photron@port-92-201-151-8.dynamic.qsc.de] has joined #go-nuts 08:37 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts 08:39 < nsf> are there any pastebin kind of thing with Go syntax support? 08:41 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]] 08:41 < nsf> anyway.. I have this kind of small example: http://codepad.org/XMadUPiM 08:41 < nsf> the program is incorrect (there should be *ast.FuncDecl in case statement) 08:41 < mpl> http://gopaste.de/ 08:42 < nsf> but instead of a compilation error it dies with segfault 08:42 < nsf> i guess it's a bug 08:43 < nsf> mpl: thanks :) 08:44 < nsf> mpl: it doesn't work at all in my chromium :) 08:45 < nsf> and in firefox too 08:45 < nsf> :\ 08:46 < mpl> can't help you with that. I just googled for it. 08:46 < nsf> :) 08:53 -!- perdix [~perdix@sxemacs/devel/perdix] has joined #go-nuts 08:56 -!- Shyde [~Shyde^^@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has quit [Quit: Shyde] 08:59 < waterwalker> nsf: http://pastie.org/ 09:00 < nsf> waterwalker: thanks :) 09:02 -!- kingdon [~yebyen@harrydavis.csh.rit.edu] has joined #go-nuts 09:11 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 09:19 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has joined #go-nuts 09:20 -!- path[l] [~path@122.182.0.38] has joined #go-nuts 09:21 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 09:26 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Ping timeout: 272 seconds] 09:27 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts 09:34 -!- ikaros [~ikaros@g227017246.adsl.alicedsl.de] has quit [Quit: Leave the magic to Houdini] 10:06 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping timeout: 240 seconds] 10:06 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has joined #go-nuts 10:18 -!- nighty^ [~nighty@210.188.173.245] has quit [Remote host closed the connection] 10:26 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has quit [Quit: leaving] 10:27 -!- abiosoft [~abiosoft@41.155.118.67] has joined #go-nuts 10:34 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 10:38 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 276 seconds] 10:43 -!- kota1111 [~kota1111@gw2.kbmj.jp] has quit [Quit: Leaving...] 10:47 -!- path[l] [~path@122.182.0.38] has quit [Remote host closed the connection] 10:47 -!- path[l] [~path@59.162.86.164] has joined #go-nuts 10:56 -!- g0bl1n [~anonymous@a89-152-232-158.cpe.netcabo.pt] has joined #go-nuts 11:02 -!- cmarcelo [~cmarcelo@200.184.118.130] has joined #go-nuts 11:02 -!- cmarcelo [~cmarcelo@200.184.118.130] has quit [Changing host] 11:02 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined #go-nuts 11:04 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]] 11:05 -!- path[l] [~path@122.182.0.38] has joined #go-nuts 11:06 -!- dwanderer [~facemelte@0x535dcce9.hgnxx2.dynamic.dsl.tele.dk] has joined #go-nuts 11:07 -!- snearch [~snearch@f053005049.adsl.alicedsl.de] has joined #go-nuts 11:14 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 260 seconds] 11:28 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 240 seconds] 11:38 -!- abiosoft [~abiosoft@41.155.118.67] has quit [Ping timeout: 265 seconds] 11:54 -!- abiosoft [~abiosoft@41.155.83.120] has joined #go-nuts 12:00 -!- Daminvar [~Daminvar_@cpe-67-241-129-149.buffalo.res.rr.com] has quit [Quit: Leaving] 12:29 -!- abiosoft [~abiosoft@41.155.83.120] has quit [Ping timeout: 272 seconds] 12:31 -!- visof_ [~visof@41.233.122.118] has joined #go-nuts 12:32 -!- visof [~visof@unaffiliated/visof] has quit [Disconnected by services] 12:33 -!- visof [~visof@41.233.122.118] has quit [Changing host] 12:33 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts 12:40 -!- g0bl1n [~anonymous@a89-152-232-158.cpe.netcabo.pt] has quit [Quit: g0bl1n] 12:40 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]] 12:40 -!- path[l] [~path@59.162.86.164] has joined #go-nuts 12:40 -!- sahid [~sahid@lev92-4-88-164-132-26.fbx.proxad.net] has joined #go-nuts 12:42 -!- pfroehlich [~chatzilla@c-98-204-215-206.hsd1.md.comcast.net] has joined #go-nuts 12:43 -!- Vova [~Vova@77.127.69.68] has joined #go-nuts 12:44 -!- Vovchik [~Vova@77.127.69.68] has quit [Ping timeout: 260 seconds] 12:48 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 12:51 -!- alehorst [~alehorst@201.22.25.27.dynamic.adsl.gvt.net.br] has quit [Remote host closed the connection] 12:51 -!- abiosoft [~abiosoft@2002:299b:326b:d:219:7eff:fe8f:1f59] has joined #go-nuts 12:52 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving] 12:53 -!- alehorst [~alehorst@201.22.25.27.dynamic.adsl.gvt.net.br] has joined #go-nuts 12:56 -!- ikaros [~ikaros@guests78.externals.de] has joined #go-nuts 12:57 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 12:59 -!- wrtp [~rog@92.17.30.53] has quit [Ping timeout: 265 seconds] 13:01 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has quit [Quit: Svarthandske] 13:02 -!- abiosoft [~abiosoft@2002:299b:326b:d:219:7eff:fe8f:1f59] has quit [Ping timeout: 260 seconds] 13:03 < EthanG> What is Go's "nacl"? native on hardware or native in Chrome? 13:06 -!- wrtp [~rog@92.17.69.33] has joined #go-nuts 13:09 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts 13:10 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Remote host closed the connection] 13:11 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving] 13:13 -!- abiosoft [~abiosoft@41.155.106.15] has joined #go-nuts 13:13 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 13:17 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined #go-nuts 13:19 -!- g0bl1n [~anonymous@a89-152-232-158.cpe.netcabo.pt] has joined #go-nuts 13:23 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has joined #go-nuts 13:24 -!- abiosoft [~abiosoft@41.155.106.15] has quit [Quit: Leaving.] 13:26 -!- snearch [~snearch@f053005049.adsl.alicedsl.de] has quit [Quit: Verlassend] 13:26 -!- lost4815162342 [~chatzilla@222.73.189.45] has joined #go-nuts 13:26 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 13:29 < uriel> EthanG: it is Google's NativeClient 13:29 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 13:29 < EthanG> oh.. ok 13:29 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping timeout: 245 seconds] 13:29 -!- ericvh [~ericvh@32.97.110.63] has joined #go-nuts 13:34 < uriel> EthanG: for native hardware see: http://code.google.com/p/go/source/detail?r=ffbf0900a2 13:35 < EthanG> ah cheers! 13:36 < EthanG> I wonder if it would be much different for ARM 13:38 < uriel> i think somebody said something about native-arm 13:38 < uriel> wish I remember who and what 13:38 < uriel> (but it was along the lines of 'got it working' or 'very close to getting it working') 13:39 < EthanG> coolio 13:39 < EthanG> I should probably rejoin the ML when I get serious about it 13:40 < uriel> ah, see src/pkg/runtime/tiny/arm 13:40 < uriel> http://code.google.com/p/go/source/browse/src/pkg/runtime/tiny/README 13:41 < EthanG> oh! 13:44 * uriel adds reference to that in http://go-lang.cat-v.org/os-ports 13:44 -!- terrex [~terrex@207.39.222.87.dynamic.jazztel.es] has joined #go-nuts 13:44 < uriel> EthanG: using http://go-lang.cat-v.org/go-search is usually a good idea when you are looking for Go stuff ;) 13:45 < EthanG> ah, ok ^^' 13:46 -!- abiosoft [~abiosoft@41.155.106.15] has joined #go-nuts 13:49 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 13:51 < EthanG> Part of me would like to just start from scratch on an OS for my zaurus, but I think I'd get fed up long before I had framebuffer, keyboard, compact-flash drivers 13:51 < EthanG> not to mention a filesystem, but I think FAT12/16 aren't hard 13:53 < exch> finishing a project can be overrated. As long as you're having fun working on it and possibly learn something from it, who cares if it ever usable and semi-complete state? :) 13:53 < EthanG> well true :) 13:53 -!- lost4815162342 [~chatzilla@222.73.189.45] has quit [Ping timeout: 240 seconds] 13:58 -!- lost4815162342 [~chatzilla@222.73.189.44] has joined #go-nuts 14:08 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 14:11 -!- iant [~iant@67.218.105.233] has joined #go-nuts 14:11 -!- mode/#go-nuts [+v iant] by ChanServ 14:15 -!- ikaros [~ikaros@guests78.externals.de] has quit [Quit: Leave the magic to Houdini] 14:16 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 14:17 -!- ikaros [~ikaros@guests78.externals.de] has joined #go-nuts 14:17 -!- lost4815162342 [~chatzilla@222.73.189.44] has quit [Ping timeout: 264 seconds] 14:21 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 272 seconds] 14:23 -!- scoeri [~jdekoste@arriba.vub.ac.be] has left #go-nuts [] 14:23 -!- scoeri [~jdekoste@arriba.vub.ac.be] has joined #go-nuts 14:28 < scoeri> is there an alternative for something like wait/notifyAll for goroutines in go? 14:32 < jessta> scoeri: you'd probably use channels for that 14:33 < scoeri> yeah, i thought about that, but what if multiple goroutines are waiting for a channel to contain some value? 14:34 < scoeri> only the first one to empty it will continue 14:34 < jessta> yeah, but you could have mutiple channels 14:34 <+iant> you would need to insert another goroutine which reads from the input channel and writes to all the output channels 14:34 -!- g0bl1n [~anonymous@a89-152-232-158.cpe.netcabo.pt] has quit [Quit: g0bl1n] 14:34 < scoeri> hmm 14:36 -!- Eko [~eko@71-9-123-213.static.lsan.ca.charter.com] has quit [Quit: Leaving.] 14:38 -!- ericvh [~ericvh@32.97.110.63] has quit [Quit: ericvh] 14:39 -!- skelterjohn [~jasmuth@c-76-124-135-117.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 14:40 -!- GoBIR [~gobir@71-9-123-213.static.lsan.ca.charter.com] has quit [Ping timeout: 260 seconds] 14:42 -!- ikaros [~ikaros@guests78.externals.de] has quit [Ping timeout: 276 seconds] 14:46 -!- ikaros [~ikaros@guests78.externals.de] has joined #go-nuts 14:51 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has joined #go-nuts 14:53 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts 14:55 -!- Vova [~Vova@77.127.69.68] has quit [] 14:58 -!- stanleylieber [~stanleyli@68-179-130-17.bsr-c9-d1.evv.dhcp.sigecom.net] has quit [Ping timeout: 252 seconds] 14:58 < scoeri> http://pastebin.com/B53XBszN 14:58 < scoeri> this is what I came up with 15:00 -!- visof [~visof@unaffiliated/visof] has quit [Read error: Connection reset by peer] 15:01 -!- abiosoft [~abiosoft@41.155.106.15] has quit [Ping timeout: 252 seconds] 15:02 -!- ikaros [~ikaros@guests78.externals.de] has quit [Quit: Leave the magic to Houdini] 15:11 -!- iant [~iant@67.218.105.233] has quit [Ping timeout: 264 seconds] 15:13 -!- cmarcelo_ [~cmarcelo@200.184.118.136] has joined #go-nuts 15:13 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Read error: Connection reset by peer] 15:16 -!- g0bl1n [~anonymous@a89-152-232-158.cpe.netcabo.pt] has joined #go-nuts 15:18 -!- bjarneh [~bjarneh@1x-193-157-201-70.uio.no] has joined #go-nuts 15:18 -!- cmarcelo_ [~cmarcelo@200.184.118.136] has quit [Remote host closed the connection] 15:21 -!- abiosoft [~abiosoft@2002:299b:1e5d:d:219:7eff:fe8f:1f59] has joined #go-nuts 15:26 -!- Maxdaman1us [~m@203-97-238-106.cable.telstraclear.net] has quit [Ping timeout: 258 seconds] 15:26 -!- Chryson [~Chryson@c-71-61-11-114.hsd1.pa.comcast.net] has quit [Quit: Leaving] 15:32 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 15:35 -!- alehorst [~alehorst@201.22.25.27.dynamic.adsl.gvt.net.br] has quit [Ping timeout: 248 seconds] 15:44 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has joined #go-nuts 15:47 -!- tvw [~tv@e176004078.adsl.alicedsl.de] has joined #go-nuts 15:51 -!- alehorst [~alehorst@187.58.244.126] has joined #go-nuts 15:52 -!- stanlly [~user@redhat/stanlly] has joined #go-nuts 15:55 -!- sahid [~sahid@lev92-4-88-164-132-26.fbx.proxad.net] has quit [Quit: Ex-Chat] 15:57 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has quit [Quit: Damn noisy HDD, can't sleep] 15:58 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.] 15:59 -!- Netsplit *.net <-> *.split quits: perdix, Gracenotes 15:59 -!- Netsplit *.net <-> *.split quits: ukai, Loonacy, thiagon, suiside 16:00 -!- lost4815162342 [~chatzilla@222.73.189.44] has joined #go-nuts 16:00 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping timeout: 240 seconds] 16:01 -!- Netsplit over, joins: suiside, perdix 16:01 -!- Netsplit over, joins: Gracenotes, Loonacy, thiagon 16:02 -!- Killerkid [~killerkid@host86-181-227-87.range86-181.btcentralplus.com] has quit [Ping timeout: 265 seconds] 16:04 -!- stanleylieber [~stanleyli@68-179-130-17.bsr-c9-d1.evv.dhcp.sigecom.net] has joined #go-nuts 16:05 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 260 seconds] 16:07 -!- lost4815162342 [~chatzilla@222.73.189.44] has quit [Ping timeout: 245 seconds] 16:13 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 16:18 -!- Killerkid [~killerkid@host86-178-252-7.range86-178.btcentralplus.com] has joined #go-nuts 16:22 -!- abiosoft [~abiosoft@2002:299b:1e5d:d:219:7eff:fe8f:1f59] has quit [Ping timeout: 240 seconds] 16:23 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 16:27 -!- ukai [~ukai@220.109.219.244] has joined #go-nuts 16:27 -!- g0bl1n [~anonymous@a89-152-232-158.cpe.netcabo.pt] has quit [Quit: g0bl1n] 16:29 -!- abiosoft [~abiosoft@41.155.87.63] has joined #go-nuts 16:34 -!- barismetin [~barismeti@kde/developer/baris] has quit [Quit: Leaving...] 16:34 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 16:42 -!- starcube [~starcube@81-86-175-58.dsl.pipex.com] has joined #go-nuts 16:42 -!- starcube [~starcube@81-86-175-58.dsl.pipex.com] has left #go-nuts [] 16:44 -!- Ideal [~Ideal@ideal-1-pt.tunnel.tserv6.fra1.ipv6.he.net] has joined #go-nuts 16:44 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has quit [Quit: leaving] 16:47 -!- iant [~iant@nat/google/x-acnqqmkacepygpkv] has joined #go-nuts 16:47 -!- mode/#go-nuts [+v iant] by ChanServ 16:47 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined #go-nuts 16:49 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 16:51 < skelterjohn> regarding scoeri's question - yeah a way to get many channels that are filled with whatever comes out of a given channel would be useful 16:51 < skelterjohn> something that, if generics/templates/etc were available, could be made part of the standard library ;) 16:51 < skelterjohn> but easy to implement on a case-by-case basis as well 16:55 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 16:58 -!- alehorst [~alehorst@187.58.244.126] has quit [Quit: Leaving.] 17:06 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]] 17:08 -!- tux21b [~christoph@90.146.60.30] has joined #go-nuts 17:09 -!- segy_ [~segfault@pdpc/supporter/active/segy] has quit [Ping timeout: 245 seconds] 17:12 -!- segy [~segfault@pdpc/supporter/active/segy] has joined #go-nuts 17:13 < mpl> Can I parse the command line flags in init() or is it a bad idea? 17:18 -!- abiosoft [~abiosoft@41.155.87.63] has quit [Quit: Leaving.] 17:21 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 17:23 < skelterjohn> try and let us know? sounds like a bad idea to me, though 17:24 < skelterjohn> but, maybe the package you use for that does things in its init, in which case it would be safe to do it in your init 17:25 -!- ikke [~ikke@unaffiliated/ikkebr] has joined #go-nuts 17:27 < mpl> basically there's some stuff I want to do in init() that I do depending on one of the flags value. however, there's no reason for that stuff to absolutely be in init(), I can move it in main without any problem. was just wondering what's the cleanest way. 17:28 < mpl> I figured if I can trim things out of main() it would look nicer but there's no other incentive than that. 17:35 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 17:37 -!- aho [~nya@f050253086.adsl.alicedsl.de] has joined #go-nuts 17:39 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Ping timeout: 252 seconds] 17:49 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 17:49 -!- Loonacy [~loonacy@c-24-10-128-3.hsd1.ut.comcast.net] has quit [Read error: Connection reset by peer] 17:49 -!- kingdon [~yebyen@harrydavis.csh.rit.edu] has quit [Remote host closed the connection] 17:50 -!- clip9 [tj@12.81-166-62.customer.lyse.net] has quit [Ping timeout: 258 seconds] 17:51 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts 17:51 -!- clip9 [tj@81.166.62.12] has joined #go-nuts 17:51 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 17:53 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 17:55 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has quit [Ping timeout: 240 seconds] 17:57 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has joined #go-nuts 17:57 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 17:59 -!- bjarneh [~bjarneh@1x-193-157-201-70.uio.no] has left #go-nuts [] 18:09 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 18:21 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:3123:f9bb:4f1c:bd6f] has joined #go-nuts 18:25 -!- OpenSpace [~ja@93.87.132.245] has quit [Remote host closed the connection] 18:32 -!- ikaros [~ikaros@g227017246.adsl.alicedsl.de] has joined #go-nuts 18:34 -!- smw [~smw@pool-96-232-88-231.nycmny.fios.verizon.net] has quit [Quit: Leaving] 18:34 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined #go-nuts 18:36 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 18:41 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit [Read error: Connection reset by peer] 18:42 -!- marsu [~marsu@180.181.95-79.rev.gaoland.net] has joined #go-nuts 18:44 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 18:49 -!- path[l] [UPP@120.138.102.50] has joined #go-nuts 18:53 -!- g0bl1n [~anonymous@a89-152-232-158.cpe.netcabo.pt] has joined #go-nuts 18:54 -!- yebyen [~yebyen@martyfunkhouser.csh.rit.edu] has joined #go-nuts 18:57 -!- smw [~smw@pool-96-232-88-231.nycmny.fios.verizon.net] has joined #go-nuts 19:00 -!- illya77 [~illya77@12-61-133-95.pool.ukrtel.net] has joined #go-nuts 19:01 -!- Kashia [~Kashia@port-92-200-121-21.dynamic.qsc.de] has joined #go-nuts 19:02 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Read error: Connection reset by peer] 19:03 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 19:03 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Read error: Connection reset by peer] 19:03 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts 19:05 -!- OpenSpace [~ja@93.87.132.245] has joined #go-nuts 19:06 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Read error: Connection reset by peer] 19:07 -!- Bombe [~droden@weltgehirnmaschine.de] has quit [Changing host] 19:07 -!- Bombe [~droden@freenet/developer/Bombe] has joined #go-nuts 19:08 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Read error: Connection reset by peer] 19:09 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts 19:10 -!- smw [~smw@pool-96-232-88-231.nycmny.fios.verizon.net] has quit [Ping timeout: 265 seconds] 19:14 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 258 seconds] 19:15 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 19:31 -!- monra [~monra@147.52.194.125] has joined #go-nuts 19:38 -!- ikkebr [~ikke@unaffiliated/ikkebr] has joined #go-nuts 19:39 -!- ender2070 [~ender2070@CPE00222d6e3608-CM00222d6e3605.cpe.net.cable.rogers.com] has joined #go-nuts 19:41 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-151-67.clienti.tiscali.it] has joined #go-nuts 19:42 -!- ikke [~ikke@unaffiliated/ikkebr] has quit [Ping timeout: 240 seconds] 19:45 -!- DASPRiD [~dasprid@tremulous/developer/DASPRiD] has joined #go-nuts 19:45 < DASPRiD> hey, i wonder if there are classes/objects in go 19:47 -!- illya77 [~illya77@12-61-133-95.pool.ukrtel.net] has quit [Quit: illya77] 19:47 < jesusaurus> no, there arent 19:47 < DASPRiD> hm… sad 19:48 < EthanG> DASPRiD: http://blog.golang.org/2010/04/json-rpc-tale-of-interfaces.html 19:50 < DASPRiD> EthanG, is that link actually meant for me? 19:52 < skelterjohn> saying "no" is a bit sneaky 19:53 < skelterjohn> there are basic equivalents to classes/objects in go 19:53 < skelterjohn> but we use them differently 19:53 < skelterjohn> and it can be a mistake to map them one to one 19:53 < DASPRiD> can you probably show me an example? 19:53 -!- monra [~monra@147.52.194.125] has quit [Quit: leaving] 19:53 -!- zcram [~zcram@82.131.7.71.cable.starman.ee] has joined #go-nuts 19:53 < DASPRiD> because i'm pretty used to object-oriented programming, and didn't do any procedural stuff anymore for years 19:53 < skelterjohn> take a look at the "effective go" document on golang.org 19:54 < DASPRiD> anything specific there or just the entire doc? 19:55 < EthanG> DASPRiD: well I'm not really an OO programmer, but I thought it remarkable how much easier the blogger seemed to think it was to add JsonRPC to Go than it would have been to an OO language. See the last 3 paragraphs in particular 19:55 < skelterjohn> try "interfaces and other types" 19:56 < DASPRiD> skelterjohn, already there :) 19:56 < DASPRiD> skelterjohn, it's not really that much about oo 19:57 < skelterjohn> go is not really an oo language 19:57 < skelterjohn> but that section is about how to do the things you want 19:57 < skelterjohn> without being oo 19:57 < skelterjohn> and being go. o. 19:57 < DASPRiD> ah: http://golang.org/doc/go_faq.html#Is_Go_an_object-oriented_language 19:57 < DASPRiD> should just have found that :) 19:58 < skelterjohn> good find 20:00 < DASPRiD> okay i see… okay looks like i have to get used to some procedural programming again 20:00 < cenuij> DASPRiD: you'll be fine ;) 20:00 < DASPRiD> cenuij, hey ^^ 20:00 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Ping timeout: 264 seconds] 20:01 < skelterjohn> it's not that go forces you to be procedural 20:01 < skelterjohn> it's that it doesn't force you to be oo 20:01 < skelterjohn> you can, if you like, do everything in the context of structs with receiver methods 20:01 < skelterjohn> which can feel fairly oo 20:02 < DASPRiD> got any link where i can read about those receiver methods? 20:03 < skelterjohn> i think you should take a look at the tutorial and learn go, rather than learn how to map java to go 20:03 < skelterjohn> it's all in there 20:03 < DASPRiD> i already looked at the tutorial ;) 20:03 < DASPRiD> (oh, and i'm not a java guy ;)) 20:03 < skelterjohn> then i'm referring to methods with signatures that look like "func (r ReceiverType) foo()" 20:04 < cenuij> DASPRiD: this might interest you http://www.youtube.com/watch?v=jgVhBThJdXc was the Go language talk from this years Google I/O conference 20:04 < skelterjohn> i don't know if i made up the jargon "receiver method" or not. i probably heard it somewhere. 20:04 < DASPRiD> cenuij, tx, will look at it 20:05 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has quit [Ping timeout: 276 seconds] 20:06 < DASPRiD> skelterjohn, thanks as well, i will work through at it 20:06 < skelterjohn> cool 20:08 < cenuij> DASPRiD: the code used in the talk is in the main repo i believe doc/talks/ 20:10 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has joined #go-nuts 20:11 -!- g0bl1n [~anonymous@a89-152-232-158.cpe.netcabo.pt] has quit [Quit: g0bl1n] 20:11 -!- rthc [~rthc@c-24-11-213-7.hsd1.mi.comcast.net] has quit [Quit: leaving] 20:13 < cenuij> DASPRiD: oh and of course, searching http://groups.google.com/group/golang-nuts ofetn finds an answer quicker than googles main index 20:14 < DASPRiD> great :) 20:14 < DASPRiD> cenuij, so, how comes that you are here? 20:14 < cenuij> oh I finished my last projects a couple of weeks ago and felt it was time to learn something new :) 20:15 < DASPRiD> hehe 20:15 < cenuij> So i'll write a small application server (will probably bolt on one of the Go fastcgi implementations to use my existing ZF stuff at first) 20:16 < DASPRiD> haha nice 20:17 < cenuij> but so far I like the brevity of the language, I don't seem to be writing much cruft 20:17 < DASPRiD> wait, google itself can upload 56 minute videos? 20:17 < DASPRiD> usually you can only upload 10minute videos there, right? 20:18 < cenuij> I think you can add more if you have partner or better status 20:18 < DASPRiD> hehe 20:18 < cenuij> add more lengthy videos i mean 20:18 -!- b00m_chef [~watr@216.251.138.130] has joined #go-nuts 20:18 < DASPRiD> or be the hoster itself ;) 20:18 < cenuij> indeed :) 20:18 -!- terrex1 [~terrex@226.38.222.87.dynamic.jazztel.es] has joined #go-nuts 20:19 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 20:20 -!- terrex [~terrex@207.39.222.87.dynamic.jazztel.es] has quit [Ping timeout: 265 seconds] 20:20 -!- ita [~waf@kde/developer/tnagy] has joined #go-nuts 20:20 < ita> is it possible to let normal c apps use the libraries made by gopackage? (the .a files) 20:21 < skelterjohn> not sure, ita. i don't think that is supported, but i haven't been keeping up that well 20:22 -!- Project-2501 [~Marvin@82.84.73.243] has joined #go-nuts 20:22 < DASPRiD> cenuij, i hope that talk is going to show more than static java class -> golang, static is... welll ;) 20:22 < DASPRiD> at 15 minutes now 20:22 * ita is waiting for an expert to answer the question 20:22 < cenuij> DASPRiD: the talk completely changes direction after the type based stuff, different speaker 20:23 < DASPRiD> ah great 20:23 < kmeyer> ita: not at this point. 20:23 < skelterjohn> ita: i don't suggest holding your breath. the nice thing about irc is people can see your question hours later and then answer it. 20:24 < ita> kmeyer: thanks 20:25 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-151-67.clienti.tiscali.it] has quit [Ping timeout: 240 seconds] 20:30 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has quit [Quit: Morten. Desu~] 20:30 < ita> will that cause problems if the compiler output files are called .o and not .6 or .8 ? 20:32 < skelterjohn> 6g and 8g create .6 and .8 files 20:32 < skelterjohn> does gccgo create .o? 20:33 < skelterjohn> 6l might barf if you try to link .o files, then again it might not care as long as they have the right stuff in them 20:33 <+iant> gccgo creates .o files 20:33 <+iant> 6l can't link ordinary .o files 20:33 < skelterjohn> i was talking about if he renamed the .6 files to .o 20:34 -!- rhelmer [~rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has joined #go-nuts 20:34 -!- rhelmer [~rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has quit [Client Quit] 20:34 -!- lmoura [~lmoura@187.78.79.186] has joined #go-nuts 20:34 <+iant> the name of the file doesn't make much difference; I suppose I was using the names as shorthand for the format 20:35 < skelterjohn> not sure which scenario ita meant, anyway 20:35 < skelterjohn> either way the question is answered 20:35 < skelterjohn> ^5 20:35 < ita> yes, thanks! 20:37 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 20:38 -!- tux21b [~christoph@90.146.60.30] has quit [Ping timeout: 258 seconds] 20:40 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined #go-nuts 20:43 -!- mbarkhau [~koloss@dslb-084-059-163-201.pools.arcor-ip.net] has joined #go-nuts 20:45 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:3123:f9bb:4f1c:bd6f] has quit [Quit: Leaving.] 20:46 -!- Ideal [~Ideal@ideal-1-pt.tunnel.tserv6.fra1.ipv6.he.net] has quit [Quit: Ideal] 20:51 < ita> can go apps use libraries made by other compilers? (shared? static? ; gcc? g++?) 20:51 < skelterjohn> using cgo you can interface with C code 20:51 < skelterjohn> and from there, the world 20:52 * ita is reading about cgo 20:53 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 240 seconds] 20:54 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts 20:55 -!- b00m_chef [~watr@216.251.138.130] has quit [Remote host closed the connection] 20:59 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts 21:00 -!- mbarkhau [~koloss@dslb-084-059-163-201.pools.arcor-ip.net] has quit [Quit: Leaving.] 21:01 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has quit [Read error: Connection reset by peer] 21:01 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection] 21:04 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Quit: brb 10.6.4 installing] 21:07 -!- gnuvince_ [~vince@70.35.163.158] has quit [Ping timeout: 248 seconds] 21:10 < ita> skelterjohn: have you actually used cgo? the gmp example does not create a binary calling gmp (or if it does, i cannot see it) 21:10 < skelterjohn> i haven't, sorry 21:12 < ita> ok 21:12 < ita> ah, it seems make must be called with the target, grr 21:12 < skelterjohn> but from what i understand, it can be a headache 21:12 < skelterjohn> but things may have changed 21:14 -!- zcram [~zcram@82.131.7.71.cable.starman.ee] has quit [Quit: Leaving] 21:14 < ita> gcc -m64 -o _cgo_.so gmp.cgo2.o -lgmp ...start.S:109: undefined reference to `main' -_- 21:16 < nsf> where is -shared? 21:16 < nsf> :) 21:16 < Tonnerre> Do you mean -c ? 21:16 < Tonnerre> Or -shared, yes 21:17 -!- photron [~photron@port-92-201-151-8.dynamic.qsc.de] has quit [Quit: Leaving] 21:17 -!- photron [~photron@port-92-201-151-8.dynamic.qsc.de] has joined #go-nuts 21:17 < nsf> and for x86_64 -fPIC would be good also 21:18 < ita> eh, it is the Makefile from ~/go/misc/cgo/stdio/ 21:19 < ita> big headache, looks like something one does not want to touch unless forced to 21:19 < nsf> gcc -m32 -o _cgo_.so file.cgo2.o -shared -lpthread -lm 21:19 < nsf> well it works for me 21:19 < nsf> and all flags are there 21:20 < Tonnerre> .oO(libtool) 21:20 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Remote host closed the connection] 21:21 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 21:21 < nsf> ita: ah! I remember you, you're Thomas Nagy the author of waf :) 21:21 < nsf> nice to see you :) 21:22 < ita> nsf: (dont!) 21:22 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 21:22 -!- lmoura [~lmoura@187.78.79.186] has quit [Ping timeout: 265 seconds] 21:22 < nsf> ) 21:23 -!- pfroehlich [~chatzilla@c-98-204-215-206.hsd1.md.comcast.net] has quit [Quit: ChatZilla 0.9.86 [Firefox 3.6.3/20100401074458]] 21:24 < nsf> are you planning to add go support in waf? because personally i hate makefiles :) 21:24 -!- gnuvince_ [~vince@72.0.216.44] has joined #go-nuts 21:25 < ita> nsf: it makes a while it exists - i am just making an update and checking the integration with other languages for the next big version 21:25 < nsf> hm.. 21:26 < ita> nsf: you have seen demos/goexample, haven't you? 21:26 < nsf> but it doesn't support generating cgo modules 21:26 < nsf> I haven't yes, but I'm looking at it right now 21:26 < ita> nsf: generating cgo modules is a big mess, unless you contribute the cmdlines and an example 21:27 < nsf> well, I have only a library with cgo bindings and a Makefile, if it helps: http://github.com/nsf/termbox/tree/master/go/ 21:27 < nsf> but it's the same mess 21:29 < ita> nsf: when in misc/gmp, what's the output of "make"? http://pastebin.mozilla.org/735842 21:30 < nsf> on my machine it fails for some reason 21:30 < nsf> one moment 21:31 < nsf> http://codepad.org/Adee2lJC 21:31 -!- gnuvince_ [~vince@72.0.216.44] has quit [Ping timeout: 260 seconds] 21:31 < ita> for some reason, uh? 21:31 < nsf> probably a version mismatch or something, I use bleeding edge distro 21:31 -!- cenuij [~cenuij@base/student/cenuij] has quit [Quit: zypper dup to RC1 \o/] 21:32 < nsf> well those are just examples 21:32 < nsf> I think no one really supports them in a wide sense 21:32 < nsf> :) 21:32 < ita> yes, and they could work at least 21:32 < ita> otherwise i start to think that the cgo thing is a big joke to make people waste their time on it 21:33 < nsf> you can look at big libraries that more or less supported, like Go-OpenGL 21:33 < nsf> or Go-SDL 21:33 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has joined #go-nuts 21:33 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has quit [Client Quit] 21:33 -!- Maxdamantus [~m@203-97-238-106.cable.telstraclear.net] has joined #go-nuts 21:33 -!- ender2070 [~ender2070@CPE00222d6e3608-CM00222d6e3605.cpe.net.cable.rogers.com] has quit [Remote host closed the connection] 21:33 < nsf> ita: it's the only thing we have currently, and SWIG also, but SWIG complicates C bindings even more 21:33 < ita> nsf: give me a small example that works (the gmp would be fine) 21:34 < nsf> uh.. gimme a sec I'll write one :) 21:35 < ita> nsf: what about that gmp example from the go distribution? 21:35 < nsf> I can't say that it's small 21:35 < skelterjohn> i failed at compiling go-sdl or go-opengl 21:35 < ita> if should link to a system library at least ... 21:35 < skelterjohn> i forget why 21:35 < skelterjohn> but it didn't work right off 21:36 < nsf> ita: well, I have working (for me) libpng loader, but the .go code depends on Go-OpenGL and Go-SDL :) 21:36 < nsf> and it's fairly small 21:37 < nsf> skelterjohn: go-opengl and go-sdl had a lot of changes lately 21:37 < ita> nsf: what about removing the opengl and sdl stuff then? 21:37 < skelterjohn> i might check it out again sometime soon 21:37 < ita> nsf: that would be a useful example 21:37 < nsf> ita: the example loads png image to an opengl texture :) 21:37 < nsf> you can't remove opengl here 21:38 < nsf> but I can write a small example for you 21:38 < nsf> like using cairo for example 21:38 < ita> nsf: no example == no support (and the wiki page http://golang.org/cmd/cgo/ sux) 21:38 < nsf> well, it's sad, but I won't die 21:38 -!- ikaros [~ikaros@g227017246.adsl.alicedsl.de] has quit [Quit: Leave the magic to Houdini] 21:38 < nsf> ) 21:39 -!- middayc [~chatzilla@BSN-176-139-102.dial-up.dsl.siol.net] has joined #go-nuts 21:40 < nsf> i think the best way is to check out the Go-OpenGL and Go-SDL 21:40 < nsf> they should work 21:41 -!- cenuij [~cenuij@78.112.253.165] has joined #go-nuts 21:41 -!- cenuij [~cenuij@78.112.253.165] has quit [Changing host] 21:41 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts 21:42 < ita> nsf: those are way too big 21:43 -!- gnuvince_ [~vince@72.0.216.69] has joined #go-nuts 21:44 < nsf> i don't know what example should I write for you.. 21:44 < ita> nsf: give me working command-lines for the gmp example 21:45 < mpl> uh, if you're looking for a simple cgo example there's sqlite 21:45 < nsf> it doesn't work on my machine, how I supposed to do that? And I don't even know how to use gmp :) 21:46 < ita> mpl: can you do this? ~/go/misc/cgo/gmp && make pi 21:46 < ita> nsf: well too bad then 21:46 < nsf> just run 'make && make install' 21:46 < nsf> it will work 21:47 < ita> nsf: http://pastebin.mozilla.org/735850 ? 21:47 < nsf> hm.. 21:48 < nsf> what go version are you using? 21:48 < ita> the one recommended by the wiki hg clone -r release https://go.googlecode.com/hg/ $GOROOT 21:49 < nsf> you have all the env vars set properly? 21:49 < nsf> env | grep GO 21:49 < mpl> ita: nah, I'm missing the gmp headers and I don't reall ywant to bother to install it. 21:49 < ita> mpl: and the cmdlines? 21:49 < nsf> there should be GOARCH, GOOS and GOROOT 21:50 < mpl> ita: what cmdlines? 21:50 < nsf> well, ok, I guess I see an error in the makefile 21:51 < nsf> CGO_LDFLAGS=-lgmp 21:51 < nsf> that one should be CGO_LDFLAGS+=-lgmp 21:51 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the connection] 21:52 < nsf> or not 21:52 < nsf> I don't know 21:52 < mpl> oh, I've seen that error before. couldn't it be that you have a half assed 64 bits install? 21:52 -!- cenuij [~cenuij@78.112.253.165] has joined #go-nuts 21:52 -!- cenuij [~cenuij@78.112.253.165] has quit [Changing host] 21:52 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts 21:53 < nsf> I mean, certainly this line: 21:53 < nsf> gcc -m64 -o _cgo_.so gmp.cgo2.o -lgmp 21:53 < nsf> misses -shared flag 21:53 < nsf> but why 21:53 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the connection] 21:54 < nsf> _CGO_LDFLAGS_linux=-shared -lpthread -lm 21:54 < nsf> are you sure you have GOOS env var? 21:54 < nsf> i bet you don't 21:55 < ita> well, i do 21:55 < mpl> how about GOARCH, what is it set to? 21:55 < ita> GOOS=linux 21:55 < ita> amd64 21:55 < mpl> can you try it with 386, just for kicks please? 21:55 < nsf> gcc $(_CGO_CFLAGS_$(GOARCH)) -o $@ $(GCC_OFILES) $(CGO_LDFLAGS) $(_CGO_LDFLAGS_$(GOOS)) 21:55 < nsf> well then it should work 21:56 < nsf> there is not so much magic 21:56 * ita recompiles the project, just to see 21:57 < nsf> for some reason your cmd line misses the last variable 21:57 < ita> grr, wrong shell 21:57 < ita> so this was it 21:57 < ita> thanks 22:00 * nsf goes to bed 22:00 < ita> and now i am getting ./fib: error while loading shared libraries: /home/waf/go/pkg/_amd64/gmp.so: cannot open shared object file: No such file or directory 22:00 < nsf> :) 22:01 < nsf> well you are missing GOOS still 22:01 < ita> there is only a gmp.a there 22:01 < ita> still? 22:01 < ita> hmm 22:01 < nsf> /home/waf/go/pkg/_amd64/gmp.so 22:01 < nsf> that one should be 22:01 < nsf> /home/waf/go/pkg/linux_amd64/gmp.so 22:02 < nsf> so.. somewhere you've missed the GOOS :) 22:02 < ita> it worked, but.. i was certain it was there 22:02 < ita> ok 22:02 < nsf> you really should set them up properly 22:02 < nsf> well no 22:02 < nsf> just rebuild 22:02 < nsf> there are two steps 22:03 < nsf> one writes these kind of paths to a special header file for plan9 C compiler 22:03 < nsf> and other actually compiles as far as I remember 22:03 < nsf> first step worked for you without GOOS 22:03 < nsf> and second didn't 22:03 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit: skelterjohn] 22:03 < nsf> so, just setup GOOS and rebuild everything 22:04 < ita> ok 22:04 < ita> why does go need gmp.so in a system folder? 22:04 < nsf> in a system folder? 22:04 < nsf> it looks for it in your GOROOT isn't it? 22:05 < ita> yes 22:05 < nsf> there are trickery involved with shared libraries and plan9 C compiler and gcc compiler :) 22:05 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by peer] 22:06 < nsf> those C compiler aren't friendly to each other 22:06 < nsf> actually I don't really understand this fully (because I don't want to) 22:06 < nsf> but it's not that hard if you dig in 22:06 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the connection] 22:07 < nsf> ita: but regarding .so paths.. they are just built in to a cgo tool that way 22:08 < ita> i mean: pi.go compiles and link but will scream at runtime ./pi: error while loading shared libraries: /home/waf/go/pkg/linux_amd64/gmp.so 22:08 < nsf> swig for example generates glue with just library names 22:08 < nsf> ugh 22:08 < nsf> make install should copy that gmp.so 22:08 < nsf> it's _cgo_.so actually but renamed 22:09 < ita> LD_LIBRARY_PATH does not seem to work 22:09 < nsf> it won't 22:09 < nsf> ldd ./pi 22:09 < nsf> will show you that there is absolute path involved 22:10 < ita> yes, /home/waf/go/pkg/linux_amd64/gmp.so => not found 22:10 < ita> the question is, why an absolute path, and how to change that? 22:10 < ita> when i build something, i do not want to touch system folders 22:11 < nsf> it's built-in property of a cgo tool as far as I know 22:11 < nsf> but you can change it 22:11 < ita> -_- 22:11 < nsf> substituting lines 22:11 < nsf> in a generated file 22:11 < nsf> _cgo_defun.c 22:11 < nsf> it should have bunch of #pragma dynimport initcgo initcgo "/home/nsf/go/pkg/linux_386/libcgo.so" 22:12 < nsf> and for gmp.so somewhere too 22:12 < ita> ok, but pi.go does not use anything, or does it? 22:13 < nsf> it uses gmp.a I guess 22:13 < nsf> this is a static module that contains info about shared library and Go native functions (glue) 22:13 < nsf> :D 22:13 < nsf> yes! it is complicated as hell and I hate it too 22:14 < nsf> and I hate those paths 22:14 < ita> 6g -I. pi.go && 6l -L. -o pi pi.6 <- this works without complaining 22:14 < ita> so, wtf is that go linker and why don't go binaries honor LD_LIBRARY_PATH? 22:14 < nsf> they do 22:14 < nsf> they just use absolute path 22:15 < nsf> why cgo generates absolute paths, ask Go devs 22:15 < nsf> I'd like to know that too 22:15 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Read error: Operation timed out] 22:16 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined #go-nuts 22:16 < nsf> ita: shared library isn't linked directly by Go compiler 22:16 < ita> nsf: if i remove /home/waf/go/pkg/linux_amd64/gmp.so then "pi" does not work, regardless of the LD_LIBRARY_PATH 22:16 < nsf> you shouldn't remove it 22:16 < nsf> you should change it to "gmp.so" 22:17 < ita> why can't i remove it 22:17 < ita> say, i distribute a go app that uses gmp 22:17 < nsf> because it tells plan9 C compiler where to look for a shared library 22:17 < nsf> it uses absolute path by default 22:17 < ita> would you be happy to create /home/waf/go/pkg/linux_amd64/gmp.so ? :-) 22:17 < nsf> but you can make it use relative path 22:17 < nsf> that works well with LD_LIBRARY_PATH 22:17 < dho> nsf: that's been answered several times on the mailing list 22:17 < ita> dho: ? 22:18 < nsf> dho: I know! I'm the author of those questions 22:18 < dho> but you can use -r to tell the linker a runtime search path 22:18 < nsf> it's stupid 22:19 < ita> dho: -r, hmm? but no environment variable to control it? 22:19 < nsf> binary shouldn't have absolute path 22:19 < nsf> it is stupid 22:19 < nsf> why do they do that? 22:19 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts 22:20 < nsf> it's not like it's the only way, they are just crazy plan9 devs that hate shared libraries 22:20 < ita> calling 6g with -r. makes the compiler cry 22:20 < nsf> :) 22:20 < dho> I said 6l, not 6g 22:20 < ita> and with only 6l it does not work (/me retries) 22:21 < nsf> ita: don't listen dho, let me tell you what you should do really 22:21 < dho> Yeah, I just do maintenance and features to cgo, clearly I'm stupid. 22:22 < nsf> I'm not telling that you're stupid 22:22 < nsf> but I clearly understand what ita wants 22:22 < nsf> and I know how to do it 22:22 < dho> cool, go for it. 22:22 < dho> or are you just referencing http://groups.google.com/group/golang-nuts/browse_thread/thread/20ff377c05e49a5e?pli=1 22:23 < ita> dho: with 6g pi.go && 6l -r. -o pi pi.6 and gmp.so in the same directory as pi, ./pi still complains ./pi: error while loading shared libraries: /home/waf/go/pkg/linux_amd64/gmp.so: cannot open shared object file: No such file or directory 22:23 < nsf> yes, read my message here 22:23 < nsf> make clean; make; then change _cgo_defun.c; then make again 22:23 < nsf> and make install or just link 22:24 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit: Leaving] 22:24 * ita reads 22:26 -!- stanleylieber [~stanleyli@68-179-130-17.bsr-c9-d1.evv.dhcp.sigecom.net] has quit [Ping timeout: 260 seconds] 22:26 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Read error: Connection reset by peer] 22:26 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has quit [Remote host closed the connection] 22:28 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts 22:29 < ita> nsf: that works, so cgo needs some post-processing to eliminate the absolute paths? 22:29 < nsf> currently yes 22:29 < dho> also has to do with the linker 22:30 < dho> which does not generate a full dynamic symbol table 22:30 < dho> it just generates enough to get by. 22:30 < ita> dho: works without "-r." 22:30 < dho> i'm explaining the reasoning behind the path to .so files for cgo 22:30 < dho> the fix isn't just to do something with cgo 22:30 -!- Project-2501 [~Marvin@82.84.73.243] has quit [Quit: E se abbasso questa leva che succ...] 22:30 < dho> the correct fix anyway 22:33 -!- lmoura [~lmoura@187.78.79.186] has joined #go-nuts 22:33 < nsf> ok, now I go to bed certainly (4:30 am here), ita - good luck with that :) 22:34 < dho> goodnight 22:34 < ita> nsf: good night 22:34 < nsf> sweet dreams :) 22:34 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 22:34 < ita> cgo hmmm... sucks 22:35 < dho> it's an interesting hack 22:35 -!- photron [~photron@port-92-201-151-8.dynamic.qsc.de] has quit [Ping timeout: 265 seconds] 22:36 -!- BrowserUk [~irc1_20_B@92.15.61.192] has joined #go-nuts 22:36 < ita> it basically means that one cannot really readistribute an app if it links against system libraries 22:37 -!- lmoura [~lmoura@187.78.79.186] has quit [Ping timeout: 265 seconds] 22:39 -!- artefon [~thiago@189.107.174.176] has joined #go-nuts 22:39 -!- terrex1 [~terrex@226.38.222.87.dynamic.jazztel.es] has quit [Ping timeout: 265 seconds] 22:45 -!- ita [~waf@kde/developer/tnagy] has left #go-nuts ["Konversation terminated!"] 22:57 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 23:03 -!- stanleylieber [~stanleyli@68-179-130-17.bsr-c9-d1.evv.dhcp.sigecom.net] has joined #go-nuts 23:04 -!- rinzai [~rinzai@host81-129-71-62.range81-129.btcentralplus.com] has joined #go-nuts 23:07 -!- perdix [~perdix@sxemacs/devel/perdix] has quit [Quit: A cow. A trampoline. Together they fight crime!] 23:14 -!- lmoura [~lmoura@187.78.79.186] has joined #go-nuts 23:19 -!- marsu [~marsu@180.181.95-79.rev.gaoland.net] has quit [Quit: Leaving] 23:25 -!- iant [~iant@nat/google/x-acnqqmkacepygpkv] has quit [Ping timeout: 240 seconds] 23:30 -!- rinzai [~rinzai@host81-129-71-62.range81-129.btcentralplus.com] has quit [Quit: Leaving] 23:32 -!- divoxx [~divoxx@c9150aca.virtua.com.br] has joined #go-nuts 23:32 -!- skelterjohn [~jasmuth@c-76-124-135-117.hsd1.nj.comcast.net] has joined #go-nuts 23:49 -!- tvw [~tv@e176004078.adsl.alicedsl.de] has quit [Ping timeout: 245 seconds] 23:50 -!- iant [~iant@216.239.45.130] has joined #go-nuts 23:50 -!- mode/#go-nuts [+v iant] by ChanServ 23:50 -!- rhelmer [~rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has joined #go-nuts 23:56 -!- rhelmer [~rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has quit [Quit: rhelmer] 23:59 -!- BrowserUk [~irc1_20_B@92.15.61.192] has left #go-nuts [] --- Log closed Wed Jun 16 00:00:10 2010