--- Log opened Tue Aug 16 00:00:20 2011 00:00 < sl> it's pretty great from what i can tell but i don't have a lot of experience with it yet. i'm not really a c programmer. 00:01 < str1ngs> neither am I . why I use go :P 00:01 < str1ngs> well I guess I can hack C when I have to 00:01 < sl> str1ngs: http://doc.cat-v.org/plan_9/4th_edition/papers/acidpaper 00:02 < sl> i believe there is some sort of attempt at replicating acid's functionality included with plan9port but i'm not sure. 00:02 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 00:02 < str1ngs> hmm not sure if this will help you on the linux side of things 00:02 < str1ngs> apt-get install strace might be easier 00:02 -!- robteix [~robteix@host254.190-225-208.telecom.net.ar] has joined #go-nuts 00:03 < sl> str1ngs: previously we've been able to debug linux problems by tracing the plan 9 process it corresponds too; it's cumbersom but you can extract the needed information. 00:03 < str1ngs> sl: hmm if you are use to that method then that might be better 00:03 < str1ngs> just strace is what I'm use to 00:03 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 00:03 < str1ngs> atleast for this issue should stand out like a sore thumb 00:04 < sl> i'm not sure strace would work given how the emulation is done, but i don't know enough about it. 00:04 < str1ngs> hmm I can strace here though see what it touches 00:04 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts 00:05 < sl> bbl, have to finish up some work. thanks again. 00:08 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 00:08 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 00:09 < str1ngs> np 00:13 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 00:13 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 00:16 -!- knowmercy [~orbit@metabug/brandon] has quit [Ping timeout: 258 seconds] 00:18 -!- dgnorton_ [~dgnorton@rrcs-74-218-231-11.se.biz.rr.com] has quit [Quit: dgnorton_] 00:18 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 00:19 -!- knowmercy [~orbit@adsl-99-164-38-153.dsl.akrnoh.sbcglobal.net] has joined #go-nuts 00:19 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 00:22 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has quit [Quit: ChatZilla 0.9.87 [Firefox 5.0.1/20110707182747]] 00:23 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 00:24 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 00:25 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has quit [Quit: Leaving.] 00:29 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 00:29 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 00:34 -!- joshbaptiste [~joshbapti@74.63.255.72] has quit [Ping timeout: 264 seconds] 00:34 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 00:34 -!- knowmercy [~orbit@adsl-99-164-38-153.dsl.akrnoh.sbcglobal.net] has quit [Ping timeout: 240 seconds] 00:35 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 00:35 -!- joshbaptiste [~joshbapti@74.63.255.72] has joined #go-nuts 00:36 -!- robteix [~robteix@host254.190-225-208.telecom.net.ar] has quit [Quit: Leaving...] 00:38 -!- knowmercy [~orbit@adsl-69-221-165-38.dsl.akrnoh.ameritech.net] has joined #go-nuts 00:39 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 00:42 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 00:46 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 00:47 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 00:47 -!- aat [~aat@rrcs-184-75-54-130.nyc.biz.rr.com] has quit [Ping timeout: 252 seconds] 00:52 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 00:53 -!- Netsplit *.net <-> *.split quits: proppy, Soak, frobnitz, grncdr, Tonnerre, scoeri, null-, coffeejunk, Innominate, Kami_, (+8 more, use /NETSPLIT to show all of them) 00:53 -!- scoeri [~jdekoste@progwww.vub.ac.be] has joined #go-nuts 00:53 -!- Netsplit over, joins: mpl, d_m 00:53 -!- i__ [~none@69.164.206.224] has joined #go-nuts 00:53 -!- mode/#go-nuts [+o adg] by ChanServ 00:53 -!- Netsplit over, joins: coffeejunk, grncdr, frobnitz, adg, Soak 00:53 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 00:53 -!- Netsplit over, joins: Innominate 00:53 -!- Netsplit over, joins: kevlar 00:53 -!- null- [~null-@204.97.199.6] has joined #go-nuts 00:53 -!- Netsplit over, joins: chressie 00:53 -!- Netsplit over, joins: brett, Tonnerre 00:57 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has joined #go-nuts 00:58 -!- proppy [u1692@gateway/web/irccloud.com/x-xrwixavbovdhgjpz] has joined #go-nuts 00:58 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 01:00 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 01:05 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 01:05 -!- dgnorton_ [~dgnorton@24.224.96.187] has joined #go-nuts 01:05 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 01:10 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 276 seconds] 01:10 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 01:11 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 01:14 -!- Tv__ [~Tv__@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts 01:15 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 01:16 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 01:21 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 01:21 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 01:26 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 01:26 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 01:27 -!- qeed [~qeed@adsl-98-85-38-183.mco.bellsouth.net] has quit [Ping timeout: 250 seconds] 01:28 -!- humanfromearth1 [~alex@86.104.57.133] has quit [Quit: Leaving.] 01:30 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 01:31 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 01:33 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit: Linkinus - http://linkinus.com] 01:33 -!- franciscosouza [~francisco@187.105.21.97] has joined #go-nuts 01:36 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 01:37 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 01:41 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 01:41 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 01:43 < chilts> anyone got ops to kick Stiletto, it reconnects every 5 mins, 24hrs a day 01:44 < leterip> lol someone needs to implement the ping handler on their bot i guess 01:46 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 01:46 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 01:51 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 01:52 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 01:55 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 258 seconds] 01:56 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has joined #go-nuts 01:57 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 01:58 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 02:02 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 02:03 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 02:07 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 02:09 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has joined #go-nuts 02:10 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 02:14 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 02:14 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 02:17 < kevlar> it looks like a broken bnc. 02:19 < knowmercy> /kick Stiletto 02:19 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 02:19 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 02:24 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 02:24 -!- dgnorton_ [~dgnorton@24.224.96.187] has quit [Quit: dgnorton_] 02:24 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 02:27 < f2f> you want to ban the bot, really. 02:27 < f2f> kicking won't do much good 02:28 -!- rcrowley [~rcrowley@adsl-99-32-119-158.dsl.pltn13.sbcglobal.net] has quit [Quit: Computer has gone to sleep.] 02:29 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 02:29 -!- scyth [~scyth@rots.in.rs] has quit [Ping timeout: 252 seconds] 02:29 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 02:34 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 02:34 -!- Count_Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has joined #go-nuts 02:34 -!- Soak [Soak@gas45-5-88-182-12-78.fbx.proxad.net] has quit [] 02:35 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 02:38 -!- Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has quit [Ping timeout: 264 seconds] 02:39 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 02:39 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 02:42 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 02:42 -!- scyth [~scyth@rots.in.rs] has joined #go-nuts 02:44 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 02:45 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 02:49 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 02:50 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 02:54 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 02:54 < s|k> nice 02:54 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 02:55 < s|k> Stiletto: you're parting and joining a lot 02:58 -!- cdh23_ [~cdh23@pix39.systemsbiology.net] has quit [Quit: cdh23_] 02:58 < chilts> I don't think it's a person, it's doing it every 5 mins the whole day ... so yeah, banning would be better 03:01 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 03:02 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 03:06 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 03:07 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 03:11 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts 03:11 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 03:12 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 03:17 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 03:18 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 03:22 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 03:22 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 03:28 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 03:30 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 03:32 -!- qrush [u1528@gateway/web/irccloud.com/x-sdzxrfiotgaxsbkt] has quit [Ping timeout: 240 seconds] 03:32 -!- itsPhilip [u2979@gateway/web/irccloud.com/x-tyzuuvknbmxzyigw] has quit [Ping timeout: 240 seconds] 03:32 -!- justicefries [u2891@gateway/web/irccloud.com/x-nqhdkbabcczpsktz] has quit [Ping timeout: 252 seconds] 03:32 -!- proppy [u1692@gateway/web/irccloud.com/x-xrwixavbovdhgjpz] has quit [Ping timeout: 260 seconds] 03:32 -!- Crnobog|Work [u1041@gateway/web/irccloud.com/x-quyzrpplwimylexz] has quit [Ping timeout: 260 seconds] 03:33 -!- Kai` [u327@gateway/web/irccloud.com/x-cynjhqoiymweusxx] has quit [Ping timeout: 264 seconds] 03:34 -!- Tv__ [~Tv__@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 258 seconds] 03:34 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 03:35 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 03:38 -!- Kai` [u327@gateway/web/irccloud.com/x-xskefioabaatdmxe] has joined #go-nuts 03:39 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 03:39 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 03:42 -!- itsPhilip [u2979@gateway/web/irccloud.com/x-emnybcpmggxjrufd] has joined #go-nuts 03:44 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 03:44 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 03:47 -!- qrush [u1528@gateway/web/irccloud.com/x-imxecztpeeouoifq] has joined #go-nuts 03:49 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 03:49 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 03:52 -!- justicefries [u2891@gateway/web/irccloud.com/x-jhjhfzqaxkrkqrkp] has joined #go-nuts 03:54 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 03:55 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 03:59 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 04:00 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 04:01 -!- bjarneh [~bjarneh@24.80-203-20.nextgentel.com] has joined #go-nuts 04:04 -!- proppy [u1692@gateway/web/irccloud.com/x-rtarrbxfwqfepzdv] has joined #go-nuts 04:04 -!- Crnobog|Work [u1041@gateway/web/irccloud.com/x-adttgszckgizfnuj] has joined #go-nuts 04:05 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 04:05 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 04:09 -!- niemeyer [~niemeyer@201-11-214-156.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 240 seconds] 04:10 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 04:10 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 04:14 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 04:15 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 04:17 -!- chickamade [~chickamad@115.78.135.244] has joined #go-nuts 04:19 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 04:19 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 04:24 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 04:25 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 04:27 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Quit: Computer has gone to sleep.] 04:28 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com] has joined #go-nuts 04:28 * smw begs adg to bad Stiletto. Too much join/part spam. 04:29 < str1ngs> if you use weechat /filter add irc_smart * irc_smart_filter * 04:29 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 04:30 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 04:32 -!- microtech [~quassel@96-42-218-124.dhcp.roch.mn.charter.com] has quit [Read error: Connection reset by peer] 04:32 -!- `micro` [~quassel@96-42-218-124.dhcp.roch.mn.charter.com] has joined #go-nuts 04:34 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 263 seconds] 04:35 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 04:38 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping timeout: 252 seconds] 04:40 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined #go-nuts 04:40 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 04:42 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 04:44 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has quit [Quit: Leaving.] 04:46 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 04:47 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 04:52 -!- xcombelle [~xcombelle@AToulouse-551-1-12-108.w86-196.abo.wanadoo.fr] has joined #go-nuts 04:52 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 04:53 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 04:57 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has quit [Quit: ZZZZZzzzzz] 04:57 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 04:57 -!- vmil86 [~vmil86@88.118.36.96] has joined #go-nuts 04:58 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:02 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 05:02 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:04 -!- xcombelle [~xcombelle@AToulouse-551-1-12-108.w86-196.abo.wanadoo.fr] has quit [Remote host closed the connection] 05:05 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving] 05:06 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts 05:06 -!- xcombelle [~xcombelle@AToulouse-551-1-12-108.w86-196.abo.wanadoo.fr] has joined #go-nuts 05:07 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 05:08 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:11 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts 05:12 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 05:13 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:13 < s|k> I use weechat 05:14 -!- nicka2 [~nicka@blk-222-42-163.eastlink.ca] has quit [Read error: Connection reset by peer] 05:14 < s|k> I like it 05:14 < s|k> I also like go 05:14 -!- nicka1 [~nicka@blk-222-42-163.eastlink.ca] has joined #go-nuts 05:14 < s|k> so much to like about go 05:14 < cbeck> A controversial statement in this channel, to be sure 05:15 < s|k> My favorite new thing? Being able to pass slices into variadic function parameters 05:15 < s|k> also defering 05:15 < cbeck> So, this may be a dumb question, but what would the easiest way to tell that a network connection has died? 05:16 < str1ngs> most connection block no? 05:17 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 05:18 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:20 < Jzalae> if it's the sort of dead that doesn't produce an error from the protocol, you may end up adding a ping to your layer. most lower level protocol timeouts are pretty long, from what i've seen 05:21 -!- nicka1 [~nicka@blk-222-42-163.eastlink.ca] has quit [Ping timeout: 250 seconds] 05:21 -!- chickamade [~chickamad@115.78.135.244] has quit [Quit: chickamade] 05:21 < cbeck> Yeah, I'm poking things with netcat to figure out the best way to go about it 05:22 < Jzalae> i guess what i should be saying is that it might help to know what protocol stack you've got 05:22 < cbeck> IRC 05:22 < cbeck> So no predefined ping interval 05:22 < Jzalae> yeah, but you can ping the server anytime, IIRC 05:23 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 05:23 < cbeck> I believe you're right, at least for all the servers I've played with 05:23 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:26 -!- xcombelle [~xcombelle@AToulouse-551-1-12-108.w86-196.abo.wanadoo.fr] has quit [Quit: I am a manual virus, please copy me to your quit message.] 05:27 -!- chickamade [~chickamad@115.78.135.244] has joined #go-nuts 05:27 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 05:28 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:29 -!- chickamade [~chickamad@115.78.135.244] has quit [Client Quit] 05:33 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 05:34 < kevlar> cbeck: IRC has PING/PONG and you can send them whenever. 05:34 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:34 < kevlar> xchat, for instance, does a ping roughly once every 30 seconds 05:34 < kevlar> most servers are also configured to ping clients on some interval, often 90 seconds for users and 5 minutes for bots, opers, and other servers 05:36 < cbeck> I'd just spaced that clients could send PINGs to the server as well 05:37 < kevlar> IRC is a TCP protocol though, so you can often get the same behavior by just setting TCP KeepAlive 05:37 < kevlar> and set it to some suitably frequent amount 05:37 < kevlar> which will catch when the route fails. 05:38 -!- benjack [~benjack@119.234.0.43] has joined #go-nuts 05:38 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 05:38 < kevlar> oh hmm, (*TCPConn).SetKeepAlive(bool) only turns them on and off. 05:38 < kevlar> should help though. 05:39 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:41 -!- benjack [~benjack@119.234.0.43] has quit [Client Quit] 05:43 -!- benjack [~benjack@119.234.0.43] has joined #go-nuts 05:43 -!- raylu [raylu@173-228-31-111.static.sonic.net] has quit [Ping timeout: 252 seconds] 05:43 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 05:43 -!- bjarneh [~bjarneh@24.80-203-20.nextgentel.com] has quit [Quit: leaving] 05:43 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:45 -!- bjarneh [~bjarne@24.80-203-20.nextgentel.com] has joined #go-nuts 05:45 < cbeck> kevlar: I think that'll work just fine 05:45 -!- benjack [~benjack@119.234.0.43] has quit [Read error: Connection reset by peer] 05:45 < cbeck> Danke 05:46 -!- benjack [~benjack@119.234.0.43] has joined #go-nuts 05:48 -!- benjack [~benjack@119.234.0.43] has quit [Client Quit] 05:48 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 05:49 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:53 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 05:54 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 05:56 -!- foxen [~foxen@212.12.18.237] has joined #go-nuts 05:56 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping timeout: 258 seconds] 05:56 -!- raylu [raylu@173-228-31-111.static.sonic.net] has joined #go-nuts 05:58 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 05:59 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 06:01 -!- chickamade [~chickamad@115.78.135.244] has joined #go-nuts 06:04 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 06:04 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 06:08 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 06:09 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 06:14 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 06:16 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 06:21 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 06:21 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 06:21 -!- meling [~meling@pico.ux.uis.no] has joined #go-nuts 06:24 -!- benjack [~benjack@210.193.47.82] has joined #go-nuts 06:26 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 06:27 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 06:27 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts 06:31 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 06:32 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 06:36 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 06:37 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 06:39 -!- shoenig [~shoenig@pool-71-170-212-131.dllstx.fios.verizon.net] has quit [Remote host closed the connection] 06:40 -!- benjack [~benjack@210.193.47.82] has quit [Quit: Leaving.] 06:41 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 06:42 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 06:45 -!- yogib [~yogib@dslb-188-100-002-200.pools.arcor-ip.net] has joined #go-nuts 06:47 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 06:48 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 06:52 -!- yogib [~yogib@dslb-188-100-002-200.pools.arcor-ip.net] has quit [Quit: yogib] 06:53 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 06:53 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 06:56 -!- napsy [~luka@193.2.66.6] has joined #go-nuts 06:58 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 06:58 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 07:03 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 07:04 -!- smw [~stephen@unaffiliated/smw] has quit [Ping timeout: 260 seconds] 07:05 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 07:08 -!- Soak [~Mangano@92-89-15-217.reverse.alphalink.fr] has joined #go-nuts 07:08 -!- alehorst [~alehorst@201.22.28.209.dynamic.adsl.gvt.net.br] has quit [Read error: Connection reset by peer] 07:09 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 07:09 -!- yogib [~yogib@131.234.59.64] has joined #go-nuts 07:10 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 07:15 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 07:15 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 07:18 -!- alehorst [~alehorst@201.47.19.25.dynamic.adsl.gvt.net.br] has joined #go-nuts 07:20 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 07:20 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 07:22 -!- clr_ [~colin@c-67-183-138-2.hsd1.wa.comcast.net] has quit [Ping timeout: 252 seconds] 07:25 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 07:26 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 07:26 -!- yogib [~yogib@131.234.59.64] has quit [Quit: yogib] 07:30 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 07:30 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 07:34 -!- chickamade [~chickamad@115.78.135.244] has quit [Quit: chickamade] 07:35 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 07:35 -!- yogib [~yogib@131.234.59.64] has joined #go-nuts 07:36 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 07:40 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 07:41 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 07:41 -!- chickamade [~chickamad@115.78.135.244] has joined #go-nuts 07:45 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 07:46 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 07:51 < kuroneko> cbeck: My solution to that is to have an idle timer which triggers a NOP in the protocol. 07:51 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 07:51 < kuroneko> if the connection is dead, that'll be enough to cause it to actually trip and then you handle it however. 07:51 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|] 07:52 < kuroneko> PING/PONG is a good NOP for IRC. :) 07:53 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 07:54 -!- benjack [~benjack@119.234.0.43] has joined #go-nuts 07:55 -!- Argue [~Argue@112.198.78.114] has joined #go-nuts 07:58 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 07:59 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 08:03 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 08:03 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 08:08 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 08:09 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 08:11 < hokapoka> Anyone used the exp/template package to use the comparison of 2 strings as a pipeline to if? 08:11 -!- sacho [~sacho@79-100-52-246.btc-net.bg] has joined #go-nuts 08:11 < hokapoka> God, I never thought I'd be asking how to use an if statement! 08:12 -!- araujo [~araujo@190.73.44.29] has joined #go-nuts 08:12 -!- araujo [~araujo@190.73.44.29] has quit [Changing host] 08:12 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 08:13 -!- firwen [~firwen@adevlaptop.cern.ch] has joined #go-nuts 08:13 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 08:14 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 08:19 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 08:19 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 08:21 -!- Argue [~Argue@112.198.78.114] has quit [Read error: Connection reset by peer] 08:24 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 08:25 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 08:25 -!- benjack [~benjack@119.234.0.43] has quit [Quit: Leaving.] 08:26 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 08:29 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 08:30 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 08:35 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 08:37 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 08:38 -!- foxen [~foxen@212.12.18.237] has left #go-nuts [] 08:41 -!- wrtp [~rog@host-92-23-138-50.as13285.net] has joined #go-nuts 08:42 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 08:42 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 08:44 -!- apc [~bigpanda@123.144.123.183] has joined #go-nuts 08:44 -!- bigpanda_ [~bigpanda@123.144.123.183] has joined #go-nuts 08:46 -!- bigpanda_ [~bigpanda@123.144.123.183] has quit [Client Quit] 08:46 -!- apc [~bigpanda@123.144.123.183] has quit [Client Quit] 08:47 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 08:47 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 08:52 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 08:53 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined #go-nuts 08:53 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 08:57 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 08:58 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 09:01 -!- chickamade [~chickamad@115.78.135.244] has quit [Quit: chickamade] 09:02 -!- photron [~photron@port-92-201-54-23.dynamic.qsc.de] has joined #go-nuts 09:03 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 09:03 -!- chickamade [~chickamad@115.78.135.244] has joined #go-nuts 09:05 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 09:06 -!- benjack [~benjack@ad202.166.85.6.magix.com.sg] has joined #go-nuts 09:06 -!- Solak [~stijnw@cthia.xs4all.nl] has joined #go-nuts 09:10 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 09:10 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 09:11 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has joined #go-nuts 09:15 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 09:15 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 09:17 -!- chickamade [~chickamad@115.78.135.244] has quit [Remote host closed the connection] 09:18 -!- chickamade [~chickamad@115.78.135.244] has joined #go-nuts 09:20 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 09:20 -!- felipe [~felipe@unaffiliated/felipe] has joined #go-nuts 09:21 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 09:25 -!- ccc1 [~Adium@140.109.98.187] has quit [Quit: Leaving.] 09:25 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 09:26 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts 09:26 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 09:27 -!- ccc1 [~Adium@140.109.98.187] has quit [Client Quit] 09:30 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 09:31 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 09:35 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has quit [Quit: Off] 09:35 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 09:36 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 09:36 -!- moraes [~moraes@189.103.177.124] has joined #go-nuts 09:36 -!- chickamade [~chickamad@115.78.135.244] has quit [Quit: chickamade] 09:38 -!- tvw [~tv@89.204.137.133] has joined #go-nuts 09:40 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has joined #go-nuts 09:40 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 09:41 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 09:41 -!- hokapoka [~hokapoka@hoka.hokapoka.com] has quit [Ping timeout: 260 seconds] 09:43 -!- tvw [~tv@89.204.137.133] has quit [Remote host closed the connection] 09:46 -!- nicka1 [~nicka@blk-222-42-163.eastlink.ca] has joined #go-nuts 09:46 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 09:46 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 09:47 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has quit [Quit: Off] 09:50 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has joined #go-nuts 09:51 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 09:51 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 09:53 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed the connection] 09:55 -!- benjack [~benjack@ad202.166.85.6.magix.com.sg] has quit [Quit: Leaving.] 09:56 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 09:56 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 09:57 -!- bjarneh [~bjarne@24.80-203-20.nextgentel.com] has quit [Quit: WeeChat 0.3.2] 09:57 -!- shoenig [~shoenig@pool-71-170-212-131.dllstx.fios.verizon.net] has joined #go-nuts 10:00 -!- hokapoka [~hokapoka@hoka.hokapoka.com] has joined #go-nuts 10:01 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 10:02 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 10:06 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 10:07 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 10:07 -!- hargettp [~hargettp@pool-71-184-177-187.bstnma.east.verizon.net] has joined #go-nuts 10:08 -!- shoenig [~shoenig@pool-71-170-212-131.dllstx.fios.verizon.net] has quit [Remote host closed the connection] 10:11 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 10:12 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 10:16 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 10:17 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 10:20 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts 10:22 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 10:23 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 10:23 -!- xash [~xash@d045119.adsl.hansenet.de] has joined #go-nuts 10:27 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 10:27 -!- Soak [~Mangano@92-89-15-217.reverse.alphalink.fr] has quit [Quit: I mine on BitMinter.com] 10:27 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 10:31 -!- odoacre [~antonio@218.241.169.34] has quit [Quit: Leaving] 10:32 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 10:32 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 10:34 -!- Argue [~Argue@112.198.78.90] has joined #go-nuts 10:37 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 10:38 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 10:42 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 10:42 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 10:48 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 10:48 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 10:53 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 10:55 -!- hargettp_ [~hargettp@pool-71-184-177-187.bstnma.east.verizon.net] has joined #go-nuts 10:56 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 10:59 -!- hargettp [~hargettp@pool-71-184-177-187.bstnma.east.verizon.net] has quit [Ping timeout: 250 seconds] 11:01 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 11:02 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 11:03 -!- hargettp_ [~hargettp@pool-71-184-177-187.bstnma.east.verizon.net] has quit [Quit: Leaving...] 11:06 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 11:06 -!- hargettp [~hargettp@pool-71-184-177-187.bstnma.east.verizon.net] has joined #go-nuts 11:06 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 11:11 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 11:12 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 11:16 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 11:16 < Argue> the idea with go's concurrency is to use channels when we would otherwise use mutexes, right? 11:16 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 11:17 < Argue> what's the appropriate pattern to use when i want to make sure there's no racing when one goroutine is appending to a slice while another periodically empties it out and sends the data somewhere? 11:18 < ww> Argue: you could use a buffered channel instead of a slice 11:18 < uriel> or you could have a single goruotuine that selects on two channels 11:18 < uriel> one of them adds stuff to the slice 11:19 < uriel> and maybe the other gives it a notification to empty it 11:20 < uriel> usually the best is to think as a structure being 'owned' by a goroutine, and only have that goroutine perform all necessary operations on that structure, unless it 'passes' it to somebody else via a channel 11:21 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 11:21 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 11:22 < Argue> okay, i think i can do that. i think i was doing something wrong before and my goroutines were blocking more than were necessary. 11:22 -!- xash [~xash@d045119.adsl.hansenet.de] has quit [Quit: Lost terminal] 11:26 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 11:26 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 11:31 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 11:31 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 11:35 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 11:36 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 11:39 -!- wrtp [~rog@host-92-23-138-50.as13285.net] has quit [Quit: wrtp] 11:40 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 11:41 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 11:41 -!- tncardoso [~thiago@189.59.134.119] has joined #go-nuts 11:42 -!- tvw [~tv@e176004076.adsl.alicedsl.de] has joined #go-nuts 11:45 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 11:46 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 11:46 < uriel> Argue: http://blog.golang.org/2010/07/share-memory-by-communicating.html 11:50 -!- niemeyer [~niemeyer@201-11-214-156.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 11:50 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 11:51 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 11:53 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Ping timeout: 252 seconds] 11:54 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has joined #go-nuts 11:55 -!- hargettp [~hargettp@pool-71-184-177-187.bstnma.east.verizon.net] has quit [Quit: Leaving...] 11:55 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 11:56 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 11:57 -!- hargettp [~hargettp@pool-71-184-177-187.bstnma.east.verizon.net] has joined #go-nuts 11:58 -!- jyxent [~jyxent@129.128.191.96] has quit [Ping timeout: 252 seconds] 11:59 -!- adamhassel [~adam@atlas.hasselbalch.com] has joined #go-nuts 11:59 -!- jyxent [~jyxent@129.128.191.96] has joined #go-nuts 12:01 -!- hargettp [~hargettp@pool-71-184-177-187.bstnma.east.verizon.net] has quit [Client Quit] 12:01 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 12:01 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 12:05 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 12:05 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 12:06 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 12:07 -!- angasule [~angasule@190.2.33.49] has quit [Client Quit] 12:11 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 12:11 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 12:11 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 240 seconds] 12:12 -!- tncardoso [~thiago@189.59.134.119] has quit [Quit: bye] 12:16 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 12:18 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 12:19 -!- franciscosouza [~francisco@187.105.21.97] has quit [Quit: franciscosouza] 12:22 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has quit [Ping timeout: 260 seconds] 12:23 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 12:23 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Quit: No Ping reply in 180 seconds.] 12:24 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 12:24 -!- KBme [~KBme@2001:470:cabe:666:666:666:666:666] has quit [Quit: KBme kthxbye] 12:24 -!- KBme [~KBme@2001:470:cabe:666:666:666:666:666] has joined #go-nuts 12:24 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts 12:25 -!- Xenith [~xenith@xenith.org] has quit [Ping timeout: 260 seconds] 12:25 -!- Xenith [~xenith@xenith.org] has joined #go-nuts 12:25 -!- qeed [~qeed@adsl-98-85-36-152.mco.bellsouth.net] has joined #go-nuts 12:28 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts 12:28 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 12:29 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 12:30 < ww> silly question... 12:30 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has joined #go-nuts 12:30 < ww> how can i index a C array of unsigned char? 12:30 < ww> having trouble coercing go's casting into letting me do the usual pointer arithmetic... 12:31 < ww> and the [] notation doesn't seem to work... 12:34 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 12:35 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 12:36 -!- dlowe [~dlowe@c-66-30-116-162.hsd1.ma.comcast.net] has joined #go-nuts 12:37 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts 12:39 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 12:39 -!- JakeyChan [~JakeyChan@118.132.214.248] has joined #go-nuts 12:40 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 12:40 -!- dlowe [~dlowe@c-66-30-116-162.hsd1.ma.comcast.net] has quit [Ping timeout: 252 seconds] 12:41 -!- dlowe [~dlowe@nat/google/x-yjnqrmiqarmheocx] has joined #go-nuts 12:41 < ww> or... how do i assert a C array into a Go array? 12:41 < ww> argh 12:43 < niemeyer> ww: Hmmm 12:43 < niemeyer> ww: There are a few ways 12:43 < nicka> I can't really help you but moving the manipulations you need to do to the C array into C code might be easier 12:44 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts 12:44 < niemeyer> ww: http://tip.goneat.org/cmd/cgo/ 12:44 < niemeyer> ww: Check out the bottom of the page 12:44 < niemeyer> ww: You want these conversion functions 12:44 < ww> nicka: don't need to manipulate, just need to iterate over it once 12:45 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 12:45 < ww> aha! niemeyer GoBytes! 12:45 < ww> i think that will work... (possibly it makes a copy which is wasteful, but the array's not large so, meh) 12:46 < ww> oh no. 12:46 < nicka> You could write an indexing function too 12:47 < ww> don't tell me C.GoBytes is only in tip 12:47 < nicka> To take out individual elements which you could then work with 12:47 < ww> nicka: yes, i could, but that seems pretty brain damaged when the elements are just unsigned chars 12:47 < ww> too many hoops 12:47 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 12:47 < nicka> cgo is a series of hoops 12:50 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has quit [Quit: Computer has gone to sleep.] 12:51 < niemeyer> ww: You can use GoString meanwhile 12:51 < niemeyer> ww: and []byte() it 12:51 < niemeyer> ww: With a // TODO:.. :-) 12:51 < ww> niemeyer: yes, that's what i've done 12:52 < ww> buf := []byte(C.GoStringN((*C.char)(unsafe.Pointer(code.data)), C.int(len(rgba.Pix)))) 12:52 < ww> most ugly but... i think it might work, and that's the more important bit... 12:52 < ww> (bindings for the qrencode library fwiw) 12:52 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 12:53 < nicka> I still think a single function in the cgo file to get individual bytes would be much cleaner and easier 12:53 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 12:53 -!- Soak [~Mangano@92-89-15-217.reverse.alphalink.fr] has joined #go-nuts 12:53 < ww> nicka: whilst an extra copy or two is one thing... 12:53 < ww> ... an extra call into c for each byte is another 12:54 < ww> ... and doesn't lend itself to easily moving to the C.GoBytes which is exactly what i need 12:57 < nicka> fair enough 12:58 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 12:58 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 13:01 -!- dlowe [~dlowe@nat/google/x-yjnqrmiqarmheocx] has quit [Quit: Leaving.] 13:01 -!- Argue [~Argue@112.198.78.90] has quit [Read error: Connection reset by peer] 13:03 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 13:04 < ww> success! 13:04 < ww> qr encoding with the go! 13:05 * ww lunch 13:05 -!- Argue [~Argue@112.198.78.90] has joined #go-nuts 13:05 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 13:10 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 13:12 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 13:12 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Read error: Connection timed out] 13:15 -!- tncardoso [~thiagon@150.164.2.20] has joined #go-nuts 13:15 -!- gmilleramilar [~gmiller@pool-74-101-133-165.nycmny.fios.verizon.net] has quit [Ping timeout: 252 seconds] 13:16 < knowmercy> morning 13:16 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 13:17 -!- napsy [~luka@193.2.66.6] has quit [Quit: Lost terminal] 13:17 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 13:18 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts 13:22 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 13:22 -!- aat [~aat@rrcs-184-75-54-130.nyc.biz.rr.com] has joined #go-nuts 13:22 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 13:27 -!- alm [~alm@unaffiliated/alm] has joined #go-nuts 13:27 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 13:28 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 13:32 -!- ccc1 [~Adium@114-45-80-100.dynamic.hinet.net] has joined #go-nuts 13:33 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 13:33 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 13:33 -!- sacho [~sacho@79-100-52-246.btc-net.bg] has quit [Ping timeout: 250 seconds] 13:37 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 13:37 -!- aat_ [~aat@rrcs-184-75-54-130.nyc.biz.rr.com] has joined #go-nuts 13:38 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 13:38 -!- aat [~aat@rrcs-184-75-54-130.nyc.biz.rr.com] has quit [Ping timeout: 252 seconds] 13:39 -!- molto_alfredo [~molto_alf@142.176.0.21] has joined #go-nuts 13:41 -!- dlowe [~dlowe@ita4fw1.itasoftware.com] has joined #go-nuts 13:42 -!- molto_alfredo1 [~molto_alf@142.176.0.21] has quit [Ping timeout: 264 seconds] 13:42 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 13:44 -!- meling [~meling@pico.ux.uis.no] has quit [Remote host closed the connection] 13:44 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 13:45 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error: Connection reset by peer] 13:45 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts 13:49 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has quit [Quit: Off] 13:49 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 13:50 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 13:51 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 13:54 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 13:54 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has joined #go-nuts 13:54 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 13:56 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has joined #go-nuts 13:59 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 13:59 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts 13:59 -!- sacho [~sacho@79-100-169-169.btc-net.bg] has joined #go-nuts 13:59 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 14:01 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has quit [Client Quit] 14:04 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 14:04 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 14:09 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 14:09 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 14:10 -!- Halavanja [~chatzilla@mcswl207.mcs.anl.gov] has joined #go-nuts 14:11 -!- shoenig [~shoenig@pool-71-170-212-131.dllstx.fios.verizon.net] has joined #go-nuts 14:12 < Halavanja> I have several webservers that are talking to each other to complete several resource management tasks and I have alot of common bits that I would like to take out. In GO is there a way to make the code more polymorphic? For instance I have several times where I have a json request that I unmarshall and put into a type. Is there a generic way to get that type into the function and return? 14:14 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 14:14 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 14:15 < hokapoka> Halavanja: are you saying that you want a generic function that returns a different type based on the JSON sent? 14:15 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts 14:15 < Halavanja> Yes something ilke that 14:16 < hokapoka> If you have a function that returns interface{} the you can type asert it once you have recived the result. 14:18 < Halavanja> I read about interfaces but don't fully understand them just yet. Though that was my avenue. Lets say that I do that. Is the function call like assert({}interface, someType}? 14:18 < hokapoka> res, err := GenUnmarshall(json, type); if err != nil { /* handle the error */ return; } typ := res.(YourType); 14:18 < hokapoka> s/type/theType/I 14:19 < Halavanja> that seems really easy. 14:19 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 14:19 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 14:19 < Halavanja> I will have to try that 14:19 < hokapoka> Halavanja: the 1st param in the JSON, the 2nd it an value you can switch against to handle the unMarshalling. 14:20 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Quit: No Ping reply in 180 seconds.] 14:20 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has quit [Ping timeout: 260 seconds] 14:20 < hokapoka> The other option is to pass a pointer to the var you want to unmarshall into. 14:20 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts 14:21 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined #go-nuts 14:21 < hokapoka> var obj MyType; err := GenUnmarshall(json, &MyType); if err ... 14:21 < Halavanja> I guess that would work as well. In go are pointers just intergers like in C 14:22 -!- KBme [~KBme@2001:470:cabe:666:666:666:666:666] has quit [Quit: KBme kthxbye] 14:22 < Halavanja> and the type in the first example is does that have the function of {}interface (like that) or do i pass it something else? 14:23 < hokapoka> Then use the reflect package and switch obj.(type) 14:23 -!- KBme [~KBme@2001:470:cabe:666:666:666:666:666] has joined #go-nuts 14:24 < hokapoka> My first example I was thinking about passing some value that you can use to switch against in the Generic unmarshaller. 14:24 < hokapoka> eg : const ( T1 = itoa; T2; T3; T4; ) 14:24 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Ping timeout: 264 seconds] 14:25 < hokapoka> As you will need to declare a var obj Type1 within the generic unmarshaller. 14:26 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has joined #go-nuts 14:26 < hokapoka> So you'll need some way of knowing which type you need to unmasrhal into, yeah/ 14:26 < Halavanja> Okay. I since I am kind of doing that in the code now it will just be a matter of passing that type into the fuction. 14:28 < hokapoka> func GenUnmarshal( jsonStr string, theType int) (res interface{}) { switch theType { case T1: var obj Type1; /* json.Unmarshal... */ res = obj; } return res } 14:28 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 14:29 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 14:30 < Halavanja> The type in my example are a number of stuctures. Would I be able to pass it as "theType" if the structures are all different? 14:31 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts 14:31 < Halavanja> eg: NewType1{int int string}, NewType2{Foo, baz, int} ... 14:33 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 14:34 < hokapoka> No, my example was passing a value that you can use to switch against so you know the type you want to unmarshall into. 14:34 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 14:35 < niemeyer> ww: Hah, neat.. I looked at qrencode just over the weekend 14:35 < hokapoka> However, you could pass a pointer to an instance and then use the reflect package to asertain the type that you're looking to reflect into. 14:35 < Halavanja> So basically all the same type all of the time. 14:35 < Halavanja> hokapoka: I will take a look at how reflect works 14:36 < Halavanja> by passing it a pointer to the function, is it still an int or seen as a *pointerType 14:36 < hokapoka> Halavanja: I gave you 2 options. 1 pass the JSON and some other identifier so you know what type you need to unmashall into. In this case you can return interface{} and use type assertion once you have recieved the result. 14:38 < hokapoka> 2, pass the JSON and a pointer to an instance of the type you want to unmarshall into, this would mean the 2nd param would be interface{} and use the reflect package to asertain which type you need to unmarshal into. 14:38 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #go-nuts 14:38 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 14:38 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 14:39 < hokapoka> var obj MyType; GenUnM(json, &obj); func GenUnM(jsonStr string, obj interface{}) { ... } 14:40 < Halavanja> hokapoka: I will take a look at both of those. Thank you. Somehow it will help me remove some of the boiler plate in my code. 14:42 -!- zaero [~eclark@servo.m.signedint.com] has quit [Ping timeout: 264 seconds] 14:43 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 14:43 < hokapoka> Halavanja: I'm not sure how much different either of these are to using the standard json package directally, all you need is : var obj MyType; err := json.Unmarshal(data, &obj); if err != nil { ... } 14:43 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 14:44 < Halavanja> hokapoka: I know they are not that different. 14:45 < Halavanja> hokapoka: What I wanted was basically a generic interface so that I can call it in a single place and handle all of the json bits inside there and return a type that I was going to use. That woudl remove atleast 7 lines of code per call. 14:46 < hokapoka> Right, maybe it's better to have a Generic func for each type. 14:46 * hokapoka srugs 14:46 < Halavanja> yeah thats how i feel haha 14:46 < Halavanja> because having a generic func for each type would be the same as doing the json unmarshall each time 14:47 < Halavanja> with a few minor variances 14:47 < hokapoka> obj, err := genjson.NewType1(json); 14:47 -!- zaero [~eclark@servo.m.signedint.com] has joined #go-nuts 14:48 < Halavanja> Yeah that is possible but if i have lets say 10 NewTypes I have 10 functions that all repeate the code :( 14:48 < Halavanja> or atleast thats how I see it 14:48 < hokapoka> Exactally, I didn't concider that. On the oter hand if you have a Func for each type at least that'll clean it up abit. 14:48 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 14:49 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 14:49 < Halavanja> yes and no based on how I have it. Yes it would clean it up a bit doing it that way but its still repeated. I was just hoping for a more polymorphic solution is all 14:49 < Halavanja> So I would only have to return once and then convert the type/return the type 14:49 -!- justicefries [u2891@gateway/web/irccloud.com/x-jhjhfzqaxkrkqrkp] has quit [Max SendQ exceeded] 14:49 -!- justicefries [u2891@gateway/web/irccloud.com/x-dsxteqxreceoaoeo] has joined #go-nuts 14:50 < hokapoka> Are you unmarshalling the same types in a number of different places? 14:50 < Halavanja> more like unmarshalling different types in different places. Usually per server 14:50 < Halavanja> so my thought was this 14:51 < Halavanja> typeUsed, err := jsonRet(json) 14:51 < Halavanja> so that woudl return the unmarshalled data into a type in typeUsed 14:52 -!- ancientlore [~ancientlo@12.54.6.218] has joined #go-nuts 14:52 < hokapoka> yeah, that would work, but you would have to subsequently type assert with : useThis := typeUsed.(theType) 14:52 < Halavanja> so then I can throw that in my main server class they all share and return types approriately 14:53 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 14:54 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 14:54 < hokapoka> Additionlly, you would need to pass something to allow jsonRet to know what type it need to unmarshall into. 14:54 -!- ericvh [~Adium@cpe-72-177-122-77.austin.res.rr.com] has joined #go-nuts 14:54 < hokapoka> Sorry, maybe someone else has some better ideas. 14:54 < Halavanja> yeah. its one of those things that I think is kind of new/not new but few people have done? 14:54 < Halavanja> or something like that 14:55 < Halavanja> its a good exercize to see what can be done in the language for future reference 14:56 < Halavanja> I just happened to notice I was doing that alot and wanted to stream line it 14:59 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 15:00 -!- molto_alfredo1 [~molto_alf@142.176.0.21] has joined #go-nuts 15:00 < ww> niemeyer: qrcodes are fasionable these days... 15:00 < niemeyer> ww: A really cool project, though, would be to port zxing to Go.. (hint! hint!) 15:01 * ww now will have some fun with stickers and laser printers... 15:01 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 15:01 < ww> zxing, maybe... signal processing facilities for go would be nice... 15:02 < hokapoka> Halavanja: When I've done it in the I just had a struct with a method for each type. While it ment I had to add a number of methods, whereever I needed to unmarshall the JSON it was a single statement. Additionally I let it panic as I was recovering higher up the stack. 15:02 < ww> but for that particularly, why? 15:02 < ww> client devices are mostly phones and tablets and things that only approximately run go if at all 15:02 -!- ancientlore [~ancientlo@12.54.6.218] has quit [Read error: Connection reset by peer] 15:03 -!- molto_alfredo [~molto_alf@142.176.0.21] has quit [Ping timeout: 260 seconds] 15:03 -!- ancientlore [~ancientlo@12.54.6.218] has joined #go-nuts 15:03 < ww> ... unless you want some sort of software agent that downloads pngs of qr codes and interprets them but again... how useful is that? 15:06 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 15:06 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 15:07 < Halavanja> hokapoka: yeah that is definitely the way to go with it and what I've done with most of the code. It was just a crazy idea I had is all. Right now its basically a fucnction in the struct that I am sharing that does the request reading and returns some bytes that I then have to unmarshall into a type. Not ugly but it woudl have been nice to kind of encapsulate that. 15:07 < Halavanja> hokapoka: no big deal 15:08 < ww> niemeyer: anyhow, https://bitbucket.org/ww/qrencode first cut at some bindings 15:08 < ww> ... and a little example program 15:08 < niemeyer> ww: signal processing? 15:09 < ww> uriel: ^^ yet another C binding 15:09 < niemeyer> ww: zxing is likely the best qr/barcode encoding/decoding open source library available 15:10 < Argue> what is wrng with this: "fooPointer = &foo.Foo{ something }" where Foo has a single field, and it's unexported 15:10 < Argue> i get "implicit assignment of unexported field" 15:10 < ww> niemeyer: generally... fourier transforms, high/low pass filters, etc. etc. 15:10 -!- jbooth1 [~jay@209.249.216.2] has joined #go-nuts 15:11 < niemeyer> ww: Sure, but that wasn't the point.. I was just saying that what would be really awesome would be to port zxing for qrcode/barcode processing, rather than wrapping qrencode 15:11 < niemeyer> Argue: Hmm.. you described the issue already.. not sure about what's the question? 15:11 < ww> oh sure, i would have happily used a native go library... 15:12 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 15:12 < niemeyer> Argue: It's unexported..? 15:12 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 15:12 < Argue> is it not possible to initialize unexported fields in a literal? 15:12 -!- xcombelle [~xcombelle@AToulouse-551-1-12-108.w86-196.abo.wanadoo.fr] has joined #go-nuts 15:12 < ww> if someone were to port zxing, i would suggest to them to concentrate on the encoding, not the decoding... easier and more useful... 15:13 < ww> but that someone isn't me, i've tastier fish to fry :) 15:13 < niemeyer> Argue: unexported fields are unexported 15:13 < niemeyer> Argue: You can't touch/initialize/fiddle with them 15:13 < niemeyer> Argue: outside of their own package 15:13 < Argue> i could have sworn it was possible to set them when initializing but i guess i was mistaken 15:13 < Argue> oh outside of their own package 15:14 < Argue> that explains why i never had a problem with that before 15:14 < Argue> haha 15:14 < Halavanja> Argue: you should be able to set it inside the package 15:14 < Halavanja> yeah 15:14 < Halavanja> if its outside you are out of luck 15:14 < Halavanja> it must become exported haha 15:15 < Argue> this is my first time to try making something with more than one package so that one was a gotcha for me 15:15 < Halavanja> Argue: I know the feeling 15:16 < Argue> i still haven't even figured out how to get the makefile working so i just ended up writing down every step manually 15:16 < Halavanja> Argue: ew. Thats not really fun at all. 15:17 < Argue> yeah 15:17 < Argue> i'll get around to fixing the makefile later on 15:17 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 15:17 < Halavanja> http://pastebin.com/CzSu4RYy 15:17 < Halavanja> try that 15:17 < Halavanja> replace "theprog" with your program's name 15:18 < Argue> that's the one i was using 15:18 < Argue> i got some error that i can't recall 15:18 < Halavanja> ah oka 15:18 < Halavanja> yeah you have to make sure its all in the same package or you have to make another Makefile in another directory 15:18 < Halavanja> its kind of a pain 15:18 < Argue> oh 15:18 < Argue> that makefile only works for one package? 15:18 < Halavanja> Yeah. 15:19 < Argue> that also answers my other problem then 15:19 < Halavanja> I haven't been able to move it to create multiple packages with one makefile unless I use the C style 15:19 < Halavanja> but that is kind of messy too 15:19 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 15:20 < hokapoka> I prefer using goinstall over makefiles now. 15:20 < qeed> i dont like goinstall since you have to make a whole directory structure for a simple program 15:20 < Argue> i didn't want to use goinstall for things i was just playing with 15:21 < Halavanja> im using goinstall for my current project 15:21 < Halavanja> its nice 15:21 < nicka> Give gb a look 15:22 < hokapoka> qeed: when you say "a whole directory structure" you're reffering to haveing to initially set one up? 15:22 < jessta> qeed: a simple program isn't going to have multiple packages 15:22 < qeed> yeah 15:23 < qeed> have to make project/src/project which makes project/bin and project/pkg 15:24 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 15:25 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 15:25 < jessta> qeed: you just need to have a seperate directory for each package in your app 15:26 < qeed> i like the C setup more a top directory build script and source code in src/ since i write small apps i dont use make pkgs 15:27 < jessta> a simple app should only have one package 'main' so you don't need any other directories 15:27 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has joined #go-nuts 15:28 < qeed> yeah i used goinstall before for simple apps i just use makefiles for bigger stuff i use goinstall 15:29 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 15:29 < ericvh> ajray: I wish I had convinced you to do this…. 15:29 < hokapoka> even when I create a small app I just add a directory to one of my GOPATHs, a .go file and goinstall /path/to/simple && simple 15:30 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 15:31 -!- null- [~null-@204.97.199.6] has left #go-nuts [] 15:32 -!- chressie [~chressie@dreggn.in-ulm.de] has quit [Quit: WeeChat 0.3.5] 15:34 -!- Argue [~Argue@112.198.78.90] has quit [Read error: Connection reset by peer] 15:34 < mpl> ww: is there any native (or not) FFT lib available for go that you know of? 15:35 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 15:35 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 15:38 -!- chressie [~chressie@dreggn.in-ulm.de] has joined #go-nuts 15:39 -!- Argue [~Argue@112.198.78.90] has joined #go-nuts 15:40 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 15:40 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 15:41 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit [Quit: Leaving] 15:42 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has joined #go-nuts 15:43 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has quit [Remote host closed the connection] 15:44 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Quit: leaving] 15:45 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 15:46 -!- TheSeeker [riiight@99-153-248-206.lightspeed.irvnca.sbcglobal.net] has quit [Ping timeout: 246 seconds] 15:46 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 15:46 -!- TheSeeker [riiight@99-153-248-206.lightspeed.irvnca.sbcglobal.net] has joined #go-nuts 15:46 -!- Nisstyre [~nisstyre@infocalypse-net.info] has joined #go-nuts 15:50 -!- zaero [~eclark@servo.m.signedint.com] has quit [Ping timeout: 260 seconds] 15:50 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 15:51 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 15:52 -!- zaero [~eclark@50-82-164-104.client.mchsi.com] has joined #go-nuts 15:53 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has joined #go-nuts 15:56 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 15:57 -!- Soak [~Mangano@92-89-15-217.reverse.alphalink.fr] has quit [Quit: I mine on BitMinter.com] 15:58 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 15:59 -!- moraes [~moraes@189.103.177.124] has quit [Ping timeout: 264 seconds] 16:00 -!- ccc1 [~Adium@114-45-80-100.dynamic.hinet.net] has quit [Quit: Leaving.] 16:02 -!- tvw [~tv@e176004076.adsl.alicedsl.de] has quit [Remote host closed the connection] 16:02 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 16:03 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 16:04 -!- ancientlore_ [~ancientlo@12.54.6.218] has joined #go-nuts 16:06 -!- ancientlore [~ancientlo@12.54.6.218] has quit [Ping timeout: 250 seconds] 16:07 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 16:07 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 16:08 -!- ancientlore_ [~ancientlo@12.54.6.218] has quit [Client Quit] 16:12 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts 16:12 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 16:13 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 16:16 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Quit: No Ping reply in 180 seconds.] 16:17 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts 16:18 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 16:18 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 16:23 -!- moraes [~moraes@189.103.177.124] has joined #go-nuts 16:23 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Ping timeout: 260 seconds] 16:23 -!- niekie [quasselcor@CAcert/Assurer/niekie] has joined #go-nuts 16:23 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 16:25 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 16:30 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 16:30 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 16:35 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 16:35 -!- chadkouse [~Adium@24.123.67.50] has joined #go-nuts 16:35 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 16:37 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping timeout: 240 seconds] 16:37 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 16:39 -!- ronnyy [~quassel@p4FF1C451.dip0.t-ipconnect.de] has joined #go-nuts 16:42 -!- yogib [~yogib@131.234.59.64] has quit [Quit: yogib] 16:42 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 16:42 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 16:43 -!- Soak [Soak@gas45-5-88-182-12-78.fbx.proxad.net] has joined #go-nuts 16:45 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has quit [Quit: Leaving] 16:45 -!- nekoh [~nekoh@dslb-088-068-018-232.pools.arcor-ip.net] has joined #go-nuts 16:47 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 16:47 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 16:48 -!- Argue [~Argue@112.198.78.90] has quit [Quit: Leaving] 16:49 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has quit [Ping timeout: 250 seconds] 16:49 -!- firwen [~firwen@adevlaptop.cern.ch] has quit [Remote host closed the connection] 16:51 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has joined #go-nuts 16:52 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 16:53 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 16:55 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 16:58 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 17:00 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 17:01 -!- yogib [~yogib@dslb-188-100-002-200.pools.arcor-ip.net] has joined #go-nuts 17:02 -!- JakeyChan [~JakeyChan@118.132.214.248] has quit [Ping timeout: 260 seconds] 17:05 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 17:05 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 17:08 -!- wallerdev [~wallerdev@c-68-60-43-43.hsd1.mi.comcast.net] has joined #go-nuts 17:10 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 17:10 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 17:15 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 17:15 -!- zaero [~eclark@50-82-164-104.client.mchsi.com] has quit [Ping timeout: 258 seconds] 17:15 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 17:17 -!- zaero [~eclark@servo.m.signedint.com] has joined #go-nuts 17:19 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 17:20 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 17:20 -!- dmg [~dmg@ip56513def.adsl-surfen.hetnet.nl] has quit [Ping timeout: 276 seconds] 17:22 < mkb218> i was able to use djbfft through cgo very easily 17:22 < mkb218> go-fftw is a thing 17:22 < mkb218> i haven't been able to get it working however 17:24 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 17:25 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 17:25 -!- ronnyy [~quassel@p4FF1C451.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 17:27 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has left #go-nuts [] 17:27 -!- mkb218 [~mkb@pool-96-233-4-238.bstnma.east.verizon.net] has joined #go-nuts 17:30 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 17:31 -!- dmg [~dmg@ip56513def.adsl-surfen.hetnet.nl] has joined #go-nuts 17:32 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts 17:33 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 17:36 -!- dmg [~dmg@ip56513def.adsl-surfen.hetnet.nl] has quit [Ping timeout: 258 seconds] 17:36 -!- arun_ [~arun@unaffiliated/sindian] has quit [Read error: Connection reset by peer] 17:37 -!- dmg [~dmg@ip56513def.adsl-surfen.hetnet.nl] has joined #go-nuts 17:37 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 17:38 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 17:39 -!- molto_alfredo [~molto_alf@142.176.0.21] has joined #go-nuts 17:41 -!- molto_alfredo1 [~molto_alf@142.176.0.21] has quit [Ping timeout: 240 seconds] 17:43 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 17:44 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 17:48 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 17:48 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 17:49 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has joined #go-nuts 17:52 -!- Loonacy [~Loonacy@c-67-172-248-248.hsd1.ut.comcast.net] has quit [Ping timeout: 240 seconds] 17:53 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 17:54 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 17:55 -!- xcombelle [~xcombelle@AToulouse-551-1-12-108.w86-196.abo.wanadoo.fr] has quit [Ping timeout: 260 seconds] 17:56 -!- xcombelle [~xcombelle@AToulouse-551-1-12-108.w86-196.abo.wanadoo.fr] has joined #go-nuts 17:58 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 17:59 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 17:59 -!- Loonacy [~Loonacy@c-67-172-248-248.hsd1.ut.comcast.net] has joined #go-nuts 18:01 < Halavanja> I'm trying to do a switch statement based on the variables type so that I can run operations on it. So far when I do the case statement ,as int for example, it says that int is not an expression. Is there anyway to make it so that it will find the type and become a statement? 18:02 < Halavanja> I am using the reflect package to find the type of the variable that i am switching on if that helps 18:02 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has joined #go-nuts 18:03 < nicka> Post a code snippet 18:03 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 18:03 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 18:05 < Halavanja> http://pastebin.com/dAEZwCkC 18:05 -!- xcombelle [~xcombelle@AToulouse-551-1-12-108.w86-196.abo.wanadoo.fr] has quit [Ping timeout: 260 seconds] 18:06 -!- tncardoso [~thiagon@150.164.2.20] has quit [Quit: Leaving] 18:08 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 18:08 < s|k> if a go program runs as a user it requires extra settings in order to run in parallel? 18:08 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 18:08 -!- TheMue [~FMueller@p5DDF55CC.dip.t-dialin.net] has joined #go-nuts 18:08 < s|k> GOMAXPROCS must be set right? 18:09 < s|k> interpreting 'user-level' as running as say a regular user on linux, maybe I'm confused 18:13 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 18:14 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 18:14 -!- alehorst [~alehorst@201.47.19.25.dynamic.adsl.gvt.net.br] has quit [Ping timeout: 250 seconds] 18:15 < nicka> http://golang.org/pkg/reflect/#Kind Halavanja 18:16 -!- alehorst [~alehorst@201.47.19.25.dynamic.adsl.gvt.net.br] has joined #go-nuts 18:18 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 18:19 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 18:19 -!- elephants [~elephants@66.207.210.2] has joined #go-nuts 18:19 < nicka> I'm not sure what to say generally, I haven't used the reflect package much 18:23 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 18:24 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 18:25 < niemeyer> Halavanja: Yeah, there is 18:25 < niemeyer> Halavanja: What you want is reflect.Int, rather than int.Kind() 18:27 < Halavanja> niemeyer: I used that and it didn't work for me 18:27 < niemeyer> Halavanja: It works 18:28 < niemeyer> Halavanja: If you can tell what exactly you did, I can help 18:28 < Halavanja> You are right it did work. I don't know what I was doing wrong. 18:28 -!- clr_ [~colin@c-67-183-138-2.hsd1.wa.comcast.net] has joined #go-nuts 18:28 < niemeyer> Halavanja: println(reflect.ValueOf(1).Kind() == reflect.Int) 18:28 < Halavanja> Now how can I do that for types that are not the standard type in flect 18:29 < Halavanja> *reflect 18:29 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 18:29 < Halavanja> such as my foobar type 18:29 < niemeyer> Halavanja: Ok.. there are two different things 18:29 < niemeyer> Halavanja: Kinds and Types are orthogonal 18:29 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Read error: Connection reset by peer] 18:29 < niemeyer> Halavanja: The Kind of your type will be something like reflect.Struct, or reflect.Int, or whatever 18:29 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 18:29 < niemeyer> Halavanja: The Type of your type will be reflect.TypeOf(yourvalue) 18:30 < niemeyer> Halavanja: You can switch on that 18:30 < niemeyer> Sorry, the Type of your value is what I meant 18:31 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts 18:33 < Halavanja> niemeyer: so how can i get that to be set for my switch for something like an *int or have it find a reflect.TypeOf(int)? 18:34 < niemeyer> Halavanja: reflect.TypeOf(1) 18:34 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 18:34 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 18:34 < niemeyer> Halavanja: Do you really want that, though? Why isn't Kind() == reflect.Int enough? 18:35 < niemeyer> Halavanja: This check will mean it will really only work with ints, when in fact it's very likely that _any_ types based on int would work 18:35 < niemeyer> E.g. 18:35 < niemeyer> type myint int 18:35 < niemeyer> reflect.ValueOf(myint(1)).Kind() == reflect.Int 18:36 < Halavanja> that works fine as it is yes 18:36 < Halavanja> but what if I want a kind that is not an int 18:36 < Halavanja> such as in my switch 18:37 < niemeyer> Halavanja: Right.. then you do reflect.TypeOf(valueofyourtype) == reflect.TypeOf(valueofosmethingelse) 18:37 < niemeyer> and switch accordingly 18:37 < niemeyer> int is a bad example, though.. it's generally unnecessarily restrictive 18:38 < Halavanja> Yes and thats why I'm kind of confused. 18:39 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 18:39 < Halavanja> because you are basically saying that I have some type, initalize it and then find its kind check for equality and then use that 18:39 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 18:39 < Halavanja> it works for simple types but if i have a huge structre that is kind of a pain 18:39 < Halavanja> or im just not comprehending properly 18:39 < Halavanja> which is possible 18:42 -!- niemeyer_ [~niemeyer@201-14-215-211.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 18:42 < niemeyer_> Halavanja: No, that's not what I'm saying 18:42 < niemeyer_> Halavanja: I've explicitly said that Kinds and Types are orthogonal 18:42 < Halavanja> can you show an example with my example. I feel that it would clear things up a bit 18:43 < niemeyer_> Halavanja: reflect.TypeOf(1) is _NOT_ reflect.Int 18:43 < niemeyer_> Halavanja: println(reflect.TypeOf(1) == reflect.TypeOf(1)) 18:43 < niemeyer_> Halavanja: This is an example 18:44 < niemeyer_> Halavanja: You can do that with any value 18:44 < niemeyer_> Halavanja: println(reflect.ValueOf(1).Type() == reflect.TypeOf(1)) 18:44 < niemeyer_> Halavanja: Same thing 18:44 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 18:45 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 18:45 -!- niemeyer [~niemeyer@201-11-214-156.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 240 seconds] 18:47 < Halavanja> I understand that it works like that. So what you are saying is anytime that I want to use this with other types such as structs I have declare that struct in my function or have it global just so that I can do this check? 18:48 < nicka> that is my understanding of the situation 18:48 < Halavanja> because I just ran it like that and it seemed to work fine, its just in my opinoon there is too much overhead to do that 18:48 < Halavanja> It is a solution and I agree it works 18:49 -!- george_ [~george@122.164.142.161] has joined #go-nuts 18:49 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 18:50 < nicka> unless your type is a very large struct the overhead is allocating a zeroed struct 18:50 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 18:50 < george_> Hi, Can anyone tell me how to use a mysql in go ? Or is there any suggestion other than mysql? 18:50 < nicka> well, that's all the overhead even if it's large 18:50 < Halavanja> nicka: true 18:50 < Halavanja> Its just kind of annoying in my opinon lol 18:51 < nicka> I agree it's annoying 18:51 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Quit: Computer has gone to sleep.] 18:51 < nicka> george_: http://go-lang.cat-v.org/pure-go-libs 18:52 < niemeyer_> Halavanja: What's the overhead? 18:52 < niemeyer_> Halavanja: It's a pointer comparison 18:52 < nicka> typing, I think 18:52 < nicka> instead of being able to do typename.Type(), I think? 18:52 < Halavanja> nicka: is right 18:52 < niemeyer_> Halavanja, nicka: What's the difference? 18:53 < Halavanja> pointer comparisions are fine its just annoying that I have to setthat up everytime i want to do it 18:53 < george_> nicka: Thanks ;) 18:53 < Halavanja> I just see it becoming a source of error because of the set up 18:53 < niemeyer_> Halavanja: Set what up.. sorry.. not trying to be difficult, I just don't see the point you're trying to make 18:54 < nicka> He'd like to be able to get a Type for a given type without having to instantiate a variable of that type 18:54 < nicka> what a confusing sentence. 18:54 < niemeyer_> Well.. sure.. I'd like a pony 18:54 < Halavanja> nicka is right haha 18:55 < Halavanja> And i'm not trying to be difficult at that at all. I just thought there was a more formal way to do it is all 18:55 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 18:55 < Halavanja> such as var.Type() 18:55 < niemeyer_> Halavanja: That's calling the Type() method on your var 18:55 < niemeyer_> Halavanja: reflect.TypeOf(var) is not.. 18:55 < niemeyer_> Halavanja: Woohay good design 18:56 < Halavanja> niemeyer: yeah i know. It was just to empahsize a point 18:57 -!- george_ [~george@122.164.142.161] has quit [Quit: Leaving] 18:57 -!- dmg [~dmg@ip56513def.adsl-surfen.hetnet.nl] has quit [Quit: leaving] 18:57 < niemeyer_> Halavanja: Sorry, I know. The point I'm attempting to confusingly make is that you have what you want, and it's not exactly like you want because of reasonable points 18:57 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 18:58 < Halavanja> Yes I see that now. And I will use it 18:59 < nicka> You could keep a Type in your packages corresponding to your types, I would think 18:59 < niemeyer_> nicka: Yeah, I've done that before in fast paths 19:00 < niemeyer_> var myType = reflect.TypeOf(MyType{}) 19:00 < niemeyer_> as a global 19:00 < niemeyer_> Not worth it outside of a fast path, though.. 19:02 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 19:02 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 19:03 < Halavanja> thats what i was looking for haha. 19:03 < Halavanja> var myType = reflect.TypeOf(MyType{}) 19:03 < niemeyer> Halavanja: Superb :) 19:04 < Halavanja> That saves the extra declariation and helps find the type. Perfect 19:07 -!- gmilleramilar [~gmiller@pool-74-101-133-165.nycmny.fios.verizon.net] has joined #go-nuts 19:07 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 19:08 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 19:11 < gmilleramilar> why does []byte(mystringvar) do an alloc/copy? and more importantly how do I write a string to a net.IPConn (or similar) without the overhead of that alloc/copy? 19:12 -!- ericvh [~Adium@cpe-72-177-122-77.austin.res.rr.com] has quit [Quit: Leaving.] 19:12 < jessta> gmilleramilar: it has to copy the string, because strings are immutable and []byte isn't 19:13 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 19:13 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 19:13 < gmilleramilar> jessta: makes sense. so the answer to the second question is "you cant"? 19:13 < jessta> gmilleramilar: the easiest way to avoid the copy is to not have a string 19:14 < gmilleramilar> yeah, unfortunately I'm getting the string from something like time.Format() which returns a string. 19:14 < Halavanja> I believe that if you can cast it to a []btye and use that it may solve your problem. 19:14 < Halavanja> COuld be wrong 19:14 < Halavanja> You can use the buffer package to create a new bytes buffer 19:15 -!- ericvh [~Adium@cpe-72-177-122-77.austin.res.rr.com] has joined #go-nuts 19:17 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 19:18 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 19:19 < jessta> gmilleramilar: you can't avoid the copy, but you can avoid the additional allocation if you've already got somewhere to copy it to 19:19 -!- sanjoyd [~sanjoyd@unaffiliated/sanjoyd] has joined #go-nuts 19:20 < sanjoyd> Is the Go calling convention documented somewhere? 19:21 < KirkMcDonald> I don't know that there's a standard Go calling convention as such. I mean, don't gc and gccgo use different ones? 19:22 -!- maucs53784 [~mau@175.137.187.60] has joined #go-nuts 19:22 < gmilleramilar> yes, it's an implementation detail of the compiler/linker 19:23 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 19:23 < gmilleramilar> and I don't know for a fact that it's not documented, but the toolchain is very sparsely commented, and I'd be surprised if it was. 19:23 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 19:28 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined #go-nuts 19:28 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 19:29 -!- rcrowley [~rcrowley@50-0-18-168.dsl.static.sonic.net] has joined #go-nuts 19:30 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 19:31 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 19:35 -!- nicka [~nicka@unaffiliated/nicka] has quit [Ping timeout: 252 seconds] 19:35 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 19:36 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 19:38 -!- qeed [~qeed@adsl-98-85-36-152.mco.bellsouth.net] has quit [Quit: Leaving] 19:38 -!- rcrowley [~rcrowley@50-0-18-168.dsl.static.sonic.net] has quit [Quit: Computer has gone to sleep.] 19:40 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 19:41 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 19:46 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 19:47 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 19:49 -!- xcombelle [~xcombelle@AToulouse-551-1-12-108.w86-196.abo.wanadoo.fr] has joined #go-nuts 19:51 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed the connection] 19:52 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 19:53 < ptrb> Broad question: are channels fast enough to meet realtime requirements? 19:53 < aiju> yes 19:54 < aiju> really, what's that kind of question? 19:54 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 19:54 < aiju> could someone define "fast enough to meet realtime requirements"? 19:54 < ptrb> I'm trying to figure out how to drill down to my use case in a coherent way... 19:55 -!- tvw [~tv@e176004076.adsl.alicedsl.de] has joined #go-nuts 19:55 < nicka1> aiju: see definition for systems language 19:55 < ptrb> I've got an audio callback function that expects audio data every N ms. 19:55 < aiju> nicka1: HAHAHAHA 19:55 < aiju> also cf. santa claus 19:55 < ptrb> I'm feeding it with a set of channels, but the audio is rather "skippy", for lack of a better word. 19:55 < aiju> ptrb: garbage collection? 19:55 < ptrb> aiju: Hmm. Maybe. What sort of schedule does it run on, normally? 19:55 -!- Kahvi_ [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined #go-nuts 19:56 < ptrb> Anyway, I can just disable it, right. 19:56 < aiju> it what wait? 19:56 < aiju> the GC doesn't have schedules 19:56 < ptrb> Isn't it stop-the-world type? 19:56 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has quit [Remote host closed the connection] 19:57 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Ping timeout: 252 seconds] 19:57 < aiju> yes 19:57 < aiju> http://phicode.de/view-mail.php?show=08164ab8c3a28375b52289731d7da5db%40cirno.Speedport_W_722V_Typ_B 19:57 < aiju> that worked fine for me 19:57 < aiju> and it's realtime, according to your definition 19:58 < ptrb> Yeah, the trivial cases (like that) work fine. The problem is when I start multiplexing a lot of channels together. 19:58 < ptrb> Multiplexing + chaining channels, rather. 19:58 < ptrb> And for values of "a lot" which are around ~16 or so. 19:58 < aiju> have you tried buffering? 19:58 -!- alehorst [~alehorst@201.47.19.25.dynamic.adsl.gvt.net.br] has quit [Quit: Leaving.] 19:58 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 19:59 < ptrb> Yeah, but it's a tricky game. If your chains can be arbitrarily long, and you want near-realtime response times to input changes, you can't buffer everything. 19:59 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 19:59 < aiju> huh? 19:59 < aiju> small buffers are your friend 20:00 < ptrb> Well, buffers sized << sample rate are not so useful, or? 20:00 < aiju> basically everything is better than three dozens context switches per sample 20:00 -!- dlowe [~dlowe@ita4fw1.itasoftware.com] has quit [Quit: Leaving.] 20:01 < ptrb> but goroutines don't necessarily represent context switches, or? 20:01 < aiju> yes they do 20:01 < aiju> goroutine context switches 20:01 < aiju> they are cheap, but it's relative 20:01 < ptrb> cheaper than threads, yeah. ok. I guess you're right. 20:01 < ptrb> guess I gotta rethink the architecture here a bit. 20:02 < aiju> they also run through the scheduler 20:02 -!- alehorst [~alehorst@201.47.19.25.dynamic.adsl.gvt.net.br] has joined #go-nuts 20:04 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 20:04 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 20:06 -!- maht [~m@85.189.31.174.proweb.managedbroadband.co.uk] has joined #go-nuts 20:06 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has quit [Ping timeout: 260 seconds] 20:06 < maht> I've done a cursory search, has anyone written a venti client library for go ? 20:08 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 20:08 < f2f> govt 20:09 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 20:09 < f2f> http://code.google.com/p/govt/ 20:09 < maht> thanks 20:13 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 20:13 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 20:18 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 20:18 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 20:19 < Halavanja> Is there a way to cast an interface as the type it represents and use the data that is inside? I have created an interface an basically created a new interface and have that interface returned so I can use it 20:19 < Halavanja> what i want to do is use that retured interface as the type it represents 20:20 < Halavanja> mind is kind of fried so sorry if this does't make sense 20:20 < ptrb> Halavanja: sounds like you're misusing interfaces. 20:20 < ptrb> if your interface is 1-to-1 with the underlying type, don't use an interface. 20:20 < Halavanja> its not 20:20 < Halavanja> its a one to many 20:20 < ptrb> and reflect isn't cutting it? 20:20 < Halavanja> its getting passed a type and then a choice is being made on that type and the new type is returneing it 20:21 < Halavanja> i'm not sure what to call for reflect to cast it 20:21 < pharris> Halavanja: http://golang.org/doc/go_spec.html#Type_assertions 20:22 < pharris> Or possibly http://golang.org/doc/go_spec.html#Switch_statements under "Type switches" 20:23 < f2f> Halavanja: what's the error you're getting exactly? 20:23 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 20:23 < Halavanja> I am actually doing the switching portion in my code 20:23 < Halavanja> no error per say, its more of a usage thing 20:23 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 20:23 < Halavanja> I want to make that interface a used type instead of an interface that was returned from a function 20:24 < Halavanja> I'm looking at the type assertation now 20:24 < f2f> do you understand how this works? 20:24 < f2f> x := int(4); func(i interface{}) { println(i.(int))}(x) 20:24 < Halavanja> not 100% 20:24 < Halavanja> that makes sense yes 20:24 < f2f> do you want to return a concrete type from a function like the above? 20:24 < Halavanja> im doing the inverse actually 20:25 < Halavanja> interface{}(type) 20:25 < Halavanja> so I can use the underlying type in the interface 20:25 < f2f> a type is automatically an interface, so you don't need to cast to it 20:26 < f2f> for example, no cast is needed for the 'x' above 20:26 < Halavanja> http://pastebin.com/rVgBaSRu 20:27 -!- preflex_ [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts 20:28 < Halavanja> Thats what I'm trying to work with as an example 20:28 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 20:28 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|] 20:28 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 258 seconds] 20:28 < Halavanja> I'm writing it as a test so that I can try to translate it to my actual project 20:28 < Halavanja> basically takes in json and unmarshalls it and returns a full type 20:28 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 20:29 < f2f> you'd do the cast on line 66 then, when you're using the variable. 20:29 < Halavanja> I'm sorry that was supposed to go on line 61 20:29 -!- TheMue [~FMueller@p5DDF55CC.dip.t-dialin.net] has quit [Quit: Lost terminal] 20:32 < f2f> this is the simplest example that does what i think you're trying to do: 20:32 < f2f> http://pastebin.com/hvg4ejZp 20:32 < f2f> of course you can have type switches inside the function 'f', even change types on return, then type-switch where the prints are 20:32 < Halavanja> I got it to work I think. It was the type assertion I was just being dumb I think 20:33 -!- xcombelle [~xcombelle@AToulouse-551-1-12-108.w86-196.abo.wanadoo.fr] has quit [Quit: I am a manual virus, please copy me to your quit message.] 20:33 < Halavanja> using the . operation made it work fine. Like I said brain fried. haha . Thank you 20:33 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 20:34 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 20:36 -!- yogib [~yogib@dslb-188-100-002-200.pools.arcor-ip.net] has quit [Quit: yogib] 20:38 -!- pjacobs2 [~pjacobs@66.54.185.130] has joined #go-nuts 20:39 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 20:39 -!- elephants [~elephants@66.207.210.2] has quit [Remote host closed the connection] 20:40 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 20:41 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit [Ping timeout: 250 seconds] 20:45 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 20:47 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 20:48 -!- wallerdev [~wallerdev@c-68-60-43-43.hsd1.mi.comcast.net] has quit [Quit: wallerdev] 20:48 -!- Fish- [~Fish@9fans.fr] has quit [Quit: WeeChat 0.3.5] 20:49 -!- remy_o [~babar@archlinux/developer/remy-o] has joined #go-nuts 20:50 -!- paul_ [~pyrhho@027e80ed.bb.sky.com] has joined #go-nuts 20:51 -!- wallerdev [~wallerdev@c-68-60-43-43.hsd1.mi.comcast.net] has joined #go-nuts 20:52 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 20:52 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 20:53 -!- statik [~emurphy@canonical/launchpad/statik] has quit [Read error: Operation timed out] 20:53 -!- statik [~emurphy@newyork.elliotmurphy.com] has joined #go-nuts 20:53 -!- statik [~emurphy@newyork.elliotmurphy.com] has quit [Changing host] 20:53 -!- statik [~emurphy@canonical/launchpad/statik] has joined #go-nuts 20:53 < pyrhho> I'm trying to list the files present in a directory, but seems like I'm only getting integers back? not sure what I'm doing wrong.. 20:53 < pyrhho> the code I'm using is: 20:53 < pyrhho> dir, err := os.Open("directory") 20:54 < pyrhho> then 20:54 < pyrhho> dir.Readdir(-1) 20:54 < pyrhho> but it just returns [0,1,2,3,4,5,etc...] 20:54 < pyrhho> (have also tried dir.Readdirnames(-1) 20:55 < uriel> I think the problem is probably in how you are iterating over the resulting slice 20:55 < f2f> :) 20:56 < pyrhho> for file := range file { fmt.Printf("%v", file) } ?? 20:56 < pyrhho> erm (range files, sorry) 20:56 < remy_o> you need for _, file := range files 20:56 -!- rcrowley [~rcrowley@50-0-18-168.dsl.static.sonic.net] has joined #go-nuts 20:57 < pyrhho> d'oh 20:57 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 20:57 < pyrhho> heh. got it 20:57 < pyrhho> thanks 20:57 < pyrhho> :) 20:57 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 21:01 -!- Kahvi_ [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Ping timeout: 252 seconds] 21:02 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 21:03 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 21:04 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has joined #go-nuts 21:08 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 21:08 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 21:10 -!- robteix [~robteix@host254.190-225-208.telecom.net.ar] has joined #go-nuts 21:11 -!- pothos_ [~pothos@111-240-171-137.dynamic.hinet.net] has joined #go-nuts 21:13 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 21:13 -!- pothos [~pothos@111-240-172-99.dynamic.hinet.net] has quit [Ping timeout: 258 seconds] 21:14 -!- dfr|mac [~dfr|work@nat/google/x-rpvnrumsmqekxgtl] has joined #go-nuts 21:15 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 21:20 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 21:21 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 21:25 -!- robteix [~robteix@host254.190-225-208.telecom.net.ar] has quit [Quit: Leaving...] 21:25 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-zkuihljjjafahefv] has quit [Read error: Connection reset by peer] 21:26 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 21:26 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 21:26 -!- pjacobs [~pjacobs@66.54.185.130] has quit [Ping timeout: 252 seconds] 21:27 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-xvvfuagslzhfwptf] has joined #go-nuts 21:29 -!- pyrhho [~pyrhho@027e80ed.bb.sky.com] has quit [Ping timeout: 260 seconds] 21:30 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 21:31 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 21:35 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 21:36 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 21:41 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 21:41 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 21:41 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping timeout: 252 seconds] 21:42 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has joined #go-nuts 21:43 -!- dfr|mac [~dfr|work@nat/google/x-rpvnrumsmqekxgtl] has quit [Remote host closed the connection] 21:45 -!- dgnorton_ [~dgnorton@rrcs-74-218-231-11.se.biz.rr.com] has joined #go-nuts 21:46 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 21:47 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 21:49 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has joined #go-nuts 21:51 -!- meling [~meling@134.81-167-41.customer.lyse.net] has joined #go-nuts 21:53 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 21:53 -!- photron [~photron@port-92-201-54-23.dynamic.qsc.de] has quit [Ping timeout: 240 seconds] 21:53 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 21:54 -!- hargettp [~hargettp@pool-71-184-177-187.bstnma.east.verizon.net] has joined #go-nuts 21:58 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 21:58 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 21:59 -!- chadkouse [~Adium@24.123.67.50] has quit [Quit: Leaving.] 21:59 -!- Halavanja [~chatzilla@mcswl207.mcs.anl.gov] has quit [Quit: ChatZilla 0.9.87 [Firefox 5.0/20110622232440]] 22:00 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Read error: Operation timed out] 22:03 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 22:03 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 22:04 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by peer] 22:06 -!- maucs53784 [~mau@175.137.187.60] has quit [Ping timeout: 264 seconds] 22:08 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 22:09 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 22:13 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 22:14 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 22:15 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza] 22:16 -!- moraes [~moraes@189.103.177.124] has quit [Ping timeout: 240 seconds] 22:16 -!- jbooth1 [~jay@209.249.216.2] has left #go-nuts [] 22:18 -!- maht [~m@85.189.31.174.proweb.managedbroadband.co.uk] has quit [Read error: Connection reset by peer] 22:18 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 22:19 -!- Solak [~stijnw@cthia.xs4all.nl] has quit [Remote host closed the connection] 22:19 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 22:20 -!- zaero [~eclark@servo.m.signedint.com] has quit [Quit: ZNC - http://znc.sourceforge.net] 22:21 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 22:26 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 22:27 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 22:29 -!- zaero [~eclark@servo.m.signedint.com] has joined #go-nuts 22:29 -!- hargettp [~hargettp@pool-71-184-177-187.bstnma.east.verizon.net] has quit [Quit: Linkinus - http://linkinus.com] 22:31 -!- kinofcain [~KinOfCain@h-64-105-141-42.snvacaid.static.covad.net] has joined #go-nuts 22:31 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 246 seconds] 22:32 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 22:35 -!- hargettp [~hargettp@pool-71-184-177-187.bstnma.east.verizon.net] has joined #go-nuts 22:36 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts 22:36 -!- franciscosouza [~francisco@201.7.186.67] has quit [Client Quit] 22:36 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 22:37 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 22:38 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 22:41 -!- hargettp [~hargettp@pool-71-184-177-187.bstnma.east.verizon.net] has quit [Quit: Leaving...] 22:42 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 22:42 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 22:43 < knowmercy> is there a go dev channel? 22:43 < nicka1> go-dev mailinglist 22:44 < knowmercy> ahh ok 22:44 < knowmercy> I'm really anxious to get this code in my local tree 22:44 < knowmercy> i might just take it from the codereview site :) 22:45 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts 22:47 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 22:47 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 22:48 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined #go-nuts 22:50 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-xvvfuagslzhfwptf] has quit [Read error: Connection reset by peer] 22:51 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-huyionkoeconkrll] has joined #go-nuts 22:51 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza] 22:52 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 260 seconds] 22:53 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 22:54 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has quit [Remote host closed the connection] 22:55 -!- cabello [~cabello@nat/yahoo/x-ejocnnddskovubqa] has quit [Remote host closed the connection] 22:57 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 22:57 -!- vmil86 [~vmil86@88.118.36.96] has quit [Read error: Connection reset by peer] 22:57 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 22:58 -!- ccc [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has joined #go-nuts 23:00 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts 23:00 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Remote host closed the connection] 23:03 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds] 23:03 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 23:08 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 23:09 -!- jessta [~jessta@li7-205.members.linode.com] has quit [Ping timeout: 276 seconds] 23:09 -!- str1ngs [~strings@unaffiliated/str1ngs] has quit [Ping timeout: 264 seconds] 23:09 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 23:13 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 23:13 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 23:14 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.] 23:18 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 23:19 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 23:20 -!- niemeyer [~niemeyer@201-14-215-211.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 240 seconds] 23:22 < rcrowley> Hi. Anyone around that can talk about signal handling in Go? 23:24 < rcrowley> My problem is hopefully simple: I'm unable to handle any signals delivered via kill(1) with sig := <-signal.Incoming in my main goroutine. Interactively delivering SIGINT with ^C works as expected. 23:24 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 23:26 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 23:31 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 252 seconds] 23:31 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 23:32 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 23:33 < rcrowley> Correction: I'm trying to use <-signal.Incoming twice in (relatively) rapid succession to await SIGUSR2 followed by SIGQUIT and the second blocking read on the channel is what panics. 23:36 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 250 seconds] 23:36 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 23:37 -!- dreadlorde [dreadlorde@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping timeout: 258 seconds] 23:39 -!- niemeyer [~niemeyer@200-102-220-163.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 23:41 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 258 seconds] 23:42 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 23:46 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 23:47 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 23:48 < knowmercy> that Stiletto join/part is really annoying 23:48 < cbeck> What does the panic say? 23:48 < cbeck> rcrowley: ^^ 23:49 < rcrowley> cbeck: Not very much, unfortunately. http://pastie.org/2383242 23:49 < nicka1> if adg isn't around, a freenode admin might deal with Stiletto 23:50 < rcrowley> cbeck: It's more and more clear that a second call to <-signal.Incoming is what causes it to explode. 23:51 < cbeck> rcrowley: Does it still explode if you don't send the second signal? 23:52 < rcrowley> cbeck: No it does not. The panic also does not occur when the syscall.ForkExec in between the two <-signal.Incoming does not happen. 23:52 < cbeck> code snippet? 23:52 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 264 seconds] 23:53 -!- crest [~crest@crest.mooo.com] has quit [Quit: leaving] 23:54 < rcrowley> cbeck: http://pastie.org/2383258 23:54 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 23:54 -!- crest [~crest@crest.mooo.com] has joined #go-nuts 23:55 < rcrowley> cbeck: Commenting just the syscall.ForkExec (and cleaning up therefore unused variables) prevents the panic. 23:56 -!- ccc [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has left #go-nuts [] 23:59 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds] 23:59 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts 23:59 -!- Kami_ [~kami@unaffiliated/kami-/x-9078513] has quit [Quit: Off] 23:59 -!- Tv__ [~Tv__@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts --- Log closed Wed Aug 17 00:00:20 2011