Go Language Resources Go, golang, go... NOTE: This page ceased updating in October, 2012

--- Log opened Wed Sep 29 00:00:07 2010
00:03 -!- Tv [~tv@gige.bur.digisynd.com] has quit [Ping timeout: 272 seconds]
00:03 -!- amackera [~amackera@tophatmonocle.acceleratorcentre.net] has quit [Ping
timeout: 252 seconds]
00:07 -!- lmoura [~lauromour@187.113.114.48] has quit [Read error: Connection
reset by peer]
00:08 -!- lmoura [~lauromour@187.113.65.215] has joined #go-nuts
00:10 -!- artefon [~thiago@189.59.202.120] has joined #go-nuts
00:17 -!- tsykoduk [~tsykoduk@184.78.195.79] has joined #go-nuts
00:18 -!- lmoura [~lauromour@187.113.65.215] has quit [Read error: Connection
reset by peer]
00:18 -!- lmoura_ [~lauromour@186.212.97.104] has joined #go-nuts
00:22 -!- tsykoduk [~tsykoduk@184.78.195.79] has left #go-nuts []
00:30 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has left
#go-nuts []
00:31 -!- kanru [~kanru@118-168-236-6.dynamic.hinet.net] has quit [Ping timeout:
265 seconds]
00:32 < plexdev> http://is.gd/fyEag by [Russ Cox] in go/lib/codereview/ --
codereview: fix upload of hg copied file
00:32 < plexdev> http://is.gd/fyEam by [Russ Cox] in 14 subdirs of
go/src/pkg/runtime/ -- runtime: add mmap of null page just in case
00:33 -!- lmoura_ [~lauromour@186.212.97.104] has quit [Ping timeout: 240 seconds]
00:33 -!- lmoura_ [~lauromour@187.112.9.64] has joined #go-nuts
00:35 -!- cw [~cw@parsec.stupidest.org] has quit [Ping timeout: 240 seconds]
00:36 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
00:49 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has quit [Quit:
leaving]
00:49 < plexdev> http://is.gd/fyFpM by [Russ Cox] in 3 subdirs of
go/src/pkg/runtime/ -- runtime: fix build
00:50 -!- cw [~cw@parsec.stupidest.org] has joined #go-nuts
00:53 -!- iant [~iant@216.239.45.130] has quit [Quit: Leaving.]
00:57 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has quit [Ping
timeout: 240 seconds]
00:58 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
00:59 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has joined #go-nuts
01:02 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Client Quit]
01:09 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
01:14 -!- lmoura__ [~lauromour@187.58.100.112] has joined #go-nuts
01:17 -!- lmoura_ [~lauromour@187.112.9.64] has quit [Ping timeout: 276 seconds]
01:21 < plexdev> http://is.gd/fyHUw by [Ken Thompson] in go/src/cmd/5g/ --
arm code gen error in unsign extend
01:21 -!- l00t [~i-i3id3r_@189.105.67.123] has quit [Ping timeout: 245 seconds]
01:22 -!- artefon [~thiago@189.59.202.120] has quit [Quit: bye]
01:22 -!- l00t [~i-i3id3r_@189.105.27.193] has joined #go-nuts
01:26 -!- Bombe [~droden@freenet/developer/Bombe] has quit [Excess Flood]
01:26 -!- Bombe [~droden@weltgehirnmaschine.de] has joined #go-nuts
01:30 -!- RobertLJ_ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Read
error: Operation timed out]
01:36 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
01:38 < plexdev> http://is.gd/fyJbJ by [Russ Cox] in
go/src/pkg/runtime/freebsd/ -- runtime: fix freebsd build
01:45 -!- lmoura_ [~lauromour@186.212.106.213] has joined #go-nuts
01:47 -!- lmoura__ [~lauromour@187.58.100.112] has quit [Ping timeout: 245
seconds]
01:54 < plexdev> http://is.gd/fyKs8 by [Russ Cox] in go/src/libcgo/ --
libcgo: don't build for NaCl
01:56 -!- res [c9ed8246@gateway/web/freenode/ip.201.237.130.70] has quit [Ping
timeout: 252 seconds]
01:57 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has joined #go-nuts
01:58 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has quit [Read error: Connection reset by peer]
01:58 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has joined #go-nuts
02:13 -!- lmoura_ [~lauromour@186.212.106.213] has quit [Read error: Connection
reset by peer]
02:14 -!- lmoura_ [~lauromour@187.59.123.240] has joined #go-nuts
02:29 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
02:35 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
02:37 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
02:47 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
02:57 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
03:00 -!- slashus2 [~slashus2@74-141-108-109.dhcp.insightbb.com] has quit [Quit:
slashus2]
03:08 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping
timeout: 272 seconds]
03:12 < plexdev> http://is.gd/fyQmj by [Russ Cox] in go/src/cmd/gotest/ --
gotest: leave _testmain.go for "make clean" to clean up
03:42 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
03:42 -!- mode/#go-nuts [+v iant] by ChanServ
03:47 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
03:50 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Client Quit]
03:51 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has quit [Ping timeout: 265 seconds]
03:52 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has joined #go-nuts
03:52 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Ping timeout: 245 seconds]
03:59 < plexdev> http://is.gd/fyTHi by [Russ Cox] in go/src/pkg/ -- arm: 10
more package tests pass
03:59 < plexdev> http://is.gd/fyTHo by [Russ Cox] in 2 subdirs of go/src/ --
build: clear custom variables like GREP_OPTIONS
04:03 -!- Bombe [~droden@weltgehirnmaschine.de] has quit [Changing host]
04:03 -!- Bombe [~droden@freenet/developer/Bombe] has joined #go-nuts
04:04 -!- mikespook [~mikespook@219.137.75.141] has quit [Ping timeout: 276
seconds]
04:04 -!- mikespook [~mikespook@58.61.204.60] has joined #go-nuts
04:08 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 245 seconds]
04:08 -!- rup [~rupert@deathknight.net] has quit [Ping timeout: 264 seconds]
04:20 -!- jcao219 [~Jimmy_Cao@pool-173-74-61-111.dllstx.fios.verizon.net] has
joined #go-nuts
04:20 -!- jcao219 [~Jimmy_Cao@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Client Quit]
04:23 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
04:23 -!- mode/#go-nuts [+v iant] by ChanServ
04:28 -!- tav_ [~tav@92.7.157.46] has joined #go-nuts
04:29 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:62d1] has quit [Read error:
Connection reset by peer]
04:30 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
04:31 < plexdev> http://is.gd/fyX2C by [Stephen Ma] in 6 subdirs of go/src/
-- http: revised http Handler interface
04:33 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
04:42 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 245 seconds]
04:43 -!- iant [~iant@216.239.45.130] has joined #go-nuts
04:43 -!- mode/#go-nuts [+v iant] by ChanServ
04:49 -!- sacho [~sacho@95-42-116-140.btc-net.bg] has quit [Ping timeout: 264
seconds]
04:51 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
04:54 -!- jhh [~jhh@g228138211.adsl.alicedsl.de] has joined #go-nuts
05:01 -!- scm [scm@d070044.adsl.hansenet.de] has quit [Ping timeout: 240 seconds]
05:01 -!- fuzzybyte [~fuzzybyte@77.79.7.8] has quit [Ping timeout: 276 seconds]
05:02 -!- fuzzybyte [~fuzzybyte@77.79.7.8] has joined #go-nuts
05:02 -!- scm [scm@d038063.adsl.hansenet.de] has joined #go-nuts
05:06 -!- rup [~rupert@deathknight.net] has joined #go-nuts
05:09 -!- dju [dju@fsf/member/dju] has joined #go-nuts
05:10 -!- fuzzybyte [~fuzzybyte@77.79.7.8] has quit [Remote host closed the
connection]
05:14 -!- fabled [~fabled@letku109.adsl.netsonic.fi] has joined #go-nuts
05:15 -!- fuzzybyte [~fuzzybyte@77.79.7.8] has joined #go-nuts
05:27 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has quit [Quit: major_majors]
05:36 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
05:36 -!- KirkMcDonald [~Kirk@python/site-packages/KirkMcDonald] has quit [Ping
timeout: 272 seconds]
05:37 -!- KirkMcDonald [~Kirk@24.143.227.33] has joined #go-nuts
05:37 -!- KirkMcDonald [~Kirk@24.143.227.33] has quit [Changing host]
05:37 -!- KirkMcDonald [~Kirk@python/site-packages/KirkMcDonald] has joined
#go-nuts
05:54 -!- dionysiac_ [~dionysiac@S01060013102db8c7.cg.shawcable.net] has quit
[Ping timeout: 245 seconds]
05:58 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-190.clienti.tiscali.it] has
joined #go-nuts
06:13 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts
06:13 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:59e9:c7c2:31b0:8bbd] has joined
#go-nuts
06:26 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
06:29 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Read error: Operation
timed out]
06:34 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Ping timeout:
265 seconds]
06:50 -!- ronnyy [~quassel@p4FF1D595.dip.t-dialin.net] has joined #go-nuts
07:05 < plexdev> http://is.gd/fzeyu by [Andrew Gerrand] in go/doc/ -- doc:
consolidate FAQs into a single file, go_faq.html
07:13 -!- synth [~cb@obfuscated.us] has quit [Remote host closed the connection]
07:19 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten.  Desu~]
07:39 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
07:40 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has quit [Ping timeout: 245
seconds]
07:42 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has joined #go-nuts
07:42 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
07:44 -!- ikaros [~ikaros@dslb-094-219-211-030.pools.arcor-ip.net] has joined
#go-nuts
07:48 -!- virtualsue [~chatzilla@nat/cisco/x-dyztvhskysxgyveg] has joined #go-nuts
07:53 -!- photron [~photron@port-92-201-53-178.dynamic.qsc.de] has joined #go-nuts
08:12 < enferex> Is there a way to have the gc (6g/5g) compiler dump in
debugging flags?  I do not see any mention of an additional flag I can add to have
the compiler toss in some DWARF or STABS data.
08:15 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Quit: Ex-Chat]
08:18 -!- photron [~photron@port-92-201-53-178.dynamic.qsc.de] has quit [Ping
timeout: 276 seconds]
08:18 -!- mikespook [~mikespook@58.61.204.60] has quit [Ping timeout: 255 seconds]
08:21 -!- mikespook [~mikespook@58.61.204.60] has joined #go-nuts
08:30 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-190.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
08:32 -!- mduft [~mduft@gentoo/developer/mduft] has quit [Remote host closed the
connection]
08:35 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:40 -!- melba [~a@unaffiliated/lazz0] has joined #go-nuts
08:52 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
09:04 -!- niemeyer [~niemeyer@91.189.88.12] has joined #go-nuts
09:05 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
09:07 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the
connection]
09:10 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
09:10 -!- jmettraux [~jmettraux@211.19.55.177] has quit [Remote host closed the
connection]
09:21 -!- ronnyy [~quassel@p4FF1D595.dip.t-dialin.net] has quit [Remote host
closed the connection]
09:35 -!- mduft [~mduft@gentoo/developer/mduft] has joined #go-nuts
09:37 -!- jdp [jdp@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts
09:39 -!- wrtp [~rog@92.17.19.118] has joined #go-nuts
09:40 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 265
seconds]
09:41 -!- ucasano [~ucasano@151.12.47.139] has joined #go-nuts
09:43 < Gertm> building go on a i586/BSD crashes in the test phase:
..go/bin/gotest: line 183: 30427 Trace/BPT trap: 5 is that a known issue?
09:43 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
09:44 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 265 seconds]
09:52 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
10:03 -!- scyth [~scyth@zeljko.eunet.rs] has joined #go-nuts
10:18 -!- mikespook [~mikespook@58.61.204.60] has quit [Quit: Leaving.]
10:18 -!- tux21b [~christoph@chello213047047175.3.graz.surfer.at] has joined
#go-nuts
10:23 -!- tux21b [~christoph@chello213047047175.3.graz.surfer.at] has quit [Ping
timeout: 252 seconds]
10:23 -!- norayr_ [d4494a1c@gateway/web/freenode/ip.212.73.74.28] has quit [Ping
timeout: 252 seconds]
10:29 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
10:36 -!- l00t [~i-i3id3r_@189.105.27.193] has quit [Remote host closed the
connection]
10:49 -!- Geekk [~Geekk@bus77-2-82-244-148-145.fbx.proxad.net] has joined #go-nuts
11:06 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 252
seconds]
11:28 -!- adu [~ajr@pool-173-66-253-121.washdc.fios.verizon.net] has joined
#go-nuts
11:29 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit:
Leaving]
11:31 -!- niemeyer [~niemeyer@91.189.88.12] has quit [Ping timeout: 240 seconds]
11:34 -!- ucasano [~ucasano@151.12.47.139] has quit [Quit: ucasano]
11:38 -!- artefon [~thiago@dhcp46.usuarios.dcc.ufmg.br] has joined #go-nuts
11:45 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
11:51 -!- niemeyer [~niemeyer@91.189.88.12] has joined #go-nuts
11:55 -!- ucasano [~ucasano@151.12.47.139] has joined #go-nuts
11:57 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 265 seconds]
12:16 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
12:17 -!- DJCapelis [~djc@blender/coder/DJCapelis] has quit [Ping timeout: 255
seconds]
12:18 -!- mduft [~mduft@gentoo/developer/mduft] has quit [Remote host closed the
connection]
12:18 -!- DJCapelis [~djc@capelis.dj] has joined #go-nuts
12:18 -!- mduft [~mduft@gentoo/developer/mduft] has joined #go-nuts
12:18 -!- DJCapelis [~djc@capelis.dj] has quit [Changing host]
12:18 -!- DJCapelis [~djc@blender/coder/DJCapelis] has joined #go-nuts
12:21 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
12:23 -!- virtualsue [~chatzilla@nat/cisco/x-dyztvhskysxgyveg] has quit [Ping
timeout: 240 seconds]
12:24 -!- gummibaerchen [~timm@archlinux/trusteduser/gummibaerchen] has joined
#go-nuts
12:24 -!- vdrab [~vdrab@EM114-51-150-28.pool.e-mobile.ne.jp] has joined #go-nuts
12:26 < gummibaerchen> Hi, I'm writing my first small program in Go, and am
currently unsure how to proceed.  I retrieve DB rows via gosqlite, which doesn't
give a count, so if I want to export them, how would I package them?  I don't know
the size for an array yet, and the List on interface{} doesn't feel right.
12:27 < gummibaerchen> I want to pass that on to the template engine for
rendering, so I don't really care about the count of the elements I got, I just
need to stuff them into something to pass them on
12:30 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts
12:34 -!- ucasano [~ucasano@151.12.47.139] has quit [Quit: ucasano]
12:34 < scyth> gummibaerchen, len()?
12:34 -!- sacho [~sacho@194.141.26.6] has joined #go-nuts
12:35 -!- wrtp [~rog@92.17.19.118] has quit [Ping timeout: 240 seconds]
12:36 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
12:40 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
12:42 -!- wrtp [~rog@92.17.19.118] has joined #go-nuts
12:43 < wrtp> if you want them in an array, you could store all the elements
in a Vector, then create your own vector of the correct type and then populate it
at the end.
12:43 < wrtp> or you could pass them down a channel one by one.
12:44 < wrtp> or you could store them in a linked list.
12:45 < Namegduf> Providing a slice is tidy.
12:45 -!- ysynopsis [~Adium@c-67-165-183-239.hsd1.il.comcast.net] has quit [Quit:
Leaving.]
12:48 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: Lost terminal]
12:51 -!- amackera [~amackera@tophatmonocle.acceleratorcentre.net] has joined
#go-nuts
12:51 -!- ucasano [~ucasano@151.12.47.139] has joined #go-nuts
12:52 < gummibaerchen> I don't think len would work on the sqlite statement
12:53 < gummibaerchen> I went with a channel for now, as that may make the
problem of getting the correct number of items obsolete and then again it's the
most interesting concept
12:53 < Namegduf> It's also very slow.
12:54 < Namegduf> Not too bad if it's the neatest solution for a scenario,
and the amount of computation per result is high, but not a good default option.
12:54 < gummibaerchen> hmm, slow like an issue slow?  I though that was one
of the central concept, so it shouldn't be so slow as to not recommend it (in the
final version), right?
12:54 < Namegduf> The central concept is to use channels to communicate, and
they're fast enough for communication, but excessive communication is a bad thing.
12:55 < jnwhiteh> choosing the right level of abstraction still matters,
indeed =)
12:55 < wrtp> slowness is relative...
12:55 < wrtp> (to what you want to do)
12:55 < gummibaerchen> hmm, but should I then start with an array of 2 and
double that whenever I get new elements?  that could mean an awful lot of resizing
12:56 < Namegduf> Are you actually getting new elements dynamically, or do
you have a single List?
12:56 -!- synth [~cb@obfuscated.us] has joined #go-nuts
12:56 < gummibaerchen> in C# there is the concept IEnumerable and you can
emit new elements whenever/as long as you have them, I was building something
similar with channels here
12:57 < gummibaerchen> Namegduf: I use the gosqlite adapter, and it only
provides a Next method
12:57 < Namegduf> With the next method returning nil when you're done?
12:57 < gummibaerchen> I could get a COUNT from the DB first, but then what
if the DB changes between the two queries?
12:57 < Namegduf> You can iterate the list twice.
12:58 < gummibaerchen> exactly
12:58 < Namegduf> Once to get the length and allocate an array, another to
set up the array.
12:58 < gummibaerchen> once for counting and once for getting the actual
elements?
12:58 < Namegduf> Hmm, you can't keep the original iterator around and
iterate it again?
12:59 < Namegduf> If you can, yes.
12:59 -!- Geekk [~Geekk@bus77-2-82-244-148-145.fbx.proxad.net] has left #go-nuts
[]
12:59 < gummibaerchen> maybe faster in practice than channels, but not very
nice, wouldn't you agree?
12:59 < Namegduf> No- but this is how you get the length of a list, which is
a defined operation.
12:59 < Namegduf> It's really gosqlite's fault for not providing a count.
13:00 < nbjoerg> no, it isn't
13:00 < Namegduf> Yes, it is.
13:00 < nbjoerg> if you want to know the number of rows, you have to fetch
all of them first
13:01 < nbjoerg> that's a major design choice by almost all SQL engines
13:01 < Namegduf> I thought that most SQL APIs could provide a count along
with the iterating thing.
13:01 < nbjoerg> simply because you don't want to compute the number of rows
if you don't have to as it can be very expensive
13:02 < Namegduf> Well, anyway, you can also use a Vector, which is fairly
common.
13:02 < Namegduf> If you don't know how many.
13:02 < nbjoerg> and depending on how you use the database, the COUNT(*) is
precise and can't change anyway
13:02 < nbjoerg> e.g.  for sqlite, if you have a write lock on the db
13:02 < Namegduf> What're you returning, and what's it used for?
13:03 -!- ysynopsis [~Adium@pat1.orbitz.net] has joined #go-nuts
13:03 < Namegduf> Maybe the best idea is to wrap the returned iterator in a
type of your own, with its own Next() method.
13:03 < Namegduf> Assuming you're doing something more complicated than just
passing on the results, in which case you could actually return the iterator.
13:03 < nbjoerg> that's what statements give you as interface, at least on
the C side
13:04 < nbjoerg> if you don't use the convinient wrapper
13:05 < gummibaerchen> well, it's just a bunch of simple structs, that I
want to pass on to the template engine for rendering
13:05 < gummibaerchen> but I will try to iterate twice, and hopefully it
will be the same collection of rows
13:06 < nbjoerg> if you want to use the data anyway, push it into a vector
13:06 < nbjoerg> that's cheaper than doing a count first or other ways that
execute two queries
13:06 < nbjoerg> unless of course, your row set is extremely large
13:06 < gummibaerchen> ok, I will go with that
13:07 < gummibaerchen> but if channels aren't cheap, the examples on
golang.org aren't really suited to use channels, right?  (I know it's a nice
demonstration etc.  but I am just think WHERE I actually should use them then)
13:09 < nbjoerg> channels for data set enumeration work well as long as you
don't care about knowing the number in advantage
13:09 < nbjoerg> and are a very abstraction in that case
13:09 < nbjoerg> you can still build a collector on top that pushes every
item into a vector to compute the count
13:11 < gummibaerchen> of course, that's why I thought it's good, because I
don't have to stuff the elements into any special collection.  but then I read in
here that they're (too) expensive for this
13:12 < gummibaerchen> but if I go and pack them into a Vector, would I
return them as a typed slice?  or would I have to pack them into a new array of
the correct type?  then my costs are probably higher than counting once.
13:12 < nbjoerg> the collector can provide the channel interface again
13:13 < nbjoerg> what it uses internally for the storage is a separate
question
13:15 < gummibaerchen> why would I want to pack them into a vector and then
'export' them via a channel again?  I could just move them from the SQLite
iterator onto the channel?!
13:15 < gummibaerchen> I assumed you recommended the Vector in order to
export and array/slice with a fixed type and length
13:17 < nbjoerg> if you don't care about the count, you use the iteration
channel directly
13:17 < nbjoerg> if you do need the count, you pass them through the
collector
13:18 < nbjoerg> the collector doesn't care if your data source is sqlite,
postgres, your own fancy google spider etc
13:18 < gummibaerchen> ok, so you don't agree that a channel has too much
overhead for this?  fine, then I will go forward with the channel approach
13:19 < nbjoerg> *sigh*
13:19 < nbjoerg> I'm just saying that channels are a nice principle of
abstraction
13:20 < nbjoerg> they don't fit every use case.  if you know that you will
need all data and have to keep the result in memory anyway, just use an array for
fetching it out of sqlite
13:21 < gummibaerchen> ok, great.  I think we agree in principle here.
13:22 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
13:24 -!- mduft [~mduft@gentoo/developer/mduft] has quit [Remote host closed the
connection]
13:24 -!- mduft [~mduft@gentoo/developer/mduft] has joined #go-nuts
13:25 -!- sacho [~sacho@194.141.26.6] has quit [Quit: Ex-Chat]
13:26 -!- Fish9 [~Fish@86.65.182.207] has quit [Remote host closed the connection]
13:26 -!- Fish9 [~Fish@86.65.182.207] has joined #go-nuts
13:28 -!- Fish9 [~Fish@86.65.182.207] has quit [Remote host closed the connection]
13:29 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 252 seconds]
13:30 -!- Fish9 [~Fish@86.65.182.204] has joined #go-nuts
13:35 -!- ucasano [~ucasano@151.12.47.139] has quit [Quit: ucasano]
13:41 -!- virtualsue [~chatzilla@nat/cisco/x-kbuswxezdurbvotd] has joined #go-nuts
13:41 -!- iant [~iant@67.218.106.122] has joined #go-nuts
13:41 -!- mode/#go-nuts [+v iant] by ChanServ
13:41 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 272 seconds]
13:42 -!- vdrab_ [~vdrab@EM114-50-8-63.pool.e-mobile.ne.jp] has joined #go-nuts
13:44 -!- vdrab [~vdrab@EM114-51-150-28.pool.e-mobile.ne.jp] has quit [Ping
timeout: 245 seconds]
13:45 -!- mduft [~mduft@gentoo/developer/mduft] has quit [Remote host closed the
connection]
13:45 -!- mduft [~mduft@gentoo/developer/mduft] has joined #go-nuts
13:46 -!- adu [~ajr@pool-173-66-253-121.washdc.fios.verizon.net] has quit [Quit:
adu]
13:47 < gmilleramilar> how do you convert a big.Rat to a float64?
13:48 -!- mduft [~mduft@gentoo/developer/mduft] has quit [Remote host closed the
connection]
13:48 -!- photron [~photron@port-92-201-53-178.dynamic.qsc.de] has joined #go-nuts
13:48 -!- mduft [~mduft@gentoo/developer/mduft] has joined #go-nuts
13:50 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
13:55 -!- gmilleramilar [~gmiller@184-106-207-119.static.cloud-ips.com] has quit
[Remote host closed the connection]
13:55 -!- gmilleramilar [~gmiller@184-106-207-119.static.cloud-ips.com] has joined
#go-nuts
14:01 -!- Fish9 [~Fish@86.65.182.204] has quit [Remote host closed the connection]
14:02 -!- gmilleramilar [~gmiller@184-106-207-119.static.cloud-ips.com] has quit
[Remote host closed the connection]
14:02 -!- gummibaerchen [~timm@archlinux/trusteduser/gummibaerchen] has quit
[Quit: Ex-Chat]
14:02 -!- gmilleramilar [~gmiller@184-106-207-119.static.cloud-ips.com] has joined
#go-nuts
14:07 -!- Fish9 [~Fish@86.65.182.207] has joined #go-nuts
14:21 -!- ucasano [~ucasano@151.12.47.139] has joined #go-nuts
14:29 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
14:32 -!- virtualsue [~chatzilla@nat/cisco/x-kbuswxezdurbvotd] has quit [Ping
timeout: 272 seconds]
14:33 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Client
Quit]
14:36 -!- tsykoduk [~tsykoduk@184.78.195.79] has joined #go-nuts
14:38 -!- wrtp [~rog@92.17.19.118] has quit [Quit: wrtp]
14:39 -!- cenuij [~cenuij@base/student/cenuij] has quit [Read error: Connection
reset by peer]
14:42 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
14:43 -!- kanru [~kanru@118-168-236-6.dynamic.hinet.net] has joined #go-nuts
14:48 < nickaugust> there was some talk on the mailing list about a yaml
parser.  anyone know if anything came of that?
14:48 -!- artefon [~thiago@dhcp46.usuarios.dcc.ufmg.br] has quit [Quit: bye]
14:51 -!- vdrab [~vdrab@EM114-50-8-63.pool.e-mobile.ne.jp] has quit [Ping timeout:
255 seconds]
14:53 -!- wrtp [~rog@92.17.19.118] has joined #go-nuts
14:53 -!- wrtp [~rog@92.17.19.118] has quit [Client Quit]
14:53 -!- vdrab [~vdrab@EM114-51-144-238.pool.e-mobile.ne.jp] has joined #go-nuts
14:57 -!- virtualsue [~chatzilla@nat/cisco/x-ygkdvdjvfixsnkjn] has joined #go-nuts
14:59 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Read error: Connection
reset by peer]
15:07 -!- ucasano [~ucasano@151.12.47.139] has quit [Quit: ucasano]
15:09 -!- ucasano [~ucasano@151.12.47.139] has joined #go-nuts
15:15 -!- iant [~iant@67.218.106.122] has quit [Quit: Leaving.]
15:17 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
15:17 -!- kanru [~kanru@118-168-236-6.dynamic.hinet.net] has quit [Ping timeout:
240 seconds]
15:20 -!- aho [~nya@fuld-4d00d325.pool.mediaWays.net] has joined #go-nuts
15:23 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Ping timeout: 255
seconds]
15:32 -!- vdrab [~vdrab@EM114-51-144-238.pool.e-mobile.ne.jp] has quit [Quit:
vdrab]
15:35 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
15:36 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
15:37 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
15:41 -!- femtoo [~femto@95-89-248-241-dynip.superkabel.de] has joined #go-nuts
15:45 -!- femtoo [~femto@95-89-248-241-dynip.superkabel.de] has quit [Ping
timeout: 265 seconds]
15:46 -!- navigator [~navigator@p54894137.dip.t-dialin.net] has joined #go-nuts
15:50 -!- artefon [~thiago@dhcp49.usuarios.dcc.ufmg.br] has joined #go-nuts
15:50 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts
15:51 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
15:57 < nsf>
http://www.drdobbs.com/blog/archives/2010/08/c_compilation_s.html <- an
interesting article by Walter Bright (one of the D programming language author)
explaining why C++ compilers are slow
15:57 < nsf> :P
15:57 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Operation timed
out]
15:57 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
15:58 < nsf> s/author/authors/
15:59 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts
16:05 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-190.clienti.tiscali.it] has
joined #go-nuts
16:07 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
16:08 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
16:13 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 245
seconds]
16:19 -!- res [c9ed8246@gateway/web/freenode/ip.201.237.130.70] has joined
#go-nuts
16:20 < nbjoerg> because compiling C++ is turing complete
16:22 < nbjoerg> (3) is actually done by GCC
16:23 < nsf> yep, it's odd that Walter said he doesn't know any compiler
that does this
16:23 < nsf> because imho every big compiler does this
16:23 < nsf> these days
16:24 < nbjoerg> ack
16:25 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
16:27 < nsf> nbjoerg: but I believe turing completeness is not an issue, D
has even more featureful template system than C++ and an ability to evaluate a
subset of D at compile-time, yet it compiles as fast as Go
16:27 < nbjoerg> D is not as context sensitive though
16:27 < nbjoerg> the combination is deadly
16:28 < nsf> yep
16:30 -!- awidegreen [~quassel@62.176.237.78] has quit [Read error: Connection
reset by peer]
16:30 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
16:30 -!- iant [~iant@nat/google/x-gcqcwdrsmkbkyyxq] has joined #go-nuts
16:30 -!- mode/#go-nuts [+v iant] by ChanServ
16:30 -!- ucasano [~ucasano@151.12.47.139] has quit [Quit: ucasano]
16:34 -!- fabled [~fabled@letku109.adsl.netsonic.fi] has quit [Quit: Ex-Chat]
16:40 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 276 seconds]
16:41 -!- sacho [~sacho@91.139.247.215] has joined #go-nuts
16:44 -!- melter [~Melter@2001:4930:116:0:21c:c0ff:feef:eaf5] has joined #go-nuts
16:45 -!- sacho [~sacho@91.139.247.215] has quit [Ping timeout: 240 seconds]
16:49 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
16:51 -!- sacho [~sacho@95-42-116-140.btc-net.bg] has joined #go-nuts
16:56 -!- Tv [~tv@gige.bur.digisynd.com] has joined #go-nuts
16:57 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
17:05 -!- artefon [~thiago@dhcp49.usuarios.dcc.ufmg.br] has quit [Ping timeout:
240 seconds]
17:06 -!- artefon [~thiago@dhcp49.usuarios.dcc.ufmg.br] has joined #go-nuts
17:21 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Quit:
No Ping reply in 180 seconds.]
17:23 -!- res [c9ed8246@gateway/web/freenode/ip.201.237.130.70] has quit [Ping
timeout: 252 seconds]
17:25 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
17:26 -!- niemeyer [~niemeyer@91.189.88.12] has quit [Ping timeout: 240 seconds]
17:31 -!- Cyprien_ [~Cyprien@186-156.3-85.cust.bluewin.ch] has joined #go-nuts
17:41 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
17:50 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving]
17:50 < gmilleramilar> is there anyone else who thinks the gc compilers
should warn you when you shadow a variable or parameter?
17:50 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
18:01 -!- ronnyy [~quassel@p4FF1D595.dip.t-dialin.net] has joined #go-nuts
18:02 -!- aguai [~aguai@li74-37.members.linode.com] has quit [Disconnected by
services]
18:02 -!- artefon [~thiago@dhcp49.usuarios.dcc.ufmg.br] has quit [Ping timeout:
265 seconds]
18:04 < nbjoerg> we had a discussion about that a while ago
18:04 < nbjoerg> and I had a ticket for it that was closed, IIRC
18:05 -!- scyth [~scyth@zeljko.eunet.rs] has quit [Quit: Leaving]
18:05 -!- artefon [~thiago@dhcp49.usuarios.dcc.ufmg.br] has joined #go-nuts
18:10 < gmilleramilar> as in "its not a good idea, we're not going to do it"
18:10 < nbjoerg> ack
18:11 < gmilleramilar> wow, really?  I'm actually leaning the other way,
that it should be an error.
18:11 < vsmatck> why?
18:12 < gmilleramilar> well at least in the case of a local variable
shadowing a parameter or package global, 99 times out of 100 when I shadow it's a
mistake
18:12 < gmilleramilar> the 100th time, I can rename the local to something
else.
18:14 < nbjoerg> I was more concerned about the case of one local variable
shadowing another
18:15 < gmilleramilar> yeah, I'm not sure I really do that intentionally all
that often either...
18:22 -!- juergbi [~juerg@77-58-111-253.dclient.hispeed.ch] has quit [Ping
timeout: 264 seconds]
18:25 -!- fabled [~fabled@letku109.adsl.netsonic.fi] has joined #go-nuts
18:26 < plexdev> http://is.gd/fABQJ by [Rob Pike] in go/doc/ -- Effective
Go: update for new http interface.
18:32 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X]
18:36 -!- scyth [~scyth@rots.in.rs] has joined #go-nuts
18:48 -!- ronnyy [~quassel@p4FF1D595.dip.t-dialin.net] has quit [Remote host
closed the connection]
18:52 -!- alefnula [~alefnula@188.246.38.197] has joined #go-nuts
19:00 -!- ProNihilist
[~anathema@cpc4-cani1-0-0-cust597.14-2.cable.virginmedia.com] has quit [Read
error: Connection reset by peer]
19:01 -!- ProNihilist
[~anathema@cpc4-cani1-0-0-cust597.14-2.cable.virginmedia.com] has joined #go-nuts
19:02 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 272 seconds]
19:04 -!- serverhorror [~serverhor@chello080109038110.17.14.vie.surfer.at] has
joined #go-nuts
19:11 -!- itrekkie [~itrekkie@ip72-200-110-29.tc.ph.cox.net] has joined #go-nuts
19:11 -!- artefon [~thiago@dhcp49.usuarios.dcc.ufmg.br] has quit [Quit: bye]
19:13 < plexdev> http://is.gd/fAHvv by [Russ Cox] in 2 subdirs of
go/src/cmd/ -- 6l, 8l: fix -K implementation
19:15 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts
19:27 -!- skejoe [~skejoe@188.114.142.231] has quit [Ping timeout: 264 seconds]
19:27 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
19:32 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
19:37 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
19:41 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 255 seconds]
19:42 -!- plainhao [~plainhao@mail.xbiotica.com] has quit [Quit: plainhao]
19:43 -!- fabled [~fabled@letku109.adsl.netsonic.fi] has quit [Quit: Ex-Chat]
19:45 < plexdev> http://is.gd/fALmt by [Robert Griesemer] in go/doc/ --
install.html: minor sentence fix
19:52 -!- artefon [~thiago@189.59.202.120] has joined #go-nuts
19:55 -!- virtualsue [~chatzilla@nat/cisco/x-ygkdvdjvfixsnkjn] has quit [Quit:
ChatZilla 0.9.86 [Firefox 3.5.13/20100914122142]]
19:55 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
19:57 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
20:06 -!- kmeyer [~konrad@fedora/kmeyer] has left #go-nuts []
20:20 -!- jhh [~jhh@g228138211.adsl.alicedsl.de] has quit [Quit: jhh]
20:21 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
20:24 -!- Boney [~paul@124-168-205-231.dyn.iinet.net.au] has joined #go-nuts
20:25 -!- Boney_ [~paul@124-168-82-214.dyn.iinet.net.au] has quit [Ping timeout:
264 seconds]
20:34 -!- serverhorror [~serverhor@chello080109038110.17.14.vie.surfer.at] has
quit [Quit: serverhorror]
20:34 -!- serverhorror [~serverhor@chello080109038110.17.14.vie.surfer.at] has
joined #go-nuts
20:36 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten.  Desu~]
20:36 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:59e9:c7c2:31b0:8bbd] has quit
[Quit: Leaving.]
20:42 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
20:43 -!- serverhorror [~serverhor@chello080109038110.17.14.vie.surfer.at] has
quit [Quit: serverhorror]
20:51 -!- cenuij [~cenuij@93.26.149.132] has joined #go-nuts
20:51 -!- cenuij [~cenuij@93.26.149.132] has quit [Changing host]
20:51 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
20:58 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
21:02 -!- ysynopsis [~Adium@pat1.orbitz.net] has quit [Ping timeout: 255 seconds]
21:15 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit:
Leaving.]
21:20 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving]
21:21 -!- alefnula [~alefnula@188.246.38.197] has quit [Read error: Operation
timed out]
21:23 -!- alefnula [~alefnula@188.246.38.197] has joined #go-nuts
21:27 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
21:28 -!- Project_NAP [~Marvin@dynamic-adsl-94-36-177-190.clienti.tiscali.it] has
quit [Read error: Connection reset by peer]
21:32 -!- herewego [~herewego@93-34-248-48.ip52.fastwebnet.it] has joined #go-nuts
21:32 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
21:35 -!- herewego [~herewego@93-34-248-48.ip52.fastwebnet.it] has left #go-nuts
[]
21:42 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping
timeout: 245 seconds]
21:59 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
22:19 -!- photron [~photron@port-92-201-53-178.dynamic.qsc.de] has quit [Ping
timeout: 272 seconds]
22:20 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X]
22:20 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has joined
#go-nuts
22:27 -!- kanru [~kanru@118-168-236-6.dynamic.hinet.net] has joined #go-nuts
22:29 -!- alefnula [~alefnula@188.246.38.197] has quit [Quit: Ex-Chat]
22:29 -!- ikaros [~ikaros@dslb-094-219-211-030.pools.arcor-ip.net] has quit [Quit:
Leave the magic to Houdini]
22:38 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit:
skelterjohn]
22:40 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
22:42 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 265 seconds]
22:43 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
22:45 -!- napsy [~luka@88.200.96.18] has quit [Client Quit]
22:51 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
connection]
22:52 -!- kanru [~kanru@118-168-236-6.dynamic.hinet.net] has quit [Ping timeout:
245 seconds]
22:52 -!- bmizerany [~bmizerany@208.66.27.62] has joined #go-nuts
22:53 -!- melba [~a@unaffiliated/lazz0] has left #go-nuts []
23:03 -!- cenuij [~cenuij@109.8.21.172] has joined #go-nuts
23:03 -!- cenuij [~cenuij@109.8.21.172] has quit [Changing host]
23:03 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
23:04 -!- aho [~nya@fuld-4d00d325.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
23:08 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has quit [Ping
timeout: 272 seconds]
23:08 -!- amackera [~amackera@tophatmonocle.acceleratorcentre.net] has quit [Quit:
Lost terminal]
23:09 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
connection]
23:16 -!- bmizerany [~bmizerany@208.66.27.62] has quit [Remote host closed the
connection]
23:17 -!- cenuij [~cenuij@93.26.136.97] has joined #go-nuts
23:17 -!- cenuij [~cenuij@93.26.136.97] has quit [Changing host]
23:17 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
23:18 < scyth> is there a way to implement binary protocols like spdy, in
go?
23:18 < scyth> since structures with bitfields are not possible
23:19 -!- bmizerany [~bmizerany@208.66.27.62] has joined #go-nuts
23:21 < nbjoerg> well, Go supports at least parts of ASN.1
23:21 < nbjoerg> which can be a binary protocol
23:21 < nbjoerg> just a question of writing the marshelling/unmarshelling
code
23:21 < Eridius> scyth: you may not be able to declare a bitfield in a
struct, but that doesn't stop you from writing code that packs a bitfield into a
buffer in memory
23:22 < gmilleramilar> how do you convert a big.Rat to a float[32|64]
23:23 < scyth> Eridius, how exactly would you do that?  If you have a binary
stream and you want the value of first two bits?
23:26 < nbjoerg> scyth: read it as byte and use bit masks?
23:26 < exch> ^
23:26 < nbjoerg> &
23:27 < Eridius> scyth: offhand, in Go, I don't know as I don't have much
time to play with Go these days.  But I'd try to do what nbjoerg suggested
23:27 < nbjoerg> it's not like a C compiler does anything else
23:27 -!- iant [~iant@nat/google/x-gcqcwdrsmkbkyyxq] has quit [Ping timeout: 272
seconds]
23:31 < scyth> :)
23:31 < scyth> thanks
23:33 -!- jmettraux [~jmettraux@211.19.55.177] has joined #go-nuts
23:34 -!- iant [~iant@nat/google/x-yxsnqbwsslhxiqge] has joined #go-nuts
23:34 -!- mode/#go-nuts [+v iant] by ChanServ
23:36 -!- iant1 [~iant@67.218.106.122] has joined #go-nuts
23:39 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection
reset by peer]
23:39 -!- iant [~iant@nat/google/x-yxsnqbwsslhxiqge] has quit [Ping timeout: 255
seconds]
23:49 -!- itrekkie [~itrekkie@ip72-200-110-29.tc.ph.cox.net] has quit [Quit:
itrekkie]
23:49 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has quit [Quit:
Lost terminal]
--- Log closed Thu Sep 30 00:00:08 2010