--- Log opened Thu Jul 08 00:00:13 2010 00:16 -!- tokuhiro_ [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has quit [Ping timeout: 252 seconds] 00:32 -!- tokuhiro_ [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has joined #go-nuts 00:37 -!- kanru [~kanru@118-168-233-117.dynamic.hinet.net] has quit [Ping timeout: 276 seconds] 00:39 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit [Read error: Connection reset by peer] 00:40 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined #go-nuts 00:48 -!- tav [~tav@2001:0:53aa:64c:0:3ffb:abf2:d6bb] has joined #go-nuts 00:48 -!- mikespook [~mikespook@219.137.255.97] has joined #go-nuts 00:57 < chaos95> brb 01:05 -!- duncan_ [~KinOfCain@rrcs-64-183-61-2.west.biz.rr.com] has joined #go-nuts 01:07 -!- tokuhiro_ [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has quit [Ping timeout: 248 seconds] 01:09 -!- KinOfCain [~KinOfCain@rrcs-64-183-61-2.west.biz.rr.com] has quit [Ping timeout: 240 seconds] 01:10 -!- duncan_ [~KinOfCain@rrcs-64-183-61-2.west.biz.rr.com] has quit [Ping timeout: 276 seconds] 01:12 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has quit [Remote host closed the connection] 01:14 -!- KinOfCain [~KinOfCain@cpe-76-170-26-1.socal.res.rr.com] has joined #go-nuts 01:15 -!- prip_ [~foo@host235-24-dynamic.43-79-r.retail.telecomitalia.it] has quit [Read error: Operation timed out] 01:15 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 01:16 -!- fhs [~fhs@pool-71-167-78-154.nycmny.east.verizon.net] has quit [Ping timeout: 276 seconds] 01:20 -!- tokuhiro_ [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has joined #go-nuts 01:21 -!- prip_ [~foo@host235-24-dynamic.43-79-r.retail.telecomitalia.it] has joined #go-nuts 01:29 -!- tokuhiro_ [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has quit [Ping timeout: 276 seconds] 01:35 -!- bmizerany [~bmizerany@adsl-68-127-172-12.dsl.pltn13.pacbell.net] has joined #go-nuts 01:41 -!- tokuhiro_ [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has joined #go-nuts 02:08 -!- Elems [~Jake@c-98-215-113-215.hsd1.il.comcast.net] has quit [Quit: Leaving.] 02:10 -!- tav_ [~tav@84.13.41.68] has joined #go-nuts 02:11 -!- tav [~tav@2001:0:53aa:64c:0:3ffb:abf2:d6bb] has quit [Read error: Connection reset by peer] 02:11 -!- mat_ [~mat@mx3.absolight.net] has quit [Read error: Connection reset by peer] 02:18 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 02:23 -!- mat_ [~mat@mx3.absolight.net] has quit [Ping timeout: 248 seconds] 02:26 -!- KinOfCain [~KinOfCain@cpe-76-170-26-1.socal.res.rr.com] has quit [Remote host closed the connection] 02:30 -!- carrus85 [~carrus85@216.83.145.38] has joined #go-nuts 02:33 -!- bmizeran_ [~bmizerany@adsl-68-127-172-12.dsl.pltn13.pacbell.net] has joined #go-nuts 02:35 -!- bmizerany [~bmizerany@adsl-68-127-172-12.dsl.pltn13.pacbell.net] has quit [Ping timeout: 240 seconds] 02:56 < plexdev> http://is.gd/djsiG by [Andrew Gerrand] in go/ -- A+C: Markus Duft 02:59 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 260 seconds] 03:00 -!- adu [~ajr@pool-96-255-9-193.washdc.fios.verizon.net] has joined #go-nuts 03:00 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts 03:08 -!- bmizerany [~bmizerany@adsl-68-127-172-12.dsl.pltn13.pacbell.net] has joined #go-nuts 03:11 -!- bmizeran_ [~bmizerany@adsl-68-127-172-12.dsl.pltn13.pacbell.net] has quit [Ping timeout: 260 seconds] 03:15 -!- bmizeran_ [~bmizerany@111.sub-75-208-29.myvzw.com] has joined #go-nuts 03:17 -!- bmizerany [~bmizerany@adsl-68-127-172-12.dsl.pltn13.pacbell.net] has quit [Ping timeout: 265 seconds] 03:18 -!- jmhodges [~jmhodges@70-36-146-253.dsl.dynamic.sonic.net] has joined #go-nuts 03:20 < jmhodges> hey, is there a splay operator in go? I can't seem to find a good way to flatten a bunch of args into another call without dividing them up explicitly. 03:21 < skelterjohn> what does splay do, exactly? 03:32 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 03:37 -!- mat_ [~mat@mx3.absolight.net] has quit [Ping timeout: 248 seconds] 03:38 < Eko> If by that you mean printf(*["%s\n", "boo"]), then of course not 03:38 < Eko> Go is a compiled language 03:39 < Eko> that might be allowable for an array, but nobody uses arrays, everyone uses structs 03:39 < Eko> slices* lol 03:49 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 03:54 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit [Ping timeout: 245 seconds] 03:54 -!- mat_ [~mat@mx3.absolight.net] has quit [Ping timeout: 248 seconds] 04:02 -!- ericvh [~ericvh@2002:467b:802c:0:223:6cff:fe93:c616] has quit [Quit: ericvh] 04:02 -!- adu [~ajr@pool-96-255-9-193.washdc.fios.verizon.net] has quit [Quit: adu] 04:03 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 04:07 -!- rogue780_ [~rogue780@c-68-34-234-213.hsd1.md.comcast.net] has quit [Read error: Connection reset by peer] 04:09 -!- mat_ [~mat@mx3.absolight.net] has quit [Ping timeout: 248 seconds] 04:09 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 04:11 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 252 seconds] 04:13 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 04:14 -!- mat_ [~mat@mx3.absolight.net] has quit [Ping timeout: 248 seconds] 04:15 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 04:21 -!- mat_ [~mat@mx3.absolight.net] has quit [Ping timeout: 248 seconds] 04:21 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 04:27 -!- mat_ [~mat@mx3.absolight.net] has quit [Ping timeout: 248 seconds] 04:27 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 04:31 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has quit [Excess Flood] 04:31 -!- Altercato [~Altercati@ogygia.ethanschoonover.com] has joined #go-nuts 04:32 -!- mat_ [~mat@mx3.absolight.net] has quit [Ping timeout: 248 seconds] 04:36 -!- i___ [~none@189.115.7.168] has joined #go-nuts 04:36 -!- i___ [~none@189.115.7.168] has quit [Client Quit] 04:36 -!- mikespook [~mikespook@219.137.255.97] has quit [Quit: Leaving.] 04:39 -!- mikespook [~mikespook@219.137.255.97] has joined #go-nuts 04:42 -!- carrus85 [~carrus85@216.83.145.38] has quit [Quit: Leaving] 04:47 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 264 seconds] 04:48 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 04:49 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 04:50 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 04:51 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit: This computer has gone to sleep] 04:51 -!- jmhodges [~jmhodges@70-36-146-253.dsl.dynamic.sonic.net] has left #go-nuts [] 04:53 -!- mat_ [~mat@mx3.absolight.net] has quit [Ping timeout: 248 seconds] 04:59 -!- scm [justme@d070045.adsl.hansenet.de] has quit [Ping timeout: 265 seconds] 05:00 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 05:01 -!- scm [justme@d071065.adsl.hansenet.de] has joined #go-nuts 05:04 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 276 seconds] 05:05 -!- mat_ [~mat@mx3.absolight.net] has quit [Ping timeout: 248 seconds] 05:06 -!- amb [amb@SEPIA.MIT.EDU] has quit [Quit: Leaving] 05:10 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 05:14 -!- mat_ [~mat@mx3.absolight.net] has quit [Ping timeout: 248 seconds] 05:35 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 05:40 -!- Rennex [rennex@giraf.fi] has joined #go-nuts 05:40 -!- mat_ [~mat@mx3.absolight.net] has quit [Read error: Connection reset by peer] 05:41 -!- bmizeran_ [~bmizerany@111.sub-75-208-29.myvzw.com] has quit [Remote host closed the connection] 05:41 -!- Namegduf [~namegduf@eu.beshir.org] has quit [Ping timeout: 240 seconds] 05:41 -!- Namegduf [~namegduf@eu.beshir.org] has joined #go-nuts 05:49 -!- yebyen [~yebyen@martyfunkhouser.csh.rit.edu] has quit [Ping timeout: 240 seconds] 05:53 -!- mat_ [~mat@mx3.absolight.net] has joined #go-nuts 05:58 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has joined #go-nuts 06:04 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 06:09 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has joined #go-nuts 06:09 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has quit [Remote host closed the connection] 06:09 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has joined #go-nuts 06:10 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has quit [Remote host closed the connection] 06:10 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has joined #go-nuts 06:11 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has quit [Remote host closed the connection] 06:12 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has joined #go-nuts 06:13 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has quit [Remote host closed the connection] 06:13 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has joined #go-nuts 06:14 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has quit [Remote host closed the connection] 06:14 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has joined #go-nuts 06:15 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has quit [Remote host closed the connection] 06:15 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has joined #go-nuts 06:16 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has quit [Remote host closed the connection] 06:16 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has joined #go-nuts 06:17 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has quit [Remote host closed the connection] 06:17 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has joined #go-nuts 06:19 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has quit [Remote host closed the connection] 06:19 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has joined #go-nuts 06:20 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has quit [Remote host closed the connection] 06:20 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has joined #go-nuts 06:21 -!- mertimor [~mertimor@2001:638:501:246:fa1e:dfff:fef2:97c0] has quit [Client Quit] 06:22 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 06:23 -!- ivan`` [~ivan@li14-39.members.linode.com] has joined #go-nuts 06:23 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has quit [Read error: Connection reset by peer] 06:28 -!- waterwalker [~tar@dsl-hkibrasgw3-fe75fb00-7.dhcp.inet.fi] has joined #go-nuts 06:34 -!- halfie_ [~lulu@v-115-10.vpn.dhcp.ubc.ca] has joined #go-nuts 06:34 -!- lulu [~lulu@v-115-10.vpn.dhcp.ubc.ca] has quit [Read error: Connection reset by peer] 06:34 -!- Xurix [~Luixsia@AToulouse-254-1-26-150.w81-250.abo.wanadoo.fr] has quit [Ping timeout: 265 seconds] 06:44 -!- Project_2501 [~Marvin@82.84.75.14] has joined #go-nuts 07:00 < plexdev> http://is.gd/djDX4 by [Peter Mundy] in go/src/pkg/io/ -- io: fix SectionReader Seek to seek backwards 07:07 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 07:07 * nsf have bought a new motherboard 07:07 < nsf> finally :) 07:07 < nsf> I'm here again 07:13 -!- napsy [~napsy@193.2.66.101] has joined #go-nuts 07:14 -!- tvw [~tv@212.79.9.150] has joined #go-nuts 07:19 < nsf> has* 07:20 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 07:25 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 07:25 -!- ExtraSpice [~ExtraSpic@88.118.32.225] has joined #go-nuts 07:26 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Read error: Operation timed out] 07:32 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 07:33 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts 07:41 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 07:49 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has quit [Quit: KVIrc Insomnia 4.0.0, revision: 4519, sources date: 20100519, built on: 2010-06-24 07:22:03 UTC http://www.kvirc.net/] 07:54 -!- LeNsTR [~quassel@unaffiliated/lenstr] has joined #go-nuts 07:56 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 08:01 < mduft> hmm... is there a way to influence structure packing/padding/alignment/wahtever? i want to write low-level code based on the tiny runtime, and need to use hardware defined structures with specific padding (none in most cases, i.e. a packed struct in gcc terms). 08:03 < jessta> mduft: I don't think there is, you might have to resort to arrays 08:04 < jessta> or C 08:07 -!- scoeri [~jdekoste@soft.vub.ac.be] has joined #go-nuts 08:09 -!- ikaros [~ikaros@drms-4d0141ee.pool.mediaWays.net] has joined #go-nuts 08:15 < mduft> jessta, uh, ok, so i'd need to tear out those peaces and do them in asm or c, and call those helpers from go... how could i handle this with arrays? 08:21 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 08:22 -!- mxweas [~max@c-98-225-102-170.hsd1.az.comcast.net] has joined #go-nuts 08:34 -!- LionMadeOfLions [~LionMadeO@70.114.156.242] has quit [Ping timeout: 260 seconds] 08:36 -!- LionMadeOfLions [~LionMadeO@70.114.156.242] has joined #go-nuts 08:36 < Eko> so, I have figured out why there is no syscall.Copy, because the syscall doesn't exist everywhere. I was thinking about adding my copyfile function to os.Copy, but think that that's probably not right, as it's not going to be OS dependent. So, would the next most appropriate place be io/ioutil.Copy(from,to string) os.Error? 08:53 -!- ikaros_ [~ikaros@drms-4d01479b.pool.mediaWays.net] has joined #go-nuts 08:55 -!- ikaros [~ikaros@drms-4d0141ee.pool.mediaWays.net] has quit [Ping timeout: 245 seconds] 08:59 -!- ikaros_ [~ikaros@drms-4d01479b.pool.mediaWays.net] has quit [Quit: Leave the magic to Houdini] 09:02 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 09:04 -!- ikaros [~ikaros@drms-4d014977.pool.mediaWays.net] has joined #go-nuts 09:04 -!- ikaros [~ikaros@drms-4d014977.pool.mediaWays.net] has quit [Read error: Connection reset by peer] 09:05 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 265 seconds] 09:11 -!- ikaros [~ikaros@drms-4d014a1e.pool.mediaWays.net] has joined #go-nuts 09:17 -!- ikaros [~ikaros@drms-4d014a1e.pool.mediaWays.net] has quit [Quit: Leave the magic to Houdini] 09:17 -!- Surma [~bzfsurma@gooseberry.zib.de] has joined #go-nuts 09:20 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 09:22 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 09:24 -!- ikaros [~ikaros@drms-4d014ccb.pool.mediaWays.net] has joined #go-nuts 09:24 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 09:27 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Client Quit] 09:32 -!- mikespook [~mikespook@219.137.255.97] has quit [Quit: Leaving.] 09:36 -!- GeoBSD [~geobsd@lns-bzn-36-82-251-38-186.adsl.proxad.net] has joined #go-nuts 09:41 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 09:45 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts 09:50 -!- rhelmer [~rhelmer@209.52.84.50] has joined #go-nuts 09:54 < nf> Eko: that makes sense to me 09:54 -!- bortzmeyer [~stephane@2001:4350:0:1:21c:23ff:fe00:6b7f] has joined #go-nuts 09:54 < nf> CopyFile maybe (to mirror ReadFile/WriteFile) 09:56 < nf> mduft: maybe you could add calls to the tiny runtime to allocnstuff at specific places 09:56 < nf> i think youll want to resort to c 09:56 < nf> but you might want tot think about a sane go api so onky what needs to be c, is 09:56 < nf> only 09:57 < nf> (apologies i am on a bus using an ipad ;) 09:58 < mduft> nf, lol. ok, thanks 10:00 -!- bortzmeyer [~stephane@2001:4350:0:1:21c:23ff:fe00:6b7f] has quit [Remote host closed the connection] 10:04 -!- justanewbie [~user@222.35.91.178] has joined #go-nuts 10:04 -!- LeNsTR [~quassel@unaffiliated/lenstr] has quit [Remote host closed the connection] 10:12 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 10:15 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 10:27 -!- abiosoft [~abiosoft@2002:299b:1315:d:219:7eff:fe8f:1f59] has joined #go-nuts 10:31 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 245 seconds] 10:32 -!- tux21b [~christoph@90.146.60.30] has quit [Ping timeout: 240 seconds] 10:34 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts 10:36 -!- temoto [~temoto@81.19.90.173] has joined #go-nuts 10:41 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has joined #go-nuts 10:42 < temoto> Hello. Do two net.Conn.Read in separate goroutines block each other? 10:44 -!- bortzmeyer [~stephane@2001:4350:0:1:21c:23ff:fe00:6b7f] has joined #go-nuts 10:45 -!- waterwal1er [~tar@dsl-hkibrasgw3-fe75fb00-7.dhcp.inet.fi] has joined #go-nuts 10:48 < jessta> temoto: yeah, one will have to wait for the other 10:48 < jessta> it's usually a good idea to have one goroutine in charge of a connection 10:49 < jessta> and the others can communicate with it to get it to do things 10:49 < temoto> jessta, no doubt. What about two separate connections? 10:49 < nf> temoto: reads on separate connections will happen in parallel 10:50 < temoto> nf, just to confirm, go runtime uses async IO, like Erlang and Haskell and exposes it as synchronous API to user? 10:51 < taruti> what do you mean with "async" ? 10:51 < taruti> nonblocking 10:51 < temoto> Yes. 10:51 < Namegduf> Yes, Go does. 10:51 < taruti> yes 10:51 < temoto> That's a hell of awesome news. Thank you very much. 10:52 < taruti> the "real" async-io api is a separate thing that does not work for sockets and is quite horrible 10:52 < taruti> so runtimes don't use that usually 10:54 < temoto> taruti, you mean the one that "may happen sync way on all used filesystems, if kernel decides so and no way to predict that" on linux, but working on freebsd? 10:57 < taruti> http://opengroup.org/onlinepubs/009695399/basedefs/aio.h.html that one 10:59 < temoto> taruti, yeah i meant it too. 11:07 -!- temoto [~temoto@81.19.90.173] has left #go-nuts ["Leaving"] 11:08 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 245 seconds] 11:13 -!- waterwal1er [~tar@dsl-hkibrasgw3-fe75fb00-7.dhcp.inet.fi] has quit [Quit: leaving] 11:15 < mduft> nf, do you think that structure packing would make sense in go? after all, go itself is rather low-level, and i think it would make sense in binary file handling, and possibly other things (passing packed binary data over the network,...?) 11:15 < mduft> (or, better worded: settings structure field alignment instead of packing) 11:16 < taruti> mduft: not really. 11:16 < mduft> taruti, why not? 11:16 < taruti> one needs to tinker with endianess in any case 11:16 < mduft> you mean in netowrking? 11:16 < taruti> a more go-like solution is to pass a pointer to a structure and use reflection to marshal it 11:16 < mduft> mhm 11:17 < mduft> i see 11:17 < mduft> so better marshal it to a byte array before doing machine related stuff with it... 11:17 < taruti> what kind of stuff are you doing? 11:18 < mduft> operating system kernel in go (hobby level, not production of course ;)) 11:18 < mduft> at least i'm thinking about it 11:18 < taruti> why not use pointers? 11:18 < mduft> pointers to what...? 11:18 < mduft> i want to be able to manipulate/read/write the structs 11:19 < mduft> in a clean way. and the structs are defined by the hardware, and most probably packed... 11:19 < mduft> so i can't simply take a go struct and map it 1:1 11:19 < mduft> and if i used pointers... what would i have except a byte pile...? 11:20 < mduft> i'll have to marshall somehow anyway 11:20 < mduft> (i guess...) 11:20 < taruti> well if it is from hardware you will probably need to copy it over regardless 11:20 < mduft> yep 11:23 < nf> mduft: i'm not sure, i'm not familiar enough with the problem domain 11:24 < nf> but i don't think the language inherently forbids doing what you need to do. it sounds like, for an operating system kernel, some functions could crafted to give you enough low-level control 11:24 -!- abiosoft [~abiosoft@2002:299b:1315:d:219:7eff:fe8f:1f59] has quit [Ping timeout: 276 seconds] 11:24 < nf> there's no present way of mapping a Go struct to a specific region of memory, afaik 11:25 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts 11:28 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts 11:29 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 11:30 < justanewbie> how can i learn go language more besides http://golang.org/doc? 11:32 -!- lmoura [~lmoura@187.78.130.104] has quit [Ping timeout: 245 seconds] 11:34 < jessta> justanewbie: yeah, that's pretty much it 11:35 < jessta> http://golang.org/doc/go_learning.html 11:35 -!- rv2733 [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts 11:35 < jessta> the blog posts are quite helpful in fully understanding some of the concepts 11:36 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts 11:36 < justanewbie> jessta: that's what i want,tk u~ 11:38 < nf> justanewbie: check out /doc/go_tutorial.html and /doc/codelab/wiki/ 11:38 -!- abiosoft [~abiosoft@41.155.94.21] has joined #go-nuts 11:42 < justanewbie> nf: Okay 11:44 -!- Xurix [~Luixsia@AToulouse-254-1-16-170.w83-203.abo.wanadoo.fr] has joined #go-nuts 11:45 -!- LeNsTR [~quassel@unaffiliated/lenstr] has joined #go-nuts 11:50 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 11:51 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 11:51 -!- LeNsTR [~quassel@unaffiliated/lenstr] has quit [Read error: Connection reset by peer] 11:54 -!- justanewbie [~user@222.35.91.178] has quit [Read error: Connection reset by peer] 12:02 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 12:04 -!- mxweas [~max@c-98-225-102-170.hsd1.az.comcast.net] has quit [Quit: mxweas] 12:05 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has quit [Quit: KVIrc Insomnia 4.0.0, revision: 4519, sources date: 20100519, built on: 2010-06-24 07:22:03 UTC http://www.kvirc.net/] 12:12 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 260 seconds] 12:19 -!- abiosoft [~abiosoft@41.155.94.21] has quit [Ping timeout: 240 seconds] 12:27 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 12:33 -!- photron [~photron@port-92-201-107-163.dynamic.qsc.de] has joined #go-nuts 12:36 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Ping timeout: 240 seconds] 12:38 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts 12:39 -!- abiosoft [~abiosoft@2002:299b:316e:d:219:7eff:fe8f:1f59] has joined #go-nuts 12:44 -!- ExtraSpice [~ExtraSpic@88.118.32.225] has quit [Quit: Leaving] 12:47 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has joined #go-nuts 12:48 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat 0.3.2] 12:56 -!- lmoura [~lmoura@187.78.130.104] has joined #go-nuts 12:58 -!- lhaymehr [~me@188.129.58.188] has joined #go-nuts 13:02 -!- lmoura [~lmoura@187.78.130.104] has quit [Ping timeout: 265 seconds] 13:03 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 240 seconds] 13:09 -!- djanderson [~doug@12.182.140.4] has joined #go-nuts 13:16 -!- kanru [~kanru@118-168-233-117.dynamic.hinet.net] has joined #go-nuts 13:18 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 13:27 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 13:31 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Client Quit] 13:35 -!- ExtraSpice [~ExtraSpic@88.118.32.225] has joined #go-nuts 13:36 -!- wrtp [~rog@92.40.2.113.sub.mbb.three.co.uk] has joined #go-nuts 13:50 -!- pl3 [~noam@77.126.167.205] has joined #go-nuts 13:54 < mduft> nf, the tiny runtime does this: 13:54 < mduft> var crt *[25 * 80]uint16 13:54 < mduft> var mem uintptr = 0xb8000 13:54 < mduft> crt = (*[25 * 80]uint16)(unsafe.Pointer(mem)) 13:55 < mduft> so the required cruft to get an arbitrary pointer to where i want it is there. 13:55 < mduft> now "all" i need is to tell go that i don't have an array at that position, but a struct 13:55 < mduft> *and* tell the struct that it's fields have a specific alignment, and thats the only catch i can see so far... 13:58 < Namegduf> mduft: You could, instead, create a block of memory of a given size 13:58 < mduft> hm? 13:58 < Namegduf> And cast pointers to various parts of it to pointers to the subtypes of the struct. 13:58 < mduft> hah 13:58 < mduft> yeah, right 13:58 < mduft> that'd indeed be kind of a workaround ;) 13:59 < mduft> not very clean though... 13:59 < Namegduf> You could create a package wrapping it, if you needed to. 13:59 < Namegduf> And then only that package would need to import unsafe. 14:00 < mduft> mhm, right. sounds not too bad. at least there *is* a solution :) thanks for pointing it out! 14:01 < mduft> also i could do it rather generic with reflection i guess... 14:02 < Namegduf> Might be overkill. 14:03 < Namegduf> type PackedThing [32]byte 14:04 < Namegduf> func (*PackedThing) SetSomething(int something) { ...cast packed thing pointer to uint, increment appropriately, cast to pointer to int, set value... } 14:04 < mduft> might be overkill, yes, but OTOH i will face the same problem dozens of times, since there are quite a few such structures... 14:05 < Namegduf> Ah. 14:05 < mduft> i'd have to go and implement this for every single structure type 14:05 < Namegduf> That might be reason to generify, yeah. 14:05 < mduft> any insights on how much reflection "costs"? 14:05 < mduft> should be rather fast, right? 14:06 < Namegduf> I can't help you there. 14:07 -!- tsykoduk [~tsykoduk@2001:470:1f04:671:20d:93ff:fe77:1dc4] has quit [Ping timeout: 248 seconds] 14:08 < mduft> ok, thanks anyway, you helped a lot :) 14:09 -!- lmoura [~lmoura@187.78.130.104] has joined #go-nuts 14:11 -!- tsykoduk [~tsykoduk@2001:470:1f04:671:20d:93ff:fe77:1dc4] has joined #go-nuts 14:12 -!- Surma [~bzfsurma@gooseberry.zib.de] has quit [Quit: Leaving.] 14:13 -!- tokuhiro_ [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has quit [Ping timeout: 248 seconds] 14:18 -!- wrtp [~rog@92.40.2.113.sub.mbb.three.co.uk] has quit [Ping timeout: 260 seconds] 14:19 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Disconnected by services] 14:19 -!- sladegen [~nemo@dynamic-62-87-247-98.ssp.dialog.net.pl] has joined #go-nuts 14:19 -!- sladegen [~nemo@dynamic-62-87-247-98.ssp.dialog.net.pl] has quit [Changing host] 14:19 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts 14:28 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 14:29 -!- tokuhiro_ [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has joined #go-nuts 14:33 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 14:45 -!- napsy [~napsy@193.2.66.101] has quit [Quit: leaving] 14:52 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit: skelterjohn] 14:55 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 15:02 -!- abiosoft [~abiosoft@2002:299b:316e:d:219:7eff:fe8f:1f59] has quit [Ping timeout: 276 seconds] 15:09 -!- waterwalker [~tar@dsl-hkibrasgw3-fe75fb00-7.dhcp.inet.fi] has quit [Read error: Connection reset by peer] 15:13 -!- abiosoft [~abiosoft@41.155.96.39] has joined #go-nuts 15:16 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 15:16 -!- Venom_X [~pjacobs@71.21.124.111] has joined #go-nuts 15:20 -!- mbarkhau [~koloss@dslb-094-219-043-014.pools.arcor-ip.net] has joined #go-nuts 15:21 -!- rv2733 [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit: Leaving] 15:23 -!- kanru [~kanru@118-168-233-117.dynamic.hinet.net] has quit [Ping timeout: 245 seconds] 15:26 -!- TR2N [email@89-180-206-33.net.novis.pt] has left #go-nuts [] 15:32 -!- visof [~visof@unaffiliated/visof] has quit [Quit: Leaving] 15:33 -!- lmoura [~lmoura@187.78.130.104] has quit [Ping timeout: 265 seconds] 15:40 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the connection] 15:42 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts 15:43 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has joined #go-nuts 15:53 -!- rhelmer [~rhelmer@209.52.84.50] has quit [Quit: rhelmer] 15:58 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Ping timeout: 248 seconds] 16:00 -!- napsy [~luka@88.200.96.14] has joined #go-nuts 16:04 -!- niemeyer [~niemeyer@201-11-213-235.pltce701.dsl.brasiltelecom.net.br] has joined #go-nuts 16:07 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined #go-nuts 16:08 -!- lmoura [~lmoura@187.78.130.104] has joined #go-nuts 16:17 -!- lhaymehr [~me@188.129.58.188] has quit [] 16:20 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection] 16:28 -!- b00m_chef [~watr@216-21-143-134.ip.van.radiant.net] has joined #go-nuts 16:34 -!- abiosoft [~abiosoft@41.155.96.39] has quit [Ping timeout: 260 seconds] 16:45 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has joined #go-nuts 16:48 -!- waterwalker [~tar@dsl-hkibrasgw3-fe75fb00-7.dhcp.inet.fi] has joined #go-nuts 16:51 -!- pl3 [~noam@77.126.167.205] has quit [Read error: Connection reset by peer] 16:52 -!- pl3 [~noam@77.126.167.205] has joined #go-nuts 16:55 -!- tsung [~jon@112.104.53.151] has quit [Quit: leaving] 17:01 -!- napsy [~luka@88.200.96.14] has quit [Read error: Operation timed out] 17:03 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts 17:06 -!- pl3 [~noam@77.126.167.205] has quit [Read error: Connection reset by peer] 17:07 -!- tsung [~jon@112.104.53.151] has joined #go-nuts 17:12 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit: hcatlin] 17:20 -!- marsu [~marsu@114.108.202-77.rev.gaoland.net] has joined #go-nuts 17:21 -!- incluye [~inklewyay@NW-ESR1-74-215-114-218.fuse.net] has joined #go-nuts 17:26 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving] 17:30 -!- rhelmer [~rhelmer@209.52.84.51] has joined #go-nuts 17:53 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts 18:01 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has joined #go-nuts 18:07 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services] 18:08 -!- rej_b [~rejb@p54B672F6.dip.t-dialin.net] has joined #go-nuts 18:09 -!- marsu [~marsu@114.108.202-77.rev.gaoland.net] has quit [Read error: Operation timed out] 18:10 -!- rej_b [~rejb@p54B672F6.dip.t-dialin.net] has quit [Client Quit] 18:11 -!- temoto [~temoto@81.19.90.173] has joined #go-nuts 18:12 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Ping timeout: 265 seconds] 18:12 < temoto> I'm having wierd jumping nil dereference error. I comment out the line in stacktrace, it reports another line. 18:12 < temoto> http://paste.ly/31w this is source 18:13 < temoto> http://paste.ly/31x this is trace 18:15 -!- rhelmer [~rhelmer@209.52.84.51] has quit [Quit: rhelmer] 18:20 -!- photron_ [~photron@port-92-201-107-163.dynamic.qsc.de] has joined #go-nuts 18:20 -!- photron [~photron@port-92-201-107-163.dynamic.qsc.de] has quit [Ping timeout: 260 seconds] 18:21 < jessta> temoto: I think your problem is on line 93 18:21 < KirkMcDonald> I think it is on line 83. 18:21 < temoto> jessta, sorry, i don't see what's wrong there? 18:21 < KirkMcDonald> He is assigning to an attribute of a nil pointer. 18:22 < jessta> good point 18:23 < temoto> KirkMcDonald, you're right, thanks a bunch. I lost common to initialize variables. :| 18:23 < KirkMcDonald> Although the traceback is pointing to line 80. 18:23 < temoto> Yeah traceback was misleading every time. 18:24 < KirkMcDonald> return &FetchResult{success: true, // etc, etc 18:29 < temoto> KirkMcDonald, thanks, i didn't know about that syntax. I used result = new(FetchResult). 18:29 -!- rhelmer [~rhelmer@209.52.84.51] has joined #go-nuts 18:31 < temoto> How to print Header (map[string]string) nicely? 18:32 < temoto> w/o for/range boilerplate 18:33 < KirkMcDonald> What does the %v format specifier do? 18:34 < KirkMcDonald> Or %#v, for that matter. 18:35 < temoto> KirkMcDonald, Response headers: map[string] string{"Connection":"keep-alive", "Content-Type":"text/html; charset=utf-8", "Server":"nginx/0.8.41", "Content-Length":"169", "Date":"Thu, 08 Jul 2010 18:39:32 GMT"} 18:36 < KirkMcDonald> Woo. 18:36 < temoto> KirkMcDonald, is that the best? 18:37 < KirkMcDonald> I doubt you're going to get better without doing it yourself. 18:38 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts 18:38 -!- rhelmer [~rhelmer@209.52.84.51] has quit [Quit: rhelmer] 18:39 < temoto> KirkMcDonald, alright this is better than pointer address, thank you. 18:43 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts 18:43 -!- sully [~sully@bloomy.moroso.emarhavil.com] has joined #go-nuts 18:43 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts 18:44 -!- gr0gmint [~joebiden@87.60.23.38] has joined #go-nuts 18:47 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts 18:52 -!- geocalc [~geobsd@lns-bzn-38-82-253-122-149.adsl.proxad.net] has joined #go-nuts 18:53 -!- esiroker [~esiroker@adsl-99-49-227-57.dsl.pltn13.sbcglobal.net] has joined #go-nuts 18:54 -!- GeoBSD [~geobsd@lns-bzn-36-82-251-38-186.adsl.proxad.net] has quit [Ping timeout: 248 seconds] 18:55 < temoto> KirkMcDonald, i found a better way: json.MarshalIndent. 19:02 -!- bortzmeyer [~stephane@2001:4350:0:1:21c:23ff:fe00:6b7f] has quit [Quit: Leaving.] 19:07 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined #go-nuts 19:09 -!- tvw [~tv@e176005190.adsl.alicedsl.de] has joined #go-nuts 19:14 -!- franksalim [~frank@adsl-75-61-93-123.dsl.pltn13.sbcglobal.net] has joined #go-nuts 19:23 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has joined #go-nuts 19:24 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined #go-nuts 19:28 -!- b00m_chef [~watr@216-21-143-134.ip.van.radiant.net] has quit [Ping timeout: 240 seconds] 19:29 -!- halfie_ [~lulu@v-115-10.vpn.dhcp.ubc.ca] has quit [Read error: Connection reset by peer] 19:30 -!- halfie_ [~lulu@v-115-10.vpn.dhcp.ubc.ca] has joined #go-nuts 19:30 -!- nf [~nf@124-168-130-8.dyn.iinet.net.au] has quit [Ping timeout: 240 seconds] 19:30 -!- Altercato [~Altercati@ogygia.ethanschoonover.com] has quit [Remote host closed the connection] 19:31 -!- nf [~nf@124-168-144-227.dyn.iinet.net.au] has joined #go-nuts 19:32 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has joined #go-nuts 19:32 -!- temoto [~temoto@81.19.90.173] has left #go-nuts ["Leaving"] 19:32 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit: skelterjohn] 19:34 -!- marsu [~marsu@114.108.202-77.rev.gaoland.net] has joined #go-nuts 19:36 -!- Elems [~Jake@c-98-215-113-215.hsd1.il.comcast.net] has joined #go-nuts 19:41 -!- ikaros [~ikaros@drms-4d014ccb.pool.mediaWays.net] has quit [Quit: Leave the magic to Houdini] 19:42 -!- kanru [~kanru@118-168-233-117.dynamic.hinet.net] has joined #go-nuts 19:46 -!- kanru [~kanru@118-168-233-117.dynamic.hinet.net] has quit [Read error: Operation timed out] 19:52 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving] 19:53 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has quit [Quit: KVIrc Insomnia 4.0.0, revision: 4519, sources date: 20100519, built on: 2010-06-24 07:22:03 UTC http://www.kvirc.net/] 19:57 -!- qIIp [~qIIp@134.29.57.71] has joined #go-nuts 20:07 -!- Project_2501 [~Marvin@82.84.75.14] has quit [Quit: E se abbasso questa leva che succ...] 20:08 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 20:11 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de] has quit [Quit: Shyde] 20:18 -!- gr0gmint [~joebiden@87.60.23.38] has quit [Quit: leaving] 20:28 -!- unhygienix [~unhygieni@host86-177-113-38.range86-177.btcentralplus.com] has joined #go-nuts 20:32 -!- b00m_chef [~watr@216-21-143-134.ip.van.radiant.net] has joined #go-nuts 20:39 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed the connection] 20:42 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts 20:42 -!- surma [~surma@95-88-90-24-dynip.superkabel.de] has joined #go-nuts 20:58 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has joined #go-nuts 21:02 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined #go-nuts 21:03 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org] 21:04 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit [Ping timeout: 240 seconds] 21:08 -!- geocalc [~geobsd@lns-bzn-38-82-253-122-149.adsl.proxad.net] has quit [Quit: Lost terminal] 21:12 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts 21:20 -!- federico [~federico@190.51.69.116] has joined #go-nuts 21:20 -!- willdye [~willdye@162.40.127.30] has left #go-nuts [] 21:20 -!- federico [~federico@190.51.69.116] has quit [Client Quit] 21:22 -!- jchico [~jchico@cpe-98-14-12-209.nyc.res.rr.com] has joined #go-nuts 21:24 -!- qIIp [~qIIp@134.29.57.71] has quit [Quit: Lost terminal] 21:29 -!- ender2070 [~ender2070@adsl-216-246-226-168.ext.distributel.net] has joined #go-nuts 21:38 -!- ikaros [~ikaros@drms-4d014ccb.pool.mediaWays.net] has joined #go-nuts 21:44 < jchico> umm why do I get errors on this simple example? 21:44 < jchico> http://pastebin.com/W4tz41r2 21:44 < jchico> I know it has something to do with the new way semicolons are parsed? 21:44 < jchico> I tried putting some semicolons here and there... no luck though :/ 21:45 -!- Ginto8_ [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined #go-nuts 21:46 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit: Verlassend] 21:51 < MizardX> jchico: 'else' need to be on the same line as '}' 21:51 -!- esiroker [~esiroker@adsl-99-49-227-57.dsl.pltn13.sbcglobal.net] has quit [Ping timeout: 260 seconds] 21:52 < MizardX> } else { 21:52 -!- artefon [~thiago@189.107.220.164] has joined #go-nuts 21:54 < jchico> MizardX: Thanks! Funny thing is that I usually write my if-else like that but today I decided to be different... 21:58 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the connection] 22:02 -!- kingdon [~kingdon@erp.rit.edu] has joined #go-nuts 22:12 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2] 22:12 -!- prip_ [~foo@host235-24-dynamic.43-79-r.retail.telecomitalia.it] has quit [Ping timeout: 276 seconds] 22:16 -!- ikaros [~ikaros@drms-4d014ccb.pool.mediaWays.net] has quit [Quit: Leave the magic to Houdini] 22:17 < incluye> Is http://golang.org/doc/install.html supposed to build 6g too? 22:17 < incluye> *the information in 22:18 < KirkMcDonald> That's what it says. 22:18 < incluye> Where? 22:18 < incluye> Into GOROOT? 22:18 < KirkMcDonald> Into $GOBIN. 22:19 < incluye> oh. 22:19 < incluye> What if that's not defined? 22:19 < incluye> Oh. 22:19 < incluye> $HOME/bin 22:21 < KirkMcDonald> You really should define all four variables. 22:21 < incluye> yeah 22:22 -!- surma [~surma@95-88-90-24-dynip.superkabel.de] has quit [Quit: Leaving.] 22:25 -!- prip_ [~foo@host163-125-dynamic.36-79-r.retail.telecomitalia.it] has joined #go-nuts 22:30 -!- Kashia [~Kashia@port-92-200-57-79.dynamic.qsc.de] has joined #go-nuts 22:33 -!- ExtraSpice [~ExtraSpic@88.118.32.225] has quit [Ping timeout: 240 seconds] 22:33 < MizardX> Syntax error in http://blog.golang.org/2010/07/gos-declaration-syntax.html . "sum := func(a, b int) { return a+b } (3, 4)" has a missing return type 22:36 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the connection] 22:39 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined #go-nuts 22:51 -!- photron_ [~photron@port-92-201-107-163.dynamic.qsc.de] has quit [Ping timeout: 265 seconds] 22:59 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts 23:08 -!- Venom_X [~pjacobs@71.21.124.111] has quit [Quit: Venom_X] 23:11 -!- opafan48 [~opafan48@213.144.157.75] has joined #go-nuts 23:12 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Read error: Connection reset by peer] 23:12 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts 23:14 -!- marsu [~marsu@114.108.202-77.rev.gaoland.net] has quit [Quit: Leaving] 23:18 < nsf> um.. is there some sort of utility that generates code for calling RPCs in Go, I mean I'm getting bored writing: server RPC function impl, client RPC function impl, the actual function (on the server side), client function that wraps RPC client function 23:18 < nsf> I think I'll write a tool for myself to generate a code like that :) 23:18 < taruti> why not use the rpc-package? 23:19 < nsf> I am using it 23:19 -!- thomas_b [~thomasb@cm-84.215.37.40.getinternet.no] has joined #go-nuts 23:19 < nsf> but it can't just register an arbitary function for me, it wraps everything in func(args *ArgsType, reply *ReplyType) os.Error 23:20 < nsf> arbitrary* 23:20 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Read error: Connection reset by peer] 23:21 < nsf> and my idea is: take a function signature, generate a wrapper for it 23:21 < KirkMcDonald> The reflection interface would certainly make this possible. 23:22 < nsf> I know that 23:22 < nsf> Well, I'm sure that kind of packing can be done at run time, but since I don't want to change rpc package 23:22 < nsf> I can just use a parser and generate a code for myself 23:23 -!- tvw [~tv@e176005190.adsl.alicedsl.de] has quit [Remote host closed the connection] 23:23 < nsf> or maybe there is an easier approach 23:25 -!- getisboy [~Family@pool-173-76-228-217.bstnma.fios.verizon.net] has joined #go-nuts 23:25 < nsf> ugh.. I'll just make a generator, let's see how long will it take 23:27 -!- kanru [~kanru@118-168-233-117.dynamic.hinet.net] has joined #go-nuts 23:31 -!- artefon [~thiago@189.107.220.164] has quit [Ping timeout: 260 seconds] 23:34 -!- djanderson [~doug@12.182.140.4] has quit [Quit: djanderson] 23:35 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has quit [Quit: Morten. Desu~] 23:37 -!- b00m_chef [~watr@216-21-143-134.ip.van.radiant.net] has quit [Ping timeout: 245 seconds] 23:39 -!- mbarkhau [~koloss@dslb-094-219-043-014.pools.arcor-ip.net] has quit [Quit: Leaving.] 23:55 -!- skelterjohn [~jasmuth@c-76-116-181-134.hsd1.nj.comcast.net] has quit [Quit: skelterjohn] 23:56 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit [Quit: carllerche] --- Log closed Fri Jul 09 00:00:12 2010