--- Log opened Wed Aug 10 00:00:20 2011
00:00 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza]
00:01 -!- Nisstyre [~nisstyre@infocalypse-net.info] has joined #go-nuts
00:12 < Bigbear1> Is it possible to make a free website using Go!?
00:13 < exch> You can ake as many websites as you like
00:13 < exch> *make
00:13 < nicka1> I thought that was limited by GOMAXPROCS
00:14 < Bigbear1> how can I host them?\
00:14 < exch> Bigbear1: Find a server where you can upload and run custom
binaries
00:14 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has quit [Read error:
Operation timed out]
00:14 < Bigbear1> go has a web server binary?
00:15 < exch> Or go for an Appengine account.  Those are not free though
00:15 < Bigbear1> how much?
00:15 < exch> Bigbear1: All Go programs are compiled executables
00:15 < Bigbear1> so I make a website program and compile it?
00:15 < Bigbear1> then upload it to a server?
00:15 < exch> basically, yes
00:16 < Bigbear1> is there a guide?
00:17 < exch> For Go itself, there is golang.org which has various articles
on how to get started.  On how to upload and run stuf on a server, you'll have to
look elsewhere I'm afraid
00:18 < Bigbear1> But how do I make a website program?
00:20 < f2f> define "website program"
00:20 < exch> Bigbear1: http://www.youtube.com/watch?v=-i0hat7pdpk
00:22 -!- hoozleboozle [~Adium@nat/google/x-ukmesjkxuklicupy] has quit [Quit:
Leaving.]
00:22 < qeed> if i inherit some struct data and can use their methods, but i
override it with another method, is there anyway to call the original function?
http://pastie.org/2347730
00:23 < qeed> want to calls a Foo from B, do i cast?
00:24 < exch> myb.A.Foo()
00:25 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 258 seconds]
00:25 < qeed> thanks
00:25 -!- Bigbear1 [~Cody@d173-181-33-58.abhsia.telus.net] has quit [Read error:
Connection reset by peer]
00:34 -!- hoozleboozle [~Adium@67.218.107.169] has joined #go-nuts
00:34 -!- miker2 [~miker2@pool-96-245-224-59.phlapa.fios.verizon.net] has quit
[Quit: Computer has gone to sleep.]
00:57 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 258
seconds]
00:58 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
01:00 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts
01:06 -!- meling [~meling@100.81-167-33.customer.lyse.net] has quit [Read error:
Connection reset by peer]
01:07 -!- meling [~meling@100.81-167-33.customer.lyse.net] has joined #go-nuts
01:08 -!- meling_ [~meling@100.81-167-33.customer.lyse.net] has joined #go-nuts
01:08 -!- meling [~meling@100.81-167-33.customer.lyse.net] has quit [Read error:
Connection reset by peer]
01:09 -!- meling [~meling@81.167.33.100] has joined #go-nuts
01:09 -!- meling_ [~meling@100.81-167-33.customer.lyse.net] has quit [Read error:
Connection reset by peer]
01:10 -!- miker2 [~miker2@pool-96-245-224-59.phlapa.fios.verizon.net] has joined
#go-nuts
01:11 -!- meling [~meling@81.167.33.100] has quit [Read error: Connection reset by
peer]
01:11 -!- meling [~meling@100.81-167-33.customer.lyse.net] has joined #go-nuts
01:19 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 240
seconds]
01:19 -!- gnuvince_ [~vince@destiny.0wn.me] has quit [Remote host closed the
connection]
01:19 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
01:20 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
01:29 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 240
seconds]
01:37 -!- hoozleboozle [~Adium@67.218.107.169] has quit [Quit: Leaving.]
01:49 < f2f> hmm.  i wonder if gnuvince even saw my solution to his problems
01:50 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
01:56 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 263
seconds]
01:57 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
02:07 -!- hargettp [~hargettp@pool-71-174-131-129.bstnma.east.verizon.net] has
quit [Quit: Leaving...]
02:10 -!- shoenig [~shoenig@bastion.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
02:18 -!- keithcascio [~keithcasc@nat/google/x-edxntagshzfypehl] has quit [Quit:
Leaving]
02:26 -!- benjack [~benjack@bb220-255-251-77.singnet.com.sg] has joined #go-nuts
02:27 -!- wallerdev [~wallerdev@c-68-60-43-43.hsd1.mi.comcast.net] has quit [Quit:
wallerdev]
02:31 -!- miker2 [~miker2@pool-96-245-224-59.phlapa.fios.verizon.net] has quit
[Quit: Computer has gone to sleep.]
02:31 -!- pearle [~pearle@blk-224-181-222.eastlink.ca] has quit [Ping timeout: 255
seconds]
02:34 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 276
seconds]
02:34 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
02:42 -!- rcrowley_ [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
02:47 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
02:47 -!- qeed [~qeed@adsl-98-85-57-153.mco.bellsouth.net] has quit [Quit:
Leaving]
02:51 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
02:53 -!- JakeyChan [~JakeyChan@116.226.101.244] has joined #go-nuts
02:53 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 240
seconds]
02:53 < moraes> poor bigbear1.  app engine has a go guide.
02:54 < skelterjohn> bigbear has come in here a few time, asking the same
question each time
02:54 < moraes> ah :)
02:55 < exch> He seems to prefer a button that says 'Make me awesome webz"
instead of actually doing some research
02:55 -!- Soak [Soak@gas45-5-88-182-12-78.fbx.proxad.net] has quit []
02:55 < moraes> 'is there a clone_facebook package somewhere?'
02:55 < exch> I suppose if you've never actually made a website, or written
any code, it can be a bit puzzling
02:56 < moraes> i imagine too
02:56 < moraes> i learned programming making sites.  i'm actually puzzled by
desktop programming.
02:57 < moraes> puzzling in web dev (i imagine) is that it is a lot of
manual stuff; and there're several technologies that you need to combine.
02:58 < moraes> not rocket science but hard to get all at once
02:59 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
02:59 -!- shoenig [~shoenig@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
02:59 < skelterjohn> i learned programming with desktop apps, i'm kind of
puzzled by web sites
02:59 < skelterjohn> (not being snarky)
03:04 < moraes> skelterjohn, which editor you use for go?
03:05 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 252
seconds]
03:05 < moraes> uriel, i updated jEdit's syntax definition for go following
language changes...  hm, will drop it on github or something.
03:06 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
03:06 < moraes> go seems to change fast.  how problematic that is?
03:11 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 252
seconds]
03:16 -!- franciscosouza [~francisco@187.105.21.97] has joined #go-nuts
03:16 -!- Bigbear1 [~Cody@d173-181-33-58.abhsia.telus.net] has joined #go-nuts
03:17 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
03:20 < kevlar> moraes: it's not that problematic
03:21 < kevlar> moraes: especially with gofix
03:24 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 258
seconds]
03:24 < moraes> i see.  still.  it is new and evolving fast.
03:25 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
03:26 < moraes> uriel,
http://code.google.com/p/go-stuff/source/browse/#hg%2Feditors%2FjEdit
03:26 < moraes> :)
03:27 < moraes> best jedit mode evah
03:34 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 260
seconds]
03:34 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
03:42 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 250
seconds]
03:42 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
03:51 -!- niemeyer [~niemeyer@72-254-82-76.client.stsn.net] has joined #go-nuts
03:54 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 264 seconds]
04:08 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 240
seconds]
04:09 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
04:19 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 260
seconds]
04:19 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
04:22 -!- Bigbear1 [~Cody@d173-181-33-58.abhsia.telus.net] has quit [Read error:
Connection reset by peer]
04:22 -!- niemeyer [~niemeyer@72-254-82-76.client.stsn.net] has quit [Ping
timeout: 240 seconds]
04:22 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #go-nuts
04:24 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 252 seconds]
04:25 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 240
seconds]
04:26 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
04:27 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
04:39 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 260
seconds]
04:39 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
04:54 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 240
seconds]
05:00 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
05:02 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping
timeout: 240 seconds]
05:05 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
05:05 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
05:05 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Remote host closed
the connection]
05:05 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
05:14 -!- vmil86 [~vmil86@88.118.36.96] has joined #go-nuts
05:23 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 260
seconds]
05:23 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
05:24 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
05:28 -!- c00w [~colin@97-112-204-183.frgo.qwest.net] has quit [Quit: Ex-Chat]
05:29 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
05:31 -!- franciscosouza [~francisco@187.105.21.97] has quit [Read error:
Connection reset by peer]
05:33 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
05:41 -!- franciscosouza [~francisco@187.105.21.97] has joined #go-nuts
05:49 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 258 seconds]
05:57 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Ping timeout: 240
seconds]
05:58 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
06:01 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 255 seconds]
06:06 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has quit [Remote host
closed the connection]
06:08 -!- ccc1 [~Adium@140.109.98.187] has quit [Quit: Leaving.]
06:12 -!- ccc1 [~Adium@140.109.103.153] has joined #go-nuts
06:16 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Remote host closed
the connection]
06:16 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has joined #go-nuts
06:16 -!- yogib [~yogib@dslb-178-009-065-231.pools.arcor-ip.net] has joined
#go-nuts
06:18 -!- rcrowley_ [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit
[Quit: Computer has gone to sleep.]
06:21 -!- mephcpp [~sasha@86.104.57.133] has joined #go-nuts
06:22 -!- nicka [~nicka@unaffiliated/nicka] has quit [Quit: Leaving]
06:23 < mephcpp> hi, I was wondering where I can find the test cases for doc
package from go?
06:23 -!- Kumul [~Kumul@67.224.228.31] has quit [Quit: gone]
06:24 -!- mytrile [~M@77.70.29.148] has joined #go-nuts
06:25 < mephcpp> also how do I check the coverage of the tests?
06:26 -!- meling [~meling@100.81-167-33.customer.lyse.net] has quit [Read error:
Connection reset by peer]
06:27 < f2f> no test coverage.  i think govet may do coverage at some point.
06:27 -!- meling [~meling@100.81-167-33.customer.lyse.net] has joined #go-nuts
06:30 -!- meling_ [~meling@100.81-167-33.customer.lyse.net] has joined #go-nuts
06:30 -!- meling [~meling@100.81-167-33.customer.lyse.net] has quit [Read error:
Connection reset by peer]
06:31 < mephcpp> f2f, that's too bad..  how about a specific test for the
doc package?
06:32 -!- shoenig [~shoenig@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
06:34 -!- noodles775 [~michael@g229201113.adsl.alicedsl.de] has joined #go-nuts
06:34 -!- noodles775 [~michael@g229201113.adsl.alicedsl.de] has quit [Changing
host]
06:34 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts
06:36 -!- yogib [~yogib@dslb-178-009-065-231.pools.arcor-ip.net] has quit [Quit:
yogib]
06:44 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Ping
timeout: 260 seconds]
06:45 -!- virtualsue [~chatzilla@host81-139-166-220.in-addr.btopenworld.com] has
joined #go-nuts
06:47 < f2f> if there was a test for go/doc you'd see it as go/doc/*_test.go
06:52 -!- virtualsue [~chatzilla@host81-139-166-220.in-addr.btopenworld.com] has
quit [Ping timeout: 250 seconds]
06:52 -!- tangerine [~tangerine@213.147.110.233] has joined #go-nuts
06:58 -!- benjack [~benjack@bb220-255-251-77.singnet.com.sg] has quit [Quit:
Leaving.]
06:59 -!- virtualsue [~chatzilla@nat/cisco/x-seqwmvknqlzxabro] has joined #go-nuts
07:00 -!- photron [~photron@port-92-201-20-158.dynamic.qsc.de] has joined #go-nuts
07:00 -!- tangerine [~tangerine@213.147.110.233] has left #go-nuts []
07:01 -!- humanfromearth [~alex@85.9.55.194] has joined #go-nuts
07:02 -!- humanfromearth [~alex@85.9.55.194] has left #go-nuts []
07:07 -!- mytrile1 [~M@77.70.29.148] has joined #go-nuts
07:07 -!- mytrile1 [~M@77.70.29.148] has quit [Client Quit]
07:07 -!- mytrile [~M@77.70.29.148] has quit [Read error: Connection reset by
peer]
07:09 -!- alehorst [~alehorst@189.58.12.173.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 255 seconds]
07:12 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
07:13 -!- ccc1 [~Adium@140.109.103.153] has quit [Quit: Leaving.]
07:14 -!- ccc1 [~Adium@140.109.103.153] has joined #go-nuts
07:16 -!- btipling [~btipling@unaffiliated/sk/x-5968384] has joined #go-nuts
07:16 < jessta> mephcpp: 6cov is supposed to do test coverage, I haven't
used it
07:17 < f2f> ugh, i thought it was govet.  my bad.
07:19 < btipling> is there some way to send communication over serial tty
with go?
07:19 < btipling> google search showed me someone just using exec.Run
07:20 < btipling> want to talk to my arduino board with go
07:21 -!- virtualsue [~chatzilla@nat/cisco/x-seqwmvknqlzxabro] has quit [Ping
timeout: 276 seconds]
07:23 -!- virtualsue [~chatzilla@nat/cisco/x-mghbdiquediprjcf] has joined #go-nuts
07:30 -!- alehorst [~alehorst@201.47.21.29.dynamic.adsl.gvt.net.br] has joined
#go-nuts
07:32 -!- meling_ [~meling@100.81-167-33.customer.lyse.net] has quit [Remote host
closed the connection]
07:39 -!- yogib [~yogib@131.234.59.64] has joined #go-nuts
07:40 < raylu> is rand.Intn thread-safe?
07:45 < jessta> raylu: yes!
07:45 < jessta> the docs link to the code, it's easy to tell
07:50 < raylu> ah, i see.  thanks
07:53 -!- franciscosouza [~francisco@187.105.21.97] has quit [Read error:
Connection reset by peer]
07:54 -!- franciscosouza [~francisco@187.105.21.97] has joined #go-nuts
07:54 -!- ccc1 [~Adium@140.109.103.153] has quit [Quit: Leaving.]
07:56 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:01 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
08:05 -!- wrtp [~rog@host-92-30-134-53.as13285.net] has joined #go-nuts
08:12 -!- ccc1 [~Adium@140.109.98.187] has quit [Quit: Leaving.]
08:12 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
08:13 -!- ccc1 [~Adium@140.109.98.187] has quit [Client Quit]
08:13 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
08:15 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has quit [Quit:
Leaving.]
08:16 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:22 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
08:27 -!- meling [~meling@pc-0-220.ux.uis.no] has joined #go-nuts
08:34 -!- erus` [~chatzilla@mailgate.ips-international.com] has joined #go-nuts
08:42 -!- tvw [~tv@212.79.9.150] has quit [Ping timeout: 255 seconds]
08:56 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined
#go-nuts
09:16 -!- JakeyChan [~JakeyChan@116.226.101.244] has quit [Ping timeout: 264
seconds]
09:17 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Ping
timeout: 276 seconds]
09:19 -!- noodles775 [~michael@g225134127.adsl.alicedsl.de] has joined #go-nuts
09:19 -!- noodles775 [~michael@g225134127.adsl.alicedsl.de] has quit [Changing
host]
09:19 -!- noodles775 [~michael@canonical/launchpad/noodles775] has joined #go-nuts
09:29 -!- JakeyChan
[~JakeyChan@ec2-175-41-238-53.ap-northeast-1.compute.amazonaws.com] has joined
#go-nuts
09:33 -!- krolaw [~krolaw@203.100.208.229] has quit [Ping timeout: 250 seconds]
09:42 -!- JakeyChan
[~JakeyChan@ec2-175-41-238-53.ap-northeast-1.compute.amazonaws.com] has quit [Ping
timeout: 252 seconds]
09:42 < zozoR> anybody has the link to the how-to on nsf's gocode?  (how to
make something work with gocode)
09:44 -!- mephcpp [~sasha@86.104.57.133] has quit [Remote host closed the
connection]
09:45 -!- iXeno_ [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
09:45 < TheSeeker> goclipse uses gocode, which is neat.
09:45 -!- xyproto [~alexander@77.40.159.131] has quit [Read error: No route to
host]
09:46 < jnwhiteh> just read the vim plugin
09:47 < jnwhiteh> its pretty straightforward:
https://github.com/nsf/gocode/blob/master/vim/autoload/gocomplete.vim
09:47 -!- jnwhiteh [~jnwhiteh@WoWUIDev/WoWI/Featured/Dongle/cladhaire] has quit
[Quit: ZNC - http://znc.sourceforge.net]
09:48 -!- russell_h [~russell_h@ash.osuosl.org] has quit [Ping timeout: 255
seconds]
09:48 -!- fvbommel [~fvbommel_@86.86.15.250] has quit [Ping timeout: 255 seconds]
09:48 -!- ajray [~ajray@li175-41.members.linode.com] has quit [Ping timeout: 255
seconds]
09:48 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Ping timeout: 255
seconds]
09:48 -!- russell_h [~russell_h@ash.osuosl.org] has joined #go-nuts
09:48 -!- ajray [~ajray@li175-41.members.linode.com] has joined #go-nuts
09:48 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has quit [Ping timeout: 255
seconds]
09:48 -!- jnwhiteh_ [~jnwhiteh@li37-84.members.linode.com] has joined #go-nuts
09:49 < zozoR> he had this textfile
09:49 < zozoR> which was the API doc for it
09:49 < Guest47147> ah, I've not seen that
09:49 -!- Guest47147 [~jnwhiteh@li37-84.members.linode.com] has quit [Remote host
closed the connection]
09:50 < zozoR> im trying to make gocode work with kate
09:53 < KBme> huh one can now range over a channel?
09:54 < zozoR> was that not possible from the start?
09:56 < wrtp> yeah you've always been able to range over a channel
09:57 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has joined #go-nuts
10:00 -!- fvbommel [~fvbommel_@86.86.15.250] has joined #go-nuts
10:00 -!- jnwhiteh [~jnwhiteh@WoWUIDev/WoWI/Featured/Dongle/cladhaire] has joined
#go-nuts
10:01 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts
10:03 -!- JakeyChan [~JakeyChan@116.226.101.244] has joined #go-nuts
10:04 -!- hargettp [~hargettp@pool-71-174-133-100.bstnma.east.verizon.net] has
joined #go-nuts
10:08 -!- Argue [~Argue@112.201.133.68] has joined #go-nuts
10:10 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
10:12 -!- franciscosouza [~francisco@187.105.21.97] has quit [Read error:
Connection reset by peer]
10:13 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
10:14 -!- franciscosouza [~francisco@187.105.21.97] has joined #go-nuts
10:16 -!- hargettp [~hargettp@pool-71-174-133-100.bstnma.east.verizon.net] has
quit [Quit: Leaving...]
10:17 -!- hargettp [~hargettp@pool-71-174-133-100.bstnma.east.verizon.net] has
joined #go-nuts
10:17 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Ping
timeout: 252 seconds]
10:21 -!- krolaw [~krolaw@203.100.208.229] has quit [Ping timeout: 250 seconds]
10:22 -!- osiman_ [clip9@er.en.svarteper.com] has joined #go-nuts
10:22 -!- pingveno_ [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
10:23 -!- thomas_b_ [~thomasb@cm-84.215.47.51.getinternet.no] has joined #go-nuts
10:24 -!- GoBIR_ [~gobir@70-90-168-189-SFBACalifornia.hfc.comcastbusiness.net] has
joined #go-nuts
10:26 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts
10:27 -!- fvbommel [~fvbommel_@86.86.15.250] has quit [Ping timeout: 255 seconds]
10:27 -!- ajray [~ajray@li175-41.members.linode.com] has quit [Ping timeout: 255
seconds]
10:27 -!- alehorst [~alehorst@201.47.21.29.dynamic.adsl.gvt.net.br] has quit [Ping
timeout: 255 seconds]
10:27 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 255 seconds]
10:27 -!- GoBIR [~gobir@70-90-168-189-SFBACalifornia.hfc.comcastbusiness.net] has
quit [Ping timeout: 255 seconds]
10:27 -!- osiman [clip9@er.en.svarteper.com] has quit [Ping timeout: 255 seconds]
10:27 -!- qrush [u1528@gateway/web/irccloud.com/x-ynpeqfwwrwlihjoq] has quit [Ping
timeout: 255 seconds]
10:27 -!- sigmonsays [~cd@c-67-169-42-1.hsd1.ca.comcast.net] has quit [Ping
timeout: 255 seconds]
10:27 -!- noselasd [~kvirc@80.239.96.162] has quit [Read error: Connection reset
by peer]
10:27 -!- JakeyChan [~JakeyChan@116.226.101.244] has quit [Ping timeout: 255
seconds]
10:27 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping
timeout: 255 seconds]
10:27 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Ping timeout: 255
seconds]
10:27 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has quit [Ping
timeout: 255 seconds]
10:27 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has quit [Ping
timeout: 255 seconds]
10:27 -!- pjm0616 [~user@114.200.203.101] has quit [Ping timeout: 255 seconds]
10:27 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has quit [Ping
timeout: 255 seconds]
10:27 -!- tokuhiro_ [~tokuhirom@www33009u.sakura.ne.jp] has quit [Ping timeout:
255 seconds]
10:27 -!- tvw [~tv@212.79.9.150] has quit [Ping timeout: 255 seconds]
10:27 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
10:33 -!- qrush [u1528@gateway/web/irccloud.com/x-itueyitfomhsfidg] has joined
#go-nuts
10:33 -!- pjm0616 [~user@114.200.203.101] has joined #go-nuts
10:33 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts
10:34 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined
#go-nuts
10:34 -!- fvbommel [~fvbommel_@86.86.15.250] has joined #go-nuts
10:34 -!- Nisstyre [~nisstyre@infocalypse-net.info] has joined #go-nuts
10:34 -!- sigmonsays [~cd@c-67-169-42-1.hsd1.ca.comcast.net] has joined #go-nuts
10:35 -!- JakeyChan [~JakeyChan@116.226.101.244] has joined #go-nuts
10:35 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has joined #go-nuts
10:36 -!- alehorst [~alehorst@201.47.21.29.dynamic.adsl.gvt.net.br] has joined
#go-nuts
10:36 -!- tokuhiro_ [~tokuhirom@www33009u.sakura.ne.jp] has joined #go-nuts
10:37 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
10:38 -!- ajray [~ajray@li175-41.members.linode.com] has joined #go-nuts
10:51 < moraes> 'morning.
10:53 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
10:58 -!- JakeyChan [~JakeyChan@116.226.101.244] has quit [Ping timeout: 250
seconds]
11:03 -!- ccc1 [~Adium@140.109.98.187] has quit [Quit: Leaving.]
11:09 -!- arun [~arun@unaffiliated/sindian] has quit [Remote host closed the
connection]
11:13 -!- arun [~arun@2001:610:110:4e2:280:5aff:fe69:e130] has joined #go-nuts
11:13 -!- arun [~arun@2001:610:110:4e2:280:5aff:fe69:e130] has quit [Changing
host]
11:13 -!- arun [~arun@unaffiliated/sindian] has joined #go-nuts
11:14 < wrtp> moraes: hi
11:16 < krolaw> Hi, I switched from release to weekly (to use latest
exp/template) and now gosqlite won't import.  Can someone point me in the right
direction?  object is [linux amd64 release.r58.1 8739] expected [linux amd64
weekly.2011-07-29 9304]
11:17 < krolaw> (Install of gosqlite was done using goinstall.)
11:18 < krolaw> I'm thinking I need to clean out the old gosqlite and
reinstall?
11:19 < str1ngs> krolaw: try with goinstall -nuke ....
11:20 < krolaw> As in: goinstall -nuke gosqlite.googlecode.com/hg/sqlite ?
It made no difference.
11:21 < krolaw> (But I appreciate the suggestion.)
11:22 < str1ngs> use -clean then
11:22 < krolaw> Beat you to it, but I'll try again.
11:22 < krolaw> No go.
11:23 < krolaw> Does goinstall have a gouninstall?
11:23 -!- gnuvince_ [~vince@destiny.0wn.me] has joined #go-nuts
11:23 < str1ngs> if that does work maybe manually remove
$GOROOT/src/pkg/sqlite
11:23 < str1ngs> you'll have to fish for the actual dir
11:24 < krolaw> Done, now running goinstall again...
11:25 < krolaw> Hmmm, maybe time to dump my go dir and start again...
11:25 < str1ngs> also you did not mention what object
11:25 < krolaw> ?
11:25 < str1ngs> can you give the full error?
11:26 < str1ngs> also this may not be a goinstall error.  could be a GOPATH
issue
11:26 < krolaw> Oh cripes, it's my own code.
11:26 < str1ngs> make clean :P
11:28 < krolaw> First gosqlite, then recompile my own libs....  whoops.
Thanks <str1ngs>.
11:28 < str1ngs> krolaw: make sense
11:29 < str1ngs> if you use goinstall you can use goinstall -a -u
11:29 < str1ngs> however if you manually installed a package then you need
to rebuild and install
11:29 < krolaw> str1ngs: no goinstall did it's job.  I didn't see that
afterwards the next
11:30 < str1ngs> ah why I ask which object
11:30 < krolaw> error was with my own .go files that I was referencing.
11:30 < krolaw> Indeed.
11:30 < krolaw> Anyway, I'm fixed now...
11:30 < str1ngs> I've seen the error with mismatched GOPATH's though also
11:30 < krolaw> Thanks for your help.
11:30 < str1ngs> np
11:30 < krolaw> Ah.
11:30 < str1ngs> no go, is now a go!
11:31 < krolaw> :-)
11:31 -!- odoacre [~antonio@218.241.169.34] has quit [Quit: Leaving]
11:31 -!- Pathin [~root@gladsheim.nullbytestudios.net] has quit [Quit: leaving]
11:33 -!- hargettp [~hargettp@pool-71-174-133-100.bstnma.east.verizon.net] has
quit [Quit: Leaving...]
11:34 -!- nicka1 [~nicka@blk-222-42-163.eastlink.ca] has quit [Ping timeout: 246
seconds]
11:41 -!- tncardoso [~thiago@189.115.129.93] has joined #go-nuts
11:41 -!- nicka [~nicka@142.176.0.21] has joined #go-nuts
11:41 -!- nicka [~nicka@142.176.0.21] has quit [Changing host]
11:41 -!- nicka [~nicka@unaffiliated/nicka] has joined #go-nuts
11:50 -!- krolaw [~krolaw@203.100.208.229] has quit [Ping timeout: 250 seconds]
11:53 < moraes> use go to teach programming to teenagers is the worst idea
ever.  yes or no.
11:54 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has joined #go-nuts
11:56 -!- franciscosouza [~francisco@187.105.21.97] has quit [Read error:
Connection reset by peer]
11:57 -!- miker2 [~miker2@64.55.31.190] has joined #go-nuts
11:58 -!- franciscosouza [~francisco@187.105.21.97] has joined #go-nuts
12:00 < jnwhiteh> moraes: no
12:00 < jnwhiteh> there are many ideas that are much worse
12:00 < moraes> heh
12:00 -!- impl [impl@atheme/member/impl] has quit [Read error: Connection reset by
peer]
12:01 -!- impl [impl@atheme/member/impl] has joined #go-nuts
12:05 < jnwhiteh> I'd love to look at that, but my research has shifted.
Luckily, I get to use Go quite a bit in my research either way =)
12:05 < mpl> my first programming teacher used to say: "Put a cap on a
computer and he's practically a suburbean teenager.  you see, both have only 300
words of vocabulary."
12:07 < exch> :p
12:08 < mpl> (yes he was quite a bastard on many aspects :) )
12:11 < gnuvince_> I'm looking to test code that uses a net.Conn; instead of
establishing a real connection, I'd like to just have a ReadWrite buffer to do my
tests.  Is there a package to help make a blocking buffer?
12:13 < jnwhiteh> you can just use a bytes.Buffer
12:13 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts
12:13 < jnwhiteh> it implements the Writer interface
12:13 < jnwhiteh> which gets you part of the way there
12:13 < jnwhiteh> So you'd have to wrap it to supply the other methods
needed by net.Conn
12:13 < jnwhiteh> but it should help =)
12:14 < gnuvince_> jnwhiteh: I've used that, but it does not block, so my
goroutine that handles incoming requests hasn't even started that buf.Read()
returns EOF
12:15 < jnwhiteh> then io.PipeReader/io.PipeWriter might help
12:15 < jnwhiteh> reads/writes between then are synchronous
12:15 < wrtp> jnwhiteh: +1
12:15 < jnwhiteh> but if you need two-way communication, you'd need two sets
of pipes
12:16 < wrtp> easy to do
12:16 < jnwhiteh> *nod*
12:16 < wrtp> moraes: i think go would be a good teaching language
12:17 < gnuvince_> so if I do: in, out := io.Pipe();
bufio.NewReadWriter(bufio.NewReader(in), bufio.NewWriter(out)) I should be good?
12:17 < wrtp> inordinately better than java, for example
12:17 < wrtp> gnuvince_: no, look at net.Pipe()
12:18 < jnwhiteh> gnuvince_: well as soon as you introduce a 'buffer' you'll
have non-blocking behaviour when that buffer is not-full
12:18 < wrtp> gnuvince_: that does everything you need i think
12:18 < jnwhiteh> wrtp: ah, good one!
12:18 < jnwhiteh> Hadn't seen that before :P
12:19 < gnuvince_> hrmmm
12:19 < jnwhiteh> I'm not sure you want/need buffering, but net.Pipe won't
implement it
12:19 < jnwhiteh> but you want blocking and buffered, which are (somewhat)
conflicting requirements :P
12:19 < wrtp> jnwhiteh: not at all
12:19 < wrtp> s
12:19 < wrtp> ta
12:19 < wrtp> n
12:19 < wrtp> 
12:19 < wrtp> 
12:19 < gnuvince_> I'm thinking that this design is just shit and that I
should make a lot more of that code pure.
12:19 < jnwhiteh> cat on keyboard?
12:19 < gnuvince_> Testing side effects is such a fucking drag
12:19 < wrtp> standard unix pipes are blocking and buffered
12:19 < wrtp> jnwhiteh: it happens when i type when the client is scrolling
12:20 < jnwhiteh> wrtp: certainly, but you can't necessarily *rely* on the
details of the buffering
12:20 < jnwhiteh> I'm just trying to understand the requirements :P
12:20 < wrtp> jnwhiteh: that's true of any network connection
12:20 -!- ccc1 [~Adium@118-166-215-203.dynamic.hinet.net] has joined #go-nuts
12:21 < jnwhiteh> of course
12:21 < gnuvince_> I really have no clue how to do this.
12:21 < gnuvince_> testing sucks
12:22 < wrtp> if you want buffering and blocking, you could use my loopback
package (rog-go.googlecode.com/hg/loopback)
12:22 < wrtp> which also allows testing latency and bandwidth restrictions
12:22 < wrtp> gnuvince_: what are you trying to test?
12:22 < jnwhiteh> wrtp has a package for everything :P
12:23 < wrtp> :-)
12:23 < wrtp> i wish
12:23 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has quit [Ping timeout:
240 seconds]
12:24 < jnwhiteh> your type inference package was useful to me a while back,
thank you for writing it
12:24 < gnuvince_> wrtp: a small IRC bot I'm writing.  I have a Connection
struct that has two channels for input/output.  I launch two goroutines; one reads
from the connection and sends the result on the input channel, the other gets
what's on the output channel and writes it to the connection.  Easy stuff for the
real code.  Now I want to make unit tests and I want to be able to send in a
message and read back the response.
12:24 < jnwhiteh> I wrote a small program that scanned my source for all
instances where a given type was used, was not terribly difficult either.
12:28 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has quit [Quit: ZZZZZzzzzz]
12:28 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has joined #go-nuts
12:29 -!- xyproto [~alexander@77.40.159.131] has joined #go-nuts
12:30 < xyproto> skelterjohn: hey, did I say that I tried gb?  I like it.
12:30 -!- arun [~arun@unaffiliated/sindian] has quit [Remote host closed the
connection]
12:30 < xyproto> skelterjohn: Do you happen to know why there is no little
green "ok" at http://godashboard.appspot.com/package ?
12:32 -!- lumos [~lumos@host-92-20-182-193.as13285.net] has quit [Ping timeout:
258 seconds]
12:32 -!- arun [~arun@2001:610:110:4e2:280:5aff:fe69:e130] has joined #go-nuts
12:32 -!- arun [~arun@2001:610:110:4e2:280:5aff:fe69:e130] has quit [Changing
host]
12:32 -!- arun [~arun@unaffiliated/sindian] has joined #go-nuts
12:32 -!- gridaphobe [~gridaphob@cpe-74-68-151-24.nyc.res.rr.com] has joined
#go-nuts
12:34 -!- Solak [~stijnw@cthia.xs4all.nl] has joined #go-nuts
12:34 < skelterjohn> xyproto: the "ok" system is incomplete - that's why
it's "ok"/nothing instead of "ok"/"not ok"
12:34 < xyproto> skelterjohn: oh, ok
12:34 < skelterjohn> and i'm glad you like it
12:35 < xyproto> skelterjohn: yes, it was surprisingly easy to use
12:35 < gnuvince_> wrtp: Basically in this file's recv() method, if I use a
real net.Conn I have no problems, but with a bytes.Buffer it immediately errors
out with and EOF err.
https://github.com/gnuvince/profbot/blob/master/pkg/profbot/irc/connection.go
12:38 -!- Argue [~Argue@112.201.133.68] has quit [Quit: Leaving]
12:42 < fluffle> gnuvince_: <self-promotion>
http://github.com/luffle/goirc/ </self-promotion>
12:42 -!- jwayong [~jancker@27-32-16-246.static.tpgi.com.au] has joined #go-nuts
12:43 < fluffle> er, +f
12:43 < fluffle> self-promotion FAIL
12:43 < gnuvince_> fluffle: I know :)
12:43 < gnuvince_> fluffle: but the part I really wanted to see were tests
12:43 < fluffle> also huin (who's occasionally on here) has just finished up
a rather sweet-looking mock net.Conn for unit testing network stuff
12:44 < fluffle> i need to persuade him to stick it into gomock
12:44 < gnuvince_> Found this:
12:44 < gnuvince_> // Not really sure what or how to test something that
basically requires a
12:44 < gnuvince_> // connection to an IRC server to function, but we need
some tests or when this
12:44 < gnuvince_> // is present in the go package tree builds fail hard :-(
12:44 < fluffle> haha
12:44 < gnuvince_> :D
12:44 < fluffle> yes, i'm bad at testing /o\
12:45 -!- franciscosouza [~francisco@187.105.21.97] has quit [Quit:
franciscosouza]
12:45 < fluffle> goirc needs an interface abstraction around *client.Conn
too
12:45 < gnuvince_> My thinking was that if I pass my buffer as a parameter,
I can create one without having a connection and test locally
12:45 -!- jwayong [~jancker@27-32-16-246.static.tpgi.com.au] has left #go-nuts []
12:46 < gnuvince_> fluffle: right now I'm thinking that I'd want everything
to return instead of writing to the socket.  That'd be easier to test.
12:47 < wrtp> jnwhiteh: what type inference package?  i don't remember
writing something like that...
12:47 < jnwhiteh> sec
12:47 < fluffle> gnuvince_: if you mock out the net.Conn you can pretend to
be the other side of the connection in your testing code
12:48 -!- xyproto [~alexander@77.40.159.131] has quit [Ping timeout: 264 seconds]
12:48 < gnuvince_> fluffle: which, I think, would bring me back to my
original problem: how do I block so that recv() doesn't immediately poop out
because the buffer is empty
12:49 < jnwhiteh> wrtp: http://rog-go.googlecode.com/hg/exp/go/types and
parser (or did I get people mixed up?)
12:49 < wrtp> gnuvince_: the basic technique with testing that kind of thing
is to create a goroutine that pretends to be the client, and a run it against the
server
12:50 < wrtp> oh of course!
12:50 < wrtp> doh
12:50 < wrtp> i'd forgotten about that
12:51 < jnwhiteh> :P
12:51 -!- hargettp_ [~hargettp_@dhcp-161.mirrorimage.net] has left #go-nuts []
12:51 < wrtp> it might even still work!
12:51 < gnuvince_> wrtp: against which server?
12:51 < wrtp> gnuvince_: the server you're trying to test
12:51 < fluffle> wrtp: in this case you've got client/server backwards --
he's writing an IRC client bot, so he'd need the test code to pretend to be the
server
12:52 < wrtp> fluffle: erm, yes
12:52 < fluffle> but the basic premise is the same
12:52 < fluffle> after all client/server is just about perspective for the
most part
12:52 < gnuvince_> but that's pretty much what I had in my test
12:53 < gnuvince_> It just happens to not work :)
12:53 < wrtp> gnuvince_: i think your basic problem is that you're exiting
everthing when the server exits
12:53 < wrtp> gnuvince_: rather than calling log.Fatalf, you could just
close c.in
12:54 < gnuvince_> How does that help me?
12:55 < gnuvince_> In my tests, my *net.Conn is nil; I want to pass a
"regular" buffer, write IRC commands in it (as the server would do) and examine
the output that the bot sends back
12:55 < wrtp> it would mean that your test could proceed even though the
reader loop has finished
12:55 < wrtp> (and i think that was your problem, because the reader would
read a line, send it, then get eof and exit everything)
12:56 < wrtp> gnuvince_: just use net.Pipe
12:57 < wrtp> and then write IRC commands to the other end of the pipe (as
the server would do) etc
12:58 -!- meling_ [~meling@pico.ux.uis.no] has joined #go-nuts
12:58 -!- shoenig [~shoenig@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
12:59 < gnuvince_> I'll try it
13:00 < KBme> fluffle, there is an irc server written in go, but it's
incomplete and probably obsolete
13:00 < KBme> i was using that for testing so i could have the go server
running locally with make test
13:00 < KBme> but it's not maintained afaik
13:00 < KBme> ☹
13:01 < fluffle> KBme: i considered starting to write one myself, but it's
too much time commitment
13:01 < KBme> yeah, big work
13:01 < jnwhiteh> easier just to download a working one and run it
13:01 < jnwhiteh> not terribly tough =)
13:01 < jnwhiteh> or write unit tests :P
13:01 < fluffle> i already run my own IRCd for talking purposes
13:01 < fluffle> so that's not a big problem :)
13:02 -!- lumos [~lumos@host-92-20-182-83.as13285.net] has joined #go-nuts
13:02 -!- meling [~meling@pc-0-220.ux.uis.no] has quit [Ping timeout: 260 seconds]
13:02 < KBme> but do you want all your users to connect to your server when
they run make test?  :P
13:02 < KBme> https://bitbucket.org/kylelemons/jaid/changesets , yeah, no
update since january
13:02 < fluffle> KBme: ah, you're assuming i have good test coverage :p
13:02 < KBme> ;)
13:03 < fluffle> KBme: i'm a sysadmin, I hack things together until they
just about work, then declare them finished :p
13:05 < KBme> fluffle, ditto
13:05 < KBme> thing is with go
13:05 < KBme> it still evolves a lot
13:05 < KBme> so you'll never be finished :P
13:05 < KBme> that's one reason i gave up on my go irc library.
13:06 < fluffle> that's why the code's on github
13:06 < KBme> the other was that the code was horrid ;)
13:06 < fluffle> people send me patches, hrhr
13:06 < KBme> riiiiight
13:06 < fluffle> though, i have started actualyl using goirc myself, so it's
getting maintenace now
13:06 < KBme> i'm just about to start using it
13:06 < KBme> just this minute when i saw you online i'm reading the code
13:07 < fluffle> see also sp0rkle/ -- that's the infobotish thing i'm
hacking on atm
13:07 < KBme> i might chip in if i find the library usable ;)
13:07 < fluffle> please do :)
13:07 < fluffle> ideas as to how to make it more usable are appreciated too,
especially if you know a bit about good software design principles :)
13:08 < KBme> looks like sp0rkle is more than what i need
13:08 < KBme> i'll take a look tho
13:09 < KBme> yeah, well, i can make suggestions if/when i feel the need for
functionality
13:09 < KBme> but I don't usually noze into other people's projects, just
bugfixes
13:14 -!- dlowe [~dlowe@ita4fw1.itasoftware.com] has joined #go-nuts
13:14 -!- knowmerc1 [~knowmercy@mobile-198-228-224-243.mycingular.net] has joined
#go-nuts
13:16 -!- TheMue [~FMueller@p5DDF772F.dip.t-dialin.net] has joined #go-nuts
13:17 -!- hoozleboozle [~Adium@2002:43aa:cb8e:0:fa1e:dfff:fee4:dfe9] has joined
#go-nuts
13:17 < moraes> wrtp, i think too, and my side project for teaching go is
called 'give it a go!'
13:17 < moraes> but first i need to teach it myself :P
13:18 < wrtp> sounds good
13:19 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts
13:20 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has
joined #go-nuts
13:22 < knowmerc1> I'm teaching myself right now...  I'm a hard study and a
terrible teacher
13:22 < knowmerc1> :)
13:24 < jnwhiteh> is anyone familiar with using cov?
13:26 < jnwhiteh> I'm trying to run my tests through it, but after a while
it just sits and doesn't do anything.  ><
13:28 -!- qeed [~qeed@adsl-98-85-44-162.mco.bellsouth.net] has joined #go-nuts
13:30 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has quit [Ping timeout:
260 seconds]
13:32 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the
connection]
13:34 -!- xyproto [~alexander@77.40.159.131] has joined #go-nuts
13:35 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Ping
timeout: 246 seconds]
13:37 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined
#go-nuts
13:38 < KBme> fluffle, is it a valid request to add a wildcard event?
13:39 < fluffle> possibly, but I don't see how useful it'd be
13:39 < fluffle> what were you planning to do with it?
13:40 < xyproto> If anyone is on Arch, I just updated the "golangide"
package, the only available Go IDE I know of.
13:40 < KBme> well, it's mainly to bypass the need to use event handlers :P
13:42 < KBme> so i can just use a goroutine and get all events and have the
logic all in one place
13:42 < fluffle> KBme: that'll get awfully messy
13:42 < KBme> hmm, i guess it would
13:42 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
13:43 < fluffle> as soon as you start to do significant stuff it will mean a
huge switch statement to decide what to do with each line
13:43 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Ping timeout: 252
seconds]
13:43 < fluffle> that's why things are broken down even further with sp0rkle
-- each driver handles it's own set of privmsg commands, and fires off events
specific to the driver
13:43 < KBme> well, yes, in the other case it'll mean writing a bunch of
functions to handle different events
13:44 < fluffle> you're probably going to be doing that anyway
13:44 < KBme> yeah, i guess so
13:44 < fluffle> really, for most bots you only need to handle privmsg and
action
13:44 < KBme> i'll start off with what you've got.
13:44 < fluffle> unless you're going to be doing eggdrop-style channel admin
stuff
13:44 < KBme> nah, i want to be able to do lots of things, but i'll just
start simple and see how it goes
13:45 < fluffle> and even then, the handlers for mode changes will be
different to those for nick changes, etc, etc
13:45 < KBme> yeah, right
13:45 < KBme> ok thanks, you're probably right
13:45 < KBme> see why i don't want to give advice ;)
13:46 < fluffle> KBme: if you are bothered about it, remember you can always
register the same handler for multiple events
13:46 < fluffle> ;)
13:47 < KBme> yeah..
13:48 -!- clr_ [~colin@97-112-204-183.frgo.qwest.net] has joined #go-nuts
13:50 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
13:58 -!- nekoh [~nekoh@dslb-178-004-070-097.pools.arcor-ip.net] has joined
#go-nuts
13:59 < KBme> can anyone remind me what is the "dumper" for go?
14:00 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
14:05 -!- qeed [~qeed@adsl-98-85-44-162.mco.bellsouth.net] has quit [Quit:
Leaving]
14:06 < KBme> ah, i remember now, it's printf with %#v or %+v
14:06 -!- arun [~arun@unaffiliated/sindian] has quit [Read error: Connection reset
by peer]
14:09 -!- arun [~arun@unaffiliated/sindian] has joined #go-nuts
14:10 -!- molto_alfredo1 [~molto_alf@142.176.0.21] has joined #go-nuts
14:11 -!- Dr_Who [~tgall_foo@linaro/tgall-foo] has joined #go-nuts
14:12 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
14:13 -!- molto_alfredo [~molto_alf@142.176.0.21] has quit [Ping timeout: 240
seconds]
14:15 -!- niemeyer [~niemeyer@72-254-15-217.client.stsn.net] has joined #go-nuts
14:16 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
14:23 -!- ancientlore [~ancientlo@12.54.6.218] has joined #go-nuts
14:24 -!- replore_ [~replore@ntkngw133234.kngw.nt.ftth.ppp.infoweb.ne.jp] has
joined #go-nuts
14:25 -!- hoozleboozle [~Adium@2002:43aa:cb8e:0:fa1e:dfff:fee4:dfe9] has quit
[Quit: Leaving.]
14:29 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
14:38 -!- ancientlore_ [~ancientlo@12.54.6.218] has joined #go-nuts
14:38 -!- ancientlore_ [~ancientlo@12.54.6.218] has quit [Client Quit]
14:39 -!- meling_ [~meling@pico.ux.uis.no] has quit [Remote host closed the
connection]
14:39 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has joined #go-nuts
14:39 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
14:40 < btipling> serial tty
14:40 < btipling> any such thing for go?
14:40 -!- ancientlore [~ancientlo@12.54.6.218] has quit [Ping timeout: 250
seconds]
14:41 < btipling> I could port this node module to go if not
14:41 < btipling>
https://github.com/voodootikigod/node-serialport/blob/master/serialport_native/serialport_native.cc
14:41 < skelterjohn|work> i certainly have no idea.  have you looked through
godashboard.appspot.com/project ?
14:42 < btipling> yep
14:42 < wrtp> btipling: i think i'd just fork stty
14:42 < wrtp> depends what you wanna do mind
14:43 < btipling> wrtp: talk to my arduino board over usb
14:43 < btipling>
http://www.stealthcopter.com/blog/2010/02/python-interfacing-with-an-arduino/
14:44 < btipling> kind of like that
14:44 < wrtp> btipling: any reason you can't just use stty and just open
the tty directly?
14:44 < btipling> wrtp: you mean via exec.Run?
14:44 < wrtp> yeah
14:44 < btipling> :\
14:44 -!- rcrowley_ [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
14:45 < btipling> wouldn't it be nicer to have a module though?
14:45 < wrtp> probably, but there's a lot of ioctl crap to import
14:45 < btipling> I see
14:45 * btipling has no idea what ioctl is
14:45 < wrtp> another possibility would be to use cgo
14:45 < btipling> looking it up
14:45 < btipling> ohhh
14:46 < btipling> looking at the module written for node
14:46 < skelterjohn|work> always nicer to have a pure go pkg though
14:46 < skelterjohn|work> but it would be a good idea to do a cgo version
first
14:46 < btipling> it doesn't seem like they import a lot
14:46 < skelterjohn|work> have the two side by side would be useful for
testing
14:47 < wrtp> i'd go for the stty version first - it's only 3 or 4 lines of
code and you'll have it working
14:47 < btipling> hrm
14:47 < btipling> thanks
14:47 < wrtp> as opposed to struggling with archaic interfaces for ages...
14:47 < btipling> good idea
14:47 < btipling> and if I really get into it and want something better than
I can invest time
14:48 -!- nteon [~nteon@ool-4a58e438.dyn.optonline.net] has joined #go-nuts
14:49 < wrtp> 'xactly
14:49 < btipling> now to make this led blink with go
14:50 < knowmerc1> on your arduino?
14:50 < btipling> yes
14:50 < wrtp> blinkenlights are always good
14:50 < knowmerc1> I <3 adruino blinkenlights!
14:50 < btipling> me too!  +1
14:51 < knowmerc1> also, I get tired of people complaining about android
when it's the stupid dev framework they're using to build the apps and not an
actual issue with android
14:51 -!- nicka1 [~nicka@blk-222-42-163.eastlink.ca] has joined #go-nuts
14:51 < skelterjohn|work> is there another dev framework they can use with
android?
14:52 < knowmerc1> it's called appcellerator?
14:52 < knowmerc1> I think
14:52 < skelterjohn|work> is it better?
14:52 < btipling> there's a bunch
14:52 < knowmerc1> it's useful for building eyePhone apps, but sucks bawls
(technically speaking) for android
14:53 < btipling> there's phonegab
14:53 < btipling> er phonegap
14:53 < knowmerc1> it requires you to write javascript instead of building
java code
14:53 < knowmerc1> the app they created for android takes more than 10
seconds to open up on my dual core atrix
14:53 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
14:53 < knowmerc1> LONGER THAN TEH ANGRY BIRDS!
14:53 < btipling> knowmerc1: does your atrix have 2.3?
14:53 < knowmerc1> yes
14:54 < btipling> nice
14:54 < knowmerc1> does yours?
14:54 < knowmerc1> :P
14:54 < btipling> no, I don't have one, I have a galaxy vibrant
14:54 < btipling> :/
14:54 < knowmerc1> I was on 2.3.4 last weekend I think
14:54 < skelterjohn|work> my point was, in a nutshell, if there isn't a
better alternative dev framework, then there is no difference between complaining
about android and the actual cause
14:54 < knowmerc1> when is go getting ported to android?
14:54 < skelterjohn|work> it's just that the fault lies with different
people
14:54 < skelterjohn|work> knowmerc1: str1ngs was trying something along
those lines
14:54 < knowmerc1> skelterjohn|work: if they just built a native app...
it'd suck much less
14:54 < skelterjohn|work> and go can compile to ARM chips
14:55 < str1ngs> knowmerc1: I can build go on android
14:55 < str1ngs> not the same as porting to android though.
14:55 < knowmerc1> do you have to install anything to build it?
14:55 < str1ngs> its pretty easy to cross build pure go binaries to arm
14:55 < knowmerc1> ok
14:55 < str1ngs> I have a gnu userland with gcc etc that runs on android
14:56 < knowmerc1> I just got my openbsd box up and running for my go
porting efforts
14:57 < knowmerc1> it's still emailing me about its existence so it must
have lasted the first 24 hours :)
14:57 < skelterjohn|work> the openbsd box or the go porting effots?
14:58 < skelterjohn|work> efforts
14:58 < knowmerc1> openbsd box
15:03 -!- pjacobs2 [~pjacobs@66.54.185.130] has joined #go-nuts
15:03 -!- pjacobs [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Ping timeout: 240 seconds]
15:04 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
15:06 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
15:07 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
15:09 -!- Kumul [~Kumul@67.224.248.2] has joined #go-nuts
15:11 -!- tncardoso [~thiago@189.115.129.93] has quit [Quit: bye]
15:12 -!- benjack [~benjack@cm224.omega195.maxonline.com.sg] has joined #go-nuts
15:14 < f2f> gnuvince_, did you see my solution to your problem yesterday?
15:16 < f2f> i wrote you some code both with a pipe and without.
15:16 -!- nicka1 [~nicka@blk-222-42-163.eastlink.ca] has quit [Ping timeout: 260
seconds]
15:18 < gnuvince_> f2f: I didn't, do you still have the link?
15:20 < f2f> here's what i said:
15:20 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has
joined #go-nuts
15:21 < f2f> 13:25 <f2f> gnuvince, several things are wrong, for one,
the ReadWriter is using different buffers
15:21 < f2f> 13:25 <f2f> then err.String() panics because err is nil
15:21 < f2f> 13:25 <f2f> and finally i had to flush() to make sure the
bytes went out on a pipe.
15:21 < f2f> 13:25 <f2f> this works for me:
15:21 < f2f> 13:25 <f2f> http://www.ideone.com/Sxr0q
15:21 < f2f> 13:28 <f2f> yes, this works with just one buffer:
15:21 < f2f> 13:28 <f2f> http://www.ideone.com/RAk1B
15:21 < f2f> 13:27 <f2f> i'm not sure whether readwriter's behaviour
should be as you expect it.  i'm looking at the documentation and it tells me that
it simply redirects reads and writes to the respective reader and writer.  i'll
have to see if i can use the same buffer for the two
15:23 -!- shoenig [~shoenig@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
15:24 -!- qeed [~qeed@adsl-98-85-44-162.mco.bellsouth.net] has joined #go-nuts
15:26 -!- Soak [Soak@gas45-5-88-182-12-78.fbx.proxad.net] has joined #go-nuts
15:26 < gnuvince_> thanks
15:27 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
15:28 -!- erus` [~chatzilla@mailgate.ips-international.com] has quit [Quit:
ChatZilla 0.9.87 [Firefox 5.0/20110615151330]]
15:39 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
15:43 -!- ccc1 [~Adium@118-166-215-203.dynamic.hinet.net] has quit [Quit:
Leaving.]
15:44 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
15:46 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has joined
#go-nuts
15:47 -!- Nisstyre [~nisstyre@infocalypse-net.info] has joined #go-nuts
15:49 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Quit:
leaving]
15:50 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
15:51 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Read error:
Connection reset by peer]
16:02 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has left #go-nuts
[]
16:02 -!- shoenig [~shoenig@bastion.sfo1.yelpcorp.com] has joined #go-nuts
16:07 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
16:10 -!- dfr|mac [~dfr|work@ool-18baf7e7.dyn.optonline.net] has quit [Remote host
closed the connection]
16:13 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:14 -!- aslakr [~aslak@static.42.114.40.188.clients.your-server.de] has left
#go-nuts []
16:14 -!- Kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Ping
timeout: 252 seconds]
16:20 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
16:20 -!- shoenig [~shoenig@bastion.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
16:27 -!- meling [~meling@100.81-167-33.customer.lyse.net] has joined #go-nuts
16:30 -!- r_linux [~r_linux@189.38.220.35] has joined #go-nuts
16:36 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
16:37 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
joined #go-nuts
16:38 -!- iXeno_ [~ixeno@106.80-203-229.nextgentel.com] has quit [Ping timeout:
240 seconds]
16:38 < knowmerc1> ok, dumb question but how do I make a function span
multiple lines?
16:38 < knowmerc1> calling it I mean so the code reads more cleanly
16:41 < jessta> knowmerc1: end the lines with a comma
16:41 < jessta> eg, somefunc(param1,
16:41 < jessta> param2)
16:43 < knowmerc1> I had left off the last one
16:43 < knowmerc1> :) I was very close
16:43 < knowmerc1> somefunc(
16:43 < knowmerc1> param1,
16:43 < knowmerc1> param2
16:43 < knowmerc1> )
16:43 < knowmerc1> I'm starting to really have some fun writing go code now
16:44 < knowmerc1> and now it's time for a test
16:45 -!- cabello [~cabello@nat/yahoo/x-uxdpniwvolvsunct] has quit [Remote host
closed the connection]
16:45 -!- cabello [~cabello@nat/yahoo/x-juwjbpbaqijoqibj] has joined #go-nuts
16:48 -!- Nisstyre [~nisstyre@infocalypse-net.info] has quit [Ping timeout: 260
seconds]
16:49 -!- yogib [~yogib@131.234.59.64] has quit [Quit: yogib]
16:53 -!- Nisstyre [~nisstyre@infocalypse-net.info] has joined #go-nuts
16:56 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Remote host
closed the connection]
16:59 -!- tncardoso [~thiagon@150.164.2.20] has joined #go-nuts
17:12 -!- knowmerc1 [~knowmercy@mobile-198-228-224-243.mycingular.net] has quit
[Quit: Lost terminal]
17:13 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
17:13 -!- tvw [~tv@212.79.9.150] has quit [Read error: Connection reset by peer]
17:13 -!- virtualsue [~chatzilla@nat/cisco/x-mghbdiquediprjcf] has quit [Ping
timeout: 255 seconds]
17:15 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
17:18 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza]
17:20 -!- virtualsue [~chatzilla@nat/cisco/x-yojuwkderwgabcuf] has joined #go-nuts
17:28 -!- benjack [~benjack@cm224.omega195.maxonline.com.sg] has quit [Quit:
Leaving.]
17:29 -!- nekoh [~nekoh@dslb-178-004-070-097.pools.arcor-ip.net] has quit [Ping
timeout: 258 seconds]
17:31 -!- knowmerc1 [~knowmercy@mobile-198-228-224-243.mycingular.net] has joined
#go-nuts
17:34 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
17:40 < knowmerc1> benchmarks are kinda fun
17:40 < knowmerc1> 21000 ns/op
17:41 < aiju> that's 21000000000 fs/op
17:41 < aiju> frightening
17:42 < knowmerc1> huh?
17:43 < aiju> i'm just converting to a more frightening unit; also what are
you talking about?
17:43 -!- lumos [~lumos@host-92-20-182-83.as13285.net] has quit [Ping timeout: 252
seconds]
17:43 < knowmerc1> well I'm learning what exactly benchmark returns when you
do a basic test
17:43 < knowmerc1> this test happened to test an http get
17:46 -!- nekoh [~nekoh@dslb-178-004-026-225.pools.arcor-ip.net] has joined
#go-nuts
17:50 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has joined
#go-nuts
17:53 < tncardoso> How do I import two packages with the same name?
17:53 < aiju> import foo "package"
17:53 < aiju> iirc
17:53 -!- Argue [~Argue@112.201.133.68] has joined #go-nuts
17:54 < aiju> ya
17:54 < aiju> import firstname "some/foobar"
17:54 < aiju> import secondname "someother/foobar"
17:55 < tncardoso> aiju, thanks
18:00 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has quit
[Quit: Leaving]
18:01 -!- huin [~huin@91.84.179.118] has joined #go-nuts
18:03 -!- r_linux [~r_linux@189.38.220.35] has quit [Ping timeout: 260 seconds]
18:03 -!- r_linux [~r_linux@189.38.220.35] has joined #go-nuts
18:03 -!- yogib [~yogib@dslb-178-009-065-231.pools.arcor-ip.net] has joined
#go-nuts
18:11 -!- adg [~nf@atka.wh3rd.net] has quit [Ping timeout: 240 seconds]
18:17 < knowmerc1> hmmm http.Get("http://localhost:9999") isn't hitting my
listener in my benchmark
18:17 < knowmerc1> I see it starting up, but no requests hit it and the test
never finishes
18:18 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has joined
#go-nuts
18:18 < knowmerc1> http://pastebin.com/jiTCmLwi # My code
18:18 < skelterjohn|work> what happens when you try to access it with a web
browser?
18:20 < knowmerc1> it works
18:20 < knowmerc1> I did test that while the test is running
18:20 < knowmerc1> I also changed b.N to 4 to see if it didn't think it
could get a reliable number...  still "hung"
18:21 < skelterjohn|work> oh
18:21 < skelterjohn|work> are you enabling benchmarks?
18:21 < knowmerc1> hrmmm?
18:21 < skelterjohn|work> or are you just running "gotest" with no arguments
18:21 < skelterjohn|work> http://golang.org/cmd/gotest
18:21 < knowmerc1> gotest -bench="BenchmarkWebGo" -file final_test.go
18:21 < skelterjohn|work> that won't work
18:22 < knowmerc1> no?
18:22 < skelterjohn|work> -test.bench
18:22 < knowmerc1> I need them both?
18:22 < skelterjohn|work> -bench doesn't do anything
18:22 < skelterjohn|work> -test.bench does something
18:22 < knowmerc1> I thought -test.bench went to -bench=""
18:22 < knowmerc1> ok
18:22 < skelterjohn|work> peruse the link i linked
18:23 -!- tvw [~tv@e176001185.adsl.alicedsl.de] has joined #go-nuts
18:23 < knowmerc1> ok
18:24 < knowmerc1> the docs I'm reading are slightly different
18:24 < skelterjohn|work> what docs are you reading?
18:25 < skelterjohn|work> gotest *used* to work like you said
18:25 -!- adg [~nf@atka.wh3rd.net] has joined #go-nuts
18:25 -!- mode/#go-nuts [+o adg] by ChanServ
18:25 < skelterjohn|work> i think the change was a few months back
18:25 < knowmerc1> yeah
18:25 < knowmerc1> ok
18:25 < knowmerc1> phew, then I'm not crazy, just outdated :)
18:26 -!- rael_wiki [~chatzilla@unaffiliated/rael-wiki/x-8420294] has joined
#go-nuts
18:27 < knowmerc1> http://pastebin.com/CxvvSEB9
18:27 < knowmerc1> like that?
18:27 < rael_wiki> hello everyone
18:27 < knowmerc1> I do see it get into the bench, but it still hangs
18:27 < skelterjohn|work> ok, well one problem solved :)
18:27 < skelterjohn|work> i don't know much about http
18:27 < skelterjohn|work> hi rael_wiki
18:28 < knowmerc1> hrmmm
18:28 < rael_wiki> I have an object which has a Start() method, at the
beginning of that method it checks there's no other instance running and if there
is one it should return an error.  Which os.Error should I use?  Or maybe should I
create one?
18:28 < knowmerc1> it was starting up the bench before skelterjohn|work ;)
18:28 < aiju> os.NewError("nope.jpg")
18:28 < aiju> the universal error
18:29 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has
joined #go-nuts
18:29 < skelterjohn|work> do what aiju said
18:29 < skelterjohn|work> maybe a more helpful message
18:29 < rael_wiki> lol
18:29 < aiju> no, a more provoking
18:29 < aiju> os.NewError("fuck off")
18:30 < knowmerc1> or os.NewError("bewbs!")
18:30 < aiju> putting ASCII art porn in error messages
18:30 < aiju> that's some idea
18:31 < skelterjohn|work>
os.NewError("http://3.bp.blogspot.com/_ORdeULzJ7m0/S9sfJrhPF6I/AAAAAAAAAME/lhsPsaXKOPI/s400/who.jpg")
18:31 < rael_wiki>
http://developer.android.com/reference/android/util/Log.html -> public static
int wtf (String tag, Throwable tr)
18:31 < rael_wiki> What a Terrible Failure: Report an exception that should
never happen.
18:31 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
18:32 < aiju> rael_wiki: reporting "should not happen" things is a good idea
18:32 < aiju> it's the true point of assertions
18:32 < skelterjohn|work> my code has panic("unreachable") here and there
18:32 < rael_wiki> aiju: yep, I find the name wtf very explaining :D
18:33 < aiju> rael_wiki: my panic routine is called fuck
18:33 < aiju> fuck("should not happen")
18:33 < zozoR> does it anything else but panic?
18:33 < aiju> not talking about Go here
18:33 < zozoR> func fuck(s string) {panic(s)}
18:33 < zozoR> D:
18:33 < aiju> although gofy had a fuck routine
18:34 < aiju> it was like Go panic, but it skipped all the stack unrolling
18:34 < nicka> I had a look through some of it yesterday
18:34 < aiju> it just goes straight to print shit on screen
18:34 < nicka> You write entertaining code
18:35 < aiju> hahahahaha
18:35 -!- tvw [~tv@e176001185.adsl.alicedsl.de] has quit [Remote host closed the
connection]
18:38 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has quit
[Read error: Connection reset by peer]
18:38 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has
joined #go-nuts
18:39 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has
joined #go-nuts
18:39 < rael_wiki> I would like your opinion about the case-dependent
attribute visibility (sorry for my English, I'm not a native speaker)
18:41 -!- r_linux [~r_linux@189.38.220.35] has quit [Ping timeout: 264 seconds]
18:41 < rael_wiki> I have conflicting ideas about it: on one side I find it
makes the code more readable but on the other side it binds the visibility of a
variable to its name so changing the visibility implies changing every line used
that variable
18:41 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined
#go-nuts
18:41 < rael_wiki> *every line in which the variable is used
18:42 < skelterjohn|work> the idea is that in every case, you can tell if
something is exported just by looking at it
18:42 < skelterjohn|work> any scheme that had that attribute would require
changing each instance of its use
18:43 < skelterjohn|work> not gonna change, anyway
18:43 -!- tvw [~tv@e176001185.adsl.alicedsl.de] has joined #go-nuts
18:44 < rael_wiki> I understand
18:44 < leterip> nah if you had something as public and then decided to make
it private, you'd only have to change the keyword (and anything that used the
public thing)
18:44 < leterip> assuming there were keywords
18:44 < skelterjohn|work> and there aren't, so that is moot
18:44 < leterip> i like the case better than keywords though
18:44 < skelterjohn|work> if it was just one keyword in the definition, it
wouldn't be visible in each instance of its use
18:44 -!- Argue [~Argue@112.201.133.68] has quit [Quit: Leaving]
18:46 < |Craig|> technically its possible (And I believe has been done) to
have a tool locate and change all occurances of a specific variable in go, so with
proper tools, that should not be an issue
18:46 < skelterjohn|work> yeah - i made something that used to be able to do
this
18:46 < skelterjohn|work> won't compile anymore
18:46 < skelterjohn|work> github.com/skelterjohn/gorf
18:46 < skelterjohn|work> and the code was a bit messy - if i tried again it
would be nicer
18:46 < leterip> id imagine gofix could do it very easily
18:47 < skelterjohn|work> i don't think so
18:47 < leterip> if you knew how to write the thingy
18:47 < skelterjohn|work> gofix doesn't know global context
18:47 < leterip> hm
18:47 < skelterjohn|work> well, in the sense that it's a go program and you
can write a module in it to do whatever you want, it can
18:47 < skelterjohn|work> but none of the fix modules do anything like this
18:47 < |Craig|> I think gocode could do it for a while, but it made the
cache much larger or something
18:48 < leterip> regardless i think that changing scope happens infrequently
vs reading code
18:48 < leterip> and keywords are just clutter after a while
18:49 < leterip> so im a fan of the capitalization for visibility
18:49 < aiju> i have to admit rarely putting things in private scope
18:50 < skelterjohn|work> same - i start out w/ public
18:50 < leterip> i do the opposite
18:50 < |Craig|> most of my stuff is variables in functions, which can't be
public :)
18:51 < aiju> but then i wrote usually one package
18:51 < aiju> called main
18:51 -!- shoenig [~shoenig@bastion.sfo1.yelpcorp.com] has joined #go-nuts
18:52 < skelterjohn|work> i just never use packages
18:59 -!- virtualsue [~chatzilla@nat/cisco/x-yojuwkderwgabcuf] has quit [Ping
timeout: 240 seconds]
19:00 -!- c00w [~colin@97-112-204-183.frgo.qwest.net] has quit [Quit: Ex-Chat]
19:00 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has quit [Quit:
Leaving.]
19:04 -!- nekoh [~nekoh@dslb-178-004-026-225.pools.arcor-ip.net] has quit [Ping
timeout: 258 seconds]
19:05 -!- niemeyer [~niemeyer@72-254-15-217.client.stsn.net] has quit [Ping
timeout: 240 seconds]
19:06 -!- virtualsue [~chatzilla@host81-148-92-224.in-addr.btopenworld.com] has
joined #go-nuts
19:07 -!- tvw [~tv@e176001185.adsl.alicedsl.de] has quit [Remote host closed the
connection]
19:08 -!- nekoh [~nekoh@dslb-178-004-026-191.pools.arcor-ip.net] has joined
#go-nuts
19:14 -!- itrekkie [86868b48@gateway/web/freenode/ip.134.134.139.72] has joined
#go-nuts
19:14 -!- moraes [~moraes@189.103.188.201] has quit [Quit: Leaving]
19:15 < itrekkie> hi all--could someone help me with gotest's benchmark
commandline syntax?  I'm trying to run a benchmark (gotest -bench=true ?), but
when it runs it just says there are no tests, any ideas?
19:15 < skelterjohn|work> the argument isn't true - it's a pattern for the
benchmarks you want to run
19:16 < skelterjohn|work> golang.org/cmd/gotest
19:16 -!- mikesamuel [~mikesamue@nat/google/x-kthjlroihwsmebkb] has joined
#go-nuts
19:16 -!- miker2 [~miker2@64.55.31.190] has quit [Ping timeout: 240 seconds]
19:16 < itrekkie> ah, thank you, that clears that up
19:18 < mikesamuel> Can I bother someone with questions about hg change?
19:18 < skelterjohn|work> #mercurial ?
19:18 < mikesamuel> will ask there.  thx
19:19 -!- tncardoso [~thiagon@150.164.2.20] has quit [Quit: Leaving]
19:19 < skelterjohn|work> i have used it to submit changes to go, though
19:19 < skelterjohn|work> have you read the contribution guidelines?
19:20 < mikesamuel> yes I have
19:21 < mikesamuel> I tried to follow the process, but got derailed because
I missed a file I needed to gofmt.  There's a skeleton CL now, but hg change
—pending isn't working as advertised.
19:22 < skelterjohn|work> you can just mail it again
19:22 < skelterjohn|work> (revise and upload section)
19:24 < mikesamuel> worked like a charm.  Thanks.
19:24 < skelterjohn|work> :)
19:25 < itrekkie> how do you interpret the results of gotest's benchmark
output?  ns/op seems clear enough, an operation being once through the benchmark
function, but what's the second column?
19:25 < skelterjohn|work> pastebin?
19:25 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has joined
#go-nuts
19:27 < itrekkie> sure thing, http://pastebin.com/sbhievP9
19:27 < skelterjohn|work> how many instances of the benchmark were run
19:27 -!- skelterjohn|work [~jasmuth@dice.rutgers.edu] has left #go-nuts
["Leaving"]
19:27 -!- skelterjohn|work [~jasmuth@dice.rutgers.edu] has joined #go-nuts
19:27 -!- virtualsue [~chatzilla@host81-148-92-224.in-addr.btopenworld.com] has
quit [Ping timeout: 255 seconds]
19:28 -!- dmg [~dmg@ip56513def.adsl-surfen.hetnet.nl] has joined #go-nuts
19:30 -!- itrekkie [86868b48@gateway/web/freenode/ip.134.134.139.72] has quit
[Quit: Page closed]
19:32 < knowmerc1> I've come full circle on whether I wanted to use go's
built in http server :)
19:32 < skelterjohn|work> what's your position now?
19:32 < dmg> Still working on my lzo bindings.  Basically done, just
cleaning up.
19:33 < dmg> Is there a way for a go variable to hold a pointer to a C
function?
19:33 < skelterjohn|work> yes - unsafe.Pointer can be any kind of pointer
19:33 < skelterjohn|work> but you can't call it
19:33 < skelterjohn|work> you'll have to go back to C land to call it, using
a function known at compile time
19:33 < skelterjohn|work> C.callMyFunction(theFunction)
19:34 < skelterjohn|work> or something
19:34 -!- virtualsue [~chatzilla@nat/cisco/x-svptvddgghigdwab] has joined #go-nuts
19:34 < dmg> "any problem in computer science can be solved by adding a
layer of indirection"
19:34 < dmg> gotcha
19:34 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
19:35 < skelterjohn|work> it would be nicer if you could just do
theFunction()
19:35 < dmg> maybe I'll just keep the 'switch z.algorithm { }' blocks then
19:35 < skelterjohn|work> actually, i wonder what happens if you do "x :=
C.foo; x()"
19:35 < dmg> This is in the library
19:35 < skelterjohn|work> (trying it)
19:35 < dmg> it complains "must call C.foo"
19:35 < dmg> (I tried that first, then tried to find docs)
19:36 < skelterjohn|work> yeah
19:36 < dmg> I found a post talking about function pointers for calling from
C to Go and callbacks.
19:37 < dmg> I suppose I could individually wrap the C.lzo1x_FOO_compress
calls into private Go func's, and then store a pointer to the go function.
19:38 < skelterjohn|work> seems like a reasonable indirection :)
19:39 < knowmerc1> skelterjohn|work: I'm back to "just use the builtin one"
19:40 < qeed> hmm im using cgo with opengl shaders, for some reason i get
10-15 fps drawing 1 triangle with a texture on it, with the same gl calls in C, i
get 60 fps, is there any reason why this is
19:40 < skelterjohn|work> there is overhead to making cgo calls
19:40 < qeed> that much overhead?
19:41 < skelterjohn|work> it's not huge, but it exists - how much if affects
what you're doing depends on how many calls you make
19:41 < skelterjohn|work> also check for allocations
19:45 < qeed> well i call a glDrawArrays once per frame, after everything is
setup i dont do any allocation i dont think
19:45 < skelterjohn|work> that doesn't sound like the cgo overhead issue
19:45 < qeed> http://pastie.org/2351931
19:46 -!- noselasd [~kvirc@80.239.96.162] has joined #go-nuts
19:46 < qeed> the loop is gameloop()
19:46 < skelterjohn|work> i have an program that uses cgo/opengl and it
draws way more than 60fps, with more than one cgo call per frame
19:46 -!- miker2 [~miker2@64.55.31.190] has joined #go-nuts
19:46 < dmg> skelterjohn|work: using go function pointers works nicely.
19:46 < qeed> can you show me your program and how you did the opengl
bindings i just use glew
19:47 < skelterjohn|work> the code isn't public
19:47 < skelterjohn|work> but i use banthar's Go-OpenGL
19:47 < skelterjohn|work> and exch's bindings of glfw
19:47 < nicka> fwiw drawing a model with a couple thousand verts with
glDrawElements I get several thousand fps so this isn't a cgo issue
19:47 < skelterjohn|work> github.com/banthar/Go-OpenGL
19:47 < skelterjohn|work> github.com/jteeuwen/glfw
19:48 < qeed> do you see anything wrong with that code
19:48 < skelterjohn|work> uh
19:48 < skelterjohn|work> yes
19:48 < skelterjohn|work> for run { }
19:48 < skelterjohn|work> that is silly :)
19:48 < qeed> i commented that out
19:49 < skelterjohn|work> you have a fmt.Sprintf() call every frame
19:49 < skelterjohn|work> that's a bad idea
19:49 < nicka> where is drawQuads?
19:49 < qeed> every second not frame
19:49 < skelterjohn|work> maybe do that once a second
19:49 < skelterjohn|work> oh you're right
19:49 < qeed> drawquads is just gl.DrawArrays(gl.TRIANGLES, offset, count *
6)
19:50 < skelterjohn|work> you do an allocation on line 55/56
19:50 < skelterjohn|work> but it shouldn't be too bad
19:50 < qeed> let me comment that out and see
19:50 < skelterjohn|work> it's not the issue
19:51 < qeed> i dont see what it could be its the exact gl calls i use for C
19:51 < skelterjohn|work> and every call to gl.X() or sdl.X() is a cgo call
19:51 < qeed> yeah
19:51 < dmg> wouldn't a profiler help here?
19:51 < skelterjohn|work> that's a good idea
19:51 < skelterjohn|work> not the first thing i think of because i've never
used it :s
19:51 < qeed> cmd/prof?
19:52 < skelterjohn|work> 6prof or 8prof
19:52 < skelterjohn|work> http://pastie.org/2351967 <- my draw loop - i
decided no one cares if i expose it
19:52 < nicka> fixed function -_-
19:54 < qeed> http://pastie.org/2351989
19:54 < dmg> when optimizing, profilers are important so you don't end up
speeding up the wrong routine.
19:55 < dmg> So, I guess I could/should put my lzo wrapper on github, huh?
19:55 < dmg> guess I'll need a github account
19:55 < skelterjohn|work> what's it do
19:55 < skelterjohn|work> ?
19:55 < aiju> it wraps lzo
19:56 < qeed> so what does the profile info tell you guys?
19:56 < skelterjohn|work> that all your time is spent in runtime.futex, and
i have no idea what that is
19:56 < dmg> z, _ := lzo.NewCompressor(lzo.BestCompression)
19:56 < dmg> c, _ := z.Compress(buf[:])
19:56 < skelterjohn|work> but it is almost like mutex, so probably something
about resource locking
19:56 < aiju> hahaha
19:56 < aiju> skelterjohn|work: no
19:56 < aiju> skelterjohn|work: futex are the basic synchronization
primitives
19:56 < aiju> used for e.g.  channels
19:56 < dmg> nicer wrap than the one someone pointed me at yesterday
19:57 < dmg> also z.Decompress(in[:], out[:])
19:57 < dmg> anways, off to feed the kid
19:57 -!- dmg [~dmg@ip56513def.adsl-surfen.hetnet.nl] has quit [Quit: leaving]
19:58 < aiju> i didn't knew people grow goats these days
19:58 < skelterjohn|work> i want to swap two letters there so bad...
19:58 < qeed> so is the futex thing done by go automatically or did i do it
somehow
19:58 -!- alehorst [~alehorst@201.47.21.29.dynamic.adsl.gvt.net.br] has quit
[Quit: Leaving.]
19:58 < aiju> qeed: well, it can be anything basicalyl
20:00 < aiju> qeed: it seems like most of your code is busy switching
goroutines
20:00 < skelterjohn|work> harder to diagnose the issue without a larger
context
20:01 < qeed> i did the LockOSThread() thing and thats pretty much the
goroutine you are looking at
20:01 < skelterjohn|work> i don't think that would have helped
20:01 < leterip> hmm
20:01 < skelterjohn|work> i don't see anything in there that looks like a
goroutine yield
20:01 < qeed> heres the gl bindings http://pastie.org/2352021 its just
calling C functions if that helps
20:02 -!- alehorst [~alehorst@201.47.21.29.dynamic.adsl.gvt.net.br] has joined
#go-nuts
20:02 -!- miker2 [~miker2@64.55.31.190] has quit [Ping timeout: 252 seconds]
20:04 -!- mikesamuel [~mikesamue@nat/google/x-kthjlroihwsmebkb] has left #go-nuts
[]
20:07 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has quit
[Remote host closed the connection]
20:09 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has
joined #go-nuts
20:27 -!- dlowe [~dlowe@ita4fw1.itasoftware.com] has quit [Quit: Leaving.]
20:28 * f2f just found a go web server that had been running since may 23rd.
still going strong :)
20:30 -!- niemeyer [~niemeyer@72-254-15-217.client.stsn.net] has joined #go-nuts
20:31 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
20:34 < knowmerc1> :)
20:34 < knowmerc1> do they panic?
20:34 < knowmerc1> leak mem?
20:44 < f2f> 12MB RSS.  less than apache
20:45 < f2f> another service that doesn't use http but talks to the network
directly has an RSS of 1.7MB
20:45 < f2f> again running since May 23.  they've both served several
gigabytes
20:45 < f2f> but nothing really heavy
20:46 < knowmerc1> :)
20:46 < knowmerc1> I can't wait to get my app done!
20:46 -!- mkrautz [~mkrautz@poipu/developer/krejler] has joined #go-nuts
20:48 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error:
Connection reset by peer]
20:49 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
20:53 -!- TheMue [~FMueller@p5DDF772F.dip.t-dialin.net] has quit [Quit: Lost
terminal]
20:54 -!- knowmerc1 [~knowmercy@mobile-198-228-224-243.mycingular.net] has quit
[Remote host closed the connection]
21:03 -!- gmilleramilar [~gmiller@pool-74-101-133-165.nycmny.fios.verizon.net] has
joined #go-nuts
21:09 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
21:18 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has quit
[Ping timeout: 252 seconds]
21:18 -!- firwen [~firwen@2a01:e34:eea3:7e10:4a5b:39ff:fe51:e8ae] has quit [Remote
host closed the connection]
21:19 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
21:25 -!- pothos_ [~pothos@111-240-166-189.dynamic.hinet.net] has joined #go-nuts
21:27 -!- pothos [~pothos@111-240-172-223.dynamic.hinet.net] has quit [Ping
timeout: 276 seconds]
21:31 -!- Fish- [~Fish@9fans.fr] has quit [Quit: WeeChat 0.3.5]
21:37 -!- chomp [~chomp@dap-209-166-184-50.pri.tnt-3.pgh.pa.stargate.net] has quit
[Quit: Leaving]
21:43 -!- rael_wiki [~chatzilla@unaffiliated/rael-wiki/x-8420294] has quit [Ping
timeout: 246 seconds]
21:43 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit
[Quit: Lost terminal]
21:45 -!- pingveno_ [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Quit:
leaving]
21:46 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
21:48 -!- tncardoso [~thiago@189.115.129.93] has joined #go-nuts
21:50 -!- huin [~huin@91.84.179.118] has quit [Quit: bedtime]
21:51 -!- pjacobs [~pjacobs@66.54.185.130] has quit [Ping timeout: 260 seconds]
21:58 -!- rael_wiki
[~chatzilla@host165-208-dynamic.17-87-r.retail.telecomitalia.it] has joined
#go-nuts
21:58 -!- rael_wiki
[~chatzilla@host165-208-dynamic.17-87-r.retail.telecomitalia.it] has quit
[Changing host]
21:58 -!- rael_wiki [~chatzilla@unaffiliated/rael-wiki/x-8420294] has joined
#go-nuts
22:05 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
22:07 -!- TheSeeker [riiight@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has
quit []
22:08 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has joined #go-nuts
22:09 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:11 < rael_wiki> what is the difference between using the sync package and
achieving mutex with channels, and which one is preferable?
22:12 < skelterjohn> depends on context
22:12 < skelterjohn> if you want to communicate something (even if it's just
"i'm ready"), use a channel
22:13 < skelterjohn> if the only thing you want to do is allow only a single
goroutine at a time in a code block, use a mutex
22:13 < rael_wiki> skelterjohn: ok, I've always used cahnnels for the
latter...  :(
22:13 < skelterjohn> i do sometimes, too
22:13 < skelterjohn> it's slightly less efficient
22:14 < skelterjohn> and i like not importing sync
22:14 < rael_wiki> ok, so it is not too bad to use channels to achieve
mutex...
22:15 < rael_wiki> it is so straightforward...
22:15 < skelterjohn> yeah - make a channel with a buffer size of 1
22:15 < skelterjohn> or however many you want to allow in
22:16 < rael_wiki> yep I know, I also love to take advantage of go's syntax
to do things like "defer func(c bool){a.mutex <- true}(<-a.mutex)"
22:17 < skelterjohn> that seems reversed ;)
22:18 < rael_wiki> :)
22:23 -!- virtualsue [~chatzilla@nat/cisco/x-svptvddgghigdwab] has quit [Ping
timeout: 250 seconds]
22:24 -!- tncardoso [~thiago@189.115.129.93] has quit [Quit: bye]
22:24 -!- ajray-fh [~extreme@32.97.110.53] has quit [Quit: leaving]
22:28 < f2f> one difference is that with sync.Mutex you're always hitting
the same mutex from all directions.  with channels you could potentially share the
locking load between multiple channels.
22:31 < rael_wiki> f2f: that's interesting...
22:36 < skelterjohn> what do you mean?
22:39 < f2f> me?
22:39 -!- yogib [~yogib@dslb-178-009-065-231.pools.arcor-ip.net] has quit [Quit:
yogib]
22:40 < skelterjohn> yes
22:40 < skelterjohn> how can you share locking load between multiple
channels when you can't with multiple mutexs
22:41 -!- avamk [~avamk@client-75-102-65-203.mobility-up.psu.edu] has joined
#go-nuts
22:43 < rael_wiki> skelterjohn: as far as I understood he means that the
sync package you are using the same resources for many mutexes while with channel
you need a channel for every object mutexed
22:43 < f2f> perhaps "can't" isn't the right word for it :)
22:43 < rael_wiki> but maybe I misunderstood
22:43 -!- nekoh [~nekoh@dslb-178-004-026-191.pools.arcor-ip.net] has quit [Quit:
nekoh]
22:44 < skelterjohn> i'm having trouble even envisioning where it might be
more convenient to go from one chan to many chans vs one mutex to many mutexes
22:44 < f2f> i'm trying to figure out a non-convoluted example, but the best
i'm coming with is the case when you have a bunch goroutines using a channel for
synchronization and you want to hand them off to a different goroutine
22:46 < skelterjohn> hand the goroutines off to a different goroutine?
22:46 < rael_wiki> now I'm just checking on the dictionary the meaning of
"hand off" :)
22:46 < f2f> yes, for control
22:46 < f2f> let's say i have a chain of goroutines that perform a command
22:46 < f2f> s/command/calculation/
22:47 < f2f> they each receive communication from the preceding goroutine
and send off data to the following goroutine
22:47 < rael_wiki> ok, perl syntax is ok :)
22:47 -!- TheSeeker [riiight@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has
joined #go-nuts
22:47 < f2f> i want to inject yet another chain in the middle of the current
one
22:48 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
22:48 < skelterjohn> then the channels are doing more than mutexing
22:48 < skelterjohn> they're communicating data
22:48 < skelterjohn> in which case channels are much more appropriate :)
22:48 < f2f> well, yes.
22:49 < f2f> i think that was the idea
22:49 -!- mkrautz [~mkrautz@poipu/developer/krejler] has quit [Quit: Lost
terminal]
22:49 < f2f> badly explained
22:49 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
quit [Remote host closed the connection]
22:50 < f2f> the only time i see people wanting to use Mutex is inside a
WaitGroup.  i was thinking that, without additional support from the goroutines
doing the work, you can't move them from one WaitGroup to another
22:53 -!- Solak [~stijnw@cthia.xs4all.nl] has quit [Remote host closed the
connection]
22:55 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
22:56 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
22:56 -!- pearle [~pearle@blk-224-181-222.eastlink.ca] has joined #go-nuts
23:07 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
23:15 -!- everyman [~user@blk-224-153-99.eastlink.ca] has joined #go-nuts
23:15 -!- niemeyer [~niemeyer@72-254-15-217.client.stsn.net] has quit [Ping
timeout: 240 seconds]
23:22 -!- kergoth [~kergoth@ip24-251-173-232.ph.ph.cox.net] has quit [Ping
timeout: 252 seconds]
23:23 < everyman> i'm having trouble using goinstall to build my own local
code.  here's a paste that gives some more info: http://pastebin.com/DH6fq030
23:23 < everyman> any help appreciated!
23:25 -!- sniper506th [~sniper506@rrcs-70-61-192-18.midsouth.biz.rr.com] has quit
[Quit: Leaving...]
23:26 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 246 seconds]
23:29 < everyman> also: 6g version release.r59 9228
23:30 < everyman> (updated today)
23:31 -!- allengeorge [~allengeor@c-24-7-17-50.hsd1.ca.comcast.net] has joined
#go-nuts
23:31 -!- photron [~photron@port-92-201-20-158.dynamic.qsc.de] has quit [Ping
timeout: 276 seconds]
23:32 -!- avamk [~avamk@client-75-102-65-203.mobility-up.psu.edu] has left
#go-nuts []
23:32 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 250 seconds]
23:35 < everyman> interestingly, godoc _does_ see the norstrulde.org/bar
package (ie.  "godoc norstrulde.org/bar" shows something reasonable)
23:38 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
23:41 < everyman> ok..  if i put the go code for the test main package into
the gopath tree, then it builds and runs fine.  this will work fine for me though
i didn't expect that to be necessary
23:42 -!- miker2 [~miker2@pool-96-245-224-59.phlapa.fios.verizon.net] has joined
#go-nuts
23:42 -!- everyman [~user@blk-224-153-99.eastlink.ca] has left #go-nuts ["ERC
Version 5.3 (IRC client for Emacs)"]
23:43 -!- foocraft_ [foocraft@ibawizard.net] has joined #go-nuts
23:56 < allengeorge> I'm trying to read from a PacketConn using
ReadFromRemote.  Is there a way I can avoid allocating a huge buffer?  i.e.  is
there a way I can know how many bytes are waiting on the socket?
--- Log closed Thu Aug 11 00:00:20 2011