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

--- Log opened Wed Dec 02 00:00:30 2009
00:01 < hagna> so what's wrong with v = vector.NewStringVector(10);
v.Push(s);?  It says can't use *vector as vector
00:01 -!- ztzg_ [n=dash@dslb-084-057-022-097.pools.arcor-ip.net] has joined
#go-nuts
00:01 < KirkMcDonald> hagna: How was v declared?
00:02 < hagna> v := vector.NewStringVector
00:03 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has
quit [Read error: 54 (Connection reset by peer)]
00:03 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
00:05 < kimelto> dho: did you manage to install go with hier(7) conformance?
00:06 < hagna> KirkMcDonald: http://gopaste.org/view/RXCl5
00:07 < KirkMcDonald> hagna: Oh! Well.
00:07 < KirkMcDonald> hagna: You have your isin function taking a
vector.StringVector.
00:07 < KirkMcDonald> hagna: You want it to take a *vector.StringVector.
00:08 < KirkMcDonald> hagna: (See also: The return type of
vector.NewStringVector.)
00:08 < hagna> ok I'll do those things
00:10 -!- raichoo [n=raichoo@i577B86CE.versanet.de] has quit
["http://raichoo.blogspot.com"]
00:13 -!- mbarkhau1 [n=koloss@p54A7F1D8.dip.t-dialin.net] has quit ["Leaving."]
00:13 -!- drusepth [n=drusepth@adsl-71-144-123-15.dsl.spfdmo.sbcglobal.net] has
quit [Read error: 104 (Connection reset by peer)]
00:13 -!- yiyus [i=12427124@je.je.je] has quit [Read error: 110 (Connection timed
out)]
00:13 -!- ztzg [n=dash@dslb-084-057-018-175.pools.arcor-ip.net] has quit [Read
error: 110 (Connection timed out)]
00:14 < Ibw> is copy() new?
00:15 -!- s_mosher [n=smosher@bas1-ottawa10-1279302916.dsl.bell.ca] has joined
#go-nuts
00:15 < Ibw> yup, looks like it.  Has it made it into the documentation yet?
00:16 < Ibw> wai
00:16 < Ibw> wait
00:16 < Ibw> nevermind...
00:17 < Ibw> actuallly
00:17 < Ibw> is there a built in function called copy?
00:18 -!- yiyus [i=12427124@je.je.je] has joined #go-nuts
00:18 < alexsuraci> Ibw: I don't see it in the spec
00:18 < hagna> ooooh crash
00:18 < Ibw> hum, alright alexsuraci
00:18 < Ibw> thanks
00:19 < Ibw> alexsuraci: Neither did I, but there are good number of new
features that haven't made it into the spec yet
00:19 <+iant> Ibw: copy is a new builtin function, recently added
00:19 < dho> kimelto: no, once release is slipped wxs will do a prt
00:19 < Ibw> ah, thanks iant
00:19 < Ibw> Know how to use it?
00:19 < KirkMcDonald> iant: Is it a shallow copy?
00:19 < dho> i've been installing in ~/bin
00:19 < Ibw> Or where to find out how to use it?
00:19 <+iant> KirkMcDonald: it's a slice copy
00:19 < KirkMcDonald> iant: Ah.
00:19 < Ibw> just copy(dest, src)?
00:19 <+iant> Ibw: it's documented in go_spec.html on head
00:19 < Ibw> like bytes.Copy?
00:19 < Ibw> ok
00:19 < Ibw> cool, thanks
00:19 <+iant> yes, like bytes.Copy
00:19 <+iant> only for a slice of any type
00:20 < KirkMcDonald> iant: Why not just permit slice assignment?
00:20 <+iant> The copy function grew out of a long discussion about slice
assignment
00:20 < KirkMcDonald> iant: a[x:x+n] = b[y:y+n]
00:20 < KirkMcDonald> I see.
00:20 <+iant> it leads you into a lot of discussion about when to make the
slice larger, when to reallocate an array....
00:21 < KirkMcDonald> Never and never, I say.
00:21 <+iant> the only thing which seemed clearly needed was copy
00:21 -!- ztzg [n=dash@dslb-084-057-006-232.pools.arcor-ip.net] has joined
#go-nuts
00:21 < KirkMcDonald> If they lengths don't match exactly, make it an error.
00:21 <+iant> that is, clearly needed and clearly simple
00:21 < KirkMcDonald> s/they/the/
00:21 <+iant> well, that's what copy does; once you have slices on the left
hand of an assignment, a lot of other things seem desirable there
00:23 < KirkMcDonald> iant: What are the semantics of copy() when two slices
overlap?
00:23 < kimelto> dho: yep, I know, I've talked to him.  But I want to solve
this file hierarchy problem.  :)
00:23 <+iant> KirkMcDonald: it does the right thing--it's like memmove
00:23 < KirkMcDonald> Ah, nice.
00:23 < hagna> so it's crashing when I use vector I think in this method any
idea?  http://gopaste.org/view/T5COh
00:26 < Ibw> ergh, is there a way to build without rebuilding everything?
I'm on a slow comp, so it takes forever to rebuild the entire library when I only
changed two files
00:26 < KirkMcDonald> If only there were some sort of build utility which
was capable of only building what was required.
00:27 < dagle> How come Exec only return an error instead of result and an
error?
00:27 < KirkMcDonald> dagle: Are you referring to exec.Run?
00:27 -!- Annirak [n=bremoran@S0106001cf0b854c6.vf.shawcable.net] has quit [Remote
closed the connection]
00:27 < Ibw> KirkMcDonald: ha...
00:27 < Ibw> KirkMcDonald: wait...  darn...
00:27 < dagle> KirkMcDonald: os.exec
00:27 -!- nf_ [n=nf@203-214-149-37.perm.iinet.net.au] has joined #go-nuts
00:28 -!- clearscreen [n=clearscr@62.140.137.121] has quit [Read error: 104
(Connection reset by peer)]
00:28 < Ibw> KirkMcDonald: I meant, is there a way to run all.run without
cleaning first?  I can of course call the appropriate makefiles in the package
forlders I want...  but
00:28 < Ibw> ah, whatever
00:28 < Ibw> I won't try to recover from that stupidity
00:28 < plexdev> http://is.gd/59rvl by [Robert Griesemer] in go/doc/ --
Integrated feedback by Ken.
00:28 < plexdev> http://is.gd/59rvr by [Russ Cox] in go/src/pkg/gob/ -- gob:
fix build
00:28 < plexdev> http://is.gd/59rvu by [Rob Pike] in go/src/pkg/unicode/ --
update package unicode to Unicode 5.2
00:28 <+iant> Ibw: there aren't proper cross-directory dependencies
00:28 < KirkMcDonald> Ibw: You can run make.bash as opposed to all.bash.
00:28 < nf_> quick question, building go for the first time: is the test
after '--- cd ../test' supposed to take quite some time?
00:29 < Ibw> Have any of you been following the mailing list?  Doesn't
GoStones remind you of gallstones?
00:29 <+iant> nf_: it does take a while, yes, but it doesn't take more than
a few minutes
00:29 < Ibw> g-stones
00:29 < KirkMcDonald> dagle: Do you literally need to replace the current
process?
00:29 < Ibw> Also, does a code review response of NB mean not-bad do you
think?
00:29 < nf_> iant: okay.  it's just using 50% system time on both cores,
wondering whether it's spinlocked
00:29 < KirkMcDonald> dagle: If you just want to start a subprocess, then
exec.Run is what you want.
00:30 < KirkMcDonald> dagle: Er, so to answer the question, os.Exec doesn't
return a result, since if it succeeds, no more Go code will be executed.
00:30 -!- clearscreen [n=clearscr@62.140.137.121] has joined #go-nuts
00:30 -!- mkanat [n=mkanat@c-67-188-1-39.hsd1.ca.comcast.net] has joined #go-nuts
00:31 < dagle> KirkMcDonald: What I want to do is: result := SomeExec(prog);
00:31 < dagle> result, err*
00:31 -!- ztzg__ [n=dash@dslb-084-057-006-196.pools.arcor-ip.net] has joined
#go-nuts
00:32 < KirkMcDonald> dagle: Where result is...  what?  The stdout of the
process?
00:32 -!- ztzg_ [n=dash@dslb-084-057-022-097.pools.arcor-ip.net] has quit [Read
error: 110 (Connection timed out)]
00:32 < dagle> KirkMcDonald: Yes.
00:32 < KirkMcDonald> I wrote a thing for this.
00:32 < Ibw> dagle: ah
00:32 < KirkMcDonald> Let me track it down.
00:32 < Ibw> That would be useful
00:32 < KirkMcDonald> dagle: But, for the record, you definitely want
exec.Run.
00:32 < Ibw> KirkMcDonald: Do you have a github of all your go stuff?
00:32 < KirkMcDonald> No.
00:33 < KirkMcDonald> My optparse is on code.google.com.
00:33 < KirkMcDonald> In an hg repo.
00:33 < Ibw> ok
00:33 -!- clearscreen [n=clearscr@62.140.137.121] has quit [Client Quit]
00:33 < Ibw> Hey, what would be a good name for a string utility library?
00:33 < Ibw> superstrings...
00:33 < Ibw> heh
00:33 < KirkMcDonald> And that's my only public Go project.
00:33 < KirkMcDonald> Ibw: util
00:33 < KirkMcDonald> :-)
00:33 < KirkMcDonald> Okay, I am not good with the names.
00:34 -!- ziyu4huang [n=ziyu_hua@220-133-3-82.HINET-IP.hinet.net] has quit []
00:34 -!- blackdog [n=user@pc-92-73-104-200.cm.vtr.net] has joined #go-nuts
00:35 < KirkMcDonald> dagle, Ibw: So here's a thing:
http://gopaste.org/view/eS6Sm
00:35 < KirkMcDonald> My first real channel-using code.  I don't know if it
is idiomatic or what.
00:35 < KirkMcDonald> But it gives every appearance of working.
00:37 < KirkMcDonald> There are two functions there, call and communicate.
00:37 -!- XniX23 [i=vegy@89-212-233-217.dynamic.dsl.t-2.net] has quit [Read error:
60 (Operation timed out)]
00:37 < KirkMcDonald> They should probably be named Call and Communicate.
Whatever.
00:38 < KirkMcDonald> Users of Python will probably find 'communicate'
familiar.
00:42 -!- ztzg [n=dash@dslb-084-057-006-232.pools.arcor-ip.net] has quit [Read
error: 110 (Connection timed out)]
00:42 -!- hstimer [n=hans@70.90.170.37] has joined #go-nuts
00:45 -!- blackdog [n=user@pc-92-73-104-200.cm.vtr.net] has left #go-nuts ["ERC
Version 5.3 (IRC client for Emacs)"]
00:51 -!- bengl [n=benglish@oasis.nexus.carleton.ca] has quit [Read error: 104
(Connection reset by peer)]
00:51 -!- bengl [n=benglish@oasis.nexus.carleton.ca] has joined #go-nuts
00:59 -!- kota1111 [n=kota1111@gw2.kbmj.jp] has joined #go-nuts
00:59 -!- directrixx [n=directri@ip68-231-189-247.tc.ph.cox.net] has joined
#go-nuts
00:59 < plexdev> http://is.gd/59sQy by [David Symonds] in go/misc/vim/ --
Add 'copy' as a Go builtin function for Vim syntax highlighter spec.
00:59 < plexdev> http://is.gd/59sQB by [Russ Cox] in go/src/pkg/syscall/ --
syscall: add Shutdown on OS X, add more constants in mkerror.sh
01:02 -!- chachan [n=chachan@150.187.40.27] has joined #go-nuts
01:07 -!- sladegen [n=nemo@unaffiliated/sladegen] has quit [Read error: 104
(Connection reset by peer)]
01:07 -!- sladegen [n=nemo@unaffiliated/sladegen] has joined #go-nuts
01:10 -!- itorres [n=itorres@92.243.24.234] has quit ["Sonría, mañana puede ser
tarde.  (Quit patrocinado por la asociación de odontólogos)"]
01:10 -!- FANDER [n=FANDER@78.110.109.172] has joined #go-nuts
01:10 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 54 (Connection
reset by peer)]
01:10 -!- itorres [n=itorres@gandi.bedynamic.net] has joined #go-nuts
01:11 -!- leitaox [n=leitaox@187.88.98.251] has joined #go-nuts
01:13 -!- hipe [n=hipe@69.193.196.185] has quit [Remote closed the connection]
01:13 -!- FANDER [n=FANDER@78.110.109.172] has left #go-nuts []
01:15 -!- aaront [n=aaront@d24-141-25-171.home.cgocable.net] has joined #go-nuts
01:16 -!- anupamk [n=anupamk@122.169.85.210] has joined #go-nuts
01:16 -!- punya [n=Adium@c-24-19-57-173.hsd1.wa.comcast.net] has joined #go-nuts
01:16 -!- punya [n=Adium@c-24-19-57-173.hsd1.wa.comcast.net] has quit [Client
Quit]
01:16 < anupamk> hi all
01:17 < anupamk> simple question: how do i pass array literals to functions
?
01:17 < anupamk> basically, i can define array-literals without specifying
the array size e.g.  int[...] {1,2,3,4,..}
01:19 -!- anupamk [n=anupamk@122.169.85.210] has quit ["Ex-Chat"]
01:19 -!- anupamk_ [n=anupamk@122.169.85.210] has joined #go-nuts
01:19 -!- anupamk_ [n=anupamk@122.169.85.210] has quit [Connection reset by peer]
01:20 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit ["Leaving"]
01:20 < KirkMcDonald> anticw: []int{1, 2, 3, 4, 5}
01:20 < KirkMcDonald> Err.
01:20 < KirkMcDonald> Oh, he left.
01:23 -!- scarabx_ [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has joined
#go-nuts
01:23 -!- cpr420 [n=cpr420@67.165.199.143] has joined #go-nuts
01:24 -!- scarabx [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit [Read
error: 60 (Operation timed out)]
01:24 -!- mkanat [n=mkanat@c-67-188-1-39.hsd1.ca.comcast.net] has quit ["Bye!"]
01:25 -!- mythz [n=mythz@5ac47bc6.bb.sky.com] has joined #go-nuts
01:25 < anticw> KirkMcDonald: i'm here ...  is that a question?
01:25 < anticw> oh
01:25 < anticw> wrong nick, nm
01:29 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit []
01:33 < Ibw> heh
01:36 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts
01:37 < Ibw> I can't figure out what to do with goroutines to learn how to
use them
01:39 -!- CaptainLucifel [n=captainl@191.164.66-86.rev.gaoland.net] has quit [Read
error: 113 (No route to host)]
01:40 -!- aaront [n=aaront@unaffiliated/aaront] has quit ["And that's all he
wrote..."]
01:45 < Ibw> KirkMcDonald: He left and went to the mailing list to ask
01:45 < Ibw> KirkMcDonald: Which was rather silly, as you answered his
question
01:45 < Ibw> Whatever though
01:51 < Ibw> Operator overloading would be nice.
01:52 -!- triplez [n=triplez@bb116-14-67-69.singnet.com.sg] has joined #go-nuts
01:53 -!- Ryan___ [n=ryan@cpe-98-27-182-206.neo.res.rr.com] has joined #go-nuts
01:54 -!- beardeddog [n=beardedd@24.20.122.211] has joined #go-nuts
01:54 -!- rhelmer [n=rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has quit
[]
01:55 < Ibw> What do you think, would it make sense to add a pow function to
the bignum package?
01:56 -!- gasreaa [n=atwong@nat/slide/x-jbimlnzvrzotohgb] has left #go-nuts []
01:57 -!- s_mosher [n=smosher@bas1-ottawa10-1279302916.dsl.bell.ca] has left
#go-nuts ["Leaving"]
01:57 -!- s_mosher [n=smosher@bas1-ottawa10-1279302916.dsl.bell.ca] has joined
#go-nuts
02:00 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
02:01 < Ibw> oh man, to cot function in math?
02:03 < Ibw> *no
02:05 < Jerub> Ibw: cot(x) == 1/tan(x)
02:05 < Whtiger> 1/tan?
02:05 < Ibw> um
02:05 < Ibw> hah
02:06 < Ibw> I don't think it does
02:06 < Jerub> Ibw: it is also tan(pi/2 - x)
02:06 < spook327> that's correct, that's cot
02:07 < Jerub> tan(x) = opp/adj, cot(x) = adj/opp
02:07 < Ibw> I understand what cot is.
02:08 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined
#go-nuts
02:08 < Whtiger> cot = sin/cos = 1/tan, what's the issue?
02:08 < Ibw> Jerub: I could use the function you gave, but I'd rather not,
mostly because I want to calculate pi using cot and using pi to calculate pi just
doesn't seem right.  Anyway, I'll use a Maclauren sequence to calculate it
02:08 < Ibw> let's see
02:08 < Whtiger> 4*atan(1)?
02:08 < Jerub> Ibw: uh, what's wrong with using 1/tan(x) then?
02:09 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit []
02:09 < Ibw> wait a second...
02:09 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
quit [Remote closed the connection]
02:09 < Jerub> Whtiger: atan isn't the same as cot
02:10 < Whtiger> Jerub: thannks, but he said he wanted to calculate pi
>_>
02:10 < Ibw> hah, sorry.  I was thinking tan^-1, which is atan
02:10 < Ibw> silly me
02:10 < Ibw> ...
02:10 < Whtiger> =)
02:10 -!- Daminvar [n=Daminvar@129.21.81.8] has joined #go-nuts
02:10 < Jerub> see, this is why wikipedia is awesome.
02:11 < Whtiger> I didn't use wikipedia >_>
02:12 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has quit []
02:14 < nf_> haha
02:14 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
joined #go-nuts
02:16 -!- Ryan___ [n=ryan@cpe-98-27-182-206.neo.res.rr.com] has quit [Read error:
104 (Connection reset by peer)]
02:16 -!- Ryan____ [n=ryan@cpe-98-27-182-206.neo.res.rr.com] has joined #go-nuts
02:17 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has
quit [Read error: 104 (Connection reset by peer)]
02:22 -!- Ryan____ [n=ryan@cpe-98-27-182-206.neo.res.rr.com] has quit ["Colloquy
for iPhone - http://colloquy.mobi"]
02:22 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
02:22 -!- mythz [n=mythz@5ac47bc6.bb.sky.com] has quit []
02:26 < exch> hmm.  transferring open file descriptors to a new process
seems to be problematic..  at least when forked using os.Exec().
02:30 < Whtiger> exch: Yeah, I couldn't figure it out (though I didn't spend
much time)
02:31 < exch> http://gopaste.org/view/4K372
02:32 -!- quietdev [n=quietdev@unaffiliated/quietdev] has joined #go-nuts
02:32 < exch> It may be possible by bypassing the os.File bits and going
directly to the underlying syscall interface, but i havn't tried that yet
02:32 < exch> even then any open FD's may simply be killed when the host
process ends
02:33 < Whtiger> Doesn't os.Exec() hand over the fds?
02:33 < Whtiger> er, process id
02:33 < exch> os.Exec does create the new proc with the current procid
02:33 < exch> but that doesn't seem to matter much
02:34 < exch> both processes in my post have pid 25567
02:34 < anticw> dho: fwiw, mkerrors.sh isn't give the expected sort order
02:34 < exch> i'm also not sure why, but the fd for any file I create is
always 3
02:35 < Whtiger> weird, I got 3 too >_>
02:35 < anticw> exch: the FDs are inherited by the new process?
02:35 < anticw> or data is lost?
02:36 < anticw> i had to explcitly flush in some cases since there are no
finalizers to do that for me
02:36 < exch> apparently the fd is invalidated
02:36 < anticw> tried setting to not be CLOEXEC?
02:36 < Whtiger> I'd love to be able to hand over a network connection to
the new process.
02:37 < exch> anticw: not yet.  could try that
02:37 -!- Daminvar [n=Daminvar@129.21.81.8] has quit ["Leaving"]
02:38 < exch> the os.File functions seem to be hard wired to use CLOEXEC if
it's supported.
02:38 < exch> from os.Open(): r, e := syscall.Open(name,
flag|syscall.O_CLOEXEC, perm);
02:38 < anticw> exch: check the exec code, it's expected
02:39 < anticw> well, that's wrt to forking i guess
02:41 < Ibw> What would cause a float to become Inf?
02:43 <+iant> Ibw: any number of things, really; it's basically an overflow
value
02:45 < Ibw> ah, I found the error
02:45 < Ibw> I wonder...  would the compiler catch a divide by zero, or just
call it inf?
02:46 < anticw> exch: forkExec sets CLOEXEC
02:47 < anticw> why Inf not NaN?
02:47 < Whtiger> NaN is like, divining by 0.
02:48 <+iant> Dividing a non-zero value by zero, in a floating point type,
gives you a positive or negative infinity
02:48 <+iant> Dividing zero by zero, in a floating point type, gives you a
NaN
02:48 <+iant> This is from IEEE-754, it's not Go specific
02:48 < Whtiger> oh, I did not know that.  Good to know.
02:48 < exch> i'm looking at the code now.  I just tried passing the open FD
as the part of the intfd[] list to syscall.ForkExec, but it doesn't seem to keep
things open.  I'll try and manually do the syscall bits and make sure CLOEXEC is
not set and see what happens.
02:49 -!- hstimer [n=hans@70.90.170.37] has quit [Read error: 110 (Connection
timed out)]
02:49 < dho> anticw: ?
02:50 < anticw> dho: dinner cooking context switch meant i lost state...
did i ping you?
02:50 < Ibw> iant: Java always threw a DivideByZero exception rather than
returning some non-useful number
02:51 <+iant> Ibw: even in floating point point?  huh.
02:52 < dho> 21:36 < anticw> dho: fwiw, mkerrors.sh isn't give the
expected sort order
02:52 < dho> 119.921u 30.712s 2:20.26 107.3% 1609+1214k 615+2773io 250pf+0w
02:52 < dho> that's not bad for a ./all.sh
02:53 -!- hstimer [n=hans@c-98-234-25-125.hsd1.ca.comcast.net] has joined #go-nuts
02:55 < exch> sweet.  it works
02:55 < exch> http://gopaste.org/view/3qSE3
02:58 < Whtiger> exch: does that mean you can share a network connection
across the processes?
02:58 < exch> if a network connection is nothing more than an FD, then yes.
Not sure about that thuogh
02:58 -!- mashbridge [n=pangloss@c-98-207-93-195.hsd1.ca.comcast.net] has joined
#go-nuts
02:58 < Whtiger> I'm not completely sure either, but I think somewhere down
inside it is.
02:59 < exch> you wuold probably need to do yuor own modified implementation
of the Dial() method if it does the CLOEXEC'd syscall somewhere deep inside
02:59 < exch> shouldn't be too difficult.  openForkSafe() really is just a
copy/paste of the os.Open() call with the CLOEXEC flag bits removed
03:00 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit
[Remote closed the connection]
03:01 < exch> src/pkg/net/fd.go
03:01 < exch> looks like it is
03:02 < dho> yes, they are fds in go as they are in c as they are in unix
and unix-like operating systems
03:02 < exch> that answers that then :p
03:02 < Ibw> So, for calculating pi to a number of sig figs, I imagine I
would take advantage of the bignum package.  But how to I represent the float
output of atan (and every other method of calculating pi) using Integers?
03:02 < exch> shouldn;t be a problem to pass an open tcp connection from one
process to another
03:03 < Ibw> would, say intArray[0] correspond to the tenths place and so
on?
03:03 < Ibw> or
03:03 < Ibw> something else like that
03:04 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined
#go-nuts
03:05 -!- amacleod [n=amacleod@c-24-34-33-96.hsd1.ma.comcast.net] has quit ["Bye
Bye"]
03:09 -!- leitaox [n=leitaox@187.88.98.251] has quit [Client Quit]
03:11 -!- Xerofait [n=xerofait@66.44.226.25] has quit []
03:11 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit
[]
03:11 < Ibw> ?
03:15 < anticw> Ibw: use Rational from bignum?
03:15 -!- djanderson [n=dja@hltncable.pioneerbroadband.net] has joined #go-nuts
03:16 < anticw> Ibw: nm, that's not useful
03:16 < Ibw> anticw: That would be great, except that pi is not rational
03:16 < Ibw> hah
03:16 < Ibw> No, this is more fundamental, not specific to Go
03:17 < Ibw> How would one represent a really big float in an int array?
03:17 < Ibw> Whatever though, I'll find it elsewhere
03:17 < anticw> i thought bignum might ...  some libraries do that
03:17 < Ibw> anticw: Thanks, anyway
03:17 < Ibw> well, let's see
03:18 -!- Venom_X [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has quit []
03:18 -!- kaib [n=kaib@c-76-102-52-156.hsd1.ca.comcast.net] has joined #go-nuts
03:18 -!- mode/#go-nuts [+v kaib] by ChanServ
03:18 < anticw> Ibw: anyhow, if you want to calc a lot of digits of pi as a
benchmark ive seen some neat stuff where people use agm & fft
03:18 <+kaib> evening everyone
03:19 < exch> lo
03:20 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit
[Remote closed the connection]
03:20 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit []
03:21 -!- mitchellh2 [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
03:23 -!- franksalim [n=frank@adsl-76-221-202-115.dsl.pltn13.sbcglobal.net] has
quit ["Ex-Chat"]
03:23 < exch> Whtiger: it seems src/pkg/net/sock.go uses some funky ForkLock
magic in the socket() call.  As well as a syscall.CloseOnExec(s); call which will
probably close the socket off for forked processes.  You'll have to either modify
the net package source or copy/paste the call chain from DialTCP all the way down
to socket() into your own code and modify it as needed.
03:24 < Whtiger> :<
03:24 < exch> the only function you actually have to modify is socket()
though.  The rest can just be used as-is.
03:25 < exch> I might give this a try tomorrow.  when my brain has returned
from it's current liquid state.
03:26 < exch> There's a good reason for the forklock bits though.  SO i'm
not sure what removing it will do.  It might unleash all sorts of angry demons
03:27 < exch> Only one way to find out I suppose :p
03:28 -!- rndbot [n=bot@wikipedia/Gracenotes] has quit [Remote closed the
connection]
03:29 -!- drusepth [n=drusepth@adsl-71-144-123-15.dsl.spfdmo.sbcglobal.net] has
joined #go-nuts
03:29 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
[Read error: 110 (Connection timed out)]
03:31 -!- Ibw [n=isaac@cpe-67-241-42-134.twcny.res.rr.com] has quit [Remote closed
the connection]
03:32 < plexdev> http://is.gd/59z1P by [Devon H. O'Dell] in
go/src/cmd/gofmt/ -- FreeBSD needs #!/usr/bin/env bash (fixes broken build on
FreeBSD)
03:33 -!- rndbot [n=bot@wikipedia/Gracenotes] has joined #go-nuts
03:34 -!- kiva [n=quassel@r220-101-159-148.cpe.unwired.net.au] has joined #go-nuts
03:35 -!- mitchellh2 [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
["Leaving."]
03:40 -!- mashbridge [n=pangloss@c-98-207-93-195.hsd1.ca.comcast.net] has quit []
03:42 -!- nuggien [n=Adium@c-71-198-205-240.hsd1.ca.comcast.net] has joined
#go-nuts
03:43 -!- Sungem [i=Sungem@118-168-239-163.dynamic.hinet.net] has joined #go-nuts
03:47 -!- nigwil [n=chatzill@berkner.ccamlr.org] has left #go-nuts []
03:51 -!- drusepth` [n=drusepth@adsl-70-141-192-168.dsl.spfdmo.sbcglobal.net] has
joined #go-nuts
03:53 -!- aaront [n=aaront@d24-141-25-171.home.cgocable.net] has joined #go-nuts
03:55 < dho> well, virtualbox isn't horribly slow
03:57 < dho> 6 minutes for all.sh on up i386
03:59 * dho wonders if adding a second processor and more fake ram will help
04:00 -!- halfdan [n=halfdan@p57A947DF.dip.t-dialin.net] has joined #go-nuts
04:01 < me__> dho: by default make has -j4 on somewhere in the build; iirc
vbox also can use >1 host cpu
04:03 < dho> well we'll just try again won't we :)
04:03 < dho> I think it's -j8 in go's build
04:03 -!- path[l] [n=path@115.240.99.56] has joined #go-nuts
04:03 -!- halfdan_ [n=halfdan@p57A94753.dip.t-dialin.net] has quit [Operation
timed out]
04:03 < me__> if not, i know kvm can.  and qemu can't.
04:04 < kimelto> anyone have already asked to get rid of bash in the build
system?  what was the answer?
04:04 < dho> I think it's stupid, but it won't happen
04:04 <+iant> genuinely portable sh is painful
04:04 < dho> linux sh isn't
04:04 < dho> ^iant
04:04 <+iant> some linuxes use bash as /bin/sh, some use dash
04:05 < kimelto> it's sad, but the autohells make more sense than bash :p
04:05 < dho> not really
04:05 < dho> it's just 1 more dependency over mercurial, bison, and gnu make
04:05 <+iant> maybe if somebody rewrote the scripts in very portable sh rsc
could be talked into it, but right now he seems fairly opposed
04:05 -!- drusepth [n=drusepth@adsl-71-144-123-15.dsl.spfdmo.sbcglobal.net] has
quit [Read error: 110 (Connection timed out)]
04:06 < dho> what do you know, double the ram and add a 2nd cpu and ./all.sh
is almost twice as fast.
04:06 < dho> s/sh/bash/
04:06 < dho> bleh
04:07 -!- quietdev [n=quietdev@unaffiliated/quietdev] has quit [Remote closed the
connection]
04:07 -!- tar_ [n=tom@c-67-180-208-162.hsd1.ca.comcast.net] has joined #go-nuts
04:07 < dho> 153.008u 65.040 s 3:47.51 95.8%
04:07 < dho> t'aint bad.
04:08 < dho> iant: know if there are plans to slip the release tag any time
soon?
04:09 <+iant> I don't know, I just got back from Thanksgiving today and
haven't been in the office
04:09 -!- directrixx [n=directri@ip68-231-189-247.tc.ph.cox.net] has quit
["Leaving"]
04:10 < Makavel> hi...  What does the flag.Int, flag.Bool, flag.String
actually do?  I dont quite get it
04:11 < dho> iant: ah, welcome back :)
04:11 < dho> how was the vaca?
04:11 <+iant> nice
04:13 < dho> sweet
04:13 < dho> well i got my syscall changes in, i think it's about time for
me to call it a night
04:13 -!- amacleod [n=amacleod@c-24-34-33-96.hsd1.ma.comcast.net] has joined
#go-nuts
04:15 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts
04:15 < kimelto> what's mandatory in $GOROOT?  I mean, is src/ usefull, for
example?
04:16 < tar_> I have a string that I want the []byte of.  Is
syscall.StringByteSlice(s) the only way to do that?
04:16 < dho> kimelto: ?
04:16 < dho> are you trying to do a port?
04:17 < kimelto> nop, Im trying to solve the problem that might show up when
doing so
04:17 < dho> $GOROOT/pkg is necessary as is $GOBIN
04:17 < dho> I'd expect GOROOT to be something like /usr/local/libexec/go/
04:17 < tar_> dang, strings package
04:18 < kimelto> why libexec?
04:19 < dho> Dunno, seems right, maybe lib is better
04:19 < dho> I don't care much
04:20 < kimelto> ;)
04:20 < dho> anyway
04:20 * dho sleep
04:20 < dho> nite
04:20 < kimelto> gn8 dho
04:23 -!- drusepth` [n=drusepth@adsl-70-141-192-168.dsl.spfdmo.sbcglobal.net] has
quit [Read error: 110 (Connection timed out)]
04:24 -!- sladegen [n=nemo@unaffiliated/sladegen] has quit [Read error: 104
(Connection reset by peer)]
04:27 -!- skyyy [i=caw@res55551479.rh.rit.edu] has quit [Client Quit]
04:28 -!- lolsuper_ [n=super_@unaffiliated/lolsuper-/x-9881387] has quit
["Leaving"]
04:28 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has joined
#go-nuts
04:29 -!- sladegen [n=nemo@unaffiliated/sladegen] has joined #go-nuts
04:32 < tar_> how can I go from []byte to string?
04:34 < tar_> I'm surfing http://golang.org/pkg/ to find this stuff, but I
don't think it has everything.  Like where would I have found len() and cap()?
04:36 -!- kaib_ [n=kaib@c-76-102-52-156.hsd1.ca.comcast.net] has joined #go-nuts
04:36 -!- mode/#go-nuts [+v kaib_] by ChanServ
04:36 -!- kaib [n=kaib@c-76-102-52-156.hsd1.ca.comcast.net] has quit [Read error:
104 (Connection reset by peer)]
04:37 < scandal> tar_: you can use string() to convert
04:37 < tar_> scandal: cool, thanks
04:39 < anticw> tar_: len & cap are there
04:39 < anticw> in detail
04:39 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection]
04:40 < tar_> anticw: Where?  Which package?
04:41 < scandal> They are in the language spec.
04:42 < anticw> copy, len, cap are built-in functions
04:44 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined
#go-nuts
04:46 -!- Makavel [n=eddw@hoasb-ff08dd00-36.dhcp.inet.fi] has quit ["Leaving"]
04:46 -!- amuck [n=amuck@h89.50.19.98.dynamic.ip.windstream.net] has joined
#go-nuts
04:49 -!- aaront [n=aaront@unaffiliated/aaront] has quit ["And that's all he
wrote..."]
04:49 < tar_> I had to check strings package for string -> []byte, but
language spec for []byte -> string.  That's why I was lost.
04:50 < anticw> yeah, i agree for some of this stuff there is an apparent
lack of symmetry
05:01 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined
#go-nuts
05:02 -!- halfdan_ [n=halfdan@p57A9697A.dip.t-dialin.net] has joined #go-nuts
05:03 -!- melba [n=blee@unaffiliated/lazz0] has joined #go-nuts
05:03 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit []
05:04 -!- alec [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined #go-nuts
05:04 -!- alec [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Read
error: 104 (Connection reset by peer)]
05:05 -!- rhelmer [n=rhelmer@adsl-69-107-65-140.dsl.pltn13.pacbell.net] has joined
#go-nuts
05:06 -!- alec [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined #go-nuts
05:06 -!- KillerX [n=anant@122.181.150.106] has joined #go-nuts
05:06 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
05:06 -!- alec [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Client
Quit]
05:08 -!- maacl [n=mac@0x573526c8.virnxx17.dynamic.dsl.tele.dk] has quit []
05:10 -!- alec [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined #go-nuts
05:11 -!- amacleod [n=amacleod@c-24-34-33-96.hsd1.ma.comcast.net] has quit [Nick
collision from services.]
05:11 -!- itrekkie [n=itrekkie@ip72-200-105-72.tc.ph.cox.net] has quit []
05:12 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit
[Remote closed the connection]
05:12 -!- rhelmer [n=rhelmer@adsl-69-107-65-140.dsl.pltn13.pacbell.net] has quit
[]
05:13 -!- amuck_ [n=amuck@h208.57.19.98.dynamic.ip.windstream.net] has joined
#go-nuts
05:16 -!- turutosiya [n=turutosi@219.106.251.65] has joined #go-nuts
05:17 -!- halfdan [n=halfdan@p57A947DF.dip.t-dialin.net] has quit [Read error: 110
(Connection timed out)]
05:19 -!- ni| [n=james@c-24-34-220-147.hsd1.ma.comcast.net] has joined #go-nuts
05:21 -!- abford [n=abford@c-71-205-224-173.hsd1.mi.comcast.net] has joined
#go-nuts
05:22 -!- chachan [n=chachan@150.187.40.27] has quit ["KVIrc Insomnia 4.0.0,
revision: , sources date: 20090520, built on: 2009/06/06 11:44:47 UTC
http://www.kvirc.net/"]
05:23 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined
#go-nuts
05:27 -!- savy [n=s@w.opr.im] has joined #go-nuts
05:28 -!- amuck [n=amuck@h89.50.19.98.dynamic.ip.windstream.net] has quit [Read
error: 110 (Connection timed out)]
05:33 -!- droid001 [n=g1@p4FDCAFB5.dip.t-dialin.net] has joined #go-nuts
05:35 -!- grizzlysmit [n=grizzlys@123-243-91-241.tpgi.com.au] has joined #go-nuts
05:35 -!- grizzlysmit [n=grizzlys@123-243-91-241.tpgi.com.au] has left #go-nuts []
05:36 -!- path[l] [n=path@115.240.99.56] has quit [Read error: 110 (Connection
timed out)]
05:36 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has joined #go-nuts
05:36 -!- wiretapped [n=leif@pony.noisebridge.net] has quit [Remote closed the
connection]
05:43 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
quit [Remote closed the connection]
05:43 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit []
05:47 -!- rup [i=Rupert@deathcoil.net] has quit [Read error: 110 (Connection timed
out)]
05:48 -!- droid0011 [n=g1@p4FDCE569.dip.t-dialin.net] has quit [Success]
05:48 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
joined #go-nuts
05:49 < plexdev> http://is.gd/59Eev by [Evan Shaw] in go/src/cmd/8g/ -- 8g:
Match sgen definition to declaration
05:49 < plexdev> http://is.gd/59Eey by [Devon H. O'Dell] in
go/src/pkg/syscall/ -- Add syscall.Shutdown to FreeBSD i386/amd64
05:49 < plexdev> http://is.gd/59EeJ by [Rob Pike] in go/src/pkg/io/ -- make
io.ReadFile use Stat.Size as a hint for preallocation
05:49 < plexdev> http://is.gd/59EeR by [Rob Pike] in go/src/pkg/gob/ --
explicitly catch attempt to decode into a value - must be a pointer to see the
result.
05:51 < ni|> what does CL mean in the context of the codereviews?
05:51 < antarus|wtf> ni|: Changelist is likely
05:51 < ni|> ok
05:51 < ni|> thanks
05:52 -!- ni| [n=james@c-24-34-220-147.hsd1.ma.comcast.net] has quit ["leaving"]
05:52 -!- wiretapped [n=leif@pony.noisebridge.net] has joined #go-nuts
05:52 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit ["Bye
Bye"]
06:03 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has quit
["Leaving"]
06:05 -!- abford [n=abford@c-71-205-224-173.hsd1.mi.comcast.net] has quit
["Leaving"]
06:06 -!- XniX23 [i=vegy@89-212-233-217.dynamic.dsl.t-2.net] has joined #go-nuts
06:08 -!- awishformore_ [n=awishfor@ip-88-207-235-15.dyn.luxdsl.pt.lu] has quit
[Remote closed the connection]
06:19 -!- djanderson [n=dja@hltncable.pioneerbroadband.net] has quit [Client Quit]
06:25 -!- tar_ [n=tom@c-67-180-208-162.hsd1.ca.comcast.net] has quit []
06:29 -!- skelterjohn [n=jasmuth@c-76-116-177-32.hsd1.nj.comcast.net] has joined
#go-nuts
06:30 < anticw> exch: there still?
06:32 -!- KillerX [n=anant@gentoo/developer/KillerX] has quit ["Leaving."]
06:33 -!- KillerX [n=anant@122.181.150.106] has joined #go-nuts
06:34 -!- alc [n=alc@114.245.255.169] has joined #go-nuts
06:35 -!- Zzzoom [n=zzzoom@unaffiliated/zzzoom] has quit [Read error: 60
(Operation timed out)]
06:36 -!- ct [n=ct@fsf/member/ct] has joined #go-nuts
06:40 -!- fhs [n=fhs@pool-72-89-203-117.nycmny.east.verizon.net] has joined
#go-nuts
06:41 -!- MegaTron [n=Transfor@ool-43563460.dyn.optonline.net] has joined #go-nuts
06:45 -!- skelterjohn [n=jasmuth@c-76-116-177-32.hsd1.nj.comcast.net] has quit []
06:45 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts
06:48 -!- abford [n=abford@c-71-205-224-173.hsd1.mi.comcast.net] has joined
#go-nuts
06:49 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts
06:55 -!- trickie [n=trickie@94.100.112.225] has joined #go-nuts
06:57 -!- ShadowIce [n=pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
07:05 -!- turutosiya [n=turutosi@219.106.251.65] has quit [Read error: 110
(Connection timed out)]
07:08 -!- nomism [n=nomism@e179253200.adsl.alicedsl.de] has joined #go-nuts
07:08 -!- nomism [n=nomism@e179253200.adsl.alicedsl.de] has left #go-nuts
["Verlassend"]
07:11 -!- nuggien [n=Adium@c-71-198-205-240.hsd1.ca.comcast.net] has left #go-nuts
[]
07:17 -!- shambler [i=kingrat@mm-218-199-84-93.dynamic.pppoe.mgts.by] has quit
["we're generation of men raised by women, I'm wondering if another woman is
really the answer we need"]
07:17 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit [Read
error: 113 (No route to host)]
07:18 -!- sladegen [n=nemo@unaffiliated/sladegen] has quit [Read error: 104
(Connection reset by peer)]
07:18 -!- sladegen [n=nemo@unaffiliated/sladegen] has joined #go-nuts
07:20 -!- snearch [n=olaf@e179136205.adsl.alicedsl.de] has joined #go-nuts
07:22 -!- kaib [n=kaib@c-76-102-52-156.hsd1.ca.comcast.net] has quit []
07:32 -!- Anders__ [n=Anders@nl119-201-120.student.uu.se] has joined #go-nuts
07:35 < plexdev> http://is.gd/59INa by [Devon H. O'Dell] in go/src/pkg/net/
-- net: fix netFD.Close races
07:38 -!- KillerX [n=anant@gentoo/developer/KillerX] has quit ["Leaving."]
07:39 -!- MegaTron [n=Transfor@ool-43563460.dyn.optonline.net] has left #go-nuts
[]
07:42 -!- Whtiger [n=josh@c-68-40-105-104.hsd1.mi.comcast.net] has quit [Read
error: 110 (Connection timed out)]
07:42 -!- scarabx_ [n=scarabx@c-24-147-239-120.hsd1.ma.comcast.net] has quit
["This computer has gone to sleep"]
07:48 -!- aarapov [n=aarapov@nat/redhat/x-tpwohhjtaqxoodfy] has joined #go-nuts
07:52 < plexdev> http://is.gd/59JtR by [Russ Cox] in go/src/pkg/time/ --
time: fix handling of Jan 1 1601, 1201, 801, ...
08:01 < anticw> exch: if you're interested, calc for ~32000 digits of pi ...
6g takes 12s, gcc 14s, gcc -O2 10s
08:06 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has quit []
08:06 -!- Anders__ [n=Anders@nl119-201-120.student.uu.se] has quit [Read error: 60
(Operation timed out)]
08:14 -!- Anders__ [n=Anders@nl119-201-120.student.uu.se] has joined #go-nuts
08:15 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has quit ["Leaving"]
08:18 -!- nomism [n=nomism@vpn-s-8d3a30ae.campus.uni-stuttgart.de] has joined
#go-nuts
08:18 -!- nomism [n=nomism@vpn-s-8d3a30ae.campus.uni-stuttgart.de] has left
#go-nuts ["Verlassend"]
08:18 -!- kaigan|work
[n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined
#go-nuts
08:31 -!- cpr420 [n=cpr420@67.165.199.143] has quit ["Vision[0.9.7-H-090423]: i've
been blurred!"]
08:33 -!- hcatlin [n=hcatlin@host81-154-246-241.range81-154.btcentralplus.com] has
quit []
08:35 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has quit [Remote
closed the connection]
08:35 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has joined #go-nuts
08:36 -!- Zaba [n=zaba@about/goats/billygoat/zaba] has quit [Read error: 60
(Operation timed out)]
08:36 -!- Zaba_ [n=zaba@about/goats/billygoat/zaba] has joined #go-nuts
08:38 -!- KillerX [n=anant@122.181.150.106] has joined #go-nuts
08:42 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has quit [Read error:
54 (Connection reset by peer)]
08:43 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit []
08:47 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has joined #go-nuts
08:49 -!- XniX23 [i=vegy@89-212-233-217.dynamic.dsl.t-2.net] has quit [Read error:
110 (Connection timed out)]
08:53 -!- p0g0_ [n=pogo@unaffiliated/p0g0] has joined #go-nuts
08:53 -!- snearch [n=olaf@e179136205.adsl.alicedsl.de] has quit ["Ex-Chat"]
08:54 -!- nutate [n=rseymour@cpe-98-154-65-28.socal.res.rr.com] has joined
#go-nuts
08:56 -!- turutosiya [n=turutosi@219.106.251.65] has joined #go-nuts
08:57 -!- p0g0__ [n=pogo@unaffiliated/p0g0] has quit [Read error: 110 (Connection
timed out)]
09:04 -!- tricky [n=Knave@dsl-240-175-185.telkomadsl.co.za] has quit [Remote
closed the connection]
09:05 -!- Meowtimer [n=meowtime@vpn-ce242022.extern.uni-duisburg-essen.de] has
joined #go-nuts
09:05 -!- Anders__ [n=Anders@nl119-201-120.student.uu.se] has quit [Read error: 60
(Operation timed out)]
09:06 -!- Meowtimer [n=meowtime@vpn-ce242022.extern.uni-duisburg-essen.de] has
quit [Client Quit]
09:08 -!- hcatlin [n=hcatlin@host81-154-246-241.range81-154.btcentralplus.com] has
joined #go-nuts
09:12 -!- The_Ball_ [n=The_Ball@123-2-12-83.static.dsl.dodo.com.au] has quit [Read
error: 110 (Connection timed out)]
09:15 -!- Anders__ [n=Anders@nl119-201-120.student.uu.se] has joined #go-nuts
09:23 < plexdev> http://is.gd/59OoG by [Devon H. O'Dell] in
go/lib/codereview/ -- xml.etree can also be lxml.etree (e.g.  CentOS 5.4 with
Python 2.4.3)
09:32 -!- KillerX [n=anant@gentoo/developer/KillerX] has quit ["Leaving."]
09:32 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
09:33 -!- mitchellh1 [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
09:33 -!- Whtiger [n=josh@c-68-60-92-33.hsd1.mi.comcast.net] has joined #go-nuts
09:37 -!- KillerX [n=anant@122.181.150.106] has joined #go-nuts
09:37 -!- KillerX [n=anant@122.181.150.106] has quit [Remote closed the
connection]
09:40 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts
09:46 -!- Anders__ [n=Anders@nl119-201-120.student.uu.se] has quit [Read error:
113 (No route to host)]
09:50 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection]
09:50 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
[Connection timed out]
09:52 -!- GeoBSD [n=geocalc@lns-bzn-35-82-250-255-148.adsl.proxad.net] has joined
#go-nuts
09:59 -!- turutosiya [n=turutosi@219.106.251.65] has quit [Remote closed the
connection]
10:02 -!- nutate [n=rseymour@cpe-98-154-65-28.socal.res.rr.com] has quit ["I'm
outta heee-eere"]
10:04 -!- mitchellh1 [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has quit
["Leaving."]
10:09 -!- todos [n=ttodos@195.160.234.10] has joined #go-nuts
10:09 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has joined
#go-nuts
10:09 -!- geocalc [n=geocalc@lns-bzn-52-82-65-112-185.adsl.proxad.net] has quit
[Read error: 110 (Connection timed out)]
10:10 -!- triplez [n=triplez@bb116-14-67-69.singnet.com.sg] has quit []
10:22 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has joined #go-nuts
10:22 -!- sladegen [n=nemo@unaffiliated/sladegen] has quit [Nick collision from
services.]
10:22 -!- sladegen [n=nemo@unaffiliated/sladegen] has joined #go-nuts
10:23 -!- rodi [n=dbrunton@pool-96-244-244-149.bltmmd.fios.verizon.net] has quit
["Leaving."]
10:26 -!- Bowel [n=orange@c-83-233-7-55.cust.bredband2.com] has joined #go-nuts
10:43 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts
10:45 -!- snearch [n=olaf@e179136205.adsl.alicedsl.de] has joined #go-nuts
10:48 -!- avinoamr [n=avinoamr@91.198.254.100] has left #go-nuts []
10:57 -!- ikkebr [n=ikkibr@unaffiliated/ikkebr] has joined #go-nuts
11:01 -!- beardeddog2 [n=beardedd@24.20.122.211] has joined #go-nuts
11:01 -!- adiabatic [n=adiabati@dsl-206-55-130-248.tstonramp.com] has quit
["Rockin’ music will set you free."]
11:02 -!- awishformore [n=awishfor@vpn341.uni-trier.de] has joined #go-nuts
11:04 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts
11:05 -!- ikke3 [n=ikkibr@189.58.214.103.dynamic.adsl.gvt.net.br] has joined
#go-nuts
11:05 -!- kiva [n=quassel@r220-101-159-148.cpe.unwired.net.au] has quit [Read
error: 113 (No route to host)]
11:07 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has quit [Read error: 110
(Connection timed out)]
11:12 -!- beardeddog [n=beardedd@24.20.122.211] has quit [Read error: 110
(Connection timed out)]
11:18 -!- ikkebr [n=ikkibr@unaffiliated/ikkebr] has quit [Read error: 110
(Connection timed out)]
11:21 -!- triplez [n=triplez@112.199.146.239] has joined #go-nuts
11:22 -!- raichoo [n=raichoo@129.70.165.8] has joined #go-nuts
11:32 -!- raichoo [n=raichoo@129.70.165.8] has quit [Read error: 54 (Connection
reset by peer)]
11:33 -!- raichoo [n=raichoo@lain.dhcp.uni-bielefeld.de] has joined #go-nuts
11:35 -!- tobel [n=tobel@p4FDCAF13.dip.t-dialin.net] has joined #go-nuts
11:36 -!- tobel [n=tobel@p4FDCAF13.dip.t-dialin.net] has quit [Client Quit]
11:37 -!- xjih78 [i=z0r0@87-126-211-86.btc-net.bg] has quit [Read error: 104
(Connection reset by peer)]
11:44 -!- ikke [n=ikkibr@189.58.214.103.dynamic.adsl.gvt.net.br] has quit []
11:44 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has joined #go-nuts
11:46 -!- awishformore [n=awishfor@vpn341.uni-trier.de] has quit [Remote closed
the connection]
11:51 -!- ziyu4huang [n=ziyu_hua@220-133-3-82.HINET-IP.hinet.net] has joined
#go-nuts
11:54 -!- JPascal [n=jpascal@195.239.8.22] has joined #go-nuts
11:54 < JPascal> Hello all!
11:54 -!- triplez [n=triplez@112.199.146.239] has quit [Remote closed the
connection]
11:55 -!- Zzzoom [n=zzzoom@unaffiliated/zzzoom] has joined #go-nuts
11:56 < JPascal> When I use package RPC, and call any function a took this
at all calls "2009/12/02 14:52:34 rpc: EOF".  This is normal?
12:01 -!- raichoo [n=raichoo@lain.dhcp.uni-bielefeld.de] has quit []
12:02 -!- taruti [i=taruti@aoi.yi.org] has joined #go-nuts
12:03 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 60 (Operation
timed out)]
12:04 < mikedee> Has anyone done anything with nacl inside a browser?  Are
there any simple examples?
12:05 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts
12:05 -!- brunov [n=bruno@190.191.110.64] has joined #go-nuts
12:05 -!- MarkBao [n=MarkBao@pool-98-110-164-163.bstnma.fios.verizon.net] has quit
["Leaving..."]
12:06 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
quit ["*bork bork*"]
12:09 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 104 (Connection
reset by peer)]
12:10 -!- triplez [n=triplez@112.199.146.239] has joined #go-nuts
12:13 -!- xjih78 [i=z0r0@87-126-211-86.btc-net.bg] has joined #go-nuts
12:20 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
12:21 -!- triplez [n=triplez@112.199.146.239] has quit [Remote closed the
connection]
12:25 -!- triplez [n=triplez@112.199.146.239] has joined #go-nuts
12:28 -!- snearch [n=olaf@e179136205.adsl.alicedsl.de] has quit ["Ex-Chat"]
12:28 -!- XniX23 [i=vegy@89-212-233-217.dynamic.dsl.t-2.net] has joined #go-nuts
12:30 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts
12:36 -!- KillerX [n=anant@122.181.150.106] has joined #go-nuts
12:38 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined
#go-nuts
12:40 -!- fhs [n=fhs@pool-72-89-203-117.nycmny.east.verizon.net] has quit
["leaving"]
12:40 -!- Kibiz0r [n=kibiyama@99-48-204-31.lightspeed.brhmmi.sbcglobal.net] has
quit ["Leaving."]
12:43 -!- triplez [n=triplez@112.199.146.239] has quit [Read error: 60 (Operation
timed out)]
12:45 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts
12:46 -!- raichoo [n=raichoo@i577BAB50.versanet.de] has joined #go-nuts
12:51 -!- raichoo [n=raichoo@i577BAB50.versanet.de] has quit []
12:57 -!- KillerX [n=anant@gentoo/developer/KillerX] has quit ["Leaving."]
13:02 -!- Vova [n=Vova@80.178.10.36.adsl.012.net.il] has quit [Read error: 60
(Operation timed out)]
13:02 -!- Vova [n=Vova@80.178.10.36.adsl.012.net.il] has joined #go-nuts
13:07 -!- jepler [n=jepler@emc/developer/pdpc.active.jepler] has quit [Remote
closed the connection]
13:07 -!- jepler [n=jepler@emc/developer/pdpc.active.jepler] has joined #go-nuts
13:09 -!- Kibiz0r [n=Adium@70-90-40-34-Michigan.hfc.comcastbusiness.net] has
joined #go-nuts
13:09 -!- Kibiz0r [n=Adium@70-90-40-34-Michigan.hfc.comcastbusiness.net] has quit
[Client Quit]
13:10 -!- Kibiz0r [n=Adium@70-90-40-34-Michigan.hfc.comcastbusiness.net] has
joined #go-nuts
13:10 < rog> > fmt.Printf("%d", 45)
13:10 < rndbot> 45
13:10 -!- triplez [n=triplez@124.155.195.7] has joined #go-nuts
13:10 < rog> > fmt.Printf("%*s", 12, "hello")
13:10 < rndbot> %*(int=12)s?(extra string=hello)
13:11 -!- Kibiz0r [n=Adium@70-90-40-34-Michigan.hfc.comcastbusiness.net] has quit
[Client Quit]
13:11 -!- Kibiz0r [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has joined
#go-nuts
13:12 -!- jepler [n=jepler@emc/developer/pdpc.active.jepler] has quit [Read error:
60 (Operation timed out)]
13:12 -!- Kibiz0r [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has quit [Client
Quit]
13:12 -!- jepler [n=jepler@emc/developer/pdpc.active.jepler] has joined #go-nuts
13:12 -!- Kibiz0r [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has joined
#go-nuts
13:15 -!- CaptainLucifel [n=captainl@191.164.66-86.rev.gaoland.net] has joined
#go-nuts
13:17 -!- triplez [n=triplez@124.155.195.7] has quit [Read error: 60 (Operation
timed out)]
13:19 < JPascal> When I use package RPC, and call any function a took this
at all calls "2009/12/02 14:52:34 rpc: EOF".  This is normal?
13:27 -!- kota1111 [n=kota1111@gw2.kbmj.jp] has quit ["Leaving..."]
13:27 -!- Meowtimer [n=meowtime@vpn-ce242032.extern.uni-duisburg-essen.de] has
joined #go-nuts
13:28 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has
joined #go-nuts
13:32 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts
13:34 -!- reiko__ [n=reiko@74.125.121.33] has joined #go-nuts
13:35 -!- rodi [i=8c93ecc2@gateway/web/freenode/x-wpeguymdcobgflhr] has joined
#go-nuts
13:36 -!- triplez [n=triplez@119.234.39.196] has joined #go-nuts
13:40 -!- ikke [n=ikkibr@unaffiliated/ikkebr] has quit []
13:40 -!- hyp3rvigi1ant [n=greg@c-98-250-49-37.hsd1.mi.comcast.net] has quit [Read
error: 104 (Connection reset by peer)]
13:49 < taruti> Is there a binding for OpenSSL in the works?
13:51 -!- amuck_ [n=amuck@h158.70.88.75.dynamic.ip.windstream.net] has joined
#go-nuts
13:52 -!- Meowtimer [n=meowtime@vpn-ce242032.extern.uni-duisburg-essen.de] has
quit [Read error: 110 (Connection timed out)]
13:54 -!- JSharpe2 [n=jamie@5ad673da.bb.sky.com] has joined #go-nuts
13:56 -!- triplez [n=triplez@119.234.39.196] has quit [Read error: 110 (Connection
timed out)]
14:03 -!- amuck [n=amuck@h208.57.19.98.dynamic.ip.windstream.net] has quit [Read
error: 110 (Connection timed out)]
14:04 -!- ryniek [n=RYNIEK@host-89-231-108-219.warszawa.mm.pl] has joined #go-nuts
14:05 < ryniek> j #chippl
14:05 < ryniek> sorry
14:05 < ryniek> hi btw
14:06 -!- Kibiz0r [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has quit
["Leaving."]
14:06 -!- Kibiz0r [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has joined
#go-nuts
14:10 -!- rodi [i=8c93ecc2@gateway/web/freenode/x-wpeguymdcobgflhr] has quit [Ping
timeout: 180 seconds]
14:10 -!- JSharpe [n=jamie@5ad673ea.bb.sky.com] has quit [Read error: 110
(Connection timed out)]
14:11 -!- skelterjohn [n=jasmuth@c-76-116-177-32.hsd1.nj.comcast.net] has joined
#go-nuts
14:13 -!- lenst [n=user@81-237-244-185-no52.tbcn.telia.com] has joined #go-nuts
14:14 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit [Read
error: 104 (Connection reset by peer)]
14:14 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has joined
#go-nuts
14:16 -!- lenst` [n=user@81-237-244-185-no52.tbcn.telia.com] has joined #go-nuts
14:21 -!- aarapov [n=aarapov@nat/redhat/x-tpwohhjtaqxoodfy] has quit ["Leaving."]
14:24 -!- xerox [n=xerox@unaffiliated/xerox] has joined #go-nuts
14:27 -!- jamalta [n=jamalta@209.20.66.76] has left #go-nuts []
14:32 -!- lenst [n=user@81-237-244-185-no52.tbcn.telia.com] has quit [Read error:
110 (Connection timed out)]
14:34 -!- xiaoxiaolu [n=hirc2000@110.43.68.195] has joined #go-nuts
14:36 -!- lenst`` [n=user@81-237-244-185-no52.tbcn.telia.com] has joined #go-nuts
14:38 -!- lenst` [n=user@81-237-244-185-no52.tbcn.telia.com] has quit [Read error:
60 (Operation timed out)]
14:38 -!- e1f` [n=user@141.117.1.155] has joined #go-nuts
14:38 -!- e1f [n=user@141.117.1.155] has quit [Remote closed the connection]
14:44 -!- iant [n=iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Read
error: 113 (No route to host)]
14:49 -!- ni| [n=james@isp1-resnet-nat1.union.edu] has joined #go-nuts
14:49 -!- jb55 [n=jb55@64.231.41.97] has quit [Read error: 104 (Connection reset
by peer)]
14:54 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit []
14:54 -!- xiaoxiaolu [n=hirc2000@110.43.68.195] has quit [Client Quit]
14:54 < uriel> taruti: why do you need openssl?  there is a quite complete
collection of crypto libs in the distribution
14:55 < taruti> uriel: hardware crypto support.
14:56 < uriel> ah, ok, I agree that is a good reason :)
14:59 -!- lenst``` [n=user@81-237-244-185-no52.tbcn.telia.com] has joined #go-nuts
14:59 < uriel> it should be fairly easy to write some bindings, if you do
let me know and I'll add them to http://go-lang.cat-v.org/library-bindings
15:02 < JPascal> When I use package RPC, and call any function a took this
at all calls "2009/12/02 14:52:34 rpc: EOF".  This is normal?
15:04 -!- iant [n=iant@67.218.104.235] has joined #go-nuts
15:04 -!- mode/#go-nuts [+v iant] by ChanServ
15:04 < uriel> JPascal: I'm not sure, but I know some bugs have been fixed
recently in the rpc package
15:04 < uriel> so I'd would make sure I have pulled and built the latest
code
15:04 < uriel> hey iant!
15:05 -!- ni| [n=james@isp1-resnet-nat1.union.edu] has quit ["leaving"]
15:05 <+iant> morning
15:05 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts
15:05 -!- nathanielk [n=quassel@frigga.summersault.com] has quit [Remote closed
the connection]
15:06 < JPascal> Thx.  I try update the Go.
15:07 -!- nathanielk [n=quassel@frigga.summersault.com] has joined #go-nuts
15:11 -!- liwp [n=lpesonen@87.102.27.202] has joined #go-nuts
15:12 < JPascal> I can`t compile after 'hg pull' and 'hg update'.
http://www.gopaste.org/view/9Moj3
15:13 < JPascal> =(
15:13 < uriel> JPascal: did you clean before building?
15:14 < JPascal> no
15:14 < JPascal> now try clean.bash
15:14 -!- lenst`` [n=user@81-237-244-185-no52.tbcn.telia.com] has quit [Read
error: 110 (Connection timed out)]
15:16 < JPascal> no effects after clean
15:16 < JPascal> http://www.gopaste.org/view/89SWp
15:19 <+iant> I think the 32-bit Linux build is broken
15:20 < JPascal> :(
15:23 < JPascal> if I do 'hg clone ..' and after 'all.bach' all compiled
without errors...'
15:24 < uriel> JPascal: maybe you had changes on your local tree?
15:24 < uriel> iant: any plans for a continious build system visible to the
public?
15:24 < uriel> (otherwise I might look into setting one up at some point)
15:24 < JPascal> no changes :)
15:25 <+iant> uriel: not that I know of
15:25 -!- aarapov [n=aarapov@r2ah201.net.upc.cz] has joined #go-nuts
15:25 < uriel> JPascal: if a fresh pull does build, then you had some local
changes
15:25 <+iant> Now I'm trying to figure out how the shutdown system call
works on 32-bit Linux
15:26 < JPascal> ok.  How i can take local tree and last changes?
15:26 < uriel> JPascal: hg log |less
15:27 < uriel> to see if you have local changes, you do hg diff
15:27 < uriel> another possibility is that your $GOROOT and friends were
messed up?
15:28 < JPascal> hg diff - not show any one.  I work only one in local tree.
15:28 < JPascal> :-(
15:29 < JPascal> http://www.gopaste.org/view/C124B
15:30 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined
#go-nuts
15:31 < JPascal> May be I make error on commands..  i do
http://www.gopaste.org/view/OttUr
15:32 <+iant> JPascal: the 32-bit GNU/Linux build is broken, I'm working on
fixing it
15:32 -!- nullpo [n=nullpo@221x252x46x83.ap221.ftth.ucom.ne.jp] has quit [Read
error: 110 (Connection timed out)]
15:32 < JPascal> :) ok
15:35 -!- rovar [i=c7aca911@gateway/web/freenode/x-sfpyqafpqvsswnno] has joined
#go-nuts
15:36 < rovar> quick question, I would like to make an interface called
Cloneable, this would define the behavior of complex types to make a copy of
themselves.
15:37 < rovar> This requires that the return type be different for every
function that implements Clone.  Is there a way to define each function as one
that returns the Clonable object itself?  I know this seems more like a case for
generics.
15:37 -!- F1sh [n=Fish@86.65.182.194] has quit [Read error: 104 (Connection reset
by peer)]
15:39 < dagle> rovar: You could use a type Any interface.
15:39 < dagle> That is empty.
15:39 < dho> iant: what's wrong with it
15:39 -!- F1sh [n=Fish@86.65.182.194] has joined #go-nuts
15:40 -!- xerox [n=xerox@unaffiliated/xerox] has quit []
15:41 < dho> oh
15:41 < dho> o_O
15:41 < dho> I thought russ added that in yesterday
15:42 < kimelto> morning!
15:42 < dho> guess not
15:42 < dho> morning kimelto
15:47 < rovar> okay..  what did I screw up?  This compiles, but segfaults
15:47 < rovar> http://gopaste.org/view/WaKvc
15:50 < JPascal> Try it: nmap := make (map[int]string, len(..))
15:52 < rovar> yea..  i just switched to make(MapA)
15:52 < rovar> and it worked
15:52 < JPascal> http://gopaste.org/view/pcJy9
15:52 < JPascal> :)
15:52 < rovar> thanks.
15:52 -!- decriptor [n=decripto@137.65.132.17] has joined #go-nuts
15:52 < rovar> I still don't fully understand the make thing..  because I
see many examples in go code where a make is not used with maps
15:52 < rovar> or new
15:54 <+iant> rovar: to create a map you need to use either make() or a
compound literal
15:54 -!- WalterMundt [n=waltermu@twiki/developer/EtherMage] has joined #go-nuts
15:56 < JPascal> To create new array as array[int] you must call make(...)
15:58 -!- JPascal [n=jpascal@195.239.8.22] has left #go-nuts []
15:58 -!- simonz05 [n=simon@143.84-49-89.nextgentel.com] has joined #go-nuts
16:01 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has quit ["Leaving"]
16:01 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts
16:01 -!- malkomalko [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has quit []
16:09 -!- path[l] [n=path@115.184.58.252] has joined #go-nuts
16:10 -!- crashR [n=crasher@codextreme.pck.nerim.net] has quit ["Leaving."]
16:15 -!- kaigan|work
[n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit []
16:15 -!- malkomalko [n=malkomal@pool-70-23-72-20.ny325.east.verizon.net] has
joined #go-nuts
16:20 -!- brunov [n=bruno@190.191.110.64] has quit [Read error: 110 (Connection
timed out)]
16:25 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has quit []
16:28 < plexdev> http://is.gd/5aael by [Devon H. O'Dell] in
go/lib/codereview/ -- lxml.etree is the wrong location for this alt package
16:28 < plexdev> http://is.gd/5aaen by [Ian Lance Taylor] in
go/src/pkg/syscall/ -- Add Shutdown to 32-bit GNU/Linux build.
16:30 -!- iant [n=iant@67.218.104.235] has quit [Read error: 110 (Connection timed
out)]
16:31 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has joined
#go-nuts
16:34 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts
16:36 -!- iant [n=iant@nat/google/x-dgotndvddotbuayw] has joined #go-nuts
16:36 -!- mode/#go-nuts [+v iant] by ChanServ
16:38 -!- skelterjohn [n=jasmuth@c-76-116-177-32.hsd1.nj.comcast.net] has quit []
16:39 -!- Venom_X [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has joined
#go-nuts
16:44 < plexdev> http://is.gd/5ab5x by [Russ Cox] in go/src/pkg/time/ --
time: another bug in SecondsToUTC.
16:45 -!- F1sh [n=Fish@86.65.182.194] has quit ["So Long, and Thanks for All the
Fish."]
16:46 -!- F1sh [n=Fish@86.65.182.194] has joined #go-nuts
16:46 < hagna> this vector using program crashes
http://gopaste.org/view/r1JYs is that a bug?
16:46 -!- trutkin [n=trutkin@64.1.25.210.ptr.us.xo.net] has joined #go-nuts
16:48 -!- path[l] [n=path@115.184.58.252] has quit [Read error: 110 (Connection
timed out)]
16:49 < anticw> hagna: old version of go
16:49 <+iant> the 32-bit GNU/Linux build should be fixed now
16:49 < anticw> NewStringVector is gone
16:49 < hagna> anticw: ok that should fix it :) I'll update
16:53 < hagna> NewStringVector is still on the website
16:53 <+iant> the web site gets updated when we make a new release
16:54 < droid001> defer fmt.Println("bye") works but defer println("bye")
not.  Is print deprecated or is it a bug?
16:54 <+iant> droid001: that sounds like a bug
16:54 < hagna> iant: so I should probably use godoc for the documentation
not the website?
16:54 < droid001> oh ;)
16:55 <+iant> hagna: yes, if you are using tip rather than a release
16:56 -!- path[l] [n=path@115.184.3.172] has joined #go-nuts
16:56 < WalterMundt> I thought println(...) was rather unofficial anyway
16:56 <+iant> it is, but using it with defer ought to work anyhow
16:56 -!- alc [n=alc@114.245.255.169] has quit []
16:57 -!- sliceofpi [n=Adium@c-98-194-205-176.hsd1.tx.comcast.net] has quit
["Leaving."]
16:57 < WalterMundt> I'd presume other built-in functions work, since
close() is an obvious use-case for defer
16:57 -!- sliceofpi [n=Adium@c-98-194-205-176.hsd1.tx.comcast.net] has joined
#go-nuts
16:58 -!- trutkin [n=trutkin@64.1.25.210.ptr.us.xo.net] has left #go-nuts
["Leaving"]
16:58 < WalterMundt> oh, speaking of close(), how does the select construct
interact with closed channels?  Specifically when one of the clauses is reading
from a closed channel, either with or without buffered data.
16:58 -!- trickie [n=trickie@94.100.112.225] has quit [Read error: 60 (Operation
timed out)]
16:59 -!- analogue [n=analogue@toulouse.jfg-networks.net] has quit []
16:59 -!- brunov [n=bruno@190.191.110.64] has joined #go-nuts
17:00 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
17:00 -!- mennis [n=mennis@adsl-068-016-104-079.sip.asm.bellsouth.net] has joined
#go-nuts
17:00 -!- melba [n=blee@unaffiliated/lazz0] has quit [Read error: 104 (Connection
reset by peer)]
17:01 < WalterMundt> from the spec, I guess the idiom for such a channel is
that the receiving clause checks if closed(ch) { ch = nil; break } ...
17:01 -!- melba [n=blee@unaffiliated/lazz0] has joined #go-nuts
17:01 < dho> iant: I think there's an issue for that already
17:01 < WalterMundt> which then deactivates that clause because the channel
is nil
17:01 < dho> iant: defer builtin() doesn't work
17:02 < dho> for any value of builtin which is ...  a built-in...
17:03 < dho> sweet, lang/go-devel going into freebsd ports soon :)
17:04 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts
17:05 -!- g0bl1n [n=g0bl1n@a213-22-237-39.cpe.netcabo.pt] has joined #go-nuts
17:06 -!- JPascal [n=jpascal@95-27-118-198.broadband.corbina.ru] has joined
#go-nuts
17:07 < kimelto> dho: thats a good news ;p
17:07 -!- WalterMundt [n=waltermu@twiki/developer/EtherMage] has quit ["Leaving."]
17:07 -!- WalterMundt [n=waltermu@twiki/developer/EtherMage] has joined #go-nuts
17:08 < JPascal> iant, thanks for fix shutdown on 32-bit GNU/Linux.  ;)
17:08 < GeoBSD> soon when dho ?
17:09 < dho> later today i believe
17:09 < GeoBSD> ho nice !!
17:10 < mpl> dho: out of curiosity, is anyone working on it for OpenBSD ?
17:10 < dho> mpl: Snert was, then me, but I haven't had time to figure out
some issues with the elf binary format that openbsd requires
17:11 < mpl> ok
17:14 < JPascal> When I use package RPC, and call any function a took this
at all calls "2009/12/02 14:52:34 rpc: EOF".  | Server -
http://gopaste.org/view/8fr7U / Client - http://gopaste.org/view/bfxrp
17:16 < plexdev> http://is.gd/5ad6l by [Russ Cox] in go/lib/codereview/ --
codereview: move reviewers to cc line after submit,
17:17 -!- smooge [n=smooge@int.smoogespace.com] has joined #go-nuts
17:19 -!- inittab [n=dlbeer@ip-118-90-23-246.xdsl.xnet.co.nz] has joined #go-nuts
17:25 -!- Perberos [n=Perberos@190.49.62.90] has joined #go-nuts
17:26 -!- hackbench [n=hackbenc@88.242.234.136] has joined #go-nuts
17:27 -!- iwikiwi [n=iwikiwi@59.177.106.98] has joined #go-nuts
17:27 -!- einsidan [n=einsidan@194.144.68.248] has quit [Read error: 145
(Connection timed out)]
17:28 -!- einsidan [n=einsidan@194-144-68-248.du.xdsl.is] has joined #go-nuts
17:29 -!- path[l] [n=path@115.184.3.172] has quit []
17:31 -!- inittab- [n=dlbeer@ip-118-90-23-246.xdsl.xnet.co.nz] has quit [Read
error: 113 (No route to host)]
17:35 < rovar> what is the command to get the original type of an interface?
17:35 < rovar> val
17:36 -!- iwikiwi [n=iwikiwi@59.177.106.98] has quit ["I ascend to reality!"]
17:36 < rovar> I receive the value as an interface val which I know to only
contain maps.  I want to use for ..  range over that map type
17:36 < rovar> but range won't work on my interface type, I need to convert
it back to its original type
17:37 < sladegen> thing.(Type) ?
17:37 -!- g0bl1n [n=g0bl1n@a213-22-237-39.cpe.netcabo.pt] has quit [Read error:
110 (Connection timed out)]
17:37 < KirkMcDonald> rovar: i.(map[foo]bar)
17:37 < KirkMcDonald> rovar: Which will fail if the object is not of that
type.
17:37 < rovar> KirkMcDonald: but what If I just know that it's a map, but
not the parameters of the map?
17:38 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts
17:38 < KirkMcDonald> rovar: Then you get to muck around with the reflect
package.
17:38 < rovar> that's what I'm working on..  so far, not much luck
17:38 < rovar> this is a lot of workarounds for what would be solved with
simple generics :)
17:38 < KirkMcDonald> rovar: v := reflect.NewValue(i).(*reflect.MapValue);
17:39 < KirkMcDonald> rovar: And then you'll have one of these:
http://golang.org/pkg/reflect/#MapValue
17:39 < rovar> does that make a copy of i?
17:39 < rovar> i made a MapValue, but range wouldn't operate on it
17:39 < KirkMcDonald> rovar: If it is a map, then it is a reference.
17:39 < KirkMcDonald> Correct, range won't operate on it.
17:40 < rovar> that's what I'm after..  i need to make a copy of the map
17:41 -!- tar_ [n=tar_@adsl-76-254-54-112.dsl.pltn13.sbcglobal.net] has joined
#go-nuts
17:42 < rovar> here's what I'm doing: http://gist.github.com/247357
17:42 < rovar> notice that the Clone function is almost identical for the
two map types
17:42 < rovar> the only difference is the type, so I want to make a new
system which allows me to have a single Clone function for all map types
17:43 < rovar> what I need is generics, but I think I can hack it with
interfaces
17:43 < KirkMcDonald> rovar: The general solution will involve
reflect.MakeMap, reflect.Typeof, and the various methods of *reflect.MapValue.
17:44 < JPascal> Who can help me with RPC package?  :)
17:45 < dagle> Is there a secure random?
17:45 < rovar> read ("/dev/random")
17:46 -!- mizai [n=mizai@rhou-164-107-213-111.resnet.ohio-state.edu] has quit
[Read error: 54 (Connection reset by peer)]
17:46 < JPascal> Nobody wishes to help me?  :/
17:47 < AndrewBC> state your problem outright, it's quicker in a
many-to-many communication platform than seeking one-to-one help
17:48 < rovar> JPascal: what is the problem?
17:48 < rovar> oh
17:48 < JPascal> I call any function a took this at all calls "2009/12/02
14:52:34 rpc: EOF".  | Server - http://gopaste.org/view/8fr7U / Client -
http://gopaste.org/view/bfxrp
17:49 < JPascal> all other work correct
17:50 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has quit [Read error:
110 (Connection timed out)]
17:50 < rovar> JPascal: I don't see where you registered the Authenticate
function, is this necessary?
17:50 < tar_> "Values may be added and removed [from a map] during execution
using special forms of assignment." how?
17:51 < rovar> mymap["foo"] = _, false
17:51 < rovar> mymap["foo"] = newval
17:51 -!- Venom_X_ [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has joined
#go-nuts
17:51 < tar_> whoa, okay.  thanks.
17:52 < JPascal> Loock at line 40.  SystemObject contain this function.
17:52 -!- Venom_X [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has quit [Nick
collision from services.]
17:52 < rovar> ah yes
17:53 < rovar> not sure then.
17:53 < tar_> rovar: Is it removed because of the _ or because of the false?
17:53 < tar_> Mine is map[net.Addr]int
17:53 < JPascal> :(
17:54 < rovar> tar_ , the false
17:55 < rovar> tar_: http://golang.org/doc/effective_go.html#maps see the
last example in the section
17:55 < tar_> rovar: thanks!
18:00 -!- snearch [n=olaf@g225059123.adsl.alicedsl.de] has joined #go-nuts
18:00 < JPascal> iant, are you here?  :)
18:01 -!- rbohn [n=rbohn@192.206.100.4] has quit [Read error: 113 (No route to
host)]
18:02 -!- rhelmer [n=rhelmer@38.112.6.110] has joined #go-nuts
18:02 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has quit
["Leaving"]
18:04 -!- aho [n=nya@f051139160.adsl.alicedsl.de] has joined #go-nuts
18:05 -!- rbohn [n=rbohn@192.206.100.4] has joined #go-nuts
18:07 < WalterMundt> Is there any way to use xml.Unmarshal after having used
xml.Token to retrieve a StartElement?
18:07 < WalterMundt> I.e.  I'd like to use Token() until I see certain
elements, which should then be selectively unmarshalled
18:11 < exch> Unmarshal takes an io.Reader..  just accumulated all the
contents of the node you want into a string reader and pass it to unmarshal
18:11 -!- aarapov [n=aarapov@r2ah201.net.upc.cz] has quit [Read error: 110
(Connection timed out)]
18:13 < WalterMundt> exch: oh, I see; interesting
18:13 < WalterMundt> seems rather roundabout, but that would certainly work
18:14 < exch> the xml parser is pretty basic.  You are expected to add all
the trimmings yourself I suppose
18:14 < WalterMundt> Well, it is at least namespace-aware, so for a
foundation it's decent enough
18:14 < exch> at least until someone decides to supply a package with all
those trimmings for review and inclusion in the main branch
18:15 < exch> yea.  it's good enough as a base to work on
18:16 < exch> I should probably consider adding an Unmarshal implementation
to my xmlx package which does exactly what you have iun mind.
http://github.com/jteeuwen/go-pkg-xmlx
18:16 -!- fgb [n=fgb@190.246.85.45] has joined #go-nuts
18:17 -!- amuck_ [n=amuck_@rrcs-76-79-44-2.west.biz.rr.com] has joined #go-nuts
18:17 -!- pdusen [n=pdusen@crob4-55.flint.umich.edu] has quit [Read error: 104
(Connection reset by peer)]
18:17 -!- pdusen [n=pdusen@crob4-55.flint.umich.edu] has joined #go-nuts
18:17 < WalterMundt> might be handy for your purposes; I'm actually writing
some thought-experiment code in the direction of an XMPP library, so building a
document tree isn't really on my agenda ;)
18:18 < exch> fair enough :)
18:18 < WalterMundt> in my case, the xml package possibly being dumb enough
just to hand me whatever it's finished parsing as it comes through may actually be
precisely what I need
18:19 < WalterMundt> I just need to wrap it in appropriate data structures
myself
18:19 -!- shambler [i=kingrat@mm-27-194-84-93.dynamic.pppoe.mgts.by] has joined
#go-nuts
18:19 -!- rbohn_ [n=rbohn@192.206.100.4] has joined #go-nuts
18:21 -!- tar_ [n=tar_@adsl-76-254-54-112.dsl.pltn13.sbcglobal.net] has quit []
18:21 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit [Read error:
104 (Connection reset by peer)]
18:23 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has quit ["Leaving"]
18:24 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts
18:24 < hagna> suppose I want to make an executable and not a package which
makefile should I include
18:24 -!- Zzzoom [n=zzzoom@unaffiliated/zzzoom] has quit [Read error: 104
(Connection reset by peer)]
18:25 -!- ryniek [n=RYNIEK@host-89-231-108-219.warszawa.mm.pl] has quit [Remote
closed the connection]
18:25 < fgb> then do it and it's done
18:26 -!- mitchellh [n=mitchell@microchip.dyn.cs.washington.edu] has joined
#go-nuts
18:26 -!- mitchellh [n=mitchell@microchip.dyn.cs.washington.edu] has quit [Client
Quit]
18:27 -!- djanderson [n=dja@hltncable.pioneerbroadband.net] has joined #go-nuts
18:27 -!- mitchellh [n=mitchell@microchip.dyn.cs.washington.edu] has joined
#go-nuts
18:27 -!- chachan [n=chachan@150.187.40.27] has joined #go-nuts
18:28 -!- path[l] [n=path@115.184.9.66] has joined #go-nuts
18:28 -!- rhelmer [n=rhelmer@38.112.6.110] has quit []
18:29 < scandal> hagna: you can use something like this
http://gopaste.org/view/kQk7F
18:31 -!- rhelmer [n=rhelmer@38.112.6.110] has joined #go-nuts
18:32 < plexdev> http://is.gd/5ahAJ by [Rob Pike] in go/src/pkg/gob/ -- test
that arrays work properly.
18:33 -!- rhc [n=matt@qnan.org] has quit [Remote closed the connection]
18:33 -!- shambler [i=kingrat@mm-27-194-84-93.dynamic.pppoe.mgts.by] has left
#go-nuts ["mordor awaits"]
18:34 -!- todos [n=ttodos@195.160.234.10] has quit ["Ex-Chat"]
18:34 -!- rbohn [n=rbohn@192.206.100.4] has quit [Read error: 101 (Network is
unreachable)]
18:35 -!- poucet [n=poucet@li23-146.members.linode.com] has quit [Read error: 60
(Operation timed out)]
18:37 -!- aaront [n=aaront@d24-141-25-171.home.cgocable.net] has joined #go-nuts
18:41 < exch> WalterMundt: have you seen that xml.parser has it's own
unmarshal method that takes a StartElement token?
18:41 -!- erikd [n=aphistic@otome.novustorm.com] has quit [Remote closed the
connection]
18:41 < exch> func (p *Parser) Unmarshal(val interface{}, start
*StartElement) os.Error
18:41 -!- hipe [n=hipe@pool-74-101-72-105.nycmny.east.verizon.net] has quit [Read
error: 110 (Connection timed out)]
18:43 -!- vhost- [n=kyle@kyleterry.com] has quit [Remote closed the connection]
18:43 -!- oklokok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has joined
#go-nuts
18:46 -!- rhelmer [n=rhelmer@38.112.6.110] has quit []
18:46 < hagna> scandal: I did this and it worked
http://gopaste.org/view/dkwmw
18:48 -!- TyroneFHornigh [n=dbw@adsl-71-136-231-150.dsl.sndg02.pacbell.net] has
joined #go-nuts
18:50 < plexdev> http://is.gd/5aiAD by [Rob Pike] in go/src/pkg/rpc/ -- fix
segfault printing errors.  add test case and improve messages.
18:51 -!- rares_ [n=rares@adsl-75-40-138-3.dsl.wlfrct.sbcglobal.net] has joined
#go-nuts
18:51 -!- rares_ [n=rares@adsl-75-40-138-3.dsl.wlfrct.sbcglobal.net] has quit
[Client Quit]
18:51 -!- rares_ [n=rares@adsl-75-40-138-3.dsl.wlfrct.sbcglobal.net] has joined
#go-nuts
18:54 < hagna> yay git
18:55 < WalterMundt> exch: oh, yeah, I thought I'd seen that which is why I
asked
18:55 < WalterMundt> that's precisely what I was thinking I'd use
18:56 -!- rhelmer [n=rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has joined
#go-nuts
18:56 < WalterMundt> I probably won't though, because there's no way to take
back control from Unmarshal for a subtree
18:57 < WalterMundt> or to represent a subtree as a DOM that can reliably
rebuild arbitrary original markup
18:57 < exch> hence hwy I opted to a document tree package :)
18:58 < WalterMundt> indeed
18:58 < exch> made it easier to just manually do any unmarshalling
18:58 < exch> without losing control..  also makes sure I can assign integer
values to integer fields etc..  the unmarshaller doesn't do that
18:58 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts
18:59 < WalterMundt> Well, they make a good point under "Bugs" that there's
no perfect unmarshaller
18:59 < exch> true
19:00 < WalterMundt> either you discard some data to compensate for the
impedance mismatch between markup and a data structure, or you use an awkward data
structure that maintains all the information'
19:00 < exch> with a lot of nested structs that becomes quite...interesting
:p
19:00 -!- aarapov [n=aarapov@r2ah201.net.upc.cz] has joined #go-nuts
19:00 -!- feenode [n=emad@mealworm.blorpy.org] has quit [Remote closed the
connection]
19:01 < exch> specially having collections of nodes/structs..  you actually
have to make a Collection struct which contains an array of structs.  That was
when I lost patience :)
19:01 -!- oklofok [n=oklopol@a91-153-117-63.elisa-laajakaista.fi] has quit [Read
error: 110 (Connection timed out)]
19:01 -!- simonz05 [n=simon@143.84-49-89.nextgentel.com] has quit ["Ex-Chat"]
19:02 < WalterMundt> I started by copping out and tossing a Children
[]xml.Token on top of an embedded StartElement for a low-rent doctree.  In the end
though, dealing with that representation is just too painful.
19:02 < WalterMundt> though it is admirably general in representing XML data
19:03 -!- JBdiGriz [n=dbw@adsl-71-137-6-235.dsl.sndg02.pacbell.net] has quit [Read
error: 110 (Connection timed out)]
19:03 -!- Fish [n=Fish@78.238.225.114] has joined #go-nuts
19:03 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts []
19:05 -!- awalton_ [n=awalton@76.177.53.219] has quit [Read error: 60 (Operation
timed out)]
19:05 -!- malkomalko [n=malkomal@pool-70-23-72-20.ny325.east.verizon.net] has quit
[]
19:05 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit [Read error:
104 (Connection reset by peer)]
19:06 -!- rhc [n=matt@qnan.org] has joined #go-nuts
19:06 -!- Perberos [n=Perberos@190.49.62.90] has quit ["Ex-Chat"]
19:07 -!- vhost- [n=kyle@kyleterry.com] has joined #go-nuts
19:10 -!- Kibiz0r [n=Adium@wndsnyhed01-pool1-a130.wndsny.tds.net] has quit
["Leaving."]
19:10 -!- Xavi_ [n=Xavi@66-191-181-152.dhcp.gnvl.sc.charter.com] has joined
#go-nuts
19:10 -!- Xavi_ [n=Xavi@66-191-181-152.dhcp.gnvl.sc.charter.com] has quit [Client
Quit]
19:10 -!- aphistic [n=aphistic@otome.novustorm.com] has joined #go-nuts
19:14 -!- alus [n=gah@64.13.131.178] has quit [Read error: 54 (Connection reset by
peer)]
19:15 -!- niekie [i=quasselc@dreamworld.bergnetworks.com] has quit [Client Quit]
19:16 -!- niekie [i=quasselc@dreamworld.bergnetworks.com] has joined #go-nuts
19:17 -!- sladegen [n=nemo@unaffiliated/sladegen] has quit [Read error: 104
(Connection reset by peer)]
19:17 -!- sladegen [n=nemo@unaffiliated/sladegen] has joined #go-nuts
19:20 -!- aaront [n=aaront@unaffiliated/aaront] has quit ["And that's all he
wrote..."]
19:20 <+iant> JPascal: I am back
19:20 -!- malkomalko_ [n=malkomal@66-234-41-82.nyc.cable.nyct.net] has joined
#go-nuts
19:21 -!- alus [n=gah@64.13.131.178] has joined #go-nuts
19:21 < JPascal> iant, thx for fix.  All good.
19:21 <+iant> JPascal: good
19:21 -!- rares_ [n=rares@adsl-75-40-138-3.dsl.wlfrct.sbcglobal.net] has quit
["Leaving..."]
19:22 -!- hipe [n=hipe@static-64-61-115-26.isp.broadviewnet.net] has joined
#go-nuts
19:23 < WalterMundt> exch: do you know offhand if the xml package
automatically decodes entities like ' & etc?
19:23 < KirkMcDonald> Hmm, no response to my Make.pkg issue.
19:27 < dho> KirkMcDonald: where?
19:27 < exch> WalterMundt: it only supports the XML standard entities.
Anything else wikll throw a parser error
19:27 < exch> unless you specify the entity in the parser.Entity map
19:28 -!- Rob_Russell [n=chatzill@bas2-windsor12-1128533271.dsl.bell.ca] has
joined #go-nuts
19:28 < KirkMcDonald> dho: It wasn't a bug, to be clear, I wanted to patch
in some additional functionality.
19:28 < dho> Sure, I just don't see anything about make.pkg in issues or
mailing list
19:28 < KirkMcDonald> dho: http://code.google.com/p/go/issues/detail?id=347
19:28 < exch> If you already know which entities to expect, it's prolly
easier to add them to parser.Entity manually, otherwise you can use this:
http://github.com/jteeuwen/go-pkg-xmlx/blob/master/src/entitymap.go It adds all
HTML specification entities to the map
19:28 < dho> oh
19:29 < KirkMcDonald> dho: I never did mail the list.
19:29 < dho> skipped right over that.
19:30 < dho> KirkMcDonald: why should that go in make.pkg instead of the
user's own build infrastructure?
19:30 < KirkMcDonald> dho: This is the most sensible way to pass in
additional -I options.
19:31 < KirkMcDonald> dho: The BIN variable is basically separate from the
others.  I would not miss that much it if it were not there.
19:31 < dho> I guess my question is why is someone wants to build
third-party non-standard libraries alongside the main source
19:31 < dho> Why don't you build them separately?
19:32 < KirkMcDonald> dho: Make.pkg can be used from outside the main
source.
19:32 < KirkMcDonald> dho: My real issue is that there is not a standard
location for compiled third-party packages.
19:33 < fgb> what do you mean by standard?
19:33 < KirkMcDonald> dho: This would give me the hooks I need to both use
Make.pkg for my own third-party packages, and then install them to a location of
my choosing.
19:33 < fgb> included in the go language tar?
19:33 < dho> I think that's a deeper issue, because they wouldn't really go
into $GOROOT/pkg
19:33 < dho> fgb: yes
19:33 < dho> fgb: `part of src/pkg'
19:34 < WalterMundt> exch: anything anywhere for xml output?  e.g.
efficiently escaping an attribute value with > ' & as needed?
19:34 < KirkMcDonald> Actually, I was thinking more along the lines of
somewhere in /usr/local, or even ~/.local.
19:34 < fgb> KirkMcDonald, why do you need a standard location, can't you
just override the values from Make.pkg?
19:34 < KirkMcDonald> fgb: Which values?
19:35 < dho> fgb: It's a good idea, especially for making FreeBSD ports of
go libraries.
19:35 < fgb> kirk, the ones are causing you troubles
19:35 < dho> fgb: at the moment, they'd all end up going into
$GOROOT/pkg/$GOOS_$GOARCH/
19:36 < KirkMcDonald> fgb: Make.pkg does not possess the variables I would
need to override.
19:36 < KirkMcDonald> fgb: That is the purpose of my patch: To add them.
19:36 -!- Guest67226 [n=irc@209.17.191.58] has quit ["leaving"]
19:36 -!- leopa [n=leopoldo@189.114.201.93.dynamic.adsl.gvt.net.br] has joined
#go-nuts
19:37 < dho> KirkMcDonald: I understand the need, don't get me wrong, but I
just wonder whether that's the right way to go about it.  For instance, what
happens when someone decides they want the third party stuff to go somewhere else
19:38 < fgb> for a cmd you overrided GOBIN
19:38 < fgb> for a pkg, you override pkgdir
19:38 -!- bmm [n=bram@195-240-186-6.ip.telfort.nl] has joined #go-nuts
19:40 < dho> KirkMcDonald: especially since GOROOT gets baked in
19:40 < fgb> does that make sense?
19:40 < bmm> When is the first gccgo going to be released?  Or when is the
first proper release coming?
19:40 < WalterMundt> Personally, I'd like to have a tool just for building
go packages in some standard way.  It seems to me that something like Java tools'
propensity for compiling a whole package tree into some output directory would
make sense for Go
19:40 < dho> or not
19:40 <+iant> bmm: discussions are moving slowly as to whether gccgo will be
part of gcc or not
19:41 -!- Makavel [n=eddw@hoasb-ff08dd00-36.dhcp.inet.fi] has joined #go-nuts
19:41 < WalterMundt> and would involve a lot less bookkeeping of lists of go
files in Makefiles at various levels
19:41 < KirkMcDonald> fgb: I regarded pkgdir as being "private," or at least
internal to Make.pkg, as it was not upper-case.
19:41 < fgb> ah, well then a patch that makes it global!
19:41 < KirkMcDonald> heh
19:41 < KirkMcDonald> Perhaps.
19:42 < fgb> you want a GOPKGDIR
19:42 < fgb> global, an that fixes it
19:42 < bmm> iant: Ok. If there is a release of something go related, where
will it be announced?
19:42 < KirkMcDonald> fgb: But this only controls installation.
19:42 < KirkMcDonald> fgb: The other half of the problem is ensuring that
the compiler can find the packages in that directory.
19:43 <+iant> bmm: good question, but I don't have an answer since it kind
of depends on the resolution of whether gccgo will become part of gcc or not
19:43 < fgb> kirk, if you change the defaults, you need extra flags
19:43 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
joined #go-nuts
19:43 < KirkMcDonald> fgb: I do not know what you mean.
19:43 -!- Makavel [n=eddw@hoasb-ff08dd00-36.dhcp.inet.fi] has quit ["Leaving"]
19:43 < bmm> iant: ok, thank you!
19:43 -!- gkmngrgn [n=gkmngrgn@unaffiliated/gkmngrgn] has joined #go-nuts
19:43 < fgb> kirk, so the compiler finds the pkgs
19:43 < uriel> bmm: I think the golang-nuts mailing list is a good bet
19:44 < fgb> I'd rather betting on horses
19:44 < uriel> fgb: hey, what are you doing trolling here?  ;P
19:44 -!- leopa [n=leopoldo@189.114.201.93.dynamic.adsl.gvt.net.br] has left
#go-nuts []
19:44 < bmm> uriel: I'll just keep looking around a bit, but thank you for
the tip.
19:44 < fgb> I got tired of reading about private/public with capitals or
not in the ml
19:46 < anticw> iant: large 'gcc forks' have lived outside of mainline gcc
for a long time in the past
19:46 < anticw> i dont think speedy resolution of that is that important
right now
19:47 < Fringehead> What is the command "cgo" a part of?
19:47 <+iant> anticw: I agree, although I would like to get it resolved one
way or another so that I can finalize the repository location
19:47 < fgb> kirk, btw, I wasn't trolling, I just gave my opinion
19:49 -!- Fish [n=Fish@78.238.225.114] has quit [Read error: 60 (Operation timed
out)]
19:51 -!- oklofok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has joined
#go-nuts
19:51 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has quit ["Leaving"]
19:51 -!- teedex [n=teedex@204.14.155.161] has quit ["Leaving..."]
19:52 < plexdev> http://is.gd/5alYN by [Robert Griesemer] in
go/src/pkg/json/ -- apply gofmt to json files
19:54 < fgb> plexdev is a bot, right?
19:54 <+iant> I sure hope so
19:54 < JBeshir> Maybe they're just really really bored
19:54 < jessta> or really dedicated
19:55 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit ["Leaving"]
19:56 -!- hackbench [n=hackbenc@88.242.234.136] has quit [Read error: 110
(Connection timed out)]
19:57 -!- mitchellh [n=mitchell@microchip.dyn.cs.washington.edu] has quit
["Leaving."]
19:59 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
19:59 -!- irc [n=irc@209.17.191.58] has joined #go-nuts
20:01 -!- oklofok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has quit [Read
error: 60 (Operation timed out)]
20:03 -!- roKB [n=quassel@124.124.84.65] has joined #go-nuts
20:05 -!- DeSoVoDaMu [n=deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
20:05 < dho> it's a very lagged bot.
20:06 -!- oklofok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has joined
#go-nuts
20:07 -!- asyncster [n=asyncste@206.169.213.106] has joined #go-nuts
20:07 < asyncster> is there a way to combine two arrays or slices?
20:07 < dho> duct tape.
20:07 < dho> (sorry, i'm feeling rather unhelpful right now)
20:08 < asyncster> hehe
20:08 -!- oklokok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has quit
[Connection timed out]
20:08 < JBeshir> asyncster: Allocate a new one, as big as the two combined.
Copy.
20:08 < saati> asyncster: create an array that has capacity for both and
copy them into it
20:08 < JBeshir> Be warned that this IS a very inefficient operation.
20:09 < JBeshir> This is also why we need a deque structure and a way to add
these together.
20:09 < asyncster> yeah, im just so used to pythons + operations on lists
20:09 < JBeshir> Because they're awesome.
20:09 -!- Fish [n=Fish@78.238.225.114] has joined #go-nuts
20:09 < JBeshir> asyncster: Yeah, there's a reason Python is nine times
slower than straight C
20:09 < JBeshir> In benchmarks.
20:09 -!- JeffJohnson [n=fho@unaffiliated/jeffjohnson] has quit [Read error: 60
(Operation timed out)]
20:09 < anticw> it depends
20:09 -!- oklofok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has quit
[Connection reset by peer]
20:09 < JBeshir> anticw: that was a rough median.
20:09 < anticw> it's not rough though
20:10 < anticw> tight numeric code it's maybe 100x slower
20:10 -!- oklofok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has joined
#go-nuts
20:10 < anticw> processing or large amounts of text or documents or db work
where it spend the bulk of the time in extentions/native code
20:10 < anticw> it's very close
20:10 -!- bmm [n=bram@195-240-186-6.ip.telfort.nl] has quit [Read error: 113 (No
route to host)]
20:10 < anticw> even contrive stuff like populating maps is fast
20:10 < anticw> faster than go even (right now)
20:11 < anticw> try it, make a map of 1M items and time it in both
20:11 < roKB> any open-source project out there written in go ??
20:11 -!- XniX23 [i=vegy@89-212-233-217.dynamic.dsl.t-2.net] has quit []
20:12 < anticw> there are fragments of things out there
20:12 < anticw> most example code
20:12 < anticw> rblcheck is real code, i should publish that
20:12 < roKB> oui
20:12 < anticw> not that it's interesting
20:12 -!- JeffJohnson [n=fho@e176162155.adsl.alicedsl.de] has joined #go-nuts
20:13 -!- aarapov [n=aarapov@r2ah201.net.upc.cz] has quit ["Leaving."]
20:14 -!- chachan [n=chachan@150.187.40.27] has quit ["KVIrc Insomnia 4.0.0,
revision: , sources date: 20090520, built on: 2009/06/06 11:44:47 UTC
http://www.kvirc.net/"]
20:14 < uriel> roKB: quite a few actually, see
http://go-lang.cat-v.org/go-code (and I have not keept up at all, there are also
many more libs, see the libs page there)
20:14 < Fringehead> Are there any good docs out there on using the *g tools
with existing static/shared libraries?
20:16 < DeSoVoDaMu> can someone explain to me how to actually compile and
use a package?  what i've got: a file main.go which imports "test"; a file test.go
within the same directory with "package test" in it; however i cannot compile
main.go: "can't find import: test"
20:16 -!- skelterjohn [n=jasmuth@lawn-net168-in.rutgers.edu] has quit []
20:16 < uriel> Fringehead: what do you mean?  I think you want to see cgo
20:17 < DeSoVoDaMu> 1st thing unclear: do packages always need to be
precompiled?  havent found anything about that; 2nd: do all packages have to be
located in GO_ROOT/src/pkg or however it is called
20:18 -!- roKB [n=quassel@124.124.84.65] has quit ["No Ping reply in 180
seconds."]
20:19 < Fringehead> uriel: Yes, I'm looking for info on using that.
20:22 < anticw> speaking of cgo, for a lot of things callbacks would be nice
20:22 < anticw> i was trying to think of a way to have those drop channel
messages or something
20:22 < dho> someone faked it for lua.
20:22 < anticw> but the semantics aren't right
20:22 < anticw> dho: oh, interesting
20:22 < dho> go-lang.cat-v.org
20:23 < dho> click the libraries link
20:23 < anticw> dho: in specific cases you can sure, i was more thinking in
general how it should work
20:23 < fgb> desovodamu, -I.  ?
20:23 < dho> it's kind of hacky
20:23 < dho> but interesting nonetheless
20:23 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit []
20:24 -!- simonz05 [n=simon@143.84-49-89.nextgentel.com] has joined #go-nuts
20:24 -!- tobel [n=tobel@p4FDCAF13.dip.t-dialin.net] has joined #go-nuts
20:24 < DeSoVoDaMu> fgb: nope, have tried already
20:26 < anticw> dho: even if go takes off, there will always be some libs to
interface to that will need callbacks
20:26 < dho> sure
20:29 -!- path[l] [n=path@115.184.9.66] has quit [Connection timed out]
20:32 -!- lenst```` [n=user@81-237-244-185-no52.tbcn.telia.com] has joined
#go-nuts
20:32 -!- bmm [n=bram@195-240-186-6.ip.telfort.nl] has joined #go-nuts
20:33 < fgb> damn, really complex case statements in the ml
20:36 < exch> > fmt.Printf("%#v\n", "♣");
20:36 < rndbot> "\u2663"
20:36 < exch> > fmt.Printf("\u2663");
20:36 < rndbot> ♣
20:36 < fgb> heh, nice
20:37 < KirkMcDonald> DeSoVoDaMu: A package must be compiled in order to
import it.
20:37 < KirkMcDonald> DeSoVoDaMu: I wrote a blog post a while back on the
subject:
http://kirkmcdonald.blogspot.com/2009/11/on-compilation-of-go-packages.html
20:38 < KirkMcDonald> DeSoVoDaMu: Note that, in practice, you would never
write a Makefile like the one in that blog post.
20:38 < KirkMcDonald> DeSoVoDaMu: You'd write something more like:
http://code.google.com/p/optparse-go/source/browse/Makefile
20:38 < mrd`> > fmt.Printf("\u9731");
20:38 < rndbot> 霱
20:38 < mrd`> Hrm.
20:39 -!- dju [i=dju@ip-39.net-80-236-37.suresnes.rev.numericable.fr] has joined
#go-nuts
20:39 < exch> > fmt.Printf("\ua5");
20:39 < mrd`> > fmt.Printf("\u2603");
20:39 < rndbot> <Error: non-hex character in escape sequence: ">
20:39 < rndbot> ☃
20:39 < mrd`> There we go.
20:39 < exch> non-hex char?  O_o
20:39 < exch> how is a5 not a hex value?
20:39 < mrd`> I think you need 4 digits.
20:39 <+iant> exch: \u must always be followed by four characters
20:39 < exch> hmm
20:39 <+iant> > fmt.Printf("\u00a5");
20:39 < rndbot> ¥
20:39 < mrd`> (4 hexits?)
20:40 < mrd`> hexadigit
20:40 < rbohn_> 2 is right out.
20:41 < DeSoVoDaMu> KirkMcDonald: nice, finally someone how explains it, thx
20:42 < DeSoVoDaMu> the go documentation is really missing pretty much every
basics about making packages, or it hides it very good..
20:43 < GeoBSD> > fmt.Printf("\u00a6");
20:43 < rndbot> ¦
20:43 < WalterMundt> oh, wow, that's some impressive hackery for callbacks
in the gtk bindings
20:43 < KirkMcDonald> DeSoVoDaMu: To be fair, I figured all of this out by
reading the documentation and just messing with it.
20:44 < GeoBSD> > fmt.Printf("\u00a4");
20:44 < rndbot> ¤
20:44 < GeoBSD> mmm
20:45 < DeSoVoDaMu> KirkMcDonald: well, then i must be stupid to find it -
i've searched all listed "documents" for package, but found exactly nothing useful
20:45 < KirkMcDonald> DeSoVoDaMu: http://golang.org/cmd/
20:47 -!- franksalim [n=frank@adsl-76-221-202-115.dsl.pltn13.sbcglobal.net] has
joined #go-nuts
20:47 < DeSoVoDaMu> KirkMcDonald: i am not talking about the tools or
commands to use, i am talking about packages being compiled .6 (or .X) files and
that stuff
20:48 < KirkMcDonald> That is the part I figured out through use.
20:48 -!- lenst``` [n=user@81-237-244-185-no52.tbcn.telia.com] has quit [Read
error: 110 (Connection timed out)]
20:49 -!- suBMUNDO [n=pCCC@unaffiliated/submundo] has quit [Remote closed the
connection]
20:49 -!- kiva [n=quassel@r220-101-159-148.cpe.unwired.net.au] has joined #go-nuts
20:50 -!- suBMUNDO [n=pCCC@unaffiliated/submundo] has joined #go-nuts
20:50 < exch> righty.  I fixed
http://github.com/jteeuwen/go-pkg-xmlx/blob/master/src/entitymap.go to use the\u
notation for each char.  I noticed that using the real characters in the = ".."
bit causes some issues if the page is displayed on github.  Possibly in other
places as well
20:52 < exch> > fmt.Printf("\u03c0");
20:53 < rndbot> π
20:53 < exch> ^ nom nom
20:54 -!- lenst```` [n=user@81-237-244-185-no52.tbcn.telia.com] has quit [Read
error: 60 (Operation timed out)]
20:56 < savy> exch: no case matching ?
20:56 -!- gkmngrgn [n=gkmngrgn@unaffiliated/gkmngrgn] has quit [Remote closed the
connection]
20:56 -!- triddell [n=tim@207-191-198-64.cpe.ats.mcleodusa.net] has left #go-nuts
[]
20:56 -!- lenst [n=user@81-237-244-185-no52.tbcn.telia.com] has joined #go-nuts
20:57 < exch> nope.  in some case &foo; is different than &Foo;
20:57 < savy> ok
20:57 < WalterMundt> if you use defer+closures to modify a return-value
variable, how does/should that affect the returned value?
20:57 -!- lolsuper_ [n=super_@unaffiliated/lolsuper-/x-9881387] has joined
#go-nuts
20:58 < KirkMcDonald> I would expect the defer to execute after evaluating
the return value, but before returning it.
20:58 < WalterMundt> e.g.  func foo(...) (err os.Error) { defer func() { err
= os.NewError("blarg"); }(); return}
20:58 < WalterMundt> vs.  if it was "return err"
20:59 < KirkMcDonald> Try it.
20:59 < WalterMundt> good idea
20:59 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
21:01 < WalterMundt> KirkMcDonald: compile error, interestingly enough
21:02 < WalterMundt> "cannot take the address of out parameter err"
21:02 -!- poucet [n=poucet@li23-146.members.linode.com] has joined #go-nuts
21:02 <+iant> WalterMundt: Oh yeah; that is really a compiler limitation
21:03 < exch> savy: for instance ö = \u00f6 whereas Ö = \u00d6...
difference between upper and lower-case letters
21:03 < WalterMundt> iant: well, in this case it does save the need to
define the semantics of that construct
21:03 <+iant> indeed
21:03 < WalterMundt> I was thinking it might be nice to be able to check for
a non-nil err and wrap it in a defer
21:03 < WalterMundt> instead of before each call to return
21:04 < WalterMundt> OTOH, I'm not at all sure allowing that kind of thing
would be good for the language in general
21:05 -!- abford [n=abford@c-71-205-224-173.hsd1.mi.comcast.net] has quit
["Leaving"]
21:06 -!- mitchellh [n=mitchell@D-69-91-143-68.dhcp4.washington.edu] has joined
#go-nuts
21:07 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts
21:07 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has left
#go-nuts ["Leaving"]
21:07 -!- kiva [n=quassel@r220-101-159-148.cpe.unwired.net.au] has quit [Read
error: 60 (Operation timed out)]
21:08 -!- p4p4 [n=P4p4@24.121.113.82.net.de.o2.com] has joined #go-nuts
21:09 < plexdev> http://is.gd/5aqpM by [Fazlul Shahriar] in
go/src/cmd/gofmt/ -- gofmt: race condition in error reporting and setting exit
code
21:09 -!- elmar [n=elmar@dslb-188-097-075-166.pools.arcor-ip.net] has joined
#go-nuts
21:11 -!- aarapov [n=aarapov@r2ah201.net.upc.cz] has joined #go-nuts
21:14 -!- jorendorff [n=jorendor@c-76-22-141-17.hsd1.tn.comcast.net] has joined
#go-nuts
21:17 -!- Makavel [n=eddw@hoasb-ff08dd00-36.dhcp.inet.fi] has joined #go-nuts
21:17 -!- Rob_Russell [n=chatzill@bas2-windsor12-1128533271.dsl.bell.ca] has quit
[Read error: 110 (Connection timed out)]
21:18 -!- mitchellh [n=mitchell@D-69-91-143-68.dhcp4.washington.edu] has quit
["Leaving."]
21:19 -!- cpr420 [n=cpr420@67.165.199.143] has joined #go-nuts
21:20 -!- scyth [n=scyth@rots.in.rs] has quit [Read error: 60 (Operation timed
out)]
21:20 -!- mfss [n=mfss@189-38-242-35.static-corp.ajato.com.br] has joined #go-nuts
21:23 -!- GrecKo [n=GrecKo@85-170-160-36.rev.numericable.fr] has joined #go-nuts
21:24 -!- GrecKo [n=GrecKo@85-170-160-36.rev.numericable.fr] has left #go-nuts
["Quitte"]
21:24 -!- brunov [n=bruno@190.191.110.64] has quit [Read error: 110 (Connection
timed out)]
21:24 -!- Xavi_ [n=Xavi@66-191-181-152.dhcp.gnvl.sc.charter.com] has joined
#go-nuts
21:25 -!- mfss [n=mfss@189-38-242-35.static-corp.ajato.com.br] has left #go-nuts
[]
21:26 -!- XniX23 [i=vegy@89-212-233-217.dynamic.dsl.t-2.net] has joined #go-nuts
21:26 -!- bmm [n=bram@195-240-186-6.ip.telfort.nl] has quit ["Ex-Chat"]
21:26 -!- simonz05 [n=simon@143.84-49-89.nextgentel.com] has quit [Read error: 110
(Connection timed out)]
21:27 -!- simonz05 [n=simon@vpn131.krs.hia.no] has joined #go-nuts
21:28 -!- hipe [n=hipe@static-64-61-115-26.isp.broadviewnet.net] has quit [Remote
closed the connection]
21:28 -!- hipe [n=hipe@static-64-61-115-26.isp.broadviewnet.net] has joined
#go-nuts
21:30 -!- Xavi_ [n=Xavi@66-191-181-152.dhcp.gnvl.sc.charter.com] has quit [Remote
closed the connection]
21:31 -!- aarapov [n=aarapov@r2ah201.net.upc.cz] has quit ["Leaving."]
21:31 -!- skelterjohn [n=jasmuth@c-76-116-177-32.hsd1.nj.comcast.net] has joined
#go-nuts
21:31 -!- scyth [n=scyth@rots.in.rs] has joined #go-nuts
21:31 -!- JPascal [n=jpascal@95-27-118-198.broadband.corbina.ru] has left #go-nuts
[]
21:31 -!- jmpnz [n=mennis@adsl-068-016-104-079.sip.asm.bellsouth.net] has joined
#go-nuts
21:33 -!- mennis [n=mennis@adsl-068-016-104-079.sip.asm.bellsouth.net] has quit
[Read error: 104 (Connection reset by peer)]
21:33 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has joined #go-nuts
21:33 -!- decriptor [n=decripto@137.65.132.17] has quit [Remote closed the
connection]
21:34 -!- CaptainLucifel [n=captainl@191.164.66-86.rev.gaoland.net] has quit [Read
error: 104 (Connection reset by peer)]
21:35 -!- decriptor [n=decripto@137.65.132.17] has joined #go-nuts
21:36 -!- gasreaa [n=atwong@nat/slide/x-exbzvuhyubcvgoeo] has joined #go-nuts
21:37 -!- p4p4 [n=P4p4@24.121.113.82.net.de.o2.com] has quit ["ChatZilla 0.9.84
[SeaMonkey 2.0a3/20090223135443]"]
21:37 < DeSoVoDaMu> http://pastebin.com/d688ae2c << is it intended
that nothing is printed here?  the output just stays empty
21:38 <+iant> DeSoVoDaMu: Look for GOMAXPROCS in the FAQ
21:40 < plexdev> http://is.gd/5as7d by [Ian Lance Taylor] in go/doc/ -- Add
copy to the list of predeclared functions.
21:41 -!- tobel [n=tobel@p4FDCAF13.dip.t-dialin.net] has quit ["WeeChat 0.3.0"]
21:41 < dho> DeSoVoDaMu: specifically, I think the problem is that you're
spawning the goroutine, but GOMAXPROCS=1 (default), so you only actually have 1
thread, and the for{} in main is effectively a spinlock preventing the other
goroutine from getting any cycles to execute
21:42 < DeSoVoDaMu> iant: even if i set GOMAXPROCS to 2 (dualcore system
here) nothing changes
21:42 < Amaranth> hrm, shouldn't it spawn a new real thread in that case?
21:42 < taruti> so there is no switching between goroutines if they don't
block on channels?
21:43 < Amaranth> I thought it'd spawn a new thread for goroutines if they
were getting no cycles
21:43 < DeSoVoDaMu> well from what ive read a goroutine is not necessary a
os thread, but it should somehow be called anyway, shouldnt it?
21:43 <+iant> I would expect it to work if GOMAXPROCS is set to 2
21:43 <+iant> that is, I would expect the two routines to run in parallel
21:43 < dho> iant: as would I, let me check that on a couple systems.
21:43 < Amaranth> But apparently it only spawns a new thread if you block on
a channel read or a syscall :/
21:44 < dho> blocks here too, quad core system
21:44 < DeSoVoDaMu> ok, i just want to get sure this behaviour is probably
not intended
21:45 < dho> iant: same behavior in freebsd
21:45 <+iant> DeSoVoDaMu: can you file an issue for that?
21:46 < dho> iant: How should the scheduler recover from that :\
21:46 -!- elmar [n=elmar@dslb-188-097-075-166.pools.arcor-ip.net] has quit
["Leaving"]
21:46 < DeSoVoDaMu> uh, ive actually never done that before
21:46 < fgb> isn't the for{} hogging the cpu?
21:46 -!- Makavel [n=eddw@hoasb-ff08dd00-36.dhcp.inet.fi] has quit ["Leaving"]
21:46 < dho> fgb: yes but it should be executing in multiple threads.
21:46 < dho> fgb: and on a multicore system, that should still output
21:46 <+iant> DeSoVoDaMu: click on "issue tracker" at http://golang.org/
21:46 < dho> iant: gosched() gets called in entersyscall / exitsyscall, and
in channel stuff
21:46 < DeSoVoDaMu> yeah i got it, dont have google acc, sorry^^
21:47 < dho> I'll file an issue
21:47 <+iant> dho: thanks
21:47 < fgb> also, don't you need to flush?
21:47 < fgb> (sorry if I'm being ignorant...)
21:47 <+iant> dho: I would think that a new goroutine could be placed on a
new thread if there were one available
21:47 < asyncster> does anyone know why this has a compiler error:
http://pastebin.org/59853
21:47 <+iant> fgb: even if a flush were required, the infinite loop would
eventually flush
21:48 < fgb> DeSoVoDaMu, what happens if you put a sleep() in the main for?
21:48 <+iant> DeSoVoDaMu: of course, the larger point is that you shouldn't
write your code that way....
21:48 < DeSoVoDaMu> fgb: i'll try in a few minutes
21:48 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has joined
#go-nuts
21:48 < DeSoVoDaMu> iant: i know, i just wanted to try the "go" thing and it
didnt now work as expected then i got to this
21:49 <+iant> asyncster: you might need to put the struct definition in
parentheses, not sure if that is the problem
21:49 -!- oklokok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has joined
#go-nuts
21:50 -!- Fish [n=Fish@78.238.225.114] has quit [Remote closed the connection]
21:51 < jessta> the behaviour makes sense
21:52 < jessta> the main() function has control until it gives up control,
so the add goroutine never gets to execute
21:52 -!- uriel [n=uriel@li43-28.members.linode.com] has joined #go-nuts
21:52 -!- JeffJohnson [n=fho@e176162155.adsl.alicedsl.de] has joined #go-nuts
21:52 < jessta> the main function never blocks on anything so the runtime
has no reason to spawn a new thread
21:52 -!- exDM69 [n=riku@84.34.147.150] has joined #go-nuts
21:52 -!- mpl [n=mpl@213.251.175.204] has joined #go-nuts
21:52 -!- spikebike [n=bill@209.237.247.72] has joined #go-nuts
21:52 -!- andern [n=NA@55.84-234-230.customer.lyse.net] has joined #go-nuts
21:52 -!- svanlund [n=david@79.99.2.92] has joined #go-nuts
21:52 -!- t5vaha01 [i=t5vaha01@193.167.100.97] has joined #go-nuts
21:52 -!- AmirMohammad [n=amir@213.207.243.252] has joined #go-nuts
21:52 -!- djm [n=djm@paludis/slacker/djm] has joined #go-nuts
21:53 -!- Innominate [n=sirrobin@cpe-071-077-041-139.nc.res.rr.com] has joined
#go-nuts
21:53 < jessta> DeSoVoDaMu: yeah, goroutines only yield on blocking calls
21:54 -!- adiabatic [n=adiabati@dsl-206-55-130-248.tstonramp.com] has joined
#go-nuts
21:55 -!- oklofok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has quit [Read
error: 60 (Operation timed out)]
21:56 < fgb> jessta is right
21:56 < fgb> no bug there
21:56 < plexdev> http://is.gd/5asUu by [Rob Pike] in go/doc/ -- change the
naming example from Vector to Ring due to loss of vector.New()
21:56 < fgb> Plan 9's thread library has a yield() function for these cases
21:58 < dho> hm
21:58 -!- OwlHuntr [n=dapopo@32.128.185.236] has joined #go-nuts
21:58 < dho> Yeah, this is still wrong
21:58 < fgb> not really
21:58 < DeSoVoDaMu> i c, but then i am wondering how this is done in gccgo,
which implements go routines 1:1 as os threads (at least this it what was said in
the tech talk if i am not mistaken); because then the os breaks threads and it
should behave different
21:58 < dho> fgb: they aren't coroutines.
21:58 < dho> so yes, it is
21:58 -!- OwlHuntr [n=dapopo@32.128.185.236] has quit [Client Quit]
21:58 < rovar> blarg
21:58 -!- hipe [n=hipe@static-64-61-115-26.isp.broadviewnet.net] has quit [Read
error: 104 (Connection reset by peer)]
21:58 < dho> even with GOMAXPROCS=2, it ends up not printing if I add a
short syscall.Sleep() before the for{}
21:58 < dho> sorry, it prints a bit and then dies
21:58 -!- nullpo [n=nullpo@221x252x46x83.ap221.ftth.ucom.ne.jp] has joined
#go-nuts
21:59 < fgb> DeSoVoDaMu, the c equivalent http://gopaste.org/view/OFyN0
21:59 -!- melba [n=blee@unaffiliated/lazz0] has quit ["MICROSOFT WORD IS A FUN
GAME"]
21:59 < uriel> DeSoVoDaMu afaik gccgo's implementation is not complete,
eventually it will work just like gc
22:00 < dho> uriel: gc doesn't work.
22:00 -!- nigwil [n=chatzill@berkner.ccamlr.org] has joined #go-nuts
22:00 < dho> fgb: they aren't coroutines.
22:00 < uriel> dho: ?
22:00 < fgb> they are goroutines, they need a way to know when to spawn an
actual proc
22:00 < dho> DeSoVoDaMu: 6g with GOMAXPROCS=2 should have 1:1 threading
22:00 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has quit [Read error: 110
(Connection timed out)]
22:00 -!- oklokok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has quit
[Connection reset by peer]
22:00 < dho> fgb: goroutines can be in different threads.
22:00 < dho> that's what GOMAXPROCS is for
22:01 < dho> it's essentially a thread pool number to attach goroutines in
22:01 < fgb> ok, my assumption is that the runtime sometimes creates actual
procs and others just threads
22:01 < fgb> is that incorrect?
22:01 < DeSoVoDaMu> fgb: somehow the include stuff is missing
22:02 < DeSoVoDaMu> fgb: in your c equivalent i mean
22:02 < fgb> yep, gopaste is borked
22:02 < DeSoVoDaMu> -.-
22:02 -!- oklofok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has joined
#go-nuts
22:02 < dho> fgb: I'm not sure what the heuristics are for when it actually
puts a goroutine in a separate OS-level thread
22:02 < fgb> exactly
22:02 < fgb> most likely if a goroutine does something that blocks
22:02 < alexsuraci> fgb: gopaste isn't borked, it's just for go code :P
22:02 < nf_> should the programmer have to be aware of how many threads /
cpus there are?
22:02 < fgb> it probably spawns a proc
22:03 < fgb> alexsuraci, ;)
22:03 < antarus|wtf> nf_: usually
22:03 < fgb> DeSoVoDaMu, http://pastebin.com/m1435c90
22:03 < dho> fgb: yes, it spawns one if I do syscall.Sleep() but then the OS
should control scheduling of it.
22:03 < dho> fgb: not Go
22:03 < dho> so I should continue to see it executing
22:03 < dho> I don't
22:03 < alexsuraci> fgb: oh, sorry, it is borked.
22:03 -!- mythz [n=mythz@5ac47b45.bb.sky.com] has joined #go-nuts
22:03 < fgb> alexsuraci, yep it ignores < >
22:04 < alexsuraci> yea.  actually, I think it's just not escaping html
output.  woops.
22:04 < nf_> is this issue observed when GOMAXPROCS=2 ?
22:04 < alexsuraci> how did I miss that :X
22:04 < dho> nf_: yes
22:04 < dho> that's my point
22:05 < fgb> the heuristics don't work there because the main doesn't block
22:05 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has joined #go-nuts
22:05 < nf_> so arguably in any *real* situation, main would block for a
result from the goroutine?
22:05 < dho> fgb: you misunderstand
22:05 < dho> fgb: it shouldn't MATTER if main blocks
22:05 < fgb> nf, that's what I think
22:05 < jessta> dho: it should matter
22:05 < dho> jessta: why
22:05 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit
["Leaving"]
22:06 < dho> jessta: for spawning, yes.  for executing, no.
22:06 < jessta> no need to spawn thread if not blocking
22:06 < nf_> dho: isn't it effectively an optimisation to not execute the
goroutine, if it doesn't return any result?
22:06 < fgb> jessta, exactly
22:06 < dho> sigh
22:06 < antarus|wtf> I think there is some miscommunication here ;)
22:06 < dho> fine, add syscall.Sleep(10e6); in the middle
22:06 < dho> You get
666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666
22:06 < jessta> go isnt going to spawn a new thread for each goroutine
22:06 < dho> and then it stops printing.
22:06 < nf_> antarus|wtf: i am trying to understand what it is, too =)
22:07 < dho> jessta: when do you get a goroutine in a new thread, then?
22:07 < jessta> and no reason to distribute 2 goroutines over 2 threads
unless one of the blocks
22:07 < jessta> dho: when you block on a syscall
22:07 < dho> no
22:07 < dho> you don't.
22:07 < dho> you get a new goroutine, but it's not necessarily in a
different thread.
22:07 < fgb> heh, this is getting nowhere
22:07 < jessta> because it blocks the actual thread
22:07 < dho> sigh
22:07 < nf_> jessta: so go won't support concurrency for cpu-bound tasks?
doesn't sound right to me
22:07 < fgb> dho, you need some sort of AI to know that the code is not
going to block
22:08 < fgb> but it should spawn a new process!
22:08 < dho> fgb: you're still misunderstanding me
22:08 < dho> that's not at all what i'm saying.
22:08 < jessta> fgb: AI? more like code to solve the halting problem
22:08 < dho> GOMAXPROCS controls the number of OS-level threads used by Go
22:08 < dho> these threads are NOT scheduled by go, they are scheduled by
the OS.
22:09 < dho> go add(1, 5); creates a new goroutine
22:09 < dho> That goroutine may or may not end up in a separate thread,
depending on GOMAXPROCS and some other heuristics that I'm apparently unaware of
22:10 < dho> If the goroutine DOES end up in a separate thread, main() and
add() are executing in different OS-level threads, and should continue to run in
parallel, regardless of whether or not either blocks on e.g.  a syscall
22:10 < jessta> that goroutine will end up on another thread if the current
thread blocks on a syscall
22:10 < dho> so it gets switched back and forth between threads?
22:11 < dho> that doesn't make any sense.
22:11 < jessta> the runtime can move goroutines between threads
22:11 -!- double [n=double@host16-196-dynamic.25-79-r.retail.telecomitalia.it] has
joined #go-nuts
22:11 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined
#go-nuts
22:11 < dho> http://gopaste.org/view/OFyN0
22:11 < dho> In my mind, go add() should go into a different thread and stay
there.
22:12 < exch> go routines != threads
22:12 < dho> OMFG
22:12 < dho> I KNOW
22:12 < dho> I PORTED THE LANGUAGE
22:12 < dho> jesus h.  christ
22:12 < exch> :p
22:12 < exch> well then.  why so confus?
22:12 < nf_> dho: yeah i think the main point is, a goroutine is not just
supposed to be a separate thing that runs indefinitely
22:12 < jessta> go add() just adds a gourtine to the schedule, it's doesn't
get executed there
22:12 < Vova> how can i compile more then one file?
22:12 < Vova> like package main uses some package i coded
22:12 < dho> jessta: it gets executed.
22:12 < dho> try it
22:12 < dho> before you comment further
22:13 < reppie> xD
22:13 < dho> with GOMAXPROCS=2 on a multicore system
22:13 < alexsuraci> fgb: http://gopaste.org/view/OFyN0 fixed, thanks for the
inadvertant bug report :P
22:13 < scandal> Vova: you can use gopack to create a .a for your package
22:13 < fgb> alexsuraci, heh
22:14 -!- path[l] [n=path@115.184.16.167] has joined #go-nuts
22:14 < Vova> i dont want .a file
22:15 < jessta> dho: ok, so it gets executed, blocks and yields back to main
which goes in to an infinite loop
22:15 < Vova> when compiling it sais package main; expected console
22:15 < dho> jessta: why should it yield to main?
22:15 < Vova> says*, console is the other package
22:15 < dho> it's in a separate OS-level thread, it shouldn't have to yield
22:15 -!- oklokok [n=oklopol@a91-153-117-63.elisa-laajakaista.fi] has joined
#go-nuts
22:15 < jessta> dho: is it?
22:15 < dho> jessta: from what you just said
22:15 < dho> 17:11 < jessta> that goroutine will end up on another
thread if the current thread blocks on a syscall
22:16 < jA_cOp> It's only in a separate thread when it has to, if every
goroutine was in its own kernel thread they wouldn't be nearly as useful
22:16 -!- nutate [n=rseymour@cacsag4.usc.edu] has joined #go-nuts
22:16 < fgb> dho, if it's the way you say, why doesn't it work?
22:16 < dho> Ok, so how do I pin a goroutine to a thread?
22:17 < jA_cOp> If you've seen the tech-talk, you can see how 100k
goroutines can finish up pretty quick on a laptop computer
22:17 < jessta> dho: yeah, and no syscall
22:17 < jA_cOp> Try making 100k OS threads to do the same thing...
22:17 < fgb> it might be luck, but the test case proved my point...
22:17 < dho> fgb: it also proved mine
22:17 < Vova> can someonehelp me with compiling 2 files?
22:17 < dho> I think you *all* misunderstand my point.
22:18 < rovar> dho: I don't think you do.  Are specifically trying to tie
something to a thread?  or do you just want to avoid accessing 1 resource from
multiple threads?
22:18 < reppie> ;_:
22:18 < rovar> e.g.  opengl context
22:18 < dho> rovar: Imagine you have a thread that just does computation
22:19 < dho> I don't know why you do that, maybe you embedded folding@home
into your application or somesuch.
22:19 < dho> If I have 4 processors and GOMAXPROCS=4, I should be able to
have that thread running at all times, with three more threads for other
goroutines that do syscalls and block on channels
22:19 < rovar> dho, If you're just doing computation, then it's likely that
the stack won't be moved to another thread, but there is nothing to guarantee
that, iirc
22:19 < rovar> trust the scheduler :)
22:20 < reppie> trust no one
22:20 < rovar> except the scheduler
22:20 < dho> sigh
22:20 < jessta> dho: "LockOSThread wires the calling goroutine to its
current operating system thread.  "
22:21 < jA_cOp> There's no reason to use Go if you're not going to trust the
goroutine multiplexer completely...
22:21 -!- double [n=double@host16-196-dynamic.25-79-r.retail.telecomitalia.it] has
left #go-nuts []
22:21 < dho> that's also not true, but whatever
22:21 * dho tries lockosthread
22:21 < nf_> dho: if you want concurrency, would you consider performing
what you've got in main() in another goroutine, and having main() block waiting
for the results?
22:23 -!- mennis [n=mennis@adsl-068-016-104-079.sip.asm.bellsouth.net] has quit
[Read error: 110 (Connection timed out)]
22:23 < dho> haha, that causes a panic (LockOSThread
22:24 < reppie> kernel panic?
22:24 -!- brunov [n=bruno@190.191.110.64] has joined #go-nuts
22:24 < dho> no
22:24 < asyncster> sometimes i wish vectors were built into the language
22:24 < dho> nf_: That's probably the `right way' to do it
22:25 -!- oklofok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has quit [No
route to host]
22:26 < nf_> dho: well if this current approach doesn't work, maybe it's the
'only way' =)
22:26 < dho> nf_: it seems silly to me
22:26 < dho> iant: I'm going to think about this more before I file the
issue.
22:26 < Vova> can someone elp me with compiling 2 files?  i used g8 *.go and
i t gave me package main; excepted 2ndPackgeName
22:27 < nf_> dho: i agree it seems a little ambiguous and magical, but you
are usin ga contrived example
22:27 < KirkMcDonald> Vova: Two files belonging to two packages?
22:27 < dho> nf_: that's just because i'm not a mathematician :)
22:27 < nf_> dho: heh :) i would try to come up with a 'real-world'ish
example to file with your issue
22:27 < dho> I'm sure someone else could come up with a better example; all
of mine would block
22:27 -!- lenst [n=user@81-237-244-185-no52.tbcn.telia.com] has quit [Remote
closed the connection]
22:27 < Vova> first is the main and uses the other package
22:28 -!- oklofok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has joined
#go-nuts
22:28 < KirkMcDonald> Vova: Let's say your files are main.go and package.go.
22:28 < dho> nf_: well that's part of the reason I want to wait, the other
is because we all know the scheduler needs work
22:28 < Vova> ok
22:28 -!- DeSoVoDaMu [n=deso@x0561a.wh30.tu-dresden.de] has quit [Read error: 104
(Connection reset by peer)]
22:28 < KirkMcDonald> Vova: You would say: 8g package.go; 8g -I.  main.go;
8l -o main main.6
22:28 < nf_> dho: indeed.  well if you can devise a realistic test-case that
breaks the current scheduler i imagine it's a valuable contribution to the project
22:28 < KirkMcDonald> Err.
22:29 < KirkMcDonald> Vova: I meant main.8, rather than main.6.
22:29 < fgb> DeSoVoDaMu, the fundamental problem with your code is that
you're not using the language in the way it's supposed to be used, I mean, you
create a goroutine, but there is no comunication between main and add, nor
nothing, so it just doesn't make sense
22:29 < KirkMcDonald> Vova: For more on the subject, see this blog post:
http://kirkmcdonald.blogspot.com/2009/11/on-compilation-of-go-packages.html
22:30 -!- snearch [n=olaf@g225059123.adsl.alicedsl.de] has quit ["Ex-Chat"]
22:30 -!- gkmngrgn [n=gkmngrgn@78.185.225.92] has joined #go-nuts
22:31 < Vova> ok , thanks :]
22:31 -!- skyyy [i=caw@res55551479.rh.rit.edu] has joined #go-nuts
22:32 < dho> nf_: i'll ask my friend who is a rocket scientist
22:32 -!- harja [n=maharj@castor.utu.fi] has joined #go-nuts
22:32 -!- ikke [n=ikke@189.58.196.157.dynamic.adsl.gvt.net.br] has joined #go-nuts
22:33 -!- skelterjohn [n=jasmuth@c-76-116-177-32.hsd1.nj.comcast.net] has quit []
22:34 -!- mbarkhau [n=koloss@p54A7F92E.dip.t-dialin.net] has joined #go-nuts
22:34 -!- mitchellh [n=mitchell@c-71-231-140-22.hsd1.wa.comcast.net] has joined
#go-nuts
22:35 < nf_> dho: no matter what problem you want to solve, the main()
thread is always going to block waiting for a result at some point.  your example
doesn't.
22:36 < nf_> dho: that is the sense in which it is contrived.  not that it
doesn't do anything computationally useful.
22:36 -!- oklokok [n=oklopol@a91-153-117-63.elisa-laajakaista.fi] has quit [Read
error: 110 (Connection timed out)]
22:36 < nf_> s/the main() thread/main()/
22:39 < jessta> dho: http://gopaste.org/view/d8aik
22:41 < jessta> dho: oops, actually that doesn't work right
22:42 < anticw> iant: is someone actively working on recycler?
22:42 -!- Kom|Gone [n=kommentg@ip70-178-193-114.ks.ks.cox.net] has joined #go-nuts
22:43 < dho> anticw: I'm curious about IBM's patents on recycler
22:43 -!- hipe [n=hipe@pool-96-224-8-82.nycmny.east.verizon.net] has joined
#go-nuts
22:43 < fgb> don't you need to yield() inside the loop?
22:43 < fgb> jessta
22:43 < anticw> dho: i'm not
22:43 < anticw> the less i know the better
22:44 < dho> anticw: I am, because they have some and that may impede its
use in a BSD-licensed language
22:44 < jessta> fgb: nah, trying to get the goroutines on different threads
22:45 < anticw> dho: that depends on a great many things, and there will be
legal arguments on both sides
22:45 < anticw> and until there is a judicial decision, we won't know ...
or maybe ibm will just agree that you can use patents x,y,z for certain purposes
w/o examination?
22:46 < dho> *nods*
22:46 < anticw> anything is possible, but assuming that a patent exists and
therefore is enforacable and sensible or would be enforced at this point seems
premature
22:46 < anticw> i'm pretty sure google have legal people that talk to ibm
legal people if nothing else
22:46 < dho> it's not assuming one exists, there are several that do exist
22:46 < dho> http://www.research.ibm.com/people/d/dfb/recycler-patents.html
22:47 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has quit ["Ex-Chat"]
22:47 < anticw> what's more, if they are issues and they only cover parts of
the problem space, there are likely work-arounds
22:48 < dho>
http://www.google.com/patents?id=WOl_AAAAEBAJ&printsec=abstract&zoom=4&source=gbs_overview_r&cad=0#v=onepage&q=&f=false
22:48 < anticw> la la la la
22:48 < anticw> i can't hear you
22:48 < dho> ignoring the existence of the patent doesn't make it not exist
22:49 < dho> you may as well read about it
22:49 < anticw> actually, that depends
22:50 < anticw> 35 U.S.C.  S 284
22:50 < nf_> having prior knowledge of the patent might make it harder to
argue 'obviousness'
22:50 < anticw> knowing *something* exists and know the details are very
different things
22:50 < anticw> for example, i know the government has secrets, but i don't
know what they are ...  the distinctiong is very important in some cases
22:51 < dho> I suppose
22:55 < XniX23> i have an offtopic question, is gccgo less stable than 6g?
22:55 -!- tokuhiro_______2 [n=tokuhiro@s230.GtokyoFL21.vectant.ne.jp] has quit
[Read error: 104 (Connection reset by peer)]
22:56 -!- tokuhiro_______2 [n=tokuhiro@s230.GtokyoFL21.vectant.ne.jp] has joined
#go-nuts
22:58 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts []
22:58 -!- ShadowIce [n=pyoro@unaffiliated/shadowice-x841044] has quit
["Verlassend"]
22:58 -!- simonz05 [n=simon@vpn131.krs.hia.no] has quit ["Ex-Chat"]
22:59 < fgb> ok, so this is how I think it works, the procs thing
22:59 < fgb> the libraries whenever going to call a syscall, they call
runtime-entersyscall() and when it's doen
22:59 < fgb> runtime-exitsyscall()
23:00 < fgb> when exit it goes back to a thread (as opposed to os proc)
23:00 < fgb> http://golang.org/src/pkg/runtime/proc.c
23:01 -!- xuser [n=xuser@unaffiliated/xuser] has joined #go-nuts
23:01 < dho> there are a few other cases where that happens, yes
23:01 < dho> s/yes/but yes/
23:02 < dho> matchmg() ends up creating the new goroutine and gosched() ends
up calling gogo() which calls the scheduler which figures out what to execute
23:03 < fgb> so basically if you put runtime.Gosched(); in main's loop
23:03 < fgb> it should work
23:03 < dho> yes, but that's not what i'm trying to do :)
23:04 < dho> nf_'s point is good because it's essentially the equivilent of
pthread_join() for go
23:04 < dho> if you try to use goroutines like pthreads, you have to wait
for termination somehow
23:08 -!- rog [n=rog@92.26.230.108] has quit []
23:08 <+iant> I've been told at previous jobs that it's generally best to
not become aware of patents
23:08 <+iant> this of course violates the basic principle of the patent
system which is to publish information, but so it goes
23:09 <+iant> gccgo is intended to be as stable as 6g/8g, but it has its own
set of bugs
23:09 <+iant> overall it holds up pretty well if you can get it to build
23:09 -!- Venom_X [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has quit []
23:10 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts
23:12 < dho> hm
23:12 * dho tries it on freebsd.
23:15 -!- oklofok [n=oklopol@a91-153-117-208.elisa-laajakaista.fi] has quit [Read
error: 54 (Connection reset by peer)]
23:15 < dho> must be fun to work on a programming language for work
23:15 <+iant> it is
23:15 -!- oklofok [n=oklopol@a91-153-117-63.elisa-laajakaista.fi] has joined
#go-nuts
23:16 -!- rd1 [n=Administ@124-169-222-26.dyn.iinet.net.au] has joined #go-nuts
23:16 -!- tedster [n=tedster@67.23.158.117] has joined #go-nuts
23:16 < dho> gives me something fun to do after a lame day of php
23:16 < dho> at least
23:16 < dho> haha
23:17 <+iant> PHP is fun and interesting!
23:17 -!- ikke [n=ikke@189.58.196.157.dynamic.adsl.gvt.net.br] has quit [Read
error: 110 (Connection timed out)]
23:17 < dho> ...
23:17 < dho> you're on crack
23:17 <+iant> always keep a positive attitude!
23:17 -!- hcatlin [n=hcatlin@host81-154-246-241.range81-154.btcentralplus.com] has
quit []
23:17 < dho> having done a couple books on php and using it in every job but
1 for the past 9 years, my only response is `no'
23:17 < dho> :(
23:18 < dho> holy christ checking out gcc from svn takes a long time
23:18 <+iant> wait till you try building it....
23:18 < dho> can i skip enabling c and c++ or is that required for
bootstrapping?
23:18 <+iant> we're upgrading gcc.gnu.org, at least, and it should get some
better connectivity too
23:18 <+iant> dho: c and c++ are required to build the Go compiler
23:19 <+iant> dho: you can configure with --disable-bootstrap to skip
bootstrapping, though, if you know what you are doing
23:19 < dho> grmblgrmbl
23:19 < dho> iant: I'll tell you if it worked in like 3 years
23:19 < dho> :)
23:19 <+iant> ha
23:21 < dho> can I at least use make -j?
23:21 -!- crc [n=charlesc@c-68-80-139-0.hsd1.pa.comcast.net] has joined #go-nuts
23:21 <+iant> yes, make -j works fine
23:21 * dho jaysixxes it up
23:21 < dho> hooray 3 core processor
23:21 <+iant> in practice the best results are usually to use -j
(number-of-virtual-cpus + 1)
23:23 < dho> on gccgo_install.html: `(static linking is the default for the
6l Go linker)'
23:23 < dho> no?
23:23 < dho> I thought *l default to dynamic linking now.
23:23 -!- Ryan_ [n=ryan@h246.117.88.75.dynamic.ip.windstream.net] has joined
#go-nuts
23:24 <+iant> dho: it links all the Go code statically, though
23:24 < dho> Oh, I see.
23:24 <+iant> you're right that the clause is slightly incorrect
23:25 < antarus|wtf> iant: you want to trade; I'll work on go and you can
work on dns for a quarter ;p
23:25 -!- Xavi [n=Xavi@66-191-181-152.dhcp.gnvl.sc.charter.com] has joined
#go-nuts
23:25 <+iant> I worked on a DNS proxy once for a contract; that was
sufficient
23:25 < dho> iant: how about PHP then?  you seemed to like that :)
23:26 -!- hstimer [n=hans@c-98-234-25-125.hsd1.ca.comcast.net] has quit [Read
error: 110 (Connection timed out)]
23:26 <+iant> hmmm, I done only a little bit of PHP; I did host a talk by
Paul Biggar on a PHP compiler, though....
23:26 < dho> hehe
23:27 -!- osmosis [n=steven@m790e36d0.tmodns.net] has joined #go-nuts
23:27 * antarus|wtf hasn't done php in a loong time
23:27 < antarus|wtf> not sure which was worse
23:27 -!- mythz [n=mythz@5ac47b45.bb.sky.com] has left #go-nuts []
23:28 < GeoBSD> when a go compiler in go iant ?
23:28 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined
#go-nuts
23:28 < plexdev> http://is.gd/5axBe by [Russ Cox] in go/src/pkg/net/ -- net:
test and fix support for 0-length datagram packets.
23:28 <+iant> GeoBSD: I don't think anybody is actively working on that at
the moment, Go is a good language for a compiler, though, I think
23:28 <+iant> biaw
23:29 < nf_> antarus|wtf: i'm writing some php right now!  arrgh!
23:29 -!- abford [n=abford@c-71-205-224-173.hsd1.mi.comcast.net] has joined
#go-nuts
23:31 * antarus|wtf primarily codes in python
23:31 < antarus|wtf> but that is why go is quasi-exciting
23:31 < antarus|wtf> because python is slow :/
23:33 -!- path[l] [n=path@115.184.16.167] has quit []
23:33 < nf_> indeed.  my interest in go is for the same reason - i have
written a sizeable reporting engine in python that is constrained by the GIL and
made awkward by Python's mediocre threading support
23:34 < nf_> i was very happy when go was released and goroutines are
essentially what i implemented in python using threads, generators, and queues
23:36 -!- Xavi [n=Xavi@66-191-181-152.dhcp.gnvl.sc.charter.com] has quit [Remote
closed the connection]
23:36 -!- osmosis [n=steven@m790e36d0.tmodns.net] has quit ["Ex-Chat"]
23:36 < dho> why didn't you just use stackless?
23:37 < saati> stackless is still limited to one core iirc
23:37 -!- Vova [n=Vova@80.178.10.36.adsl.012.net.il] has quit []
23:37 < nf_> dho: because i didn't think of it!
23:38 < nf_> it would be quite simple to port it to stackless, i have not
the time to do it though
23:38 < uriel> stackless can't even keep going if *any* task blocks
23:39 < uriel> which makes it pretty useless
23:39 < antarus|wtf> Eve Online seems to have success with stackless; so I
would hesitate to call it useless
23:39 < saati> it's far from useless though, it powers the eve universe
23:39 < uriel> with tons of C and C++ under it
23:40 < uriel> maybe not useless, but in no way comparable to Go
23:40 < dho> uriel: it's easy to not block
23:40 < dho> so
23:40 < uriel> (despite what some like to claim)
23:40 < dho> :)
23:40 < antarus|wtf> heh; not trying to get into an argument here ;)
23:40 < antarus|wtf> different strokes for different folks and all that jazz
23:40 -!- newsham [n=chat@thenewsh.com] has joined #go-nuts
23:41 < newsham> 3 quick questions: what's the status of golang for freebsd,
plan9 and windows?
23:41 < dho> newsham: i ported to freebsd and it's `done'
23:41 < xuser> dead, dead, dead
23:41 < dho> plan 9 is sape's job
23:42 < dho> windows has support from hectorchu, it's in googlecode and is
being merged in pieces
23:42 < uriel> newsham: for Go ports, probably the best place to check so
far is http://go-lang.cat-v.org/os-ports ;)
23:42 < newsham> is freebsd port in freebsd ports tree?
23:42 < dho> newsham: no, wxs is working on that
23:42 < newsham> uriel: danke
23:42 < dho> newsham: it builds fine from hg though.
23:42 < uriel> btw, what is up with the obsd port?
23:43 < newsham> cool.  what hg tag?  just the head?
23:43 < dho> uriel: i haven't had time to figure out the elf format
weirdness
23:43 < dho> newsham: yes, you need tip
23:43 < uriel> oh, obsd uses elf now?  :(
23:43 < dho> newsham: current release doesn't have full freebsd support
23:43 < dho> uriel: obsd has used elf for a long time
23:43 < uriel> how sad
23:43 < newsham> elf is ubiquitous now
23:43 * dho doesn't see why it's sad
23:44 -!- hstimer [n=hans@70.90.170.37] has joined #go-nuts
23:44 < newsham> dho: the added complexity.
23:44 -!- Bao [n=bao@h-200-46.A212.priv.bahnhof.se] has left #go-nuts []
23:44 < dho> newsham: the only reason that there is added complexity is
because openbsd has some weird requirements
23:45 < dho> newsham: like a .note.openbsd.ident SHT_NOTE section that
contains "OpenBSD"
23:45 -!- eek_ [n=eivind@213-155-151-233.customer.teliacarrier.com] has quit [Read
error: 60 (Operation timed out)]
23:45 < dho> I just haven't had the time to see if that fixes everything
23:45 -!- eek [n=eivind@213-155-151-233.customer.teliacarrier.com] has joined
#go-nuts
23:45 < dho> when I do, OpenBSD should be relatively simple
23:45 < dho> hi eek
23:45 -!- Ryan_ [n=ryan@h246.117.88.75.dynamic.ip.windstream.net] has quit
["Colloquy for iPhone - http://colloquy.mobi"]
23:46 < dho> newsham: besides, *l already generates ELF for
linux/nacl/freebsd
23:47 < dho> newsham: would love to see some serious users of go/freebsd
23:49 < nf_> dho: are the changes pushed upstream?  i'm a freebsd user
mostly, but have only installed go on my osx workstation so far
23:50 < dho> nf_: yes, tip is 100%
23:50 < dho> release is not because it was tagged pretty much immediately
after amd64 went in
23:50 < dho> which was on the 17th
23:50 < nf_> cool i will give it a go
23:50 < newsham> how functional is hectorchu-go-windows?
23:51 -!- mpl_ [n=mpl@smgl.fr.eu.org] has joined #go-nuts
23:51 < dho> I have no idea.  He's posted about it on
golang-nuts@googlegroups.com
23:51 < newsham> uriel: would be nice if cat-v had a quick
solid/fairlystable/needswork/etc w/ a datestamp
23:51 < dho> he's in here as hector sometimes
23:52 < dho> newsham: ok i'll add that
23:52 -!- jA_cOp [n=yakobu@ti0043a380-3093.bb.online.no] has quit [Remote closed
the connection]
23:52 < AndrewBC> ah, dho, you're the admin of cat-v?
23:52 < dho> or i would but uriel's editing it at the moment
23:52 < dho> no
23:52 < dho> uriel
23:52 < AndrewBC> well if you're involved, then thanks to you as well
23:52 < AndrewBC> but thanks for cat-v uriel :)
23:52 < dho> you're welcome, but i'm usually very uninvolved, and uriel gets
99.999999% of what you just gave me too.
23:53 < newsham> thanks for the infos.
23:53 -!- newsham [n=chat@thenewsh.com] has left #go-nuts []
23:54 -!- hhg [n=hhg@hhg.to] has quit [Read error: 104 (Connection reset by peer)]
23:54 -!- mpl [n=mpl@213.251.175.204] has quit [Read error: 104 (Connection reset
by peer)]
23:55 -!- hhg [n=hhg@hhg.to] has joined #go-nuts
23:55 -!- jA_cOp [n=yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
23:55 -!- aaront [n=aaront@d24-141-25-171.home.cgocable.net] has joined #go-nuts
23:56 -!- osmosis [n=steven@m390e36d0.tmodns.net] has joined #go-nuts
--- Log closed Thu Dec 03 00:00:30 2009