--- Log opened Mon Mar 22 00:00:02 2010
--- Day changed Mon Mar 22 2010
00:00 -!- wuehlmaus [~wuehlmaus@p4FCC4B6C.dip.t-dialin.net] has joined #go-nuts
00:08 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Ping
timeout: 240 seconds]
00:12 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined
#go-nuts
00:22 -!- gnuvince_ [~vince@72.0.219.6] has quit [Quit: What the fruit is goin' on
here!?]
00:34 -!- jshipley [~jshipley@174-23-125-69.slkc.qwest.net] has joined #go-nuts
00:38 -!- mikespook [~mikespook@219.135.216.131] has joined #go-nuts
00:40 < jshipley> Is there any way to support condensed flags (eg -hlv
instead of -h -l -v, or -fvalue instead of -f value) using Go's flag package?
00:42 < dagle> jshipley: http://code.google.com/p/optparse-go/
00:47 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
00:54 -!- reiddraper [~reiddrape@static-71-243-120-39.bstnma.east.verizon.net] has
quit [Quit: reiddraper]
01:04 < KirkMcDonald> I really should write docs for that.
01:05 < KirkMcDonald> For now the unittests and the opttest.go file provide
some reasonable usage examples.
01:07 -!- fridim [~9d80dace@gateway/web/freenode/x-otezqwkidhuuqbdz] has joined
#go-nuts
01:08 < jshipley> Do you think there's any chance of your optargs package
ever replacing the current flag library?
01:12 < KirkMcDonald> That would be up to the Go devs.
01:12 < KirkMcDonald> I would not oppose such a move.
01:14 < dagle> I don't know if they want to stay to close to how ARGBEGIN
works.
01:17 < anticw> anyone here got a working ipv6 hosts?
01:24 -!- aho [~nya@f050201039.adsl.alicedsl.de] has joined #go-nuts
01:32 -!- gnuvince [~vince@70.35.161.50] has joined #go-nuts
01:56 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has joined #go-nuts
02:00 -!- sam_ [sam@unaffiliated/samferry] has quit [Remote host closed the
connection]
02:11 -!- rhelmer [~rhelmer@adsl-69-107-95-216.dsl.pltn13.pacbell.net] has quit
[Ping timeout: 245 seconds]
02:11 < anticw> Kashia: ok, icmpv6 is working mostly now
02:13 -!- sam_ [sam@unaffiliated/samferry] has joined #go-nuts
02:14 -!- brx_ [~brx@p5796FDA5.dip.t-dialin.net] has joined #go-nuts
02:15 -!- brx [~brx@p5796FD6D.dip.t-dialin.net] has quit [Disconnected by
services]
02:15 -!- brx_ [~brx@p5796FDA5.dip.t-dialin.net] has left #go-nuts []
02:16 -!- brx [~brx@p5796FDA5.dip.t-dialin.net] has joined #go-nuts
02:29 -!- brx [~brx@p5796FDA5.dip.t-dialin.net] has quit [Quit: leaving]
02:40 -!- brx [brx@erxz.com] has joined #go-nuts
02:42 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: (
www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )]
03:03 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
03:13 -!- reiddraper
[~reiddrape@209-6-43-251.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has joined
#go-nuts
03:29 -!- reiddraper
[~reiddrape@209-6-43-251.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com] has left #go-nuts
[]
03:29 -!- Sorcy [~ycros@gnaw.yi.org] has left #go-nuts []
03:29 -!- Ycros [~ycros@gnaw.yi.org] has joined #go-nuts
03:52 -!- jophish [~jophish@hermi.gotadsl.co.uk] has quit [Remote host closed the
connection]
04:03 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has quit [Quit:
warthurton]
04:05 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has joined
#go-nuts
04:07 -!- digi9 [none@csplan9.rit.edu] has joined #go-nuts
04:09 < digi9> Ok, a question.  I have a closure which "consumes" part of an
array of strings each time I call it.  I want to make a copy of this closure, so I
can consume some number of strings, then back up and do it again.  Is there a
decent way to do this?
04:28 < KirkMcDonald> digi9: I admit that I am not totally clear on what you
mean.
04:34 -!- alexbobp [~alex@66.112.249.238] has quit [Quit: reboot]
04:35 < digi9> ok, let's try again
04:36 < digi9> I've got an array of strings.  When I call this function,
which I have defined as thisfunction := func(args) ( returns ) { do some stuff,
use local variables }, it increments a counter inside that function.
04:37 < digi9> so if my array was ["go" "language" "pike"], and I called the
function three times, I would get "go", "language", and "pike", in that order.
04:37 -!- hstimer [~hstimer@c-98-234-25-125.hsd1.ca.comcast.net] has quit [Quit:
hstimer]
04:38 < digi9> However, I want to be able to essentially take a snapshot,
say after calling it once, so I could call the function and get "go", make my
snapshot, call the function two more times (getting "language" and "pike"), then
back up to that snapshot and call the function twice more to get "language" and
"pike" again
04:39 < digi9> It's part of a class assignment, and the way I'm doing
parsing means the ability to do that would make my day beautiful
04:39 < digi9> If it's just "backup := thisfunction", then I've obviously
broken some other part of my program, because that doesn't work :)
04:45 -!- alexbobp [~alex@66.112.249.238] has joined #go-nuts
04:57 < digi9> well, I've straightened things out in my own way
04:57 < digi9> it's not as pretty but it works
04:57 -!- digi9 [none@csplan9.rit.edu] has left #go-nuts []
05:03 -!- yatoo [~marcus@host86-156-158-64.range86-156.btcentralplus.com] has quit
[Ping timeout: 248 seconds]
05:17 < jshipley> optparse-go seems to be behaving strangely: if I run the
test.go program with --bar three, then bar gets [one,two,three,three]
05:17 < jshipley> basically, it seems like any append actions or callbacks
are happening twice
05:30 -!- robot12 [~robot12@szhilkin.broker.freenet6.net] has joined #go-nuts
05:42 < uriel> callbacks == evil
05:49 -!- jshipley [~jshipley@174-23-125-69.slkc.qwest.net] has quit [Quit:
leaving]
05:54 * adu <3 callbacks
05:54 -!- kssreeram [~kssreeram@122.174.129.183] has quit [Quit: kssreeram]
05:56 -!- aho [~nya@f050201039.adsl.alicedsl.de] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
05:57 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
05:59 -!- kashia_ [~Kashia@port-92-200-96-165.dynamic.qsc.de] has joined #go-nuts
06:01 -!- Kashia [~Kashia@port-92-200-151-144.dynamic.qsc.de] has quit [Ping
timeout: 252 seconds]
06:09 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined
#go-nuts
06:10 < KirkMcDonald> Weird.
06:10 < KirkMcDonald> I wonder what's causing that.
06:19 < KirkMcDonald> Oh, weeeird.
06:19 < KirkMcDonald> This must be a relatively recent change to Go.
06:20 < KirkMcDonald> But I have the following at the file scope: var args,
_ = p.Parse()
06:20 < KirkMcDonald> And it is getting called twice.
06:20 < KirkMcDonald> (When I move it into main(), it is called once.)
06:20 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-176-214.clienti.tiscali.it] has
joined #go-nuts
06:22 < KirkMcDonald> And when I explicitly have: var args []string; func
init() { args, _ = p.Parse() }
06:22 < KirkMcDonald> It is also only called once.
06:23 -!- path[l] [UPP@120.138.102.34] has quit [Ping timeout: 252 seconds]
06:26 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-133-200.netcologne.de] has joined
#go-nuts
06:28 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Ping
timeout: 246 seconds]
06:29 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
06:34 -!- kssreeram [~kssreeram@122.165.6.245] has joined #go-nuts
06:46 -!- fridim [~9d80dace@gateway/web/freenode/x-otezqwkidhuuqbdz] has quit
[Ping timeout: 252 seconds]
06:46 -!- vegai [vegai@archlinux/developer/vegai] has joined #go-nuts
06:46 < vegai> hey..
06:46 < vegai> was there a function for reading a single line?
06:47 < anticw> ReadString
06:47 < anticw> bufio.ReadString('\n')
06:48 < vegai> ok
06:48 < vegai> I don't see it in the package docs
06:49 < anticw> godoc bufio ReadString
06:49 < anticw> works here
06:49 < vegai> ohhh, bufio
06:49 * vegai is blind
06:51 < vegai> hmm, but a os.File isn't a reader
06:51 < anticw> myFoo, err := bufio.NewReader(whateverOsFileYouHave)
06:51 < anticw> then use that
06:55 -!- tav [~tav@89.240.57.83] has quit [Quit: tav]
06:56 < vegai> yes, now I got it.  Thanks.
07:03 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
07:07 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Quit:
leaving]
07:09 -!- nf [~nf@124-168-159-235.dyn.iinet.net.au] has quit [Remote host closed
the connection]
07:09 -!- nf [~nf@124-168-130-206.dyn.iinet.net.au] has joined #go-nuts
07:14 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-133-200.netcologne.de] has quit [Quit:
m1ndwarp]
07:24 -!- CMPITG [CMPITG@113.22.109.243] has joined #go-nuts
07:30 < vegai> does range work on Readers?
07:30 * vegai might as well try it...
07:31 < vegai> foo.go:29: cannot range over reader (type *bufio.Reader)
07:31 < vegai> righto.  That would've been neat.
07:34 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
07:35 < anticw> vegai: you could make an iterator though
07:35 < anticw> it's not quite the same as the pythonic behavior though
07:35 < vegai> yeah..
07:35 -!- jdp [~gu@75.97.120.11.res-cmts.senj.ptd.net] has joined #go-nuts
07:36 < vegai> I'll just read it the imperative way then
07:37 < vegai> is this idiomatic?
07:37 < vegai> http://paste.factorcode.org/paste?id=1589
07:37 < vegai> or merely s/ma//
07:38 < vegai> I was thinking that the ReadString -line could perhaps be a
part of the for clause
07:38 < vegai> but I got a fascinating "foo.go:29: (node AS2FUNC) used as
value
07:38 < vegai> "
07:38 < vegai> when I tried that
07:39 -!- wrtp [~rog@89.241.218.64] has joined #go-nuts
07:39 -!- trickie [~trickie@94.100.112.225] has joined #go-nuts
07:39 < anticw> err could be an error or os.EOF
07:39 < vegai> sometimes I miss some ruby syntax quirks
07:40 < vegai> it'd be fun to write "if err != nil { break }" as "break if
err != nil"
07:40 < anticw> and str could (in theory) have a value even on err != nil
07:40 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
07:40 < vegai> ah
07:43 -!- perdix [~perdix@sxemacs/devel/perdix] has joined #go-nuts
07:51 < vegai> huh, that's silly
07:51 < vegai> if I don't call bufio.Flush() before exiting, the file never
gets created
07:52 < vegai> vegai@louhikko ~ 6g -V
07:52 < vegai> 6g version 4877 release.2010-02-17
07:52 < vegai> rather old version, yes...  but still
07:52 < vegai> no, actually.  The file does get created, but the content
never gets there
07:53 < vegai> calling Close() on the file isn't enough
07:53 < vegai> well, I guess I'll have to Flush it then
08:00 < anticw> that's corect
08:00 < anticw> correct, flush is necessary ...  you have data in a buffer,
if you don't flush it how can you be sure it's
08:00 < anticw> done when you terminate
08:01 < anticw> vegai: btw, wrt to reading files ....  ioutil.ReadFile then
split if the files aren't too large
08:03 < anticw> vegai: wrt to calling .Flush() before exiting, you might
find defer works well for that
08:04 < vegai> aye, I'll consider that
08:04 < vegai> and that
08:08 -!- jophish [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts
08:11 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.1.1]
08:12 -!- vegai [vegai@archlinux/developer/vegai] has left #go-nuts []
08:13 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]]
08:13 -!- General13372 [~support@71-84-246-14.dhcp.gldl.ca.charter.com] has quit
[Read error: Connection reset by peer]
08:14 -!- kaigan|work
[~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined #go-nuts
08:14 -!- General1337 [~support@71-84-246-14.dhcp.gldl.ca.charter.com] has joined
#go-nuts
08:23 -!- kssreeram [~kssreeram@122.165.6.245] has quit [Quit: kssreeram]
08:26 -!- General13372 [~support@71-84-246-14.dhcp.gldl.ca.charter.com] has joined
#go-nuts
08:28 -!- Fraeon_ [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
08:28 -!- General1337 [~support@71-84-246-14.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 240 seconds]
08:30 -!- Fraeon [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [Ping
timeout: 245 seconds]
08:31 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
08:32 -!- kssreeram [~kssreeram@122.165.6.245] has joined #go-nuts
08:39 -!- Fraeon_ [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
08:40 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
08:41 -!- Fraeon [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [Ping
timeout: 276 seconds]
08:42 -!- kssreeram [~kssreeram@122.165.6.245] has quit [Quit: kssreeram]
08:42 -!- kssreeram [~kssreeram@122.165.6.245] has joined #go-nuts
08:54 -!- jophish [~jophish@hermi.gotadsl.co.uk] has quit [Remote host closed the
connection]
08:58 -!- c0nfl|ct [~tiago@83.240.134.68] has joined #go-nuts
09:03 -!- ikaros [~ikaros@f051135050.adsl.alicedsl.de] has joined #go-nuts
09:12 -!- nf [~nf@124-168-130-206.dyn.iinet.net.au] has quit [Ping timeout: 276
seconds]
09:14 -!- nf [~nf@124-171-9-15.dyn.iinet.net.au] has joined #go-nuts
09:25 -!- nf [~nf@124-171-9-15.dyn.iinet.net.au] has quit [Ping timeout: 252
seconds]
09:27 -!- nf [~nf@124-168-148-159.dyn.iinet.net.au] has joined #go-nuts
09:29 -!- souffledev [~soufflede@110-174-144-249.static.tpgi.com.au] has joined
#go-nuts
09:29 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
09:31 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
09:34 -!- nf [~nf@124-168-148-159.dyn.iinet.net.au] has quit [Ping timeout: 256
seconds]
09:37 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has joined #go-nuts
09:37 -!- fuzzybyte [~fuzzybyte@a47.org] has quit [Ping timeout: 248 seconds]
09:37 -!- fuzzybyte [~fuzzybyte@a47.org] has joined #go-nuts
09:37 -!- nf [~nf@124-170-99-166.dyn.iinet.net.au] has joined #go-nuts
09:38 -!- wuehlmaus [~wuehlmaus@p4FCC4B6C.dip.t-dialin.net] has quit [Ping
timeout: 240 seconds]
09:41 -!- ahihi [~generic@cs27127176.pp.htv.fi] has quit [Ping timeout: 248
seconds]
09:43 -!- ahihi [~generic@cs27127176.pp.htv.fi] has joined #go-nuts
09:43 -!- nf [~nf@124-170-99-166.dyn.iinet.net.au] has quit [Remote host closed
the connection]
09:43 -!- nf [~nf@124-168-170-216.dyn.iinet.net.au] has joined #go-nuts
09:46 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-133-200.netcologne.de] has joined
#go-nuts
09:47 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has quit [Ping timeout:
241 seconds]
09:52 -!- wuehlmaus [~wuehlmaus@p4FCC4B6C.dip.t-dialin.net] has joined #go-nuts
10:00 -!- c0nfl|ct [~tiago@83.240.134.68] has quit [Quit: Saindo]
10:01 -!- mikespook [~mikespook@219.135.216.131] has quit [Ping timeout: 276
seconds]
10:04 -!- g0bl1n [~anonymous@a213-22-18-86.cpe.netcabo.pt] has joined #go-nuts
10:07 -!- nf [~nf@124-168-170-216.dyn.iinet.net.au] has quit [Ping timeout: 264
seconds]
10:07 -!- kashia_ [~Kashia@port-92-200-96-165.dynamic.qsc.de] has quit [Quit: This
computer has gone to sleep]
10:08 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
10:11 -!- nf [~nf@124-171-62-179.dyn.iinet.net.au] has joined #go-nuts
10:15 -!- nf [~nf@124-171-62-179.dyn.iinet.net.au] has quit [Ping timeout: 246
seconds]
10:26 -!- nf [~nf@124-168-143-71.dyn.iinet.net.au] has joined #go-nuts
10:27 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has quit [Quit: adu]
10:29 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
10:31 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has joined #go-nuts
10:35 -!- ikaros [~ikaros@f051135050.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
10:48 < ct529> good morning everybody!
10:49 -!- wuehlmaus [~wuehlmaus@p4FCC4B6C.dip.t-dialin.net] has quit [Ping
timeout: 252 seconds]
10:50 -!- wuehlmaus [~wuehlmaus@p4FCC6B59.dip.t-dialin.net] has joined #go-nuts
11:01 -!- nf [~nf@124-168-143-71.dyn.iinet.net.au] has quit [Ping timeout: 260
seconds]
11:03 -!- nf [~nf@124-168-145-12.dyn.iinet.net.au] has joined #go-nuts
11:04 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts
11:10 -!- OpenSpace [~ja@91.150.111.116] has quit [Ping timeout: 264 seconds]
11:20 -!- nf [~nf@124-168-145-12.dyn.iinet.net.au] has quit [Ping timeout: 276
seconds]
11:20 -!- nf_ [~nf@203-214-152-144.perm.iinet.net.au] has joined #go-nuts
11:20 -!- tav [~tav@89.240.57.83] has joined #go-nuts
11:21 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-133-200.netcologne.de] has quit [Ping
timeout: 276 seconds]
11:33 -!- nf_ [~nf@203-214-152-144.perm.iinet.net.au] has quit [Ping timeout: 240
seconds]
11:34 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has quit [Remote host
closed the connection]
11:35 -!- nf [~nf@124-171-63-149.dyn.iinet.net.au] has joined #go-nuts
11:38 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat
0.3.1.1]
11:39 -!- awidegreen_ [~quassel@p5B061E66.dip.t-dialin.net] has joined #go-nuts
11:39 -!- nf [~nf@124-171-63-149.dyn.iinet.net.au] has quit [Ping timeout: 246
seconds]
11:40 -!- awidegreen [~quassel@p5B060775.dip.t-dialin.net] has quit [Ping timeout:
248 seconds]
11:44 -!- nf [~nf@203-158-36-35.dyn.iinet.net.au] has joined #go-nuts
11:54 -!- nf [~nf@203-158-36-35.dyn.iinet.net.au] has quit [Remote host closed the
connection]
11:54 -!- nf [~nf@203-158-52-179.dyn.iinet.net.au] has joined #go-nuts
12:00 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
12:03 -!- nf [~nf@203-158-52-179.dyn.iinet.net.au] has quit [Ping timeout: 265
seconds]
12:04 -!- nf [~nf@203-214-142-56.perm.iinet.net.au] has joined #go-nuts
12:10 -!- nf [~nf@203-214-142-56.perm.iinet.net.au] has quit [Ping timeout: 258
seconds]
12:11 -!- nf [~nf@124-168-171-224.dyn.iinet.net.au] has joined #go-nuts
12:12 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]]
12:14 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
12:31 -!- kssreeram [~kssreeram@122.165.6.245] has quit [Quit: kssreeram]
12:38 -!- l00t [~i-i3id3r_@189.105.67.216] has quit [Quit: Leaving]
12:42 < rsaarelm> I just figured out how you can write multiline fluent
interface call chains that don't run afoul of Go's semicolon buggery.
12:42 < rsaarelm> Instead of the usual "obj\n.foo()\n.bar()", you do
"obj.\nfoo().\nbar()".
12:43 -!- nf [~nf@124-168-171-224.dyn.iinet.net.au] has quit [Ping timeout: 248
seconds]
12:45 -!- nf [~nf@203-214-154-181.perm.iinet.net.au] has joined #go-nuts
12:46 -!- Surma [~bzfsurma@gooseberry.zib.de] has joined #go-nuts
12:46 -!- cmarcelo [~cmarcelo@200.184.118.130] has joined #go-nuts
12:46 -!- cmarcelo [~cmarcelo@200.184.118.130] has quit [Changing host]
12:46 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
12:48 < Surma> Hey guys.  I'm creating a *net.TCPListener using
net.ListenTCP() and try to pass it as a *net.Listener.  This does not work,
although net.TCPListener obviously implements net.Listener.  What am I doing
wrong?
12:48 -!- yatoo [~marcus@host86-156-158-64.range86-156.btcentralplus.com] has
joined #go-nuts
12:48 < rsaarelm> You don't use * with interfaces.
12:48 < Surma> hm, okay.  so just dereference them?
12:49 < rsaarelm> No, if methods of a *-type implement the interface, you
can pass the *-value as non-* interface.
12:51 < rsaarelm> In other words, "var a *net.TCPListener, b net.Listener;
..  init a ..; b = a" should work.
12:51 < Surma> indeed.  that works
12:51 < Surma> somewhat confusing though
12:52 < rsaarelm> Yeah, the pointer stuff gets a bit odd.
12:52 < rsaarelm> There are good justifications for each individual thing,
but the whole is kinda confusing in places like this.
12:53 < Surma> Well, as long as there *is* a justification.  That's a major
improvment compared to other languages ;)
12:56 -!- nf [~nf@203-214-154-181.perm.iinet.net.au] has quit [Remote host closed
the connection]
12:56 -!- nf [~nf@124-170-38-141.dyn.iinet.net.au] has joined #go-nuts
12:56 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has quit [Quit:
hstimer]
12:58 < Surma> is it a mistake to use non-pointer objects in channels?  Like
"chan net.Conn"?
13:01 -!- TR2N [email@89-180-180-247.net.novis.pt] has left #go-nuts []
13:02 < rsaarelm> No.
13:02 < rsaarelm> You should be able to use pretty much any type with
channles.
13:03 < Surma> that's what I figured
13:03 < Surma> damnit
13:03 < Surma> (yet) another thing: If I define "type Request net.Conn", and
I have a "c chan *Request", why cant I do "c<-&con", where con is a net.Conn?!
it says it cannot use *net.Conn as a *Request
13:04 < rsaarelm> You're aliasing interfaces, which is different from
implementing interfaces.
13:04 < rsaarelm> Try c<-&(Request(con))
13:05 < Surma> nope, "cannot take address..."
13:05 < Surma> well, i think this oughta work without pointers anyways
13:05 < rsaarelm> Yes.
13:05 < Surma> maybe i'm looking for an error at the wrong place
13:05 < rsaarelm> Not sure why you were trying to use interface pointers
there anyway.
13:06 < Surma> rsaarelm: Desperation
13:06 < Surma> ;)
13:06 < rsaarelm> Thought it might be.
13:07 < rsaarelm> I don't even know how pointer stuff and interface values
are supposed to mix.
13:07 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
13:08 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
13:08 < Surma> rsaarelm: would you mind looking at the whole code?
http://pastie.org/private/5jruvjt0vjqvoizduq0zww
13:08 -!- nf [~nf@124-170-38-141.dyn.iinet.net.au] has quit [Read error:
Connection reset by peer]
13:08 -!- nf [~nf@124-168-173-16.dyn.iinet.net.au] has joined #go-nuts
13:10 < rsaarelm> I haven't done any net.* coding, so I don't have much
useful input on how that part is done.
13:11 < Surma> rsaarelm: I think I just found the error anyways.  thanks :)
13:11 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.1.1]
13:11 < Surma> rsaarelm: the error handling for binding seems to be wrong.
if I choose a port >1024 it works just fine
13:12 < rsaarelm> Well you need to be root to access the lower ports?
13:13 < Surma> yup
13:14 -!- tor5 [~tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has
joined #go-nuts
13:14 < rsaarelm> Anyway, nice if you figured out the problem.  Like I said,
I haven't done anything with pkg net, so I can't help with it's functionality.
13:16 < Surma> hm, the netpackage does not seem to throw an error at all if
I try to open a port <1024
13:16 -!- nf [~nf@124-168-173-16.dyn.iinet.net.au] has quit [Remote host closed
the connection]
13:17 -!- nf [~nf@124-170-10-58.dyn.iinet.net.au] has joined #go-nuts
13:20 < exch> It seems to throw an error for me when I open a connection on
port 123
13:20 < exch> "listen tcp 127.0.0.1:123: permission denied"
13:21 -!- JBeshir_ [~namegduf@eu.beshir.org] has left #go-nuts []
13:21 -!- JBeshir [~namegduf@eu.beshir.org] has joined #go-nuts
13:30 -!- nf [~nf@124-170-10-58.dyn.iinet.net.au] has quit [Remote host closed the
connection]
13:30 -!- nf [~nf@203-158-33-72.dyn.iinet.net.au] has joined #go-nuts
13:39 -!- nf [~nf@203-158-33-72.dyn.iinet.net.au] has quit [Ping timeout: 252
seconds]
13:41 -!- nf [~nf@124-170-0-87.dyn.iinet.net.au] has joined #go-nuts
13:42 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has joined
#go-nuts
13:47 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
13:47 -!- CMPITG [CMPITG@113.22.109.243] has quit [Quit: Leaving]
13:52 -!- ericvh [~ericvh@32.97.110.63] has joined #go-nuts
13:54 -!- Keltia [roberto@aran.keltia.net] has quit [Read error: Connection reset
by peer]
13:54 -!- Keltia [roberto@aran.keltia.net] has joined #go-nuts
13:54 -!- plexdev [~plexdev@arthur.espians.com] has quit [Ping timeout: 256
seconds]
13:55 -!- Wiz126 [Wiz126@72.20.219.140] has quit [Ping timeout: 256 seconds]
13:56 -!- Xeon [~chatzilla@118.126.12.53] has joined #go-nuts
13:58 -!- hstimer [~hstimer@c-98-234-25-125.hsd1.ca.comcast.net] has joined
#go-nuts
14:02 < Surma> I wanna write a wrapper around fmt.Printf() some way I could
pass my "a ...interface{}" to Printf?  just using Printf(fmt, a) doesnt work
14:02 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
14:03 -!- Wiz126 [~Wiz126@72.20.220.141] has joined #go-nuts
14:03 -!- Wiz126 [~Wiz126@72.20.220.141] has quit [Client Quit]
14:05 -!- nf [~nf@124-170-0-87.dyn.iinet.net.au] has quit [Ping timeout: 260
seconds]
14:06 -!- nf [~nf@124.171.54.115] has joined #go-nuts
14:08 -!- Luixsia [~Luixsia@AToulouse-254-1-34-60.w81-250.abo.wanadoo.fr] has
joined #go-nuts
14:09 < exch> func MyPrintf(msg string, args ...) { fmt.Printf(msg,
args.(interface{})) }
14:09 < exch> something like that?
14:09 < Surma> looks promising
14:09 < Surma> thanks
14:09 < wrtp> exch: i don't think you need the .(interface{}) cast
14:10 < exch> i think that should be []interface{}
14:10 < exch> you do.  it gives a compiler error otherwise
14:10 < exch> "cannot pass args (type interface { }) as a ...  interface { }
(...  mismatch)"
14:10 -!- willwh|afk [~quassel@S010600c09f8af75a.gv.shawcable.net] has joined
#go-nuts
14:10 < exch> the explicit cast to interface{} is needed since a few
versions ago
14:11 < wrtp> oh that's changed
14:11 < wrtp> 'cos this seems to say otherwise: "As a special case, if a
function passes its own ...  parameter, with or without specified type, as the
argument for a ...  in a call to another function with a ...  parameter of
identical type, the parameter is not wrapped again but passed directly.  In short,
a formal ...  parameter is passed unchanged as an actual ...  parameter provided
the types match."
14:11 < Surma> a.(interface{}) is a cast?!
14:12 < wrtp> Surma: it's a dynamic type assertion
14:12 < wrtp> which is basically a cast, with the type checked at runtime
14:13 -!- nsz_ [nsz@morecp.net] has joined #go-nuts
14:13 < Surma> ah okay
14:13 -!- werdan7_ [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
14:13 -!- weechat2 [~weechat@quepasa.solcon.nl] has joined #go-nuts
14:14 < Surma> does not work though, Printf stillt prints weird stuff
14:15 < Surma> http://pastie.org/880956
14:15 < Surma> I tried ti use ...interface ...[]interface and some other
combinations, that's the only one what would compile
14:15 < exch> mm I could swear I got it to work somewhere.  lemme look
around
14:16 < wrtp> ok, i've found the problem
14:16 < wrtp> basically all vararg functions have moved to use the new ...
T interface, e.g.  func Printf(s string, args ...  interface{})
14:17 < wrtp> so you need to declare your function in the same way
14:17 < wrtp> i.e.  func MyPrintf(msg string, args ...  interface{}) {
fmt.Printf(msg, args)}
14:17 -!- Netsplit *.net <-> *.split quits: werdan7, Xurix, maht, willwh,
nsz, kuroneko, u4ia
14:17 < Surma> lemme try that
14:18 -!- maht [~maht__@85-189-31-174.proweb.managedbroadband.co.uk] has joined
#go-nuts
14:18 < wrtp> that works.  although i'm probably not quite at bleeding edge
source.
14:18 < exch> yea.  that works
14:18 < Surma> yup, that works
14:18 < Surma> it's actually pretty straight forward
14:18 < Surma> nice, i like this
14:18 < wrtp> yeah, it works ok
14:19 -!- l00t [~i-i3id3r_@189.105.67.216] has joined #go-nuts
14:19 < wrtp> the one thing that's a bit awkward is if you've got an array
and you wanna pass it to a varargs function
14:19 < l00t> hi ppl
14:19 < exch> lo
14:20 -!- nf [~nf@124.171.54.115] has quit [Ping timeout: 252 seconds]
14:20 < l00t> is there parameters verification in go lang?
14:21 < wrtp> there's an issue for that (issue 640)
14:21 -!- kuroneko [~chris@yayoi.xware.cx] has joined #go-nuts
14:21 < wrtp> l00t: do you mean parameter type checking?
14:22 < l00t> wrtp, yes
14:22 < wrtp> all parameters are type checked in go
14:22 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
14:23 < wrtp> the language is statically typed, except that interfaces wrap
a static type with a dynamic type.
14:23 < l00t> can functions be passed as parameters?
14:24 < wrtp> that's not a very good way of saying though....
14:24 < wrtp> l00t: yes
14:24 -!- gnuvince_ [~vince@70.35.163.145] has joined #go-nuts
14:25 -!- nf [~nf@124-171-14-29.dyn.iinet.net.au] has joined #go-nuts
14:25 < l00t> how work the type checking?
14:26 < wrtp> l00t: the compiler does it.
14:26 -!- gnuvince [~vince@70.35.161.50] has quit [Ping timeout: 276 seconds]
14:27 < wrtp> the specification for the type checking is here:
http://golang.org/doc/go_spec.html#Type_identity_and_compatibility
14:28 -!- l00t [~i-i3id3r_@189.105.67.216] has quit [Read error: Connection reset
by peer]
14:28 < wrtp> that pretty much summarises the whole type system
14:28 < wrtp> although you'll have to look here too:
http://golang.org/doc/go_spec.html#Interface_types
14:29 -!- l00t [~i-i3id3r_@189.105.67.216] has joined #go-nuts
14:29 < l00t> wrtp, hi again
14:29 < wrtp> l00t: i'll repeat in case you didn't see my last remarks
14:29 < Surma> another question for varargs: inside my own printf, how can I
add parameters of my own?  seems like i have to add them somehow to that ...-array
14:29 < wrtp> the specification for the type checking is here:
http://golang.org/doc/go_spec.html#Type_identity_and_compatibility
14:29 < wrtp> that pretty much summarises the whole type system
14:29 -!- lloyda2 [~adam@lloyda2.stu.rpi.edu] has quit [Quit: ""]
14:30 < wrtp> although you'll have to look here too:
http://golang.org/doc/go_spec.html#Interface_types
14:30 < l00t> oks
14:30 -!- souffledev [~soufflede@110-174-144-249.static.tpgi.com.au] has quit
[Quit: <>]
14:30 -!- lloyda2 [~adam@lloyda2.stu.rpi.edu] has joined #go-nuts
14:30 < wrtp> Surma: if you wanna do that, you'd be best printing to a
buffer, then writing that with your extra stuff
14:30 < l00t> are array values binding in compile-time?
14:31 < wrtp> l00t: what do you mean by "bind"
14:31 < wrtp> ?
14:31 < Surma> wrtp: right, it's also cleaner ^^ thanks
14:32 < wrtp> l00t: in go, you've got arrays, which are statically sized,
known at compile-time, and slices, which are dynamically sized, and checked at run
time
14:32 < l00t> how can i explain...
14:32 < wrtp> an array can be turned into a slice, but not the other way
around
14:32 < l00t> wrtp, and the values, are it defineds in run-time?
14:33 < l00t> is it defined in run-time?
14:33 < wrtp> although there's an issue for that (issue 395)
14:33 < wrtp> l00t: which values?
14:34 < l00t> of the arrays
14:34 -!- nf [~nf@124-171-14-29.dyn.iinet.net.au] has quit [Read error: Network is
unreachable]
14:34 < wrtp> yeah, defined at run time.  e.g.  x := []int{23,4,6}; x[0] =
99
14:34 -!- nf [~nf@124-171-2-176.dyn.iinet.net.au] has joined #go-nuts
14:35 < l00t> hm...
14:35 < wrtp> i'm not sure an array would be much use if its values were
always known at compile time...
14:36 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
14:36 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
14:38 < wrtp> l00t: if you're familiar with C, a lot of the go semantics are
quite similar
14:39 < l00t> wrtp, i see
14:39 < wrtp> l00t: but it adds concurrency, dynamic arrays, interfaces,
closures etc
14:39 < wrtp> l00t: and restricts things like pointer arithmetic
14:39 < l00t> wrtp, can i change the array size in run-time?
14:40 -!- NinoScript [~Adium@pc-16-61-86-200.cm.vtr.net] has joined #go-nuts
14:40 < wrtp> l00t: you can make it smaller but not bigger
14:40 < l00t> using slice, sure?
14:41 < wrtp> l00t: for a way of growing an array dynamically, see
http://golang.org/pkg/container/vector/
14:41 < wrtp> l00t: yes
14:41 -!- NinoScript [~Adium@pc-16-61-86-200.cm.vtr.net] has left #go-nuts []
14:41 -!- NinoScript [~Adium@pc-16-61-86-200.cm.vtr.net] has joined #go-nuts
14:41 < l00t> hmm.
14:41 -!- robot12 [~robot12@szhilkin.broker.freenet6.net] has left #go-nuts
["Ухожу я от вас (xchat 2.4.5 или старше)"]
14:42 < wrtp> well, you can kind of expand an array with a slice, but only
up to its originally allocated capacity
14:42 < l00t> i understood...
14:42 < l00t> wrtp, thanks for the help
14:42 < wrtp> l00t: np
14:43 < l00t> i have to go now, but i back to learn more about go
14:43 < wrtp> l00t: it's a good language
14:43 < l00t> i see
14:43 < l00t> bye
14:43 -!- l00t [~i-i3id3r_@189.105.67.216] has quit [Quit: Leaving]
14:44 -!- NinoScript [~Adium@pc-16-61-86-200.cm.vtr.net] has quit [Read error:
Connection reset by peer]
14:44 -!- NinoScript [~Adium@pc-16-61-86-200.cm.vtr.net] has joined #go-nuts
14:45 -!- nf [~nf@124-171-2-176.dyn.iinet.net.au] has quit [Remote host closed the
connection]
14:45 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has joined #go-nuts
14:45 -!- nf [~nf@124-168-137-147.dyn.iinet.net.au] has joined #go-nuts
14:50 -!- nf [~nf@124-168-137-147.dyn.iinet.net.au] has quit [Ping timeout: 240
seconds]
14:52 -!- nf [~nf@124-171-25-105.dyn.iinet.net.au] has joined #go-nuts
14:54 -!- NinoScript [~Adium@pc-16-61-86-200.cm.vtr.net] has quit [Read error:
Connection reset by peer]
14:54 -!- NinoScript [~Adium@pc-16-61-86-200.cm.vtr.net] has joined #go-nuts
14:56 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has quit [Ping
timeout: 258 seconds]
14:56 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Read error:
Connection reset by peer]
14:56 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
14:59 -!- hstimer [~hstimer@c-98-234-25-125.hsd1.ca.comcast.net] has quit [Quit:
hstimer]
14:59 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
14:59 -!- afurlan [~afurlan@scorpion.mps.com.br] has joined #go-nuts
15:00 -!- amorpisseur [~analogue@toulouse.jfg-networks.net] has quit []
15:00 -!- nf [~nf@124-171-25-105.dyn.iinet.net.au] has quit [Read error:
Connection reset by peer]
15:01 -!- nf [~nf@124-168-185-232.dyn.iinet.net.au] has joined #go-nuts
15:02 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Ping timeout:
245 seconds]
15:05 -!- NinoScript1 [~Adium@pc-16-61-86-200.cm.vtr.net] has joined #go-nuts
15:05 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has joined #go-nuts
15:05 -!- NinoScript [~Adium@pc-16-61-86-200.cm.vtr.net] has quit [Read error:
Connection reset by peer]
15:06 -!- nf [~nf@124-168-185-232.dyn.iinet.net.au] has quit [Ping timeout: 268
seconds]
15:08 -!- nf [~nf@124-168-149-58.dyn.iinet.net.au] has joined #go-nuts
15:12 -!- Surma [~bzfsurma@gooseberry.zib.de] has quit [Quit: Leaving.]
15:12 -!- Surma [~bzfsurma@gooseberry.zib.de] has joined #go-nuts
15:12 -!- Surma [~bzfsurma@gooseberry.zib.de] has quit [Client Quit]
15:14 -!- NinoScript [~Adium@pc-16-61-86-200.cm.vtr.net] has joined #go-nuts
15:14 -!- NinoScript1 [~Adium@pc-16-61-86-200.cm.vtr.net] has quit [Read error:
Connection reset by peer]
15:15 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has quit [Quit:
Leaving]
15:17 -!- NinoScript [~Adium@pc-16-61-86-200.cm.vtr.net] has left #go-nuts []
15:17 -!- analogue [~analogue@toulouse.jfg-networks.net] has joined #go-nuts
15:18 -!- tobel [~tobel@pD9E8DFD2.dip.t-dialin.net] has joined #go-nuts
15:18 -!- tobel [~tobel@pD9E8DFD2.dip.t-dialin.net] has quit [Client Quit]
15:22 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
15:23 -!- Damn3d [damn3d@unaffiliated/morpheus/x-0931003] has joined #go-nuts
15:24 -!- NinoScript1 [~Adium@pc-16-61-86-200.cm.vtr.net] has joined #go-nuts
15:28 -!- NinoScript1 [~Adium@pc-16-61-86-200.cm.vtr.net] has left #go-nuts []
15:32 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
15:33 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
15:34 -!- NinoScript [~Adium@pc-16-61-86-200.cm.vtr.net] has joined #go-nuts
15:39 -!- NinoScript [~Adium@pc-16-61-86-200.cm.vtr.net] has quit [Quit: Leaving.]
15:42 -!- hstimer [~hstimer@70.90.170.37] has joined #go-nuts
15:43 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
15:47 -!- mssm [~mssm@ip-95-221-81-62.bb.netbynet.ru] has joined #go-nuts
15:49 -!- nf [~nf@124-168-149-58.dyn.iinet.net.au] has quit [Remote host closed
the connection]
15:49 -!- nf [~nf@124-171-1-251.dyn.iinet.net.au] has joined #go-nuts
15:50 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined
#go-nuts
15:54 -!- nf [~nf@124-171-1-251.dyn.iinet.net.au] has quit [Remote host closed the
connection]
15:54 -!- nf [~nf@124-171-7-140.dyn.iinet.net.au] has joined #go-nuts
15:55 -!- kaigan|work
[~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit [Quit:
kaigan|work]
15:55 -!- werdan7_ [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout:
615 seconds]
15:56 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has joined #go-nuts
15:57 -!- Venom_X [~pjacobs@cpe-67-9-131-167.austin.res.rr.com] has joined
#go-nuts
16:00 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
16:01 -!- nf [~nf@124-171-7-140.dyn.iinet.net.au] has quit [Remote host closed the
connection]
16:02 -!- nf [~nf@124-168-155-184.dyn.iinet.net.au] has joined #go-nuts
16:02 -!- hurtonm [~hurtonm@adsl-dyn-14.95-102-219.t-com.sk] has joined #go-nuts
16:07 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
16:12 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has quit [Quit:
Leaving]
16:14 -!- taruti [taruti@aoi.yi.org] has quit [Ping timeout: 252 seconds]
16:14 -!- taruti [taruti@aoi.yi.org] has joined #go-nuts
16:15 -!- XniX23 [vegy@89-212-10-29.dynamic.dsl.t-2.net] has joined #go-nuts
16:17 -!- nf [~nf@124-168-155-184.dyn.iinet.net.au] has quit [Ping timeout: 258
seconds]
16:19 -!- nf [~nf@124-170-239-248.dyn.iinet.net.au] has joined #go-nuts
16:21 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
16:23 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
16:28 -!- trickie [~trickie@94.100.112.225] has quit [Ping timeout: 276 seconds]
16:31 -!- hevalbaranov [~hevalbara@88.244.42.98] has joined #go-nuts
16:32 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
16:40 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
16:41 -!- nf [~nf@124-170-239-248.dyn.iinet.net.au] has quit [Read error:
Connection reset by peer]
16:42 -!- nf [~nf@124-171-49-23.dyn.iinet.net.au] has joined #go-nuts
16:43 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
16:49 -!- nf [~nf@124-171-49-23.dyn.iinet.net.au] has quit [Ping timeout: 268
seconds]
16:55 -!- gisikw [~gisikw@137.28.186.120] has joined #go-nuts
16:55 -!- gisikw [~gisikw@137.28.186.120] has quit [Client Quit]
16:56 -!- gisikw [~gisikw@137.28.186.120] has joined #go-nuts
16:59 -!- nf [~nf@124-168-167-122.dyn.iinet.net.au] has joined #go-nuts
17:05 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has joined #go-nuts
17:05 -!- Kashia [~Kashia@port-92-200-96-165.dynamic.qsc.de] has joined #go-nuts
17:08 -!- nf [~nf@124-168-167-122.dyn.iinet.net.au] has quit [Ping timeout: 252
seconds]
17:09 -!- nf [~nf@124-171-53-100.dyn.iinet.net.au] has joined #go-nuts
17:09 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has quit [Client
Quit]
17:09 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has joined #go-nuts
17:11 -!- tire0011 [~jars@dslb-088-066-062-071.pools.arcor-ip.net] has joined
#go-nuts
17:14 -!- hevalbaranov [~hevalbara@88.244.42.98] has quit [Quit: WeeChat 0.2.6.3]
17:21 -!- nf [~nf@124-171-53-100.dyn.iinet.net.au] has quit [Ping timeout: 260
seconds]
17:25 -!- nf [~nf@124-168-179-66.dyn.iinet.net.au] has joined #go-nuts
17:27 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
17:32 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 252
seconds]
17:34 -!- nf [~nf@124-168-179-66.dyn.iinet.net.au] has quit [Ping timeout: 260
seconds]
17:40 -!- nf [~nf@124-171-22-222.dyn.iinet.net.au] has joined #go-nuts
17:44 -!- jophish [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts
17:51 -!- nf [~nf@124-171-22-222.dyn.iinet.net.au] has quit [Remote host closed
the connection]
17:51 -!- nf [~nf@124-168-189-208.dyn.iinet.net.au] has joined #go-nuts
17:53 -!- fusion44 [~quassel@p5B284D6E.dip.t-dialin.net] has joined #go-nuts
17:54 -!- ikaros [~ikaros@f051135050.adsl.alicedsl.de] has joined #go-nuts
17:54 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
17:55 -!- nf [~nf@124-168-189-208.dyn.iinet.net.au] has quit [Ping timeout: 240
seconds]
17:58 -!- nf [~nf@124-170-40-188.dyn.iinet.net.au] has joined #go-nuts
18:00 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
18:06 -!- nf [~nf@124-170-40-188.dyn.iinet.net.au] has quit [Ping timeout: 240
seconds]
18:13 -!- JoLeClodo2 [~JoLeClodo@vian.wallinfire.net] has left #go-nuts []
18:13 -!- Rondel [~JoLeClodo@vian.wallinfire.net] has joined #go-nuts
18:14 -!- kssreeram [~kssreeram@122.174.129.183] has joined #go-nuts
18:15 -!- nf [~nf@124-170-155-173.dyn.iinet.net.au] has joined #go-nuts
18:16 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
18:28 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-133-200.netcologne.de] has joined
#go-nuts
18:30 -!- nf [~nf@124-170-155-173.dyn.iinet.net.au] has quit [Read error:
Connection reset by peer]
18:30 -!- nf [~nf@124-168-176-152.dyn.iinet.net.au] has joined #go-nuts
18:31 -!- namus [~administr@113.193.107.22] has joined #go-nuts
18:32 -!- jophish [~jophish@hermi.gotadsl.co.uk] has quit [Remote host closed the
connection]
18:40 -!- fusion45 [~quassel@p5B2874B2.dip.t-dialin.net] has joined #go-nuts
18:42 -!- fusion44 [~quassel@p5B284D6E.dip.t-dialin.net] has quit [Ping timeout:
245 seconds]
18:43 -!- Kashia [~Kashia@port-92-200-96-165.dynamic.qsc.de] has quit [Ping
timeout: 276 seconds]
18:43 -!- ct529 [~quassel@biolpc1758.york.ac.uk] has joined #go-nuts
18:45 -!- gisikw [~gisikw@137.28.186.120] has quit [Quit: Leaving]
18:45 -!- boscop_ [~boscop@f050146173.adsl.alicedsl.de] has joined #go-nuts
18:45 -!- boscop [~boscop@f050133169.adsl.alicedsl.de] has quit [Ping timeout: 260
seconds]
18:46 -!- boscop_ [~boscop@f050146173.adsl.alicedsl.de] has left #go-nuts []
18:46 -!- boscop [~boscop@f050146173.adsl.alicedsl.de] has joined #go-nuts
18:50 -!- nf [~nf@124-168-176-152.dyn.iinet.net.au] has quit [Ping timeout: 268
seconds]
18:50 -!- Kashia [~Kashia@port-92-200-103-81.dynamic.qsc.de] has joined #go-nuts
18:53 -!- nf [~nf@124-168-188-82.dyn.iinet.net.au] has joined #go-nuts
18:56 -!- ct529 [~quassel@biolpc1758.york.ac.uk] has quit [Remote host closed the
connection]
18:58 -!- aho [~nya@e179183146.adsl.alicedsl.de] has joined #go-nuts
19:06 -!- namus [~administr@113.193.107.22] has left #go-nuts []
19:07 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-133-200.netcologne.de] has quit [Quit:
m1ndwarp]
19:11 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
19:15 -!- Venom_X [~pjacobs@cpe-67-9-131-167.austin.res.rr.com] has quit [Ping
timeout: 252 seconds]
19:20 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts
19:21 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Quit:
leaving]
19:23 -!- nf [~nf@124-168-188-82.dyn.iinet.net.au] has quit [Ping timeout: 276
seconds]
19:25 -!- nf [~nf@124-168-181-17.dyn.iinet.net.au] has joined #go-nuts
19:32 -!- cw [~cw@parsec.stupidest.org] has quit [Ping timeout: 260 seconds]
19:38 -!- wrtp [~rog@89.241.218.64] has quit [Ping timeout: 268 seconds]
19:40 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has quit [Quit: Leaving]
19:54 -!- nf [~nf@124-168-181-17.dyn.iinet.net.au] has quit [Ping timeout: 260
seconds]
19:55 -!- jrslepak [~jrslepak@71-13-211-33.dhcp.mrqt.mi.charter.com] has joined
#go-nuts
19:55 -!- nf [~nf@124-168-160-91.dyn.iinet.net.au] has joined #go-nuts
19:56 -!- tire0011 [~jars@dslb-088-066-062-071.pools.arcor-ip.net] has quit
[Remote host closed the connection]
19:56 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Quit: Lost terminal]
19:56 -!- kashia_ [~Kashia@port-92-200-180-227.dynamic.qsc.de] has joined #go-nuts
19:59 -!- wrtp [~rog@78.148.71.250] has joined #go-nuts
20:00 -!- Kashia [~Kashia@port-92-200-103-81.dynamic.qsc.de] has quit [Ping
timeout: 276 seconds]
20:01 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
20:01 -!- meanburrito920_ [~john@unaffiliated/meanburrito920] has quit [Ping
timeout: 248 seconds]
20:06 -!- jrslepak [~jrslepak@71-13-211-33.dhcp.mrqt.mi.charter.com] has left
#go-nuts []
20:06 -!- nettok [~netto@gpacad.ufm.edu] has joined #go-nuts
20:06 -!- jrslepak [~jrslepak@71-13-211-33.dhcp.mrqt.mi.charter.com] has joined
#go-nuts
20:06 -!- nf [~nf@124-168-160-91.dyn.iinet.net.au] has quit [Remote host closed
the connection]
20:07 -!- nf [~nf@124-171-10-3.dyn.iinet.net.au] has joined #go-nuts
20:19 -!- Alexandr [~Alexandr@unaffiliated/alexandr] has joined #go-nuts
20:19 < Alexandr> hi
20:19 -!- nf [~nf@124-171-10-3.dyn.iinet.net.au] has quit [Ping timeout: 258
seconds]
20:25 -!- nf [~nf@124-171-28-41.dyn.iinet.net.au] has joined #go-nuts
20:26 -!- General1337 [~support@71-84-246-14.dhcp.gldl.ca.charter.com] has joined
#go-nuts
20:26 -!- perdix [~perdix@sxemacs/devel/perdix] has quit [Quit: A cow.  A
trampoline.  Together they fight crime!]
20:26 -!- jdp [~gu@75.97.120.11.res-cmts.senj.ptd.net] has quit []
20:28 -!- General13372 [~support@71-84-246-14.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 258 seconds]
20:31 -!- nf [~nf@124-171-28-41.dyn.iinet.net.au] has quit [Remote host closed the
connection]
20:36 -!- nf [~nf@124-171-27-40.dyn.iinet.net.au] has joined #go-nuts
20:37 -!- XniX23 [vegy@89-212-10-29.dynamic.dsl.t-2.net] has quit [Ping timeout:
268 seconds]
20:38 -!- XniX23 [vegy@89-212-10-29.dynamic.dsl.t-2.net] has joined #go-nuts
20:41 -!- nettok [~netto@gpacad.ufm.edu] has quit [Quit: Ex-Chat]
20:45 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 252 seconds]
20:47 < skelterjohn> hi Alexandr
20:47 -!- perdix [~perdix@g230086038.adsl.alicedsl.de] has joined #go-nuts
20:47 -!- perdix [~perdix@g230086038.adsl.alicedsl.de] has quit [Changing host]
20:47 -!- perdix [~perdix@sxemacs/devel/perdix] has joined #go-nuts
20:48 -!- pvandusen [~pdusen@crob4-55.flint.umich.edu] has quit [Quit: Leaving]
20:48 -!- pdusen [~pdusen@crob4-55.flint.umich.edu] has joined #go-nuts
20:51 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
20:53 -!- b00m_chef__ [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts
20:56 -!- franksalim [~frank@adsl-75-61-84-181.dsl.pltn13.sbcglobal.net] has quit
[Quit: Ex-Chat]
20:57 -!- aho [~nya@e179183146.adsl.alicedsl.de] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
20:57 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
21:02 -!- jrslepak [~jrslepak@71-13-211-33.dhcp.mrqt.mi.charter.com] has quit
[Quit: jrslepak]
21:08 -!- akrill [~akrill@dynamic-216-231-57-80.sea0.krillr.com] has joined
#go-nuts
21:09 < akrill> what i want, is a way to write python extensions in go.  :-p
21:09 < akrill> wouldnt that be epic?
21:09 < akrill> (this is where you say yes and nod rapidly)
21:10 -!- Wiz126 [Wiz126@72.20.222.235] has joined #go-nuts
21:11 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Read error:
Connection reset by peer]
21:14 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
21:15 < anticw> akrill: you could with some effort, the api that most
CPython extensions use is very c-centric though, you'd have to accommodate that
21:15 < wrtp> akrill: given that you can't even call go from C yet, i think
it might not be easy...
21:15 < wrtp> (AFAIK)
21:15 -!- fusion45 [~quassel@p5B2874B2.dip.t-dialin.net] has quit [Remote host
closed the connection]
21:15 -!- mssm [~mssm@ip-95-221-81-62.bb.netbynet.ru] has quit [Quit: WeeChat
0.3.0]
21:16 < akrill> what im doing is looking into putting support for doing this
into swig.
21:17 -!- Wiz126 [Wiz126@72.20.222.235] has quit []
21:17 -!- Wiz126 [Wiz126@72.20.222.235] has joined #go-nuts
21:17 < anticw> akrill: swig so you can write python/perl/whatever in Go
rather than c/c++?
21:17 < anticw> the reverse of this is something iant is working on, it
sounds like he has it working even
21:18 < akrill> right
21:18 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Read error:
Connection reset by peer]
21:18 < akrill> so
21:20 < akrill> right now i think the work is being done to allow C/C++
libraries to be loaded into and called from a go app.  what i want to do is
implement the reverse, to allow go libraries to be loaded into a C/C++ app and
called -- that way, in theory, you could generate a light wrapper around a go
library to interface it with interpreted languages like python, perl, ruby, php...
21:20 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
21:20 < akrill> though what may work better is to have the core app written
in go and use python as an embedded scripting engine of sorts.
21:20 < KirkMcDonald> akrill: Possible, but there may be complications.
21:20 <+iant> akrill: if you want to work with 6g/8g, the first will be to
make 6l/8l generate a shared library rather than an executable
21:21 < akrill> iant: right.
21:21 < KirkMcDonald> For instance, I am not sure how this setup would react
if your Python process loaded multiple extension modules written in Go.
21:23 < akrill> i think it would react just fine, or at least i'd hope so --
im new to go, so i may be completely wrong, but given the size of go executables,
the entire go runtime is statically linked into the executable -- so in theory
when each extension would be executing its own runtime, which would be a memory
hog, but would prevent any craziness regarding shared resources (which i assume is
your concern)
21:24 < akrill> the stacks would be independent, goroutine controls would be
independent, etc
21:24 < akrill> i /think
21:24 * akrill could be completely wrong
21:24 < KirkMcDonald> No, that sounds right.
21:26 < akrill> whew.  haha
21:37 -!- nf [~nf@124-171-27-40.dyn.iinet.net.au] has quit [Read error: Network is
unreachable]
21:37 -!- nf [~nf@124-168-148-163.dyn.iinet.net.au] has joined #go-nuts
21:40 -!- robot12 [~robot12@inferno.kgts.ru] has joined #go-nuts
21:47 -!- carllerche [~carllerch@173.75.97.165] has joined #go-nuts
21:49 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
21:49 -!- BlackBook [~sjs@kernel-panic/member/TiBook] has joined #go-nuts
21:51 -!- lazyconfabulator
[~lazyconfa@216-67-51-45-rb2.nwc.dsl.dynamic.acsalaska.net] has joined #go-nuts
22:02 -!- robot12 [~robot12@inferno.kgts.ru] has quit [Quit: Ухожу я от вас (xchat
2.4.5 или старше)]
22:03 -!- afurlan [~afurlan@scorpion.mps.com.br] has quit [Quit: Leaving]
22:03 < BlackBook> Let's see if adding http and net to NOTEST helps.
22:04 -!- ericvh [~ericvh@32.97.110.63] has left #go-nuts []
22:09 -!- lazyconfabulator
[~lazyconfa@216-67-51-45-rb2.nwc.dsl.dynamic.acsalaska.net] has quit [Quit:
Leaving]
22:09 -!- lazyconfabulator
[~lazyconfa@216-67-51-45-rb2.nwc.dsl.dynamic.acsalaska.net] has joined #go-nuts
22:11 < BlackBook> hm.  There's ogle.  Not terribly useful.
22:12 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit:
skelterjohn]
22:14 -!- lazyconfabulator
[~lazyconfa@216-67-51-45-rb2.nwc.dsl.dynamic.acsalaska.net] has left #go-nuts []
22:14 -!- thrillERboy_ [~User@117.193.130.243] has joined #go-nuts
22:15 -!- lazyconfabulator
[~lazyconfa@216-67-51-45-rb2.nwc.dsl.dynamic.acsalaska.net] has joined #go-nuts
22:15 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]]
22:17 -!- thrillERboy_ [~User@117.193.130.243] has quit [Quit: Leaving]
22:21 -!- wrtp [~rog@78.148.71.250] has quit [Quit: wrtp]
22:27 -!- scm [justme@c209005.adsl.hansenet.de] has quit [Ping timeout: 258
seconds]
22:28 -!- Venom_X_ [~pjacobs@cpe-67-9-131-167.austin.res.rr.com] has joined
#go-nuts
22:28 -!- scm [justme@c178081.adsl.hansenet.de] has joined #go-nuts
22:31 -!- pct_ [~pct@deep.tw] has quit [Ping timeout: 260 seconds]
22:31 -!- c9s [~c9s@59-126-64-204.HINET-IP.hinet.net] has quit [Ping timeout: 260
seconds]
22:31 -!- c9s [~c9s@59-126-64-204.HINET-IP.hinet.net] has joined #go-nuts
22:32 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Ping timeout: 245 seconds]
22:33 -!- pct [~pct@deep.tw] has joined #go-nuts
22:33 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
22:37 -!- gnuvince [~vince@70.35.163.145] has quit [Ping timeout: 264 seconds]
22:38 -!- gnuvince [~vince@72.0.216.87] has joined #go-nuts
22:45 -!- franksalim [~frank@adsl-75-61-84-181.dsl.pltn13.sbcglobal.net] has
joined #go-nuts
22:49 -!- mitsuhiko [~mitsuhiko@ubuntu/member/mitsuhiko] has quit [Excess Flood]
22:51 -!- mitsuhiko [~mitsuhiko@ubuntu/member/mitsuhiko] has joined #go-nuts
22:55 -!- BlackBook [~sjs@kernel-panic/member/TiBook] has quit [Quit: This
computer has gone to sleep]
22:55 < kashia_> does anyone know of a ssh library in Go?
22:56 < nf> kashia_: ssh library?  to do what?
22:56 < nf> (no, it doesn't exist AFAIK)
22:57 < kashia_> to not call Exec on the ssh binary :P
22:57 < KirkMcDonald> Well, there's ForkExec...
22:57 < KirkMcDonald> :-)
22:57 < nf> do ssh libs exist for other languages?
22:57 < kashia_> yes
22:59 < nf> You could use cgo to wrap a C library that does what you need.
23:01 < kashia_> I have looked at that, it is kinds of tricky
23:01 < kashia_> kind*
23:04 < kashia_> If one could access the file-descriptor of sockets (easy
enough to hack in) it would be slightly easier
23:15 -!- perdix [~perdix@sxemacs/devel/perdix] has quit [Quit: A cow.  A
trampoline.  Together they fight crime!]
23:20 -!- carllerche [~carllerch@173.75.97.165] has quit [Quit: carllerche]
23:36 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
23:38 -!- lazyconfabulator
[~lazyconfa@216-67-51-45-rb2.nwc.dsl.dynamic.acsalaska.net] has quit [Quit:
Leaving]
23:39 < uriel> kashia_: an ssh lib for go would be nice, but AFAIK nobody
has started to write one yet
23:41 -!- carllerche [~carllerch@173.75.97.165] has joined #go-nuts
23:41 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
23:42 -!- megaboz_ [~megaboz@189.115.35.3] has quit [Ping timeout: 260 seconds]
23:43 -!- megaboz [~megaboz@201.86.72.213.dynamic.adsl.gvt.net.br] has joined
#go-nuts
23:43 -!- lazyconfabulator
[~lazyconfa@216-67-51-45-rb2.nwc.dsl.dynamic.acsalaska.net] has joined #go-nuts
23:45 -!- lazyconfabulator
[~lazyconfa@216-67-51-45-rb2.nwc.dsl.dynamic.acsalaska.net] has quit [Client Quit]
23:57 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-176-214.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
--- Log closed Tue Mar 23 00:00:29 2010