--- Log opened Thu May 19 00:00:50 2011 00:05 < uriel> moraes: mostly, yes 00:05 < uriel> moraes: let me see 00:05 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has joined #go-nuts 00:06 < moraes> uriel, if you can, add a link 00:11 < uriel> added 00:14 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has left #go-nuts [] 00:15 < moraes> wooo 00:16 -!- dfr|bohconf [~dfr|work@conference/railsconf/x-lqhmsyddehhwiany] has joined #go-nuts 00:18 -!- Squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host closed the connection] 00:23 -!- dfr|bohc_ [~dfr|work@conference/railsconf/x-zdvkagctzxfufofj] has joined #go-nuts 00:26 -!- dfr|bohconf [~dfr|work@conference/railsconf/x-lqhmsyddehhwiany] has quit [Ping timeout: 258 seconds] 00:41 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has joined #go-nuts 00:43 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has joined #go-nuts 00:50 -!- wallerdev [~wallerdev@c-68-60-43-43.hsd1.mi.comcast.net] has quit [Quit: wallerdev] 00:53 -!- ab3 [~abe@ip-83-134-145-47.dsl.scarlet.be] has joined #go-nuts 00:54 -!- twopoint718 [~chris@fsf/member/twopoint718] has joined #go-nuts 00:57 -!- iant [~iant@67.218.110.18] has quit [Quit: Leaving.] 00:59 -!- zaero [~eclark@2001:470:1f11:b82:ac09:fed1:55e6:794f] has quit [Ping timeout: 260 seconds] 01:00 < chomp> if i have a struct which holds a pointer to heap allocated by C code, is it sane to register a finalizer (on instances of that struct) that C.free's said pointer? 01:00 < chomp> i can't see why it wouldn't be 01:01 < Namegduf> Hmm. 01:01 -!- dfr|bohc_ [~dfr|work@conference/railsconf/x-zdvkagctzxfufofj] has quit [Ping timeout: 248 seconds] 01:02 < Namegduf> I don't know if the GC guarantees any particular rate of cleanup 01:02 < Namegduf> And anything that looked like a pointer to the struct maybe would block it. 01:02 < Namegduf> But yes, 01:02 < chomp> i'm not worried about it hanging around forever, just concerned with the correctness of the assumption that -eventually- free will be called and not break 01:02 < chomp> by "forever" i mean not literally, but "an arbitrarily long time" 01:05 -!- tobi_ [~tobi@CPE0026f3373198-CM0026f3373195.cpe.net.cable.rogers.com] has joined #go-nuts 01:07 -!- kr [~Keith@204.14.152.118] has quit [Ping timeout: 276 seconds] 01:07 -!- tobym [~tobym@cpe-72-229-2-6.nyc.res.rr.com] has quit [Ping timeout: 264 seconds] 01:14 < chomp> woo...almost a working telnetd 01:14 < chomp> in under 100 lines of go 01:16 < [def]> I'd like to add utility functions to http.ResponseWriter but i think i'm missunderstanding how interfaces are supposed to work: https://gist.github.com/dbc4f8a04e281b6800ab 01:16 < [def]> any idea how i can accomplish this here? 01:17 < [def]> I could simply wrap the handler and pass my own MyResponseWriter around but i thought that i should be able to declare a MyResponseWriter with http.ResponseWriter interchangeably after embedding it 01:18 < chomp> MyResponseWriter is not an http.ResponseWriter just because it holds one 01:18 < vsmatck> [def]: You can only define methods on a type within your package. 01:18 < vsmatck> So you'd need to do a type foo http.ResponseWriter. 01:18 < [def]> yea, so now i'm trying to use my own type within the package to work around this limitation 01:19 < vsmatck> oh what chomp said. 01:19 < Namegduf> Use functions. 01:19 < Namegduf> If you need it to meet an interface you can use your own type, probably through embedding to keep methods 01:19 < Namegduf> But you really shouldn't do that every damn time you want to write any of your own code 01:20 < Namegduf> You have functions, use them 01:20 -!- boscop_ [~boscop@g229217123.adsl.alicedsl.de] has joined #go-nuts 01:21 < [def]> use functions in which way? 01:21 < Namegduf> Write your "utility functions" 01:21 < Namegduf> As functions 01:21 < Namegduf> Which take the type you want them to operate on 01:21 < Namegduf> There's no reason utility functions should be methods 01:21 < Namegduf> The only, only thing methods can do which functions can't is meet interfaces. 01:22 < [def]> you mean add http.ResponseWriter as first parameter? 01:22 < Namegduf> Yeah, sure 01:22 -!- boscop [~boscop@g227147115.adsl.alicedsl.de] has quit [Ping timeout: 250 seconds] 01:22 < Namegduf> If you need to extend an external type to meet other interfaces, embedding can make sense, and it makes sense if you're, well, embedding it in something larger, but don't try to circumvent something the language doesn't do just to not use functions. 01:22 < [def]> sure, easy enough but that trades away a lot of code clarity 01:23 < Namegduf> No, it doesn't. 01:23 < [def]> it's writer.Error("not found") is a lot more more memorable API then error(writer, "not found") 01:23 < [def]> well 01:24 < [def]> in general at least 01:24 -!- twopoint718 [~chris@fsf/member/twopoint718] has quit [Ping timeout: 252 seconds] 01:24 < vsmatck> That's coke vs pepsi. 01:24 < [def]> this may simply be something i have to adjust to which is fine 01:24 < Namegduf> It is. 01:24 < vsmatck> But coke is clearly superior. 01:24 < Namegduf> Go is not a language which has only methods, nor is it a language where everything should be a method 01:25 < Namegduf> The stdlib has nice usage 01:25 < [def]> different question 01:25 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Quit: Leaving.] 01:26 < skelterjohn> i agree with vsmatck. pepsi is gross 01:26 < [def]> does http server from the stdlib create a new go routine for incoming connections or do i need to do that myself? 01:26 < skelterjohn> mntn dew is delicious, though 01:26 < skelterjohn> my saving grace since my campus switched from coke to pepsi 01:26 < skelterjohn> only pepsi product i can drink 01:26 < chomp> dr pepper > * 01:28 -!- danilo04 [~danilo04@129.21.100.41] has joined #go-nuts 01:31 < skelterjohn> i have dr pepper phases 01:32 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has joined #go-nuts 01:32 < vsmatck> I switched to diet dew a few months ago. :-/ I don't get enough physical activity to justify a lot of sugar/calories. 01:33 -!- dfr|bohconf [~dfr|work@conference/railsconf/x-ofmykhknafpmxwro] has joined #go-nuts 01:33 < skelterjohn> me neither 01:33 < skelterjohn> but i feel like diet dew would be gross 01:33 < vsmatck> You just have to drink it long enough to where you forget what the real thing tastes like. 01:35 < skelterjohn> that sounds sad :< 01:40 < vsmatck> Most things about my life are. :-/ 01:44 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 01:46 -!- niemeyer [~niemeyer@200-102-196-125.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 240 seconds] 01:50 -!- ajstarks [~ajstarks@pool-173-54-115-34.nwrknj.fios.verizon.net] has joined #go-nuts 01:50 -!- benjack [~benjack@bb121-7-168-23.singnet.com.sg] has joined #go-nuts 01:55 -!- tux21b [~tux21b@178.115.127.113.wireless.dyn.drei.com] has quit [Ping timeout: 240 seconds] 01:56 -!- ab3 [~abe@ip-83-134-145-47.dsl.scarlet.be] has quit [Ping timeout: 240 seconds] 01:57 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 248 seconds] 01:57 -!- dfr|bohconf [~dfr|work@conference/railsconf/x-ofmykhknafpmxwro] has quit [Remote host closed the connection] 02:02 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts 02:08 -!- ajstarks [~ajstarks@pool-173-54-115-34.nwrknj.fios.verizon.net] has quit [Quit: ajstarks] 02:17 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined #go-nuts 02:17 -!- ab3 [~abe@ip-83-134-145-47.dsl.scarlet.be] has joined #go-nuts 02:30 -!- sunfmin [~sunfmin@115.238.44.108] has joined #go-nuts 02:33 -!- gtaylor [~gtaylor@199.15.144.250] has quit [Quit: gtaylor] 02:33 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has quit [Ping timeout: 248 seconds] 02:35 -!- quag [~quag@121-98-81-61.bitstream.orcon.net.nz] has joined #go-nuts 02:37 < nteon> so if i have a function, and i want it to return one of several possible structures, what is the best way to do that? what im doing right now is having a structure with a field 'kind' (which is an integer), and then embedding that as the first field in the other structures, and then casting based on what the value of kind is 02:42 < exch> you can also return interface{} and then do a type switch on the return value to see what it actually is 02:50 < nteon> oh yea 02:50 -!- angasule [~angasule@190.2.33.49] has quit [Read error: Connection reset by peer] 02:50 < nteon> i could do that too, couldn't i 02:55 -!- aho [~nya@fuld-590c6450.pool.mediaWays.net] has joined #go-nuts 03:19 -!- pearle [~pearle@blk-224-181-222.eastlink.ca] has quit [Ping timeout: 246 seconds] 03:29 -!- gtaylor [~gtaylor@97-81-204-169.dhcp.hckr.nc.charter.com] has joined #go-nuts 03:32 -!- gtaylor2 [~gtaylor@97-95-231-85.dhcp.sffl.va.charter.com] has joined #go-nuts 03:32 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 03:34 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 03:35 -!- gtaylor [~gtaylor@97-81-204-169.dhcp.hckr.nc.charter.com] has quit [Ping timeout: 246 seconds] 03:42 -!- dfr|bohconf [~dfr|work@173-166-160-241-washingtondc.hfc.comcastbusiness.net] has joined #go-nuts 03:47 -!- JimmyRcom [~jimmy@adsl-75-53-45-212.dsl.rcsntx.sbcglobal.net] has quit [Ping timeout: 260 seconds] 03:47 -!- dfr|bohconf [~dfr|work@173-166-160-241-washingtondc.hfc.comcastbusiness.net] has quit [Remote host closed the connection] 03:48 -!- ab3 [~abe@ip-83-134-145-47.dsl.scarlet.be] has quit [Ping timeout: 260 seconds] 03:48 -!- dfr|bohconf [~dfr|work@nat/google/x-dhgheafuutriiuiw] has joined #go-nuts 03:52 -!- boscop_ [~boscop@g229217123.adsl.alicedsl.de] has quit [Ping timeout: 246 seconds] 03:52 -!- tux21b [~tux21b@chello213047047175.3.graz.surfer.at] has joined #go-nuts 03:56 -!- boscop_ [~boscop@g229217123.adsl.alicedsl.de] has joined #go-nuts 04:01 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Ping timeout: 264 seconds] 04:01 -!- binarypie [~binarypie@c-24-6-151-185.hsd1.ca.comcast.net] has joined #go-nuts 04:03 -!- gtaylor [~gtaylor@97-95-231-85.dhcp.sffl.va.charter.com] has quit [Quit: gtaylor] 04:03 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 04:06 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 264 seconds] 04:06 -!- ako [~nya@fuld-590c73d4.pool.mediaWays.net] has joined #go-nuts 04:07 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has quit [Quit: whitespacechar] 04:08 -!- photron [~photron@port-92-201-14-197.dynamic.qsc.de] has joined #go-nuts 04:08 -!- aho [~nya@fuld-590c6450.pool.mediaWays.net] has quit [Ping timeout: 246 seconds] 04:08 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #go-nuts 04:09 -!- dfr|bohconf [~dfr|work@nat/google/x-dhgheafuutriiuiw] has quit [Ping timeout: 260 seconds] 04:13 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts 04:14 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services] 04:14 -!- boscop_ [~boscop@g229217123.adsl.alicedsl.de] has quit [Ping timeout: 246 seconds] 04:14 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 04:18 -!- boscop_ [~boscop@g229217123.adsl.alicedsl.de] has joined #go-nuts 04:19 -!- boscop_ [~boscop@g229217123.adsl.alicedsl.de] has quit [Read error: Connection reset by peer] 04:25 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 240 seconds] 04:27 -!- keithcascio [~keithcasc@nat/google/x-vzsllsltsujvaork] has quit [Quit: Leaving] 04:34 -!- kuroneko [~chris@yayoi.xware.cx] has joined #go-nuts 04:34 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 04:34 -!- mode/#go-nuts [+v iant] by ChanServ 04:45 -!- tux21b [~tux21b@chello213047047175.3.graz.surfer.at] has quit [Ping timeout: 240 seconds] 04:55 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping timeout: 246 seconds] 04:55 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping timeout: 276 seconds] 04:55 -!- iant [~iant@216.239.45.130] has joined #go-nuts 04:55 -!- mode/#go-nuts [+v iant] by ChanServ 04:56 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined #go-nuts 04:57 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has joined #go-nuts 04:59 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat] 05:01 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts 05:09 -!- marcdurden [~chatzilla@67.170.197.160] has quit [Quit: ChatZilla 0.9.86.1 [Firefox 4.0.1/20110413222027]] 05:11 -!- danilo04 [~danilo04@129.21.100.41] has quit [Quit: Saliendo] 05:14 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-170-16.clienti.tiscali.it] has joined #go-nuts 05:18 -!- Ekspluati [576c168c@gateway/web/freenode/ip.87.108.22.140] has joined #go-nuts 05:29 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Read error: Connection reset by peer] 05:29 -!- ThePing [~phycho@174.127.64.107] has joined #go-nuts 05:29 -!- ThePing [~phycho@174.127.64.107] has left #go-nuts [] 05:36 -!- ako [~nya@fuld-590c73d4.pool.mediaWays.net] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 05:36 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has joined #go-nuts 05:41 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 250 seconds] 05:43 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 05:43 -!- sacho [~sacho@95-42-83-175.btc-net.bg] has quit [Ping timeout: 246 seconds] 05:43 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts 05:57 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts 05:59 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has joined #go-nuts 06:14 -!- napsy [~luka@193.2.66.6] has joined #go-nuts 06:18 < Ekspluati> Can I use bufio.Reader on a net.Conn or would it hang reading if there's no data coming and it's trying to fill the buffer? 06:19 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Ping timeout: 246 seconds] 06:19 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has joined #go-nuts 06:21 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote host closed the connection] 06:25 -!- boscop [~boscop@f050140192.adsl.alicedsl.de] has joined #go-nuts 06:25 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has quit [Remote host closed the connection] 06:27 -!- napsy [~luka@193.2.66.6] has quit [Ping timeout: 260 seconds] 06:28 -!- boscop_ [~boscop@f050140192.adsl.alicedsl.de] has joined #go-nuts 06:29 -!- boscop [~boscop@f050140192.adsl.alicedsl.de] has quit [Read error: Connection reset by peer] 06:30 -!- boscop_ [~boscop@f050140192.adsl.alicedsl.de] has quit [Read error: Connection reset by peer] 06:31 -!- napsy [~luka@193.2.66.6] has joined #go-nuts 06:31 < nteon> Ekspluati: it will block waiting for data, but I think it will only do one read(2) per Read() call to the reader 06:31 < nteon> thats generally what you want tho 06:31 -!- mehalelal [~mehalelal@76.103.175.11] has joined #go-nuts 06:31 -!- Project-2501 [~Marvin@82.84.77.248] has joined #go-nuts 06:34 -!- mehalelal [~mehalelal@76.103.175.11] has quit [Client Quit] 06:35 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-170-16.clienti.tiscali.it] has quit [Ping timeout: 248 seconds] 06:35 < Ekspluati> But I can't actually get the data before the read is completed, right? 06:35 -!- mehalelal [~mehalelal@76.103.175.11] has joined #go-nuts 06:37 < nteon> Ekspluati: correct 06:37 -!- mehalelal [~mehalelal@76.103.175.11] has quit [Client Quit] 06:38 < nteon> Ekspluati: but, you can just handle your request (and the read) in a goroutine 06:38 < nteon> so you can other goroutines doing their thing while that particular request is waiting for data 06:38 -!- fvbommel [~fvbommel_@86.86.15.250] has quit [Ping timeout: 246 seconds] 06:38 < nteon> besides, if you don't have any data yet you don't have anything to do :) 06:39 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 06:39 < Ekspluati> The problem here is that if I only get 5 bytes and the buffer is 6 bytes, I can't continue if the server is waiting for my response before sending any more data ;) 06:40 -!- mehalelal [~mehalelal@76.103.175.11] has joined #go-nuts 06:40 < Ekspluati> But anyway, I have to go 06:40 < Ekspluati> I'll think about this more later :D 06:40 -!- Ekspluati [576c168c@gateway/web/freenode/ip.87.108.22.140] has quit [Quit: Page closed] 06:44 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 06:49 -!- mehalelal [~mehalelal@76.103.175.11] has quit [Quit: Leaving] 06:53 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has quit [Quit: Leaving] 06:54 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 06:54 -!- Squeese [~squeese@244.14.213.193.static.cust.telenor.com] has joined #go-nuts 06:55 -!- Squeese [~squeese@244.14.213.193.static.cust.telenor.com] has quit [Remote host closed the connection] 06:57 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 240 seconds] 06:58 -!- piranha [~piranha@D57D1AB3.static.ziggozakelijk.nl] has joined #go-nuts 07:02 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts 07:05 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has joined #go-nuts 07:10 < nteon> if i have a reflect.Value, how do i get the uint8 it points to? 07:11 < nteon> i guess i can use Value.Internal, even though it isn't recommended 07:15 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|] 07:21 -!- Fish [~Fish@exo3753.pck.nerim.net] has quit [Quit: So Long, and Thanks for All the Fish] 07:24 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts 07:24 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:e89c:d95d:7687:8d56] has joined #go-nuts 07:27 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Ping timeout: 264 seconds] 07:38 -!- fvbommel [~fvbommel_@dyn069048.nbw.tue.nl] has joined #go-nuts 07:41 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has quit [Quit: This computer has gone to sleep] 07:41 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has quit [Remote host closed the connection] 07:42 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Read error: Operation timed out] 07:43 -!- wrtp [~rog@92.17.91.230] has joined #go-nuts 07:43 -!- rog [~rog@92.17.91.230] has joined #go-nuts 07:43 -!- mehalelal [~mehalelal@76.103.175.11] has joined #go-nuts 07:44 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Read error: Operation timed out] 07:45 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts 07:45 -!- boscop [~boscop@f055002089.adsl.alicedsl.de] has joined #go-nuts 07:46 < mehalelal> For anyone who was on earlier who helped me with my problem (mainly nteon, uriel, and ww), I figured out what was wrong. A huge duh moment: the kernel was 64-bit but the userland was 32-bit 07:47 -!- piranha [~piranha@D57D1AB3.static.ziggozakelijk.nl] has quit [Ping timeout: 246 seconds] 07:47 < vegai> how did you do that? 07:49 -!- rog [~rog@92.17.91.230] has left #go-nuts [] 07:50 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts 07:55 -!- gregschlom [~quassel@187.118.210.62.te-dns.org] has joined #go-nuts 07:59 < mehalelal> vegai: I was going through a bunch of live cds and then came to finnix, which said "uses a 64-bit kernel but only a 32-bit userland". Since the other live cds had the same problem, I deduced that they also were using 32-bit userlands (to save on space). 07:59 < mehalelal> night all 07:59 -!- mehalelal [~mehalelal@76.103.175.11] has quit [Quit: Leaving] 08:21 -!- _dfc [~dfc@eth59-167-133-99.static.internode.on.net] has joined #go-nuts 08:22 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it] has joined #go-nuts 08:23 -!- Ekspluati [5b98b736@gateway/web/freenode/ip.91.152.183.54] has joined #go-nuts 08:25 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has quit [Ping timeout: 246 seconds] 08:26 -!- _dfc [~dfc@eth59-167-133-99.static.internode.on.net] has quit [Ping timeout: 260 seconds] 08:40 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit: Leaving] 08:51 -!- kr [~Keith@c-24-5-193-165.hsd1.ca.comcast.net] has joined #go-nuts 08:51 -!- genbattle [~nick@203-173-207-1.dialup.ihug.co.nz] has joined #go-nuts 08:52 < genbattle> hiyas 08:53 < genbattle> i'm passing an argument into a method as type []interface{}, but it won't let me pass a []int 08:54 < genbattle> so i'm guessing the interface{} parameter type qualifier only works for structs or soemthing? 08:55 -!- genbattle [~nick@203-173-207-1.dialup.ihug.co.nz] has left #go-nuts [] 08:55 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 08:55 -!- genbattle [~nick@203-173-207-1.dialup.ihug.co.nz] has joined #go-nuts 08:56 < genbattle> ech, sorry, got disconnected 08:56 < genbattle> did anyone have an answer to my query? 08:56 < edsrzf> Yeah, you have to make a new []interface and then convert each element of the []int 08:57 < edsrzf> []interface{}, I mean 09:08 -!- marten_ [~marten@62.21.178.171] has joined #go-nuts 09:35 -!- petrux_ [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has joined #go-nuts 09:36 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has quit [Ping timeout: 250 seconds] 09:37 -!- petrux_ [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has quit [Client Quit] 09:45 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has joined #go-nuts 09:47 -!- benjack [~benjack@bb121-7-168-23.singnet.com.sg] has quit [Quit: Leaving.] 09:49 < genbattle> is there a better way to pass a generic array of any type into a function other than using []interface{} 09:49 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts 09:50 < genbattle> it's a royal pain the ass to have to convert every item in an array to an interface type to be able to pass it in as an []interface{} 09:51 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-165-134.clienti.tiscali.it] has joined #go-nuts 09:54 < wrtp> genbattle: why do you want do that? i.e. what's the function that's accepting an array of interface{} ? 09:54 -!- Project-2501 [~Marvin@82.84.77.248] has quit [Ping timeout: 260 seconds] 09:55 < genbattle> wrtp: i want to be able to pass any array into a function 09:55 < fvbommel> genbattle: You could pass it as an interface{} itself, and have the function panic if the argument isn't an array? 09:55 < wrtp> genbattle: if you really want that then you're best off using reflection 09:55 < genbattle> ok 09:56 < wrtp> i.e. pass a single value into the function and use reflection to get the values out of it 09:56 < genbattle> hmmm 09:56 < wrtp> the fmt package does something similar to be able to print out the contents of any array 09:56 < genbattle> i guess i have to think a bit more carefully about how i want to do this 09:56 < genbattle> i'm trying to interface to a C function that accepts a pointer to a memory location, and then a length in bits for the array 09:57 < genbattle> so i want to encapsulate all the unsafe and reflect stuff i do within the cgo method 09:57 < wrtp> what does the C function do with that memory? 09:57 < genbattle> copies it 09:58 < genbattle> so it basically copies it byte by byte to another location, regardless of the actual data within in 09:58 < genbattle> *it 09:58 < wrtp> well, if i really wanted to do that, i'd use reflection to find out the address of the first element of the array and the size of the elements 09:58 < wrtp> and then pass the size and the pointer to C 09:58 < wrtp> it'll only be two or three lines of code 09:58 < genbattle> that's what i'm doing 09:59 < genbattle> but i'm trying to encapsulate it all inside my cgo function so I can just pass any array into the function and it just figures out the length and pointer 10:00 < wrtp> e.g. func(a interface{}) {av := reflect.ValueOf(a); ptr := av.Index(0).Addr(); len := av.Len(); ... etc} 10:01 < genbattle> ok 10:01 < genbattle> that makes more sense 10:01 < genbattle> thanks 10:01 < wrtp> np 10:11 -!- COBOL2121 [~Null@usr018.bb160-01.udk.im.wakwak.ne.jp] has joined #go-nuts 10:17 < uriel> 09:55 < genbattle> wrtp: i want to be able to pass any array into a function 10:17 < uriel> genbattle: you still didn't explain what you are trying to do 10:18 -!- virtualsue [~chatzilla@nat/cisco/x-xdqlheyvdydfeugq] has joined #go-nuts 10:19 < wrtp> uriel: they did later 10:19 < wrtp> something dodgy :-) 10:19 < genbattle> heh 10:20 < genbattle> uriel: the short of it was I wanted to be able to measure the byte size of an array and get a pointer to the first element, but i wanted to encapsulate the nastiness in my own cgo function so you could just pass in any array without worrying about it 10:24 -!- kr [~Keith@c-24-5-193-165.hsd1.ca.comcast.net] has quit [Ping timeout: 260 seconds] 10:26 < moraes> what is the point of variadics? that seems a little random to a newbie. :P 10:27 < moraes> it is the same as *args in python, but must be of a single type. 10:29 < uriel> moraes: the 'single type' can be interface{} 10:29 < uriel> not different from any other arguments, Go is statically typed 10:29 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has quit [Remote host closed the connection] 10:29 < moraes> can only be interface? 10:30 < moraes> no. 10:31 < moraes> i have to play around. 10:34 < wrtp> moraes: it's so you don't have to type fmt.Printf("%d", []interface{}{x}) :-) 10:41 -!- genbattle [~nick@203-173-207-1.dialup.ihug.co.nz] has quit [Quit: Leaving] 10:43 -!- alehorst [~alehorst@200.146.83.195.dynamic.adsl.gvt.net.br] has joined #go-nuts 10:49 < moraes> wrtp, ok, i need to follow a tutorial from beginning to finish instead of reading random things 10:49 -!- marten_ [~marten@62.21.178.171] has quit [Quit: marten_] 10:50 < moraes> final goal is to achieve the gopher plush toy 10:52 -!- marten_ [~marten@62.21.178.171] has joined #go-nuts 10:53 -!- napsy [~luka@193.2.66.6] has quit [Quit: Lost terminal] 10:58 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 10:58 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has joined #go-nuts 10:59 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 11:01 -!- sacho [~sacho@95-42-83-175.btc-net.bg] has joined #go-nuts 11:04 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-165-134.clienti.tiscali.it] has quit [Ping timeout: 276 seconds] 11:08 < skelterjohn> morning 11:08 < str1ngs> hmm how do I convert C unsigned int to Go int? 11:08 < skelterjohn> int(theOtherKindOfInt) 11:08 < str1ngs> gah thanks think I'm half asleep still 11:08 < skelterjohn> i know the feeling 11:09 * str1ngs pours more dark roast :P 11:11 < str1ngs> I also need to convert a C struct to const struct not sure if this is doable 11:12 < aiju> "const struct"? 11:12 < str1ngs> yes 11:12 < aiju> wtfi const struct? 11:12 < str1ngs> C type 11:12 < aiju> (const foo) ? 11:13 < str1ngs> I dont think go understands const 11:13 -!- boscop [~boscop@f055002089.adsl.alicedsl.de] has quit [Ping timeout: 246 seconds] 11:13 < str1ngs> hmm I guess I could type cast it in C? 11:17 < skelterjohn> easiest way to figure out is to write a pretend C function that takes the target type as a parameter, and call it from go 11:17 < skelterjohn> the compiler will tell you what type it expects 11:19 < str1ngs> ah then use something like fmt.Printf("%T",foo) 11:19 < str1ngs> ok will try that thanks 11:21 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has quit [Quit: whitespacechar] 11:25 -!- Vigud [u1143@gateway/web/irccloud.com/x-mfsgmatrbsolzzmg] has left #go-nuts [] 11:25 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has joined #go-nuts 11:27 -!- ab3 [~abe@ip-83-134-145-47.dsl.scarlet.be] has joined #go-nuts 11:27 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has quit [Client Quit] 11:27 -!- JimmyRcom [~jimmy@adsl-75-53-45-212.dsl.rcsntx.sbcglobal.net] has joined #go-nuts 11:30 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-180-209.clienti.tiscali.it] has joined #go-nuts 11:35 -!- pearle [~pearle@blk-224-181-222.eastlink.ca] has joined #go-nuts 11:38 -!- randfur [~androirc@58.145.148.115] has joined #go-nuts 11:44 -!- sunfmin [~sunfmin@115.238.44.108] has quit [Quit: sunfmin] 11:45 -!- niemeyer [~niemeyer@200-102-196-125.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 11:45 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 11:46 -!- randfur [~androirc@58.145.148.115] has quit [Ping timeout: 276 seconds] 11:48 -!- Fish [~Fish@exo3753.pck.nerim.net] has quit [Quit: So Long, and Thanks for All the Fish] 11:49 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has joined #go-nuts 11:50 -!- randfur [~androirc@58.145.148.113] has joined #go-nuts 11:50 -!- tncardoso [~thiago@150.164.2.20] has joined #go-nuts 11:50 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts 11:52 < manveru> how can i do a select on a dynamic set of channels? 11:52 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has quit [Client Quit] 11:53 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has joined #go-nuts 11:54 < aiju> manveru: not at all 11:54 < manveru> oh damn 11:54 -!- boscop [~boscop@f050146099.adsl.alicedsl.de] has joined #go-nuts 11:55 -!- Sep102__ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has joined #go-nuts 11:57 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has quit [Client Quit] 11:58 -!- Sep102_ [~Sep102@c-71-231-176-153.hsd1.wa.comcast.net] has quit [Ping timeout: 260 seconds] 11:58 < wrtp> manveru: why do you want to? 11:59 < wrtp> you can usually arrange that many goroutines write to a single channel 11:59 < manveru> well, i have named job queues, and a user sends requests that start/stop listening to names 12:01 < manveru> i'd prefer to have the queue not knowing about the client, just exposing a channel each that clients can pull from 12:02 < manveru> i could iterate the channels, but that means that i cannot use select semantics, i.e. i'd have to do a non-blocking pop and manually slow down the iteration 12:05 < wrtp> manveru: you could have one goroutine for each job queue and a single channel for each queue for clients of that queue to read from 12:06 < manveru> yes 12:06 < manveru> but a client should be able to read from more than one job queue 12:06 < wrtp> manveru: that's fine - a client will usually know how many queues it wants to read from, so it can use select itself 12:06 -!- randfur [~androirc@58.145.148.113] has quit [Ping timeout: 276 seconds] 12:07 < manveru> well, i'm coding the client 12:07 < manveru> i get the names of the channels via a text protocol 12:08 < manveru> for example "watch foo\r\nwatch bar\r\n" 12:08 < manveru> then i find or create those queues and add them to a vector in the client struct 12:09 < wrtp> what's generating the stuff to go in the queue? 12:09 < manveru> also the clients 12:10 < wrtp> also the clients and... ? 12:10 < manveru> https://github.com/kr/beanstalkd/raw/v1.1/doc/protocol.txt 12:11 < manveru> see the put command 12:11 < manveru> i parse that, create a job struct, and put it into the job queue that the client wants to put it in 12:12 < manveru> if the queue doesn't exist, i create it and start its internal operation in a goroutine 12:12 * wrtp is looking 12:12 < manveru> to avoid shared state, i only allow communication with the job queues through channels 12:14 < manveru> each job queue consists of 4 heaps, ordered differently, which also only communicate with channels 12:16 < wrtp> i can't work out what data is returned as a result of a watch command 12:16 -!- Project-2501 [~Marvin@82.84.75.218] has joined #go-nuts 12:16 < manveru> "WATCHING <count>\r\n" 12:17 < manveru> count being the number of queues being watched 12:17 < wrtp> but no on-going data? 12:17 < manveru> no 12:17 < manveru> a client sends a "reserve" command to receive the next ready job from any of the watched queues 12:18 < wrtp> so all the commands are strictly request-response? 12:18 < manveru> yes 12:19 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-180-209.clienti.tiscali.it] has quit [Ping timeout: 240 seconds] 12:19 < wrtp> i think i'd have a goroutine per client, acting on behalf of the client 12:19 < manveru> i have that 12:20 < wrtp> and a goroutine per queue, storing items in the queue and sending on a channel to any client that reads on it 12:20 < manveru> yes, i have that 12:20 < wrtp> and also reading on the queue's "put" channel 12:21 < manveru> that's input-only 12:21 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has joined #go-nuts 12:21 < wrtp> then any client can add an item to a queue by sending on its put channel 12:21 < manveru> yeah, got that too :) 12:21 < wrtp> what do you mean by "input-only"? 12:21 < manveru> for the client, they cannot read from a put channel 12:21 < wrtp> sure 12:22 < wrtp> in fact you'd probably just have a put method rather than a channel. guaranteed not to block. 12:22 < wrtp> so in that scenario i'm not sure i see where you want a dynamic list of channels to select on 12:22 < manveru> so, my question again, how do i efficiently get data from a dynamic number of queues? 12:22 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has joined #go-nuts 12:23 < wrtp> where in the protocol do you need to be able to wait on more than one queue at once? 12:23 < manveru> a client can watch more than one queue at once 12:24 < wrtp> it looks to me like there's only one argument to the watch command 12:24 < manveru> he can send "watch <tube>" and "ignore <tube>" commands 12:25 < wrtp> yeah, but each one has only one reply, so i still don't see it 12:25 < manveru> the reply is the number of queues being watched at the moment 12:25 < wrtp> ok 12:25 < manveru> the reserve command should select the first available job from the watched queues 12:26 < wrtp> ah 12:27 < manveru> you understand now why i'd like to use select? :) 12:27 < wrtp> and of course if you take from one queue, you don't want to take from any of the others 12:27 < wrtp> yeah 12:28 < wrtp> does it matter if items are reordered in the queue? 12:28 < manveru> they are ordered by priority 12:28 < manveru> that's why i use a heap 12:29 < manveru> that's the "READY" part of the tube diagram 12:30 < manveru> hm 12:30 < manveru> i could probably start one goroutine per watched queue per client 12:30 < wrtp> yeah, i've been thinking about that 12:30 < manveru> but that would be a pain to manage... 12:30 < wrtp> but i was wondering how best to get around the implied buffering 12:31 < manveru> yeah 12:31 < manveru> hm 12:31 < wrtp> given that the queue is priority ordered, i don't think there's a problem 12:31 < manveru> well, i think i know 12:32 < wrtp> you have a goroutine per watched queue per client, then they put back all but the first item retrieved 12:32 < manveru> for { select { gotJob = <-queue: handle(job); <-otherGotJob: ; } <-otherFinishedJob } 12:33 < manveru> something like that? 12:33 < manveru> i suspect that's still prone to races 12:33 < wrtp> hold on, i could sketch some code 12:34 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has quit [Quit: whitespacechar] 12:37 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts 12:39 -!- Sunil [~sunil@115.113.211.130] has joined #go-nuts 12:41 < wrtp> manveru: http://pastebin.com/WQkWa9aS 12:43 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 12:44 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 12:46 < manveru> yeah 12:46 < wrtp> does that make sense/ 12:46 < wrtp> ? 12:46 < manveru> so we basically risk taking more than one and putting them back 12:46 < wrtp> yeah 12:47 < wrtp> but because the queues are pri ordered, that doesn't really matter 12:47 < wrtp> there's another possibility actually 12:48 < manveru> well, assuming something like [1,1,2], and two workers, priority 2 might be processed before priority 1 12:48 < wrtp> instead of sending actual jobs down the queue 12:48 < wrtp> yeah, that is true actually 12:48 < wrtp> ok so 12:48 < wrtp> instead of sending actual jobs down the queue 12:48 < wrtp> you send "job notifications" 12:48 < wrtp> which are sent as long as there are jobs in the queue 12:49 < wrtp> when you get a job notification, you can take a job from the queue (protected with mutex) 12:49 < wrtp> or you can choose not to 12:49 < Sunil> any reason why os package doesn't have chroot syscall? 12:49 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the connection] 12:49 < wrtp> manveru: actually, i think that maps better onto the problem domain 12:50 -!- foocraft [~ewanas@86.36.49.200] has joined #go-nuts 12:53 < wrtp> oh darn, that doesn't work 12:54 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has joined #go-nuts 12:57 -!- Zoopee [alsbergt@zoopee.org] has quit [Ping timeout: 248 seconds] 12:57 -!- tobym [~tobym@72.229.2.6] has joined #go-nuts 12:58 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts 12:58 < wrtp> manveru: http://pastebin.com/6xM9JgVB 12:59 -!- Project-2501 [~Marvin@82.84.75.218] has quit [Quit: E se abbasso questa leva che succ...] 12:59 < wrtp> essentially when you retrieve a job from the queue, you handshake with the central process to tell them whether to remove it from the queue or not 12:59 < wrtp> i think that should work 13:00 < manveru> hm 13:01 < manveru> that sounds good enough, i think 13:01 < manveru> thanks :) 13:01 < wrtp> cool 13:02 < wrtp> note that it's important that the queue's channel is unbuffered 13:02 -!- Project_2501 [~Marvin@82.84.75.218] has joined #go-nuts 13:02 < manveru> yeah 13:03 < manveru> it can't do any background work, so i don't think that's an issue 13:04 < wrtp> sorry, how does background work make a difference? 13:04 < wrtp> BTW the "for {" at the start of reader is spurius 13:04 < wrtp> s/ius/ious/ 13:04 < wrtp> oh i see, if you wanted the queue manager to work in parallel 13:07 < wrtp> in fact reader was a bit mucked up. http://pastebin.com/4KPJ03aA 13:12 -!- freetz [~fritz@bc-proxy-2.sandia.gov] has joined #go-nuts 13:14 -!- COBOL2121 [~Null@usr018.bb160-01.udk.im.wakwak.ne.jp] has quit [Remote host closed the connection] 13:18 -!- Sunil [~sunil@115.113.211.130] has quit [Read error: Operation timed out] 13:19 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Read error: Operation timed out] 13:24 < hallas> better code fast... judgement day coming soon OWOWOowowowo 13:24 -!- dlowe [~dlowe@63.107.91.99] has joined #go-nuts 13:25 -!- zcram [~zcram@77-233-67-129.cdma.dyn.kou.ee] has joined #go-nuts 13:25 -!- tobym [~tobym@72.229.2.6] has quit [Ping timeout: 258 seconds] 13:26 -!- r_linux [~r_linux@smtp.mandique.com.br] has joined #go-nuts 13:30 < jeremy_c> stupid people... judgement day. 13:31 < hallas> if it happens! 13:31 < hallas> glad my karma is tip top 13:32 -!- sunfmin [~sunfmin@115.206.253.191] has joined #go-nuts 13:32 < jeremy_c> don't think karma does the trick :-) but, getting a bit off topic :-) 13:34 < dlowe> skype + .net = sky.net 13:34 < aiju> haha 13:34 < aiju> we're all doomed 13:37 * jeremy_c is just disappointed that one heretic makes millions of Christians look stupid. 13:38 < delinka> the loudest voices get camera time. it's a media world. 13:39 < delinka> ok, the wackiest ideas get camera time. 13:39 < jeremy_c> I think the craziest also. 13:39 < jeremy_c> yeah. 13:39 < dlowe> the ideas that will sell the most advertising 13:39 < aiju> what the fuck is this judgement day bullshit 13:39 < jeremy_c> and if the news reports it, it must be rtue! 13:40 < jeremy_c> aiju: some guy claims Saturday is Judgement day, the end of the world. Been in quite a few news sources. 13:40 -!- dfc [~dfc@202.81.69.153] has joined #go-nuts 13:41 < dlowe> We'll all have to go through the same thing on Dec 2012 too 13:41 < dlowe> At least the End of the World parties are fun 13:41 < manveru> doubt they'll beat the ones from 2000 13:44 -!- dfc [~dfc@202.81.69.153] has quit [Read error: Connection reset by peer] 13:44 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts 13:48 -!- alehorst [~alehorst@200.146.83.195.dynamic.adsl.gvt.net.br] has quit [Ping timeout: 246 seconds] 13:49 -!- dfc [~dfc@202.81.69.153] has joined #go-nuts 13:49 < aiju> 21 April 2011 has been prophesied in the Terminator franchise as "Judgement Day" 13:51 < aiju> 21 April 2011 has been prophesied in the Terminator franchise as "Judgement Day" 13:51 < aiju> oops 13:51 < aiju> It will be on May 21st that God will raise up all the dead that have ever died from their graves. 13:52 -!- zaero [~eclark@2001:470:1f11:b82:9460:5685:ee0a:c1c] has joined #go-nuts 13:52 -!- sacho [~sacho@95-42-83-175.btc-net.bg] has quit [Read error: No route to host] 13:52 -!- dfc [~dfc@202.81.69.153] has quit [Read error: Connection reset by peer] 13:52 -!- sauerbraten [~sauerbrat@p5B34EBA6.dip.t-dialin.net] has joined #go-nuts 13:53 < xyproto> aiju: Which religion is that? If you mean christianity, I challenge you to find the part where "graves" is actually mentioned. 13:53 < sauerbraten> What's the best way to execute commands with go? I thought of syscall.ForkExec, but will I ever know if the program returned successfully? Or would exec.Run be the better choice? 13:54 < aiju> xyproto: pseudochristianity 13:54 < pharris> Nah, it's just the "May Two-Four" weekend, when Canadians wake up from hibernation. 13:54 < Tonnerre> Oh yeah, all the dead people who died in their graves… 13:55 -!- foocraft [~ewanas@86.36.49.200] has quit [Ping timeout: 240 seconds] 13:55 < delinka> it'd be terrible to die from a grave. I'm not sure what that means, but it sounds unfun. 13:55 < Tonnerre> So you didn't watch Kill Bill? 13:56 < xyproto> I don't like anything pseudo. Except perhaps pseudo-random numbers. Those are cool. 13:56 < delinka> dying *in* a grave, and dying *from* a grave have different meanings in my mind 13:57 -!- foocraft [~ewanas@86.36.49.200] has joined #go-nuts 13:58 < xyproto> I especially like the idea of generating enormous levels for games, using pseaudo-random numbers, with the same seed every time, to give some level of control during the design phase. 14:00 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has joined #go-nuts 14:01 < wrtp> xyproto: c.f. Elite 14:01 -!- foocraft [~ewanas@86.36.49.200] has quit [Client Quit] 14:02 -!- alehorst [~alehorst@189.114.184.152] has joined #go-nuts 14:03 < xyproto> wrtp: exactly :) 14:03 -!- explora [5e364554@gateway/web/freenode/ip.94.54.69.84] has joined #go-nuts 14:03 < exch> minecraft! 14:03 < ampleyfly> Autobahn! 14:04 < xyproto> robotfindskitten? :P 14:04 < xyproto> no, that's a new every time 14:04 < xyproto> *new seed 14:04 -!- explora [5e364554@gateway/web/freenode/ip.94.54.69.84] has quit [Client Quit] 14:05 -!- sacho [~sacho@95-42-98-177.btc-net.bg] has joined #go-nuts 14:06 < xyproto> robotfindskitten is an excellent zen simulator, btw 14:09 < jeremy_c> w/googlecode is there a way to ask repo xyz to pull from your repo abc which is a clone w/fixes of xyz (like github)? 14:10 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined #go-nuts 14:13 -!- exch [~exch@c74149.upc-c.chello.nl] has quit [Quit: leaving] 14:15 -!- binarypie [~binarypie@c-24-6-151-185.hsd1.ca.comcast.net] has quit [Ping timeout: 276 seconds] 14:17 -!- Adys [~Adys@unaffiliated/adys] has quit [Read error: Connection reset by peer] 14:18 -!- exch [~exch@c74149.upc-c.chello.nl] has joined #go-nuts 14:19 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has joined #go-nuts 14:20 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit [Ping timeout: 276 seconds] 14:22 -!- alehorst [~alehorst@189.114.184.152] has quit [Ping timeout: 246 seconds] 14:25 -!- jep200404 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has joined #go-nuts 14:26 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #go-nuts 14:26 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat] 14:26 -!- jep200404-2 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has joined #go-nuts 14:27 -!- jep200404-2 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has quit [Client Quit] 14:31 -!- fvbommel [~fvbommel_@dyn069048.nbw.tue.nl] has quit [Ping timeout: 276 seconds] 14:32 -!- dfr|bohconf [~dfr|work@conference/railsconf/x-xufcyhrqhrbucncx] has joined #go-nuts 14:35 -!- alehorst [~alehorst@201.22.42.15.dynamic.adsl.gvt.net.br] has joined #go-nuts 14:36 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 14:37 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has joined #go-nuts 14:39 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has quit [Client Quit] 14:39 -!- steveh [~steveh@learnsci-adsl.demon.co.uk] has joined #go-nuts 14:43 < xyproto> Are there any plans to rewrite 6g in Go? 14:44 < str1ngs> I have a struct generated by godef . but I cant figure out how to have the C method that return that type convert it to the go struct. here is the example code https://gist.github.com/980916 14:44 < str1ngs> actually C function sorry 14:46 < wrtp> str1ngs: i think you'd have to use unsafe pointer conversion 14:47 < str1ngs> wrtp: ya I know how to pass an empty struct this way to a C function but not when it returns like this 14:48 < wrtp> str1ngs: do the call, then take the address of the returned value and convert it to a pointer to IndexEntry 14:49 < str1ngs> ah good idea let me play with that 14:49 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has joined #go-nuts 14:49 < gmilleramilar> xyproto: not really practical at this point, as you'd have a bootstrapping issue. It would make more sense to write an additional compiler, but you'd still have to maintain both. 14:51 < xyproto> gmilleramilar: ah, you mean a bootstrapping issue on new platforms, where a go compiler does not exist yet? 14:52 < gmilleramilar> yes. 14:52 < xyproto> gmilleramilar: I see. While you can count on a C compiling being there in the first place. That makes sense. 14:53 < xyproto> gmilleramilar: It would be quite exotic platforms, though? 14:54 -!- boscop [~boscop@f050146099.adsl.alicedsl.de] has quit [Ping timeout: 246 seconds] 14:55 < manveru> wrtp: i think i have another crazy solution 14:57 -!- boscop [~boscop@f050146099.adsl.alicedsl.de] has joined #go-nuts 14:57 < wrtp> manveru: go on 14:57 < wrtp> (i quite liked my idea) 14:57 -!- jbooth1 [~jay@209.249.216.2] has joined #go-nuts 15:01 -!- aho [~nya@fuld-590c782c.pool.mediaWays.net] has joined #go-nuts 15:01 -!- dolch [~ftw@99.237.1.65] has quit [Quit: leaving] 15:02 < manveru> heh 15:02 < manveru> yeah, just ran into more trouble 15:04 < manveru> sorry, gotta discuss that later, battery is running out 15:08 < str1ngs> wrtp: I just posted it to the ML. because I'm kinda lost on this one 15:09 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has joined #go-nuts 15:10 < wrtp> manveru: np 15:10 -!- sauerbraten [~sauerbrat@p5B34EBA6.dip.t-dialin.net] has quit [Remote host closed the connection] 15:10 < wrtp> manveru: PS i advise mains electricity :-) 15:12 < chomp> str1ngs, what's the problem now? i've been doing a lot of Cgo lately. 15:12 -!- boscop [~boscop@f050146099.adsl.alicedsl.de] has quit [Ping timeout: 246 seconds] 15:13 -!- sunfmin [~sunfmin@115.206.253.191] has quit [Quit: sunfmin] 15:13 < str1ngs> chomp: I need to convert a C function return value to a godef generated struct 15:13 -!- boscop [~boscop@f050146099.adsl.alicedsl.de] has joined #go-nuts 15:13 < chomp> code? 15:14 < str1ngs> https://gist.github.com/980916 15:14 < str1ngs> basically I need index_extry to become IndexEntry 15:16 -!- binarypie [~binarypie@adsl-76-254-24-124.dsl.pltn13.sbcglobal.net] has joined #go-nuts 15:16 < exch> I assume the struct layout generated by godef is identical to the C version? If so, wouldn't a cast like index_entry -> unsafe.pointer -> IndexEntry work? 15:16 < chomp> having trouble finding the git documentation for index_entry 15:16 < chomp> but that looks like an easy thing to do 15:16 < wrtp> exch: that's what i suggested 15:16 < str1ngs> chomp: its actually from libgit2 git_index_entry 15:17 < wrtp> go_index_entry = (*IndexEntry)(unsafe.Pointer(&index_entry)) 15:18 < str1ngs> ah that makes sense wrtp 15:20 < str1ngs> wrtp: ok that works thank you 15:22 < wrtp> cool 15:23 -!- boscop [~boscop@f050146099.adsl.alicedsl.de] has quit [Read error: Connection reset by peer] 15:24 < str1ngs> I just had to use (index_entry) since its a pointer already 15:25 -!- ksni [~janne@pdpc/supporter/student/kosiini] has joined #go-nuts 15:27 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts 15:33 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has quit [Quit: This computer has gone to sleep] 15:37 -!- oal [~oal@5.79-160-122.customer.lyse.net] has joined #go-nuts 15:38 < delinka> is there a better way to append elements to an array besides reallocating and copying to a new one? 15:39 < jeremy_c> not sure of the internals, but append? Is that what append() is doing? 15:40 <+iant> delinka: that is the only way to append to an array, but you can append to a slice by using the append() builtin, and that is probably what you want to be doing 15:41 < jeremy_c> http://golang.org/doc/go_spec.html#Appending_and_copying_slices 15:41 -!- dirthead [~chatzilla@68-116-31-34.static.yakm.wa.charter.com] has quit [Ping timeout: 246 seconds] 15:47 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 15:49 -!- dirthead [~chatzilla@68-116-31-34.static.yakm.wa.charter.com] has joined #go-nuts 15:50 -!- tobym [~tobym@cpe-72-229-2-6.nyc.res.rr.com] has joined #go-nuts 15:52 -!- fvbommel [~fvbommel_@86.86.15.250] has joined #go-nuts 15:55 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts 15:56 < ksni> http://www-cs-students.stanford.edu/~blynn/c2go/ch02.html What does the first line of the for loop in the simple Go cat do? Do b and er get the same value? 15:58 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts 15:59 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has joined #go-nuts 16:00 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Read error: Connection reset by peer] 16:00 -!- ShadowIce [~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined #go-nuts 16:00 -!- ShadowIce [~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit [Changing host] 16:00 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 16:00 < exch> ksni: in.ReadByte() returns two values. A byte and a possible error 16:00 < exch> Go supports multiple return values 16:00 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has quit [Quit: leaving] 16:03 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts 16:04 < hallas> Dont understand that standard course thing, they're comparing lenght of programs? 16:04 < hallas> standard = stanford 16:04 -!- dfr|bohc_ [~dfr|work@conference/railsconf/x-cejzdqfacuetqkbh] has joined #go-nuts 16:06 -!- dfr|bohconf [~dfr|work@conference/railsconf/x-xufcyhrqhrbucncx] has quit [Ping timeout: 240 seconds] 16:11 < Ekspluati> haalas: I agree. It should be readability that matters. 16:13 < str1ngs> eh why not just use io.Copy 16:14 < str1ngs> and do you really need bufio for cat? maybe for output? 16:16 < wrtp> str1ngs: +1 16:16 < str1ngs> io.Copy(os.Stdin,os.Stdout) 16:16 < str1ngs> simple 16:16 < wrtp> other way around, but yeah 16:16 < hallas> str1ngs: if he really wanted it short, STOP importing FMT and just use println :D ? 16:16 < str1ngs> did I get tose reversed I always do 16:16 < wrtp> destination first 16:16 < str1ngs> hallas: not thats bad 16:17 < str1ngs> hallas: println = fmt.Println :P 16:17 < hallas> I know, but, if it was about source being small :P 16:17 < gmilleramilar> println = fmt.Fprintln(os.Stderr, ...) 16:18 < hallas> Stderr? You sure? 16:18 < hallas> Didnt know that 16:18 < gmilleramilar> pretty sure 16:18 < hallas> xD 16:18 < hallas> well I use fmt my self 16:20 < str1ngs> and use flag package 16:20 < gmilleramilar> yes, just confirmed, it's stderr 16:22 < str1ngs> only problem is Stderr can not be redirected 16:22 < str1ngs> ie goprogram | grep stuff 16:22 < str1ngs> you have to use Stdout for that 16:22 < Tonnerre> Well 16:22 < Tonnerre> goprogram 2| grep stuff 16:22 < Tonnerre> Or goprogram 2>&1 | grep stuff 16:22 < str1ngs> true 16:24 < skelterjohn> never seen 2>&1 16:25 < str1ngs> so it would be better practice to always use Stderr for program output. and Stdout reseverd for piping? 16:25 < Tonnerre> skelterjohn: do you use csh? 16:25 < skelterjohn> bash 16:25 < hallas> aeewuuu 16:25 < Tonnerre> skelterjohn: then your shell has that 16:25 < skelterjohn> what does it mean? 16:25 < Tonnerre> skelterjohn: it redirects the file descriptor 2 and merges it into file descriptor 1 16:26 < skelterjohn> what would happen otherwise? i mean, there's no stderrin 16:26 < skelterjohn> doesn't 2> put on stdin? 16:26 < str1ngs> skelterjohn: man bash . REDIRECTION section 16:27 < skelterjohn> i'd rather someone told me O:-) 16:27 < str1ngs> lazy bastard :P 16:27 < skelterjohn> i don't demand it, but i also don't feel like reading man pages 16:29 < str1ngs> skelterjohn: redirect bots stdin and stdout 16:29 < str1ngs> both* 16:29 < skelterjohn> thanks 16:29 < str1ngs> 2 is stderr 16:29 < str1ngs> 1 is stdout 0 is stdin 16:29 < skelterjohn> i might add that your explanation was shorter than your redirect to the man page :) 16:29 < str1ngs> you can make more fd's with exec but that complicated 16:30 < wrtp> println is intended for debugging, not regular use 16:30 < str1ngs> I did referer to the man pages since I get confused with it 16:31 -!- unofficialmvp [~dev@94.62.164.227] has joined #go-nuts 16:34 -!- unofficialmvp [~dev@94.62.164.227] has left #go-nuts [] 16:39 < hallas> hmm doesnt define: <keyword> work anymore on Google? 16:40 -!- B33p [~mgray@li226-224.members.linode.com] has joined #go-nuts 16:41 < skelterjohn> still works 16:41 < skelterjohn> not the same as it used to 16:41 < skelterjohn> but the first entry is a dictionary definitin 16:41 < skelterjohn> definition 16:43 -!- humanfromearth [~alex@85.9.55.194] has joined #go-nuts 16:43 < hallas> doesnt work 16:43 < hallas> what exactly do you search for? 16:44 -!- nullcat [~nullcat@li240-101.members.linode.com] has joined #go-nuts 16:46 < skelterjohn> define: dragon 16:46 < skelterjohn> first thing that came to mind 16:46 < hallas> my first hit is, www.dragonfable.com 16:46 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Read error: Connection reset by peer] 16:47 < skelterjohn> my 6th hit 16:47 < hallas> Aha, great, works when I use google.com, instead my localized version google.dk, or by explicitly setting my language to english. 16:47 < hallas> thanks 16:47 < skelterjohn> cool 16:47 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 16:50 -!- pothos [~pothos@111-240-173-34.dynamic.hinet.net] has joined #go-nuts 16:59 < jeremy_c> skelterjohn: is there a way for gb to build many cmds in one dir? i.e. myproject/pkg1, myproject/pk2, myproject/demos ... demos contains 15 .go files, each one has a func main(). Can gb detect that and build 15 .exes? 16:59 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit [Ping timeout: 260 seconds] 17:00 -!- ab3 [~abe@ip-83-134-145-47.dsl.scarlet.be] has quit [Ping timeout: 276 seconds] 17:01 -!- r_linux [~r_linux@smtp.mandique.com.br] has quit [Ping timeout: 260 seconds] 17:01 -!- sacho [~sacho@95-42-98-177.btc-net.bg] has quit [Ping timeout: 246 seconds] 17:03 < skelterjohn> they need to be in 15 directories 17:03 < skelterjohn> one directory per target 17:03 < skelterjohn> but you can create a custom makefile and run gb -m and it will use any that it finds 17:04 -!- sacho [~sacho@95-42-72-242.btc-net.bg] has joined #go-nuts 17:05 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts 17:06 < jeremy_c> skelterjohn: would it be a viable feature request to have it scan the sources for func main() and if func main() then build it as an executable instead of 1 target per dir? 17:06 -!- gtaylor [~gtaylor@199.15.144.250] has joined #go-nuts 17:06 < jeremy_c> I guess the problem would be what happens if you have demo.go that depends on helper.go 17:06 < skelterjohn> sorry, no. what if you had two sources with main() and one with supportin gfunctions? 17:06 < skelterjohn> right 17:07 < skelterjohn> and although you could come up with some reasonable convention for handling that, i prefer to keep things simple 17:07 < skelterjohn> it is completely obvious what you mean if you have one target per directory 17:07 < jeremy_c> I may movew to 1 dir per target, cause gb is pretty slick :-) 17:07 < skelterjohn> :) 17:08 < skelterjohn> it's consistent with what goinstall likes, too 17:08 < jeremy_c> I have not tried it on cgo files yet, does it handle that ok? even with embedded #cgo windows: LDFLAGS=ABC XYZ ? 17:08 < skelterjohn> it almost handles that ok... it handles #cgo LDFLAGS=some stuff 17:08 < skelterjohn> i haven't added the "windows:" bit yet... 17:09 < jeremy_c> doesn't handle windows: ? I have to link diff libs on windows than linux 17:09 < skelterjohn> yes 17:09 < skelterjohn> it should really do this 17:09 < jeremy_c> ok... guess I'll have to wait :-( 17:09 < skelterjohn> i just haven't gotten around to it 17:09 < skelterjohn> in the mean time, you can have src_windows.go and src_linux.go 17:09 < skelterjohn> each one only having a different #cgo 17:10 < jeremy_c> I'd have a lot of those, each for each package I have. 17:10 < jeremy_c> one for each... I mean 17:11 < skelterjohn> yeah, it's silly 17:11 < skelterjohn> i'm looking at doing it the right way now 17:11 < skelterjohn> shouldn't be hard. 17:11 < jeremy_c> one more question, if I get rid of make files, goinstall won't work any longer, will it? 17:11 < skelterjohn> goinstall ignores your makefiles 17:12 < skelterjohn> completely 17:12 < jeremy_c> oh. ok. I know many packages I have to install by hand because they have CGO_LDFLAGS=-lsqlite3 for example in their makefile instead of in their source files. 17:13 < jeremy_c> and goinstall fails, sqlite3_xyz undefined... 17:13 < skelterjohn> you should tell the authors :) 17:13 < jeremy_c> ok, I'm going to play some more with gb. thanks. 17:13 < skelterjohn> np 17:13 < str1ngs> jeremy_c: use #cgo LDFLAGS: -lsqlite3 17:14 < jeremy_c> right, I do that in my sources, but for example go-sqlite3 uses makefiles. 17:14 < str1ngs> https://gist.github.com/981265 17:14 < str1ngs> ah sorry 17:14 < str1ngs> fork it fix it and pull request :P 17:15 < jeremy_c> yeah, shouldn't complain just fix, eh? 17:16 -!- niemeyer [~niemeyer@200-102-196-125.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 240 seconds] 17:16 -!- humanfromearth [~alex@85.9.55.194] has left #go-nuts [] 17:16 < str1ngs> is it on github? 17:17 < jeremy_c> yup. easy to fix, I know. 17:17 < str1ngs> I'll look at it then 17:17 < jeremy_c> https://github.com/kuroneko/gosqlite3 17:18 -!- gtaylor [~gtaylor@199.15.144.250] has quit [Ping timeout: 246 seconds] 17:19 < str1ngs> does mac not support this ??? 17:19 < str1ngs> err failed paste 17:19 < str1ngs> -lsqlite3 17:20 < str1ngs> https://github.com/kuroneko/gosqlite3/blob/master/Makefile he does a OS check for Mac I guess 17:20 < jeremy_c> dunno. 17:23 -!- binarypie [~binarypie@adsl-76-254-24-124.dsl.pltn13.sbcglobal.net] has quit [Remote host closed the connection] 17:23 < skelterjohn> static links it on mac? 17:24 -!- tvw [~tv@212.79.9.150] has quit [Read error: Connection reset by peer] 17:25 -!- marten_ [~marten@62.21.178.171] has quit [Quit: marten_] 17:26 -!- tncardoso [~thiago@150.164.2.20] has quit [Quit: bye] 17:26 -!- keithcascio [~keithcasc@nat/google/x-dvxuzyqqrragdqtn] has joined #go-nuts 17:27 < skelterjohn> mac does, in generall, support -l for gcc 17:27 < skelterjohn> -lm works, at least 17:28 -!- nullcat [~nullcat@li240-101.members.linode.com] has left #go-nuts [] 17:29 < str1ngs> goinstall -v github.com/str1ngs/gosqlite3 17:29 < str1ngs> someone on mac try that please 17:32 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252 seconds] 17:32 < skelterjohn> jeremy_c: gb likes #cgo <os> <flag> now 17:32 < skelterjohn> if you pull the latest 17:32 < jeremy_c> skelterjohn: oh, wow! 17:33 < skelterjohn> don't get too excited - pretty trivial change 17:33 -!- ab3 [~abe@83.101.72.80] has joined #go-nuts 17:33 < skelterjohn> str1ngs: seems to have worked 17:33 < jeremy_c> doesn't matter how trivial the change was, impact is prior = couldn't use, later = can use ... impact = big! 17:34 < skelterjohn> good :) 17:34 < skelterjohn> i'd been meaning to do it for a long time - i think i was just waiting for someone to ask for it 17:35 < skelterjohn> otherwise it would feel too much like high five-ing myself 17:35 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts 17:36 < mpl> skelterjohn: what's wrong with that? :) 17:36 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has quit [Ping timeout: 276 seconds] 17:36 < mpl> not as cool as a fist bump, granted. 17:36 < jeremy_c> right now gomake is just a shell wrapper around goinstall. In a recent issue I reported I learned goinstall is going to be renamed gomake in a little bit. Any idea how that will affect gb? Will it maybe replace it? 17:37 < skelterjohn> gb and future gomake/goinstall will mostly do the same thing 17:37 < skelterjohn> gb does some extra stuff people might find useful 17:38 < skelterjohn> i will try to keep it so that gb can install anything that future-gomake can 17:38 < skelterjohn> will involve adding GOPATH functionality at some point 17:38 < jeremy_c> sounds good 17:39 < skelterjohn> but if future-gomake becomes the de facto and people don't want to use gb anymore, i'll stop supporting it 17:39 < skelterjohn> that's really code for "as long as i personally use gb, i'll keep it running" O:-) 17:41 < str1ngs> skelterjohn: thanks I ended up boot my mac and doing gotest to be safe 17:43 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts 17:43 < str1ngs> jeremy_c: I did a pull request so you can us goinstall if he merges 17:44 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed the connection] 17:44 < skelterjohn> just use str1ngs's version until then 17:44 < skelterjohn> nice thing about github and goinstall... all you change is the import path 17:44 < skelterjohn> nothing else 17:45 < str1ngs> yes but that also means I have to rebase :P 17:46 -!- steveh [~steveh@learnsci-adsl.demon.co.uk] has left #go-nuts [] 17:46 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it] has quit [Quit: ucasano] 17:47 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts 17:56 -!- dfr|bohc_ [~dfr|work@conference/railsconf/x-cejzdqfacuetqkbh] has quit [Remote host closed the connection] 17:56 -!- dfr|bohconf [~dfr|work@216.239.45.130] has joined #go-nuts 17:57 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252 seconds] 18:02 -!- dfr|bohc_ [~dfr|work@conference/railsconf/x-cfbgywuhrxozlzfi] has joined #go-nuts 18:03 -!- tncardoso [~thiago@189.115.130.173] has joined #go-nuts 18:03 -!- ako [~nya@fuld-590c7616.pool.mediaWays.net] has joined #go-nuts 18:05 -!- dfr|bohconf [~dfr|work@216.239.45.130] has quit [Ping timeout: 240 seconds] 18:06 -!- dfr|bohc_ [~dfr|work@conference/railsconf/x-cfbgywuhrxozlzfi] has quit [Ping timeout: 246 seconds] 18:07 -!- aho [~nya@fuld-590c782c.pool.mediaWays.net] has quit [Ping timeout: 246 seconds] 18:07 -!- zaero [~eclark@2001:470:1f11:b82:9460:5685:ee0a:c1c] has quit [Ping timeout: 264 seconds] 18:09 -!- TheMue [~TheMue@p5DDF7746.dip.t-dialin.net] has joined #go-nuts 18:10 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts 18:10 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 18:11 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined #go-nuts 18:12 < jeremy_c> goinstall is defunct on windows right now :-/ 18:13 < jeremy_c> I'll give it a try when I boot back into Linux. 18:14 -!- huin [~huin@91.85.171.238] has joined #go-nuts 18:17 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has joined #go-nuts 18:17 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has quit [Read error: Operation timed out] 18:18 -!- zaero [~eclark@2001:470:1f11:b82:4d9c:b904:26a:d46e] has joined #go-nuts 18:19 -!- foocraft [~ewanas@89.211.217.170] has joined #go-nuts 18:22 -!- jamesr [~jamesr@173-164-251-190-SFBA.hfc.comcastbusiness.net] has joined #go-nuts 18:23 -!- JimmyRcom [~jimmy@adsl-75-53-45-212.dsl.rcsntx.sbcglobal.net] has quit [Remote host closed the connection] 18:27 -!- wallerdev [~wallerdev@72.44.102.30] has joined #go-nuts 18:28 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has joined #go-nuts 18:29 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has quit [Read error: Operation timed out] 18:30 -!- r_linux [~r_linux@smtp.mandique.com.br] has joined #go-nuts 18:30 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has joined #go-nuts 18:35 -!- dfr|mac [~dfr|work@conference/railsconf/x-tpxbgdyeuakixrnp] has joined #go-nuts 18:35 -!- gregschlom [~quassel@187.118.210.62.te-dns.org] has quit [Ping timeout: 246 seconds] 18:36 -!- foocraft [~ewanas@89.211.217.170] has quit [Read error: Connection reset by peer] 18:37 -!- foocraft [~ewanas@78.101.177.237] has joined #go-nuts 18:38 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has left #go-nuts [] 18:41 -!- pamera [~Pam@c-76-102-255-99.hsd1.ca.comcast.net] has joined #go-nuts 18:43 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252 seconds] 18:46 -!- sacho [~sacho@95-42-72-242.btc-net.bg] has quit [Read error: Connection reset by peer] 18:51 -!- dirthead [~chatzilla@68-116-31-34.static.yakm.wa.charter.com] has quit [Ping timeout: 246 seconds] 18:52 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:e89c:d95d:7687:8d56] has quit [Quit: Leaving.] 18:53 -!- dirthead [~chatzilla@68-116-31-34.static.yakm.wa.charter.com] has joined #go-nuts 18:55 -!- freetz [~fritz@bc-proxy-2.sandia.gov] has quit [Remote host closed the connection] 18:56 -!- freetz [~fritz@bc-proxy-2.sandia.gov] has joined #go-nuts 18:56 < ww> make(it) ? stop : true 18:56 -!- freetz [~fritz@bc-proxy-2.sandia.gov] has quit [Remote host closed the connection] 18:57 -!- freetz [~fritz@bc-proxy-2.sandia.gov] has joined #go-nuts 19:00 -!- foocraft [~ewanas@78.101.177.237] has quit [Remote host closed the connection] 19:00 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has quit [Ping timeout: 246 seconds] 19:01 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts 19:05 -!- virtualsue [~chatzilla@nat/cisco/x-xdqlheyvdydfeugq] has quit [Ping timeout: 260 seconds] 19:05 < jeremy_c> I remember a tutorial about readers/writers and chaining them. It read and did a rot13 in the process, now I can't find it. Anyone know which doc I am talking about and happen to have the URL? 19:07 < ww> jeremy_c: i think you're talking about the rotting cats section of http://golang.org/doc/go_tutorial.html 19:08 -!- niemeyer [~niemeyer@200-102-196-125.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 19:08 -!- tvw [~tv@e176006213.adsl.alicedsl.de] has joined #go-nuts 19:08 < jeremy_c> ww: duh! I looked at the start of it and saw the cat example and said, no, that's not it and continued searching... should have read further :-/ 19:09 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has joined #go-nuts 19:18 -!- wentao [~Adium@nat/google/x-jistjeimtorukcyd] has joined #go-nuts 19:19 -!- wentao [~Adium@nat/google/x-jistjeimtorukcyd] has quit [Client Quit] 19:22 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the connection] 19:25 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout: 615 seconds] 19:25 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-149-121.clienti.tiscali.it] has joined #go-nuts 19:26 -!- wentao [~user@nat/google/x-qqcakrszbxvtbbuq] has joined #go-nuts 19:26 < wentao> is there any go package to convert GB2312 to UTF8? 19:28 < niemeyer> wentao: I recall someone coming up with an iconv package 19:28 < niemeyer> Maybe even wrtp? 19:28 < wentao> iconv? 19:28 < wrtp> niemeyer: yeah 19:28 < wrtp> go-charset 19:29 < wentao> thanks, let me check 19:29 -!- boscop [~boscop@f050146099.adsl.alicedsl.de] has joined #go-nuts 19:29 -!- Project_2501 [~Marvin@82.84.75.218] has quit [Ping timeout: 276 seconds] 19:29 < ww> wentao: go-lang.cat-v.org is a useful resource for those things... 19:29 < exch> go-charset doesnt need CGO, so that would be my choice 19:29 -!- init6 [~chad@ice.superfrink.net] has joined #go-nuts 19:29 < ww> wrtp: go-charset doesn't happen to do marc8 does it? 19:30 < wrtp> ww: go-charset has an iconv module that can stand in until go-charset does 'em all 19:30 < wrtp> ww: so you can use the same interface 19:31 < ww> not certain iconv does it... but may be wrong there... 19:32 < ww> iconv --list | grep -i marc 19:32 < ww> :( 19:32 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252 seconds] 19:33 < ww> marc8 is important in a very particular setting (libraries) 19:33 < wentao> go-charset supports the following charsets: big5 ibm437 ibm850 ibm866 iso-8859-1 iso-8859-10 iso-8859-15 iso-8859-2 iso-8859-3 iso-8859-4 iso-8859-5 iso-8859-6 iso-8859-7 iso-8859-8 iso-8859-9 koi8-r utf-16 utf-16be utf-16le utf-8 windows-1250 windows-1251 windows-1252 19:33 -!- boscop [~boscop@f050146099.adsl.alicedsl.de] has quit [Ping timeout: 246 seconds] 19:33 < wentao> i'm note sure whether gb2312 is in the list... 19:35 < ww> wentao: it is supported by iconv itself, see wrtp's suggestion re: charset/iconv 19:35 < aiju> just set up your own converter 19:35 < aiju> oh chinese 19:35 < wrtp> i need to spend some time running up some more conversions. 19:35 < aiju> never mind ;P 19:36 < wrtp> also, contributions gratefully received - i've enabled codereview for go-charset 19:36 < wentao> it seems go-charset will use iconv to do other encodings? 19:36 < wrtp> wentao: yes, it can 19:36 < exch> only if you tell it to do so 19:36 < wrtp> wentao: but that doesn't help if you want to be pure Go (e.g. you want to run on google app engine) 19:37 < wentao> iconv has more supported encodings :) 19:37 < wrtp> wentao: yeah, but it's written in C. and it's huge! 19:37 < wentao> yes, that's the problem i'm running into 19:37 < wrtp> wentao: what encodings do you need? 19:37 < wentao> i can't convert encoding on appengine 19:37 < wentao> GB2312 to UTF8 19:38 -!- foocraft [~ewanas@178.152.84.58] has joined #go-nuts 19:38 < wentao> i'm wondering if is is easy to translate encoding lib from other languages to Go? 19:38 < aiju> wentao: it's probably just one giant lookup table 19:38 < aiju> or something 19:38 < wentao> so it's possible, i guess 19:38 < wrtp> wentao: go-charset supports GB2312 natively 19:39 < wentao> really, that's cool 19:39 < wentao> i didn't see it on the list 19:39 < wrtp> wentao: although, looking at it, it doesn't support utf8->GB2312 conversion 19:39 < ww> https://www.indexdata.com/yaz has a marc8 support... hrmmm... 19:44 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts 19:44 < taruti> Is there any native text encoding library? 19:44 < Namegduf> "native text encoding"? 19:45 < taruti> Namegduf: iso-8859-1/wincp-1252/iso-2022 => utf8 19:45 < taruti> without external C libraries 19:45 < ww> taruti: i believe go-charset does those 19:45 < ww> certainly iso-8859-1 it would 19:46 < taruti> thanks 19:46 < aiju> that horrible Windows way of handling things 19:46 < wrtp> hmm looks like go-charset has broken since i last looked at it 19:46 < aiju> randomly use some perhaps appropriate charset 19:47 < taruti> goinstalls fine here 19:48 -!- foocraft_ [~ewanas@78.101.183.155] has joined #go-nuts 19:50 -!- huin [~huin@91.85.171.238] has quit [Quit: leaving] 19:51 -!- foocraft [~ewanas@178.152.84.58] has quit [Ping timeout: 246 seconds] 19:52 -!- virtualsue [~chatzilla@host81-148-88-17.in-addr.btopenworld.com] has joined #go-nuts 19:55 < wrtp> it's not really broken, i'd just forgotten how it worked 19:56 < wrtp> taruti: yes, go-charset should work 19:56 < wrtp> if you're distributing it, watch out that it requires some external data files rather than baking it all into the binary 19:57 < taruti> ick 19:57 < wrtp> you can set CharsetDir to point to the place where the libraries are (default under $GOROOT) 19:57 < taruti> and gnu gpl to boot :( 19:57 < wrtp> i think that better, personally - most charsets are almost never used 19:58 < wrtp> oh, i'll change the license 19:58 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 19:58 < wrtp> what's the preferred license? 19:58 < aiju> WTFPL 19:58 < taruti> anything bsd/mit compatible 19:58 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 246 seconds] 19:58 < Namegduf> CC0 is simplest MIT compatible 19:58 < aiju> WTFPL is simpler 19:58 < Namegduf> WTFPL is like CC0 for attention whores 19:58 < Namegduf> And no, it isn't 19:59 < Namegduf> It's shorter but not simpler in semantics. 19:59 < wrtp> oh jeeze. 19:59 < wrtp> what's the license that go's under - i'll just choose that 19:59 < Namegduf> Key thing is anything not copyleft. 19:59 < aiju> MIT 19:59 < taruti> modified bsd 19:59 < aiju> iirc 19:59 < wrtp> i don't do licensing issues 19:59 < aiju> oh lol 20:00 < taruti> http://golang.org/LICENSE 20:00 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has joined #go-nuts 20:00 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252 seconds] 20:00 < wrtp> New BSD license ok? 20:00 < taruti> yes 20:01 < wrtp> done 20:01 < taruti> thanks :) 20:01 < wrtp> np 20:03 -!- fabled [~fabled@83.145.235.194] has quit [Ping timeout: 246 seconds] 20:05 * ww likes copyleft 20:05 < Namegduf> I do too, myself. 20:06 < aiju> copyleft is copyright in disguise 20:07 < Namegduf> Copyleft relies on copyright, yes 20:07 < Namegduf> You hate copyright? 20:07 < aiju> yup 20:07 < aiju> the whole idea of "owning" a piece of information 20:07 -!- alehorst [~alehorst@201.22.42.15.dynamic.adsl.gvt.net.br] has quit [Quit: Leaving.] 20:08 * ww too 20:08 < dlowe> consider it as having exclusive publishing rights for a limited duration instead of outright ownership 20:08 < ww> copyleft is a kludge to try to prevent other peoeple from claiming to own pieces of information 20:09 < ww> nobody sane pretends its anything but 20:09 < dlowe> the only problem in practice now is that the limited duration has gotten lots of unethical extensions 20:10 < chomp> the limited duration should be something like 6 months instead of life+70 20:11 < ww> http://archive.groovy.net/syntac for some old writings, salient quotation, "Therefor we hold all attempts to claim ownership or exclusive authorship of an Expression to be the essential FRAUD." 20:11 -!- photron [~photron@port-92-201-14-197.dynamic.qsc.de] has quit [Ping timeout: 248 seconds] 20:12 -!- virtualsue [~chatzilla@host81-148-88-17.in-addr.btopenworld.com] has quit [Ping timeout: 246 seconds] 20:14 < ww> no bones. intellectual property is fraud. copyleft is like jujitsu against fraudsters 20:14 < aiju> i see no "fraud" in mixing GPL and BSD code 20:15 < ww> 'the whole idea of "owning" a piece of information' is the fraud 20:18 -!- virtualsue [~chatzilla@host81-139-129-169.in-addr.btopenworld.com] has joined #go-nuts 20:19 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts 20:22 -!- oal [~oal@5.79-160-122.customer.lyse.net] has quit [Remote host closed the connection] 20:26 * ww decides against asking the list if time.Parse can handle <date>MDCCLXXXIX. [1789]-M,DCC,XC. [1790]</date> 20:26 < skelterjohn> i'd guess no 20:26 < ww> yes... found in real data 20:30 -!- jstemmer [~cheetah@mrpwn.stemmertech.com] has quit [Quit: leaving] 20:32 -!- bakkal [~hawk@41.141.5.217] has joined #go-nuts 20:34 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed the connection] 20:35 -!- dfr|mac [~dfr|work@conference/railsconf/x-tpxbgdyeuakixrnp] has quit [Remote host closed the connection] 20:38 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has joined #go-nuts 20:38 -!- boscop [~boscop@f055015156.adsl.alicedsl.de] has joined #go-nuts 20:39 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has quit [Read error: Operation timed out] 20:42 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Read error: Connection reset by peer] 20:42 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.] 20:49 < uriel> ww: found in real data? O_o 20:49 < uriel> wow 20:52 -!- TheMue [~TheMue@p5DDF7746.dip.t-dialin.net] has quit [Quit: TheMue] 20:52 -!- r_linux [~r_linux@smtp.mandique.com.br] has quit [Quit: Lost terminal] 20:53 < ww> uriel: libraries... check your sanity at the door please... 20:59 < str1ngs> hey, my great great grand pappy wrote that \o/ 21:02 < taruti> Added an email parsing library :) 21:03 -!- B00p [~mgray@li226-224.members.linode.com] has joined #go-nuts 21:04 -!- kr [~Keith@c-24-5-193-165.hsd1.ca.comcast.net] has joined #go-nuts 21:06 -!- B33p [~mgray@li226-224.members.linode.com] has quit [Ping timeout: 240 seconds] 21:11 -!- mibocote_ [~matt@bluemavid.com] has joined #go-nuts 21:11 < skelterjohn> stick it on the dashboard 21:11 -!- _foocraft [~ewanas@89.211.138.30] has joined #go-nuts 21:12 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 21:14 -!- foocraft_ [~ewanas@78.101.183.155] has quit [Ping timeout: 246 seconds] 21:17 -!- dlowe [~dlowe@63.107.91.99] has quit [Quit: Leaving.] 21:24 -!- jep200404 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has quit [Quit: using sirc version 2.211+KSIRC/1.3.12] 21:34 -!- goraes [~moraes@189.103.179.31] has quit [Ping timeout: 252 seconds] 21:37 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has quit [Quit: whitespacechar] 21:38 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has joined #go-nuts 21:40 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by peer] 21:41 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 21:46 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit: Leaving...] 21:48 -!- goraes [~moraes@189.103.179.31] has joined #go-nuts 21:49 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 21:50 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Quit: Computer has gone to sleep.] 21:52 -!- jbooth1 [~jay@209.249.216.2] has quit [Quit: Leaving.] 21:53 -!- virtualsue [~chatzilla@host81-139-129-169.in-addr.btopenworld.com] has quit [Ping timeout: 246 seconds] 21:54 < exch> uriel: here's an entry for the Library Bindings page. as a lightweight alternative to SDL https://github.com/jteeuwen/glfw 21:54 -!- init6 [~chad@ice.superfrink.net] has quit [Remote host closed the connection] 21:56 -!- freetz [~fritz@bc-proxy-2.sandia.gov] has quit [Ping timeout: 260 seconds] 21:57 -!- wrtp [~rog@92.17.91.230] has quit [Quit: wrtp] 21:58 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has quit [Ping timeout: 248 seconds] 22:01 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has quit [Quit: whitespacechar] 22:02 -!- angasule_ [~angasule@190.2.33.49] has joined #go-nuts 22:04 -!- mpl_ [~mpl@smgl.fr.eu.org] has joined #go-nuts 22:04 -!- niemeyer_ [~niemeyer@200-102-196-125.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 22:04 -!- niemeyer [~niemeyer@200-102-196-125.pltce701.dsl.brasiltelecom.net.br] has quit [Read error: Connection reset by peer] 22:06 < skelterjohn> exch: does it work with goinstall? 22:07 < exch> not if goinstall hates cgo 22:07 < exch> does it still do that? 22:07 < skelterjohn> the only issue i see is the pkg-config stuff 22:07 < skelterjohn> it does not 22:07 < skelterjohn> you can put in a comment // #cgo LDFLAGS: -lsomething 22:07 < niemeyer_> exch: Hmm.. it works with cgo for quite a while 22:07 < skelterjohn> but i don't know about using backticks 22:07 < exch> mm I shall investigate 22:08 < skelterjohn> niemeyer_: i see this in his makefile: CGO_CFLAGS = `pkg-config --cflags libglfw` 22:08 < niemeyer_> skelterjohn: That won't work, no 22:09 -!- Netsplit *.net <-> *.split quits: prip, B00p, xb95, ukai_, ampleyfly, mpl, angasule, rejb 22:09 -!- wentao [~user@nat/google/x-qqcakrszbxvtbbuq] has quit [Quit: rcirc on GNU Emacs 24.0.50.1] 22:09 < skelterjohn> exch: http://pastebin.com/RWZVt91d 22:10 < exch> weird 22:10 < exch> have no issues with that here 22:11 < exch> that actually looks like some cgo issue I had with another lib a while ago 22:11 < exch> it was fixed after some go update though 22:11 < skelterjohn> i'm wondering why a .a file would get put there 22:11 < skelterjohn> certainly not my goroot 22:11 < skelterjohn> or is .a a generic archive format? 22:12 < skelterjohn> otherwise it would be glfw.a.... 22:12 < skelterjohn> right, i have a mismatched version of glfw 22:12 < exch> afaik, it is also created if you build a static library with gcc. Not necessarily something that Go does 22:12 < str1ngs> .a is ar format 22:13 < exch> that would be more accurate yes. gcc has little to do with it 22:13 < skelterjohn> the whole hybrid 32/64 bit thing w/ os x is a pain 22:13 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has joined #go-nuts 22:14 < exch> If I want to make it goinstall compatible, i'll have to add a line like this: //#cgo LDFLAGS = -pthread -L/usr/lib -lglfw -lGL -lX11 -lXrandr -lm 22:14 -!- rejb [~rejb@p4FD7466A.dip.t-dialin.net] has joined #go-nuts 22:14 -!- Netsplit over, joins: prip, B00p, xb95, ampleyfly, ukai_ 22:14 < exch> that's hardly a portable solution :s 22:14 < exch> this is why pkg-config was invented 22:14 -!- Netsplit *.net <-> *.split quits: ampleyfly, B00p, rejb, ukai_, prip, xb95 22:14 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has quit [Read error: Connection reset by peer] 22:14 < str1ngs> exch: it should use ldconfig to handle the rest no? 22:14 -!- angasule_ [~angasule@190.2.33.49] has quit [Read error: Connection reset by peer] 22:15 -!- angasule_ [~angasule@190.2.33.49] has joined #go-nuts 22:15 -!- Netsplit over, joins: rejb, prip, B00p, xb95, ampleyfly, ukai_ 22:15 < str1ngs> so probably dont need -L/usr/lib 22:15 < skelterjohn> in the makefile yes, but cgo doesn't recognize backticks 22:15 < str1ngs> just add all the -l 22:15 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has joined #go-nuts 22:15 < skelterjohn> oh, i misunderstood 22:15 < skelterjohn> the issue here is that it varies from system to system 22:15 < ww> ye -pthread may be problematic there 22:16 < str1ngs> ww: what I was thinking to 22:16 < skelterjohn> if you can filter based on OS 22:16 < skelterjohn> you can use OS specific #cgo tags 22:16 < skelterjohn> but it might be worthwhile to ask for cgo to use backticks 22:16 < skelterjohn> i'll file an issue 22:16 < str1ngs> skelterjohn: no thats a bad idea 22:16 < ww> i usually throw in -L/usr/local/lib (and -I/usr/local/include for CFLAGS) because sometimes/often people install things there 22:17 < uriel> exch: interesting, thanks 22:17 < str1ngs> skelterjohn: think. if someone just randomly put `rm -r ~/` 22:17 < skelterjohn> eek 22:17 < ww> but less likely for those particular libraries perhaps 22:17 < skelterjohn> well, what if someone put that in the makefile? 22:18 < skelterjohn> but i agree it's easier to goinstall w/out looking than make 22:18 < exch> $GOOS specific #cgotags might be handy 22:18 < exch> #cgo_linux: etc 22:18 < skelterjohn> exch: // #cgo $GOOS LDFLAGS: someflags 22:18 < str1ngs> skelterjohn: its not like someone would do that. but someone would abuse it 22:18 < skelterjohn> that works 22:18 < ww> we have that 22:18 < exch> ah cool 22:18 < skelterjohn> golang.org/cmd/cgo outlines it 22:19 < ww> *but* the differences may not be OS but what lunix calls "distribution" 22:19 < ww> redhat and suse put things in /opt... debian has its own conventions... sometimes people install things from source in /usr/local 22:19 < jeremy_c> skelterjohn: I am falling in love with gb, good job! Have not yet converted go-iup to use it though, that's what has #cgo windows, #cog linux, ... 22:19 < str1ngs> ww: they can set LD_LIBRARY_PATH if the have brains :P 22:20 < ww> str1ngs: and for includes? 22:20 < skelterjohn> jeremy_c: latest commit has it 22:20 < skelterjohn> and i'm glad you like it :) 22:20 -!- zcram [~zcram@77-233-67-129.cdma.dyn.kou.ee] has quit [Ping timeout: 246 seconds] 22:20 < str1ngs> ww: if there using some crazy place they can use make 22:20 < str1ngs> can only support so much imo 22:21 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has joined #go-nuts 22:21 < ww> "crazy" is relative and to quote someone wise, "that's why pkg-config" was invented 22:21 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts 22:21 < str1ngs> pkg-config does more then just that though 22:21 < ww> not to mention all the auto* stuff... 22:22 < str1ngs> I like it . I just dont see a sane way to use it with goinstall 22:22 < skelterjohn> i filed http://code.google.com/p/go/issues/detail?id=1853 and mentioned the rm -r caveat 22:22 < str1ngs> thats why goinstall doesnt use makefiles 22:23 < ww> anyways, i make a habit of putting /usr/local because i think it's common and not crazy 22:23 < ww> /opt is crazy 22:23 < str1ngs> ww: yes its so common that its already probably included 22:23 < str1ngs> -L defaults are gcc spec files? 22:24 -!- Ekspluati [5b98b736@gateway/web/freenode/ip.91.152.183.54] has quit [Quit: Page closed] 22:24 < ww> -I/usr/local/include is definitely not included by default on any system i've paid attention to 22:24 < str1ngs> it is on mine 22:24 < skelterjohn> by default? or did you add it yourself 22:24 < ww> different story with -L 22:25 < str1ngs> mind you /usr/local/lib is not included 22:26 -!- whitespacechar [~whitespac@24-247-159-7.dhcp.klmz.mi.charter.com] has joined #go-nuts 22:26 < str1ngs> ww: anyways ya doesnt hurt to add it 22:27 -!- Bigbear1 [~Cody@d173-181-43-12.abhsia.telus.net] has left #go-nuts [] 22:27 < ww> appscale is a really strange thing 22:28 < exch> http://pastie.org/private/cdou9xfgeudswdc0l6w this would be what I can do. No idea what would be needed for darwin or windows though 22:28 < skelterjohn> i really think when you install a library, it should go to a place you don't need to specify each time 22:29 < skelterjohn> exch: on os x http://pastie.org/1929004 22:29 < ww> are tbere]] 22:29 < exch> thanks 22:29 < ww> argh 22:29 -!- ab3 [~abe@83.101.72.80] has quit [Ping timeout: 250 seconds] 22:30 < skelterjohn> ww: i think so 22:30 < ww> worthwhile -I/usr/X11R6/include -I/usr/include/X11 and -L/usr/X11R6/lib -L/usr/lib/X11 or are those obsolete? 22:30 < ww> istr those were common building X things in the past 22:30 < ww> been a while since i've done that in anger 22:31 < str1ngs> mainly /usr/include/X11/ now I think 22:31 < skelterjohn> should just use <X11/something.h> for the #includes 22:32 < str1ngs> ya thats what I said :P 22:33 < ww> skelterjohn: that would break on /usr/X11R6 installations, but as str1ngs says they may be obsolescent and in any case are easily made happy with a symlink 22:33 < exch> ok, should be working with goinstall now 22:33 < exch> did for me anyway 22:33 -!- marcdurden [~chatzilla@c-67-170-197-160.hsd1.ca.comcast.net] has joined #go-nuts 22:33 < ww> i'm sure if there are actual problems with the flags, bug reports will flood^H^H^H^Htrickle in 22:34 < skelterjohn> exch: no windows support? O:-) 22:34 < str1ngs> poor windows :( 22:34 < exch> ha if someone wants it, they can file a bugreport :p 22:34 < skelterjohn> ww: yeah unfortunately right now the more common response to something not working is to just forget about it and use something else 22:34 * str1ngs files bug report under an assumed name 22:35 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has quit [Remote host closed the connection] 22:38 -!- ExsysTech [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has joined #go-nuts 22:38 -!- ab3 [~abe@83.101.72.80] has joined #go-nuts 22:40 -!- ExsysHost [~ExsysTech@50-46-213-60.evrt.wa.frontiernet.net] has quit [Ping timeout: 240 seconds] 22:40 < str1ngs> skelterjohn: an idea though is to have goinstall run pkg-config against say a PKGCONFIG: 22:41 < str1ngs> this way its not running random shell commands 22:43 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has joined #go-nuts 22:45 -!- tylerl [~tylerl@ip24-251-232-171.ph.ph.cox.net] has joined #go-nuts 22:57 -!- tylerl [~tylerl@ip24-251-232-171.ph.ph.cox.net] has quit [Quit: leaving] 23:01 -!- tylerl [18fbe8ab@gateway/web/freenode/ip.24.251.232.171] has joined #go-nuts 23:02 < skelterjohn> that starts the habit of adding special cases 23:03 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: Quit] 23:03 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 23:04 < str1ngs> or we call all hardcode them and hope they work :P 23:04 < str1ngs> in this case I would think pkg-config compliments goinstall nicely 23:04 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit: Leaving...] 23:05 < exch> But of course windows has no such thing 23:05 < str1ngs> of course and not all libs use pkg-config 23:06 * exch cries 23:06 -!- hargettp [~hargettp@pool-71-174-132-180.bstnma.east.verizon.net] has joined #go-nuts 23:06 < str1ngs> welcome to C lib hell 23:06 < exch> oh well. it works for now 23:06 < exch> with windows support! 23:07 < exch> i'm such a nice guy 23:07 < str1ngs> hehe 23:07 < skelterjohn> "goinstall support for Windows (I hope)." well tested, i'm sure 23:08 < exch> shh 23:08 < exch> I picked the lib requirements from the examples in the glfw C source 23:11 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-149-121.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 23:13 -!- twopoint718 [~chris@fsf/member/twopoint718] has joined #go-nuts 23:15 -!- boscop [~boscop@f055015156.adsl.alicedsl.de] has quit [Changing host] 23:15 -!- boscop [~boscop@unaffiliated/boscop] has joined #go-nuts 23:20 -!- marcdurden [~chatzilla@c-67-170-197-160.hsd1.ca.comcast.net] has quit [Quit: ChatZilla 0.9.86.1 [Firefox 4.0.1/20110413222027]] 23:20 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit: Leaving] 23:25 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has joined #go-nuts 23:25 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has quit [Read error: Operation timed out] 23:28 -!- tobier_ [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has quit [Read error: Operation timed out] 23:32 -!- ab3 [~abe@83.101.72.80] has quit [Ping timeout: 258 seconds] 23:34 -!- twopoint718 [~chris@fsf/member/twopoint718] has quit [Ping timeout: 246 seconds] 23:41 -!- tobier [~tobier@c-1c9de055.712-1-64736c11.cust.bredbandsbolaget.se] has joined #go-nuts 23:43 -!- twopoint718 [~chris@fsf/member/twopoint718] has joined #go-nuts 23:47 -!- hargettp [~hargettp@pool-71-174-132-180.bstnma.east.verizon.net] has quit [Quit: Linkinus - http://linkinus.com] 23:50 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X] 23:50 -!- ab3 [~abe@ip-83-134-145-47.dsl.scarlet.be] has joined #go-nuts 23:50 -!- jep200404 [~jep@cpe-204-210-242-157.columbus.res.rr.com] has joined #go-nuts 23:52 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts 23:52 -!- _foocraft [~ewanas@89.211.138.30] has quit [Read error: Connection reset by peer] 23:53 -!- _foocraft [~ewanas@78.101.181.81] has joined #go-nuts 23:54 -!- zaero [~eclark@2001:470:1f11:b82:4d9c:b904:26a:d46e] has quit [Ping timeout: 264 seconds] --- Log closed Fri May 20 00:00:50 2011