--- Log opened Fri Sep 02 00:00:22 2011
00:00 < nsf>
https://github.com/nsf/gocode/commit/af13a7aa18e4b3ef3cf970898dd1b52c6bbcab2b
00:00 < nsf> done, that's it
00:00 < nsf> I've fulfilled my promise
00:00 < nsf> good night :D report bugs tomorrow, lol
00:00 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.5]
00:13 -!- itrekkie [86868b4a@gateway/web/freenode/ip.134.134.139.74] has quit
[Quit: Page closed]
00:17 -!- shoenig [~shoenig@rrcs-71-42-216-104.sw.biz.rr.com] has joined #go-nuts
00:17 -!- shoenig [~shoenig@rrcs-71-42-216-104.sw.biz.rr.com] has quit [Client
Quit]
00:18 -!- shoenig [~shoenig@rrcs-71-42-216-104.sw.biz.rr.com] has joined #go-nuts
00:19 -!- thrashr888 [~thrashr88@64.125.143.6] has quit [Quit: thrashr888]
00:23 -!- Bigbear1 [~Cody@S010678cd8e7c81a8.cg.shawcable.net] has joined #go-nuts
00:23 -!- thrashr888 [~thrashr88@64.125.143.6] has joined #go-nuts
00:23 -!- lazy1 [~miki@207.171.18.139] has joined #go-nuts
00:29 -!- moraes [~moraes@189.103.177.124] has quit [Quit: Leaving]
00:31 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Quit: Leaving]
00:33 -!- tansell-laptop [~tansell@42.62.196.221] has joined #go-nuts
00:40 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza]
00:42 -!- ericvh [~Adium@cpe-72-177-122-77.austin.res.rr.com] has joined #go-nuts
00:46 -!- miker2 [~miker2@pool-71-175-94-30.phlapa.fios.verizon.net] has joined
#go-nuts
00:47 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts
00:48 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
00:50 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds]
00:54 -!- nekoh [~nekoh@dslb-088-068-000-173.pools.arcor-ip.net] has quit [Quit:
nekoh]
00:56 -!- qeed [~qeed@adsl-74-235-197-174.mco.bellsouth.net] has quit [Quit:
Leaving]
00:58 -!- shoenig [~shoenig@rrcs-71-42-216-104.sw.biz.rr.com] has quit [Ping
timeout: 245 seconds]
01:00 -!- lazy1 [~miki@207.171.18.139] has left #go-nuts ["Ex-Chat"]
01:00 -!- lazy1 [~miki@207.171.18.139] has joined #go-nuts
01:00 -!- ericvh [~Adium@cpe-72-177-122-77.austin.res.rr.com] has quit [Quit:
Leaving.]
01:08 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza]
01:13 -!- tansell-laptop [~tansell@42.62.196.221] has quit [Ping timeout: 258
seconds]
01:14 -!- tansell-laptop [~tansell@42.62.196.221] has joined #go-nuts
01:17 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts
01:19 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 264
seconds]
01:22 -!- thrashr888 [~thrashr88@64.125.143.6] has quit [Quit: thrashr888]
01:24 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
01:27 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza]
01:28 -!- x44t [~xps@175.169.150.111] has quit [Quit: Leaving.]
01:44 -!- lazy1 [~miki@207.171.18.139] has quit [Ping timeout: 258 seconds]
02:12 -!- snits [~snits@174-17-108-51.phnx.qwest.net] has quit [Quit: leaving]
02:14 -!- snits [~snits@174-17-108-51.phnx.qwest.net] has joined #go-nuts
02:15 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
02:16 -!- franciscosouza [~francisco@187.105.22.4] has joined #go-nuts
02:18 -!- franciscosouza_ [~francisco@187.105.26.180] has joined #go-nuts
02:22 -!- franciscosouza [~francisco@187.105.22.4] has quit [Ping timeout: 264
seconds]
02:24 -!- gnuvince [~vince@destiny.0wn.me] has quit [Remote host closed the
connection]
02:26 -!- twolfe18 [~twolfe18@c-68-34-98-222.hsd1.md.comcast.net] has quit [Quit:
twolfe18]
02:29 -!- franciscosouza [~francisco@187.105.26.180] has quit [Read error:
Connection reset by peer]
02:30 -!- franciscosouza [~francisco@187.105.26.180] has joined #go-nuts
02:33 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Remote host closed the
connection]
02:33 -!- lazy1 [~miki@cpe-75-84-253-172.socal.res.rr.com] has joined #go-nuts
02:35 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has quit [Quit:
Leaving]
02:37 -!- miker2 [~miker2@pool-71-175-94-30.phlapa.fios.verizon.net] has quit
[Quit: Computer has gone to sleep.]
02:42 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
02:44 -!- lazy1 [~miki@cpe-75-84-253-172.socal.res.rr.com] has quit [Ping timeout:
264 seconds]
02:46 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Remote host closed the
connection]
02:56 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
joined #go-nuts
03:01 -!- tansell-laptop [~tansell@42.62.196.221] has quit [Ping timeout: 260
seconds]
03:08 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
quit [Quit: Leaving...]
03:32 -!- odoacre [~antonio@218.241.169.34] has joined #go-nuts
03:33 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has joined #go-nuts
03:34 -!- tansell-laptop [~tansell@nat/google/x-igwjizrpocydhsek] has joined
#go-nuts
03:55 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
04:12 -!- BizarreCake [~BizarreCa@77.126.1.15] has joined #go-nuts
04:13 -!- Bigbear1 [~Cody@S010678cd8e7c81a8.cg.shawcable.net] has quit [Read
error: Connection reset by peer]
04:17 -!- twolfe18 [~twolfe18@c-68-34-98-222.hsd1.md.comcast.net] has joined
#go-nuts
04:27 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
04:27 -!- niemeyer [~niemeyer@200-102-220-163.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
04:31 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
04:38 < s|k> "Oh sweet.  I resign."
04:38 < s|k> haha
04:39 < s|k>
http://groups.google.com/group/golang-nuts/browse_thread/thread/92cc3e128d7f0473#
04:39 < s|k> rob++
04:52 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has quit [Quit: Computer
has gone to sleep.]
04:59 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
05:04 -!- sl [none@sp.inri.net] has quit [Remote host closed the connection]
05:05 -!- sl [none@phoenix.inri.net] has joined #go-nuts
05:13 -!- BizarreCake [~BizarreCa@77.126.1.15] has quit [Quit: Leaving]
05:22 -!- sl [none@phoenix.inri.net] has quit [Read error: Connection reset by
peer]
05:23 -!- lmnop [none@50-44-67-1.bltn.il.frontiernet.net] has quit [Ping timeout:
260 seconds]
05:23 -!- sl [none@sp.inri.net] has joined #go-nuts
05:25 -!- lmnop [none@50-44-67-1.bltn.il.frontiernet.net] has joined #go-nuts
05:37 -!- franciscosouza [~francisco@187.105.26.180] has quit [Read error:
Connection reset by peer]
05:37 -!- mavar [~mavar@81-226-52-85-no179.tbcn.telia.com] has joined #go-nuts
05:38 -!- shoenig [~seth@rrcs-71-42-216-104.sw.biz.rr.com] has joined #go-nuts
05:38 -!- franciscosouza [~francisco@187.105.26.180] has joined #go-nuts
05:39 -!- remy_o [~babar@archlinux/developer/remy-o] has joined #go-nuts
05:41 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
05:42 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
05:48 -!- vmil86 [~vmil86@88.118.38.213] has joined #go-nuts
05:49 -!- twolfe18 [~twolfe18@c-68-34-98-222.hsd1.md.comcast.net] has quit [Quit:
twolfe18]
05:53 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving]
05:58 -!- mavar [~mavar@81-226-52-85-no179.tbcn.telia.com] has quit [Ping timeout:
245 seconds]
05:58 -!- benjack [~benjack@bb116-15-174-30.singnet.com.sg] has joined #go-nuts
06:05 -!- rajender [~rajender@122.183.102.226] has joined #go-nuts
06:14 -!- mavar [~mavar@81-226-52-85-no179.tbcn.telia.com] has joined #go-nuts
06:17 -!- Solak [~stijnw@cthia.xs4all.nl] has joined #go-nuts
06:23 -!- mavar [~mavar@81-226-52-85-no179.tbcn.telia.com] has quit [Read error:
Connection reset by peer]
06:37 -!- deepfuture [~liuxing@58.45.150.221] has joined #go-nuts
06:38 -!- deepfuture [~liuxing@58.45.150.221] has quit [Client Quit]
06:42 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has joined #go-nuts
06:45 -!- sebastianskejoe [~sebastian@56344c38.rev.stofanet.dk] has joined
#go-nuts
06:46 -!- Adys [~Adys@unaffiliated/adys] has quit [Read error: Connection reset by
peer]
06:46 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
06:48 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
06:59 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has quit [Quit: Computer
has gone to sleep.]
07:01 -!- jajamana [~jcb@cm-84.209.210.27.getinternet.no] has joined #go-nuts
07:01 -!- remy_o [~babar@archlinux/developer/remy-o] has quit [Ping timeout: 252
seconds]
07:02 -!- jajamana [~jcb@cm-84.209.210.27.getinternet.no] has quit [Client Quit]
07:04 -!- sinclair [~chatzilla@ip-118-90-5-90.xdsl.xnet.co.nz] has quit [Remote
host closed the connection]
07:08 -!- yogib [~yogib@webauth-79-196.uni-paderborn.de] has joined #go-nuts
07:10 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
07:24 -!- sebastianskejoe [~sebastian@56344c38.rev.stofanet.dk] has quit [Quit:
leaving]
07:26 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
07:29 -!- sinclair [~chatzilla@ip-118-90-5-90.xdsl.xnet.co.nz] has joined #go-nuts
07:30 -!- gobeginner [~nwood@2a02:16c8:40:0:21e:37ff:fed2:cf06] has joined
#go-nuts
07:33 -!- tansell-laptop [~tansell@nat/google/x-igwjizrpocydhsek] has quit [Ping
timeout: 260 seconds]
07:34 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:49 -!- virtualsue [~chatzilla@host81-139-100-166.in-addr.btopenworld.com] has
quit [Ping timeout: 245 seconds]
07:50 -!- BigBlackDog
[~BigBlackD@HSI-KBW-109-192-007-188.hsi6.kabel-badenwuerttemberg.de] has joined
#go-nuts
07:51 -!- virtualsue [~chatzilla@host81-139-100-166.in-addr.btopenworld.com] has
joined #go-nuts
08:03 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has joined #go-nuts
08:07 -!- photron [~photron@port-92-201-84-119.dynamic.qsc.de] has joined #go-nuts
08:11 < gobeginner> Can you create a slice using a composite literal to set
its initial values?  Effective go shows how to do it for arrays and maps
08:12 < mpl> uhm, something like foo := []int{1, 2, 3} ?
08:13 < mpl> I don't see why not.
08:15 < gobeginner> yep, sorry folks.  didn't read the complier error
properly and was looking at the wrong statement.
08:19 -!- valentin [~valentin@darkstar2.fullsix.com] has joined #go-nuts
08:21 -!- meling [~meling@134.81-167-41.customer.lyse.net] has quit [Remote host
closed the connection]
08:28 -!- BigBlackDog
[~BigBlackD@HSI-KBW-109-192-007-188.hsi6.kabel-badenwuerttemberg.de] has quit
[Ping timeout: 240 seconds]
08:29 -!- BigBlackDog
[~BigBlackD@HSI-KBW-109-192-007-188.hsi6.kabel-badenwuerttemberg.de] has joined
#go-nuts
08:42 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts
08:48 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
08:49 -!- meling [~meling@pico.ux.uis.no] has joined #go-nuts
08:57 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Quit:
pyrhho]
08:57 -!- meling_ [~meling@152.94.96.128] has joined #go-nuts
08:57 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts
08:59 -!- meling__ [~meling@152.94.96.128] has joined #go-nuts
08:59 -!- meling_ [~meling@152.94.96.128] has quit [Read error: Connection reset
by peer]
09:00 -!- meling [~meling@pico.ux.uis.no] has quit [Ping timeout: 264 seconds]
09:04 -!- Project_2501 [~Marvin@82.84.99.100] has joined #go-nuts
09:06 -!- x44t [~xps@175.169.150.111] has joined #go-nuts
09:13 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
09:13 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
09:16 -!- theli_ua [~theli@188.163.238.74] has joined #go-nuts
09:18 -!- kahvi [576c168e@gateway/web/freenode/ip.87.108.22.142] has joined
#go-nuts
09:25 -!- franciscosouza [~francisco@187.105.26.180] has quit [Read error:
Connection reset by peer]
09:26 -!- franciscosouza [~francisco@187.105.26.180] has joined #go-nuts
09:29 -!- benjack [~benjack@bb116-15-174-30.singnet.com.sg] has quit [Quit:
Leaving.]
09:32 -!- Zoopee [alsbergt@192.117.108.58] has quit [Ping timeout: 276 seconds]
09:33 -!- kahvi [576c168e@gateway/web/freenode/ip.87.108.22.142] has quit [Ping
timeout: 252 seconds]
09:37 -!- decaf [~mehmet@unaffiliated/decaf] has quit [Quit: Leaving.]
09:43 -!- x44t [~xps@175.169.150.111] has quit [Ping timeout: 245 seconds]
10:01 -!- x44t [~xps@175.169.150.111] has joined #go-nuts
10:02 -!- replore [~replore@203.152.213.161.static.zoot.jp] has quit [Remote host
closed the connection]
10:02 -!- meling [~meling@152.94.96.128] has joined #go-nuts
10:02 -!- meling__ [~meling@152.94.96.128] has quit [Read error: Connection reset
by peer]
10:04 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 258
seconds]
10:06 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
10:07 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
joined #go-nuts
10:08 -!- meling [~meling@152.94.96.128] has quit [Remote host closed the
connection]
10:09 -!- meling [~meling@pico.ux.uis.no] has joined #go-nuts
10:12 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
quit [Client Quit]
10:14 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
joined #go-nuts
10:18 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
10:18 -!- nekoh [~nekoh@dslb-178-004-217-196.pools.arcor-ip.net] has joined
#go-nuts
10:26 < nsf> str1ngs: I know you use archlinux, can you try recent vim
version with gocode?  it segfaults on my machine with "set completeopt+=longest"
10:26 < nsf> and also it's horribly slowpoke
10:27 < nsf> some fag changed longest match logic completely
10:27 < nsf> and added few bugs
10:30 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
10:30 -!- nekoh [~nekoh@dslb-178-004-217-196.pools.arcor-ip.net] has quit [Ping
timeout: 264 seconds]
10:32 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
10:32 -!- Project_2502 [~progettin@82.84.99.100] has joined #go-nuts
10:32 -!- nekoh [~nekoh@dslb-178-004-073-135.pools.arcor-ip.net] has joined
#go-nuts
10:32 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
10:34 -!- tvw [~tv@89.204.153.237] has joined #go-nuts
10:35 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
10:36 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
10:38 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 246
seconds]
10:42 -!- tvw [~tv@89.204.153.237] has quit [Ping timeout: 245 seconds]
10:45 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has quit [Quit:
Leaving.]
10:45 < str1ngs> nsf: no segfault
10:45 < str1ngs> I'll try with completeopt?
10:46 < str1ngs> no sefault with set completeopt+=longest either
10:46 < nsf> :\
10:47 < str1ngs> but the arch install I'm testing with is x86_64.  you use
i686 right?
10:47 < nsf> no, seriously it segfaults like hell
10:47 < nsf> vim version 7.3.289
10:47 -!- Argue [~Argue@112.201.172.5] has joined #go-nuts
10:47 < nsf>
http://code.google.com/p/vim/source/detail?r=44ffd0a8abcdba441216514cb711649eb1169876
10:47 < nsf> I assume that's the change that caused it
10:47 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has joined
#go-nuts
10:47 < str1ngs> one sec I need to pacman -SYu
10:48 < str1ngs> -Syu rather
10:48 < nsf> https://bugs.archlinux.org/task/25861
10:48 < nsf> I've opened local bug report also
10:48 < nsf> if you'll confirm it, drop a note :)
10:48 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has quit
[Client Quit]
10:49 < str1ngs> let me confirm first
10:49 < str1ngs> but I actually dont use arch anymore I have one machine
still though that has it
10:50 < nsf> I tried it on both of my machines :)
10:50 < str1ngs> I use a LFS based system now
10:50 < nsf> x86 and amd64
10:50 < nsf> and it segfaults
10:50 < nsf> on both
10:50 < nsf> and I can't write code therefore :D
10:50 < str1ngs> nope I cant get it to segfault
10:50 < nsf> :(
10:51 < str1ngs> does it only sefault with set completeopt+=longest ?
10:51 < nsf> yes
10:51 < nsf> basically it works like this:
10:51 < nsf> wait, I'll give you an example
10:51 < str1ngs> ok that might help
10:51 < nsf> line 216 in autocompletecontext.go in gocode
10:52 < nsf> after that line insert a new line with the following stuff
10:52 < nsf> da.<c-x><c-o> then type 'd' and then 'e'
10:52 < nsf> and it dies
10:52 < nsf> oops
10:52 < nsf> capital D
10:52 < nsf> 'D' and 'e'
10:52 < nsf> as simple as that
10:53 < str1ngs> ah ok that segfaults
10:53 < nsf> see
10:53 < nsf> and previously "longest" match worked only for the first
completion
10:53 < nsf> now it tries to do that with every letter typed
10:53 < nsf> which fucks up the performance
10:53 < nsf> because it calls gocode every time
10:54 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
10:54 < nsf> gocode is fast, ok, but on ccode (C/C++ autocompletion)
10:54 < nsf> where autocompletion takes a second or so
10:54 < nsf> on C++ projects
10:54 < nsf> it's totally bad
10:54 < nsf> :D
10:54 < str1ngs> well this sounds like an upstream bug?
10:55 < nsf> yes a very recent one
10:55 -!- kahvi [576c168e@gateway/web/freenode/ip.87.108.22.142] has joined
#go-nuts
10:55 < nsf>
http://code.google.com/p/vim/source/detail?r=44ffd0a8abcdba441216514cb711649eb1169876
10:55 < nsf> I'm pretty sure it's that commit
10:55 < str1ngs> ya might be better to make an issue upstream then.
10:55 < nsf> k
10:58 -!- virtualsue [~chatzilla@host81-139-100-166.in-addr.btopenworld.com] has
quit [Ping timeout: 245 seconds]
11:03 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
11:03 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
11:03 -!- kahvi [576c168e@gateway/web/freenode/ip.87.108.22.142] has quit [Ping
timeout: 252 seconds]
11:03 < nsf> vim guys hide their bug tracker quite well, and I'm sure I know
why
11:03 < nsf> :D
11:05 -!- virtualsue [~chatzilla@nat/cisco/x-tocbryyizheawnuq] has joined #go-nuts
11:05 -!- smw [~stephen@unaffiliated/smw] has quit [Ping timeout: 240 seconds]
11:09 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
quit [Quit: Leaving...]
11:12 -!- x44t [~xps@175.169.150.111] has quit [Quit: Leaving.]
11:16 -!- jmil [~jmil@c-68-81-252-40.hsd1.pa.comcast.net] has quit [Remote host
closed the connection]
11:22 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 240 seconds]
11:35 -!- kahvi [576c168e@gateway/web/freenode/ip.87.108.22.142] has joined
#go-nuts
11:37 < mpl> when you have a comment about a field of a struct, and it is
quite long (so it's going to take more than one line), how do you format it so
that it is not ugly and it is clear that this comment is for this field, not for
the other ones below?
11:37 -!- franciscosouza [~francisco@187.105.26.180] has quit [Read error:
Connection reset by peer]
11:37 < nsf> you don't comment on fields, just write everything you need
before the struct
11:38 < nsf> pointing to the field if necessary
11:38 < nsf> like "field" does this this and this
11:38 < mpl> yeah
11:38 < mpl> I don't see any other way.
11:38 -!- franciscosouza [~francisco@187.105.26.180] has joined #go-nuts
11:46 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 240 seconds]
11:46 -!- kahvi [576c168e@gateway/web/freenode/ip.87.108.22.142] has quit [Ping
timeout: 252 seconds]
11:47 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-151-130.clienti.tiscali.it] has
joined #go-nuts
11:48 -!- tncardoso [~thiagon@150.164.2.20] has joined #go-nuts
11:48 -!- Project_2501 [~progettin@dynamic-adsl-94-36-151-130.clienti.tiscali.it]
has joined #go-nuts
11:49 -!- Project_2502 [~progettin@82.84.99.100] has quit [Ping timeout: 260
seconds]
11:50 -!- project|2501 [~Marvin@82.84.99.100] has quit [Ping timeout: 250 seconds]
12:02 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has quit [Quit: wrtp]
12:08 -!- c00w [~colin@2620:0:2820:a7:224:d7ff:fe3e:71b4] has joined #go-nuts
12:10 -!- miker2 [~miker2@64.55.31.190] has joined #go-nuts
12:18 -!- deepfuture [~liuxing@42.49.126.118] has joined #go-nuts
12:23 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has joined #go-nuts
12:26 < brandini> morning
12:26 < brandini> so I'm looking at these pandaboard's and wondering how
well go does performance wise on the ARM chips
12:26 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
12:26 -!- BizarreCake [~BizarreCa@77.126.1.15] has joined #go-nuts
12:26 -!- rajender [~rajender@122.183.102.226] has quit [Remote host closed the
connection]
12:27 -!- franciscosouza [~francisco@187.105.26.180] has quit [Quit:
franciscosouza]
12:27 < brandini> I'm not going to be doing image rendering or things like
that, just serving web pages, returning json, etc
12:27 < brandini> They've got the Cortex A9 MPCore CPU
12:27 -!- kahvi [576c168e@gateway/web/freenode/ip.87.108.22.142] has joined
#go-nuts
12:27 < str1ngs> pretty good.  atleast on my motorola xoom
12:28 < str1ngs> mind you, i have not done any benchmarks just odds and ends
12:29 < brandini> cool, I'm fairly certain that tegra 2 is built around that
cortex A9
12:29 < str1ngs> right
12:29 < str1ngs> ARM Cortex-A9
12:29 < brandini> I've got the atrix
12:30 < brandini> I guess I could benchmark things if I got go on there
somehow
12:30 < brandini> :)
12:30 < str1ngs> I build go nativly on mine
12:30 < brandini> wondering what that would take on an "ATT" phone though :)
12:31 < str1ngs> not worth trying probably
12:31 < brandini> how would I get the tools on there needed to build etc
12:31 < str1ngs> I have a build system that does it all
12:31 < str1ngs> it cross-builds everything
12:31 < str1ngs> for the panda board though I'm sure there is a distro
12:31 -!- BizarreCake [~BizarreCa@77.126.1.15] has quit [Ping timeout: 240
seconds]
12:31 < brandini> so really I should just buy a pandaboard and try it out
since it's only 174 bucks
12:32 < str1ngs> mine is android so its abit more work.
12:32 < brandini> I am still interested in getting openbsd on the
pandaboard...  which shouldn't be much work once the work is done by one of the
developers in nov :)
12:32 < mpl> I have go on my n900 but i have yet to do something interesting
on it.
12:33 -!- BizarreCake [~BizarreCa@77.126.1.15] has joined #go-nuts
12:33 < brandini> The rasberryPi things run quake3 at 30fps smooth, I just
don't know if it could serve up a few thousand static pages a second :)
12:33 < str1ngs> I was going to mention rasberryPi
12:34 < str1ngs> I'll probably pick on up when they start selling
12:34 < str1ngs> one*
12:34 < brandini> the only reason I wanted the panda over the rasberry was
the amount of ram and the likelyhood of getting openbsd supporting it
12:35 < str1ngs> how much ram does the panda board have
12:35 < brandini> 2GB AFAIK
12:35 < str1ngs> the xoom is something like 1gig
12:35 < brandini> sorry, 1GB
12:35 < brandini> http://pandaboard.org/content/platform
12:35 < str1ngs> still I guess lacking touch screeen etc
12:37 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
12:37 -!- replore_ [~replore@ntkngw133234.kngw.nt.ftth.ppp.infoweb.ne.jp] has
joined #go-nuts
12:37 < brandini> I've got some solar, wind power stuff I want to monitor
and manage and I'm looking for a low power setup to do that
12:38 < str1ngs> rasberrypi seems the most promising
12:38 < str1ngs> there are also plug devices
12:39 < brandini> aren't they supposed to be like 25 bucks too?
12:39 < str1ngs> I think more then that.
12:39 < brandini> hrmmm wonder if they are available for order yet
12:40 < brandini> nope, they are saying 25 bucks
12:40 < brandini> ooo arm11 so that's a plus
12:40 < brandini> 256MB of ram though
12:41 < brandini> so I'd need a few of them likely
12:41 < str1ngs> call them gobot's or something :P
12:41 < brandini> Yeah, redundancy for 25 bucks sounds great actually
12:41 < str1ngs> what are you looking at that is 25$ ?
12:42 < brandini> rasberrypi
12:42 < str1ngs> ah yes, but you cannot buy them yet.
12:43 < brandini> right :/
12:43 -!- replore_ [~replore@ntkngw133234.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit
[Read error: Connection reset by peer]
12:44 < brandini> the other thing I'm confused about is the cpu cycles vs
cpu revision on arm stuff...  so is a dual core arm9 at 1Ghz a core slower than a
700mhz arm11?
12:44 < brandini> IIRC arm9 was 150% faster than arm8 at the same clock
speed
12:45 < str1ngs> hard to follow arm they are all over the place.
12:45 < brandini> yeah :)
12:45 -!- kahvi [576c168e@gateway/web/freenode/ip.87.108.22.142] has quit [Ping
timeout: 252 seconds]
12:46 < brandini> btw, go seems to be working well for me on openbsd
12:46 < brandini> I'm quite pleased with that effort :)
12:47 < str1ngs> nice
12:56 * nsf is so disappointed with vim
12:56 < nsf> I tried like 5 times switching to something like emacs
12:57 < mpl> what about this sublime thing that a lot of them seem to like?
12:57 < nsf> I hate one thing in emacs, in order to use it, before you can
do that you have to write about 1k lines of lisp code
12:57 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts
12:57 -!- tncardoso [~thiagon@150.164.2.20] has quit [Quit: Leaving]
12:57 < nsf> mpl: http://www.sublimetext.com/ if you're talking about this
12:58 < nsf> looks like a vim without the vim interface
12:58 < nsf> :D
12:58 < nsf> e.g.  same features but no zillions of keystrokes to remember
12:58 < mpl> nsf: yes.  I know where it is.  was just asking if you tried it
to make a move from vim.
12:58 < zeebo> it just got a vim keybinding mode too
12:58 < nsf> exactly
12:58 < nsf> my main problem is that I rely on my key config
12:58 < nsf> vim's
12:59 < nsf> I simply can't use anything which cannot provide all key combos
I use
12:59 < nsf> :D
12:59 < nsf> and it's a fairly large subset
12:59 < zeebo> i have a feeling that anything vim does sumblime either has
the command or you could write the command and bind it correctly
12:59 < zeebo> so it would be some configging to make it exactly right
12:59 < nsf> and well, sublime is not free
13:00 < zeebo> i havent payed for it and the only difference is about 1 in
every 100 saves gives a popup that you just press esc to
13:00 < str1ngs> also sublime probably does not work in console.
13:00 < mpl> I have zero keybindings to remember with acme, and there's not
a single thing I miss from when I was using vim ;)
13:00 < nsf> str1ngs: oh, that too
13:00 < zeebo> thats the biggest thing is if you want an editor that works
in a console :)
13:00 < nsf> I tend to use vim in console a lot
13:00 < str1ngs> I only use vim console.
13:01 < nsf> because I do all the file management in console, having editor
here in-place is nice
13:01 < nsf> vim is really a bad drug
13:01 < str1ngs> hehe
13:02 < nsf> once vimer, forever fimer
13:02 < nsf> vimer*
13:02 < str1ngs> vimlyfer
13:03 < nsf> oh, in order to submit a bug to vim, I have to subscribe to the
mailing list
13:03 < nsf> stone age, seriously
13:03 < mpl> nsf: it's in order, since vim is from the stone age anyway ;P
13:03 * nsf hates mailing lists
13:03 < nsf> mpl: :D
13:03 < mpl> cheap shot, I know
13:03 < nsf> true
13:03 < brandini> it looks like even on arm clock cycles still matter
13:21 -!- kamaji [~kamaji@handtomouse.demon.co.uk] has quit [Remote host closed
the connection]
13:21 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
13:25 -!- afb [~afb@pdpc/supporter/active/afb] has joined #go-nuts
13:26 -!- aat [~aat@rrcs-184-75-54-130.nyc.biz.rr.com] has joined #go-nuts
13:28 -!- alehorst [~alehorst@189.58.21.184.dynamic.adsl.gvt.net.br] has quit
[Quit: Leaving.]
13:29 -!- ericvh [~Adium@32.97.110.64] has joined #go-nuts
13:31 -!- scorpil [~voffka@77.127.74.139] has joined #go-nuts
13:32 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined
#go-nuts
13:33 -!- jbooth1 [~jay@209.249.216.2] has joined #go-nuts
13:36 -!- c00w [~colin@2620:0:2820:a7:224:d7ff:fe3e:71b4] has quit [Ping timeout:
260 seconds]
13:44 < theli_ua> is there any package to *write* zip archives?
13:48 < shoenig> zip?
13:48 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds]
13:49 < theli_ua> its for reading only
13:50 < afb> maybe you can wrap libzip ?
13:50 < str1ngs> does it have to be zip?  you can use tar as a container
13:50 < str1ngs> tar gzip works well
13:51 < afb> i.e.  http://www.nih.at/libzip/
13:52 < theli_ua> i need zip, and i think its easier/better to extend
archive/zip to support writing ..  but anyway,.  thanks for suggestions
13:54 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
13:55 -!- niemeyer [~niemeyer@200-102-220-163.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
13:59 -!- odoacre [~antonio@218.241.169.34] has quit [Quit: Leaving]
14:01 -!- scorpil [~voffka@77.127.74.139] has left #go-nuts []
14:01 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
joined #go-nuts
14:03 -!- samuell [~samuel@pc2-samuel.uppmax.uu.se] has joined #go-nuts
14:03 -!- sebastianskejoe [~sebastian@56344c38.rev.stofanet.dk] has joined
#go-nuts
14:10 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
14:11 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
14:13 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
14:13 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
14:15 < xyproto> what's a long double in go?  float128?
14:16 < brandini> a long double?
14:16 < brandini> a double isn't good enough?
14:16 < xyproto> brandini: not for a c to go converter
14:17 < nsf> there is no long double in go
14:17 < nsf> afaik
14:17 < xyproto> nsf: ok, thanks
14:18 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has quit [Ping
timeout: 252 seconds]
14:21 -!- mrsrikanth [~mrsrikant@59.92.72.96] has joined #go-nuts
14:22 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
14:31 -!- sinclair [~chatzilla@ip-118-90-5-90.xdsl.xnet.co.nz] has quit [Quit:
ChatZilla 0.9.87 [Firefox 6.0.1/20110830092941]]
14:33 -!- deepfuture [~liuxing@42.49.126.118] has quit [Quit: Leaving.]
14:33 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Read error:
Connection reset by peer]
14:35 -!- mrsrikanth [~mrsrikant@59.92.72.96] has quit [Read error: Connection
reset by peer]
14:40 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has joined
#go-nuts
14:41 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
14:42 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
14:43 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
14:45 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
14:45 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
14:47 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
14:48 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
14:48 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
14:49 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
14:49 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has quit [Quit: wrtp]
14:50 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
14:51 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
14:51 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
14:52 < xyproto> what is the equivalent of sizeof() in Go?
14:53 < jessta> xyproto: http://golang.org/pkg/unsafe/#Sizeof
14:54 < jessta> which is obviously something to avoid if you can
14:56 < xyproto> jessta: thanks :)
15:00 < jessta> xyproto: translating C in to Go?
15:20 -!- alehorst [~alehorst@189.58.21.184.dynamic.adsl.gvt.net.br] has joined
#go-nuts
15:21 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-181-41.clienti.tiscali.it]
has joined #go-nuts
15:21 -!- Project_2502 [~progettin@dynamic-adsl-94-36-181-41.clienti.tiscali.it]
has joined #go-nuts
15:23 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has joined #go-nuts
15:23 -!- Project_2501 [~progettin@dynamic-adsl-94-36-151-130.clienti.tiscali.it]
has quit [Ping timeout: 260 seconds]
15:23 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-151-130.clienti.tiscali.it] has
quit [Ping timeout: 258 seconds]
15:26 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has quit [Ping
timeout: 260 seconds]
15:27 -!- Niedar [~dgdfg@host-173-230-2-133.vanodod.clients.pavlovmedia.com] has
joined #go-nuts
15:32 < nsf>
http://groups.google.com/group/vim_dev/browse_thread/thread/8b6eaab9ca1b045d
15:32 < nsf> oh, finally
15:32 < nsf> I've send it like 5 hours ago :D
15:32 < nsf> sent*
15:32 < nsf> and it just appeared
15:32 < nsf> moderation
15:32 < nsf> me
15:32 < nsf> meh*
15:34 < str1ngs> oh my I got a mention :P
15:35 < nsf> :D
15:37 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
15:40 -!- noodles775 [~michael@canonical/launchpad/noodles775] has quit [Quit:
leaving]
15:40 -!- tncardoso [~thiago@187.114.53.232] has joined #go-nuts
15:41 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Read
error: Connection reset by peer]
15:42 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts
15:48 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has joined #go-nuts
15:51 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
15:51 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
15:51 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
15:51 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Quit: twolfe18]
16:03 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit
[Ping timeout: 240 seconds]
16:03 < Ginto8> nsf, I'm curious, is there a way to make gocode in vim start
autocompleting as soon as you type ".", and then clarify its choice with every
letter typed?
16:03 < nsf> Ginto8: it's possible, yes
16:03 < nsf> wait, I'll google it for you
16:04 < Ginto8> ok, thanks
16:04 < Ginto8> I'm not sure what to google :P
16:04 -!- BizarreCake [~BizarreCa@77.126.1.15] has quit [Remote host closed the
connection]
16:04 < nsf> http://www.vim.org/scripts/script.php?script_id=1879
16:04 < nsf> mb something like this will work
16:05 < nsf> it's not related to gocode at all
16:05 < nsf> just find a way to fire omnicompletion automatically
16:05 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
16:05 < Ginto8> I didn't think it'd have to be
16:05 < Ginto8> ok, thanks
16:05 < Ginto8> I love gocode btw :D
16:06 * nsf too
16:06 < nsf> but I hate vim
16:06 < nsf> and I can't use anything else
16:06 < nsf> T_T
16:06 < Ginto8> why do you hate vim?
16:06 < nsf> because it's crappy
16:06 < Ginto8> on the scripting end?
16:06 < nsf> it works, sure, but it's a pile of crap really
16:06 < nsf> no, the source code
16:06 < Ginto8> ah
16:06 < nsf> it's patch on top of the patch on top of the patch on top of
the patch, etc.
16:07 < Ginto8> new project: rewrite vim, non-crappily, in go!
16:07 < nsf> good project, but each project requires a huge amount of time
and effort
16:07 < nsf> especially like this one
16:07 < nsf> which you cannot sell probably
16:08 < Ginto8> hm
16:08 < Ginto8> yeah
16:08 -!- jcw4 [~jcw4@www.sftsrc.com] has joined #go-nuts
16:08 < Ginto8> I mean, it warrants a rewrite
16:08 < Ginto8> just for maintainability
16:08 < nsf> yes, but it's hard
16:09 < Ginto8> but if it's in go it might not catch on at all
16:09 < nsf> someone has to find an infinite source of enthusiasm for that
16:09 < nsf> :D
16:09 < Ginto8> yeah
16:09 < brandini> doit!!!
16:09 * brandini cheers you on
16:09 < Ginto8> I have my own project to work on
16:09 < nsf> brandini: doit doesn't work..  I have fuckit
16:09 < nsf> :D
16:09 < f2f> acme in go > vim in go
16:09 < f2f> just saying :)
16:09 < nsf> fuckitall pills
16:10 < nsf> :D
16:10 < Ginto8> f2f, syntax highlighting in acme?
16:10 < f2f> who needs syntax highlighting?  anyway, when you rewrite acme
in go you can add it in.  just mind the pastel colours
16:10 -!- virtualsue [~chatzilla@nat/cisco/x-tocbryyizheawnuq] has quit [Ping
timeout: 258 seconds]
16:10 < nsf> acme is a different philosophy
16:11 < mpl> text is text, not a rainbow.
16:11 < Ginto8> mpl, but code should have certain parts emphasized
16:11 < nsf> plus it requires mouse, what about notebooks?
16:11 < f2f> should?
16:11 < Ginto8> or at least contrasted
16:11 < f2f> nsf, you can do chording with a trackpad
16:11 < f2f> works really well.
16:11 < nsf> f2f: hm..
16:12 < f2f> and now with gestures in cocoa
16:12 < nsf> tap tap tap tap-tap-tap, tap tap..  tap..
16:12 < nsf> :D
16:12 < mpl> nsf: I do all my coding at home on a T61 without mouse
(trackpoint).
16:12 < nsf> mpl: in acme?
16:12 < mpl> yea
16:12 < nsf> well, good for you
16:13 < nsf> I can't use anything without a vim interface :D
16:13 < mpl> yeah to each his own :)
16:13 < Ginto8> I can use nano, but I prefer vim
16:13 -!- joshbaptiste [~joshbapti@74.63.255.72] has quit [Ping timeout: 252
seconds]
16:13 < f2f> this is not an argument pro- or con acme, it's an argument that
acme would make a better choice to rewrite in Go than vim
16:13 < nsf> it's simpler
16:13 < f2f> after all acme already uses the CSP model for its
implementation
16:14 -!- joshbaptiste [~joshbapti@74.63.255.72] has joined #go-nuts
16:14 < nsf> but I can't imagine my text editing life without vim's block
selection mode
16:14 < nsf> and macros too
16:14 < f2f> acme is ~7000 lines of code.  add to that the work required to
get draw up to speed...
16:14 < mpl> uh, there's not much left to be rewritten for acme afaik, most
of the go lib for it is there
16:14 < brandini> wait acme?
16:15 < mpl> import "goplan9.googlecode.com/hg/plan9/acme"
16:15 < xyproto> jessta: yes, programatically :)
16:16 < nsf> xyproto: what frontend are you using for that?  clang?  sparse?
your own?
16:16 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
quit [Ping timeout: 245 seconds]
16:17 < nsf> I mean parsing C is crazy
16:17 < nsf> you have to use something :D
16:17 < nsf> gcc-compatible probably
16:19 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-148-210.clienti.tiscali.it] has
joined #go-nuts
16:19 -!- Project_2501 [~progettin@dynamic-adsl-94-36-148-210.clienti.tiscali.it]
has joined #go-nuts
16:21 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
joined #go-nuts
16:22 -!- Project_2502 [~progettin@dynamic-adsl-94-36-181-41.clienti.tiscali.it]
has quit [Ping timeout: 252 seconds]
16:22 < jessta> xyproto: that sounds kind of horrible.  I've found Go is
much closer to python than it is to C
16:22 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-181-41.clienti.tiscali.it]
has quit [Ping timeout: 258 seconds]
16:22 < Ginto8> jessta, that it is
16:23 < Ginto8> thank god
16:23 -!- gobeginner [~nwood@2a02:16c8:40:0:21e:37ff:fed2:cf06] has left #go-nuts
[]
16:23 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
joined #go-nuts
16:23 < Ginto8> C is ridiculous...  C++ is insane
16:24 < Ginto8> nsf, I have absolutely no experience with vim scripts.  do
you think you could help me customize the acp one to work with go?
16:24 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Quit:
pyrhho]
16:24 -!- meling [~meling@pico.ux.uis.no] has quit [Remote host closed the
connection]
16:26 < vegai> I cannot reasonably code without highlighting
16:26 < vegai> it's not really more difficult, it's just so goddamn ugly
16:27 < vegai> I also don't want to sit in a cubicle.  Sure, that kinda
works too, but is likewise hideous
16:28 < nsf> Ginto8: I don't use that plugin, just read the docs
16:28 < nsf> almost all vim plugins contain a lot of comments
16:28 < nsf> at the beginning
16:28 < Ginto8> ok
16:28 < nsf> plus you know the name of the plugin try to find tutorials
16:30 -!- yogib [~yogib@webauth-79-196.uni-paderborn.de] has quit [Quit: yogib]
16:30 < nsf> no tutorials I guess
16:30 < nsf> but hey
16:30 < nsf> docs are here
16:30 < nsf>
https://bitbucket.org/ns9tks/vim-autocomplpop/src/13fe3d806464/doc/acp.txt
16:33 -!- thrashr888 [~thrashr88@64.125.143.6] has joined #go-nuts
16:41 -!- theli_ua [~theli@188.163.238.74] has quit [Quit: Leaving]
16:43 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
16:46 < Ginto8> nsf, thanks
16:46 < xyproto> nsf: I'm using pycparser, building on a c-to-c converter
16:47 < nsf> I see, good luck with that
16:47 < Ginto8> xyproto, what is this for?
16:47 < xyproto> nsf: thanks, it works pretty well already :)
16:47 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Quit: twolfe18]
16:47 < xyproto> It's just a little side project, a C to Go converter,
intended to be a help when I convert things to Go
16:47 < Ginto8> cgo much?  :P
16:49 < xyproto> Ginto8: yes, but one can not always call C code, for
instance in go app engine
16:49 < Ginto8> ah ok
16:51 < Ginto8> nsf, do you have a suggestion for a vim scripting reference?
16:51 < nsf> you need to learn using google, seriously
16:52 < nsf> it's vim
16:52 < nsf> http://vim.wikia.com/wiki/Vim_Tips_Wiki
16:52 < nsf> try wiki
16:52 < Ginto8> I was just wondering if you had a specific one :P
16:52 < nsf> try ':help'
16:52 < nsf> google for 'vim scripting language'
16:52 < nsf> if you're really interested in scripting
16:52 < Ginto8> I've tried :help, and it's good for learning the editor, not
the scripting
16:53 < nsf> http://vimdoc.sourceforge.net/htmldoc/usr_41.html
16:53 < nsf> i.e.
16:53 < nsf> :help usr_41
16:54 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has joined #go-nuts
16:54 -!- Project_2502 [~progettin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has joined #go-nuts
16:54 < Ginto8> yep found that one, thanks :D
16:54 < nsf> vim script is simple actually
16:54 < nsf> but you have to learn few things here and there
16:55 -!- Project_2501 [~progettin@dynamic-adsl-94-36-148-210.clienti.tiscali.it]
has quit [Ping timeout: 252 seconds]
16:57 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-148-210.clienti.tiscali.it] has
quit [Ping timeout: 260 seconds]
16:57 -!- Argue [~Argue@112.201.172.5] has quit [Quit: Leaving]
17:02 -!- exch [~blbl@ip34-181-209-87.adsl2.static.versatel.nl] has joined
#go-nuts
17:03 -!- tsung [~jon@112.104.53.151] has quit [Read error: Operation timed out]
17:05 -!- tsung [~jon@203-73-18-154.adsl.dynamic.seed.net.tw] has joined #go-nuts
17:11 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined
#go-nuts
17:12 -!- BigBlackDog
[~BigBlackD@HSI-KBW-109-192-007-188.hsi6.kabel-badenwuerttemberg.de] has quit
[Quit: WeeChat 0.3.6-dev]
17:13 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
quit [Quit: Linkinus - http://linkinus.com]
17:14 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
joined #go-nuts
17:18 < str1ngs> Ginto8: ask in #vim
17:18 < Ginto8> str1ngs, I'll just get an rtfm, and I've found some helpful
:help articles :P
17:19 < str1ngs> that works.  can you not use like python and ruby with vim
17:19 < str1ngs> dunno I avoid messing with half that stuff myself
17:19 < Ginto8> I dunno
17:19 < xyproto> str1ngs: I've used python with vim, it works great!  :)
17:19 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
17:20 < xyproto> str1ngs: in gedit too
17:20 -!- valentin [~valentin@darkstar2.fullsix.com] has quit [Remote host closed
the connection]
17:20 < str1ngs> most of the time I just do stuff like :!cat foo >> %
17:20 -!- wallerdev [~wallerdev@c-68-60-43-43.hsd1.mi.comcast.net] has joined
#go-nuts
17:22 < str1ngs> http://codereview.appspot.com/4973055/ exp/db
17:25 -!- wallerdev [~wallerdev@c-68-60-43-43.hsd1.mi.comcast.net] has quit
[Client Quit]
17:26 -!- jbooth1 [~jay@209.249.216.2] has quit [Quit: Leaving.]
17:29 -!- jcw4 [~jcw4@www.sftsrc.com] has quit [Quit: cya]
17:32 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has quit [Ping timeout:
276 seconds]
17:34 < brandini> what's exp/db all about?
17:37 < str1ngs> db abstraction
17:39 -!- elephants [~elephants@66.207.210.2] has joined #go-nuts
17:40 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
17:42 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has joined
#go-nuts
17:42 -!- george [~george@122.170.28.170] has joined #go-nuts
17:44 < george> Hi, I had a doubt regarding allocation of memory to a
structure.  How do we allocate memory to a type struct present in another package
17:44 < george> ?
17:46 < zeebo> thing := new(package.Type) gets a pointer to a 0'd
package.Type
17:47 < str1ngs> george:
http://golang.org/doc/effective_go.html#allocation_new
17:47 < george> zeebo: Thanks I was making some other mistake :) Thanks
17:48 < str1ngs> also read the part on composite literals
17:48 < str1ngs> ie you can do thing := &package.Type{Name: "test"}
17:51 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
17:54 -!- qeed [~qeed@adsl-98-85-34-75.mco.bellsouth.net] has joined #go-nuts
17:55 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has joined #go-nuts
17:55 < xyproto> is 1e9 nanoseconds one second?
17:58 < zeebo> yes
17:59 < xyproto> zeebo: thanks
17:59 < zeebo> i went through the trouble of making this
http://tinyurl.com/4ylmqct but i decided to just snip out the meanness and just
answer :)
17:59 < xyproto> zeebo: ah, silly me, I could just have googled "1e9
nanoseconds in seconds"
17:59 < zeebo> haha
17:59 < xyproto> zeebo: thanks anyhow :)
18:00 < str1ngs> thats just mean
18:00 < str1ngs> :P
18:00 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
18:03 < xyproto> hah, just now checked the link and saw that it was a "let
me google that for you" link ;)
18:03 < zeebo> :)
18:03 < xyproto> I withdraw my thanks!  :P
18:03 < zeebo> oh no~
18:09 -!- george [~george@122.170.28.170] has quit [Quit: Leaving]
18:09 -!- pjacobs [~pjacobs@66.54.185.130] has joined #go-nuts
18:11 < xyproto> what is the equivalent of "malloc" in Go? Is it possible to
replace it directly, with another function call?
18:11 < xyproto> new?  But how do I specify the number of bytes to allocate
to new?
18:11 -!- huin [~huin@91.85.139.164] has joined #go-nuts
18:12 < zeebo> you cant just allocate a pointer to some random memory.  you
need a type for it
18:12 < xyproto> zeebo: dang
18:12 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Read error: Operation timed out]
18:12 < zeebo> do you want a dynamicly sized array?  you use a slice for
that
18:12 < xyproto> zeebo: any drop-in replacement for malloc would do :P
18:12 < xyproto> zeebo: guess there is no direct replacement, and the Go way
is better
18:12 < zeebo> what are you trying to do haha
18:13 < xyproto> zeebo: c 2 go converter
18:13 < xyproto> zeebo: https://github.com/xyproto/c2go
18:14 < zeebo> oh.  well good luck :)
18:15 < xyproto> why is "n" (an int) an invalid array bound for new([n]int)
?
18:15 < pharris> xyproto: Due to C allowing you to cast any pointer to any
other pointer, I have a sinking suspicion everything will be a byte slice, and all
reads and writes will go through encoding/binary, and it will be slow.  Except for
those buffers where you can prove it's only ever accessed as a single type.
18:16 < zeebo> because [n]int isn't a well defined type.  a [2]int is
different from a [3]int
18:16 < zeebo> (at compile time)
18:17 < jessta> xyproto: you want a slice there
18:17 < xyproto> pharris: I suspect you're right.  My goal is first and
foremost to make it easier to port C code to Go, so "a good way that does not
compile" is in many ways better than "a way that works, but is horrendus"
18:17 < xyproto> jessta&zeebo: ok, thx
18:21 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
18:31 -!- thrashr888_ [~thrashr88@64.125.143.6] has joined #go-nuts
18:32 -!- clr_ [~colin@fera-imp-35.dynamic2.rpi.edu] has joined #go-nuts
18:34 -!- thrashr888 [~thrashr88@64.125.143.6] has quit [Ping timeout: 268
seconds]
18:39 -!- thrashr888 [~thrashr88@64.125.143.6] has quit [Remote host closed the
connection]
18:40 -!- thrashr888 [~thrashr88@64.125.143.6] has joined #go-nuts
18:41 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Quit: twolfe18]
18:43 -!- c00w [~colin@fera-imp-35.dynamic2.rpi.edu] has quit [Ping timeout: 240
seconds]
18:43 -!- NfNitLoop [~bip@2001:470:b9cc:beef::1] has joined #go-nuts
18:45 -!- meling [~meling@134.81-167-41.customer.lyse.net] has joined #go-nuts
18:48 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
18:48 < xyproto> what is the equivalent to getchar() in Go? :)
18:48 < xyproto> fmt.Scanf somehow?
18:48 -!- kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined
#go-nuts
18:49 < huin> i think you would have to fiddle with tty settings
18:50 < huin> a curses-like library would be a fairly safe bet
18:51 -!- joshbaptiste [~joshbapti@74.63.255.72] has quit [Quit: leaving]
18:51 -!- junbug [~joshbapti@96.8.120.115] has joined #go-nuts
18:51 -!- awidegreen_ [~quassel@178.63.120.5] has joined #go-nuts
18:51 < NfNitLoop> Last night I was thinking of writing something to
simplify Go builds and found 'gobuild', which is quite nice.  So if the author is
in here, thanks!  :D
18:51 < kevlar_work> xyproto, there is none, currently
18:52 < kevlar_work> NfNitLoop, I highly suggest using "goinstall" or (if
you're too impatient for that) gb
18:52 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Ping
timeout: 252 seconds]
18:53 -!- miker2 [~miker2@64.55.31.190] has quit [Ping timeout: 240 seconds]
18:54 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Quit: twolfe18]
18:54 < NfNitLoop> kevlar_work: too impatient?  is goinstall slow?
18:55 < NfNitLoop> Cool, I'll look those up.  I hope the Go team eventually
addopts one as the "official" build tool.  It seems silly to have to redeclare
dependencies in makefiles when they're right there in the code.  :p
18:55 < kevlar_work> goinstall is fast, but it requires organizing all of
your code in a certain way
18:55 < kevlar_work> goinstall IS the official build tool
18:55 < str1ngs> NfNitLoop: goinstall is part of go proper
18:55 < NfNitLoop> er...  orly?  For how long?  How'd I miss that?
18:55 < str1ngs> godoc goinstall
18:56 < NfNitLoop> (I admit, it's been a long while since I played with
Go...)
18:56 -!- niemeyer_ [~niemeyer@201-2-135-152.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
18:56 < kevlar_work> NfNitLoop, goinstall has been around since (more than
likely) before you started using Go, but it only recently (r59?) grew the ability
to manage stuff locally
18:57 < NfNitLoop> aaaah, ok.  Yeah, now that I'm looking at docs, I was
familiar w/ its ability to grab and install packages.
18:57 < kevlar_work> yeah, now there's this whole $GOPATH thingamajigger.
18:57 < NfNitLoop> I just want something that will look at a directory of
files and build me an executable.  :p
18:57 < NfNitLoop> without dealing with Makefiles.
18:57 < pharris> NfNitLoop: I use gb for that.
18:58 < kevlar_work> gb will do that, and I think the next step after
finishing off goinstall is to rewrite "gomake" to do that
18:58 < cbeck> xyproto: in := bufio.NewReader(os.Stdin); achar, err :=
in.ReadByte(); (or arune, runeSize, err := in.ReadRune())
18:58 < NfNitLoop> pharris: so does "gobuild".  (or is that what you mean by
gb?)
18:58 < pharris> https://github.com/skelterjohn/go-gb
18:58 -!- niemeyer [~niemeyer@200-102-220-163.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
19:00 -!- c00w [~colin@2620:0:2820:ab:224:d7ff:fe3e:71b4] has joined #go-nuts
19:01 < xyproto> kevlar_work: there is an equivalent to getchar!
fmt.Scanf("%c", &b)
19:02 < xyproto> cbeck: your version is probably more unicode-friendly :)
19:02 < kevlar_work> NfNitLoop, as an author of another go build tool (gofr)
I still have to recommend gb, because it's maintained and has done a really good
job of tracking the community's standards for project layout
19:02 < kevlar_work> and I think it has nice things like cgo and testing
19:02 < kevlar_work> xyproto, that's not the same as getchar.
19:02 < kevlar_work> that's the same as scanf("%c").
19:03 < kevlar_work> getchar is usually used to get keypresses to do
interactive things like console games or single-character prompting.
19:03 < cbeck> xyproto: Also lets you unread, should you need to
19:03 < NfNitLoop> kevlar_work: thanks.  :) playing with it now.
19:05 < zozoR> nsf, how is your gosyntaxed C comming along?  :D
19:05 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
19:06 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
19:07 < zozoR> how many features besides go routines and function literals
should be removed from go to make it possible to remove garbage collection?
19:07 < xyproto> kevlar_work: no, I just tested it in both Go and C, and
getchar waits for return
19:07 -!- Project_2502 [~progettin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has quit [Quit: E se abbasso questa leva che succ...]
19:07 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has quit [Quit: E se abbasso questa leva che succ...]
19:07 < xyproto> kevlar_work: getchar behaves exactly like Scanf("%c", &b)
19:08 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-157-253.clienti.tiscali.it] has
joined #go-nuts
19:08 -!- remy_o [~babar@archlinux/developer/remy-o] has joined #go-nuts
19:08 -!- Project_2502 [~progettin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has joined #go-nuts
19:08 < cbeck> xyproto: Scanf("%c", ..  ) is unicode friendly, just fyi
19:09 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-157-253.clienti.tiscali.it] has
quit [Disconnected by services]
19:09 < xyproto> cbeck: cool :)
19:09 < cbeck> At least it certainly looks to be, testing might not be a bad
idea
19:09 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-157-253.clienti.tiscali.it] has
joined #go-nuts
19:11 -!- Project_2502 [~progettin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has quit [Client Quit]
19:12 -!- Project_2502 [~progettin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has joined #go-nuts
19:12 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-157-253.clienti.tiscali.it] has
quit [Disconnected by services]
19:12 < nsf> zozoR: it will never happen
19:12 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-157-253.clienti.tiscali.it] has
joined #go-nuts
19:12 < nsf> zozoR: but if you're deeply interested, the compiler is here,
it compiles simple stuff like for example there is an SDL-based tetris
19:13 < nsf> zozoR:
https://github.com/nsf/krawl/blob/master/examples/tetris.krl
19:13 < nsf> but I've abandoned the project
19:13 < nsf> who needs another unsafe language
19:14 < nsf> as for features
19:14 < nsf> you have to remove interfaces as well
19:14 < nsf> slices too
19:14 < nsf> basically everything that manages the memory on its own
19:15 < nsf> no safety, no GC == totally different language
19:16 -!- Project_2502 [~progettin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has quit [Client Quit]
19:17 -!- Project_2502 [~progettin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has joined #go-nuts
19:17 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-157-253.clienti.tiscali.it] has
quit [Disconnected by services]
19:17 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-157-253.clienti.tiscali.it] has
joined #go-nuts
19:19 -!- kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Ping
timeout: 252 seconds]
19:19 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-157-253.clienti.tiscali.it] has
quit [Client Quit]
19:19 -!- Project_2502 [~progettin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has quit [Client Quit]
19:19 -!- Project_2502 [~progettin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has joined #go-nuts
19:20 < zozoR> oh well
19:24 -!- meling [~meling@134.81-167-41.customer.lyse.net] has quit [Remote host
closed the connection]
19:26 -!- Project_2502 [~progettin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has quit [Quit: E se abbasso questa leva che succ...]
19:26 -!- Project_2502 [~progettin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has joined #go-nuts
19:26 -!- TheMue [~FMueller@p5DDF66EF.dip.t-dialin.net] has joined #go-nuts
19:28 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has quit [Ping
timeout: 240 seconds]
19:28 -!- samuell [~samuel@pc2-samuel.uppmax.uu.se] has quit [Quit: Ex-Chat]
19:29 -!- thrashr888 [~thrashr88@64.125.143.6] has quit [Quit: thrashr888]
19:30 -!- tjyang [~tjyang@c-67-175-235-146.hsd1.il.comcast.net] has quit [Ping
timeout: 245 seconds]
19:31 -!- Project_2503 [~progettin@dynamic-adsl-94-36-183-181.clienti.tiscali.it]
has joined #go-nuts
19:31 -!- Project_2501 [~progettin@dynamic-adsl-94-36-157-253.clienti.tiscali.it]
has quit [Disconnected by services]
19:31 -!- alehorst [~alehorst@189.58.21.184.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 245 seconds]
19:35 -!- bladerunny [41c77128@gateway/web/freenode/ip.65.199.113.40] has joined
#go-nuts
19:35 < bladerunny> how do I cast in go?  say from uint8 to uint32?
19:35 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Quit: twolfe18]
19:35 < nsf> bladerunny: like a function call
19:35 < nsf> uint32(x)
19:36 < bladerunny> duh, thanks
19:36 < exch> ambiguity <3
19:37 -!- bladerunny [41c77128@gateway/web/freenode/ip.65.199.113.40] has quit
[Client Quit]
19:43 -!- shoenig [~seth@rrcs-71-42-216-104.sw.biz.rr.com] has quit [Quit:
Leaving]
19:45 -!- alehorst [~alehorst@189.58.26.62.dynamic.adsl.gvt.net.br] has joined
#go-nuts
19:48 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
19:48 -!- c00w [~colin@2620:0:2820:ab:224:d7ff:fe3e:71b4] has quit [Ping timeout:
264 seconds]
19:50 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
19:52 -!- remy_o [~babar@archlinux/developer/remy-o] has quit [Quit: WeeChat
0.3.5]
19:53 -!- remy_o [~babar@archlinux/developer/remy-o] has joined #go-nuts
19:58 -!- alehorst [~alehorst@189.58.26.62.dynamic.adsl.gvt.net.br] has quit
[Quit: Leaving.]
20:00 -!- thrashr888 [~thrashr88@64.125.143.6] has joined #go-nuts
20:06 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
20:09 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
20:09 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
20:10 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Client Quit]
20:10 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
20:10 -!- tsung [~jon@203-73-18-154.adsl.dynamic.seed.net.tw] has quit [Ping
timeout: 258 seconds]
20:10 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
20:11 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
20:12 < NfNitLoop> Hrmm.  So in effective Go it recommends only exporting
interfaces, but I see a lot of go packages that export structs.  Are they because
of some exception to the rule?  Or a style to be avoided?
20:12 -!- tsung [~jon@112.104.90.229] has joined #go-nuts
20:12 < Gertm> Man, semicolons as statement terminators is a hard habit to
break.
20:12 -!- photron [~photron@port-92-201-84-119.dynamic.qsc.de] has quit [Read
error: Operation timed out]
20:13 < str1ngs> NfNitLoop: no export structs is pretty normal
20:13 < nsf> NfNitLoop: where it says about exporting interfaces?
20:13 < str1ngs> NfNitLoop: can you link the section please so I can read
the context
20:13 < nsf> because frankly I don't believe you
20:13 < nsf> :D
20:14 < NfNitLoop> errm, let me find it.  I'm pretty sure I read that...
20:14 < nsf> in a java book mb?  hehe
20:15 < nsf> exporting structs is ok
20:15 < str1ngs> Gertm: soon you will be saying . damn it I keep forgetting
semicolons
20:15 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
20:16 < nsf> and as I've said, I don't think a Go programmer would recommend
you to use interfaces
20:16 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
20:17 < Gertm> str1ngs: unlikely :) since my dayjob is C#
20:17 < Gertm> str1ngs: and I do a lot of Erlang, so I tend to terminate
with . a lot too :)
20:17 -!- sebastianskejoe [~sebastian@56344c38.rev.stofanet.dk] has quit [Quit:
Lost terminal]
20:17 < NfNitLoop> nsf: http://golang.org/doc/effective_go.html#generality
20:18 -!- jlaffaye [~jlaffaye@freebsd/developer/jlaffaye] has quit [Quit: leaving]
20:18 < Namegduf> "If a type exists only to implement an interface and has
no exported methods beyond that interface, there is no need to export the type
itself."
20:18 < str1ngs> If a type exists only to implement an interface
20:18 -!- jlaffaye [~jlaffaye@abydos.jlaffaye.net] has joined #go-nuts
20:18 < Namegduf> In this *very specific and not very usual* case, that is
true.
20:18 < str1ngs> to slow :(
20:18 < nsf> yeah
20:19 < nsf> it's not like now you have to export only interfaces
20:19 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
20:19 < str1ngs> either way you should only export types you plan to use
externally anyways
20:19 < Namegduf> I think the stdlib decently demonstrates how often that
comes up
20:19 < nsf> in fact it's a post facto thing
20:19 < Namegduf> And is a good guideline on that.
20:19 < nsf> if a type implements interface and provides nothing else
20:19 < Namegduf> There's places in the hashing algorithm stuff which do
that.
20:19 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
20:19 < nsf> there is no point in exporting the type itself
20:20 -!- jlaffaye [~jlaffaye@abydos.jlaffaye.net] has quit [Client Quit]
20:20 -!- jlaffaye [~jlaffaye@abydos.jlaffaye.net] has joined #go-nuts
20:20 < kevlar_work> the problem is that those types aren't documented by
godoc
20:20 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
20:20 < str1ngs> good point
20:21 < kevlar_work> for instance, it's impossible to know that the default
http.ResponseWriter implements Hijacker
20:21 < kevlar_work> because it's a local type
20:21 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
20:21 < Namegduf> That would be a problem with not enforcing the "and has no
exported methods beyond that interface" part.
20:22 < kevlar_work> well, it has no exported methods beyond *all* of the
interfaces it provides
20:22 < Namegduf> Yes, but that's a distinctly difference sentence
20:22 < kevlar_work> indeed.
20:24 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has quit
[Read error: Operation timed out]
20:24 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has
joined #go-nuts
20:24 -!- jlaffaye [~jlaffaye@abydos.jlaffaye.net] has quit [Changing host]
20:24 -!- jlaffaye [~jlaffaye@freebsd/developer/jlaffaye] has joined #go-nuts
20:26 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 240
seconds]
20:28 -!- c00w [~colin@2620:0:2820:2208:224:d7ff:fe3e:71b4] has joined #go-nuts
20:28 < kevlar_work> you know what would be really cool: each interface in
godoc lists all types in the local package that implement it.
20:28 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
20:29 < kevlar_work> sortof like "known implementing types" in JavaDoc
20:30 < str1ngs> yep, and return types in table of contents func signatures
20:39 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has quit [Quit: Lost
terminal]
20:39 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
20:44 -!- yogib [~yogib@dslb-178-009-064-241.pools.arcor-ip.net] has joined
#go-nuts
20:49 -!- thrashr888_ [~thrashr88@64.125.143.6] has joined #go-nuts
20:50 -!- gattuso [~gattuso@thyphon.tk] has quit [Quit: WeeChat 0.3.2]
20:51 -!- thrashr888 [~thrashr88@64.125.143.6] has quit [Read error: Operation
timed out]
20:51 -!- twolfe18 [~twolfe18@c-68-34-98-222.hsd1.md.comcast.net] has joined
#go-nuts
20:53 < xyproto> how do I convert *[128]uint8 to string?
20:54 < Namegduf> You put it with some other stuff to make something which
looks like a string header in memory.
20:55 < Namegduf> Then you use unsafe to turn a pointer to that to a *string
20:55 < Namegduf> Then dereference it
20:55 -!- twolfe18 [~twolfe18@c-68-34-98-222.hsd1.md.comcast.net] has quit [Ping
timeout: 245 seconds]
20:56 < Namegduf> There might be other ways, potentially.
20:56 -!- ericvh [~Adium@32.97.110.64] has quit [Quit: Leaving.]
20:58 -!- twolfe18 [~twolfe18@c-68-34-98-222.hsd1.md.comcast.net] has joined
#go-nuts
20:58 -!- afb [~afb@pdpc/supporter/active/afb] has left #go-nuts []
20:59 < remy_o> xyproto: string(*x[:]) I guess
21:04 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit
[Quit: Lost terminal]
21:07 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
quit [Quit: Leaving...]
21:10 -!- tmp_usr [~tmp_usr@c213-100-100-241.swipnet.se] has joined #go-nuts
21:12 -!- tmp_usr [~tmp_usr@c213-100-100-241.swipnet.se] has quit [Read error:
Connection reset by peer]
21:17 -!- TheMue [~FMueller@p5DDF66EF.dip.t-dialin.net] has quit [Quit: leaving]
21:18 -!- Solak [~stijnw@cthia.xs4all.nl] has quit [Remote host closed the
connection]
21:23 -!- huin [~huin@91.85.139.164] has quit [Quit: leaving]
21:27 -!- Fish- [~Fish@9fans.fr] has quit [Quit: WeeChat 0.3.5]
21:29 < xyproto> remy_o: thank you!  will try that
21:31 < remy_o> xyproto: I just tested and the right syntax is actually
string((*x)[:])
21:32 -!- tjyang_ [~tjyang@c-67-175-235-146.hsd1.il.comcast.net] has joined
#go-nuts
21:32 -!- miker2 [~miker2@pool-71-175-94-30.phlapa.fios.verizon.net] has joined
#go-nuts
21:34 -!- miker2 [~miker2@pool-71-175-94-30.phlapa.fios.verizon.net] has quit
[Client Quit]
21:34 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has quit [Read error: Connection reset by peer]
21:34 -!- alehorst [~alehorst@189.58.26.62.dynamic.adsl.gvt.net.br] has joined
#go-nuts
21:38 -!- tncardoso [~thiago@187.114.53.232] has quit [Quit: bye]
21:38 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
21:38 -!- awidegreen_ [~quassel@178.63.120.5] has quit [Ping timeout: 240 seconds]
21:39 -!- meling [~meling@134.81-167-41.customer.lyse.net] has joined #go-nuts
21:40 < prudhvi> if i want to force http package to accept certs issued to a
different domain, how should i do it
21:40 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
joined #go-nuts
21:41 -!- Nisstyre [~yours@infocalypse-net.info] has quit [Quit: Leaving]
21:47 < xyproto> remy_o: that is more syntax than expected :D thanks for
finding out!
21:47 -!- Project_2501 [~progettin@82.84.75.219] has joined #go-nuts
21:49 -!- Project_2503 [~progettin@dynamic-adsl-94-36-183-181.clienti.tiscali.it]
has quit [Ping timeout: 246 seconds]
21:50 -!- iXeno_ [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
21:52 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Ping timeout: 258
seconds]
21:54 -!- miker2 [~miker2@pool-71-175-94-30.phlapa.fios.verizon.net] has joined
#go-nuts
21:54 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
21:59 -!- remy_o [~babar@archlinux/developer/remy-o] has quit [Ping timeout: 252
seconds]
21:59 -!- aat [~aat@rrcs-184-75-54-130.nyc.biz.rr.com] has quit [Ping timeout: 252
seconds]
22:03 -!- Peet__ [~Peet__@unaffiliated/peet--/x-2416233] has quit [Ping timeout:
260 seconds]
22:06 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
22:08 -!- Peet__ [~Peet__@unaffiliated/peet--/x-2416233] has joined #go-nuts
22:11 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
quit [Quit: Leaving...]
22:23 -!- TheSeeker [riiight@99-153-248-206.lightspeed.irvnca.sbcglobal.net] has
quit [Ping timeout: 240 seconds]
22:24 -!- TheSeeker [riiight@99-153-248-206.lightspeed.irvnca.sbcglobal.net] has
joined #go-nuts
22:26 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza]
22:35 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
22:37 -!- c00w [~colin@2620:0:2820:2208:224:d7ff:fe3e:71b4] has quit [Ping
timeout: 260 seconds]
22:38 -!- thrashr888 [~thrashr88@64.125.143.6] has quit [Quit: thrashr888]
22:40 -!- iXeno_ [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
22:41 -!- thrashr888 [~thrashr88@64.125.143.6] has joined #go-nuts
22:41 -!- elephants [~elephants@66.207.210.2] has quit [Remote host closed the
connection]
22:41 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
22:43 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has quit [Read error:
Connection reset by peer]
22:44 -!- iXeno [~ixeno@106.80-203-229.nextgentel.com] has joined #go-nuts
22:46 -!- Project_2501 [~progettin@82.84.75.219] has quit [Quit: E se abbasso
questa leva che succ...]
22:46 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
22:47 -!- twolfe18 [~twolfe18@c-68-34-98-222.hsd1.md.comcast.net] has quit [Quit:
twolfe18]
22:52 -!- Venom_X [~pjacobs@66.54.185.130] has quit [Ping timeout: 260 seconds]
22:58 -!- yogib [~yogib@dslb-178-009-064-241.pools.arcor-ip.net] has quit [Quit:
yogib]
22:59 -!- franciscosouza [~francisco@187.105.26.180] has joined #go-nuts
23:00 -!- vmil86 [~vmil86@88.118.38.213] has quit [Read error: Connection reset by
peer]
23:09 -!- tansell-laptop [~tansell@nat/google/x-dpwfflgknzgeitlw] has joined
#go-nuts
23:10 -!- Cork[home] [Cork@h27n1c1o1042.bredband.skanova.com] has quit [Changing
host]
23:10 -!- Cork[home] [Cork@firefox/community/cork] has joined #go-nuts
23:12 -!- miker2 [~miker2@pool-71-175-94-30.phlapa.fios.verizon.net] has quit
[Quit: Computer has gone to sleep.]
23:13 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.5]
23:21 -!- ericvh [~Adium@cpe-72-177-122-77.austin.res.rr.com] has joined #go-nuts
23:28 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has quit
[Read error: Operation timed out]
23:34 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Ping
timeout: 240 seconds]
23:35 -!- robteix [~robteix@ec2-107-20-186-170.compute-1.amazonaws.com] has joined
#go-nuts
23:35 -!- ericvh [~Adium@cpe-72-177-122-77.austin.res.rr.com] has quit [Quit:
Leaving.]
23:47 -!- thrashr888 [~thrashr88@64.125.143.6] has quit [Quit: bye bye]
23:47 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
23:53 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
quit [Remote host closed the connection]
23:59 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 245 seconds]
--- Log closed Sat Sep 03 00:00:22 2011