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

--- Log opened Tue Jul 20 00:00:05 2010
00:00 -!- Eridius_ [~kevin@unaffiliated/eridius] has joined #go-nuts
00:00 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Disconnected by
services]
00:04 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
00:05 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 260 seconds]
00:06 -!- Damn3d [damn3d@unaffiliated/morpheus/x-0931003] has quit [Remote host
closed the connection]
00:08 -!- trustin [~trustin@redhat/jboss/trustin] has joined #go-nuts
00:12 < KirkMcDonald> Hah, Go is up to number 21 on the TIOBE index.
00:12 < KirkMcDonald> Overtaken D, too.
00:14 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
00:18 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit [Read
error: Connection reset by peer]
00:19 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined
#go-nuts
00:23 -!- kanru [~kanru@118-168-232-227.dynamic.hinet.net] has joined #go-nuts
00:27 -!- ender2070 [~ender2070@bas22-toronto12-2925103372.dsl.bell.ca] has quit
[Remote host closed the connection]
00:29 -!- ukai [~ukai@220.109.219.244] has joined #go-nuts
00:34 -!- bmizeran_ [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined
#go-nuts
00:35 -!- kanru [~kanru@118-168-232-227.dynamic.hinet.net] has quit [Ping timeout:
276 seconds]
00:36 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit
[Ping timeout: 258 seconds]
00:41 < nf> it was #1 last year :)
00:53 -!- HeckleJeckle [~hangeles@ool-44c55f66.dyn.optonline.net] has joined
#go-nuts
00:53 -!- HeckleJeckle [~hangeles@ool-44c55f66.dyn.optonline.net] has left
#go-nuts []
00:55 -!- mikespook [~mikespook@219.137.254.145] has joined #go-nuts
00:56 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
01:03 -!- ExtraSpice [~ExtraSpic@88.118.32.225] has quit [Ping timeout: 240
seconds]
01:12 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
01:28 -!- Bombe [~droden@freenet/developer/Bombe] has quit [Excess Flood]
01:28 -!- Bombe [~droden@weltgehirnmaschine.de] has joined #go-nuts
01:31 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 245 seconds]
01:33 -!- gnuvince [~vince@64.235.207.135] has joined #go-nuts
01:33 -!- bmizeran_ [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit
[Read error: Connection reset by peer]
01:33 -!- bmizerany [~bmizerany@183.sub-75-210-58.myvzw.com] has joined #go-nuts
01:36 -!- sjbrown_ [~sjbrown@S0106687f742b6df3.fm.shawcable.net] has joined
#go-nuts
02:01 -!- artefon [~thiago@189.107.241.45] has quit [Quit: bye]
02:43 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
02:44 -!- sauerbraten_ [~sauerbrat@p508CF427.dip.t-dialin.net] has joined #go-nuts
02:48 -!- urandom_ [~user@p548A3FF4.dip.t-dialin.net] has quit [Remote host closed
the connection]
02:48 -!- sauerbraten [~sauerbrat@p508CF57C.dip.t-dialin.net] has quit [Ping
timeout: 265 seconds]
03:03 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Ping timeout: 245
seconds]
03:03 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
03:04 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
03:09 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Ping timeout: 276
seconds]
03:16 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
03:34 -!- Xurix [~Luixsia@AToulouse-254-1-87-198.w86-201.abo.wanadoo.fr] has
joined #go-nuts
03:37 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 260
seconds]
03:38 -!- maht [~maht__@85.189.31.174.proweb.managedbroadband.co.uk] has quit
[Ping timeout: 265 seconds]
03:41 -!- bmizerany [~bmizerany@183.sub-75-210-58.myvzw.com] has quit [Remote host
closed the connection]
03:46 -!- path[l] [~path@120.138.102.50] has quit [Quit: path[l]]
03:46 < Ginto8> ok I seem to have forgotten the correct way to declare a
function with non-named multiple returns and the spec doesn't seem to say anything
about it
03:46 < Ginto8> so is it func f() T1,T2 {}?
03:46 < Ginto8> or does it have to be func f() (T1,T2) {}?
03:46 -!- path[l] [~path@120.138.102.50] has joined #go-nuts
03:46 < jessta> func f() (T1,T2) {}
03:46 < Ginto8> ok thanks
03:49 < Ginto8> one more quick multiple return question
03:50 < Ginto8> if you have func x(y,z int) {} and func f() (int,int) {},
can you call x(f())?
03:50 < Ginto8> oh nvm
03:50 < Ginto8> yes you can, found it in the spec
03:50 < Ginto8> sorry
03:51 < jessta> oh sweet, I didn't know that
03:52 < Ginto8> this rather long paragraph under "calls":
03:52 < Ginto8> As a special case, if the return parameters of a function or
method g are equal in number and individually assignable to the parameters of
another function or method f, then the callf(g(parameters_of_g)) will
invoke f after binding the return values of g to the parameters of f in order.
The call of f must contain no parameters other than the call of g.  If f has a
final ... parameter, it is assigned the return values
03:52 -!- maht [~maht__@85-189-31-174.proweb.managedbroadband.co.uk] has joined
#go-nuts
03:53 < Ginto8> basically sayin if f and g have the same number of
parameters/return values respectively and the types match, you can call f(g())
04:09 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
04:26 -!- carllerche [~carllerch@208.87.61.203] has joined #go-nuts
04:37 -!- dark [~dark@unaffiliated/eliasamaral] has quit [Ping timeout: 265
seconds]
04:38 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts
04:38 -!- mode/#go-nuts [+v iant] by ChanServ
04:41 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
04:58 -!- dark [~dark@unaffiliated/eliasamaral] has joined #go-nuts
05:01 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has quit [Read error:
Connection reset by peer]
05:02 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts
05:02 -!- mode/#go-nuts [+v iant] by ChanServ
05:04 -!- scm [justme@d039053.adsl.hansenet.de] has quit [Ping timeout: 264
seconds]
05:05 -!- scm [justme@d071137.adsl.hansenet.de] has joined #go-nuts
05:22 -!- sauerbraten_ [~sauerbrat@p508CF427.dip.t-dialin.net] has quit [Quit: Bye
Bye]
05:22 -!- sauerbraten [~sauerbrat@p508CF427.dip.t-dialin.net] has joined #go-nuts
05:25 -!- tvw [~tv@e176006228.adsl.alicedsl.de] has joined #go-nuts
05:26 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.2]
05:30 -!- smw [~smw@pool-71-183-88-124.nycmny.fios.verizon.net] has quit [Quit:
Leaving]
05:32 -!- smw [~smw@pool-71-183-88-124.nycmny.fios.verizon.net] has joined
#go-nuts
05:33 -!- carllerche [~carllerch@208.87.61.203] has quit [Quit: carllerche]
05:38 -!- Sacho [~sacho@87-126-49-175.btc-net.bg] has quit [Remote host closed the
connection]
05:48 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has joined
#go-nuts
05:50 -!- belkiss [~belkiss@drn13-1-78-235-168-105.fbx.proxad.net] has quit
[Client Quit]
05:53 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
05:56 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Read error: Connection reset by peer]
05:56 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
05:57 -!- slpsys [~marc@unaffiliated/slpsys] has quit [Read error: Operation timed
out]
05:59 -!- gduffy [~greg@67.207.134.177] has quit [Ping timeout: 258 seconds]
06:00 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
06:01 -!- slpsys [~marc@209-20-75-46.slicehost.net] has joined #go-nuts
06:08 -!- Sacho [~sacho@213.91.244.15] has joined #go-nuts
06:09 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has quit [Ping timeout:
264 seconds]
06:22 -!- ukai [~ukai@220.109.219.244] has quit [Ping timeout: 245 seconds]
06:28 -!- ukai [~ukai@220.109.219.244] has joined #go-nuts
06:30 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 260 seconds]
06:32 -!- path[l] [~path@120.138.102.50] has quit [Quit: path[l]]
06:41 -!- zerofluid [~zerofluid@ip24-56-54-185.ph.ph.cox.net] has joined #go-nuts
06:42 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
06:42 -!- iant [~iant@62-20-124-50.customer.telia.com] has joined #go-nuts
06:42 -!- mode/#go-nuts [+v iant] by ChanServ
06:43 < zerofluid> Gint8: you were totally right about my problem a couple
days ago.  I had a stupid solution in mind.  Fixed and done.  Thanks.
06:43 -!- zerofluid [~zerofluid@ip24-56-54-185.ph.ph.cox.net] has quit [Client
Quit]
06:45 -!- Project_2501 [~Marvin@82.84.93.3] has joined #go-nuts
06:48 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts
06:56 -!- trustin [~trustin@redhat/jboss/trustin] has quit [Ping timeout: 246
seconds]
07:00 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
07:03 -!- napsy [~napsy@193.2.66.101] has joined #go-nuts
07:06 -!- tvw [~tv@e176006228.adsl.alicedsl.de] has quit [Remote host closed the
connection]
07:17 -!- Project_2501 [~Marvin@82.84.93.3] has quit [Quit: E se abbasso questa
leva che succ...]
07:23 -!- ExtraSpice [~ExtraSpic@88.118.32.225] has joined #go-nuts
07:29 -!- DavidJones [~DavidJone@dslb-084-056-073-183.pools.arcor-ip.net] has
joined #go-nuts
07:36 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has joined
#go-nuts
07:39 -!- ExtraSpice [~ExtraSpic@88.118.32.225] has quit [Quit: Leaving]
07:42 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
07:43 -!- ExtraSpice [~XtraSpice@88.118.32.225] has joined #go-nuts
07:48 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
07:51 -!- mikespook1 [~mikespook@58.61.204.78] has joined #go-nuts
07:53 -!- mikespook [~mikespook@219.137.254.145] has quit [Ping timeout: 260
seconds]
07:55 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
07:58 -!- hgbr [~sauerbrat@p508CF427.dip.t-dialin.net] has quit [Ping timeout: 245
seconds]
07:59 -!- gduffy [~greg@67.207.134.177] has joined #go-nuts
08:02 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed
the connection]
08:11 -!- ronny [~quassel@p4FF1D930.dip.t-dialin.net] has joined #go-nuts
08:11 -!- mikespook1 [~mikespook@58.61.204.78] has quit [Quit: Leaving.]
08:13 -!- wrtp [~rog@92.17.9.208] has joined #go-nuts
08:16 -!- Byron [~Byron@cpe-98-155-138-202.hawaii.res.rr.com] has joined #go-nuts
08:16 -!- Byron [~Byron@cpe-98-155-138-202.hawaii.res.rr.com] has left #go-nuts []
08:18 -!- ikaros [~ikaros@drms-4d0149e2.pool.mediaWays.net] has joined #go-nuts
08:35 -!- ikaros [~ikaros@drms-4d0149e2.pool.mediaWays.net] has quit [Quit: Leave
the magic to Houdini]
08:39 -!- wrtp [~rog@92.17.9.208] has quit [Ping timeout: 245 seconds]
08:45 -!- wrtp [~rog@92.17.57.145] has joined #go-nuts
08:49 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has quit [Quit:
Morten.  Desu~]
08:54 -!- sjbrown_ [~sjbrown@S0106687f742b6df3.fm.shawcable.net] has quit [Ping
timeout: 258 seconds]
09:05 -!- mikespook [~mikespook@58.61.204.78] has joined #go-nuts
09:11 -!- photron [~photron@port-92-201-195-133.dynamic.qsc.de] has joined
#go-nuts
09:20 -!- wrtp [~rog@92.17.57.145] has quit [Ping timeout: 245 seconds]
09:25 -!- MizardX- [~MizardX@unaffiliated/mizardx] has joined #go-nuts
09:25 -!- wrtp [~rog@92.17.61.173] has joined #go-nuts
09:27 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Ping timeout: 276
seconds]
09:31 -!- mikespook [~mikespook@58.61.204.78] has quit [Ping timeout: 245 seconds]
09:33 -!- Guest89871 [~quassel@p4FF1D930.dip.t-dialin.net] has quit [Remote host
closed the connection]
09:33 -!- mikespook [~mikespook@58.61.204.78] has joined #go-nuts
09:35 -!- mikespook [~mikespook@58.61.204.78] has quit [Client Quit]
09:41 < hokapoka> ooo, gofmt is nice!
09:42 -!- KillerX [~anant@145-116-234-40.uilenstede.casema.nl] has joined #go-nuts
09:43 -!- KillerX [~anant@145-116-234-40.uilenstede.casema.nl] has left #go-nuts
[]
09:51 -!- PrO [db853e49@gateway/web/freenode/ip.219.133.62.73] has joined #go-nuts
09:54 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
09:58 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust512.4-3.cable.virginmedia.com] has
joined #go-nuts
09:59 < jnwhiteh> Hrm, is there any reason we can't have type annotations
for functions?  I have defined a type and a few methods on that type and it's a
bit annoying that outside the package, I have to write HelloSource2 instead of the
nicer HelloSource: http://pastebin.ca/1904334
10:01 < exch> go doesnt support function overloading unfortunately
10:02 < jnwhiteh> I'm not sure what you mean..
10:02 < jnwhiteh> a type annotation isn't overloading, and that's all I
need.
10:02 < exch> function overloading means you can define 2 functions with the
same name, but different signatures
10:02 < jnwhiteh> that's not what I'm asking to do.....
10:03 < exch> then im not sure what you are trying to say
10:03 < jnwhiteh> The only difference between those two is that using the
second, I can specify the type of the function being returned.
10:03 < exch> your example simply defines 2 functions
10:03 < hokapoka> I thought you wante doverloading too.
10:03 < jnwhiteh> There is no reason the first shouldn't be able to do the
same with type annotation.
10:04 < jnwhiteh> either HelloSource, or the anonymous function inside
HelloSource2 should have the type 'chttp.SourceFunc'
10:04 < jnwhiteh> you can't do this for HelloSource
10:04 < exch> ah right
10:04 < jnwhiteh> so I have to 'wrap' everything, and it's just silly =/
10:06 < exch> im not sure why you can't just return helloSource in the
second function
10:06 * exch tests
10:06 < jnwhiteh> you can
10:07 < jnwhiteh> but that's still requiring two functions where it should
only require one
10:07 < jnwhiteh> HelloSource already IS of the appropriate type
10:07 < jnwhiteh> there's just no way to tell the compiler this if its
outside of the package where that type is defined.
10:08 < jnwhiteh> but yes, that would have been a less confusing example for
you guys to digest =)
10:08 < jessta> can't you do, var somefunc chttp.SourceFunc = HelloSource ?
10:09 < jnwhiteh> ah, good point =)
10:09 < jnwhiteh> indeed that does work
10:11 < hokapoka> In this example :
http://golang.org/doc/effective_go.html#named-results n += nr, would n not be nil,
thus causing nil += some_int_value to error?
10:11 < jnwhiteh> n is 0
10:11 < jnwhiteh> not nil
10:14 < DavidJones> what does a recv on a nil channel do?
10:15 < exch> panic()
10:15 < DavidJones> okay
10:15 < hokapoka> Is that because it's a named result, or if I had any int
that hadn't be declared previously would += assume a declaration of the int and
assign it 0?
10:16 < DavidJones> it is because the zero value for ints is 0
10:16 < jnwhiteh> not nil
10:16 < hokapoka> Okay, but how does it know it's an int, from the += or the
named results?
10:16 < DavidJones> named results
10:16 < exch> it's defines as 'n int'
10:16 < jnwhiteh> the named result is an implicit declaration
10:17 < hokapoka> Okay, thought that was the case, just wanted to calrify.
10:17 -!- kazoo [Unix@pool-71-104-18-19.lsanca.dsl-w.verizon.net] has joined
#go-nuts
10:17 < DavidJones> "Because named results are initialized and tied to an
unadorned return, "
10:18 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
10:18 < hokapoka> Thanks guys :0
10:20 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Ping timeout: 276
seconds]
10:21 < DavidJones> the first get doesn't block and returns -1:
http://pastebin.com/SnsVL6mX
10:21 < DavidJones> I don't understand why though.
10:21 < DavidJones> any explanation?
10:22 < DavidJones> all following Get()s block and behave as intended
10:24 < DavidJones> Meh, I think I found the reason
10:25 < DavidJones> curses.Initscr() was called in a different goroutine,
possibly after the first inch <- true, but before the first <- inch
10:26 < DavidJones> yup, works as intended now.
10:28 -!- sauerbraten [~sauerbrat@p508CF427.dip.t-dialin.net] has joined #go-nuts
10:33 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
10:36 -!- wrtp [~rog@92.17.61.173] has quit [Quit: wrtp]
10:37 -!- kazoo [Unix@pool-71-104-18-19.lsanca.dsl-w.verizon.net] has quit [Read
error: Connection reset by peer]
10:50 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
10:52 -!- mbarkhau [~koloss@dslb-088-068-251-010.pools.arcor-ip.net] has joined
#go-nuts
10:52 -!- mduft [~mduft@gentoo/developer/mduft] has quit [Read error: Connection
reset by peer]
10:53 -!- mduft [~mduft@gentoo/developer/mduft] has joined #go-nuts
11:01 -!- Netsplit *.net <-> *.split quits: +iant, anticw, XenoPhoenix,
str1ngs
11:03 -!- Netsplit over, joins: +iant, XenoPhoenix, anticw, str1ngs
11:05 -!- PrO [db853e49@gateway/web/freenode/ip.219.133.62.73] has quit [Ping
timeout: 252 seconds]
11:08 -!- dark [~dark@unaffiliated/eliasamaral] has quit [Quit: Leaving]
11:12 -!- gid [~gid@220-253-151-50.VIC.netspace.net.au] has joined #go-nuts
11:12 -!- gid [~gid@220-253-151-50.VIC.netspace.net.au] has quit [Client Quit]
11:14 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
11:14 -!- gid [~gid@220-253-151-50.VIC.netspace.net.au] has joined #go-nuts
11:20 -!- Damn3d [damn3d@bimbrownia.org] has joined #go-nuts
11:20 -!- Damn3d [damn3d@bimbrownia.org] has quit [Changing host]
11:20 -!- Damn3d [damn3d@unaffiliated/morpheus/x-0931003] has joined #go-nuts
11:23 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving]
11:33 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 258 seconds]
11:33 -!- visof [~visof@41.233.115.232] has joined #go-nuts
11:34 -!- visof [~visof@41.233.115.232] has quit [Changing host]
11:34 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
11:49 -!- trustin [~trustin@redhat/jboss/trustin] has joined #go-nuts
11:54 -!- TheSaint [~thesaint@166.205.8.246] has joined #go-nuts
11:58 -!- TheSaint [~thesaint@166.205.8.246] has quit [Remote host closed the
connection]
11:59 -!- temoto [~temoto@81.19.90.175] has left #go-nuts ["Leaving"]
12:10 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
12:14 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 260 seconds]
12:20 < araujo> mm
12:31 < araujo> anybody knows how to get the signal number out of the
os/signal.Incoming channel?
12:32 < araujo> I am checking the code of the package, and it seems the
received signal is just a UnixSignal type, which is an int32
12:32 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
12:32 < araujo> I am trying to cast the UnixSignal type back to int32
12:32 < bartbes> like ehm..
12:32 < araujo> but it doesn't seem to work
12:32 < bartbes> <-signal.Incoming
12:32 < bartbes> maybe?
12:33 < araujo> bartbes, sorry, that is correct
12:33 < araujo> yes
12:33 < bartbes> well
12:33 < araujo> the value out of <-signal.Incoming
12:33 < bartbes> then you need to turn it into a unixsignal
12:33 < bartbes> which I guess you can only do via a type assertion
12:33 < araujo> mm..  ok, let's see
12:35 < araujo> bartbes++
12:36 < araujo> so, as I can see, I can't _jump_ over a type definition
right?
12:37 < bartbes> well, technically it isn't a unixsignal
12:37 < bartbes> so it might not be compatible at all
12:37 < jessta> araujo: you should read about interfaces
12:38 < bartbes> you could do the unsafe pointer way and just use the data
anyway
12:38 < bartbes> but go just uses type assertions
12:38 <+iant> int32(s)
12:38 <+iant> should work
12:38 <+iant> you don't want a type assertion here, because a type assertion
is for an interface, and UnixSignal is not an interface
12:38 <+iant> a simple type conversion is sufficient
12:38 < araujo> iant, yeah, that made it after I used the UnixSignal type
assertion
12:38 < bartbes> iant: it is?
12:38 < araujo> mmm
12:38 -!- visof [~visof@unaffiliated/visof] has quit [Quit: Leaving]
12:39 < bartbes> but what about when it is incompatible?
12:39 <+iant> then it will fail at compile time....
12:39 <+iant> but in this case we know it is an integer type
12:39 < bartbes> but it doesn't *have* to be
12:39 < araujo> iant, well ...  s := signal.Incoming ; n := int32(s) ; isn't
working for me :(
12:39 < bartbes> so your program might break at any time
12:39 < araujo> err I mean, with >-
12:39 < bartbes> araujo: forgot the <- there?
12:39 < araujo> <-
12:39 < araujo> yes here forgot it here
12:39 < araujo> heh sorry, need my coffee
12:39 <+iant> programs can always break when types change
12:40 <+iant> it can't break at any time, it can only fail to compile
12:40 <+iant> that is, it can' t break at run time
12:40 -!- napsy [~napsy@193.2.66.101] has quit [Quit: leaving]
12:40 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has quit
[Ping timeout: 240 seconds]
12:40 <+iant> araujo: seems like that should work, what fails?
12:41 < araujo> sig := <-signal.Incoming; s, ok :=
sig.signal(signal.UnixSignal); if ok { n := int32(s) ....  }
12:41 < araujo> thia mde it for me
12:41 < bartbes> iant: yes, but what about a windows port for example?
12:41 < araujo> this made it for me*
12:42 < araujo> iant, oh, I understood you meant only a simple: sig :=
<-signal.Incoming; n := int32(sig) ....  should work
12:42 <+iant> bartbes: then the type assertion to get to UnixSignal will
fail
12:42 < araujo> because that gives me a type assertion error
12:42 < bartbes> and it won't be cross-platform
12:42 <+iant> I forgot that the channel sends an interface
12:42 <+iant> signal handling is never cross-platform
12:42 < araujo> iant, ooh ok, get it
12:42 < bartbes> and fail to compile, instead of lack a feature
12:42 < bartbes> imo that's bad
12:43 <+iant> if you can to write code that will run on Windows, don't use
UnixSignal
12:43 <+iant> that seems fairly clear
12:44 <+iant> we can arrange for the Windows target to define the UnixSignal
type if it seems appropriate
12:44 -!- visof [~visof@41.233.115.232] has joined #go-nuts
12:44 < bartbes> but then you lack a unix feature
12:44 -!- visof [~visof@41.233.115.232] has quit [Changing host]
12:44 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
12:44 <+iant> and vice-versa for whatever type is appropriate for Windows
12:44 <+iant> then you can use a type assertion to see what you have
12:44 <+iant> but in general code that handles signals is probably going to
want to be compiled differently on Unix and WIndows
12:44 <+iant> at least, that is my suspicion
12:44 * araujo notices this interface type assertion thing now......
12:44 <+iant> perhaps there is a good way to write code that works on both
12:45 < DavidJones> are go packages linked statically?
12:45 <+iant> DavidJones: with 6g/8g yes, with gccgo it's optional
12:45 < DavidJones> thanks...
12:46 < araujo> thanks a lot bartbes and iant
12:46 < araujo> think I got this...
12:46 < DavidJones> I was just thinking, you could externalize the platform
dependant code into packages, and then link them dynamically depending on the
system
12:46 < bartbes> iant: yeah, basically it needs some #ifdef-like stuff
12:47 <+iant> the Go library just compiles different files on different
platforms
12:47 < bartbes> not what I meant
12:47 < bartbes> it's for your own program
12:47 < bartbes> or wait
12:47 < bartbes> heh
12:47 < bartbes> not a reply to me
12:47 < exch> some makefile magic should achieve the same result as #ifdef
macros as far as platform specific compilation goes
12:48 < DavidJones> meh I think you have to cross compile all packages
anyway, so you're right
12:48 < bartbes> another thing that could be done, which would give cleaner
code is to improve the signal package so you don't even need to convert it
12:48 <+iant> go for it
12:48 < araujo> bartbes, that'd be nice
12:51 -!- visof [~visof@unaffiliated/visof] has quit [Remote host closed the
connection]
12:53 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
12:55 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has joined
#go-nuts
13:00 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat
0.3.2]
13:09 -!- ronny [~quassel@p4FF1D930.dip.t-dialin.net] has joined #go-nuts
13:20 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
13:26 -!- fhs [~fhs@pool-71-167-78-154.nycmny.east.verizon.net] has quit [Quit:
leaving]
13:28 -!- trustin [~trustin@redhat/jboss/trustin] has quit [Quit: Leaving]
13:46 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
13:47 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has joined #go-nuts
13:51 -!- GeoBSD [~geobsd@lns-bzn-44-82-249-222-184.adsl.proxad.net] has joined
#go-nuts
13:55 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
14:06 -!- ssb [~ssb@213.167.39.150] has quit [Ping timeout: 240 seconds]
14:07 -!- kanru [~kanru@118-168-232-227.dynamic.hinet.net] has joined #go-nuts
14:08 -!- ssb [~ssb@213.167.39.150] has joined #go-nuts
14:20 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
14:22 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
14:26 -!- Xiaobo [~zhou@123.114.172.250] has joined #go-nuts
14:27 -!- mbarkhau [~koloss@dslb-088-068-251-010.pools.arcor-ip.net] has quit
[Quit: Leaving.]
14:37 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
14:41 -!- sjbrown_ [~sjbrown@S0106687f742b6df3.fm.shawcable.net] has joined
#go-nuts
14:45 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]]
14:46 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 245 seconds]
14:48 -!- iant [~iant@62-20-124-50.customer.telia.com] has quit [Read error:
Connection reset by peer]
14:50 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
14:52 -!- visof [~visof@unaffiliated/visof] has quit [Quit: Leaving]
14:52 -!- zhou_ [~zhou@123.114.172.250] has joined #go-nuts
14:56 -!- Xiaobo [~zhou@123.114.172.250] has quit [Ping timeout: 252 seconds]
14:57 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
14:58 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 245 seconds]
14:58 -!- Adys_ [~Adys@unaffiliated/adys] has joined #go-nuts
15:04 -!- Venom_X [~pjacobs@71.21.124.111] has joined #go-nuts
15:09 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds]
15:11 -!- Xiaobo [~zhou@123.114.172.250] has joined #go-nuts
15:13 -!- zhou_ [~zhou@123.114.172.250] has quit [Ping timeout: 240 seconds]
15:18 -!- zhou_ [~zhou@123.114.172.250] has joined #go-nuts
15:18 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
15:19 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
15:19 -!- zhou__ [~zhou@123.114.172.250] has joined #go-nuts
15:20 -!- Xiaobo [~zhou@123.114.172.250] has quit [Ping timeout: 240 seconds]
15:22 -!- zhou_ [~zhou@123.114.172.250] has quit [Ping timeout: 264 seconds]
15:23 -!- carllerche [~carllerch@208.87.61.203] has joined #go-nuts
15:24 -!- zhou__ [~zhou@123.114.172.250] has quit [Client Quit]
15:24 -!- Xiaobo [~Xiaobo@123.114.172.250] has joined #go-nuts
15:25 -!- Davidian1024 [~Davidian1@cpe-98-27-192-193.neo.res.rr.com] has quit
[Quit: leaving]
15:25 -!- Davidian1024 [~Davidian1@cpe-98-27-192-193.neo.res.rr.com] has joined
#go-nuts
15:33 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Ping timeout:
264 seconds]
15:38 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode]
15:51 -!- kanru [~kanru@118-168-232-227.dynamic.hinet.net] has quit [Ping timeout:
240 seconds]
15:55 -!- carllerche [~carllerch@208.87.61.203] has quit [Quit: carllerche]
16:00 -!- itrekkie [c0373727@gateway/web/freenode/ip.192.55.55.39] has joined
#go-nuts
16:05 -!- g0bl1n [~anonymous@a213-22-76-1.cpe.netcabo.pt] has joined #go-nuts
16:05 -!- Xiaobo [~Xiaobo@123.114.172.250] has quit [Quit: Leaving]
16:09 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
16:09 -!- Sacho [~sacho@213.91.244.15] has quit [Ping timeout: 276 seconds]
16:18 -!- Guest33238 [~quassel@p4FF1D930.dip.t-dialin.net] has quit [Remote host
closed the connection]
16:30 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
16:33 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode]
16:33 -!- sjbrown_ [~sjbrown@S0106687f742b6df3.fm.shawcable.net] has quit [Quit:
Leaving]
16:35 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined
#go-nuts
16:40 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:46 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Quit: (◣_◢)
BigBrowser is watching ⓎⓄⓊ]
16:50 -!- Project_2501 [~Marvin@82.84.93.3] has joined #go-nuts
16:51 -!- Venom_X [~pjacobs@71.21.124.111] has quit [Remote host closed the
connection]
16:52 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts
16:58 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Ping timeout: 246 seconds]
17:02 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts
17:16 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts
17:18 -!- path[l] [~path@120.138.102.50] has joined #go-nuts
17:18 -!- ender2070 [~ender2070@bas22-toronto12-2925103372.dsl.bell.ca] has joined
#go-nuts
17:27 -!- peterdn_ [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com]
has joined #go-nuts
17:27 -!- peterdn_ [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com]
has quit [Client Quit]
17:29 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust512.4-3.cable.virginmedia.com] has
quit [Ping timeout: 245 seconds]
17:39 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has joined #go-nuts
17:42 -!- Venom_X_ [~pjacobs@71.21.124.111] has joined #go-nuts
17:45 -!- jingzuo [~brandon@h232.122.255.206.cable.thlq.cablelynx.com] has joined
#go-nuts
17:46 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Ping timeout: 240 seconds]
17:53 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
17:56 -!- tux21b [~christoph@90.146.60.30] has joined #go-nuts
18:00 -!- Xiaobo [~Xiaobo@123.114.172.250] has joined #go-nuts
18:06 -!- Melvar [~melvar@188.109.6.249] has joined #go-nuts
18:06 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has joined #go-nuts
18:06 -!- mode/#go-nuts [+v iant] by ChanServ
18:06 < plexdev> http://is.gd/dzGd9 by [Rob Pike] in go/src/pkg/strings/ --
strings: add Title
18:06 < plexdev> http://is.gd/dzGdf by [Vinu Rajashekhar] in go/doc/ --
gccgo_install.html: Description of the port to RTEMS added.
18:06 < plexdev> http://is.gd/dzGds by [Kai Backman] in 3 subdirs of go/ --
more soft float support.  passes several basic tests
18:06 < plexdev> http://is.gd/dzGdZ by [Kai Backman] in go/test/ -- fix
build
18:06 < plexdev> http://is.gd/dzGe9 by [Robert Griesemer] in 5 subdirs of
go/src/pkg/ -- gofmt: fix some linebreak issues
18:11 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
18:12 -!- Melvar [~melvar@188.109.6.249] has left #go-nuts []
18:15 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit [Remote
host closed the connection]
18:23 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
18:27 -!- ronny [~quassel@p4FF1D930.dip.t-dialin.net] has joined #go-nuts
18:29 -!- aho [~nya@fuld-4d00d60e.pool.mediaWays.net] has joined #go-nuts
18:31 -!- jingzuo [~brandon@h232.122.255.206.cable.thlq.cablelynx.com] has left
#go-nuts []
18:35 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has joined
#go-nuts
18:38 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
18:38 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has joined
#go-nuts
18:39 -!- Xiaobo [~Xiaobo@123.114.172.250] has quit [Quit: Leaving]
18:44 -!- visof [~visof@41.238.234.224] has joined #go-nuts
18:44 -!- visof [~visof@41.238.234.224] has quit [Changing host]
18:44 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
18:47 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
18:47 -!- iant [~iant@81-233-149-58-no82.tbcn.telia.com] has quit [Quit: Leaving.]
18:56 -!- mxweas [~max@c-98-225-102-170.hsd1.az.comcast.net] has joined #go-nuts
19:03 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving]
19:10 -!- sauerbraten [~sauerbrat@p508CF427.dip.t-dialin.net] has quit [Ping
timeout: 245 seconds]
19:17 -!- cw [~cw@parsec.stupidest.org] has quit [Read error: Operation timed out]
19:21 -!- tvw [~tv@e176006228.adsl.alicedsl.de] has joined #go-nuts
19:30 -!- navigator [~navigator@p54892D9A.dip.t-dialin.net] has joined #go-nuts
19:31 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
19:38 -!- plainhao [~plainhao@mail.xbiotica.com] has quit [Quit: plainhao]
19:39 -!- artefon [~thiago@189.107.248.239] has joined #go-nuts
19:44 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has
joined #go-nuts
19:54 -!- rinzai [~rinzai@host81-129-148-230.range81-129.btcentralplus.com] has
joined #go-nuts
19:56 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has joined #go-nuts
19:56 < fenicks> hello
19:57 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
19:59 -!- Adys [~Adys@unaffiliated/adys] has quit [Excess Flood]
20:00 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
20:03 < artefon> is there a web scrapping tool for go?
20:06 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit
[Quit: carllerche]
20:10 < exch> not in the standard packages, but it should be fairly trivial
to write your own
20:11 < artefon> exch: im searching to see if someone already started
20:11 < artefon> exch: thanks for the reply :)
20:11 < exch> if someone already did, your best bet is to look here:
http://go-lang.cat-v.org/ or here http://godashboard.appspot.com/package
20:12 < artefon> exch: oo thanks for the tips
20:14 -!- rinzai [~rinzai@host81-129-148-230.range81-129.btcentralplus.com] has
quit [Quit: Leaving]
20:16 -!- Byron [~Byron@cpe-98-155-138-202.hawaii.res.rr.com] has joined #go-nuts
20:17 -!- Byron [~Byron@cpe-98-155-138-202.hawaii.res.rr.com] has left #go-nuts []
20:20 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 240 seconds]
20:24 -!- ako [~nya@fuld-4d00d7ba.pool.mediaWays.net] has joined #go-nuts
20:27 -!- sioraiocht [~tomh@unaffiliated/sioraiocht] has quit [Remote host closed
the connection]
20:27 -!- aho [~nya@fuld-4d00d60e.pool.mediaWays.net] has quit [Ping timeout: 245
seconds]
20:28 -!- Eridius_ [~kevin@unaffiliated/eridius] has joined #go-nuts
20:28 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Disconnected by
services]
20:35 -!- g0bl1n [~anonymous@a213-22-76-1.cpe.netcabo.pt] has quit [Quit: g0bl1n]
20:41 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has quit [Quit:
WeeChat 0.3.3-dev]
20:52 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Remote host
closed the connection]
20:55 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
20:56 -!- Ginto8 [~joe@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined
#go-nuts
20:56 -!- artefon [~thiago@189.107.248.239] has quit [Quit: bye]
20:58 -!- zozoR [~zozoR@x1-6-00-0e-2e-a3-e0-23.k377.webspeed.dk] has quit [Quit:
Morten.  Desu~]
21:04 -!- navigator [~navigator@p54892D9A.dip.t-dialin.net] has quit [Ping
timeout: 264 seconds]
21:08 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has joined
#go-nuts
21:10 -!- navigator [~navigator@p54892D9A.dip.t-dialin.net] has joined #go-nuts
21:17 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
21:21 -!- smw [~smw@pool-71-183-88-124.nycmny.fios.verizon.net] has quit [Read
error: Connection reset by peer]
21:22 -!- Project_2501 [~Marvin@82.84.93.3] has quit [Quit: E se abbasso questa
leva che succ...]
21:23 -!- Venom_X_ [~pjacobs@71.21.124.111] has joined #go-nuts
21:24 -!- Venom_X [~pjacobs@71.21.124.111] has quit [Read error: Connection reset
by peer]
21:27 -!- macroron [~ron@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
21:29 -!- Sacho [~sacho@95-42-68-76.btc-net.bg] has joined #go-nuts
21:32 -!- Guest26994 [~quassel@p4FF1D930.dip.t-dialin.net] has quit [Remote host
closed the connection]
21:34 -!- DavidJones [~DavidJone@dslb-084-056-073-183.pools.arcor-ip.net] has quit
[Remote host closed the connection]
21:34 -!- visof [~visof@unaffiliated/visof] has quit [Quit: Leaving]
21:37 -!- franksalim [~frank@adsl-75-61-93-123.dsl.pltn13.sbcglobal.net] has
joined #go-nuts
21:39 -!- navigator [~navigator@p54892D9A.dip.t-dialin.net] has quit [Quit:
Leaving]
21:40 -!- aho [~nya@fuld-4d00d377.pool.mediaWays.net] has joined #go-nuts
21:43 -!- ako [~nya@fuld-4d00d7ba.pool.mediaWays.net] has quit [Ping timeout: 240
seconds]
21:44 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
21:59 -!- ender2070 [~ender2070@bas22-toronto12-2925103372.dsl.bell.ca] has quit
[Remote host closed the connection]
22:00 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit:
skelterjohn]
22:04 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined
#go-nuts
22:15 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping
timeout: 240 seconds]
22:16 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has joined #go-nuts
22:18 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
22:18 -!- DavidJones [~DavidJone@dslb-084-056-073-183.pools.arcor-ip.net] has
joined #go-nuts
22:19 < DavidJones> woah
22:19 < DavidJones> I just lost 4 hours delving into makefiles
22:19 < DavidJones> because I missread Make.pkg for Make.cmd
22:20 < DavidJones> I think the golang helper makefiles sure need more
distinguishable names...
22:20 < DavidJones> especially since the makefiles themselves look exactly
the same, but for those three tiny letters at the end.
22:21 * exch hands DavidJones a cup of coffee
22:21 < DavidJones> thanks a lot : )
22:21 < exch> np :)
22:24 -!- tvw [~tv@e176006228.adsl.alicedsl.de] has quit [Remote host closed the
connection]
22:36 < Ginto8> DavidJones: don't say you "lost" 4 hours
22:36 < Ginto8> learning makefiles is a VERY good experience
22:36 < Ginto8> and you'll be thankful for it later
22:42 < DavidJones> yeah but I didn't really learn something new
22:42 < Ginto8> hm
22:42 < DavidJones> I just searched for why it's not working on my packages,
but on others
22:42 < DavidJones> tried this and that
22:42 < Ginto8> well you did learn to always check typing before going off
and delving into docs
22:42 < Ginto8> =P
22:43 < DavidJones> I hope so...
22:43 < Ginto8> don't worry, we've all lost tons of time on simple problems
like this
22:44 < DavidJones> thanks : )
22:46 < DavidJones> I'll go to bed now "and medidate about what I've learnt
today" ; )
22:46 < DavidJones> You sleep tight/have good luck and a lot of fun at
whatever you're doing : )
22:46 < Ginto8> dude I always do that...  Like seriously I can see the code
in my sleep o.o
22:46 < Ginto8> thanks
22:47 -!- DavidJones [~DavidJone@dslb-084-056-073-183.pools.arcor-ip.net] has quit
[Remote host closed the connection]
22:48 -!- ender2070 [~ender2070@bas22-toronto12-2925103372.dsl.bell.ca] has joined
#go-nuts
22:52 < Ginto8> okay if I have type T, can I have type U struct { T T }
22:52 < Ginto8> like, give a member the name of a type?
22:52 < Ginto8> actually struct { T *T }
22:52 -!- scm [justme@d071137.adsl.hansenet.de] has quit [Ping timeout: 240
seconds]
22:52 < exch> yes
22:53 < exch> actually, no
22:53 < exch> was doing it wrong
22:53 < Ginto8> hm
22:53 < Ginto8> okay then
22:53 < exch> wait, you can
22:53 < exch> durr.  error was generated somewhere else
22:53 < Ginto8> oh ok
22:53 < Ginto8> thanks, shoulda tested it myself before I asked
22:54 -!- scm [justme@d071137.adsl.hansenet.de] has joined #go-nuts
23:02 -!- tux21b [~christoph@90.146.60.30] has quit [Quit: exit(EXIT_SUCCESS); //
see ⓎⓄⓊ]
23:05 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
23:09 -!- g0bl1n [~anonymous@a213-22-76-1.cpe.netcabo.pt] has joined #go-nuts
23:13 -!- photron [~photron@port-92-201-195-133.dynamic.qsc.de] has quit [Ping
timeout: 240 seconds]
23:22 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has left
#go-nuts []
23:33 -!- ako [~nya@fuld-4d00d7e3.pool.mediaWays.net] has joined #go-nuts
23:34 -!- aho [~nya@fuld-4d00d377.pool.mediaWays.net] has quit [Ping timeout: 240
seconds]
23:40 -!- iLeNsTR [~quassel@unaffiliated/lenstr] has joined #go-nuts
23:48 < hokapoka> How can I use a chan accross 2, or more, seperate
processes?
23:50 < hokapoka> I know I can use netchan, but wondered if there was a
better approach when the processes are on the same machine.
23:52 < KirkMcDonald> korfuri: You could use netchan on a Unix domain
socket.
23:55 < hokapoka> KirkMcDonald: I assume that was directed at me?
23:56 < KirkMcDonald> Err,
23:56 < KirkMcDonald> Yes.
23:56 < hokapoka> That's what I was was going todo, didn't know if there was
something else that I _should_ be using.
23:57 < KirkMcDonald> h and k are, like, right next to each other.
23:57 < hokapoka> many thanks, I'll do it that way.
23:57 < hokapoka> heh, well, they are kinda close.  the j kinda gets in the
way.
23:57 < KirkMcDonald> Yeah, I'm not aware of anything better.
23:57 < KirkMcDonald> Something could be rigged up with a pipe, perhaps.
23:58 -!- trustin [~trustin@redhat/jboss/trustin] has joined #go-nuts
23:58 -!- itrekkie [c0373727@gateway/web/freenode/ip.192.55.55.39] has quit [Ping
timeout: 252 seconds]
23:58 < Ginto8> hm I think I found a cgo
23:58 < Ginto8> cgo bug*
23:59 -!- bmizerany [~bmizerany@c-24-6-37-113.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
23:59 < Ginto8> or at least a makefile bug
23:59 < Ginto8> the "comment header" of the LAST listed cgo file is the one
that's used
23:59 < Ginto8> it doesn't combine
23:59 < Ginto8> at all
--- Log closed Wed Jul 21 00:00:05 2010