--- Log opened Sun Jan 03 00:00:41 2010
00:03 -!- poucet [n=poucet@li23-146.members.linode.com] has left #go-nuts []
00:06 -!- rah_ [n=rah@75.46.213.219] has joined #go-nuts
00:13 -!- Garen [n=garen@cpe-75-87-255-36.natnow.res.rr.com] has quit [Read error:
110 (Connection timed out)]
00:16 -!- hyakuhei [n=hyakuhei@78.32.138.28] has quit [Read error: 113 (No route
to host)]
00:19 -!- keet [n=o@unaffiliated/keet] has joined #go-nuts
00:20 -!- GeoBSD [n=geocalc@lns-bzn-37-82-253-33-76.adsl.proxad.net] has quit
[Remote closed the connection]
00:26 -!- [Pete_27] [n=noname@115.64.1.61] has quit [Read error: 60 (Operation
timed out)]
00:26 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
00:27 -!- rah_ [n=rah@75.46.213.219] has quit []
00:27 < goplexian> what does ast stand for?
00:27 < goplexian> as in "go/ast"
00:27 < vsmatck1> abstract syntax tree?
00:27 < goplexian> thx
00:34 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts []
00:41 -!- slashus2_ [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined
#go-nuts
00:44 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit ["Bye
Bye"]
00:47 -!- Adys [n=Adys@unaffiliated/adys] has quit [Remote closed the connection]
00:48 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit [Read
error: 60 (Operation timed out)]
00:51 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts
00:54 -!- sheb [n=seb@AToulouse-152-1-64-142.w82-125.abo.wanadoo.fr] has quit []
00:55 -!- gkmngrgn [n=gkmngrgn@unaffiliated/gkmngrgn] has quit [Remote closed the
connection]
00:58 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
01:03 -!- Method [n=Method@unaffiliated/method] has quit [Read error: 104
(Connection reset by peer)]
01:04 -!- frosty [n=frosty@c83-253-172-174.bredband.comhem.se] has quit [Read
error: 60 (Operation timed out)]
01:06 -!- keet [n=o@unaffiliated/keet] has quit ["you just lost the game."]
01:06 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
quit ["ChatZilla 0.9.85-rdmsoft [XULRunner 1.9.0.14/2009090900]"]
01:07 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
joined #go-nuts
01:12 -!- kanru [n=kanru@220-132-104-233.HINET-IP.hinet.net] has quit ["WeeChat
0.3.1-dev"]
01:19 < goplexian> I could really use a debugger.
01:19 -!- frosty [n=frosty@83-117.anonymous.at.anonine.com] has joined #go-nuts
01:19 -!- lotrpy [n=lotrpy@202.38.97.230] has joined #go-nuts
01:20 -!- adk9 [n=adk9@dhcp-cs-244-202.cs.indiana.edu] has joined #go-nuts
01:21 -!- nohar [n=nohar@haruka.t1r.net] has left #go-nuts ["Quitte"]
01:21 < dagle> goplexian: Me too!  You make one, I use it!  Deal?  :)
01:26 -!- youngbull [n=youngbul@ti0025a380-dhcp1720.bb.online.no] has left
#go-nuts []
01:26 < goplexian> yay!
01:27 < goplexian> dagle: i think you'd quickly regret using a debugger I
made
01:28 < napsy> I know Go suppose to be an experimental language, but are
there any plans to standardize the language in the future?
01:28 < dagle> goplexian: Does it print "You are right!  Blame the
compiler!".
01:29 < goplexian> how did you know?
01:29 < dagle> :D
01:31 < anticw> napsy: i hope not too soon
01:31 <+danderson> napsy: the language specification is a standard of sorts.
If you mean committees and rubber stamps, unlikely in the near to medium future
01:32 < quag> napsy: what do you mean by 'standardize the language'?
01:32 <+danderson> the language is still undergoing major changes.
01:32 < napsy> I agree but I really like the language but unfortunatly I
can't recommend it yet to my bosses :-)
01:32 < quag> ecma, iso?
01:32 < napsy> iso, yes
01:33 < quag> napsy: do you require a language to have an official standard?
O_o
01:33 <+danderson> yeah, that'll take a long long while
01:33 <+danderson> then again, python, ruby and many others aren't ISO
standards
01:33 <+danderson> and get along just fine in the professional world
01:33 < quag> danderson: exactly
01:33 < quag> C# and the CLR are standards, but that was more to piss off
Sun :)
01:34 < quag> and JavaScript is a standard -- don't know the politics behind
that
01:34 < quag> Java isn't a standard in that sense
01:34 < napsy> hm you're right
01:34 <+danderson> javascript got standardized because of many unequal
implementations existed in browsers
01:34 <+danderson> and there was a need to define a common base
01:34 <+danderson> same mechanics that distilled the Lisps into Common Lisp,
way back when
01:36 < goplexian> I think the only reason something ever needs to be
standardized is when there is compatibility issues from having more than one
vendor, they tried to make C# open so that MS would like it was playing nice and
encouraging competition, but if Google remains the only vendor for Go then there
is no need for all that extra work
01:36 <+danderson> not necessarily
01:36 < goplexian> which part?
01:36 <+danderson> standardization can create some positive effects, which
is what MS did with CLR
01:37 -!- XenoPhoenix [n=Xeno@cpc3-aztw22-2-0-cust104.aztw.cable.virginmedia.com]
has joined #go-nuts
01:37 <+danderson> standardisation empowers users because they have some
assurance that different implementations of the platform will behave the same
01:37 < adiabatic> what good did standardization do the CLR?
01:37 <+danderson> python did the same thing ad-hoc, and is now imposing a
language freeze to let other implementations catch up with the moving target
01:38 < goplexian> danderson: thats what I'm trying to say, in cases where
you have more than one vendor, lets say tomorrow Sun starts making SunC# based off
the MS-C# spec, then its good that it is a standard, but if the only copy of C#
that exists is made by one company then there is no real need
01:38 <+danderson> the CLR limits this problem by having fixed steps where
implementations can say they implement version N of some standard, and people know
what that means
01:38 < XenoPhoenix> hey guys, just a quick question that i'm struggling to
find the answer to, how do I only use some of the returned values from a function
with multiple return values?
01:39 < goplexian> XenoPhoenix: the return value you dont plan to use, just
assign them to _
01:39 < quag> XenoPhoenix: use _ for the ones you don't want to use
01:39 < quag> _, a, b, _, c := foo()
01:39 -!- Method [n=Method@nat-3-135.snu.edu] has joined #go-nuts
01:39 < XenoPhoenix> goplexian: quag : Ah dammit I didn't think of using
that, I saw that in the iota example and didn't realise it could be applied here
:) Thanks guys!
01:39 < goplexian> like `for _, x := range foo.Stuff {`
01:40 -!- Method [n=Method@unaffiliated/method] has quit [Read error: 104
(Connection reset by peer)]
01:40 < quag> XenoPhoenix: the _ takes a bit of getting use to
01:40 < XenoPhoenix> quag: yeah I didn't realise it was so general as a null
identifier
01:41 -!- Method [n=Method@nat-3-135.snu.edu] has joined #go-nuts
01:41 -!- rah_ [n=robh@75.46.213.219] has joined #go-nuts
01:41 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts
01:41 < XenoPhoenix> currently writing a ray tracer in go both as a piece of
university coursework and as a learning exercise, likeing it so far, only thing
i'm sorely missing is operator overloading
01:42 -!- frosty [n=frosty@83-117.anonymous.at.anonine.com] has quit [Read error:
110 (Connection timed out)]
01:42 < goplexian> yeah thats something I wish for as well
01:43 < goplexian> it adds a lot of complexity to the language though
01:43 < goplexian> to the compiler i mean
01:43 < XenoPhoenix> true
01:43 <+danderson> and a huge potential to confuse things
01:43 -!- SoniaKeys [n=soniakey@c-76-118-178-209.hsd1.ma.comcast.net] has joined
#go-nuts
01:43 -!- dju_ [i=dju@89-158-236-229.rev.dartybox.com] has quit ["Quitte"]
01:43 <+danderson> just look at C++, where overloaded operators have
different short-circuiting rules
01:43 < rah_> i like knowing what my operators do..  :)
01:44 <+danderson> (read: && and friends don't short-circuit when
overloaded)
01:44 < XenoPhoenix> I think I have a somewhat biased opinion on it at the
moment as it's very very useful for thinks that I have just done like vector and
matrix classes but much less useful elsewhere
01:44 < rah_> it's one of those can-be-used-or-abused things
01:44 < XenoPhoenix> I can understand the design decision
01:44 <+danderson> yeah, that's the standard textbook example of operator
overloading, implementing vector/matrix math
01:44 <+danderson> and I've never seen it used sanely outside that textbook
example :)
01:45 < rah_> i mean, one could argue the same about many c++ features...
used properly they are a great boon
01:45 -!- frosty [n=frosty@c83-253-172-174.bredband.comhem.se] has joined #go-nuts
01:45 < XenoPhoenix> heh, but in that example it is very good, I just means
that the equations i use them with a little more difficult to decipher :P
01:45 < rah_> but their potential for abuse can outweighs the usefulness
they buy.
01:45 < rah_> and i fail at grammar..
01:46 < rah_> yeah, it does come in handy for matrix stuff
01:46 <+danderson> rah_: the problem with C++ is different, it's that the
features interact with each other in strange ways a lot
01:46 * goplexian gives rah_ a cookie
01:46 < XenoPhoenix> rah_: yeah, C++ is a razor sharp blade with that many
features with which you can create a beautiful work of art or a bloody mess :P
01:46 < rah_> yay, cookies
01:46 <+danderson> that's one thing that go is trying hard to avoid
01:46 <+danderson> (which is sadly also what makes generics and exceptions
hard to make nice, see various discussions)
01:46 < rah_> go reminds me of oberon a bit
01:46 < XenoPhoenix> danderson: No I agree and largely I like the approach,
I don't miss exceptions etc
01:47 < rah_> which is a good thing :)
01:47 < rah_> i am still not sure how to feel about iota
01:47 < XenoPhoenix> I swear there was another question I was going to ask,
but it escapes me
01:47 -!- JSharpe [n=jamie@5ad9394c.bb.sky.com] has joined #go-nuts
01:48 <+danderson> anyway, long story short, I think we're in violent
agreement :)
01:48 < rah_> hehe
01:48 < XenoPhoenix> rah_: yeah I know what you mean, it's strikes me as a
bit of a niche case shortcut but useful in those contexts
01:48 <+danderson> if it comes back to you, ask away
01:48 < XenoPhoenix> heh
01:48 < rah_> agreed
01:48 < rah_> i can see people being all "ooh, look what i can do with
iota<<315u14$$" and then i'd have to cry
01:48 < XenoPhoenix> haha
01:49 <+danderson> rah_: dunno, I'm writing a bit of C atm, and iota would
come in rather handy
01:49 < rah_> or "hm, what's this iota thing..  oh well, let me just add a
record before here...  oops"
01:49 <+danderson> haven't played with go enough to decide if it's too
dangerous to have
01:49 < rah_> oh, i agree, it does have usefulness :)
01:49 < rah_> that's kind of where i am too
01:49 < XenoPhoenix> danderson: yes you always find the feature you want is
in another language don't you :)
01:49 < rah_> i can see good uses..  and ..  bad ones, haha :)
01:49 < rah_> but i suppose that is true for anything..
01:49 < XenoPhoenix> like everything
01:50 <+danderson> XenoPhoenix: and the one I miss in every language is
common lisp macros :)
01:50 < rah_> those still make my head hurt
01:50 <+danderson> I'm actually configuring SBCL and Slime right now for a
bit of CL goodness
01:50 < XenoPhoenix> danderson: I must admit lisp is a language i've never
touched or even looked at
01:50 < rah_> i tried for a month to get the code-is-data in my head...  i
don't think it worked, lisp still confuses me, haha
01:51 <+danderson> rah_: I highly recommend Seibel's Practical Common Lisp
01:51 <+danderson> that's the book that made me grok the fullness of common
lisp
01:51 < rah_> whoa, is it really free?
01:51 <+danderson> yes
01:51 < rah_> nice
01:51 < rah_> thanks :)
01:51 < rah_> *bookmark*
01:51 <+danderson> but buy it, the dead tree version is really worth it on
your bookshelf
01:51 <+danderson> (if you buy into the language obviously)
01:51 < XenoPhoenix> ah ok, I'll note that down, it's on my todo list to
look at sometime when I have some free time rather than pressing work to fdo :)
01:52 < SoniaKeys> i like scheme much better than CL. i guess i prefer
smaller languages--like Go
01:52 < goplexian> I checked out clojure for a few months, lisp is pretty
cool actually
01:52 < rah_> i've been putting food on my table with c#, which i like and
don't like
01:52 < XenoPhoenix> actually I must admit I do like that about go, I appear
to be writing noticably less code to get things done than I would be in C++
01:52 < rah_> so i am trying to learn go..  see if i can do more with less
01:53 <+danderson> I didn't fancy scheme that much, because I found CL much
more practical
01:53 < goplexian> quick poll, how many use emacs here?
01:53 <+danderson> but both are beautiful languages
01:53 < rah_> c# the language isn't so bad, but microsoft has these goliath
frameworks that take 2 years to wrap your brain around just to figure out it
wasn't meant to solve your problem
01:53 <+danderson> in general, I really love having the AST bare before my
eyes
01:54 < XenoPhoenix> rah_ Amen to that, though all in all I like C# like you
I've used it to put food on the table for a few years :)
01:54 < goplexian> danderson: i've been working with AST for the past couple
days, lots of fun :)
01:54 <+danderson> no, I mean having the source code be the thinnest layer
above the ast you can have
01:54 < rah_> XenoPhoenix: whew, was afraid i'd get booed off the stage :)
01:54 -!- fifoman [n=fifoman@p4FCC71A8.dip.t-dialin.net] has quit [Read error: 110
(Connection timed out)]
01:54 <+danderson> ie.  s-expressions :)
01:54 < rah_> glad to know i'm not alone there
01:55 < XenoPhoenix> heh :)
01:55 < rah_> i have to admit the ability to directly manipulate the AST as
a feature of the language is highly intriguing
01:55 <+danderson> as for C#, it's a neat language, but it feels too much
like java to me
01:56 <+danderson> a titanic platform that screams "enterprise" and wants me
to be certified in 4 sub-languages and 5 frameworks to get anything done
01:56 < XenoPhoenix> danderson: true, but considering I knew C# before java,
java feels like C#'s poor slightly crippled cousin
01:56 < rah_> danderson: it pretty much is java, so that's a correct feeling
01:56 < rah_> but the core itself is not so bad
01:56 <+danderson> it's likely an exageration of reality, but that's what I
think when I see it
01:56 < rah_> but yes, the frameworks atop it stagger the mind
01:56 <+danderson> I still need to sit through the C# book I bought
01:56 < rah_> the language is..  was..  not too bad to pick up
01:57 < rah_> but with c#3, the spec like doubled in size...
01:57 < goplexian> bleh
01:57 < rah_> and c#4 with dynamic support is gonna add a load onto tat
01:57 < XenoPhoenix> see I come here to ask a question and get involved in a
conversation about languages in general, see this is why I never get any work done
:P
01:57 < rah_> hahaha
01:57 < rah_> sorry
01:58 < XenoPhoenix> hah you have nothign to apologise for I'm just easily
distracted late at night, it's 2AM here :P
01:58 -!- Method [n=Method@unaffiliated/method] has quit [Remote closed the
connection]
01:59 -!- path[l] [i=UPP@120.138.102.34] has quit [Read error: 54 (Connection
reset by peer)]
01:59 < rah_> danderson: re: c#, yeah, agreed on the whole 'titanic platform
that screams "enterprise"' thing.  it's why go has my interest
01:59 -!- path[l] [i=UPP@120.138.102.34] has joined #go-nuts
01:59 < rah_> 2am, dang.  you're from the future!
01:59 < rah_> ..or the past
01:59 <+danderson> nah, *I'm* from the future.
01:59 <+danderson> (3am)
01:59 < rah_> the internet is a time machine
01:59 < rah_> who knew
01:59 < XenoPhoenix> :)
02:03 -!- skelterjohn [n=jasmuth@h96-61-40-85.mdtnwi.dsl.dynamic.tds.net] has
joined #go-nuts
02:03 < rah_> i want to know who thought to make types implicitly implement
interfaces..  that is an awesome feature
02:05 < XenoPhoenix> yeah I really like that, though it would be useful if
the generated documentation idicated which ones it implemented for you, rather
than having to manually match up methods :)
02:06 < rah_> true, but you'd have to draw a line somewhere
02:06 < rah_> like..  everyone implements the empty interface..  and you can
make up interfaces that types suddenly now implement, though the docs dont say so
02:06 < rah_> that said, yeah, it would be useful for some builtins
02:08 < XenoPhoenix> yeah i'm just talking on the standard library really
02:08 < XenoPhoenix> or per package
02:08 < rah_> per package would be good
02:08 < XenoPhoenix> i dunno I haven't really thought it thought that
much...
02:08 < XenoPhoenix> through*
02:09 -!- raichoo1 [n=raichoo@87.122.222.255] has joined #go-nuts
02:10 < rah_> wow, defer is a nice touch.
02:10 < XenoPhoenix> yes isn't it just :D
02:10 < XenoPhoenix> i use it similarly to C# using {} blocks
02:10 < rah_> i was thinking the same
02:10 < rah_> without the pain of idisposable, heh :)
02:10 < XenoPhoenix> indeed :D
02:11 < quag> ok, a general go question that has been bugging me a while:
built executables are rather large.  Why?
02:11 < quag> Is it because they are full of statically linked goodness, and
a static c binary would be the same size?
02:12 -!- elmar_ [n=elmar@dslb-188-097-077-248.pools.arcor-ip.net] has quit
["Leaving"]
02:12 <+danderson> pretty much
02:12 <+danderson> that, and the optimizers aren't all they could be yet, so
the generated code might not be nice and compact
02:13 < quag> things that use fmt are getting up towards 1MB
02:14 < goplexian> I've heard ppl say that dynamic linking is in the future,
but a long way off yet
02:14 -!- alus [n=gah@64.13.131.178] has quit [Read error: 104 (Connection reset
by peer)]
02:15 < quag> Yeah, I imagine the exe sizes will come down.
02:16 -!- skelterjohn [n=jasmuth@h96-61-40-85.mdtnwi.dsl.dynamic.tds.net] has quit
[]
02:20 -!- skelterjohn [n=jasmuth@h96-61-40-85.mdtnwi.dsl.dynamic.tds.net] has
joined #go-nuts
02:20 -!- alus [n=gah@64.13.131.178] has joined #go-nuts
02:22 -!- tf [n=mouse@cm132.delta17.maxonline.com.sg] has joined #go-nuts
02:25 -!- raichoo [n=raichoo@87.122.222.255] has quit [Read error: 110 (Connection
timed out)]
02:28 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit []
02:29 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts
02:37 -!- waht [n=sgnod@pool-96-250-179-214.nwrknj.fios.verizon.net] has joined
#go-nuts
02:45 -!- marianoguerra [n=marianog@12-60-231-201.fibertel.com.ar] has joined
#go-nuts
02:46 -!- tf [n=mouse@cm132.delta17.maxonline.com.sg] has quit [Remote closed the
connection]
02:46 < waht> oh that reminds me there is a ufc tonight
02:46 < quag> there is?  Sweet
02:48 < waht> is stuff on linux.softpedia.com reliable
02:48 -!- teedex [n=teedex@adsl-75-36-137-249.dsl.pltn13.sbcglobal.net] has quit
["Leaving..."]
02:50 < waht> error while loading shared libraries: libstdc++.so.5:
02:50 < waht> oh god the horror of closed source
02:51 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has joined #go-nuts
02:55 < marianoguerra> hi, can someone explainme if this is a bug or I don't
understand the api
02:55 < marianoguerra> http://pastebin.com/m14aa7ad6
02:56 < quag> marianoguerra: and the problem is?
02:56 < marianoguerra> the output is commented at the top
02:56 < quag> oh
02:56 < quag> :)
02:56 < marianoguerra> it seems that the program eaths the first argv
02:56 < marianoguerra> or something like that
02:56 -!- Intelliware [n=danielb@124-197-59-227.callplus.net.nz] has joined
#go-nuts
02:56 < quag> marianoguerra: yes
02:56 < quag> marianoguerra: the first arg is the name of the program
02:57 < quag> marianoguerra: useful for apps like gzip which change their
behavior when run as gunzip
02:57 < quag> single executable, two names.
02:57 < quag> two behaviors
02:57 < marianoguerra> so I have to diplicate it :)
02:57 < quag> the path?
02:57 < quag> yeah
02:58 < marianoguerra> the command on arg0 and on argv
02:58 < quag> yup
02:58 < quag> that's unix :)
02:59 < marianoguerra> a comment on the docs would be nice :D
03:03 -!- lotrpy [n=lotrpy@202.38.97.230] has quit []
03:07 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined
#go-nuts
03:07 -!- scm_ [i=justme@c222165.adsl.hansenet.de] has joined #go-nuts
03:07 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
quit [Remote closed the connection]
03:11 -!- difekta [n=clays@c-24-5-65-40.hsd1.ca.comcast.net] has quit ["This
computer has gone to sleep"]
03:12 -!- StDan [n=danielb@124-197-59-227.callplus.net.nz] has quit [Success]
03:14 -!- XenoPhoenix [n=Xeno@cpc3-aztw22-2-0-cust104.aztw.cable.virginmedia.com]
has quit [""Wait...  what?!""]
03:14 -!- XenoPhoenix [i=Xeno@cpc3-aztw22-2-0-cust104.aztw.cable.virginmedia.com]
has joined #go-nuts
03:15 -!- XenoPhoenix [i=Xeno@cpc3-aztw22-2-0-cust104.aztw.cable.virginmedia.com]
has quit [Client Quit]
03:15 -!- XenoPhoenix [i=Xeno@cpc3-aztw22-2-0-cust104.aztw.cable.virginmedia.com]
has joined #go-nuts
03:17 -!- Ryan__ [n=ryan@cpe-98-27-182-138.neo.res.rr.com] has joined #go-nuts
03:19 -!- scm [i=justme@c209213.adsl.hansenet.de] has quit [Read error: 110
(Connection timed out)]
03:33 -!- raichoo1 [n=raichoo@87.122.222.255] has left #go-nuts []
03:35 -!- adk9 [n=adk9@dhcp-cs-244-202.cs.indiana.edu] has left #go-nuts []
03:35 -!- marianoguerra [n=marianog@12-60-231-201.fibertel.com.ar] has quit
["leaving"]
03:42 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Read
error: 110 (Connection timed out)]
03:43 -!- murodese [n=James@110.23.126.35] has joined #go-nuts
03:45 -!- Daminvar [n=Daminvar@cpe-67-241-129-149.buffalo.res.rr.com] has quit
["Leaving"]
03:49 -!- voluspa [n=voluspa@97-112-116-59.dlth.qwest.net] has joined #go-nuts
03:52 -!- scarabx__ [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
04:00 -!- scarabx_ [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Read
error: 110 (Connection timed out)]
04:04 -!- scarabx__ [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit
["Leaving"]
04:04 -!- sparthir [n=sparthir@60-234-130-125.bitstream.orcon.net.nz] has joined
#go-nuts
04:06 -!- lotrpy [n=lotrpy@202.38.97.230] has joined #go-nuts
04:11 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit []
04:13 < rah_> i was going through the slides for go (day 1) and was doing
the fibonacci exercise at the end
04:13 < rah_> it mentions i should use globals for state since it hadnt
introduced structs yet
04:13 < rah_> but i didn't end up using any..  i don't know if that's good
or bad.  it seems to work
04:15 < quag> rah_: did you do a recurisve fib?
04:16 < quag> actually, scratch that, I don't follow at all
04:17 < rah_> let me post what i did
04:17 < rah_> it's not recursive
04:18 < rah_> http://pastebin.com/m7a56a8d4
04:18 < rah_> so for the standard fib sequence you'd do var stdFib =
fib.Start(0, 1, func(a int, b int) int { return a + b })
04:18 < rah_> and successive values would be stdFib()
04:20 < rah_> it doesn't end up using any globals really, but it seems to
work and meet the criteria for allowing user-defined operations...  but i'm a go
noob so i don't know how ok that code ..  is :)
04:21 -!- osmosis [n=steven@m290e36d0.tmodns.net] has joined #go-nuts
04:22 -!- scarabx [n=scarabx@c-76-19-45-245.hsd1.ma.comcast.net] has joined
#go-nuts
04:22 < rah_> guess on to day 2 slides :)
04:26 < SoniaKeys> rah_ your code is fine.  you used a closure for state.
04:27 < rah_> so that's not too un-go like?
04:27 < SoniaKeys> oh no, it's very go like.
04:27 < rah_> oh, yay :)
04:27 < rah_> thank you
04:28 -!- skelterjohn [n=jasmuth@h96-61-40-85.mdtnwi.dsl.dynamic.tds.net] has quit
[]
04:29 < rah_> go is growing on me
04:32 < SoniaKeys> i'm liking it.  i'm porting some computational stuff i
have from python, just to see if it's practical.  so far (after several hundred
lines) it's doing fine.
04:32 -!- murodese [n=James@110.23.126.35] has quit [Read error: 104 (Connection
reset by peer)]
04:33 -!- sparthir [n=sparthir@60-234-130-125.bitstream.orcon.net.nz] has quit
["Leaving"]
04:33 < rah_> awesome :)
04:36 -!- scarabx_ [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
04:47 -!- Sungem [i=ss@220-136-226-32.dynamic.hinet.net] has quit [Client Quit]
04:50 -!- rah_ [n=robh@75.46.213.219] has quit []
04:52 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has quit []
04:52 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts
04:53 -!- scarabx [n=scarabx@c-76-19-45-245.hsd1.ma.comcast.net] has quit
[Connection timed out]
04:57 -!- mnky [n=mcfyang@pool-151-202-89-97.ny325.east.verizon.net] has quit
["Leaving."]
05:07 < goplexian> which library would you use to split a file into lines,
then return the number of bytes in each line; bytes, or bufio?
05:08 < quag> by bytes, do you mean bytes.Buffer?
05:09 < goplexian> yep
05:09 < quag> heh, only found it yesterday :)
05:09 < jessta> goplexian: use bufio.ReadString()
05:10 -!- Intelliware [n=danielb@124-197-59-227.callplus.net.nz] has quit
[Success]
05:11 < goplexian> jessta: yeah thats what I was thinking
05:11 -!- dacc [n=dacc@dsl-216-162-193-144.drizzle.com] has joined #go-nuts
05:16 -!- dacc [n=dacc@dsl-216-162-193-144.drizzle.com] has left #go-nuts []
05:17 < SoniaKeys> +1 bufio.ReadString() that's what i've been using.
05:24 -!- waht [n=sgnod@pool-96-250-179-214.nwrknj.fios.verizon.net] has quit
["Leaving"]
05:32 -!- fifoman [n=fifoman@p4FCC33BB.dip.t-dialin.net] has joined #go-nuts
05:50 -!- lotrpy [n=lotrpy@202.38.97.230] has quit []
05:52 -!- itrekkie [n=itrekkie@ip98-165-246-56.ph.ph.cox.net] has joined #go-nuts
05:57 -!- scarabx_ [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit ["This
computer has gone to sleep"]
05:57 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts
06:03 -!- itrekkie [n=itrekkie@ip98-165-246-56.ph.ph.cox.net] has quit []
06:06 -!- Larry_P_US_EST [n=chatzill@pool-96-237-236-37.bstnma.fios.verizon.net]
has joined #go-nuts
06:08 -!- adiabatic [n=adiabati@dsl-206-55-130-248.tstonramp.com] has quit
["Rockin’ music will set you free."]
06:10 -!- cyt [n=cyt@li57-21.members.linode.com] has quit ["leaving"]
06:15 -!- Fl1pFl0p [n=FlipFlop@ip68-8-225-187.sd.sd.cox.net] has joined #go-nuts
06:17 -!- highb_ [n=highb@shell.onid.oregonstate.edu] has quit [Read error: 113
(No route to host)]
06:20 -!- Larry_P_US_EST [n=chatzill@pool-96-237-236-37.bstnma.fios.verizon.net]
has quit ["ChatZilla 0.9.85 [Firefox 3.0.16/2009120208]"]
06:23 -!- highb [n=highb@shell.onid.oregonstate.edu] has joined #go-nuts
06:32 -!- selby_fiedler [n=selby_fi@c-76-106-49-240.hsd1.va.comcast.net] has quit
[Read error: 60 (Operation timed out)]
06:47 -!- osmosis [n=steven@m290e36d0.tmodns.net] has quit ["Ex-Chat"]
07:21 -!- alc [n=alc@114.245.253.24] has joined #go-nuts
07:23 -!- mdwright [n=Adium@174-153-195-2.pools.spcsdns.net] has joined #go-nuts
07:24 -!- uman [n=uman@unaffiliated/uman] has quit [Read error: 110 (Connection
timed out)]
07:28 -!- SoniaKeys [n=soniakey@c-76-118-178-209.hsd1.ma.comcast.net] has quit []
07:29 -!- sinuhe [n=user@kaptah.deevans.net] has quit ["ERC Version 5.3 (IRC
client for Emacs)"]
07:33 -!- Fl1pFl0p [n=FlipFlop@ip68-8-225-187.sd.sd.cox.net] has quit [Client
Quit]
07:33 -!- keeto [n=keeto@121.54.92.149] has quit [Read error: 104 (Connection
reset by peer)]
07:33 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts
07:34 -!- Fl1pFl0p [n=FlipFlop@ip68-8-225-187.sd.sd.cox.net] has joined #go-nuts
07:35 -!- amuck [n=amuck@h126.64.88.75.dynamic.ip.windstream.net] has quit
["Leaving"]
07:48 -!- b00m_chef__ [n=watr@host-212-68-232-232.brutele.be] has joined #go-nuts
07:51 -!- highb [n=highb@shell.onid.oregonstate.edu] has quit [Read error: 113 (No
route to host)]
07:53 -!- mdwright [n=Adium@174-153-195-2.pools.spcsdns.net] has quit [Read error:
104 (Connection reset by peer)]
07:53 -!- mdwright1 [n=Adium@174-153-195-2.pools.spcsdns.net] has joined #go-nuts
07:54 -!- highb [n=highb@shell.onid.oregonstate.edu] has joined #go-nuts
07:54 < mdwright1> os.Stat() shouldn't have any problems traversing through
symlinks, should it?  On OS X 10.6, in case platform matters.
07:55 < anticw> it might follow links
07:55 < anticw> is that what you want?
07:56 < mdwright1> It is what I want.  But whenever I pass it "through" a
symlink, it just can't see seem to see anything.
07:56 < mdwright1> *seem to see
08:03 < mdwright1> Hmm.  I appear to be catching an error when calling
os.Stat on the directory inside the symlink.
08:08 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
08:14 -!- highb [n=highb@shell.onid.oregonstate.edu] has quit [Read error: 104
(Connection reset by peer)]
08:24 -!- mdwright1 [n=Adium@174-153-195-2.pools.spcsdns.net] has quit
["Leaving."]
08:24 -!- Macpunk [n=macpunk@cpe-72-177-27-209.austin.res.rr.com] has joined
#go-nuts
08:24 -!- Will_D [n=Will@c-67-171-24-136.hsd1.wa.comcast.net] has quit [Read
error: 60 (Operation timed out)]
08:26 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Read error: 110 (Connection timed out)]
08:30 -!- ShadowIce [i=shadowic@unaffiliated/shadowice-x841044] has joined
#go-nuts
08:34 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
joined #go-nuts
08:39 -!- b00m_chef__ [n=watr@host-212-68-232-232.brutele.be] has quit [Read
error: 110 (Connection timed out)]
08:43 -!- p0g0__ [n=pogo@unaffiliated/p0g0] has quit [Read error: 60 (Operation
timed out)]
08:52 -!- defectiv [n=clays@c-24-5-65-40.hsd1.ca.comcast.net] has joined #go-nuts
08:53 -!- p0g0__ [n=pogo@unaffiliated/p0g0] has joined #go-nuts
08:58 -!- kashia_ [n=Kashia@p54AB7792.dip.t-dialin.net] has quit [Read error: 60
(Operation timed out)]
08:59 -!- kashia_ [n=Kashia@p54AB537A.dip.t-dialin.net] has joined #go-nuts
09:00 -!- mdwright [n=Adium@173.48.204.139] has joined #go-nuts
09:03 -!- mdwright [n=Adium@173.48.204.139] has left #go-nuts []
09:08 -!- Fl1pFl0p [n=FlipFlop@ip68-8-225-187.sd.sd.cox.net] has quit [Client
Quit]
09:11 -!- highb [n=highb@shell.onid.oregonstate.edu] has joined #go-nuts
09:15 -!- alc [n=alc@114.245.253.24] has quit []
09:20 -!- b00m_chef__ [n=watr@host-212-68-232-232.brutele.be] has joined #go-nuts
09:25 -!- tav [n=tav@92.27.175.249] has quit [Read error: 60 (Operation timed
out)]
09:26 -!- frosty [n=frosty@c83-253-172-174.bredband.comhem.se] has quit [Read
error: 110 (Connection timed out)]
09:27 -!- frosty [n=frosty@83-31.anonymous.at.anonine.com] has joined #go-nuts
09:27 -!- highb [n=highb@shell.onid.oregonstate.edu] has quit [Read error: 104
(Connection reset by peer)]
09:28 -!- tav [n=tav@89.242.98.63] has joined #go-nuts
09:31 -!- b00m_chef [n=watr@host-212-68-232-232.brutele.be] has joined #go-nuts
09:31 -!- b00m_chef__ [n=watr@host-212-68-232-232.brutele.be] has quit [Read
error: 104 (Connection reset by peer)]
09:32 -!- b00m_chef [n=watr@host-212-68-232-232.brutele.be] has quit [Remote
closed the connection]
09:32 -!- highb [n=highb@shell.onid.oregonstate.edu] has joined #go-nuts
09:33 -!- b00m_chef [n=watr@host-212-68-232-232.brutele.be] has joined #go-nuts
09:33 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts
09:46 -!- highb [n=highb@shell.onid.oregonstate.edu] has quit [Read error: 104
(Connection reset by peer)]
09:51 -!- highb [n=highb@shell.onid.oregonstate.edu] has joined #go-nuts
09:58 -!- pquerna_ [n=chip@64.62.244.72] has joined #go-nuts
09:58 -!- pquerna [n=chip@apache/committer/pquerna] has quit [Read error: 104
(Connection reset by peer)]
10:04 -!- Sungem [i=ss@118-160-175-231.dynamic.hinet.net] has joined #go-nuts
10:05 -!- tf [n=mouse@cm132.delta17.maxonline.com.sg] has joined #go-nuts
10:06 -!- voluspa [n=voluspa@97-112-116-59.dlth.qwest.net] has quit ["Leaving"]
10:06 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has joined #go-nuts
10:07 -!- tf [n=mouse@cm132.delta17.maxonline.com.sg] has left #go-nuts []
10:17 < fifoman> i am looking for go for debian without compiling it
10:18 < fifoman> found it very difficult to find it
10:18 < fifoman> i dont want to compile that gcc go, it may take hours, so
big
10:18 < fifoman> any change?
10:18 < fifoman> any chance?
10:19 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit []
10:20 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts
10:20 < fifoman> did my gcc download yesterday until my memory was exhausted
by some 500mb of download :)
10:21 < dagle> fifoman: What?
10:21 < fifoman> go-gcc
10:21 < dagle> Aha.
10:21 < fifoman> it downloads the patched gcc
10:21 < fifoman> and i used a live-cd
10:21 < fifoman> my linux is a bit broken
10:21 < fifoman> so i had to
10:22 < fifoman> its grml.org live-cd
10:22 < fifoman> so i have mercurial and gcc but no go :)
10:24 -!- Metaphis [n=cyanure@81-65-189-254.rev.numericable.fr] has joined
#go-nuts
10:25 -!- Cyanure [n=cyanure@81-65-189-254.rev.numericable.fr] has quit [Read
error: 60 (Operation timed out)]
10:25 < dagle> Never used gcc-go
10:26 < dagle> Just the regular go compiler.
10:29 < fifoman> i try again
10:29 < jessta> fifoman: just use the regular go compiler, it compiles in a
few minutes
10:29 < fifoman> i love 8c in plan9
10:30 < fifoman> so that is better anyway
10:30 < fifoman> it is the reason why i want to look into go
10:30 < fifoman> plan9 was the right way
10:30 < fifoman> plan9 IS the right way
10:34 < dagle> Hehe.
10:34 < jhh> i guess i could compile it for you.  if i understand it
correctly i just have to set GOOS and GOARCH and compile
10:34 -!- Sungem [i=ss@118-160-175-231.dynamic.hinet.net] has quit [Client Quit]
10:34 < jhh> is that wrong?
10:34 < fifoman> that would be great
10:35 < fifoman> i want to try it very badly :)
10:35 < jhh> du you have a compiled gcc on your system?
10:35 < fifoman> of course ;)
10:35 < fifoman> tcc, too :)
10:36 < jhh> mercurial?
10:36 < dagle> jhh: Don't think you need GOOS or GOARCH when compiling
gccgo.
10:37 < jhh> dagle: what about 8g?
10:37 < dagle> jhh: Yes.  Then you need them.
10:37 < napsy> Hello.  Is there a easy way to convert []byte to string?
10:37 < clip9> string(bytes)
10:38 < napsy> it doesn't work
10:39 < napsy> http://gopaste.org/view/5s34b
10:40 < jhh> string(uuid.([]byte)) ?
10:40 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has quit [Connection
timed out]
10:40 -!- Sungem [i=ss@114-45-233-134.dynamic.hinet.net] has joined #go-nuts
10:40 < napsy> invalid type assertion: uuid.([]<nil>) (non-interface
type UUID on left)
10:40 < jhh> string([]bye(uuid)) ?
10:40 < jhh> :)
10:41 < napsy> nop
10:46 < jhh> napsy: string((interface{})(uuid).([]byte)) works for me
10:46 < jhh> clumsy though
10:47 < jessta> napsy: an uuid isn't a []byte
10:48 < jhh> jessta: you mean it is [3]byte?
10:48 < napsy> jhh: my program segfaults with that :)
10:48 -!- defectiv [n=clays@c-24-5-65-40.hsd1.ca.comcast.net] has quit ["This
computer has gone to sleep"]
10:48 < jessta> jhh: it's not that either
10:48 < jhh> what is it?
10:48 < jessta> it is it's own type
10:48 < fifoman> not all dumb people are trolls
10:48 -!- Macpunk [n=macpunk@cpe-72-177-27-209.austin.res.rr.com] has quit
["Leaving"]
10:48 < fifoman> oh sorry :)
10:49 < jhh> and you won't be able to convert/cast it to []byte?
10:50 -!- path[l] [i=UPP@120.138.102.34] has quit []
10:52 < clip9> ah right
10:52 < clip9> you have to cast it to [3]byte ?
10:54 < jhh> apparently you cannot
10:54 < jhh> but [3]byte doesn't seem to be convertable to string anyway
(only []byte)
10:55 -!- Sungem [i=ss@114-45-233-134.dynamic.hinet.net] has quit [Client Quit]
10:58 -!- path[l] [i=UPP@120.138.102.34] has joined #go-nuts
10:58 < jhh> seems to be impossible to access those three bytes
10:59 -!- jessta [n=jessta@li7-205.members.linode.com] has left #go-nuts [""...and
that all I have to say about that""]
11:03 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has joined #go-nuts
11:19 -!- callidus [n=quassel@cpc2-newc1-0-0-cust1524.gate.cable.virginmedia.com]
has joined #go-nuts
11:25 -!- iwikiwi [n=iwikiwi@202.3.77.160] has quit ["Computer has gone to sleep"]
11:27 -!- tomestla [n=tom@87.100.115.249] has joined #go-nuts
11:36 < napsy> ok I created a string from []byte using a lame for loop
11:36 < napsy> out = strings.Join([]string{out, string(uuid[i])}, "")
11:36 < napsy> but I hope there will be a method for this in the future
11:39 -!- callidus [n=quassel@cpc2-newc1-0-0-cust1524.gate.cable.virginmedia.com]
has quit [Remote closed the connection]
11:48 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has quit ["Leaving"]
11:55 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts
11:57 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit []
11:57 -!- hyakuhei [n=hyakuhei@78.32.138.28] has joined #go-nuts
11:59 < XenoPhoenix> napsy: You can jsut do: string := string(bytes)
12:03 < napsy> are you sure?
12:05 < napsy> anyway, I have to go
12:05 -!- napsy [n=luka@93-103-201-54.dynamic.dsl.t-2.net] has quit ["leaving"]
12:16 -!- stalled_ [n=411@unaffiliated/stalled] has joined #go-nuts
12:18 < dagle> Meh.
12:19 < dagle> The error napsy did was that he forgott the &
12:19 < dagle> string(&byte) works just fine.
12:19 -!- GeoBSD [n=geocalc@lns-bzn-59-82-252-186-207.adsl.proxad.net] has joined
#go-nuts
12:21 -!- pvanduse [n=pdusen@crob4-55.flint.umich.edu] has joined #go-nuts
12:26 -!- stalled [n=411@unaffiliated/stalled] has quit [Read error: 110
(Connection timed out)]
12:26 -!- b00m_chef [n=watr@host-212-68-232-232.brutele.be] has quit [Read error:
110 (Connection timed out)]
12:26 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the
connection]
12:28 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
12:30 -!- murodese [n=James@203.59.126.118] has joined #go-nuts
12:36 -!- elmar_ [n=elmar@dslb-188-097-064-205.pools.arcor-ip.net] has joined
#go-nuts
12:38 -!- pvandusen [n=pdusen@crob4-55.flint.umich.edu] has quit [Read error: 110
(Connection timed out)]
12:39 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
12:42 -!- Ryan__ [n=ryan@cpe-98-27-182-138.neo.res.rr.com] has quit [Remote closed
the connection]
12:45 -!- murodese [n=James@203.59.126.118] has quit [Read error: 104 (Connection
reset by peer)]
12:47 -!- raichoo [n=raichoo@i577B91E7.versanet.de] has joined #go-nuts
12:50 -!- stalled [n=411@unaffiliated/stalled] has joined #go-nuts
12:50 -!- stalled_ [n=411@unaffiliated/stalled] has quit [Read error: 60
(Operation timed out)]
12:50 -!- murodese [n=James@203.59.126.118] has joined #go-nuts
13:02 -!- rakd [n=rakd@219.117.252.7.static.zoot.jp] has joined #go-nuts
13:03 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the
connection]
13:07 -!- Xera^ [n=brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
13:10 -!- kleinchris [n=kleinchr@project-ajax.de] has quit [Remote closed the
connection]
13:10 -!- kleinchris [n=kleinchr@project-ajax.de] has joined #go-nuts
13:14 -!- ShadowIce [i=shadowic@unaffiliated/shadowice-x841044] has quit
["Leaving"]
13:18 -!- ShadowIce [i=pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
13:19 < taruti> go looks very inviting after looking at C++ for a few days
after many years
13:19 < taruti> didn't remember *how* horrible mess it was
13:24 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
13:31 -!- Ryan__ [n=ryan@cpe-98-27-182-138.neo.res.rr.com] has joined #go-nuts
13:34 -!- civnetra [n=civnetra@221.5.27.198] has joined #go-nuts
13:36 -!- murodese [n=James@203.59.126.118] has quit [Read error: 60 (Operation
timed out)]
13:40 -!- b00m_chef [n=watr@host-212-68-232-232.brutele.be] has joined #go-nuts
13:44 -!- mertimor [n=mertimor@p4FE74919.dip.t-dialin.net] has joined #go-nuts
13:45 -!- chickamade [n=chickama@222.254.0.77] has joined #go-nuts
13:46 < taruti> bufio performs no locking?
13:47 -!- chickamade [n=chickama@222.254.0.77] has quit [Client Quit]
13:48 < Ycros> who needs locking
13:48 < Ycros> :P
13:50 -!- Ryan__ [n=ryan@cpe-98-27-182-138.neo.res.rr.com] has quit [Read error:
60 (Operation timed out)]
13:56 < taruti> except sockets have three mutexes?
14:05 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has quit []
14:08 < fifoman> can someone point me to the source of 6g?
14:09 < fifoman> i find the golang site not very clear where to get the
source
14:09 < dagle> fifoman: Install?
14:09 < fifoman> never had a problem with other languages here
14:09 < fifoman> perhaps its because i dont use a graphical browser
14:10 < dagle> There are like 3 pictures on the homepage.
14:10 < dagle> You should manage.
14:11 < JoLeClodo2> ,/away
14:12 < usa> http://golang.org/src/cmd/6g
14:13 -!- napsy [n=luka@88.200.96.14] has joined #go-nuts
14:14 < fifoman> usa: nice, thank you
14:14 < fifoman> there is no compressed and tarred version out?
14:15 < dagle> fifoman: What are you trying to do?
14:17 -!- civnetra [n=civnetra@221.5.27.198] has quit ["leaving"]
14:28 < fifoman> okay, got it
14:35 -!- keeto [n=keeto@121.54.92.149] has quit [Read error: 104 (Connection
reset by peer)]
14:35 -!- keeto_ [n=keeto@121.54.92.149] has joined #go-nuts
14:36 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts
14:36 -!- ayo [n=nya@f051186158.adsl.alicedsl.de] has joined #go-nuts
14:36 -!- keeto_ [n=keeto@121.54.92.149] has quit [Read error: 54 (Connection
reset by peer)]
14:36 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts
14:42 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined
#go-nuts
14:48 -!- tav_ [n=tav@84.13.198.0] has joined #go-nuts
14:48 -!- keeto [n=keeto@121.54.92.149] has quit [Read error: 113 (No route to
host)]
14:54 -!- aho [n=nya@f052209050.adsl.alicedsl.de] has quit [Read error: 110
(Connection timed out)]
14:56 -!- tav [n=tav@89.242.98.63] has quit [Read error: 110 (Connection timed
out)]
14:57 -!- callidus [n=quassel@cpc2-newc1-0-0-cust1524.gate.cable.virginmedia.com]
has joined #go-nuts
14:59 -!- GeoBSD [n=geocalc@lns-bzn-59-82-252-186-207.adsl.proxad.net] has quit
[Remote closed the connection]
14:59 -!- jhh [i=seth@schatten.darksystem.net] has quit [Read error: 104
(Connection reset by peer)]
15:01 < taruti> How do I maintain memory-layout compatiblity with a C struct
defined as struct foo { int size; char array[0]; } where the array has variable
size in practice?
15:02 -!- gkmngrgn [n=gkmngrgn@unaffiliated/gkmngrgn] has joined #go-nuts
15:03 -!- deso [n=deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
15:05 -!- frosty [n=frosty@83-31.anonymous.at.anonine.com] has quit [Read error:
110 (Connection timed out)]
15:06 -!- pjm0616 [n=user@61.250.113.98] has quit [":reboot"]
15:06 -!- frosty [n=frosty@c83-253-172-174.bredband.comhem.se] has joined #go-nuts
15:10 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Read
error: 110 (Connection timed out)]
15:16 -!- hd_ [n=hd_@253.176.233.220.static.exetel.com.au] has quit [Read error:
60 (Operation timed out)]
15:25 -!- deso [n=deso@x0561a.wh30.tu-dresden.de] has quit [Read error: 60
(Operation timed out)]
15:27 -!- vizzord [n=exn@195.49.206.202] has quit [Remote closed the connection]
15:28 -!- deso [n=deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
15:31 -!- Tuller [n=Tuller@ip98-163-120-139.dc.dc.cox.net] has joined #go-nuts
15:32 -!- iwikiwi [n=iwikiwi@202.3.77.160] has quit [Read error: 60 (Operation
timed out)]
15:33 -!- sinuhe [n=user@kaptah.deevans.net] has joined #go-nuts
15:37 -!- pjm0616 [n=user@61.250.113.98] has joined #go-nuts
15:42 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts
15:42 -!- selby_fiedler [n=selby_fi@c-76-106-49-240.hsd1.va.comcast.net] has
joined #go-nuts
15:45 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts
15:48 -!- b00m_chef [n=watr@host-212-68-232-232.brutele.be] has quit [Read error:
110 (Connection timed out)]
15:48 -!- jhh [i=seth@schatten.darksystem.net] has joined #go-nuts
15:49 -!- scarabx [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
15:52 -!- wayneeseguin [n=wayneese@rrcs-72-45-208-165.nys.biz.rr.com] has quit
[Read error: 104 (Connection reset by peer)]
15:52 -!- rrr_ [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
15:52 < napsy> is there a package for libuuid?
15:58 -!- frosty_ [n=frosty@85-11.anonymous.at.anonine.com] has joined #go-nuts
15:58 -!- frosty [n=frosty@c83-253-172-174.bredband.comhem.se] has quit [Read
error: 110 (Connection timed out)]
15:59 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined
#go-nuts
15:59 -!- gkmngrgn [n=gkmngrgn@unaffiliated/gkmngrgn] has quit [Remote closed the
connection]
16:05 -!- DerHorst [n=Horst@e176121033.adsl.alicedsl.de] has joined #go-nuts
16:09 -!- rakd [n=rakd@219.117.252.7.static.zoot.jp] has quit ["See you..."]
16:10 -!- kashia_ [n=Kashia@p54AB537A.dip.t-dialin.net] has quit [Read error: 60
(Operation timed out)]
16:11 -!- mauke_ [n=mauke@p3m/member/mauke] has joined #go-nuts
16:12 < napsy> When I make my own package using cgo, how do I install the
package?
16:13 -!- mauke [n=mauke@p3m/member/mauke] has quit [Read error: 60 (Operation
timed out)]
16:18 -!- mertimor [n=mertimor@p4FE74919.dip.t-dialin.net] has quit []
16:19 -!- mertimor [n=mertimor@p4FE74919.dip.t-dialin.net] has joined #go-nuts
16:19 -!- mertimor [n=mertimor@p4FE74919.dip.t-dialin.net] has quit [Client Quit]
16:20 -!- mertimor [n=mertimor@p4FE74919.dip.t-dialin.net] has joined #go-nuts
16:21 -!- pshahmumbai [n=prashant@59.164.25.29] has joined #go-nuts
16:28 -!- nanoo [n=nano@95-89-198-45-dynip.superkabel.de] has quit ["Leaving"]
16:29 -!- Xeon_ [n=chatzill@202.158.165.178] has joined #go-nuts
16:32 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Read
error: 110 (Connection timed out)]
16:38 -!- GeoBSD [n=geocalc@lns-bzn-59-82-252-186-207.adsl.proxad.net] has joined
#go-nuts
16:38 < dho> napsy: if you built it with make.pkg, run make install
16:40 -!- Kniht [n=kniht@c-68-58-17-177.hsd1.in.comcast.net] has joined #go-nuts
16:41 < napsy> hm ok now I have another problem.  The C function accepts
"unsigned char" but 6g complains that C.unsgined_char doesn't exist.  Is there
another way to address the type?
16:41 < mauke> you misspelt unsigned
16:41 < dho> You don't use C.type
16:42 < dho> C.[foo] is only to reference symbols
16:42 < dho> well, I guess that's not true
16:42 < dho> since cgo lets you use C.typedef.
16:43 < dho> napsy: anyway, yes, byte in Go is the same as uchar in C
16:43 < napsy> so [16]byte should be good if the function accepts unsigned
char[]
16:43 < dho> sure
16:43 < dho> or *byte
16:44 < napsy> uuid.cgo1.go:12: cannot use out (type *uint8) as type
*_C_unsignedchar in function argument
16:44 < napsy> still getting this
16:44 < dho> unsignedchar != unsigned char
16:44 < dho> C.unsignedchar
16:45 < dho> is the typedef.
16:45 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
16:46 < napsy> hum
16:46 < dho> looks like the library you're using has typedef'd that.
16:46 < napsy> yes
16:46 < napsy> typedef uuid_t unsigned char[16]
16:47 < dho> func Foo(input []byte) C.uuid_t {
16:47 < dho> ...
16:47 < dho> }
16:48 < dho> var out C.uuid_t
16:48 < dho> gen_uuid(input, &out)
16:48 < dho> maybe
16:48 < dho> dunno what your api looks like
16:48 < napsy> it's libuuid
16:48 < dho> therea re at lest 2 different things called libuuid
16:48 < dho> and more like 4
16:48 < napsy> ok
16:49 < dho> anyway, i'll be back in a sec, try something like what i have
up there and see if that works
16:49 < napsy> hum strange "var out C.uuid_t; C.uuid_generate(out)" still
doesn't work
16:50 < napsy> uid.cgo1.go:12: cannot use out (type _C_uuid_t) as type
*_C_unsignedchar in function argument
16:50 < napsy> API: http://linux.die.net/man/3/uuid_generate
16:56 -!- JSharpe2 [n=jamie@5ad9394c.bb.sky.com] has joined #go-nuts
17:02 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has quit [Read
error: 110 (Connection timed out)]
17:07 -!- JSharpe [n=jamie@5ad9394c.bb.sky.com] has quit [Read error: 110
(Connection timed out)]
17:10 -!- skelterjohn [n=jasmuth@h96-61-40-85.mdtnwi.dsl.dynamic.tds.net] has
joined #go-nuts
17:16 -!- Tuller [n=Tuller@ip98-163-120-139.dc.dc.cox.net] has quit ["apparently
i'm sleepy?"]
17:26 < taruti> Is there a nice way of doing sizeof(SomeStructType) without
actually creating a value of that type?
17:27 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has joined
#go-nuts
17:34 -!- Tuller [n=Tuller@ip98-163-120-139.dc.dc.cox.net] has joined #go-nuts
17:42 -!- Tuller [n=Tuller@ip98-163-120-139.dc.dc.cox.net] has quit ["to the
batcave?"]
17:50 -!- yaroslav_ [n=yaroslav@91.78.213.65] has joined #go-nuts
17:53 < taruti> ok, that fixed.  no support for writev?
17:54 < elmar_> is there a way to check if memory allocation with make()
failed?
17:55 -!- sheb [n=seb@AToulouse-152-1-64-142.w82-125.abo.wanadoo.fr] has joined
#go-nuts
17:57 < taruti> elmar_: it won't fail
17:59 < elmar_> out of memory?  or will the program abort then?
18:00 < taruti> elmar_: abort.  of course with modern OS it is more typical
for the OS to kill the program is it tries to use too much memory
18:02 -!- tomestla [n=tom@87.100.115.249] has quit ["Leaving."]
18:07 < dho> napsy: moment
18:08 < dho> // void uuid_generate(uuid_t out)
18:08 < dho> func Uuid_generate() C.uuid_t {
18:08 < dho> var out C.uuid_t
18:09 < dho> C.uuid_generate(out)
18:09 < dho> return out
18:09 < dho> }
18:09 < dho> seems like it should work
18:09 < napsy> dho: I had a very similar code
18:10 < napsy> sec
18:10 -!- mertimor [n=mertimor@p4FE74919.dip.t-dialin.net] has quit [Read error:
60 (Operation timed out)]
18:11 < napsy> dho: http://gopaste.org/view/JXcjM
18:12 -!- mertimor [n=mertimor@p4FE74919.dip.t-dialin.net] has joined #go-nuts
18:13 -!- araujo [n=araujo@gentoo/developer/araujo] has joined #go-nuts
18:13 < araujo> hello
18:14 < goplexian> hiya
18:16 -!- mbarkhau [n=koloss@p54A7C370.dip.t-dialin.net] has joined #go-nuts
18:18 -!- frosty_ [n=frosty@85-11.anonymous.at.anonine.com] has quit [Read error:
60 (Operation timed out)]
18:18 < dho> that's kind of lame
18:19 -!- pshahmumbai [n=prashant@59.164.25.29] has quit ["Ex-Chat"]
18:19 -!- tomestla [n=tom@87.100.115.249] has joined #go-nuts
18:22 < napsy> any idea why I can't use C.uuid_t ?
18:22 < dho> Has to do with Go's type system, trying to figure out a
workaround
18:24 < napsy> ok
18:25 -!- Daminvar [n=Daminvar@129.21.121.159] has joined #go-nuts
18:28 < dho> Really, it's a shortcoming of cgo.
18:28 < dho> you could probably work around it, but I'm not 100% sure how at
the moment
18:28 < napsy> hm too bad
18:28 < napsy> ok no problem
18:28 < dho> can you file an issue for that so i remember to look at it?
18:28 < napsy> yes I'll do that
18:29 < dho> thanks
18:30 -!- skelterjohn [n=jasmuth@h96-61-40-85.mdtnwi.dsl.dynamic.tds.net] has quit
[]
18:35 -!- frosty_ [n=frosty@85-15.anonymous.at.anonine.com] has joined #go-nuts
18:43 < goplexian> question, for a bufio.ReadWriter, since bother
bufio.Reader and bufio.Writer implement the Buffered function, which one get
chosen when I call it?
18:44 < goplexian> oh wait, nm, i see you have to specify
18:45 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has quit [Read error: 60
(Operation timed out)]
18:46 -!- yaroslav_ [n=yaroslav@91.78.213.65] has quit [Read error: 110
(Connection timed out)]
18:58 -!- GilJ [n=gilles@85.10.92.104] has joined #go-nuts
18:58 -!- GilJ [n=gilles@85.10.92.104] has left #go-nuts ["Konversation
terminated!"]
18:58 -!- GilJ [n=gilles@85.10.92.104] has joined #go-nuts
19:01 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
19:01 < GilJ> Hey guys, I get a bunch of errors when executing my simple
hello world code: http://pastebin.com/d40c290ce I'm wondering what I did wrong
19:04 < GilJ> Meh >_< forgot linking sorry dudes :(
19:09 < XenoPhoenix> heh GilJ: Happens to the best of us :)
19:11 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has joined #go-nuts
19:12 < goplexian> GilJ: import fmt "fmt" is redundant, that style is used
for when you want to rename a library after import like doing `import foo "fmt"`
then you would call it with foo.Println("blah"), so instead just do `import "fmt"`
and use fmt.Print
19:12 -!- iwikiwi [n=iwikiwi@202.3.77.160] has joined #go-nuts
19:14 -!- defectiv [n=clays@c-24-5-65-40.hsd1.ca.comcast.net] has joined #go-nuts
19:16 -!- scarabx_ [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
19:17 -!- oal_ [n=olav@5.79-160-122.customer.lyse.net] has joined #go-nuts
19:20 < GilJ> Ok thanks goplexian :)
19:22 -!- codedread [i=180dd699@gateway/web/freenode/x-beqhwtolgohquomh] has
joined #go-nuts
19:23 -!- codedread [i=180dd699@gateway/web/freenode/x-beqhwtolgohquomh] has left
#go-nuts []
19:25 -!- mertimor [n=mertimor@p4FE74919.dip.t-dialin.net] has quit [Read error:
54 (Connection reset by peer)]
19:26 -!- scarabx [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Read
error: 110 (Connection timed out)]
19:26 -!- oal [n=olav@5.79-160-122.customer.lyse.net] has quit [Connection reset
by peer]
19:27 -!- oal_ [n=olav@5.79-160-122.customer.lyse.net] has quit [Read error: 104
(Connection reset by peer)]
19:27 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has quit []
19:29 -!- Will_D [n=Will@c-67-171-24-136.hsd1.wa.comcast.net] has joined #go-nuts
19:30 -!- sinuhe [n=user@kaptah.deevans.net] has quit [Remote closed the
connection]
19:30 -!- sinuhe [n=user@kaptah.deevans.net] has joined #go-nuts
19:35 -!- adiabatic [n=adiabati@dsl-206-55-130-248.tstonramp.com] has joined
#go-nuts
19:44 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
quit ["ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.0.14/2009090900]"]
19:47 -!- zuser [n=nonet@c-69-181-203-73.hsd1.ca.comcast.net] has joined #go-nuts
19:47 -!- zuser [n=nonet@c-69-181-203-73.hsd1.ca.comcast.net] has left #go-nuts []
19:50 -!- defectiv [n=clays@c-24-5-65-40.hsd1.ca.comcast.net] has quit ["This
computer has gone to sleep"]
19:51 -!- scarabx__ [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
19:59 -!- scarabx_ [n=scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Read
error: 110 (Connection timed out)]
20:01 -!- mnky [n=mcfyang@pool-70-23-243-215.ny325.east.verizon.net] has joined
#go-nuts
20:07 -!- defectiv [n=clays@75-144-246-6-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
20:08 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
20:10 -!- GeoBSD [n=geocalc@lns-bzn-59-82-252-186-207.adsl.proxad.net] has quit
[Remote closed the connection]
20:11 -!- mnky [n=mcfyang@pool-70-23-243-215.ny325.east.verizon.net] has quit
["Leaving."]
20:12 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Read error: 60 (Operation timed out)]
20:20 -!- Kashia [n=Kashia@p54AB537A.dip.t-dialin.net] has joined #go-nuts
20:21 -!- mnky [n=mcfyang@pool-70-23-243-215.ny325.east.verizon.net] has joined
#go-nuts
20:22 -!- iwikiwi [n=iwikiwi@202.3.77.160] has quit ["Computer has gone to sleep"]
20:25 -!- mnky [n=mcfyang@pool-70-23-243-215.ny325.east.verizon.net] has quit
[Client Quit]
20:26 -!- CalJunior [n=caljunio@82-168-237-95.ip.telfort.nl] has joined #go-nuts
20:26 -!- mnky [n=mcfyang@pool-70-23-243-215.ny325.east.verizon.net] has joined
#go-nuts
20:26 -!- CalJunior [n=caljunio@82-168-237-95.ip.telfort.nl] has quit [Client
Quit]
20:27 -!- GilJ [n=gilles@85.10.92.104] has quit [Read error: 60 (Operation timed
out)]
20:33 -!- DerHorst [n=Horst@e176121033.adsl.alicedsl.de] has quit ["Verlassend"]
20:36 -!- amacleod [n=amacleod@c-75-69-45-62.hsd1.ma.comcast.net] has quit [Read
error: 104 (Connection reset by peer)]
20:43 -!- q[mrw] [n=russd@willers.employees.org] has quit [SendQ exceeded]
20:50 < plexdev> http://is.gd/5KZyq by [Rob Pike] in go/doc/ -- fix up YB
and add ZB, EB in example
20:51 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts
20:55 -!- rrr_ [i=rrr@gateway/gpg-tor/key-0x9230E18F] has quit [Remote closed the
connection]
21:03 -!- Associat0r [n=Associat@h163153.upc-h.chello.nl] has joined #go-nuts
21:09 -!- b00m_chef [n=watr@host-212-68-232-232.brutele.be] has joined #go-nuts
21:09 -!- GilJ [n=gilles@85.10.92.104] has joined #go-nuts
21:13 -!- encolpe [n=encolpe@gai69-3-82-235-15-3.fbx.proxad.net] has joined
#go-nuts
21:16 -!- aho [n=nya@f051186158.adsl.alicedsl.de] has quit [Read error: 60
(Operation timed out)]
21:21 -!- frosty_ [n=frosty@85-15.anonymous.at.anonine.com] has quit [Read error:
110 (Connection timed out)]
21:22 -!- Ortzman [n=ortzinat@cpe-065-191-006-129.nc.res.rr.com] has joined
#go-nuts
21:26 -!- Ortzinator [n=ortzinat@unaffiliated/ortzinator] has quit [Read error: 60
(Operation timed out)]
21:30 -!- defectiv [n=clays@75-144-246-6-SFBA.hfc.comcastbusiness.net] has quit
["This computer has gone to sleep"]
21:31 -!- rrr [i=rrr@gateway/gpg-tor/key-0x9230E18F] has joined #go-nuts
21:34 -!- deso [n=deso@x0561a.wh30.tu-dresden.de] has quit [Read error: 104
(Connection reset by peer)]
21:34 -!- jmorrison [i=foobar@extropian.demon.co.uk] has joined #go-nuts
21:36 -!- gkmngrgn [n=gkmngrgn@78.183.62.179] has joined #go-nuts
21:37 < jmorrison> hi, can someone tell me how to set up the standard
makefiles for a program that has a "main" and one or more packages that main uses?
$(GOROOT)/src/Make.cmd doesn't like the package changing from "main"
21:40 -!- aho [n=nya@f051018179.adsl.alicedsl.de] has joined #go-nuts
21:42 -!- mbarkhau [n=koloss@p54A7C370.dip.t-dialin.net] has quit ["Leaving."]
21:42 < jmorrison> anyone?
21:45 -!- syd [n=sydcogs@118.127.19.220] has quit ["No Ping reply in 180
seconds."]
21:45 -!- syd [n=sydcogs@118.127.19.220] has joined #go-nuts
21:49 < sinuhe> jmorrison: Have you used Make before?
21:50 < jmorrison> sinuhe, yes although casually (I've not eg: set up a
recursive make)
21:51 < sinuhe> jmorrison: gmake, plan9 mk?
21:51 < sinuhe> smake, imake...
21:51 < jmorrison> sinuhe, linux's default (gnu make).
21:53 -!- GilJ [n=gilles@85.10.92.104] has quit [Remote closed the connection]
21:57 < sinuhe> jmorrison: I'm not aware of a Go specific package
recognition facility.
21:57 < sinuhe> I haven't looked deep enough, yet, however.
21:59 < jmorrison> sinuhe, what I'm looking for is more like: how to use the
standard Makefiles for that.  Worst case I can put each package in a directory,
put a Makefile using Make.pkg in each, and call them explicitly from the main
Makefile.  But I would be surprised if there wasn't a more idiomatic way.
22:01 < sinuhe> That's my first instinct.
22:01 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
22:02 < sinuhe> A brief look at Make.pkg makes me think that's what they've
done too
22:02 -!- osmosis [n=steven@m290e36d0.tmodns.net] has joined #go-nuts
22:02 < sinuhe> But I'm the blind leading the blind for the moment.  :-)
22:02 < jmorrison> hmm, ok, thanks anyhow
22:03 -!- skyyy [i=skyyy@res55551479.rh.rit.edu] has joined #go-nuts
22:06 < taruti> one directory for each package is the way to go.
22:09 -!- me___ [n=me@c-68-55-179-48.hsd1.md.comcast.net] has joined #go-nuts
22:11 < sinuhe> Glad I have a good instinct.  ;)
22:11 < jmorrison> building the package work, but getting the main to see it
is harder
22:11 < jmorrison> I could make install, but I don't want to pollute $GOROOT
22:12 < taruti> jmorrison: -I
22:12 < jmorrison> tried it
22:13 < taruti> hmm, works for me
22:13 < jmorrison> hmm, it is probably not being imported right.
22:15 -!- rah_ [n=robh@75.46.213.219] has joined #go-nuts
22:16 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
joined #go-nuts
22:17 < jmorrison> suppose I have foo/bar.go (in package foo).  Calling make
in foo/ works and builds foo/_obj/foo.a
22:19 < jmorrison> but import "foo" doesn't work
22:20 < ShadowIce> that one needs "-I foo/_obj/" for the compiler and maybe
"-L foo/_obj/" for the linker
22:20 < jmorrison> aha.  thanks
22:21 -!- hcatlin [n=hcatlin@pdpc/supporter/professional/hcatlin] has quit []
22:22 -!- me__ [n=me@c-68-55-179-48.hsd1.md.comcast.net] has quit [Read error: 113
(No route to host)]
22:23 -!- Metaphis [n=cyanure@81-65-189-254.rev.numericable.fr] has quit [Read
error: 104 (Connection reset by peer)]
22:26 -!- Demp_ [n=Demp@bzq-79-182-79-199.red.bezeqint.net] has joined #go-nuts
22:30 -!- callidus [n=quassel@cpc2-newc1-0-0-cust1524.gate.cable.virginmedia.com]
has quit [Remote closed the connection]
22:37 < jmorrison> thanks and bye
22:37 -!- jmorrison [i=foobar@extropian.demon.co.uk] has quit ["Au revoir"]
22:44 -!- Demp [n=Demp@bzq-79-180-133-55.red.bezeqint.net] has quit [Connection
timed out]
22:47 -!- tomestla [n=tom@87.100.115.249] has quit ["Leaving."]
22:49 -!- ShadowIce [i=pyoro@unaffiliated/shadowice-x841044] has quit
["Verlassend"]
22:50 -!- b00m_chef [n=watr@host-212-68-232-232.brutele.be] has quit [Read error:
113 (No route to host)]
22:52 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
quit [Remote closed the connection]
22:55 -!- nigwil [n=chatzill@berkner.ccamlr.org] has joined #go-nuts
22:59 -!- Garen [n=garen@75.87.255.36] has joined #go-nuts
23:01 -!- JSharpe2 [n=jamie@5ad9394c.bb.sky.com] has quit [Client Quit]
23:05 -!- JSharpe [n=jamie@5ad9394c.bb.sky.com] has joined #go-nuts
23:06 -!- defectiv [n=clays@c-24-5-65-40.hsd1.ca.comcast.net] has joined #go-nuts
23:14 -!- slashus2_ [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined
#go-nuts
23:17 -!- sheb [n=seb@AToulouse-152-1-64-142.w82-125.abo.wanadoo.fr] has quit []
23:22 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts []
23:22 -!- slashus2__ [n=slashus2@74-137-30-156.dhcp.insightbb.com] has joined
#go-nuts
23:22 -!- slashus2__ [n=slashus2@74-137-30-156.dhcp.insightbb.com] has quit
[Remote closed the connection]
23:25 -!- gkmngrgn [n=gkmngrgn@unaffiliated/gkmngrgn] has quit [Remote closed the
connection]
23:28 -!- hyakuhei [n=hyakuhei@78.32.138.28] has quit [Read error: 60 (Operation
timed out)]
23:30 -!- slashus2__ [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined
#go-nuts
23:33 -!- blackmagik [n=blackmag@unaffiliated/blackmagik] has joined #go-nuts
23:34 -!- JSharpe [n=jamie@5ad9394c.bb.sky.com] has quit [Read error: 104
(Connection reset by peer)]
23:34 -!- dju [i=dju@89-158-236-229.rev.dartybox.com] has joined #go-nuts
23:34 -!- JSharpe [n=jamie@5ad9394c.bb.sky.com] has joined #go-nuts
23:37 -!- slashus2_ [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit
[Connection timed out]
23:41 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit
[Connection timed out]
23:49 -!- hmmmm [n=asdf@pool-72-79-133-142.sctnpa.east.verizon.net] has joined
#go-nuts
23:50 -!- itrekkie [n=itrekkie@ip98-165-246-56.ph.ph.cox.net] has joined #go-nuts
23:52 -!- jessesanford [n=jessesan@173.77.177.230] has joined #go-nuts
23:52 < jessesanford> Can someone explain to me when to create methods on
the pointer and when to create them on the actual type
23:53 < jessesanford> ie (pa *PersonAdvertiserVector) Less(i, j int) vs (pa
PersonAdvertiserVector) Less(i, j int)
23:53 < Ycros> whenever you don't want to be operating on a copy of the
object, you want to create them on a pointer
23:54 < jessesanford> but in simple cases it sometimes doesn't make a
difference correct?
23:54 < jessesanford> only in instances when i want the sender to see the
changes should I assign the method to the pointer
23:54 < jessesanford> correct?
23:54 < Ycros> well, if you're not modifying the object
23:55 < Ycros> but you could also consider the inefficiencies of copying
your object
23:55 < jessesanford> yeah i realize the memory overhead
23:55 < jessesanford> but in situations like static comparison method shown
above
23:55 < jessesanford> it shouldnt matter if i use a copy or a pointer right?
23:56 < jessesanford> other than concurrency issues
23:56 < Ycros> yeah
23:57 < jessesanford> ok a few more newb musings
23:57 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has quit ["received SIGHEIL"]
23:58 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has joined #go-nuts
23:58 < jessesanford> unless I have explicit reasons to worry about
concurrency or explicit reasons to be operating on a copy of a variable then i
should probably assign all my methods to the pointer for a type right
23:59 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has quit [Client Quit]
23:59 -!- nf [n=nf@124-168-153-30.dyn.iinet.net.au] has joined #go-nuts
--- Log closed Mon Jan 04 00:00:22 2010