--- Log opened Sat Oct 09 00:00:10 2010 00:00 < kingfishr_> nsf, got it, thanks 00:00 < nsf> http://golang.org/pkg/bufio/#Reader.ReadString 00:00 < nsf> use this one 00:00 < nsf> with '\n' as a delim 00:08 -!- ficoos [~saggi@109-186-93-130.bb.netvision.net.il] has quit [Remote host closed the connection] 00:11 -!- cco3-hampster [~conleyo@nat/google/x-xotijivfpemrzdnu] has quit [Quit: Leaving.] 00:13 < nsf> http://code.google.com/p/go/issues/detail?id=1182 00:13 < nsf> :P 00:13 -!- mumbow [~mumboww@c-98-207-108-218.hsd1.ca.comcast.net] has quit [Quit: mumbow] 00:14 -!- matti_ [~mumboww@c-98-207-108-218.hsd1.ca.comcast.net] has joined #go-nuts 00:21 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has quit [Read error: Connection reset by peer] 00:23 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has joined #go-nuts 00:26 < nsf> btw, shows an importance of having tests for _all_ interface functions 00:26 < plexdev> http://is.gd/fSfOb by [Nigel Tao] in go/src/pkg/exp/draw/x11/ -- exp/draw/x11: support X11 vendors other than "The X.Org Foundation". 00:26 < nsf> http://twitter.com/ID_AA_Carmack/statuses/26792042883 00:26 < nsf> hahaha 00:28 < nsf> id software uses boost now? T_T 00:28 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has quit [Read error: Connection reset by peer] 00:29 < skelterjohn> boost is useful, if you ignore 99% of it 00:30 < nsf> then, it's not useful, because it contains a lot of garbage 00:30 < nsf> good source for ideas though 00:30 < skelterjohn> it's useful, because it has auto_ptr and shared_ptr 00:30 < nsf> most of them tells how one shouldn't write his code 00:30 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has joined #go-nuts 00:31 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has quit [Client Quit] 00:31 < nsf> skelterjohn: tr1 has shared_ptr too 00:31 < skelterjohn> ok 00:31 < nsf> http://en.wikipedia.org/wiki/C%2B%2B_Technical_Report_1#Smart_pointers 00:32 < nsf> and of course C++0x has that too, so.. delete your boost :D 00:33 < skelterjohn> C++0x is an abomination 00:33 < skelterjohn> i don't write C++ code anymore, anyway 00:33 < nsf> good for you 00:33 < nsf> :) 00:37 -!- littlebobby [~bob@85.239.101.203] has quit [Quit: Ex-Chat] 00:37 -!- littlebobby [~bob@85.239.101.203] has joined #go-nuts 00:40 -!- zyrg [~kirill@net089023008035.pskovline.ru] has joined #go-nuts 00:43 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 00:47 -!- mikespook [~mikespook@219.137.255.136] has joined #go-nuts 00:48 < uriel> they should have called them 'smart ass pointers' 00:48 < nsf> :D 00:59 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 01:00 -!- littlebobby [~bob@85.239.101.203] has quit [Changing host] 01:00 -!- littlebobby [~bob@unaffiliated/littlebobby] has joined #go-nuts 01:08 -!- emmanueloga [~emmanuelo@190.244.15.163] has quit [Quit: WeeChat 0.3.3-dev] 01:21 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts 01:25 -!- Bombe [~droden@freenet/developer/Bombe] has quit [Excess Flood] 01:26 -!- Bombe [~droden@weltgehirnmaschine.de] has joined #go-nuts 01:50 -!- kingfishr_ [~kingfishr@38.108.184.253] has quit [Ping timeout: 276 seconds] 01:58 -!- gnuvince [~vince@70.35.165.72] has joined #go-nuts 02:00 -!- jhawk28 [~jhawk28@user-142gfrf.cable.mindspring.com] has joined #go-nuts 02:13 < Tv> this is odd, it seems i'm losing parts of stderr if it gets stressed enough 02:13 < Tv> there's two processes producing output, one is child of the other, they share the same fd 2 02:13 < Tv> i run a loop that prints two entries for every number, and i see output that misses the first print for one of the number, but has the second one 02:25 < Tv> yeah going via less-loaded stdout made it not lose entries 02:25 < Tv> dunno if it's about the two processes sharing stderr, or log.Stderr, or what 02:28 -!- jhawk28 [~jhawk28@user-142gfrf.cable.mindspring.com] has quit [Remote host closed the connection] 02:43 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 03:03 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds] 03:19 -!- synth [~cb@obfuscated.us] has joined #go-nuts 03:20 -!- synth [~cb@obfuscated.us] has quit [Client Quit] 03:24 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined #go-nuts 03:42 -!- mikespook1 [~mikespook@219.137.74.83] has joined #go-nuts 03:42 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: Leaving] 03:42 -!- mikespook [~mikespook@219.137.255.136] has quit [Ping timeout: 252 seconds] 03:44 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 03:47 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 03:47 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Ping timeout: 252 seconds] 03:47 -!- littlebobby [~bob@unaffiliated/littlebobby] has quit [Quit: Ex-Chat] 03:53 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has quit [Ping timeout: 265 seconds] 03:58 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Remote host closed the connection] 04:04 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 264 seconds] 04:18 -!- jcao219 [~Jimmy_Cao@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 04:55 -!- Rugxulo [~chatzilla@adsl-065-013-115-246.sip.mob.bellsouth.net] has joined #go-nuts 05:00 -!- scm [scm@d057034.adsl.hansenet.de] has quit [Ping timeout: 255 seconds] 05:01 < Rugxulo> has Go not been integrated into GCC (yet)? 05:02 -!- scm [scm@d038129.adsl.hansenet.de] has joined #go-nuts 05:12 < enferex> Rugxulo: There is infact gccgo frontend 05:13 < Rugxulo> I know, but didn't the GCC devs say they'd integrate it eventually?? 05:13 < enferex> Ohh you mean mainline? 05:13 < enferex> like in the "next" release? 05:14 < Rugxulo> I thought so, but I could be wrong 05:14 < Rugxulo> at least, I don't see anything obvious in their online SVN trunk 05:15 < enferex> gotcha, yeah i dont think the 4.5 series has go support yet 05:24 < KirkMcDonald> Doesn't the FSF demand that copyright be assigned to them before code is integrated into mainline gcc? 05:25 < Rugxulo> I think so, yes, anything over 20 lines 05:25 < Rugxulo> I mean the gccgo version, obviously ... I *thought* I heard they'd integrate it, maybe I was wrong 05:25 < KirkMcDonald> (This is why gdc isn't in mainline gcc.) 05:25 < Rugxulo> gpc has a worse excuse ... no bugger will fix the backend bugs :-( 05:26 < KirkMcDonald> Well, once upon a time, gdc still had a maintainer and was reasonably up-to-date. 05:26 < Rugxulo> Modula-3 also wasn't integrated for "license and copyright" reasons 05:27 < Rugxulo> sucks, but what can you do? I guess they have a hard enough time with Fortran, Ada, Obj. C/C++, etc. 05:27 < KirkMcDonald> But since much of gdc consists of the dmd front-end (which is owned by Digital Mars), it wasn't integrated. 05:27 < KirkMcDonald> (That is, of code derived from the dmd front-end.) 05:28 < Rugxulo> wait, I think Red Hat's upcoming Fedora will have LDC, right?? 05:28 < KirkMcDonald> I have no idea. 05:33 <+iant> I'm working on getting gccgo integrated into gcc mainline 05:33 <+iant> I hope to have it done before the end of the month 05:33 <+iant> in any case before the 4.6 release 05:34 < Rugxulo> 4.6 probably won't be released soon, will it? leaving stage one, but that's all (I think) 05:34 <+iant> right, probably not until January or so 05:34 < KirkMcDonald> iant: Are you assigning copyright to the FSF? 05:35 <+iant> no, the master copy of the frontend will live on code.google.com and will be copied into the FSF repository 05:35 <+iant> that's the way the classpath library is handled 05:35 < Rugxulo> live on, but does that mean dual licensed? 05:36 <+iant> the frontend proper will be under the BSD style license that the rest of the Go code uses, but of course it is useless unless it is linked with the rest of gcc, so the overall program will be covered by the GPL 05:37 <+iant> I'm doing the licensing this way in the hopes that somebody will be able to use the frontend for other compilers as well 05:37 <+iant> although I need to do more work to separate out the gcc-specific parts 05:37 < Rugxulo> whatever works best 05:53 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping timeout: 240 seconds] 06:01 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts 06:12 < Rugxulo> "24 hours Gregor Richards Changed to GPL" ... heh 06:13 < Rugxulo> good, don't let MS "EEE" your ZEE (or would it be ZEEE?) 06:13 < Rugxulo> dang it, wrong channel (sorry) 06:14 < Rugxulo> bah, they all look the same :-P 06:15 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has joined #go-nuts 06:31 -!- ronnyy [~quassel@p4FF1DBA9.dip.t-dialin.net] has joined #go-nuts 06:38 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts 06:46 -!- ExtraSpice [~XtraSpice@88.118.34.223] has quit [Ping timeout: 240 seconds] 06:47 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Ping timeout: 250 seconds] 06:48 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts 06:55 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Ping timeout: 240 seconds] 06:56 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts 06:59 -!- ronnyy [~quassel@p4FF1DBA9.dip.t-dialin.net] has quit [Remote host closed the connection] 07:01 -!- dionysiac_ [~dionysiac@S01060013102db8c7.cg.shawcable.net] has joined #go-nuts 07:03 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 07:04 -!- dionysiac [~dionysiac@S01060013102db8c7.cg.shawcable.net] has quit [Ping timeout: 255 seconds] 07:06 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Ping timeout: 260 seconds] 07:07 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has joined #go-nuts 07:07 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts 07:07 -!- Rugxulo [~chatzilla@adsl-065-013-115-246.sip.mob.bellsouth.net] has quit [Read error: No route to host] 07:12 -!- mikespook1 [~mikespook@219.137.74.83] has quit [Ping timeout: 265 seconds] 07:17 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has quit [Ping timeout: 240 seconds] 07:20 -!- kingless [~kingless@166.137.12.94] has joined #go-nuts 07:20 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 265 seconds] 07:26 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Ping timeout: 264 seconds] 07:28 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 07:28 -!- mikespook [~mikespook@58.61.204.47] has joined #go-nuts 07:28 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts 07:31 -!- photron [~photron@port-92-201-83-147.dynamic.qsc.de] has joined #go-nuts 07:47 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has quit [Ping timeout: 240 seconds] 07:51 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts 07:54 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has joined #go-nuts 07:55 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 08:23 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 255 seconds] 08:25 -!- lmoura_ [~lauromour@187.59.118.211] has joined #go-nuts 08:28 -!- lmoura [~lauromour@187.59.120.237] has quit [Ping timeout: 252 seconds] 08:34 -!- Bombe [~droden@weltgehirnmaschine.de] has quit [Changing host] 08:34 -!- Bombe [~droden@freenet/developer/Bombe] has joined #go-nuts 08:49 -!- tvw [~tv@e176008254.adsl.alicedsl.de] has joined #go-nuts 08:53 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 08:59 -!- ikaros [~ikaros@188.107.214.200] has joined #go-nuts 09:04 -!- kingless [~kingless@166.137.12.94] has quit [Quit: Colloquy for iPad - http://colloquy.mobi] 09:05 -!- ikaros [~ikaros@188.107.214.200] has quit [Quit: Leave the magic to Houdini] 09:09 -!- ikaros [~ikaros@188.107.214.200] has joined #go-nuts 09:20 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by peer] 09:28 -!- wrtp [~rog@92.17.28.203] has joined #go-nuts 09:38 -!- mikespook [~mikespook@58.61.204.47] has quit [Quit: Leaving.] 10:10 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts 10:13 -!- femtoo [~femto@95-89-197-30-dynip.superkabel.de] has joined #go-nuts 10:18 -!- wjlroe [~will@78-86-14-131.zone2.bethere.co.uk] has joined #go-nuts 10:26 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 11:03 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts 11:09 -!- ikaros [~ikaros@188.107.214.200] has quit [Quit: Leave the magic to Houdini] 11:14 -!- ikaros [~ikaros@188.107.214.200] has joined #go-nuts 11:15 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 11:16 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 11:28 -!- DerHorst [~Horst@e176098181.adsl.alicedsl.de] has joined #go-nuts 11:38 -!- suiside [~suiside@unaffiliated/suiside] has quit [Quit: leaving] 11:40 -!- suiside [~suiside@unaffiliated/suiside] has joined #go-nuts 11:41 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has joined #go-nuts 11:47 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has quit [Quit: Lost terminal] 12:09 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 265 seconds] 12:14 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has quit [Ping timeout: 240 seconds] 12:16 -!- ikaros [~ikaros@188.107.214.200] has quit [Quit: Leave the magic to Houdini] 12:16 -!- unRuhe [~pn@HSI-KBW-078-042-160-233.hsi3.kabel-badenwuerttemberg.de] has joined #go-nuts 12:17 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has quit [Read error: Connection reset by peer] 12:18 < unRuhe> hey i'm new to the language. I want to declare a private type so that i only cant get an instance via my initialisation method. how do declare something private? 12:19 < soul9> start it with a non-capital letter 12:20 < unRuhe> the types name? 12:20 < soul9> ie: type MyGlobalType; type myLocalType; 12:20 < soul9> *afaik yes 12:20 < unRuhe> that sounds very cool 12:20 < unRuhe> I'll ty 12:21 < soul9> same with functions 12:24 < unRuhe> hm i guess it doesn't work 12:24 < unRuhe> i wrote a simple thinlk like this http://pastebin.com/9hd1STh9 12:25 < unRuhe> my type is noncapital lettered so my var ch1 character should be illegal 12:25 < unRuhe> but it compiles wo probs 12:25 -!- tvw [~tv@e176008254.adsl.alicedsl.de] has quit [Ping timeout: 252 seconds] 12:26 < soul9> 1s cleaning my trackball ;) 12:27 < soul9> aah much better 12:27 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 12:27 < soul9> unRuhe: yeah but you can use local types in the same package 12:27 < soul9> they are local to the *package* 12:27 < unRuhe> ohh i get it 12:28 < unRuhe> like packagelocal in java 12:28 < soul9> lol i dunno 12:28 < unRuhe> its like private in general but public within a package 12:28 < soul9> basically you would make a package for your type with all the method declarations, interfaces etc. 12:29 < unRuhe> i get the Idea. still okay 12:29 < unRuhe> i'll hold a talk about go in my uni soon. they all come from java. and i'm trying to do a constructor :D 12:30 < unRuhe> dunno maybe its not that good of an idea to force my java-classoriented thinking onto go 12:31 < unRuhe> but actually i find the language is quite difficult to get into 12:31 < unRuhe> ty u anyway i tink i got it 12:33 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 12:35 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has joined #go-nuts 12:36 -!- DerHorst [~Horst@e176098181.adsl.alicedsl.de] has quit [Remote host closed the connection] 12:40 -!- femtoo [~femto@95-89-197-30-dynip.superkabel.de] has quit [Quit: Leaving] 12:44 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has joined #go-nuts 12:54 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 13:01 -!- unRuhe [~pn@HSI-KBW-078-042-160-233.hsi3.kabel-badenwuerttemberg.de] has quit [Quit: Verlassend] 13:05 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving] 13:06 < exch> refresh my memory.. unsetting a bit flag is done with ^? 13:08 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 13:10 -!- nsf [~nsf@jiss.convex.ru] has quit [Client Quit] 13:11 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 13:11 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts 13:24 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined #go-nuts 13:27 < EthanG> exch: the general operation for unsetting a bit flag is (and(not flagbit)) 13:28 < nsf> yay! Go support was added to ragel 13:29 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 13:32 < EthanG> a binary regexp system. nice 13:32 < nsf> ragel is actually more featureful than just a regexp package 13:33 < nsf> I use it for parsing purposes mainly, instead of lex 13:35 < nsf> hehe, I've tried to port lemon parser generator also 13:35 < nsf> but first attempt wasn't successful 13:35 < nsf> it uses unions and a bit of pointer arithmetic 13:36 < nsf> hopefully I will make it work eventually 13:36 < EthanG> I'll have to try out ragel. A guy I know used binary regexps to make a better cifs implementation recently & I was all, "binary regexps?? Oh... yeah, what a great idea." 13:36 < EthanG> mmm unions :) 13:37 < nsf> well, I'm sure I can emulate unions in that particular case with interface{} 13:37 < EthanG> cool 13:37 < nsf> because union in lemon is used for storing custom types for non-terminals 13:37 < nsf> which is almost always is a pointer anyway 13:38 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it] has joined #go-nuts 13:38 < nsf> like *Stmt or *Expr, or something 13:38 < EthanG> aha 13:39 < EthanG> I've yet to do anything with interfaces. I've only been writing Go for a week, & started by converting some generic procedural code I first wrote in python 13:40 < nsf> hehe, I can say the same about channels and goroutines 13:40 < nsf> I don't really use them a lot 13:40 < EthanG> aha :) 13:40 < nsf> the other problem with lemon, that it uses preprocessor >_< 13:41 < EthanG> my code shoudl really have an interface on it. It's pretty specific to one device's framebuffer, but could be generalised to draw into a window easily 13:41 < EthanG> oh aye >_> 13:41 < nsf> for stuff like '#define ParseFETCH_ARG ARGTYPE %s = pParser->arg;' 13:41 < nsf> have no idea how I can emulate this using Go 13:42 < nsf> well, the idea here is that parser has some sort of a generic user-defined data 13:42 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 13:42 < EthanG> hrm! Well, if go's ?l is anything like Plan 9's ?l (and I think it will be) it will be very good at eliminating unreachable code 13:42 < nsf> it's not a big deal and I guess can be emulated somehow in a different way 13:43 < EthanG> so you can write code in the regular language rather than the preprocessor & it won't bloat the output, at least 13:43 < nsf> yes 13:44 < nsf> anyway, I'll figure out something 13:44 < EthanG> aye 13:58 -!- peterdn [~peterdn@dhcp-110-228.new.ox.ac.uk] has quit [Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.2/20100222071121]] 14:03 -!- femtoo [~femto@95-89-197-30-dynip.superkabel.de] has joined #go-nuts 14:16 -!- DerHorst [~Horst@e176098181.adsl.alicedsl.de] has joined #go-nuts 14:16 < EthanG> exch: found the bit clear op. it's &^ 14:16 < EthanG> exch: bitwise ops are under arithmetic operators in the language ref, for soem reason 14:17 < exch> EthanG: yea I found it earlier 14:17 < exch> val &^= SomeFlag 14:17 < EthanG> ahuh 14:17 < soul9> anyone know how one would dynamically load a "plugin"? 14:17 < EthanG> huh, there's no not. still, xor 0xFFFFFFFFFFFFFFFFFF would do 14:18 < exch> soul9: what exactly do you mean by 'plugin'? There's several ways of doing that, except for dynamic linking 14:19 < soul9> no, no need for very special stuff 14:19 < exch> A plugin as a script, run by a VM in your app. Or a plugin as a independant process, 'loaded' through IPC 14:19 < soul9> just something like read a list from a config file and load libraries accordingly.. 14:19 < exch> the latter would be my choice 14:19 < soul9> ah maybe that 14:19 < soul9> do you know of an example i could look at? 14:20 < exch> mm not that I can think of 14:20 < exch> I'm not sure how netchan's state is, but that would be a good place to start looking 14:21 < soul9> so basically it would mean starting an other process and communicating through an ipc channel? 14:21 < soul9> mmm sounds complicated :P 14:21 < exch> it's easier than it sounds 14:21 < soul9> hehe, i see 14:22 < exch> Also safer imho. if the 'plugin' decides to do something naughty and crashes, your main app will not be affected 14:22 < exch> except of course that the plugin has to be restarted 14:23 < exch> It has the added benefit that you can write the plugin in whatever language you want. All it needs to do is talk the protocol you designed for your app through a TCP/unix socket 14:25 < soul9> yeah, i see 14:28 < exch> If you don't expect large sets of data to be passed to/from a plugin, you can even switch to UDP instead of TCP. It's faster. By 'large' I mean a dataset that will not fit in a single UDP packet (usually around 1400 bytes minus the UDP header). You can add packet fragmentation support ontop, to send larger datasets, but that has to be done manually, since udp doesn't support it by default. 14:29 < soul9> gah 14:29 < soul9> yeah, implementing a whole protocol etc..grmbl 14:29 < exch> lol. Sorry if I ruined it for you ;) Probably best to stick with TCP then. it's simple and does all the household stuff for you 14:29 < soul9> i guess json could work fine 14:30 < exch> You have to design the API regardles of how you implement plugins. If you import a library into your proces, it has to adhere to some plugin API anyway. All that's different now is that the API is communicated over a socket instead of direct function calls 14:31 < soul9> yeah i guess 14:31 < soul9> so I can marshal go functions in json aswell right? 14:31 < taruti> no 14:32 < soul9> ah, yeah, i need to use rpc 14:32 < soul9> ok thanks for the help guys 14:32 -!- zyrg [~kirill@net089023008035.pskovline.ru] has quit [Remote host closed the connection] 14:34 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 14:44 -!- ronnyy [~quassel@p4FF1DBA9.dip.t-dialin.net] has joined #go-nuts 14:44 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving] 14:54 -!- ikaros [~ikaros@188.107.214.200] has joined #go-nuts 14:57 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 265 seconds] 14:57 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has joined #go-nuts 15:18 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined #go-nuts 15:19 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 15:19 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit [Client Quit] 15:22 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined #go-nuts 15:25 -!- strtok [~strtok@thales.strtok.net] has joined #go-nuts 15:29 < strtok> http://pastebin.com/7xtaK9cK Most simplest error ever. Did I do somethng wrong? 15:30 < exch> That should work. It runs fine in the go playground 15:31 < exch> Although I'm not sure why you wrote 'import fmt "fmt"' 15:31 < exch> 'import "fmt"' will already expose the fmt 'namespace' 15:31 < strtok> one of the docs had that 15:31 < strtok> i've tried both 15:31 < exch> possibly as an example of how to alias an import name 15:32 < strtok> no, it was one of the hello world examples 15:32 < strtok> from http://golang.org/doc/go_tutorial.html 15:33 < exch> hah, that seems a bit odd 15:33 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds] 15:33 < strtok> but another example doesn't do it that way 15:33 < exch> It's valid code, just not necessary 15:33 < strtok> anyway 15:33 < strtok> i think my implementation is broken :P 15:34 < exch> You use that approach if you want a different name for an import. like 'import foo "fmt"' ... foo.Printf() 15:35 < wrtp> strtok: it works fine for me 15:36 < exch> Either way, it should run fine. Do you have the latest Go release? Using the approach for installaiton on the website gives you an outdated version. try running 'hg pull; hg update release' after the Go install 15:37 < skelterjohn> "hello weeners"? that's a new one 15:37 < skelterjohn> fark reference? 15:39 < strtok> exch: i have the very latest 15:39 < strtok> oh 15:39 < strtok> exch: i'll try that 15:39 < strtok> i thought the install directions from the site would pull from the release head 15:39 < exch> yes, that would be handy 15:40 < exch> Perhaps it's time that was mentioned in the docs :p 15:40 < strtok> exch: it says updated 0 files 15:40 < strtok> when i do the hg update release 15:40 < exch> hmm 15:41 < strtok> but hg update did say: added 47 changesets with 107 changes to 86 files 15:41 < exch> try rebuilding Go now (src/clean.bash; src/all.bash) 15:42 < strtok> okay 15:45 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has joined #go-nuts 15:47 < strtok> strangely, same problem 15:47 < exch> O.o 15:47 < exch> is your code file encoded as something other than UTF8 by chance? 15:47 < exch> cos that would be the last thing I can think of 15:50 < KirkMcDonald> Since it's all ASCII, it'd have to be something like UTF-16, wouldn't it? 15:50 < KirkMcDonald> And if that were the case, it wouldn't get all the way to line 5 before failing. 15:50 < exch> true 15:59 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has quit [Quit: Leaving.] 16:04 -!- DerHorst [~Horst@e176098181.adsl.alicedsl.de] has quit [Remote host closed the connection] 16:04 < Tv> soul9: btw i have code that uses the rpc / netchan packages to do rpc / channel-based communication with a child process, if you're interested ;) 16:11 -!- ronnyy [~quassel@p4FF1DBA9.dip.t-dialin.net] has quit [Remote host closed the connection] 16:11 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 16:12 < soul9> Tv: sure thing; where? 16:12 < Tv> soul9: the childrpc thing is pretty simple, i can get that on github soonish; the netchan version required hacking go itself 16:14 < soul9> ugg no way :) 16:14 < soul9> i mean i don't want to have to hack go. 16:15 < Tv> well then you can't do netchan over anything not tcp ;) 16:15 < Tv> the rpc thing is still easy, hold on (i just woke up, give me a few minutes ;) 16:15 < soul9> sure, i'll wait 16:16 < soul9> highlight me 16:16 < soul9> Tv: ↑ ;) 16:20 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit: Leaving.] 16:35 -!- Project_2501 [~Marvin@82.84.69.17] has joined #go-nuts 16:45 -!- jcao219_ [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 16:45 -!- jcao219_ [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit [Remote host closed the connection] 16:46 -!- atsampso1 [~ats@94-194-126-16.zone8.bethere.co.uk] has quit [Quit: Reconnecting] 16:46 -!- atsampson [~ats@94-194-126-16.zone8.bethere.co.uk] has joined #go-nuts 16:48 -!- eikenberry [~jae@ivanova.zhar.net] has quit [Ping timeout: 265 seconds] 16:49 < soul9> whoa weird errors when there is no new line at the end of a source file 16:53 < Tv> soul9: i recall a recent commit talking about semicolons and EOF 16:56 < nsf> ugh.. fighting with C type system (porting C code to Go) 16:56 < nsf> I'm starting to think that truly type-safety is only possible without implicit type conversions 16:56 < soul9> Tv: dunno...i have latest hg 16:56 < nsf> otherwise it's simply a mess 16:57 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it] has quit [Quit: ucasano] 17:01 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts 17:02 < Tv> soul9: http://github.com/tv42/childrpc http://github.com/tv42/moreio 17:03 -!- jgh- [~jgh-@66.207.212.26] has joined #go-nuts 17:06 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has quit [Quit: WeeChat 0.3.3-dev] 17:06 < nsf> yay! 17:06 < nsf> compiled lemon-generated go parser 17:06 < nsf> let's hope it works 17:07 < nsf> (of course it isn't) 17:07 < nsf> :D 17:13 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 245 seconds] 17:13 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts 17:18 < nsf> [nsf @ golemon]$ ./test 17:18 < nsf> Result=15 17:18 < nsf> yay! 17:18 < nsf> simple calculator example grammar works 17:19 -!- jcao219 [~Jimmy_Cao@pool-173-74-61-111.dllstx.fios.verizon.net] has left #go-nuts [] 17:19 < nsf> quite an achievement, worth uploading to the github 17:26 < nsf> if anyone is interested: http://github.com/nsf/golemon 17:26 < nsf> early alpha version 17:27 < nsf> I'll do more testing of course 17:28 -!- lmoura_ [~lauromour@187.59.118.211] has quit [Ping timeout: 260 seconds] 17:28 < nsf> it's a port of this: http://www.hwaci.com/sw/lemon/ to Go 17:28 -!- lmoura__ [~lauromour@187.59.246.48] has joined #go-nuts 17:29 < nsf> there are also open questions like: do I need to keep 'destructors'? In C it is useful, but in a garbage collected language probably a useless feature 17:32 < nsf> hehe, golemon sounds like go-lemon or golem-on :) funny 17:32 < Tv> i read it as golemn 17:32 < exch> shmieegoool 17:32 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 17:33 < nsf> or that, yeah 17:33 < nsf> :) 17:36 -!- idr [~idr@g225100221.adsl.alicedsl.de] has joined #go-nuts 17:38 -!- brtsz [1e735a0c5b@build.sh] has joined #go-nuts 17:41 -!- zyrg [~kirill@net089023018001.pskovline.ru] has joined #go-nuts 17:46 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 18:18 -!- ikaros [~ikaros@188.107.214.200] has quit [Quit: Leave the magic to Houdini] 18:20 < brtsz> hey guys! when running the following code http://gist.github.com/618425 i get "read udp 127.0.0.1:7777: address family not supported by protocol family" error. any idea what's going on? 18:23 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds] 18:26 < exch> odd. ListenPacket should do UDP just fine 18:26 < Rennex> if it needs to be "UDP" not "udp"? :P 18:27 < brtsz> according to net/udpsock.go it should be udp 18:27 < brtsz> also it errors after ListenPacket (where net param correctness is checked) 18:29 < exch> 'udp' works fine for the other Dial() and Listen() functions 18:30 < brtsz> looking at net/ipsock.go/internetSocket it seems all is fine and family should be set to AF_INET 18:31 < exch> I just tried it in my own UDP stuff. It uses both DialUDP() and ListenUDP(). Used the same address as you did and it worked 18:31 < exch> There's something wrong with ListenPacket() itself then I guess 18:32 < brtsz> hm, i'll rewrite it to use ListenUDP() 18:32 < brtsz> btw, what OS and Go version are you running? 18:33 -!- idr [~idr@g225100221.adsl.alicedsl.de] has quit [Remote host closed the connection] 18:33 < exch> 64 bit Linux - af516a30435b tip 18:35 < brtsz> hm, gonna test it on linux first (i'm running osx) 18:42 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 18:42 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Quit: hmmm] 18:47 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts 18:58 -!- lmoura__ [~lauromour@187.59.246.48] has quit [Ping timeout: 245 seconds] 18:58 -!- lmoura__ [~lauromour@187.58.99.225] has joined #go-nuts 18:59 < Tv> 2010/10/09 12:02:39 Starting server on port: 127.0.0.1:7777 18:59 < Tv> 2010/10/09 12:02:40 Ooops! 18:59 < Tv> read udp 127.0.0.1:7777: resource temporarily unavailable 18:59 < Tv> that's on linux 19:00 < Tv> which seems to be the desired behavior 19:00 < exch> why? it works fine here 19:00 < Tv> that looks like the timeout in the code triggering 19:00 < exch> it's possible. If SetTimeout() has been set, that is the error youll get 19:01 < Tv> server.SetReadTimeout(1e9) 19:01 < Tv> i'm brtsz's code 19:01 < Tv> s/i'm/in/ 19:01 < brtsz> you are getting a different error probably (EAGAIN), while i'm getting EAFNOSUPPORT 19:01 < exch> ah I didn't notice that >< Was reading it from a shell terminal. 19:01 < exch> eg: code intermixed with tons of HTML :p 19:02 < brtsz> i'm building go on my linux box and will test it there too 19:02 < Tv> brtsz: i think i'm seeing exactly what your code is expected to do 19:02 < Tv> there was no activity for a second, then it timed out 19:02 < brtsz> Tv: yep 19:03 < brtsz> so if the code is most likely ok, the problem lies in either osx or my go version (latest release) 19:09 < strtok> do channels had unique IDs? 19:09 < strtok> like thread names 19:09 < strtok> (useful for debugging) 19:09 < brtsz> on my linux with go "release.2010-09-29" works fine too. going to upgrade to tip and check on osx again 19:13 < Tv> strtok: if you print out the channel, the print includes what looks like a pointer 19:14 < Tv> strtok: i do not know if those are really stable across gc runs etc 19:14 < strtok> err 19:14 < strtok> sorry, i meant goroutines 19:14 < Tv> strtok: hah. 19:14 < strtok> sorry! 19:15 < Tv> strtok: i don't think there's any way to refer to them, is there? from inside the goroutine, you might try something in package runtime 19:15 < strtok> i mean, i could pass each goroutine an "id" 19:15 < soul9> anyone know how i would match ($foo) with regexp? seems like "\(\$.+\)" doesn't work..: unknown escape sequence: ( 19:16 < exch> soul9: if you use regex escapes, put the pattern in `` instead of "" 19:17 < soul9> ooooo 19:17 < soul9> thanks 19:18 -!- melba [~melba@unaffiliated/lazz0] has joined #go-nuts 19:18 < soul9> what the hell is ``?? 19:18 < cbeck> Uninterpreted string 19:18 < Tv> like r"" in python 19:18 < cbeck> so things like \n etc will produce the literal chars '\' 'n' rather than a newline, for instance 19:21 < soul9> aaa i see 19:21 < soul9> cool 19:23 < fuzzybyte> How can I change the datetime format when I have USE_L10N set to False and do not want to explicitly use date filter to force my preferred format? I tried setting DATE_FORMAT,TIME_FORMAT,DATETIME_FORMAT, etc. but none of them had any effect 19:24 < fuzzybyte> the problem is I always get datetimes like "2010-10-09 20:25:14.146851" unless I put USE_L10N on or format them with date filter 19:24 -!- b00m_chef [~watr@66.183.100.197] has joined #go-nuts 19:24 < fuzzybyte> oh wrong channel 19:24 < fuzzybyte> im a dumbass 19:49 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 19:49 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 19:49 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 19:51 -!- meanburrito920 [~john@192.5.109.49] has joined #go-nuts 19:51 -!- meanburrito920 [~john@192.5.109.49] has quit [Changing host] 19:51 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts 19:57 -!- jgh-_ [~jgh-@66.207.212.26] has joined #go-nuts 19:57 -!- sacho [~sacho@82.137.66.134] has quit [Ping timeout: 265 seconds] 19:57 -!- jgh-_ [~jgh-@66.207.212.26] has quit [Client Quit] 19:58 -!- jgh- [~jgh-@66.207.212.26] has quit [Read error: Operation timed out] 20:03 -!- b00m_chef [~watr@66.183.100.197] has quit [Ping timeout: 245 seconds] 20:04 -!- sacho [~sacho@79-100-62-115.btc-net.bg] has joined #go-nuts 20:05 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 245 seconds] 20:07 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined #go-nuts 20:10 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts 20:18 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 20:19 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 20:25 -!- femtoo [~femto@95-89-197-30-dynip.superkabel.de] has quit [Quit: Leaving] 20:38 -!- zyrg [~kirill@net089023018001.pskovline.ru] has quit [Quit: Leaving] 20:43 < strtok> the net pkg functions seem to return os.Error for use when there's an error, but the only function in Error's interface seems to be String(). How can you do something like foo,err = someCall() if(err)... ? 20:44 -!- lmoura__ [~lauromour@187.58.99.225] has quit [Read error: Connection reset by peer] 20:46 < exch> if err != nil { ... 20:47 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Quit: leaving] 20:48 < strtok> ahhh 20:50 < strtok> thanks exch 20:51 -!- lmoura__ [~lauromour@187.113.107.232] has joined #go-nuts 20:53 < exch> strtok: You can combine that with the function call for a little more compactness: if foo, err = Func(); err != nil { ... } 20:53 < exch> Same thing, but looks a little better imho. That's a matter of taste though, I suppose 20:54 < strtok> exch: yeah, i saw examples of things like that for "ok" 20:54 < exch> yup 20:55 < strtok> i'd much rather it used exceptions 20:55 < exch> I'm glad we don't :p 20:58 < exch> strtok: If you absolutely must, you can simulate them using defer/recover() 20:59 < exch> http://pastebin.com/kWe1PMxi 20:59 < exch> like so 20:59 < mpl> multi value return to deal with errors is one of my favorite features of go :) 21:03 < exch> The defer'd call can modify return values to. Which is kinda handy to ensure a return value meets specific comditions. Like so http://pastebin.com/jiuurGJe 21:04 -!- Project_2501 [~Marvin@82.84.69.17] has quit [Quit: E se abbasso questa leva che succ...] 21:04 -!- b00m_chef [~watr@66.183.100.197] has joined #go-nuts 21:05 < strtok> exch: it's less important to me because of garbage collection 21:05 < strtok> i'm a C++ developer by day 21:06 < exch> my condolences :p 21:08 < strtok> well, there aren't really many choices 21:08 < strtok> it's that or C 21:12 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Remote host closed the connection] 21:16 -!- mikeg [~michael@ip68-110-226-15.dc.dc.cox.net] has quit [Read error: Connection reset by peer] 21:19 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten. Desu~] 21:20 -!- synth [~cb@obfuscated.us] has joined #go-nuts 21:25 -!- mikeg [~michael@ip68-110-226-15.dc.dc.cox.net] has joined #go-nuts 21:38 -!- sacho [~sacho@79-100-62-115.btc-net.bg] has quit [Ping timeout: 264 seconds] 21:49 -!- jdpo [~joe@66-169-176-49.dhcp.ftwo.tx.charter.com] has joined #go-nuts 21:55 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined #go-nuts 21:55 < pingveno> Is it difficult to write a wrapper of a C library that uses function pointers? 21:55 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 21:55 -!- bookses [~John@222.55.48.100] has joined #go-nuts 21:56 < pingveno> I'm looking at using Go + libflac, but I don't want to spend too much time writing a wrapper. 22:00 -!- falconindy [~noclaf@unaffiliated/falconindy] has quit [Quit: leaving] 22:00 -!- falconindy [~noclaf@ool-18bba97a.dyn.optonline.net] has joined #go-nuts 22:00 -!- falconindy [~noclaf@ool-18bba97a.dyn.optonline.net] has quit [Changing host] 22:00 -!- falconindy [~noclaf@unaffiliated/falconindy] has joined #go-nuts 22:06 -!- b00m_chef [~watr@66.183.100.197] has quit [Ping timeout: 272 seconds] 22:07 -!- lmoura_ [~lauromour@187.112.28.3] has joined #go-nuts 22:09 -!- lmoura__ [~lauromour@187.113.107.232] has quit [Ping timeout: 250 seconds] 22:16 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by peer] 22:18 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the connection] 22:27 -!- photron [~photron@port-92-201-83-147.dynamic.qsc.de] has quit [Ping timeout: 240 seconds] 22:40 -!- jdpo|away [~joe@66-169-176-49.dhcp.ftwo.tx.charter.com] has quit [Remote host closed the connection] 22:45 < nsf> looks like no one wants slices, everyone wants a vector 22:46 * exch never used vectors 22:46 < nsf> why? push_back rocks :D 22:47 < nsf> I'm just reading ML 22:47 < cbeck> Echoing pingveno, does anyone have an example of using callbacks in cgo code? 22:47 < nsf> people are asking for: x := []int{1,2,3} + []int{4,5,6} 22:48 < nsf> which means they are ok if '+' will do the alloc behind the scenes 22:48 < nsf> it does in strings case 22:48 < cbeck> Do not want 22:48 < nsf> and.. string's binary '+' has special optimization in the compiler 22:49 < nsf> s := "1" + "2" + "3" will do only one alloc 22:49 < nsf> frankly I don't quite uinm 22:49 < nsf> understand that too 22:49 < nsf> map -> grows behind the scenes, it's ok 22:49 < nsf> strings -> overloaded operators are ok 22:50 < nsf> slices -> sorry, but no 22:50 < nsf> :D 22:50 < nsf> why can't we just have a vector 22:50 < nsf> yeah, think about that, I'm going to bed :D sweet dreams 22:50 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3] 22:54 < strtok> there's documentation on how to format a Makefile for making gopackages. Is there a standard for makefiles for just a program? 22:56 < exch> strtok: the last include at the bottom should have the 'pkg' extension instead of 'cmd' 22:56 < strtok> ahh 22:56 < strtok> i wanted .cmd 22:56 < strtok> that works now, thanks 22:56 < strtok> all of the docs reference .pkg 22:57 -!- bookses [~John@222.55.48.100] has left #go-nuts [] 23:00 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Read error: Operation timed out] 23:02 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined #go-nuts 23:04 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection reset by peer] 23:06 -!- artefon [~thiago@187.114.9.57] has joined #go-nuts 23:07 -!- artefon [~thiago@187.114.9.57] has quit [Read error: Connection reset by peer] 23:07 -!- artefon [~thiago@187.114.9.57] has joined #go-nuts 23:07 -!- artefon [~thiago@187.114.9.57] has quit [Remote host closed the connection] 23:14 < cbeck> iant: Do you know if the state of callbacks is still that outlined in http://groups.google.com/group/golang-nuts/browse_thread/thread/d1824928719244c6/c98b4c63ba739240?#c98b4c63ba739240 ? 23:18 < cbeck> Sorry, much clearer explanation: http://cheesesun.blogspot.com/2010/04/callbacks-in-cgo.html 23:20 < cbeck> Also, I'm not sure how (if at all) SWIG might help us here 23:22 < cbeck> Except that it would very likely automate much/most of the library wrapping tedium 23:23 < exch> It should do all that tedium for you 23:24 < cbeck> Derp, all that was meant for the project channel 23:30 * pingveno needs to not ask questions and then walk off to do something else... 23:31 < cbeck> Eh, it's the IRC way 23:55 < strtok> http://pastebin.com/wVmL1XAY 23:55 < strtok> the for line is causing a warning 23:56 < exch> you can't use that sort of construct in a for {} expression unfortunately 23:56 < strtok> awww 23:56 < strtok> i had an if inside the for with a break 23:57 < exch> that should work 23:57 < cbeck> Wouldn't http://pastebin.com/yf61KJFq work? 23:58 < exch> that should work 23:59 < exch> bit ugly though :p 23:59 < strtok> yeah, that's worse 23:59 < exch> I'd go with the if statement in the loop --- Log closed Sun Oct 10 00:00:10 2010