--- Log opened Sun Jul 25 00:00:05 2010 00:05 -!- photron [~photron@port-92-201-118-4.dynamic.qsc.de] has quit [Ping timeout: 260 seconds] 00:08 -!- gnuvince [~vince@70.35.163.73] has quit [Ping timeout: 260 seconds] 00:08 -!- gnuvince [~vince@70.35.169.156] has joined #go-nuts 00:10 -!- emmanueloga [~emmanuelo@190.247.41.202] has quit [Ping timeout: 248 seconds] 00:15 < akrill> am i correct in assuming you can use -> and <- with anything that defines a Send/Recv interface? 00:16 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has quit [Quit: Leaving.] 00:17 < exch> not as far as I know. Never seen anything to that effect, but I may have missed something 00:20 < akrill> -tests this- 00:20 -!- bytbox [~chatzilla@ACA2B962.ipt.aol.com] has joined #go-nuts 00:21 < exch> Lemme know how that works out 00:21 < akrill> will do 00:24 < bytbox> I'm having a problem with godoc - although it displays the package comment for my package on the package page itself, it does not display it on the page with the list of packages. I've noticed a similar phenomenon with official go packages, like exp.4s. Anyone know why this is? 00:25 < akrill> exch: ya, doesnt work :-/ too bad, eh? 00:25 < DavidJones> wait, what? 00:25 < exch> mm yea shame. 00:26 < DavidJones> I would like to see that Send/Recv interface you were talking about... 00:26 < DavidJones> There is no operator overloading 00:26 < DavidJones> but you probably could do type MyType chan bool 00:26 < akrill> hmm... 00:27 < exch> Is it possible those interfaces implement a function that returns a channel? Cos that would enable the use of <- and -> 00:27 < DavidJones> AND I think I have to go to bed now because my mind feels like a huge 4-dimensional pool of crushed ice. 00:27 < exch> gn 00:27 < DavidJones> so sleep tight, pals. 00:27 < akrill> night! 00:27 -!- DavidJones [~DavidJone@dslb-084-056-105-078.pools.arcor-ip.net] has quit [Quit: Konversation terminated!] 00:30 -!- gnuvince [~vince@70.35.169.156] has quit [Ping timeout: 258 seconds] 00:30 < akrill> in order for synchronous communication to happen between exporter and importer the importer would need to signal the exporter when its ready to receive 00:31 -!- gnuvince [~vince@70.35.164.154] has joined #go-nuts 00:31 * akrill ponders 00:32 < exch> Doing it over the same channel would pose a problem I assume.. The only other solution i see is to open a second synchronization channel specifically intended to pass state 'messages' across 00:32 < akrill> you could do it over the same channel easily actually 00:33 < exch> That would certainly be preferable 00:46 -!- GeoBSD [~geobsd@lns-bzn-28-82-250-156-84.adsl.proxad.net] has quit [Quit: Lost terminal] 01:03 -!- xuwen [~xuwen@adsl-75-61-119-20.dsl.pltn13.sbcglobal.net] has joined #go-nuts 01:07 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 01:08 -!- skelterjohn [~jasmuth@wsip-70-167-73-39.sd.sd.cox.net] has joined #go-nuts 01:11 -!- bmizerany [~bmizerany@208.66.27.62] has quit [Remote host closed the connection] 01:14 -!- cogwheel_ [~cogwheel@99-33-83-160.lightspeed.plalca.sbcglobal.net] has joined #go-nuts 01:14 -!- jesusaur [jesusaur@firefly.cat.pdx.edu] has joined #go-nuts 01:14 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 01:14 < bytbox> Issue filed for that (don't have time to hack at godoc): http://code.google.com/p/go/issues/detail?id=953 01:15 -!- cogwheel [~cogwheel@WoWUIDev/WoWProgramming/morlando/cogwheel] has quit [Disconnected by services] 01:16 -!- cogwheel_ [~cogwheel@99-33-83-160.lightspeed.plalca.sbcglobal.net] has left #go-nuts [] 01:17 < akrill> wow. can you believe that making netchan synchronous only took 4 lines of code? 01:17 < exch> :p not bad 01:23 < akrill> now for bidirectional comms 01:23 < akrill> which will be much more difficult 01:23 < akrill> as it will most probably involve some locks 01:23 < akrill> dont want 2 threads writing to the same socket at once and all that 01:29 -!- Bombe [~droden@freenet/developer/Bombe] has quit [Excess Flood] 01:30 -!- Bombe [~droden@weltgehirnmaschine.de] has joined #go-nuts 01:38 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts 01:38 -!- mode/#go-nuts [+v iant] by ChanServ 01:47 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has joined #go-nuts 01:47 -!- SRabbelier1 [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has quit [Ping timeout: 265 seconds] 02:11 -!- skelterjohn [~jasmuth@wsip-70-167-73-39.sd.sd.cox.net] has quit [Ping timeout: 260 seconds] 02:21 -!- lagagnon [~larry@207.200.142.55] has joined #go-nuts 02:22 -!- skelterjohn [~jasmuth@wsip-70-167-73-39.sd.sd.cox.net] has joined #go-nuts 02:27 < plexdev> http://is.gd/dFkhZ by [Vinu Rajashekhar] in go/src/pkg/runtime/ -- runtime/extern.go: clear a small error in a comment. 02:28 -!- tensorpudding [~user@99.32.59.169] has quit [Remote host closed the connection] 02:29 -!- tensorpudding [~user@99.32.59.169] has joined #go-nuts 02:46 < araujo> []byte(string) ... such a conversion is valid? 02:46 < exch> yes 02:46 < araujo> hi there exch , thanks :) 02:47 < exch> so is []int("foo") It gives the unicode runes instead of bytes 02:47 < araujo> ooh nice to know 02:47 < araujo> makes sense 02:48 -!- gavintong [71fe95c5@gateway/web/freenode/ip.113.254.149.197] has joined #go-nuts 02:50 -!- skelterjohn [~jasmuth@wsip-70-167-73-39.sd.sd.cox.net] has quit [Ping timeout: 240 seconds] 02:51 -!- dbs [~dbs@pdpc/supporter/active/dbs] has joined #go-nuts 02:51 < dbs> Hrm. Is it normal for http://godashboard.appspot.com/package to be "over its serving quota"? 02:52 < Tonnerre> I'm afraid so 02:52 < exch> that's been the case for a few days 02:53 -!- akrill [~akrill@2002:3fe0:299d:0:fa1e:dfff:fed8:efa3] has quit [Quit: akrill] 02:54 < dbs> Alas. Makes it hard to find out if someone else has scratched my itch already :) 02:55 < Tonnerre> I'm afraid the answer is something like «Try again in August» 02:55 < Tonnerre> «That failing, try September» 02:55 < exch> http://go-lang.cat-v.org/ may list a few 'scratches' :) 02:56 < dbs> exch: thanks :) 02:58 -!- gavintong [71fe95c5@gateway/web/freenode/ip.113.254.149.197] has quit [Ping timeout: 252 seconds] 02:58 < dbs> Tonnerre: Maybe somebody who knows somebody at Google could get that quota increased, eh? 03:00 -!- nomoreanymore_ [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 03:00 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Read error: Connection reset by peer] 03:00 < Tonnerre> dbs, depends if that person is also the one who set up the dashboard 03:00 -!- Xiaobo [~Xiaobo@114.243.78.128] has joined #go-nuts 03:00 < bytbox> they claim to be working on it 03:00 < Tonnerre> (Or so I guess) 03:00 < bytbox> (more specifically, Andrew Gerrand does) 03:01 < bytbox> dbs: check the lists on cat-v.org - they're generally the same (curiosity: which itch?) 03:02 < dbs> bytbox: right, was cruising through the lists thanks to exch. two itches: 1) an XMPP client; 2) a MARC parsing/editing library 03:03 -!- nomoreanymore_ [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Client Quit] 03:03 -!- skelterjohn [~jasmuth@wsip-70-167-73-39.sd.sd.cox.net] has joined #go-nuts 03:04 < bytbox> dbs: interesting (but not itchy :-) 03:04 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds] 03:19 -!- bytbox [~chatzilla@ACA2B962.ipt.aol.com] has quit [Ping timeout: 246 seconds] 03:25 -!- lagagnon [~larry@207.200.142.55] has quit [Ping timeout: 276 seconds] 03:33 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 03:35 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Remote host closed the connection] 03:35 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 03:36 -!- Xiaobo [~Xiaobo@114.243.78.128] has quit [Ping timeout: 260 seconds] 03:38 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Remote host closed the connection] 03:39 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 03:40 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Client Quit] 03:41 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 03:41 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Remote host closed the connection] 03:42 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 03:43 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Client Quit] 03:43 -!- forgey [brook@seahawk.ript.net] has joined #go-nuts 03:43 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 03:46 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Client Quit] 03:46 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 03:47 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Remote host closed the connection] 03:53 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 03:53 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Client Quit] 03:53 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 03:54 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Client Quit] 03:55 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 03:55 -!- nomoreanymore [~nomoreany@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Client Quit] 04:01 -!- nomono [~t0mislav@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 04:01 -!- mxweas [~max@c-98-225-102-170.hsd1.az.comcast.net] has quit [Quit: mxweas] 04:02 -!- nomono [~t0mislav@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Client Quit] 04:12 -!- akrill [~akrill@sea-igw.krillr.com] has joined #go-nuts 04:12 < akrill> how on earth can i capture keyboard input 04:17 -!- nomono [~nomono@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 04:24 < dbs> akrill: os.Stdin and bufio.NewReader() methinks 04:24 < akrill> ah, interesting 04:25 < exch> akrill: http://groups.google.com/group/golang-nuts/browse_thread/thread/16252095ecaa202b/33a22c6390e22626?show_docid=33a22c6390e22626&pli=1 04:30 < akrill> ok, hmm.. 04:30 < akrill> now the next question is, how do i try to grab something from a channel but not block. 04:31 < exch> if value, ok := <-mychan; ok { yay(value) } else { ohnoes() } 04:32 < akrill> ah, nify! 04:32 < exch> or you can check for len(mychan) > 0 04:32 < exch> I think the first is a little more idiomatic though 04:33 < akrill> hmm, interesting, says "hammer.go:86: assignment count mismatch: 2 = 1" 04:33 -!- babusri [~Babu@122.166.153.58] has joined #go-nuts 04:33 < akrill> oh duh 04:33 < akrill> typo 04:34 < akrill> sweet. 04:36 * akrill is writing a high-concurrency distributed http load simulation system in go 04:38 < araujo> playing a bit with the ebnf package guys .... trying to figure how to use it .. any idea what are the arguments for ebnf.Parse ?? 04:39 < araujo> filename = ebnf file , []byte the expression to evaluate ?? 04:42 < akrill> how can i make my go app wait for all of its goroutines to finish before quitting? 04:43 < akrill> im guessing there's no real way to without a channel or something 04:43 < vrtical> akrill: I think you have to do it manually (read from a channel from each routine) 04:43 < akrill> :-( 04:43 < vrtical> Could be wrong, that is what I was told but I'm new to this. 04:45 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping timeout: 260 seconds] 04:45 * araujo can't think of other way but manually too 04:47 < akrill> hmm 04:47 < akrill> if i object-orient this 04:47 < akrill> i could probably use shared state 04:47 < akrill> just increment an integer 04:47 < akrill> but meh 04:51 -!- nomono [~nomono@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Quit: nomono] 05:03 -!- scm [justme@d057126.adsl.hansenet.de] has quit [Ping timeout: 260 seconds] 05:03 -!- path[l] [UPP@120.138.102.50] has joined #go-nuts 05:05 -!- scm [justme@d070253.adsl.hansenet.de] has joined #go-nuts 05:21 -!- Koteswara [~kvaranas@esprx01x.nokia.com] has joined #go-nuts 05:22 -!- Koteswara [~kvaranas@esprx01x.nokia.com] has left #go-nuts [] 05:38 -!- lagagnon [~larry@207.200.142.55] has joined #go-nuts 05:38 -!- skelterjohn [~jasmuth@wsip-70-167-73-39.sd.sd.cox.net] has quit [Quit: skelterjohn] 05:41 -!- ukai [~ukai@220.109.219.244] has quit [Ping timeout: 265 seconds] 05:45 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has joined #go-nuts 05:47 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 05:54 -!- gnuvince [~vince@70.35.164.154] has quit [Read error: Connection reset by peer] 06:00 -!- gnuvince [~vince@70.35.163.239] has joined #go-nuts 06:13 < akrill> ok. netchan is seriously flakey 06:15 -!- dbs [~dbs@pdpc/supporter/active/dbs] has quit [Ping timeout: 260 seconds] 06:21 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has quit [Quit: Morten. Desu~] 06:22 < akrill> anyone care to take a look at this? for some reason, the netchan client refuses to pull in more than 8 msgs no matter how many the server shoves out 06:22 < akrill> http://bitbucket.org/krillr/hammer-and-nail 06:22 < akrill> (pardon the dust) 06:23 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has joined #go-nuts 06:25 -!- lagagnon [~larry@207.200.142.55] has quit [Ping timeout: 265 seconds] 06:26 -!- mafs [~maikeru@unaffiliated/maikeru/x-7708887] has quit [Ping timeout: 265 seconds] 06:26 -!- mafs [~maikeru@unaffiliated/maikeru/x-7708887] has joined #go-nuts 06:27 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 06:29 < nsf> yeah! the first implementation of multifile packages in gocode works.. but needs more testing :P 06:29 -!- babusri [~Babu@122.166.153.58] has quit [Ping timeout: 276 seconds] 06:49 < jessta> akrill: I think the netchan package is currently having a rewrite 06:50 < akrill> good :-p 06:50 < akrill> so, i fixed that problem, now i have this weirdo issue where net.Dial() is hanging. 06:50 -!- bytbox [~chatzilla@ACA3BF99.ipt.aol.com] has joined #go-nuts 06:51 < akrill> any ideas on how to get this thing to properly time out? its been hanging for ~ 2 minutes 06:53 < akrill> ah, hmm, seems you replied to something similar earlier 06:53 < akrill> lol 06:59 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 07:10 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Read error: Connection reset by peer] 07:10 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts 07:23 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 07:25 -!- bytbox [~chatzilla@ACA3BF99.ipt.aol.com] has quit [Ping timeout: 260 seconds] 07:37 -!- Xiaobo [~Xiaobo@123.114.166.169] has joined #go-nuts 07:38 -!- Xiaobo [~Xiaobo@123.114.166.169] has quit [Client Quit] 07:38 -!- Xiaobo [~Xiaobo@123.114.166.169] has joined #go-nuts 07:41 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 07:52 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has joined #go-nuts 08:09 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Read error: Connection reset by peer] 08:10 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts 08:14 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 08:16 -!- wrtp [~rog@92.16.121.89] has quit [Read error: Connection reset by peer] 08:17 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 08:27 -!- akrill [~akrill@sea-igw.krillr.com] has quit [Quit: akrill] 08:28 -!- gid [~gid@220-253-151-50.VIC.netspace.net.au] has quit [Quit: Leaving.] 08:35 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 08:58 -!- ikaros [~ikaros@drms-4d0155d4.pool.mediaWays.net] has joined #go-nuts 08:59 -!- saschpe [~saschpe@mgdb-4d0cfd32.pool.mediaWays.net] has joined #go-nuts 09:06 -!- str1ngs [~strings@unaffiliated/str1ngs] has quit [Quit: WeeChat 0.3.0] 09:08 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts 09:12 -!- wrtp_ [~rog@92.16.121.89] has joined #go-nuts 09:12 -!- wrtp [~rog@92.16.121.89] has quit [Read error: Connection reset by peer] 09:22 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has quit [Ping timeout: 240 seconds] 09:28 -!- aho [~nya@fuld-4d00d58b.pool.mediaWays.net] has quit [Quit: EXEC_over.METHOD_SUBLIMATION] 09:34 -!- photron [~photron@port-92-201-151-48.dynamic.qsc.de] has joined #go-nuts 09:39 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Read error: Connection reset by peer] 09:41 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts 09:44 -!- nicks [~nicks@125-239-208-148.jetstream.xtra.co.nz] has joined #go-nuts 09:44 -!- wrtp_ [~rog@92.16.121.89] has quit [Quit: wrtp_] 09:45 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 09:45 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts 09:45 -!- mode/#go-nuts [+v iant] by ChanServ 09:45 -!- wrtp [~rog@92.16.121.89] has quit [Read error: Connection reset by peer] 09:45 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 09:52 -!- nicks [~nicks@125-239-208-148.jetstream.xtra.co.nz] has quit [Quit: Leaving] 09:54 -!- njsarten [~njsarten@125-239-208-148.jetstream.xtra.co.nz] has joined #go-nuts 09:55 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 09:55 -!- wrtp [~rog@92.16.121.89] has quit [Quit: wrtp] 09:58 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has quit [Ping timeout: 264 seconds] 09:58 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 09:58 -!- marsu [~marsu@93.12.53.136] has joined #go-nuts 10:13 -!- tvw [~tv@e176004202.adsl.alicedsl.de] has joined #go-nuts 10:27 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts 10:27 -!- mode/#go-nuts [+v iant] by ChanServ 10:32 -!- buffi [~buffi@94-247-169-107-static.serverhotell.net] has joined #go-nuts 10:43 -!- adu [~ajr@softbank220043139062.bbtec.net] has joined #go-nuts 10:50 -!- njsarten [~njsarten@125-239-208-148.jetstream.xtra.co.nz] has left #go-nuts [] 10:51 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts 10:52 -!- AndroUser2 [~androirc@195-240-16-65.ip.telfort.nl] has joined #go-nuts 10:55 -!- xuwen [~xuwen@adsl-75-61-119-20.dsl.pltn13.sbcglobal.net] has quit [Remote host closed the connection] 11:02 -!- kanru [~kanru@61-228-154-216.dynamic.hinet.net] has joined #go-nuts 11:02 -!- AndroUser2 [~androirc@195-240-16-65.ip.telfort.nl] has quit [Quit: Bye] 11:07 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 11:21 -!- coud [~coud@81.25.16.87] has joined #go-nuts 11:31 -!- adu [~ajr@softbank220043139062.bbtec.net] has quit [Quit: adu] 11:37 -!- ikaros [~ikaros@drms-4d0155d4.pool.mediaWays.net] has quit [Quit: Leave the magic to Houdini] 12:06 -!- nomono [~nomono@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 12:08 -!- nomono [~nomono@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Client Quit] 12:08 < bartbes> 6 12:08 < bartbes> oops 12:09 < bartbes> that wasn't backspace :P 12:15 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has quit [Ping timeout: 246 seconds] 12:29 -!- adu [~ajr@softbank220043139062.bbtec.net] has joined #go-nuts 12:40 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 12:40 -!- adu [~ajr@softbank220043139062.bbtec.net] has quit [Quit: adu] 12:43 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Ping timeout: 240 seconds] 12:46 -!- TheSaint [~thesaint@166.205.11.167] has joined #go-nuts 12:54 -!- TheSaint [~thesaint@166.205.11.167] has quit [Remote host closed the connection] 13:17 -!- TheSaint [~thesaint@166.205.11.167] has joined #go-nuts 13:23 -!- DavidJones [~DavidJone@dslb-084-057-118-044.pools.arcor-ip.net] has joined #go-nuts 13:26 -!- Glider [~Vesa@MKDXII.gprs.sl-laajakaista.fi] has joined #go-nuts 13:27 -!- allengeorge [~allengeor@74.12.150.7] has joined #go-nuts 13:29 -!- TheSaint [~thesaint@166.205.11.167] has quit [Read error: Connection reset by peer] 13:31 < nsf> yay, it looks like finally I was able to manage all this multifile packages stuff 13:32 < nsf> few more things and the release! 13:33 < bartbes> yay 13:43 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 13:43 -!- wrtp [~rog@92.16.121.89] has quit [Client Quit] 13:44 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 13:44 < gabriel9> hi 13:45 < gabriel9> any good ide for this language? 13:45 < gabriel9> or plugin for netbeans 13:45 < gabriel9> also is there any books 13:45 < bartbes> no books 13:45 < gabriel9> i am sorry for so much question 13:46 < nsf> also as far as I know no IDEs with autocompletion features 13:46 < bartbes> ... yet 13:46 < gabriel9> just need syntax highlight 13:46 < nsf> there is some kind of a plugin for eclipse 13:46 < gabriel9> i don't like autocompletion 13:46 < bartbes> heh, just use vim 13:46 < bartbes> :P 13:47 < nsf> there are syntax highlights for vim, emacs, kate 13:47 < DavidJones> gabriel I use kdevelop/kate 13:47 < bartbes> ah, kate 13:47 < gabriel9> kate is nice 13:47 < bartbes> kate is nice as well 13:47 < gabriel9> or kdevelop 13:47 < nsf> for xcode and for bbcode too 13:47 < bartbes> they both use the same highlighting engine, don't they? 13:47 < DavidJones> kdevelop is quite much kate :D 13:47 < DavidJones> yeah 13:47 < gabriel9> yes 13:48 < gabriel9> it is kate and much more 13:48 < bartbes> I'll just stick with vim 13:48 < bartbes> because everybody knows vim is best 13:48 < gabriel9> there is lots to learn to use vim or emacs 13:48 < nsf> and I nearly finished autocompletion plugin + daemon for vim 13:48 < DavidJones> bartbes, what about acme :D 13:48 < DavidJones> and I personally like emacs more than vim. 13:49 < bartbes> I never heard of acme before 13:49 < DavidJones> http://acme.cat-v.org/ 13:49 < nsf> acme has no syntax highlighting 13:49 < nsf> say no to acme :) 13:49 < DavidJones> I never used it though. I'm not a fan of using a mouse ; ) 13:50 < DavidJones> but acme comes from Rob Pike 13:50 < DavidJones> ! 13:50 < gabriel9> how do you menage large projects? like in Java? 13:51 < nsf> DavidJones: I'd say Acme comes from Rob Pike and 1994 13:51 < gabriel9> emacs/vim are nice but you need mouse to some things :) 13:51 -!- lagagnon [~larry@207.200.142.55] has joined #go-nuts 13:51 < DavidJones> gabriel emacs and vim don't need mouse... 13:51 < bartbes> well, you could always enable mouse in vim 13:51 < bartbes> but I doubt you need a mouse 13:51 < bartbes> I never use it 13:51 < nsf> I use scroll wheel in vim 13:52 < nsf> sometimes 13:52 < gabriel9> will try emacs again 13:52 < nsf> emacs sucks 13:52 < nsf> it hurts fingers even with caps lock 13:52 < nsf> :) 13:52 < DavidJones> gabriel, if you want to learn emacs, make sure to learn 1 shortcut every day. 13:53 -!- adu [~ajr@softbank220043139062.bbtec.net] has joined #go-nuts 13:53 < DavidJones> once you have learned emacs, it will be very efficient and effective to use 13:53 < gabriel9> and hov much days i need to learn it all? :) 13:53 < bartbes> the rest of your life 13:53 < bartbes> and more 13:53 < gabriel9> i use netbeans but it is like elephant 13:54 < nictuku> anyone else bothered by the fact that using x, err: = foo() inside a for loop is allowed even if err was already set before, and will recreate a scope-limited err instance? 13:54 < DavidJones> just use kdevelop, it is fine. 13:54 < gabriel9> slow, and ugly 13:54 < exch> nictuku: that takes some getting used to. 13:54 < DavidJones> nictuku, no I'm not bothered by that. The same should happen anywhere else, too. 13:54 < exch> I generally tend to predeclare stuff outside of loops now 13:54 < nictuku> so you can't use this for-loop-instance err instance to return an error for the function. 13:55 < gabriel9> one more big question: Is there jobs for GO? :) 13:55 < nsf> nictuku: it is expected behaviour 13:55 < nsf> in that case you should predeclare 'x' and use 'x, err = foo()' 13:55 < nictuku> it is understandable behavior, but very annoying 13:55 < DavidJones> gabriel9: you mean, enterprises that search for people who know go? forget about it :D 13:55 < nictuku> nsf: I got that, yes 13:55 < nsf> but I agree 13:55 < nsf> it is annoying 13:56 < nsf> although I get used to it 13:56 < gabriel9> so stick with Java/php/JS for now and learn this becouse it is fun to know new languages :) 13:56 < nictuku> my point is it creates very subtle bugs. One has to learn to never use := for err within a specific scope 13:56 < nictuku> well, thanks for the discussion. I won't open a feature request bug then :-) 13:58 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 240 seconds] 13:58 < exch> It does force you to pay attention to your code, which is never a bad thing I think :) 13:58 < DavidJones> gabriel9, you learn this first because it has lotsa good practices, then you learn other languages 13:58 < DavidJones> gabriel9, that way your brain won't be that mangled like if you'd learn java first. 13:59 -!- macroron [~macroron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts 14:00 < exch> DavidJones: and have your sense of sanity derailed forever? You'll never enjoy any language after you've worked with go. They'll all seem thuroughly inadequate :p 14:00 < DavidJones> exch that's another feature. Actually I still enjoy ruby a lot, as long as it doesn't come to multithreading ; ) 14:01 < exch> heh ruby does have an interesting flair 14:01 < gabriel9> DavidJones i already learned Java and php, and now i learn JS :D 14:01 < exch> I've never written anything serious in it myself, but do enjoy playing with it. It allows you to do some very odd things 14:02 < DavidJones> gabriel9 oh no... it is too late. 14:02 < gabriel9> i am working on sessions for my brain 14:02 < DavidJones> exch like modifying what + means for integers? 14:02 < DavidJones> gabriel9 java is like sessions against your brain 14:02 < nsf> nictuku: I think the compiler should give a warning 14:02 < gabriel9> Why people hate Java 14:02 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has quit [Quit: WeeChat 0.3.3-dev] 14:03 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Remote host closed the connection] 14:03 < DavidJones> gabriel9 not as much as BASIC or Pascal :D but still awkward. 14:03 < nsf> in case if 'a, b := ..' a or b exists 14:03 < nsf> but not both 14:03 < gabriel9> javascript is realy strange 14:04 < nictuku> nsf, maybe, but I have a feeling that the Go core developers are philosophically against compiler warnings. 14:04 < nsf> because this statement will not be purely "declare", but "declare and redeclare" 14:04 < gabriel9> when i come from Java to JS thre is some trouble 14:04 < nsf> nictuku: yep, probably :) 14:04 < DavidJones> gabriel9 http://groups.google.com/group/golang-nuts/msg/1fc625d58729ca83 14:04 < nsf> javascript has nothing to do with java 14:04 < nsf> except similar syntax 14:04 < gabriel9> yes i know that, they say it all the time :D 14:05 < nictuku> nsf, IMHO the language shouldn't allow a "redeclare" for := 14:05 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts 14:05 < nsf> nictuku: I think it should :) 14:05 < nsf> but I think it should disallow "declare and redeclare" only "declare and declare" or "redeclare and redeclare" 14:06 < nsf> but it's a quick thought 14:06 < nsf> feels kinda strange :) 14:06 < nictuku> the doc says: ""Redeclaration does not introduce a new variable; it just assigns a new value to the original."" 14:07 < nictuku> so if I read correctly, the redeclare should be reusing the existing err value, no? 14:08 < exch> That sounds a lil inconsistent. As far as I know, it won't reuse the existing one. At leats not if you redeclare in a new scope block 14:08 < exch> *least 14:08 < nictuku> s/existing err value/existing err instance/ 14:09 < DavidJones> nsf, I agree. 14:09 < exch> mm it seems it does reuse the existing one 14:09 < gabriel9> DavidJones nice text 14:09 < nsf> nictuku: it's only about "the same block" 14:10 < nsf> in different blocks aka scopes it does declare a new var 14:10 < nictuku> nsf, ah, you're right 14:10 < exch> mm nope it doesnt reuse 14:10 < nsf> the point is, you can't write: a := 10; a := 20 14:10 < nsf> the second statement is an error 14:11 < nsf> but in multiassignments it is possible to do that 14:11 < gabriel9> and yes i find myself in it, but i am new in all this. I do programing for year and the half. There is much for me to learn 14:11 < nsf> in certain cases as described in the spec 14:13 < DavidJones> gabriel9, you should start learning with languages that are good for your brain, not with those that **** it up. 14:13 < nsf> Go is nice 14:13 < nsf> C++ is a no no :D 14:14 < gabriel9> when i start this one programmer come to me and said: Learn OO, and for that Java is best, but you need some server side language and php is best 14:14 < gabriel9> and so i do that 14:15 < gabriel9> :/ 14:15 < DavidJones> gabriel9, ruby is the best for OO : ) 14:15 < DavidJones> gabriel9, at least from those languages I know 14:15 < gabriel9> do you know Java? 14:15 < nsf> I'd say read a nice book, like: the Art of Unix Programming by Eric S. Raymond 14:15 < DavidJones> nsf, Id 14:16 < DavidJones> I'd say read everything from Eric S. Raymond, he sure is a cool guy ;D 14:16 < nsf> :D 14:18 < gabriel9> i have read Matt Weisfeld The OO Thought Process 14:18 < DavidJones> gabriel9, I used Java in the one term I studied informatics at university, which is 3 years ago. Then school started to become tougher and I stopped studying. I disliked Java so I didn't use it anymore. 14:18 < nsf> and don't read OO books 14:18 < nsf> at all 14:18 < nsf> :D 14:19 < DavidJones> gabriel9, and next octobre I'll really start studying informatics, but at a much better university. And this time I won't use Java :D 14:20 < gabriel9> i also dropout from university, but it is not informatics, and i also planinng to go t 14:21 < DavidJones> I didn't dropout from university oO 14:21 < gabriel9> to university this year 14:21 < gabriel9> i only know that word for something like that :D 14:22 < DavidJones> No no you got it wrong. I was 15 three years ago 14:22 < gabriel9> eng is not my primary language, this is: Српски 14:22 < DavidJones> and I was going to school and visiting university (fits much better than studying in this case) parallely 14:23 < gabriel9> aha, now i get it :) 14:23 < DavidJones> but then school became tougher, so I stopped visiting classes at university 14:24 < gabriel9> i see now, and i understand :) 14:27 < DavidJones> ^^ 14:30 < gabriel9> whell i must go and build some themes for wordpress. It is nice to talk with you guys. Best regards. 14:30 < DavidJones> see you : ) 14:30 < gabriel9> sure do :) 14:31 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Ping timeout: 276 seconds] 14:45 -!- marsu [~marsu@93.12.53.136] has quit [Ping timeout: 260 seconds] 14:54 -!- visof [~visof@unaffiliated/visof] has quit [Quit: Leaving] 14:56 < nictuku> is there a richer logging package somewhere that provides verbosity control? 14:58 < nictuku> the syslog one that I wrote does something like that but it's a different beast 14:58 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts 14:58 -!- mode/#go-nuts [+v iant] by ChanServ 15:04 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 15:05 * araujo wonders if somebody here knows how to use the ebnf package 15:05 < DavidJones> what do you want to do with it? 15:08 < araujo> DavidJones, that package is a generic ebnf library , or only for go syntax? 15:09 -!- lagagnon [~larry@207.200.142.55] has quit [Ping timeout: 260 seconds] 15:09 -!- saschpe [~saschpe@mgdb-4d0cfd32.pool.mediaWays.net] has quit [Remote host closed the connection] 15:10 < DavidJones> to me it seems to be a generic ebnf library 15:11 < DavidJones> but it imports the go/scanner 15:11 < DavidJones> which is a scanner for go only 15:12 -!- Bombe [~droden@weltgehirnmaschine.de] has quit [Changing host] 15:12 -!- Bombe [~droden@freenet/developer/Bombe] has joined #go-nuts 15:12 < araujo> DavidJones, right, I am just trying to figure out how to use 15:18 -!- raichoo [~raichoo@p54B5647B.dip.t-dialin.net] has joined #go-nuts 15:19 -!- raichoo [~raichoo@p54B5647B.dip.t-dialin.net] has quit [Remote host closed the connection] 15:21 < DavidJones> araujo what I don't understand right now 15:21 < DavidJones> http://pastebin.com/uZsqDdaz 15:21 -!- MizardX- [~MizardX@unaffiliated/mizardx] has joined #go-nuts 15:21 -!- Glider [~Vesa@MKDXII.gprs.sl-laajakaista.fi] has quit [Ping timeout: 258 seconds] 15:21 -!- MizardX- [~MizardX@unaffiliated/mizardx] has quit [Remote host closed the connection] 15:22 * araujo checks 15:22 < DavidJones> does this work because of v being a verifier and not a *verifier? 15:23 -!- MizardX- [~MizardX@unaffiliated/mizardx] has joined #go-nuts 15:23 < DavidJones> apart from that, you should just follow the verifier::verify method 15:23 < araujo> mmmm 15:23 < araujo> DavidJones, I was trying to follow the Parse function .... 15:24 < nsf> type embedding.. check 15:25 < DavidJones> http://golang.org/src/pkg/ebnf/ebnf.go#L180 15:25 < nsf> what's left.. hm.. 15:25 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Ping timeout: 276 seconds] 15:25 < DavidJones> araujo, there is no Parse function in ebnf.go oO 15:25 < nsf> ah.. 'true' cache for packages, local packages and import to a current namespace 15:26 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 15:27 -!- bytbox [~chatzilla@ACA2F163.ipt.aol.com] has joined #go-nuts 15:27 -!- Glider [~Vesa@MKDXII.gprs.sl-laajakaista.fi] has joined #go-nuts 15:27 < araujo> DavidJones, I think it is exported from other package 15:28 < araujo> but it is there in the ebnf package page 15:28 < araujo> in the Grammar type section 15:32 < DavidJones> cat ebnf.go | grep Parse yields no results on my machine. 15:33 < DavidJones> the ebnf package seems only to validate an EBNF 15:34 < DavidJones> you hand it a map[ string ] of Productions, and give it the root Production (via a string) 15:35 < DavidJones> and then it tries to reach all the Productions, and performs a lexical analysis 15:36 -!- raichoo [~raichoo@i577BB4CC.versanet.de] has joined #go-nuts 15:37 < araujo> golang.org/src/pkg/ebnf/parser.go#L208 15:37 < araujo> it shows there as package ebnf too 15:37 < DavidJones> ah : ) 15:38 < DavidJones> I only saw ebnf.go 15:38 < DavidJones> my fault. 15:38 < exch> almost done with libVLX bindings for Go \o/ 15:38 < araujo> well, I was trying to follow that one... though I am not sure exactly how it works 15:38 < exch> Think i'll add some example programs afterwards 15:38 < exch> *libVLC 15:40 < DavidJones> exch, good job! 15:41 < DavidJones> araujo, Parse creates an EBNF grammar 15:42 -!- robpike [~r@c-98-207-86-223.hsd1.ca.comcast.net] has joined #go-nuts 15:42 -!- mode/#go-nuts [+v robpike] by ChanServ 15:42 -!- robpike [~r@c-98-207-86-223.hsd1.ca.comcast.net] has quit [Client Quit] 15:47 -!- ville- [~ville@a107.ath.cx] has joined #go-nuts 15:48 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has quit [Remote host closed the connection] 15:50 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has joined #go-nuts 15:51 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has quit [Remote host closed the connection] 15:52 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has joined #go-nuts 15:54 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts 15:56 < DavidJones> by using the input just like go/scanner::Init 15:57 < tumdum> hi, i need to parse some custom file format and would like to do it in go, what is the best way to do this? i saw goyacc, is threr something like gobison? 15:58 < vrtical> bison is gnu yacc, they do the same thing. 15:59 < tumdum> so if i have gramar ready for bison i can use it with yacc? 16:00 -!- dbs [~dbs@pdpc/supporter/active/dbs] has joined #go-nuts 16:01 < vrtical> tumdum: I think bison has some extra features; if you haven't used them then you're fine with yacc. 16:01 < vrtical> (I suspect many people _use_ bison but invoke it in yacc mode with extra features turned off. I've never used goyacc by the way) 16:03 -!- skelterjohn [~jasmuth@wsip-70-167-73-39.sd.sd.cox.net] has joined #go-nuts 16:04 < tumdum> ok, and (f)lex? I can't find any thing like it. will i have to write my own scanner? 16:04 < DavidJones> no lex 16:04 < DavidJones> but they suggested to me using scanner 16:05 < DavidJones> found in pkg/scanner 16:05 < DavidJones> not to be confused with pkg/go/scanner, which is a go scanner 16:05 < DavidJones> (scanner for go) 16:07 < tumdum> pkg/scanner/ also seems to be made for scanning go 16:08 < DavidJones> that's what I thought, too. 16:08 < DavidJones> but they all keep saying it's a general purpose scanner ;P 16:09 < DavidJones> but look at this: 16:09 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has quit [Ping timeout: 248 seconds] 16:09 < tumdum> who's 'they'? ;) 16:09 < DavidJones> http://golang.org/src/pkg/scanner/scanner_test.go 16:09 -!- babusri [~Babu@122.166.153.58] has joined #go-nuts 16:10 < DavidJones> andrew gerrand and other experts. 16:10 < DavidJones> so I believe them. 16:10 < DavidJones> but currently I'm working on something different, so I haven't checked myself. 16:14 -!- lagagnon [~larry@207.200.142.55] has joined #go-nuts 16:14 -!- marsu [~marsu@192.101.202-77.rev.gaoland.net] has joined #go-nuts 16:21 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 16:24 < tumdum> there seems to be a bug in current content of http://golang.org/pkg/os/, should this kind of error be reported in issue tracker? 16:24 -!- lagagnon [~larry@207.200.142.55] has quit [Ping timeout: 260 seconds] 16:25 < exch> Since that is generated by the godoc program, that would constitute a bug i said software and therefor validates filing of a bug report :) 16:26 < exch> Think someone already did it though. It's been mentioned a few days ago 16:26 -!- marsu [~marsu@192.101.202-77.rev.gaoland.net] has quit [Ping timeout: 265 seconds] 16:26 < DavidJones> JEEEZ 16:28 < rsaarelm> Looks like the os package does have the same package comment in three places in the sources. Has godoc's behavior with multiple package comments been defined anywhere? 16:29 < araujo> back 16:29 < araujo> DavidJones, creates an EBFN grammar , but what exactly are the two arguments? , filename and []byte ? 16:29 < DavidJones> araujo, look at /go/scanner::Init 16:34 < araujo> "The filename parameter is used as filename in the token" 16:34 < araujo> what that means? :) 16:34 -!- Xiaobo [~Xiaobo@123.114.166.169] has quit [Quit: Leaving] 16:34 < DavidJones> if I understand correctly, filename has no real use apart from giving the token.Position::String() method some sort of indentifiability 16:35 < DavidJones> *identifiability 16:35 < araujo> mmm.... I see 16:37 < exch> It's used in error messages when some unknown token is encountered. So you know where exactly to look to fix it 16:37 < araujo> I see 16:41 < bytbox> tumdum: I don't think any bugs have been filed for that, actually - you should probably file. The closest is http://code.google.com/p/go/issues/detail?id=953 - which is on a different page. 16:43 -!- Glider [~Vesa@MKDXII.gprs.sl-laajakaista.fi] has left #go-nuts [] 16:59 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts 16:59 -!- mode/#go-nuts [+v iant] by ChanServ 17:01 -!- tvw [~tv@e176004202.adsl.alicedsl.de] has quit [Read error: Connection reset by peer] 17:03 -!- marsu [~marsu@192.101.202-77.rev.gaoland.net] has joined #go-nuts 17:04 -!- bytbox [~chatzilla@ACA2F163.ipt.aol.com] has quit [Quit: qt4god - the qt4.go server daemon!] 17:05 -!- skelterjohn [~jasmuth@wsip-70-167-73-39.sd.sd.cox.net] has quit [Ping timeout: 240 seconds] 17:07 -!- gNostic [~Vesa@MKDXII.gprs.sl-laajakaista.fi] has joined #go-nuts 17:15 -!- marsu [~marsu@192.101.202-77.rev.gaoland.net] has quit [Quit: Leaving] 17:15 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 17:18 -!- gid [~gid@220-253-151-50.VIC.netspace.net.au] has joined #go-nuts 17:24 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has quit [Ping timeout: 264 seconds] 17:25 -!- KillerX [~anant@145-116-234-40.uilenstede.casema.nl] has joined #go-nuts 17:25 -!- KillerX [~anant@145-116-234-40.uilenstede.casema.nl] has quit [Client Quit] 17:26 -!- Sacho [~sacho@79-100-169-151.btc-net.bg] has joined #go-nuts 17:40 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 17:45 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts 17:45 -!- mode/#go-nuts [+v iant] by ChanServ 17:45 -!- gNostic [~Vesa@MKDXII.gprs.sl-laajakaista.fi] has quit [Remote host closed the connection] 17:45 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has joined #go-nuts 17:48 -!- gNostic [~gNostic@YYKMDCCXIX.gprs.sl-laajakaista.fi] has joined #go-nuts 17:49 < araujo> DavidJones, so, in Parse , []byte are the EBNF productions rules? 17:51 -!- nomo [~nomo@mobile-166-137-136-067.mycingular.net] has joined #go-nuts 17:53 < araujo> by the way, there exist a way to get multi-line string literals? 17:54 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts 17:55 < exch> araujo: yes, use ` as string delimiters 17:56 < bartbes> exch: is that ' or `? 17:56 < exch> the second one 17:56 < bartbes> okay, wanted to be sure 17:56 < araujo> cool 17:56 < araujo> thanks exch 17:56 < araujo> :) 17:57 < exch> Also handy if you are writing regex patterns. ` doesn't interfere with escape sequences in regex patterns which would otherwise invalidate your string literal 17:58 < bartbes> yay 18:00 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 18:03 -!- gNostic [~gNostic@YYKMDCCXIX.gprs.sl-laajakaista.fi] has quit [Ping timeout: 276 seconds] 18:04 -!- gNostic [~gNostic@YYKMDCCXIX.gprs.sl-laajakaista.fi] has joined #go-nuts 18:05 -!- wrtp [~rog@92.16.121.89] has quit [Quit: wrtp] 18:06 < DavidJones> araujo jup 18:07 -!- allengeorge [~allengeor@74.12.150.7] has quit [Quit: allengeorge] 18:07 -!- wrtp [~rog@92.16.121.89] has joined #go-nuts 18:09 -!- gnuvince [~vince@70.35.163.239] has quit [Quit: Via SOAP! VIA SOAP!!] 18:09 -!- gnuvince [~vince@64.235.204.69] has joined #go-nuts 18:09 -!- artefon [~thiago@189.107.128.211] has joined #go-nuts 18:14 -!- nomo [~nomo@mobile-166-137-136-067.mycingular.net] has quit [Remote host closed the connection] 18:14 -!- KillerX [~anant@145-116-234-40.uilenstede.casema.nl] has joined #go-nuts 18:14 -!- KillerX [~anant@145-116-234-40.uilenstede.casema.nl] has left #go-nuts [] 18:14 -!- wrtp [~rog@92.16.121.89] has quit [Ping timeout: 240 seconds] 18:17 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts 18:17 -!- navigator [~navigator@p5489534E.dip.t-dialin.net] has joined #go-nuts 18:18 -!- allengeorge [~allengeor@74.12.150.7] has joined #go-nuts 18:25 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 18:34 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has joined #go-nuts 18:37 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode] 18:37 -!- gNostic [~gNostic@YYKMDCCXIX.gprs.sl-laajakaista.fi] has quit [Remote host closed the connection] 18:39 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 18:43 -!- gNostic [~gNostic@ZYMYCDXCV.gprs.sl-laajakaista.fi] has joined #go-nuts 18:44 -!- artefon [~thiago@189.107.128.211] has quit [Ping timeout: 245 seconds] 18:46 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has quit [Quit: WeeChat 0.3.3-dev] 18:51 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 18:52 -!- macroron [~macroron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit: Leaving] 18:52 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection] 18:53 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 18:54 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 18:57 -!- adam_ [~adam@pool-108-7-234-120.bstnma.fios.verizon.net] has joined #go-nuts 19:00 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode] 19:00 -!- artefon [~thiago@189.107.128.211] has joined #go-nuts 19:04 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 19:06 -!- Fish [~Fish@9fans.fr] has quit [Ping timeout: 240 seconds] 19:08 -!- Fish [~Fish@9fans.fr] has joined #go-nuts 19:20 -!- ronnyy [~quassel@p4FF1D47C.dip.t-dialin.net] has joined #go-nuts 19:31 -!- adu [~ajr@softbank220043139062.bbtec.net] has quit [Quit: adu] 19:33 -!- ronnyy [~quassel@p4FF1D47C.dip.t-dialin.net] has quit [Remote host closed the connection] 19:38 -!- allengeorge [~allengeor@74.12.150.7] has quit [Quit: allengeorge] 19:40 -!- GoBIR [~gobir@DHCP-159-138.caltech.edu] has quit [Remote host closed the connection] 19:43 -!- GoBIR [~gobir@DHCP-159-138.caltech.edu] has joined #go-nuts 19:54 -!- navigator [~navigator@p5489534E.dip.t-dialin.net] has quit [Quit: Leaving] 20:00 < tensorpudding> Is there a % operator in Go? 20:01 < exch> yes, % 20:01 < tensorpudding> Okay, I didn't see it in the language definition. 20:02 <+iant> It's in the list of Arithmetic operators 20:03 < exch> yay. libvlc bindings are done 20:04 -!- aho [~nya@fuld-4d00d4fa.pool.mediaWays.net] has joined #go-nuts 20:06 -!- awidegreen [~quassel@62.176.237.78] has quit [Read error: Connection reset by peer] 20:07 -!- jtal [~jlolofie@128.252.233.244] has joined #go-nuts 20:08 -!- jtal [~jlolofie@128.252.233.244] has quit [Quit: leaving] 20:12 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 20:20 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit: slashus2] 20:30 -!- ako [~nya@fuld-4d00d71b.pool.mediaWays.net] has joined #go-nuts 20:32 -!- aho [~nya@fuld-4d00d4fa.pool.mediaWays.net] has quit [Ping timeout: 245 seconds] 20:33 -!- adam_ [~adam@pool-108-7-234-120.bstnma.fios.verizon.net] has quit [Quit: Leaving] 20:40 -!- coud [~coud@81.25.16.87] has quit [Quit: Leaving] 20:41 -!- babusri [~Babu@122.166.153.58] has quit [Ping timeout: 276 seconds] 20:51 -!- ako [~nya@fuld-4d00d71b.pool.mediaWays.net] has quit [Ping timeout: 245 seconds] 20:52 < tensorpudding> is gotest able to be used with packages that do not have a binary? 20:52 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 20:55 -!- nomono [~nomono@c-69-136-241-18.hsd1.nj.comcast.net] has joined #go-nuts 20:55 -!- nomono [~nomono@c-69-136-241-18.hsd1.nj.comcast.net] has quit [Remote host closed the connection] 20:57 -!- allengeorge [~allengeor@74.12.150.7] has joined #go-nuts 21:00 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 245 seconds] 21:00 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Ping timeout: 240 seconds] 21:00 < exch> It automatically builds it's own binary for any package that includes a foo_test.go file. where 'foo' is your package name 21:00 < tensorpudding> okay 21:01 < exch> provided you import the go makefiles in your own, cos they define the appropriate rules 21:01 < exch> include $(GOROOT)/src/Make.$(GOARCH) and include $(GOROOT)/src/Make.pkg 21:01 < tensorpudding> My makefile imports the Make.$(GOARCH) 21:01 < exch> I'm not sure which one defines the rule, but I think it's the .pkg one 21:02 < DavidJones> yup 21:02 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 21:02 < DavidJones> Make.pkg 21:03 < tensorpudding> including Make.pkg causes make to fail with error 21:03 < DavidJones> you have to import it at the end 21:03 < DavidJones> after defining TARG and GOFILES 21:04 < tensorpudding> Oh, I have to specify special rules? 21:04 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has joined #go-nuts 21:04 < DavidJones> you have to tell the compiler which files you want to compile 21:05 < exch> like this http://github.com/jteeuwen/go-pkg-libvlc/blob/master/libvlc/Makefile 21:05 < DavidJones> and what the resulting binary/package shall be 21:05 < tensorpudding> I already did, using a standard Makefile. 21:05 -!- aho [~nya@fuld-4d00d0cb.pool.mediaWays.net] has joined #go-nuts 21:05 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has joined #go-nuts 21:06 < DavidJones> maybe, but that's not the go way. 21:06 < DavidJones> normal makefiles are bloated and ugly. go makefiles are clean and beautiful. 21:07 < tensorpudding> I would say that Make.pkg is ugly and is self-described as such. 21:08 -!- raichoo [~raichoo@i577BB4CC.versanet.de] has quit [Quit: Leaving.] 21:08 < tensorpudding> That said, it seems to have simplified things a bit. 21:08 < DavidJones> because the bloatedness and uglyness is all within the provided makefiles 21:10 < tensorpudding> It wants a special makefile for gotest... 21:11 < tensorpudding> but the page it links to doesn't mention anything about that 21:19 -!- GeoBSD [~geobsd@lns-bzn-61-82-250-122-146.adsl.proxad.net] has joined #go-nuts 21:23 -!- kams [~rawl@cable201-233-64-141.epm.net.co] has joined #go-nuts 21:24 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Quit: tumdum] 21:28 -!- DavidJones [~DavidJone@dslb-084-057-118-044.pools.arcor-ip.net] has quit [Remote host closed the connection] 21:35 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has quit [Quit: Morten. Desu~] 21:44 -!- gol [~goloo@151.65.208.57] has joined #go-nuts 21:44 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Ping timeout: 264 seconds] 21:45 -!- gol [~goloo@151.65.208.57] has quit [Remote host closed the connection] 21:51 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has quit [Ping timeout: 260 seconds] 21:52 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection] 22:02 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts 22:02 -!- mode/#go-nuts [+v iant] by ChanServ 22:03 -!- tvw [~tv@e176004202.adsl.alicedsl.de] has joined #go-nuts 22:05 -!- allengeorge [~allengeor@74.12.150.7] has quit [Quit: allengeorge] 22:09 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 22:16 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has quit [Ping timeout: 264 seconds] 22:23 < tensorpudding> doh 22:23 < tensorpudding> does gotest assume that your makefile is called Makefile? 22:23 < tensorpudding> it appears it does 22:24 < exch> I'm not so sure. I think its the makefile that calls gotest. not the other way around. gotest just looks for a *_test.go file 22:24 < exch> I could be wrong though. haven't tested it sufficiently 22:24 < tensorpudding> I changed the name of my makefile to Makefile and it worked fine 22:24 < exch> hmm 22:24 < exch> I stand corrected then 22:24 < tensorpudding> I'd gotten into the habit of naming makefiles that are not compatible GNUmakefile 22:33 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 22:33 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode] 22:36 < tensorpudding> Go could use some more helpful debugging information 22:38 < exch> There's a somewhat functional debugger, but it's still very much WIP as far as I know 22:39 < exch> $GOROOT/src/pkg/exp/ogle 22:41 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Ping timeout: 276 seconds] 22:43 -!- marsu [~marsu@192.101.202-77.rev.gaoland.net] has joined #go-nuts 22:44 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 22:52 -!- tvw [~tv@e176004202.adsl.alicedsl.de] has quit [Remote host closed the connection] 23:04 -!- kanru [~kanru@61-228-154-216.dynamic.hinet.net] has quit [Quit: WeeChat 0.3.2] 23:04 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 23:06 -!- emmanueloga [~emmanuelo@190.247.41.202] has joined #go-nuts 23:18 -!- allengeorge [~allengeor@74.12.150.7] has joined #go-nuts 23:26 -!- exch [~exch@h144170.upc-h.chello.nl] has quit [Ping timeout: 260 seconds] 23:26 -!- exch [~exch@h144170.upc-h.chello.nl] has joined #go-nuts 23:26 -!- kams [~rawl@cable201-233-64-141.epm.net.co] has quit [Read error: Connection reset by peer] 23:33 < exch> http://img710.imageshack.us/img710/628/vlcjt.png victory \o/ 23:39 -!- Xurix [~Luixsia@AToulouse-254-1-26-50.w81-250.abo.wanadoo.fr] has quit [Quit: Leaving] 23:48 < plexdev> http://is.gd/dIi9A by [Daniel Theophanes] in 2 subdirs of go/src/pkg/ -- syscall: add ForkExec, Syscall12 on Windows 23:51 -!- scm [justme@d070253.adsl.hansenet.de] has quit [Ping timeout: 245 seconds] 23:51 -!- artefon [~thiago@189.107.128.211] has quit [Quit: bye] 23:53 < tensorpudding> The testing module seems a bit broken. 23:53 < tensorpudding> I'm running code that when compiled separately runs fine, but is causing gotest much grief 23:54 < tensorpudding> "recursive call during initialization - linker skew" 23:54 -!- xuwen [~xuwen@adsl-75-61-119-20.dsl.pltn13.sbcglobal.net] has joined #go-nuts 23:55 < exch> O.o 23:55 < exch> Never seen that one before 23:56 -!- scm [justme@d070253.adsl.hansenet.de] has joined #go-nuts 23:56 < tensorpudding> It has occured on every test I've tried, except for a sanity check that just printfed a single line 23:57 < tensorpudding> Is it bad that I'm importing the package that I'm writing the test for? 23:57 -!- artefon [~thiago@189.107.128.211] has joined #go-nuts 23:57 < exch> if it's in a _test.go file, then yes 23:57 < tensorpudding> Yes, it is. 23:58 < exch> the package declaration should be the same as the package you are working on. so 'package foo' instead of 'package main' 23:58 < tensorpudding> How do I refer to the code in my foo.go from the foo_test.go, if I can't import it? 23:58 < tensorpudding> Yes, I did that. 23:58 < tensorpudding> ah, I get it 23:58 < exch> it should then just be accessible as you would expect it to be 23:58 < tensorpudding> Okay wait I don't. 23:58 < exch> No need to prefix the package name 23:58 < tensorpudding> I'm in package foo, and I say foo.Bar, and it's saying undefined foo 23:59 < exch> you can omit the 'foo.' bit 23:59 < tensorpudding> Okay. 23:59 < exch> http://github.com/jteeuwen/go-pkg-libvlc/blob/master/libvlc/libvlc_test.go here's an example 23:59 < tensorpudding> Okay, thanks, it worked. 23:59 < exch> all the capitalized functions and types are part of the libvlc package, but so is the test file itself. So i can just call them directly 23:59 < tensorpudding> My serial implementation worked, but as expected the goroutine one failed --- Log closed Mon Jul 26 00:00:05 2010