--- Log opened Thu Feb 10 00:00:05 2011 00:01 -!- kkress [~kkress@kkress2.xen.prgmr.com] has quit [Ping timeout: 246 seconds] 00:01 -!- kkress [~kkress@kkress2.xen.prgmr.com] has joined #go-nuts 00:01 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.] 00:02 -!- ymasory [~ymasory@c-76-99-55-224.hsd1.pa.comcast.net] has quit [Quit: Leaving] 00:03 -!- napsy [~luka@88.200.96.18] has quit [Quit: leaving] 00:03 -!- ExtraSpice [~XtraSpice@78-62-101-194.static.zebra.lt] has quit [Ping timeout: 240 seconds] 00:03 -!- rlab_ [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds] 00:05 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 00:05 -!- rup [~rupert@deathknight.net] has quit [Ping timeout: 240 seconds] 00:07 < plexdev> http://is.gd/XKODTS by [Ken Thompson] in go/src/cmd/5g/ -- peep: more bugs 00:08 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 240 seconds] 00:14 -!- gits [~gits@77.94.219.158] has joined #go-nuts 00:18 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-176-4.clienti.tiscali.it] has quit [Quit: E se abbasso questa leva che succ...] 00:24 -!- iant [~iant@nat/google/x-tfmtjquxddnlllrx] has quit [Quit: Leaving.] 00:27 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts 00:31 -!- Scorchin [~Scorchin@host86-145-223-141.range86-145.btcentralplus.com] has quit [Ping timeout: 240 seconds] 00:34 -!- iant [~iant@67.218.104.194] has joined #go-nuts 00:34 -!- mode/#go-nuts [+v iant] by ChanServ 00:39 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Quit: Leaving.] 00:40 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined #go-nuts 00:45 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has quit [Remote host closed the connection] 00:49 -!- boscop [~boscop@f055019202.adsl.alicedsl.de] has quit [Ping timeout: 240 seconds] 01:03 -!- Venom_X [~pjacobs@75.92.43.21] has quit [Quit: Venom_X] 01:06 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 01:20 -!- saturnfive [~saturnfiv@210.74.155.131] has joined #go-nuts 01:21 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has quit [Remote host closed the connection] 01:24 < plexdev> http://is.gd/BEu9Br by [Rob Pike] in 4 subdirs of go/src/pkg/ -- src/*: fix incorrect prints found by govet 01:38 -!- arun_ [~arun@i172010.upc-i.chello.nl] has joined #go-nuts 01:38 -!- arun_ [~arun@i172010.upc-i.chello.nl] has quit [Changing host] 01:38 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts 02:01 -!- iant [~iant@67.218.104.194] has quit [Quit: Leaving.] 02:01 -!- itrekkie__ [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts 02:01 -!- itrekkie__ [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Client Quit] 02:04 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has left #go-nuts [] 02:05 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Read error: Operation timed out] 02:06 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 250 seconds] 02:17 -!- nutate [~rseymour@cacsag4.usc.edu] has quit [Quit: I'm outta heee-eere] 02:17 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts 02:24 -!- niemeyer [~niemeyer@201-40-138-161.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 240 seconds] 02:27 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has joined #go-nuts 02:30 -!- ildorn1 [~ildorn@dslb-088-067-159-196.pools.arcor-ip.net] has joined #go-nuts 02:33 -!- ildorn [~ildorn@dslb-188-099-203-155.pools.arcor-ip.net] has quit [Ping timeout: 260 seconds] 02:37 -!- dforsyth_ [~dforsyth@bastion.inap.yelpcorp.com] has quit [Quit: Computer has gone to sleep.] 02:40 -!- aconran_ [~aconran-o@adsl-67-119-205-150.dsl.pltn13.pacbell.net] has joined #go-nuts 02:43 -!- aconran [~aconran-o@adsl-67-119-205-150.dsl.pltn13.pacbell.net] has quit [Ping timeout: 255 seconds] 02:51 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined #go-nuts 03:16 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 03:21 -!- gits [~gits@77.94.219.158] has quit [Ping timeout: 260 seconds] 03:22 -!- adu [~ajr@pool-173-79-54-138.washdc.fios.verizon.net] has quit [Quit: adu] 03:22 -!- dchest [~dchest@95.155.52.241] has quit [Quit: dchest] 03:23 -!- adu [~ajr@pool-173-79-54-138.washdc.fios.verizon.net] has joined #go-nuts 03:36 -!- iant [~iant@69.109.80.2] has joined #go-nuts 03:36 -!- mode/#go-nuts [+v iant] by ChanServ 03:36 -!- _go-irc-c [~go-irc-ch@cpe-098-026-048-143.nc.res.rr.com] has joined #go-nuts 03:46 -!- _go-irc-c [~go-irc-ch@cpe-098-026-048-143.nc.res.rr.com] has quit [Remote host closed the connection] 03:52 -!- dchest [~dchest@95.155.52.241] has joined #go-nuts 03:59 -!- iant [~iant@69.109.80.2] has quit [Quit: Leaving.] 04:13 -!- zomgbie [~jesus@84.119.84.39] has quit [Ping timeout: 276 seconds] 04:15 -!- dchest [~dchest@95.155.52.241] has quit [Quit: dchest] 04:21 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 276 seconds] 04:21 -!- hcl2 [~akuma@75.41.110.112] has quit [Ping timeout: 240 seconds] 04:21 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds] 04:35 -!- decaf [~mehmet@85.106.161.148] has quit [Quit: Leaving] 04:48 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts 04:48 -!- mode/#go-nuts [+v iant] by ChanServ 04:51 -!- itrekkie_ [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts 04:58 -!- darkhelmetlive [~darkhelme@174.3.226.0] has joined #go-nuts 04:59 < darkhelmetlive> Hey allo. Starting to learn go, and am running into a few random "wtf" moments. 04:59 < darkhelmetlive> Like, what do I do with packages? 04:59 < darkhelmetlive> download source, make, now I have a .a file...where do I put it, how do i import it? 05:03 -!- keithcascio [~keithcasc@nat/google/x-basxlsdmugrivhxe] has quit [Quit: Leaving] 05:03 -!- Maxdamantus [~Maxdamant@203-97-238-106.cable.telstraclear.net] has quit [Ping timeout: 255 seconds] 05:24 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts 05:33 -!- darkhelmetlive [~darkhelme@174.3.226.0] has quit [Quit: darkhelmetlive] 05:40 -!- Maxdamantus [~Maxdamant@203-97-238-106.cable.telstraclear.net] has joined #go-nuts 05:52 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts 06:00 -!- dccmx [~chatzilla@61.172.241.100] has joined #go-nuts 06:01 -!- dccmx [~chatzilla@61.172.241.100] has quit [Client Quit] 06:04 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has quit [Quit: Leaving.] 06:05 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has joined #go-nuts 06:10 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten. Desu~] 06:19 -!- lmoura_ [~lauromour@187.59.125.148] has quit [Read error: Connection reset by peer] 06:22 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the connection] 06:23 -!- lmoura_ [~lauromour@186.212.117.110] has joined #go-nuts 06:26 -!- Adys [~Adys@cpc7-chap8-2-0-cust19.aztw.cable.virginmedia.com] has joined #go-nuts 06:26 -!- Adys [~Adys@cpc7-chap8-2-0-cust19.aztw.cable.virginmedia.com] has quit [Changing host] 06:26 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 06:38 -!- rup [~rupert@deathknight.net] has joined #go-nuts 06:51 -!- tav [~tav@92.7.79.91] has quit [Ping timeout: 240 seconds] 07:03 -!- tav [~tav@92.7.102.123] has joined #go-nuts 07:11 -!- itrekkie_ [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Quit: itrekkie_] 07:17 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has quit [Disconnected by services] 07:17 -!- dforsyth_ [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has joined #go-nuts 07:24 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|] 07:25 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-165-54.clienti.tiscali.it] has joined #go-nuts 07:30 -!- photron [~photron@port-92-201-3-30.dynamic.qsc.de] has joined #go-nuts 07:33 < saturnfive> how to use syscall.Syscall? 07:33 < saturnfive> is this correct? 07:33 < saturnfive> _, _, callErr := syscall.Syscall(uintptr(_StartGoService), uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(ServiceName))), 0, 0, 0) 07:36 -!- dforsyth_ [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 07:39 < saturnfive> can anyone give me a example? 07:45 -!- foocraft [~dsc@dyn-86-36-43-113.wv.qatar.cmu.edu] has joined #go-nuts 07:47 -!- wrtp [~rog@92.17.35.133] has joined #go-nuts 07:53 < saturnfive> i have understand it. 07:53 < saturnfive> _, _, callErr := syscall.Syscall(uintptr(_StartGoService), 1, uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(ServiceName))), 0, 0) 07:55 -!- Project-2501 [~Marvin@82.84.77.163] has joined #go-nuts 07:58 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-165-54.clienti.tiscali.it] has quit [Ping timeout: 240 seconds] 08:08 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts 08:14 -!- dforsyth [~dforsyth@ec2-184-72-3-134.us-west-1.compute.amazonaws.com] has joined #go-nuts 08:25 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts 08:27 -!- ExtraSpice [~XtraSpice@78-62-101-194.static.zebra.lt] has joined #go-nuts 08:29 -!- photron [~photron@port-92-201-3-30.dynamic.qsc.de] has quit [Ping timeout: 240 seconds] 08:50 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has joined #go-nuts 08:56 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 08:57 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has quit [Quit: Leaving.] 08:57 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has joined #go-nuts 09:03 -!- ExtraSpice__ [~XtraSpice@78-62-101-194.static.zebra.lt] has joined #go-nuts 09:03 -!- ExtraSpice__ [~XtraSpice@78-62-101-194.static.zebra.lt] has quit [Read error: Connection reset by peer] 09:03 -!- ExtraSpice [~XtraSpice@78-62-101-194.static.zebra.lt] has quit [Quit: Leaving] 09:08 -!- aconran__ [~aconran-o@adsl-67-119-205-150.dsl.pltn13.pacbell.net] has joined #go-nuts 09:08 -!- aconran_ [~aconran-o@adsl-67-119-205-150.dsl.pltn13.pacbell.net] has quit [Read error: Operation timed out] 09:25 -!- nettok [~quassel@200.119.172.183] has quit [Ping timeout: 240 seconds] 09:29 -!- BlaSux [7f000001@69.195.144.4] has quit [Quit: Reconnecting] 09:29 -!- BlaSux [7f000001@69.195.144.4] has joined #go-nuts 09:29 -!- napsy [~luka@88.200.96.18] has joined #go-nuts 09:32 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 09:36 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has quit [Quit: JusticeFries] 09:41 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-166-120.clienti.tiscali.it] has joined #go-nuts 09:44 -!- Project-2501 [~Marvin@82.84.77.163] has quit [Ping timeout: 240 seconds] 09:48 -!- saturnfive [~saturnfiv@210.74.155.131] has quit [Read error: Connection reset by peer] 09:52 < mpl> it seems like gofmt doesn't trim the comments to a reasonable line length. am I missing an option to do that? 09:53 -!- saturnfive [~saturnfiv@210.74.155.131] has joined #go-nuts 09:55 < wrtp> mpl: gofmt avoids line truncation in general, i think 09:55 < Namegduf> Go doesn't have a style rule for line length 09:55 < Namegduf> Aside "if it looks too long, break it" 09:55 < wrtp> i often just pass a block of comments through sed 's:^//::' | fmt | sed 's:^://:' 09:56 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts 09:56 < aiju> doesn't gofmt fail if it doesn't start with package? 09:58 < mpl> wrtp: yah, I chord it through | 9 fmt -j in acme usually 10:01 -!- Days` [~david@quanthouse.cust.jaguar-network.net] has quit [Quit: leaving] 10:08 -!- vice_virtue [~vice@220-253-155-186.VIC.netspace.net.au] has joined #go-nuts 10:08 < wrtp> that's what i do. i've actually got two tiny shell scripts, a+ and a-, that strip or add prefixes to a line 10:08 < wrtp> so i'll do Edit |a- //|fmt|a+ // 10:09 < wrtp> which doesn't take too much tag space 10:10 < vice_virtue> Given the recent changes to gob and json to ignore unexported fields, are Unmarshal methods going to be written for things such as big.Int? 10:10 -!- jessta [~jessta@li7-205.members.linode.com] has joined #go-nuts 10:10 < vice_virtue> Just a curio 10:12 < wrtp> vice_virtue: you've got SetBytes 10:13 < wrtp> and SetString 10:13 < wrtp> they're pretty much equivalent to Unmarshal 10:13 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 10:14 -!- gabriel9 [~gabriel9@93.157.192.28] has left #go-nuts [] 10:15 -!- virtualsue [~chatzilla@nat/cisco/x-pejojnusrwriqwye] has joined #go-nuts 10:15 < vice_virtue> I know, and I wrote my own (un)marshaller functions for a type I made based upon big.Int, but it would be great if a type like that were to already have such functionality built in 10:16 < vice_virtue> I can see why you might not want it... it's sort-of a cross-dependency... and makes the source tree a little less pretty 10:16 < vice_virtue> but it makes the programmers life easier (I'm transporting DSA signatures over the wire) 10:16 < vice_virtue> Thanks, by the way 10:19 < wrtp> vice_virtue: yeah, gob doesn't make it easy to export custom encodings, does it? 10:19 < wrtp> json makes it easier 10:20 < vice_virtue> no, there's no way to do it for gob 10:20 < vice_virtue> it's alright for Json 10:20 -!- adu [~ajr@pool-173-79-54-138.washdc.fios.verizon.net] has quit [Quit: adu] 10:22 < wrtp> i think gob will probably get some way of doing it in not too long 10:23 < wrtp> you could raise an issue: "cannot use gob to encode big.Int" and describe your use case. 10:23 < vice_virtue> I think that's a good idea 10:23 -!- saturnfive [~saturnfiv@210.74.155.131] has quit [Read error: Connection reset by peer] 10:23 < vice_virtue> I will do that 10:40 -!- david [~david@124-171-39-37.dyn.iinet.net.au] has joined #go-nuts 10:41 -!- Days_ [~david@quanthouse.cust.jaguar-network.net] has joined #go-nuts 10:42 < Days_> Hi there, do you know how can i parse the first argument of the command line without the flag package ? :) 10:43 -!- david [~david@124-171-39-37.dyn.iinet.net.au] has quit [Client Quit] 10:45 < wrtp> os.Args 10:49 -!- saturnfive [~saturnfiv@219.145.1.244] has joined #go-nuts 10:55 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 10:56 -!- cde [~cde@unaffiliated/cde] has quit [Quit: leaving] 10:57 -!- ShadowIce` [~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined #go-nuts 10:57 -!- ShadowIce` [~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit [Changing host] 10:57 -!- ShadowIce` [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 10:57 -!- virtualsue [~chatzilla@nat/cisco/x-pejojnusrwriqwye] has quit [Ping timeout: 265 seconds] 10:58 -!- virtualsue [~chatzilla@nat/cisco/x-fcojzgswpypkupew] has joined #go-nuts 10:58 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Read error: Connection reset by peer] 11:01 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts 11:05 -!- zomgbie [~jesus@84.119.84.39] has joined #go-nuts 11:10 -!- tvw [~tv@e176006036.adsl.alicedsl.de] has joined #go-nuts 11:19 < erus_> Can't i do func (i some_interface) myfunc() ? 11:22 < nsf> no 11:22 < nsf> you can't I mean 11:22 -!- tvw [~tv@e176006036.adsl.alicedsl.de] has quit [Read error: Connection reset by peer] 11:23 < erus_> why not? 11:23 < nsf> uhm.. because spec doesn't allow this 11:23 < nsf> :D 11:24 < erus_> this is an outrage 11:25 -!- artefon [~thiagon@150.164.2.20] has quit [Read error: Operation timed out] 11:25 < wrtp> erus_: what does myfunc() mean? 11:26 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 11:26 < erus_> my function 11:26 < erus_> func (i some_interface) myfunc() { } 11:26 < wrtp> but your function is not a type 11:26 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts 11:26 < wrtp> oh, sorry 11:27 < wrtp> i misparsed 11:27 < nsf> wrtp: he was asking about interface type as a receiver 11:27 < wrtp> there's a good reason you can't declare methods on interfaces 11:27 < wrtp> i was parsing it as a value 11:28 < wrtp> e.g. x := func(i int) func() 11:28 -!- cde [~cde@2a01:e0b:1:134:ca0a:a9ff:fec8:eedb] has joined #go-nuts 11:28 < wrtp> (which is value) 11:28 < wrtp> valid 11:28 < erus_> whats the good reason? 11:29 -!- cde [~cde@2a01:e0b:1:134:ca0a:a9ff:fec8:eedb] has quit [Changing host] 11:29 -!- cde [~cde@unaffiliated/cde] has joined #go-nuts 11:29 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Remote host closed the connection] 11:30 < wrtp> if you could declare methods on an interface, then the method set declared in the interface would not reflect the methods available on that interface. 11:30 < wrtp> say i 11:30 < wrtp> that's not very clear :-) 11:32 < taruti> erus_: what are you trying to accomplish? 11:32 < erus_> I have a static triangle struct 11:32 < wrtp> at the moment, interfaces are compatible if they declare the same set of methods 11:33 < wrtp> if you could declare methods on interfaces it would break that 11:33 < erus_> and a dynamictriangle struct which is just a static triangle but it implements transform struct 11:33 < erus_> then bot have a Points() method to get the current points 11:33 < wrtp> erus_: just write a function instead of a method 11:34 < wrtp> func myfunc(i some_interface) { } 11:34 < erus_> wrtp: I have :) 11:34 < wrtp> so what's wrong with that? 11:34 < erus_> but i want to have a good moan about it aswel 11:34 < erus_> Its not good OOP 11:34 < wrtp> why not? 11:34 < erus_> triangle.Intersect() is nicer than TriangleIntersect(triangle) 11:35 < wrtp> why is the second one not good OOP? 11:35 < wrtp> it's just a slightly different syntax 11:35 < wrtp> lisp has OOP and doesn't use "." at all 11:36 -!- fabled [~fabled@mail.fi.jw.org] has quit [Quit: Ex-Chat] 11:37 -!- host46 [51260159@gateway/web/freenode/ip.81.38.1.89] has joined #go-nuts 11:37 -!- host46 [51260159@gateway/web/freenode/ip.81.38.1.89] has quit [Client Quit] 11:38 -!- shvntr [~shvntr@116.26.142.74] has joined #go-nuts 11:38 -!- host46 [51260159@gateway/web/freenode/ip.81.38.1.89] has joined #go-nuts 11:45 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts 11:46 -!- foocraft [~dsc@dyn-86-36-43-113.wv.qatar.cmu.edu] has quit [Ping timeout: 240 seconds] 11:48 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has quit [Ping timeout: 245 seconds] 11:48 -!- foocraft [~dsc@dyn-86-36-43-113.wv.qatar.cmu.edu] has joined #go-nuts 11:53 -!- foocraft [~dsc@dyn-86-36-43-113.wv.qatar.cmu.edu] has quit [Ping timeout: 240 seconds] 11:55 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 11:57 -!- zomgbie [~jesus@84.119.84.39] has quit [Ping timeout: 240 seconds] 11:59 < exch> the second one is a bit stuttery. having to repeat the type it aplies to in every function call 12:04 -!- niemeyer [~niemeyer@201-40-138-161.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 12:05 < wrtp> you don't have to write TriangleIntersect. often Intersect would be just as good 12:06 < wrtp> ioutil doesn't have ReaderReadAll does it? 12:06 -!- vsayer [~vivek@c-76-102-205-58.hsd1.ca.comcast.net] has joined #go-nuts 12:10 < exch> not that I am aware of 12:11 < exch> nope 12:11 < wrtp> sorry, it was a rhetorical question 12:12 < wrtp> just saying that using functions to act on interfaces isn't inherently stuttery 12:14 < plexdev> http://is.gd/aUc186 by [Hector Chu] in 2 subdirs of go/src/pkg/runtime/ -- runtime: take the callback return value from the stack 12:17 -!- visof_ [~visof@41.235.56.234] has joined #go-nuts 12:18 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 260 seconds] 12:21 -!- artefon [~thiagon@150.164.2.20] has quit [Ping timeout: 240 seconds] 12:26 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the connection] 12:29 -!- zomgbie [~jesus@84.119.84.39] has joined #go-nuts 12:32 -!- Maxdamantus [~Maxdamant@203-97-238-106.cable.telstraclear.net] has quit [Quit: leaving] 12:33 < mpl> wrtp: such a let down. no LongFunctionNamesAreAGoodThing like in java... ;) 12:35 < vice_virtue> http://en.wikipedia.org/wiki/Illegal_prime -- there's a sample program there which is written using go. I thought that was cool 12:37 < wrtp> unusual 12:37 < wrtp> it shouldn't import strings and os as . though 12:37 < wrtp> i think i'll change it 12:39 -!- dchest [~dchest@95.155.52.241] has joined #go-nuts 12:42 < rm445> good idea 12:43 < rm445> ISTR someone saying that import . has some legitimate use for debugging or testing, don't know what. 12:43 < rm445> otherwise it's considered extremely bad form, is it not? 12:44 < rm445> Plus, it hardly seems necessary for that program, so it seems likely there's someone out there who thinks it's a good idea to do that for all their programs. 12:49 -!- tav_ [~tav@92.7.102.123] has joined #go-nuts 12:49 -!- tav [~tav@92.7.102.123] has quit [Read error: Connection reset by peer] 12:49 < wrtp> yeah 12:51 < wrtp> the only place i see it used legitimately is in test files where the testing package uses the package that needs to be tested. 12:51 < wrtp> so it avoids a cyclic dependency but enables the test code to be written in the usual way. 12:51 < wrtp> i've changed the code. 12:51 < wrtp> i had to bite my lip not to change "number_str" to "s" and "number" to "n" 12:52 < vice_virtue> What happens when you import . "blah" ? - does it hide the import but require the linkage? 12:52 < wrtp> it imports all the names unqualified 12:52 < wrtp> so if you import . "os" you can use Exit not os.Exit 12:52 < Namegduf> That's something you're not supposed to do, though. 12:53 < wrtp> if you wanna hide the import but require the linkage you can use import _ "blah" 12:53 < vice_virtue> ohh, that's interesting. so in essence, it imports it into the current namespace 12:53 < wrtp> Namegduf: precisely 12:53 < wrtp> yes 12:53 < wrtp> it's almost never recommended 12:53 < vice_virtue> yeah, it looks like bad practice. Just a curio 12:54 < wrtp> as i said, it's useful in *_test.go files for low level packages 12:54 < wrtp> for instance, look at src/pkg/strings/strings_test.go 12:54 < wrtp> that uses import . "strings" 12:54 < wrtp> because the testing framework also uses the strings package 12:56 < vice_virtue> I'm writing a system with multiple packages, some depending on others. I want a top-level Makefile to make my life easier. Does anyone have a go package which has an inspiring Makefile I could adapt? 12:57 < wrtp> if in doubt, look to the go source tree... 12:57 < wrtp> you might want to look at gb too 12:57 < vice_virtue> what's gb? 12:58 -!- fhs [~fhs@pool-74-101-66-112.nycmny.east.verizon.net] has quit [Quit: leaving] 12:58 < vice_virtue> you're right, the Makefile in src/pkg is probably what I'm after - thanks 13:00 < wrtp> gb is john asmuth's "go build" utility 13:00 < wrtp> you sometimes see him round here as skelterjohn 13:01 < plexdev> http://is.gd/pwGkAr by [Adam Langley] in go/src/pkg/crypto/openpgp/packet/ -- crypto/openpgp/packet: four more packet types. 13:03 * wrtp is amused by the final status of issue 9. 13:03 < wrtp> only just noticed 13:04 < exch> hehe 13:08 -!- ildorn1 [~ildorn@dslb-088-067-159-196.pools.arcor-ip.net] has quit [Quit: Leaving.] 13:11 < vice_virtue> Lovely, the modified Makefile is working fairly well :) 13:14 < vice_virtue> Is there any relationship between DSA key pairs and RSA key pairs? Are they at all interchangeable? 13:18 < wrtp> no idea i'm afraid 13:20 < cde> vice_virtue: DSA is for signature and uses the discrete logarithm problem. RSA is for signature and ciphering and uses the integer factoring problem 13:20 < cde> so no, they can't be interchanged 13:20 < vice_virtue> cde, do you know of any algorithms which are good at both signing and encryption? 13:21 < cde> RSA is king, and fairly easy to use. however you don't use raw RSA, you need a padding scheme 13:21 < cde> generally, it's safer to stick to known protocols such as TLS 13:22 -!- neshaug [~oyvind@213.239.108.5] has quit [Quit: Lost terminal] 13:24 < vice_virtue> TLS isn't quite what I'm after, though - I want to be storing encrypted data. I could use DSA for authentication + AES for encrypting data.. but AES only supports up to 256bit. Maybe I'll look into RSA further. It seems to have weird restrictions on message size 13:27 -!- cenuij [~cenuij@78.112.41.178] has joined #go-nuts 13:27 -!- cenuij [~cenuij@78.112.41.178] has quit [Changing host] 13:27 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts 13:29 -!- artefon [~thiago@189.59.130.162.dynamic.adsl.gvt.net.br] has joined #go-nuts 13:34 -!- Natch [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #go-nuts 13:35 < cde> see http://www.mobilec.org/documentation/v1.10.3/api/html/aescrypt2_8c-source.html 13:35 < cde> it's not based on Go, but you can get the general idea 13:35 < cde> this uses HMAC for authentication 13:35 -!- Natch| [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Read error: Operation timed out] 13:36 -!- sauerbraten [~sauerbrat@p508CD9AB.dip.t-dialin.net] has joined #go-nuts 13:36 < vice_virtue> Thanks. Go has an AES package in the standard lib :), but 256 bits seems like the kind of thing people don't take seriously these days. 13:37 < vice_virtue> I'm writing a p2p file-sharing type app. Based around a Distributed Hash Table. I'm starting to swing around to the persuasion that separating signing and encryption/decryption might have its advantages 13:38 -!- Soultaker [~Soultaker@hell.student.utwente.nl] has quit [Ping timeout: 260 seconds] 13:38 < vice_virtue> That way, different directory nodes (or whatever I call them) can be shared with different groups of people. 13:39 < vice_virtue> Hmm... it all needs more though. Thanks for your help, cde 13:40 -!- Soultaker [~Soultaker@hell.student.utwente.nl] has joined #go-nuts 13:41 -!- dchest [~dchest@95.155.52.241] has quit [Ping timeout: 240 seconds] 13:41 < cde> AES-256 means you need 2^256 attempts 13:41 -!- dchest [~dchest@95.155.52.241] has joined #go-nuts 13:42 < cde> (to break it, although there are theoritical attacks that need less). not te be confused with RSA which is a completely different problem 13:42 < cde> equivalent of AES-256 would be RSA-4096 (_very_ roughly) in terms of needed computational power to break it 13:43 < vice_virtue> So you're saying that they're actually fairly comparable in strength? Is AES-256 the symmetric algorithm of choice, do you know? 13:43 < cde> well it's the recommended choice because everyone else uses it and it has been fairly studied 13:43 < cde> I would use RC4 myself, very simple and yet not broken 13:44 < Fish> AES-256 is currently the most recommended algorithm 13:45 < cde> yep 13:46 < vice_virtue> I actually feel very happy hearing that... almost irrationally 13:46 < Fish> RC4 and AES are very different in the sense AES is a block-cipher algorithm whereas RC4 is a stream-cipher algorithm 13:47 < Fish> they can be used for the same thing, but they don't deserve exactly the same purpose 13:47 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts 13:48 < Fish> RC4 have currently few slightly flaws and it exist some alternatives know, but not as largerly used 13:48 < cde> RC4 is tricky to use properly 13:48 < vice_virtue> I'm looking at http://golang.org/pkg/crypto/cipher/ and http://golang.org/pkg/crypto/rc4 13:49 < vice_virtue> cde, why is that? 13:49 < Fish> WEP for example, was not a proper usage of RC4 :) 13:50 < vice_virtue> rc4 seems to offer more flexibility in key length (1 to 256 bytes, vs 16, 24, or 32 bytes for the various AES schemes) 13:50 < dchest> vice_virtue: don't forget to add nonce to RC4 key 13:50 < vice_virtue> Fish, that worries me 13:50 < dchest> also, key flexibility means not too much if you have crypto hash functions :-) 13:50 < vice_virtue> dchest, you mean to rand.Reader.Read(key) it? 13:51 < vice_virtue> that's true, I would likely use a sha256 if playing with AES 13:51 < cde> Fish, exactly 13:52 -!- visof_ [~visof@41.235.56.234] has quit [Remote host closed the connection] 13:53 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Read error: Operation timed out] 13:53 < Ina> How about WPA2, is that a better usage of RC4? 13:54 < dchest> vice_virtue: if you have some non-random key, then do some concatenation: (key || nonce). Or built salt into key derivation function. 13:54 < Fish> WPA2 use AES, not RC4 13:55 < dchest> also, for RC4, skip the first n bytes of keystream, where n is something like 256 (bytes, not bits) 13:55 < vice_virtue> Thanks, dchest. As long as my key is nice and random, then I'm alright - yes? Or... are there issues with predictable plain-texts? 13:55 < Ina> Ah, sorry, my bad. 13:55 < vice_virtue> From what I recall, WEP failed because ARP packets were short and predictable 13:55 < Ina> I was confused with WPA1 13:55 < dchest> vice_virtue: as long as you don't use it for more than 1 encryption 13:56 < Ina> How about SSL then, is that a better usage of RC4? 13:56 < vice_virtue> dchest, a different key for each encrypted item? 13:56 < Fish> Ina: yes 13:57 < dchest> vice_virtue: yes. Or the same key where key = (original key || salt), and where salt is different 13:57 < Fish> but better use AES-256 instead 13:57 < dchest> just like you'd do with AES, which needs key and IV 13:58 < Fish> in the last TLS standard, RC4 is always in the list of recommanded cipher 13:58 < vice_virtue> I'll try and work out a deterministic scheme for making sure that the key is different each time 13:58 < Fish> but it will not last too long I think 13:58 < dchest> I agree with Fish, instead of trying to get RC4 right, use AES :-) 13:59 < cde> Ina: WPA2 uses AES in CCMP mode 14:00 < vice_virtue> Alright. And I'll use "Cipher Block Chaining" to try and get it right 14:00 < Ina> Also, keep in mind that every single encryption scheme can be broken given enough time. 14:00 < Fish> the only reason you would use RC4 instead of AES is RC4 is much faster (because it is a stream-cipher algorithm) 14:00 < Fish> but in overall, it's considered less secure 14:01 < dchest> vice_virtue: suggested reading: http://www.daemonology.net/blog/2009-06-11-cryptographic-right-answers.html 14:01 < cde> for file encryption, AES might be better suited in certain modes to access parts of the file without decrypting it all (I'm not suggesting ECB) 14:01 < vice_virtue> dchest, thank you very much :) 14:01 < cde> AES-CTR for instance 14:01 < Ina> Fish, of course, sometimes you need the data to be there without delay, and it doesn't matter if the data is broken in minutes, because the data, to be useful, needed to be there in milliseconds. 14:02 -!- sauerbraten [~sauerbrat@p508CD9AB.dip.t-dialin.net] has quit [Remote host closed the connection] 14:04 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined #go-nuts 14:05 < vice_virtue> :) the go libs have support for CTR via the cipher package 14:07 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts 14:08 < dchest> btw, I'm porting http://nacl.cace-project.eu/ to Go. Reference implementation will be in pure Go, but it will be slow :-) 14:08 < vice_virtue> dchest, that's a great article (hmm, I might be tired (1am here in AU), but it would be nice if tab completion worked on English words) 14:08 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts 14:09 -!- _F2client_ [~root@74.126.25.148.static.a2webhosting.com] has joined #go-nuts 14:09 < vice_virtue> dchest, do you have an existing application which needs NaCl, or do you prefer it over Go's existing OpenPGP-based crpyto? 14:09 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts [] 14:10 < dchest> vice_virtue: I'm thinking of writing one app using it, but right now it's mostly for fun 14:10 < vice_virtue> :) cool 14:12 -!- nighty__ [~nighty@x122091.ppp.asahi-net.or.jp] has joined #go-nuts 14:14 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit: Leaving.] 14:15 -!- hcl2 [~akuma@75.41.110.112] has joined #go-nuts 14:17 < rm445> Not to be a downer, but NaCl is generally used to refer to Google Native Client. 14:18 < rm445> Not that a name clash is necessarily a big problem (c.f. Adobe Flex and Apple Ping) 14:18 < vice_virtue> Yeah, it confused me too, at first 14:18 < dchest> rm445: yeah, confusing ) 14:18 < dchest> Issue 9 :) 14:20 < rm445> that too :-) 14:21 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit [Ping timeout: 240 seconds] 14:21 -!- skelterjohn [~jasmuth@50.14.27.213] has joined #go-nuts 14:23 -!- skelterjohn_ [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined #go-nuts 14:26 -!- vice_virtue [~vice@220-253-155-186.VIC.netspace.net.au] has quit [Ping timeout: 240 seconds] 14:27 -!- skelterjohn [~jasmuth@50.14.27.213] has quit [Ping timeout: 250 seconds] 14:35 -!- saturnfive [~saturnfiv@219.145.1.244] has left #go-nuts [] 14:42 -!- iant [~iant@67.218.109.241] has joined #go-nuts 14:43 -!- mode/#go-nuts [+v iant] by ChanServ 14:46 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection reset by peer] 14:47 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 14:49 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 14:52 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has joined #go-nuts 14:53 < madari> can someone explain why I keep seeing these doc.go files containing commented documentation and a 'package documentation' at the end of the file? 14:54 < gmilleramilar> how do I test for NaN ? 14:58 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has joined #go-nuts 14:58 < dchest> gmilleramilar: math.IsNaN() 14:58 < erus_> how can i get the smallest possible float<32/64> value? 14:58 < wrtp> madari: they're used by godoc for documenting commands 14:58 < gmilleramilar> dchest: o cool, missed that. 14:58 < gmilleramilar> thx 14:59 < madari> wrtp: I guess that applies to "package" documentation too 15:00 < madari> e.g. http://golang.org/src/pkg/fmt/doc.go 15:00 < madari> I suppose I should follow that practice too then 15:00 -!- davvid [~davvid@208-106-56-2.static.dsltransport.net] has quit [Ping timeout: 246 seconds] 15:01 < wrtp> well, godoc looks at all pre-package-declaration comments and turns them into the intro documentation for the package 15:03 < madari> yups I get it :) 15:04 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts 15:04 < wrtp> i don't really know why package documentation is used, not package main, for commands with go files 15:05 < wrtp> the godoc documentation could definitely be improved :-) 15:05 < madari> yeah that's strange 15:09 -!- host46 [51260159@gateway/web/freenode/ip.81.38.1.89] has quit [Quit: Page closed] 15:11 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts 15:15 -!- DerHorst [~Horst@e176097028.adsl.alicedsl.de] has joined #go-nuts 15:21 -!- nighty__ [~nighty@x122091.ppp.asahi-net.or.jp] has quit [Ping timeout: 250 seconds] 15:22 -!- emjayess [~emjayess@pix1.i29.net] has quit [Quit: Leaving] 15:23 -!- shvntr [~shvntr@116.26.142.74] has quit [Quit: leaving] 15:25 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4] 15:25 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts 15:25 -!- boscop [~boscop@f055068219.adsl.alicedsl.de] has joined #go-nuts 15:25 < skelterjohn> morning 15:26 < jumzi> yeah, right... morning! 15:27 -!- zomgbie [~jesus@84.119.84.39] has quit [Ping timeout: 255 seconds] 15:28 < skelterjohn> yep 15:28 < skelterjohn> isn't the whole world on the east coast of the united states? 15:30 -!- deso_ [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts 15:31 < skelterjohn> erus_: you around? 15:31 * wrtp is watching the sun about to set 15:32 < jumzi> skelterjohn: Well, atleast the united states 15:33 < erus_> hi skelterjohn 15:33 < plexdev> http://is.gd/cWLKF6 by [Wei Guangjing] in go/src/pkg/debug/pe/ -- debug/pe: ImportedSymbols fixes 15:34 < skelterjohn> erus_: a guy reported an issue having to do with some windows stuff for gb... would you mind helping me out a bit? :) 15:34 < erus_> sure 15:34 < erus_> have to be stealthy tho 15:35 < skelterjohn> lol 15:35 < skelterjohn> i don't want to get you fired 15:35 < skelterjohn> it's in the googlecode issue tracker 15:35 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts 15:36 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Read error: Operation timed out] 15:37 < dario_> buffer:= make([]byte, n); x:= string(buffer[:n/2]), now if i change buffer, x will change too, right ? 15:38 < dario_> cause it's a slice of buffer 15:38 < skelterjohn> no 15:38 < skelterjohn> string() will make a copy 15:38 < dario_> ok 15:38 < skelterjohn> strings are immutable 15:38 < dario_> thx 15:38 < skelterjohn> np 15:44 -!- kimelto [~kimelto@sd-13453.dedibox.fr] has joined #go-nuts 15:44 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts 15:44 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 15:45 -!- niemeyer [~niemeyer@201-40-138-161.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 240 seconds] 15:45 -!- gabriel9 [~gabriel9@93.157.192.28] has left #go-nuts [] 15:46 -!- Boney_ [~paul@203-158-33-53.dyn.iinet.net.au] has joined #go-nuts 15:48 -!- Boney [~paul@124-168-218-184.dyn.iinet.net.au] has quit [Read error: Operation timed out] 15:49 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se] has joined #go-nuts 15:50 -!- niemeyer [~niemeyer@201-40-138-161.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 15:52 -!- qjcg [~qjcg@76.70.26.25] has joined #go-nuts 15:52 -!- qjcg [~qjcg@76.70.26.25] has left #go-nuts [] 15:55 < erus_> skelterjohn: 15:55 < erus_> where is this mp3agic? 15:55 < skelterjohn> oh, the guy's personal project i'm sure 15:55 < skelterjohn> but does gb -t work for you? 15:55 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts 15:56 < erus_> I need a test case 15:56 < erus_> can i use src/pkg 15:56 < erus_> ? 15:56 < skelterjohn> uh...probably :) but you can also use go-gb/example 15:56 < skelterjohn> smaller, so if something goes wrong it will be easier to pick out 15:58 < dario_> "func()" is the type for function pointers of any signature [Y/n] ? 15:58 < skelterjohn> no 15:58 < exch> only those with no arguments and no return types 15:59 < dario_> ok 15:59 < dario_> thx 15:59 < skelterjohn> interface{} is a type for functions with any signature :) 15:59 < dario_> ^^ 15:59 < skelterjohn> because you can stick anything in an interface{} 15:59 < skelterjohn> but to call that function, you'll have to know what parameters and return value is expected 16:01 -!- niemeyer [~niemeyer@201-40-138-161.pltce701.dsl.brasiltelecom.net.br] has quit [Ping timeout: 240 seconds] 16:02 -!- iant [~iant@67.218.109.241] has quit [Quit: Leaving.] 16:03 -!- dchest [~dchest@95.155.52.241] has quit [Quit: dchest] 16:04 -!- niemeyer [~niemeyer@201-2-134-248.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 16:09 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Ping timeout: 240 seconds] 16:09 -!- dchest [~dchest@95.155.52.241] has joined #go-nuts 16:09 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined #go-nuts 16:10 -!- femtoo [~femto@95-89-248-108-dynip.superkabel.de] has joined #go-nuts 16:10 -!- dchest [~dchest@95.155.52.241] has quit [Client Quit] 16:10 -!- Maxdamantus [~Maxdamant@203-97-238-106.cable.telstraclear.net] has joined #go-nuts 16:12 -!- dchest [~dchest@95.155.52.241] has joined #go-nuts 16:12 -!- virtualsue [~chatzilla@nat/cisco/x-fcojzgswpypkupew] has quit [Ping timeout: 240 seconds] 16:14 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the connection] 16:16 -!- dchest [~dchest@95.155.52.241] has quit [Client Quit] 16:16 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has quit [Quit: JusticeFries] 16:21 -!- Venom_X [~pjacobs@adsl-99-20-147-171.dsl.aus2tx.sbcglobal.net] has joined #go-nuts 16:21 < yebyen> anyone want to chat over gist while I figure out this webframework biz? 16:21 < skelterjohn> what's gist? 16:22 < yebyen> probably take about a half an hour to finish hooking up mustache, sqlite, go-dbi, and web.go 16:22 < yebyen> i have some code, gist is a github pastebin 16:22 < yebyen> you saw most of it yesterday 16:22 < yebyen> there are more modules I looked up now though, that are not in go proper 16:23 < yebyen> that's the gist anyway 16:23 < yebyen> i don't mean that gist has added a chat feature 16:24 < yebyen> i'm going to try your go-gb 16:24 < yebyen> instead 16:25 < skelterjohn> cool, let me know how it goes 16:25 < yebyen> configuration-free :D 16:25 < yebyen> woohoo 16:26 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 16:26 -!- prip_ [~foo@host241-124-dynamic.36-79-r.retail.telecomitalia.it] has quit [Ping timeout: 272 seconds] 16:27 < yebyen> skelterjohn: the example fails catastrophically! 16:27 < skelterjohn> hah 16:27 < skelterjohn> try gb -g 16:28 < skelterjohn> maybe i should take the goinstalled pkg out of example 16:28 < yebyen> 2 broken targets 16:28 < yebyen> i don't see anything looks like a binary 16:29 < skelterjohn> pastebin the output? 16:30 < yebyen> is there a make clean? ^_^ 16:30 < yebyen> i can't get it to drop the _go_.8 files 16:30 < yebyen> i could just delete them 16:30 < yebyen> and start again 16:30 < skelterjohn> gb -c 16:30 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.] 16:30 < yebyen> oops 16:30 < yebyen> was trying -C and -P 16:30 < skelterjohn> gb -? will list all the command line options 16:31 < yebyen> argh 16:31 < yebyen> does debian have anything like wgetpaste 16:31 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Quit: Computer has gone to sleep.] 16:31 < yebyen> http://paste.pocoo.org/show/335908/ 16:31 < erus_> aptitude install *paste* 16:31 < yebyen> that's with gb -g 16:32 < skelterjohn> whoah, something weird is happening there 16:32 < skelterjohn> are you doing this from the example directory? 16:32 < yebyen> there's pastebinit 16:33 -!- emjayess [~emjayess@pix1.i29.net] has quit [Ping timeout: 240 seconds] 16:33 < yebyen> yeah i am in examples 16:33 < yebyen> where the readme says to run it from 16:33 < skelterjohn> gonna go to pmsg to stop spamming 16:35 -!- zomgbie [~jesus@212095007084.public.telering.at] has joined #go-nuts 16:38 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal] 16:39 -!- prip_ [~foo@host130-128-dynamic.52-79-r.retail.telecomitalia.it] has joined #go-nuts 16:49 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts 16:49 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 16:50 -!- femtoo [~femto@95-89-248-108-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 16:50 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts 16:52 -!- jbooth1 [~jay@209.249.216.2] has joined #go-nuts 16:55 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has quit [Ping timeout: 245 seconds] 16:59 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal] 17:09 -!- temoto [~temoto@81.19.91.9] has quit [Remote host closed the connection] 17:12 -!- emjayess [~emjayess@pix1.i29.net] has quit [Ping timeout: 276 seconds] 17:13 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-169-27.clienti.tiscali.it] has joined #go-nuts 17:14 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts 17:16 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-166-120.clienti.tiscali.it] has quit [Ping timeout: 276 seconds] 17:18 -!- iant [~iant@nat/google/x-faoxuawnglmmhwpj] has joined #go-nuts 17:18 -!- mode/#go-nuts [+v iant] by ChanServ 17:19 < wrtp> i've just put a new blog post up here: http://rogpeppe.wordpress.com/2011/02/10/bidirectional-rpc-with-netchan/ 17:19 < wrtp> i'd be interested in any feedback. 17:19 < wrtp> it's a bit too long probably, but i hope it's at least a little bit interesting. 17:21 < wrtp> oh yeah, it needs CL 4119055 installed to work 17:21 < wrtp> hopefully it'll be submitted soon. 17:25 -!- foocraft [~dsc@dyn-86-36-43-113.wv.qatar.cmu.edu] has joined #go-nuts 17:26 -!- zomgbie [~jesus@212095007084.public.telering.at] has quit [Ping timeout: 255 seconds] 17:32 -!- iant [~iant@nat/google/x-faoxuawnglmmhwpj] has quit [Quit: Leaving.] 17:34 -!- Venom_X [~pjacobs@adsl-99-20-147-171.dsl.aus2tx.sbcglobal.net] has quit [Quit: Venom_X] 17:35 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Remote host closed the connection] 17:36 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the connection] 17:37 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts 17:38 -!- iant [~iant@nat/google/x-qgcjepcshslgcalj] has joined #go-nuts 17:38 -!- mode/#go-nuts [+v iant] by ChanServ 17:41 -!- femtoo [~femto@95-89-248-108-dynip.superkabel.de] has joined #go-nuts 17:41 -!- deso_ [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the connection] 17:43 -!- temoto [~temoto@81.19.91.9] has joined #go-nuts 17:44 -!- virtualsue [~chatzilla@nat/cisco/x-sygzmgbbmjlmsdpf] has joined #go-nuts 17:49 < wrtp> hmm, obviously it's not that interesting. oh well. 17:52 -!- _F2client_ [~root@74.126.25.148.static.a2webhosting.com] has quit [Quit: Ex-Chat] 17:55 < skelterjohn> hey, i was out to lunch 17:55 < skelterjohn> gimme a minute here 17:56 < artefon> wrtp: seems very interesting, i'll read it later 17:56 -!- DerHorst [~Horst@e176097028.adsl.alicedsl.de] has quit [Remote host closed the connection] 17:57 < wrtp> ah, lunchtime in the US! i understand the lull now... 17:57 < wrtp> artefon: thanks. let me know if i pitched it at about the right level. 17:59 -!- erus` [~tommo@host86-135-160-221.range86-135.btcentralplus.com] has joined #go-nuts 18:01 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts 18:07 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 18:11 -!- dchest [~dchest@95.155.52.241] has joined #go-nuts 18:13 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has joined #go-nuts 18:15 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts 18:16 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Quit: Leaving.] 18:16 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts 18:17 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed the connection] 18:22 -!- keithcascio [~keithcasc@nat/google/x-wzvekwhaqmaokesf] has joined #go-nuts 18:24 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts 18:29 -!- cafesofie [~cafesofie@ool-4a5978f2.dyn.optonline.net] has quit [Remote host closed the connection] 18:38 -!- gabriel9 [~gabriel9@93.157.192.28] has left #go-nuts ["Konversation terminated!"] 18:40 -!- cafesofie [~cafesofie@ool-4a5978f2.dyn.optonline.net] has joined #go-nuts 18:41 -!- zomgbie [~jesus@212095007002.public.telering.at] has joined #go-nuts 18:43 < skelterjohn> wrtp: "but if we are to use this to run an RPC service over" makes me think of someone in a car plowing through a crowd of RPC service O:-) 18:44 -!- photron [~photron@port-92-201-3-30.dynamic.qsc.de] has joined #go-nuts 18:46 < wrtp> good point 18:48 < mdxi> SIGKILLDOZER 18:48 < aiju> SIGHEIL 18:48 < wrtp> changed 18:49 < skelterjohn> wrtp: I am having a bit of trouble following what's going on in that blog post, but that might not be horrible 18:49 < skelterjohn> i don't have a lot of experience dealing with sockets, RPC or netchan 18:51 -!- artefon [~thiago@189.59.130.162.dynamic.adsl.gvt.net.br] has quit [Quit: bye] 18:51 < plexdev> http://is.gd/s9pFKO by [Andrew Gerrand] in go/src/pkg/json/ -- json: correct Marshal documentation 18:53 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Ping timeout: 245 seconds] 19:01 < erus`> someone should port box2d... Don't look at me... Seriously... OK, ok I'll do it. 19:01 -!- femtooo [~femto@95-89-248-108-dynip.superkabel.de] has joined #go-nuts 19:01 -!- Natch [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has joined #go-nuts 19:04 -!- Natch| [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has quit [Ping timeout: 245 seconds] 19:04 -!- femtoo [~femto@95-89-248-108-dynip.superkabel.de] has quit [Ping timeout: 240 seconds] 19:08 < plexdev> http://is.gd/0gaKe3 by [Roger Peppe] in go/src/pkg/fmt/ -- fmt: fix minor typo 19:12 < skelterjohn> erus`: are you leaning towards gamedev stuff? 19:12 < skelterjohn> first some graphics stuff, now some physics stuff 19:12 < erus`> pretty much 19:13 < erus`> i cant get Go-SDL or Go-OpenGL to build on windows yet though so any game would have a limited audience 19:13 < skelterjohn> i think a good way to do GUI in go is html5 19:14 < skelterjohn> an app would spawn a web server and a chrome window, and connect the two 19:14 < skelterjohn> i'm not sure how all the pieces in between work, though 19:14 < skelterjohn> never done anything with html5 19:14 < erus`> websockets 19:14 < skelterjohn> but it seems powerful 19:14 < skelterjohn> well sure, i know how the basics work 19:15 < erus`> yeah check out Three.js 19:15 < skelterjohn> but i don't know how to do html5. that's what i should have said 19:15 < skelterjohn> what's Three.js 19:15 < erus`> its a nice 3d engine using WebGL with canvas fallback 19:15 -!- huin [~huin@82.153.223.36] has joined #go-nuts 19:15 < skelterjohn> if you can integrate go and that, i'd help you with box2d :) 19:16 < skelterjohn> i have some pretty decent box2d experience 19:16 < Venom_X> erus`: I'm playing with those technologies. What are you trying to do? Maybe we share interests.. 19:16 < skelterjohn> wow, three.js is pretty neat 19:16 < skelterjohn> uh oh - we may be witnessing a convergence 19:16 < erus`> skelterjohn: come on this has been coming for years 19:16 < skelterjohn> what, box2d in go? 19:17 < erus`> no the fact that all apps are gonna be in a web browser in stupid javascript 19:17 -!- sauerbraten [~sauerbrat@p508CD9AB.dip.t-dialin.net] has joined #go-nuts 19:17 < skelterjohn> oh - i meant the convergence of you, venom_x and me all being interested in doing something with box2d and go 19:18 < erus`> well skelterjohn I think you should port it because your very clever 19:18 < skelterjohn> uh huh 19:19 < skelterjohn> unfortunately i have a phd to finish, so i can't devote a year of work to this issue 19:19 < erus`> I have trouble finding the on switch 19:19 < skelterjohn> but i'd be happy to be involved in a project 19:19 < skelterjohn> i'll be back later tonight, i have to go torture children 19:19 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn] 19:20 < erus`> Venom_X: someone did a straight forward port to javascript so it can't be that hard 19:21 < Venom_X> ah, cool. Where is that? Got a link? 19:22 < Venom_X> oh, this: http://box2d-js.sourceforge.net/ ? 19:25 -!- nettok [~quassel@200.119.172.170] has joined #go-nuts 19:25 -!- femtooo [~femto@95-89-248-108-dynip.superkabel.de] has quit [Quit: Leaving] 19:34 -!- TheMue [~TheMue@p5DDF55E9.dip.t-dialin.net] has joined #go-nuts 19:37 -!- m4dh4tt3r [~Adium@46.sub-75-210-131.myvzw.com] has joined #go-nuts 19:42 -!- femtoo [~femto@95-89-248-108-dynip.superkabel.de] has joined #go-nuts 19:45 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts 19:52 -!- sauerbraten [~sauerbrat@p508CD9AB.dip.t-dialin.net] has quit [Quit: Leaving] 19:58 -!- photron [~photron@port-92-201-3-30.dynamic.qsc.de] has quit [Ping timeout: 240 seconds] 20:03 -!- huin [~huin@82.153.223.36] has quit [Ping timeout: 250 seconds] 20:05 -!- huin [~huin@91.84.176.107] has joined #go-nuts 20:08 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 20:09 -!- zomgbie [~jesus@212095007002.public.telering.at] has quit [Ping timeout: 255 seconds] 20:10 < plexdev> http://is.gd/BP9n2O by [Andrew Gerrand] in go/src/pkg/encoding/binary/ -- encoding/binary: update package doc string to be more comprehensive 20:11 -!- zomgbie [~jesus@212095007050.public.telering.at] has joined #go-nuts 20:16 -!- Project_2501 [~Marvin@82.84.95.167] has joined #go-nuts 20:16 -!- zomgbie [~jesus@212095007050.public.telering.at] has quit [Ping timeout: 255 seconds] 20:17 -!- erus` [~tommo@host86-135-160-221.range86-135.btcentralplus.com] has quit [Ping timeout: 240 seconds] 20:17 -!- zomgbie [~jesus@213.162.68.41] has joined #go-nuts 20:19 -!- femtoo [~femto@95-89-248-108-dynip.superkabel.de] has quit [Read error: Connection reset by peer] 20:19 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-169-27.clienti.tiscali.it] has quit [Ping timeout: 250 seconds] 20:20 -!- m4dh4tt3r [~Adium@46.sub-75-210-131.myvzw.com] has quit [Ping timeout: 255 seconds] 20:20 -!- lorrden [~lorrden@2001:470:1f15:1486:223:12ff:fe22:afeb] has joined #go-nuts 20:21 < cde> Venom_X: try http://www.airtightinteractive.com/demos/cubes_three/ in chrome 9. cool demo 20:21 -!- lorrden [~lorrden@2001:470:1f15:1486:223:12ff:fe22:afeb] has quit [Quit: lorrden] 20:22 -!- lorrden [~lorrden@2001:470:1f15:1486:223:12ff:fe22:afeb] has joined #go-nuts 20:23 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Ping timeout: 245 seconds] 20:25 < Venom_X> cde: yeah, that's pretty awesome 20:26 < cde> the human 3d body demo by google is also super cool 20:26 -!- jesusaurus [jesusaur@firefly.cat.pdx.edu] has left #go-nuts ["WeeChat 0.3.2"] 20:26 -!- m4dh4tt3r [~Adium@75.144.24.109-BusName-walnutcreek.ca.hfc.comcastbusiness.net] has joined #go-nuts 20:31 -!- homa_rano [~erice@hmsvelociraptor.csail.mit.edu] has quit [Ping timeout: 240 seconds] 20:31 < Venom_X> Yeah, it's really incredible 20:38 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts 20:39 -!- zomgbie [~jesus@213.162.68.41] has quit [Ping timeout: 250 seconds] 20:41 < plexdev> http://is.gd/Mz4gkQ by [Russ Cox] in go/src/pkg/runtime/windows/ -- runtime: complete windows SysReserve 20:55 -!- zomgbie [~jesus@85-127-216-23.dynamic.xdsl-line.inode.at] has joined #go-nuts 21:00 -!- lmoura_ [~lauromour@186.212.117.110] has quit [Quit: Leaving] 21:00 -!- lorrden [~lorrden@2001:470:1f15:1486:223:12ff:fe22:afeb] has quit [Quit: lorrden] 21:06 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts 21:08 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal] 21:09 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten. Desu~] 21:12 -!- ssb [~ssb@213.167.39.150] has quit [Ping timeout: 255 seconds] 21:13 -!- foocraft [~dsc@dyn-86-36-43-113.wv.qatar.cmu.edu] has quit [Ping timeout: 240 seconds] 21:13 -!- phalax [~phalax@c213-100-72-128.swipnet.se] has joined #go-nuts 21:14 -!- ssb [~ssb@213.167.39.150] has joined #go-nuts 21:20 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X] 21:33 < dforsyth> if i compile go on an ec2 instance running freebsd i consistently get a bus error when linking chain... 21:38 -!- homa_rano [~erice@hmsvelociraptor.csail.mit.edu] has joined #go-nuts 21:52 -!- VanDamas [~VanDamas@ip-85-206-52-37.davgita.lt] has joined #go-nuts 21:54 -!- zomgbie [~jesus@85-127-216-23.dynamic.xdsl-line.inode.at] has quit [Quit: Lost terminal] 21:54 -!- VanDamas [~VanDamas@ip-85-206-52-37.davgita.lt] has quit [Killed (idoru (Spam is off topic on freenode.))] 21:55 -!- phalax [~phalax@c213-100-72-128.swipnet.se] has quit [Ping timeout: 240 seconds] 22:08 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the connection] 22:16 -!- Venom_X [~pjacobs@75.92.43.21] has joined #go-nuts 22:19 -!- Guest1544 [~irc@209.17.191.58] has quit [Read error: Connection reset by peer] 22:19 -!- irc [~irc@209.17.191.58] has joined #go-nuts 22:20 -!- Adys [~Adys@cpc7-chap8-2-0-cust19.aztw.cable.virginmedia.com] has joined #go-nuts 22:20 -!- Adys [~Adys@cpc7-chap8-2-0-cust19.aztw.cable.virginmedia.com] has quit [Changing host] 22:20 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 22:20 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the connection] 22:21 -!- huin [~huin@91.84.176.107] has quit [Quit: bed] 22:21 < taruti> Is there a way to access a random element of a hash table? 22:21 -!- Adys [~Adys@cpc7-chap8-2-0-cust19.aztw.cable.virginmedia.com] has joined #go-nuts 22:21 -!- Adys [~Adys@cpc7-chap8-2-0-cust19.aztw.cable.virginmedia.com] has quit [Changing host] 22:21 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 22:25 -!- TheMue [~TheMue@p5DDF55E9.dip.t-dialin.net] has quit [Quit: TheMue] 22:27 -!- wrtp [~rog@92.17.35.133] has quit [Quit: wrtp] 22:28 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed the connection] 22:31 -!- erus_ [5687a0dd@gateway/web/freenode/ip.86.135.160.221] has joined #go-nuts 22:32 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: Quit] 22:36 -!- Adys [~Adys@cpc7-chap8-2-0-cust19.aztw.cable.virginmedia.com] has joined #go-nuts 22:36 -!- Adys [~Adys@cpc7-chap8-2-0-cust19.aztw.cable.virginmedia.com] has quit [Changing host] 22:36 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts 22:39 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts 22:40 -!- rpdillon [~user@12.9.187.140] has joined #go-nuts 22:41 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se] has quit [Remote host closed the connection] 22:44 < plexdev> http://is.gd/4xtPl4 by [Brad Fitzpatrick] in go/src/pkg/http/ -- http: add Server type supporting timeouts 22:46 < erus_> type token string; tkns := []string{ "hi", "Hey" }; ts := []token(tkns) // It wont let me do this 22:47 < erus_> I have to make a whole new slice? 22:48 < exch> yes 22:49 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: sudo rm -R /] 22:52 < KirkMcDonald> But []token{ "hi", "hey" } works, doesn't it? 22:54 < exch> yes 22:57 < rl> It doesn't work to copy slices? 22:57 < rl> Or is it the cast that fails? 22:57 -!- itrekkie_ [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts 22:58 < erus_> cast fails 22:58 < erus_> anyone good at regex? 22:59 < erus_> regexp.MustCompile(`[^ \t\r\n]+|"[^"]+"|//[^\r\n]+`) instead of or //[etc i want NOT 22:59 < erus_> i have no idea how todo that 22:59 < rl> not what? 23:00 < rl> what are you trying to match? 23:01 < erus_> not comments 23:01 < erus_> (`[^ \t\r\n]+|"[^"]+" but not //[^\r\n]+`) 23:03 < KirkMcDonald> You're writing a lexer. 23:03 < exch> regexp is a bad idea for code parsers 23:03 < rl> if these are done per line can't you just check that there isn't a // infront of the rest? that should rule out comments 23:03 < KirkMcDonald> But an excellent idea for a lexer. 23:04 < rl> ^[^ 23:04 < rl> oops 23:05 < erus_> I dont need to write a whole lexer 23:05 < erus_> i just these three conditions 23:05 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 23:05 < KirkMcDonald> A very simple lexer, than. 23:05 < KirkMcDonald> then* 23:05 < rl> tried to write a regex and it's a bit tricky, you might actually need a lexer, or someone who's handy with the shadier corners of regular expressions 23:05 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit: Computer has gone to sleep.] 23:05 < erus_> seperate by white space, unless in quotes, ignore comments 23:05 < rl> with lookahead and lookbehind 23:06 < KirkMcDonald> erus_: Write three regexes, one for each of those things. 23:06 < rl> "now you have 4 problems" 23:06 < erus_> ok 23:07 < KirkMcDonald> erus_: Then a loop: Try to match each regex, in order, against the current position in the string. Then advance to the end of the match. 23:07 < erus_> yuck 23:07 < KirkMcDonald> Depending on which thing matches, there you are. 23:07 < erus_> i might as well write a lexer 23:07 < KirkMcDonald> Heh. That basically *is* a lexer. 23:07 -!- KingPhilroy [~kingphilr@shc-nat-newhall.stonehill.edu] has joined #go-nuts 23:08 -!- artefon [~thiago@189.59.130.162.dynamic.adsl.gvt.net.br] has joined #go-nuts 23:08 < rl> can't you use lookbehind somehow to match a pattern only if there isn't a // behind it somewhere? 23:08 < erus_> it splits by white space 23:09 < erus_> so i dont think i can do than 23:09 < erus_> unless i remove comments in the first pass 23:09 < erus_> aaaaah :) 23:09 < KirkMcDonald> So you have four kinds of tokens. 23:09 < KirkMcDonald> Whitespace, stuff that isn't whitespace, comments, and quoted text. 23:09 < erus_> yep 23:10 < KirkMcDonald> So, four regexes. 23:11 -!- vice_virtue [~vice@220-253-155-186.VIC.netspace.net.au] has joined #go-nuts 23:11 < rl> Ok, I'm switching to the "you want a lexer" camp. A loop over the characters in the string is starting to sound much simpler. 23:12 < erus_> Regexp.ReplaceAllString() makes it dead easy 23:12 < exch> as I stated, regexp for code parsing/tokenizing is a bad idea ;) 23:12 < rl> Yes, I realize the error of my ways 23:12 < KirkMcDonald> exch: Really? Regexes are made for tokenizing. 23:12 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined #go-nuts 23:12 < exch> no, they are made for finding patterns 23:13 < rl> Loop over it, keep state of whether you're inside a quote or not. 23:13 < KirkMcDonald> As long as the language in question doesn't have recursive tokens... 23:13 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.] 23:13 < KirkMcDonald> (Like D's nesting block comments...) 23:13 < rl> If you're outside of a quote and hit a space save it, if you hit a // go to the next line 23:14 < rl> If you're inside a quote keep going until you hit an un-escaped end-quote 23:14 < rl> Hey, wait, you don't check for that in your regex. 23:14 < rl> erus_: Do you account for the fact that a " could be escaped and not mean the end of the string? 23:14 < erus_> nope 23:15 < erus_> not allowed in source code until i write a real lexer 23:15 < KirkMcDonald> "(\"|[^"])*" 23:15 < rl> Heh. Well what I wrote sounds much simpler than the regexes 23:15 < rl> it's just a for loop with a boolean and a couple of if statements 23:15 < skelterjohn> evening 23:16 < exch> lo 23:16 < erus_> god how do people write interpretters... this is gonna be a nightmare 23:16 < rl> most people don't 23:16 -!- emjayess [~emjayess@pix1.i29.net] has quit [Quit: Leaving] 23:17 < exch> don't try to write it all at once. just break the parsing up in small managable chunks and take it from there. Once it's done it'll a lot easier to understand and you can start optimizing/merging bits 23:17 -!- djcapelis [~djc@blender/coder/DJCapelis] has quit [Ping timeout: 255 seconds] 23:18 -!- m4dh4tt3r1 [~Adium@75.144.24.109-BusName-walnutcreek.ca.hfc.comcastbusiness.net] has joined #go-nuts 23:18 -!- djcapelis [~djc@capelis.dj] has joined #go-nuts 23:18 -!- djcapelis [~djc@capelis.dj] has quit [Changing host] 23:18 -!- djcapelis [~djc@blender/coder/DJCapelis] has joined #go-nuts 23:21 -!- m4dh4tt3r [~Adium@75.144.24.109-BusName-walnutcreek.ca.hfc.comcastbusiness.net] has quit [Ping timeout: 245 seconds] 23:27 < exch> erus_: this is part of a project I abandoned a while ago, but the tokenizer works well enough. it should at least give you an idea of what is going on. https://gist.github.com/821602 23:30 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-149-210.clienti.tiscali.it] has joined #go-nuts 23:31 < plexdev> http://is.gd/tGyaWh by [Alex Brainman] in 5 subdirs of go/src/pkg/ -- syscall: change windows apis with bool return value to return errno instead 23:32 < skelterjohn> i wrote an interpreter for a language i made up once 23:33 < skelterjohn> back in...2002 23:33 < skelterjohn> once you understand how recursive grammars work it's not so tough 23:33 < exch> indeed 23:33 -!- Project_2501 [~Marvin@82.84.95.167] has quit [Ping timeout: 276 seconds] 23:35 < cde> erus_: http://www.diku.dk/hjemmesider/ansatte/torbenm/Basics/basics_lulu2.pdf 23:35 < cde> it's a free book 23:36 < erus_> Thanks 23:37 -!- foocraft [~dsc@78.101.56.175] has joined #go-nuts 23:37 < cde> "engineering a compiler" is also easy to follow, and instructive 23:38 < cde> the book wasn't cheap, but it's a good reference 23:40 -!- djcapelis [~djc@blender/coder/DJCapelis] has quit [Ping timeout: 240 seconds] 23:40 -!- djcapelis [~djc@blender/coder/DJCapelis] has joined #go-nuts 23:42 -!- unhygienix [~unhygieni@host86-162-216-117.range86-162.btcentralplus.com] has joined #go-nuts 23:47 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4] 23:55 -!- virtualsue [~chatzilla@nat/cisco/x-sygzmgbbmjlmsdpf] has quit [Ping timeout: 250 seconds] 23:57 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts --- Log closed Fri Feb 11 00:00:05 2011