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

--- Log opened Wed Aug 11 00:00:05 2010
00:01 < plexdev> http://is.gd/ec9Ow by [Rob Pike] in go/src/pkg/rpc/ -- rpc:
catch errors from ReadResponseBody.
00:04 -!- jdp [~gu@24.238.32.162.res-cmts.segr.ptd.net] has quit []
00:18 < plexdev> http://is.gd/ecaTv by [Nigel Tao] in go/src/pkg/exp/draw/
-- exp/draw: fix drawRGBA when x0 > x1 and we have to draw right-to-left.
00:18 -!- jsharkey [~jsharkey@irc.jsharkey.org] has quit [Ping timeout: 258
seconds]
00:22 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has quit [Ping timeout:
276 seconds]
00:24 < exch> I really wish type switches allowd something like 'case int,
int32, int64: ...'
00:33 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
00:33 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit
[Quit: carllerche]
00:34 < exch> sweet jesus.  I think I set a record for the longest single
function ever written in Go..  it's 5760 lines
00:34 < exch> hurrah for nested type switches ><
00:50 < plexdev> http://is.gd/eccZb by [Russ Cox] in go/src/libbio/ --
libbio: fix Bprint bug
00:50 < plexdev> http://is.gd/eccZd by [Russ Cox] in 3 subdirs of go/ -- gc:
bug302
00:55 -!- SoniaKeys [~soniakeys@c-76-118-178-209.hsd1.ma.comcast.net] has joined
#go-nuts
01:00 -!- jsharkey [jsharkey@irc.jsharkey.org] has joined #go-nuts
01:00 -!- KinOfCain [~KinOfCain@rrcs-64-183-61-2.west.biz.rr.com] has quit [Remote
host closed the connection]
01:02 < exch> http://pastebin.com/D03c3YNX biggest piece of horror evar..
just shy of 6000 lines :s
01:02 < exch> but it works
01:07 -!- carter [~carter@cpe-69-201-181-224.nyc.res.rr.com] has joined #go-nuts
01:07 < MizardX> switch bt := b.(type) { case int8: v = int(bt); case int64:
v = int(bt); ...  } switch op { ...  }
01:08 < MizardX> var v int before that
01:08 < exch> why?
01:09 < exch> You can't really.  the meaning of V changes within each case
statement, depending on what type is expected to be compatible with a
01:13 < exch> I will give out chocolate chip cookie prizes for anyone who
can make this function behave as it does, with a /lot/ less code :p
01:15 -!- mikespook [~mikespook@219.137.72.2] has joined #go-nuts
01:18 < KirkMcDonald> I sure hope this file was generated.  :-)
01:19 < KirkMcDonald> 'Cause man, typing that by hand would be madness.
01:19 < exch> did it by hand :p
01:19 < exch> well mostly
01:19 < exch> each section is almost identical, so just copy it to an empty
file.  search/replace and copy back :p
01:20 < exch> this thing is a clusterfuck of epic proportions :s The woes of
explicit type conversions :)
01:20 < KirkMcDonald> Most of these cases could be removed.
01:21 < KirkMcDonald> exch: Why not convert all signed ints to int64?  All
unsigned ints to uint64?
01:21 < KirkMcDonald> There's no need to explicitly handle all of these,
yes?
01:21 < KirkMcDonald> Apart from overflow.
01:21 < KirkMcDonald> Hmmm.
01:21 < exch> technically no.  I cna limit the supported datatypes to 64 bit
values.  But i was curious what it would take to support all of them
01:22 < KirkMcDonald> Generics.
01:26 < exch> that funciton would be a /lot/ more managable if you could do
'case int, int32, int64:' . The compiler should be able to auto-gererated the
individual cases itself.
01:26 < exch> That will only work in marginal cases though
01:29 -!- Xenith [~xenith@kiwi.he.net] has quit [Quit: leaving]
01:36 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
01:46 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has joined #go-nuts
01:49 -!- SoniaKeys [~soniakeys@c-76-118-178-209.hsd1.ma.comcast.net] has quit []
01:53 -!- boscop_ [~boscop@g225199087.adsl.alicedsl.de] has joined #go-nuts
01:55 -!- boscop [~boscop@g225237232.adsl.alicedsl.de] has quit [Ping timeout: 265
seconds]
01:58 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
02:00 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode]
02:06 -!- smw [~smw@65-78-17-196.c3-0.nwt-ubr2.sbo-nwt.ma.cable.rcn.com] has
joined #go-nuts
02:15 < smw> is plan9 still in development?
02:19 -!- divoxx [~divoxx@189.63.144.228] has joined #go-nuts
02:20 -!- allengeorge [~allengeor@74.12.150.7] has joined #go-nuts
02:23 -!- carllerche [~carllerch@208.87.61.203] has joined #go-nuts
02:24 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 276
seconds]
02:25 -!- Boney [~paul@124-148-189-246.dyn.iinet.net.au] has quit [Ping timeout:
240 seconds]
02:29 -!- derferman [~derferman@dsl092-048-218.sfo4.dsl.speakeasy.net] has quit
[Quit: derferman]
02:29 -!- derferman [~derferman@dsl092-048-218.sfo4.dsl.speakeasy.net] has joined
#go-nuts
02:34 -!- derferman [~derferman@dsl092-048-218.sfo4.dsl.speakeasy.net] has quit
[Ping timeout: 258 seconds]
02:35 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has joined
#go-nuts
02:36 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
02:48 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
03:05 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Remote
host closed the connection]
03:14 -!- nano` [~user@bas1-montreal48-1176433311.dsl.bell.ca] has quit [Ping
timeout: 245 seconds]
03:24 -!- allengeorge [~allengeor@74.12.150.7] has quit [Quit: allengeorge]
03:25 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 240 seconds]
03:37 -!- divoxx [~divoxx@189.63.144.228] has quit [Remote host closed the
connection]
03:37 -!- divoxx [~divoxx@75.125.220.173] has joined #go-nuts
03:39 -!- divoxx_ [~divoxx@206.217.221.32] has joined #go-nuts
03:40 -!- tav [~tav@92.7.119.179] has quit [Quit: Hakuna Matata]
03:41 -!- aho [~nya@fuld-4d00d51e.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
03:42 -!- divoxx [~divoxx@75.125.220.173] has quit [Ping timeout: 240 seconds]
03:43 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has joined
#go-nuts
04:00 -!- carter [~carter@cpe-69-201-181-224.nyc.res.rr.com] has left #go-nuts
["Leaving..."]
04:12 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 246
seconds]
04:15 < plexdev> http://is.gd/ecq7F by [Scott Lawrence] in
go/src/pkg/template/ -- template: added ParseFile method for template.Template
04:15 -!- tav [~tav@2001:0:53aa:64c:0:3ffe:a3f8:884c] has joined #go-nuts
04:18 -!- mikespook [~mikespook@219.137.72.2] has quit [Quit: Leaving.]
04:27 -!- mikespook [~mikespook@219.137.72.2] has joined #go-nuts
04:33 -!- nano` [~user@bas1-montreal48-1176433311.dsl.bell.ca] has joined #go-nuts
04:33 -!- nano` [~user@bas1-montreal48-1176433311.dsl.bell.ca] has quit [Read
error: Connection reset by peer]
04:38 -!- divoxx_ [~divoxx@189.63.144.228] has joined #go-nuts
04:41 -!- divoxx [~divoxx@206.217.221.32] has quit [Ping timeout: 240 seconds]
04:43 -!- divoxx [~divoxx@189.63.144.228] has quit [Quit: divoxx]
04:43 -!- smw [~smw@65-78-17-196.c3-0.nwt-ubr2.sbo-nwt.ma.cable.rcn.com] has quit
[Remote host closed the connection]
05:02 -!- scm [justme@d070003.adsl.hansenet.de] has quit [Ping timeout: 265
seconds]
05:04 -!- scm [justme@d019197.adsl.hansenet.de] has joined #go-nuts
05:07 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
05:21 -!- sacho [~sacho@79-100-57-33.btc-net.bg] has quit [Ping timeout: 245
seconds]
05:22 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
05:26 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 260 seconds]
05:43 -!- mikespook [~mikespook@219.137.72.2] has quit [Read error: Connection
reset by peer]
05:47 -!- carllerche [~carllerch@208.87.61.203] has quit [Quit: carllerche]
05:51 -!- mikespook [~mikespook@219.137.72.2] has joined #go-nuts
05:54 -!- slashus2_ [~slashus2@74-137-77-71.dhcp.insightbb.com] has joined
#go-nuts
05:56 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Ping
timeout: 245 seconds]
06:02 -!- jcao2191 [~Jimmy_Cao@124.126.154.127] has joined #go-nuts
06:03 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has quit [Ping timeout: 240
seconds]
06:05 -!- sacho [~sacho@213.91.244.15] has joined #go-nuts
06:09 -!- gid [~gid@220-253-29-69.VIC.netspace.net.au] has joined #go-nuts
06:39 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has quit [Quit: Leaving.]
06:41 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has joined #go-nuts
06:43 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has left #go-nuts []
06:49 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving]
07:11 -!- ronnyy [~quassel@p4FF1D675.dip.t-dialin.net] has joined #go-nuts
07:14 -!- slashus2_ [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined
#go-nuts
07:16 -!- slashus2 [~slashus2@74-137-77-71.dhcp.insightbb.com] has quit [Ping
timeout: 276 seconds]
07:24 -!- ikaros [~ikaros@188.107.213.197] has joined #go-nuts
07:25 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has joined #go-nuts
07:29 -!- py1hon [~kent@evilpiepirate.org] has left #go-nuts []
07:30 -!- navigator [~navigator@p548973E4.dip.t-dialin.net] has joined #go-nuts
07:47 -!- path[l] [UPP@120.138.102.50] has quit [Quit: path[l]]
07:51 -!- Fish-Work [~Fish@86.65.182.207] has quit [Remote host closed the
connection]
07:53 -!- ikaros_ [~ikaros@188.107.211.231] has joined #go-nuts
07:56 -!- Fish-Work [~Fish@86.65.182.207] has joined #go-nuts
07:57 -!- ikaros [~ikaros@188.107.213.197] has quit [Ping timeout: 245 seconds]
07:57 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
07:59 -!- Boney [~paul@203-217-86-238.dyn.iinet.net.au] has joined #go-nuts
07:59 -!- tvw [~tv@e176017187.adsl.alicedsl.de] has joined #go-nuts
08:04 -!- jdp [~gu@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts
08:14 -!- str1ngs [~strings@unaffiliated/str1ngs] has joined #go-nuts
08:16 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
08:16 -!- ikaros_ [~ikaros@188.107.211.231] has quit [Quit: Leave the magic to
Houdini]
08:17 -!- ExtraSpice [~XtraSpice@88.118.32.225] has joined #go-nuts
08:22 -!- path[l] [~path@59.162.86.164] has quit [Remote host closed the
connection]
08:22 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
08:24 -!- DarthShrine [3cf26d3e@gateway/web/freenode/ip.60.242.109.62] has joined
#go-nuts
08:33 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
08:34 -!- DarthShrine [3cf26d3e@gateway/web/freenode/ip.60.242.109.62] has quit
[Changing host]
08:34 -!- DarthShrine [3cf26d3e@pdpc/supporter/student/DarthShrine] has joined
#go-nuts
08:35 < DarthShrine> So, I'm getting a failure when running ./all.bash
(http://pastebin.com/92cnbUiA), any ideas?
08:35 -!- photron [~photron@port-92-201-217-165.dynamic.qsc.de] has joined
#go-nuts
08:35 -!- tvw [~tv@e176017187.adsl.alicedsl.de] has quit [Remote host closed the
connection]
08:36 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:46 < str1ngs> DarthShrine: have you tried with go-hg?
08:47 < DarthShrine> str1ngs: go-hg?
08:47 < str1ngs> DarthShrine: it might be an issue with homebrew.  pull from
the hg repo
08:48 < str1ngs> DarthShrine: http://golang.org/doc/install.html
08:49 -!- saschpe [~saschpe@mgdb-4d0cf4e0.pool.mediaWays.net] has joined #go-nuts
08:49 < DarthShrine> Homebrew is just building from hg, but I'll try to
built it separately.
08:52 < str1ngs> DarthShrine: I guess I shouldnt assume its homebrew but I
build on my mac.  with the official install guide.  with no problems
08:53 < DarthShrine> str1ngs: Fair enough.  I had built it before with
Homebrew, but I wanted to install again and it didn't build the second time around
:)
08:53 < str1ngs> DarthShrine: I find it easier just to use ~/go for GOROOT
08:56 < str1ngs> DarthShrine: I'll check if anything has change with stdio
lately
08:57 < hokapoka> DarthShrine: I've just pulled and update from the hg and
it worked fine, tested both x86 & 64 archs.
08:59 < hokapoka> I did see a similar error when my ~/.bashrc has the wrong
arch set, but I doubt you've changed anything like that w/o knowing.
09:01 < DarthShrine> Well, looks like it built fine out of Homebrew.
09:03 < nsf> DarthShrine: apparently your all.bash tries to rebuild SDL
bindings
09:03 < nsf> which are out-of-date
09:03 < nsf> because of cgo update
09:04 < str1ngs> brew update ?
09:04 < nsf> I'd suggest trying to remove SDL
09:04 < nsf> from GOROOT :)
09:05 < str1ngs> hmm sdl is 3rd party?
09:06 < nsf> it is yes, but for some reason it's here
09:06 < nsf> oh wait
09:06 < nsf> maybe it's just an example from it
09:06 < nsf> hm...
09:06 < nsf> then forget everything I said
09:06 < nsf> :D
09:07 < hokapoka> nsf: can I pm you?
09:07 < nsf> you can try :)
09:08 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has quit
[Quit: derferman]
09:09 < str1ngs> just looks like a stdio test to me
09:10 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
09:18 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds]
09:19 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
09:23 -!- rlab_ [~Miranda@91.200.158.34] has joined #go-nuts
09:24 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 265 seconds]
09:25 -!- genbat [~genbat@125-239-208-148.jetstream.xtra.co.nz] has joined
#go-nuts
09:27 -!- phirox [~phirox@g225253.upc-g.chello.nl] has left #go-nuts []
09:28 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
09:34 -!- scm [justme@d019197.adsl.hansenet.de] has quit [Ping timeout: 260
seconds]
09:44 -!- virtualsue [~chatzilla@nat/cisco/x-wwoqqlrmgrbssnsf] has joined #go-nuts
09:45 -!- mikespook [~mikespook@219.137.72.2] has quit [Quit: Leaving.]
09:51 -!- scm [justme@d019197.adsl.hansenet.de] has joined #go-nuts
09:57 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
10:04 -!- obiwahn [~heini@obiwahn.org] has joined #go-nuts
10:06 -!- obiwahn [~heini@obiwahn.org] has quit [Quit: leaving]
10:07 -!- obiwahn [~heini@obiwahn.org] has joined #go-nuts
10:07 -!- obiwahn [~heini@obiwahn.org] has left #go-nuts []
10:07 -!- obiwahn [~heini@obiwahn.org] has joined #go-nuts
10:08 < obiwahn> at last:)
10:08 < DarthShrine> At last?
10:09 < obiwahn> my irssi/screen was doing some strange things:(
10:09 -!- path[l]_ [~path@59.162.86.164] has joined #go-nuts
10:12 -!- path[l] [~path@59.162.86.164] has quit [Ping timeout: 264 seconds]
10:14 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
10:15 -!- jdp [~gu@24.238.32.162.res-cmts.segr.ptd.net] has quit []
10:19 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
10:19 -!- ronnyy [~quassel@p4FF1D675.dip.t-dialin.net] has quit [Remote host
closed the connection]
10:21 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 240 seconds]
10:26 -!- allengeorge [~allengeor@74.12.150.7] has joined #go-nuts
10:29 < obiwahn> i was hoping for a bit more discussion about go:)
10:29 < nsf> on irc?  you must be new here
10:30 < nsf> there are two kinds of channels
10:30 < nsf> 1) endless holywars, 2) eternal silence
10:30 < nsf> :D
10:30 < obiwahn> hehe
10:31 < hokapoka> hah
10:31 < bartbes> I believe it's time for a war then
10:31 < obiwahn> yeah haven't used irc for some time now - because holy wars
are kind of exhausting:)
10:31 < nsf> for example on #d people are flaming about win vs.  linux vs.
beos vs.  ...  right now
10:32 < bartbes> well they graded their channel, isn't it obvious?
10:32 < nsf> :D
10:32 < Namegduf> You can tell the quality of a technical-related channel by
whether it can discuss OSes maturely or not.
10:32 < obiwahn> well both is usefull - depending on what you need
10:32 < obiwahn> what makes go special?
10:32 < bartbes> it doesn't run on windows :P
10:32 < Namegduf> I would say "sensible selection of features".
10:32 < nsf> it has no templates :)
10:33 < Namegduf> It's a simple language.
10:33 < bartbes> goroutines
10:33 < obiwahn> and no operator overloading:(
10:33 < nsf> and has not preprocessor too
10:33 < nsf> no*
10:33 < nsf> very simple
10:33 < nsf> compiles very fast
10:34 < obiwahn> i read about Defer, Panic, and Recover and liked that
10:34 < hokapoka> It's simplicity is one of the aspects I most like about
it.
10:34 < nsf> they are pretty much like exceptions but forcing function-based
use
10:34 < nsf> instead of having try catch blocks
10:35 < Namegduf> "they"
10:35 < obiwahn> at the moment i still prefer c++
10:35 < Namegduf> defer is not "like exceptions"
10:35 < obiwahn> but one of my friends was very happy about go
10:35 < Namegduf> Defer has plenty of other uses.
10:35 < nsf> well, I meant mostly panic and recover
10:35 < nsf> :D
10:35 < obiwahn> he used java over last years and never really tried c
10:36 < taruti> igh @ C++
10:36 < Namegduf> They are like unchecked exceptions with a strict style
rule that you never ever let them escape a package.
10:36 < Namegduf> Unless it's an actual "program crash/programmer error"
kind of situation.
10:37 < nsf> I've used C and C++ for 7 years
10:37 < nsf> and now I can't use them
10:37 < nsf> :D
10:37 < obiwahn> why is that?
10:38 < nsf> they are too slow at compilation
10:38 < nsf> :D
10:38 < Namegduf> Go is in effect what you would get if you stripped C down
to a simpler language- basic operations on types in memory
10:38 < obiwahn> get a better pc:)
10:38 < nsf> I like that, build a computing farm and use distcc
10:38 < Namegduf> Then added features on top where they were useful, and not
otherwise, keeping them orthagonal.
10:38 < nsf> nice choice
10:39 < Namegduf> Interfaces provide abstraction, and are roughly usable as
you would use a pure virtual class in C++
10:39 < Namegduf> There's an approach for implementation inheritance based
on anonymous fields.
10:40 < nsf> obiwahn: you should just try coding in Go
10:40 < nsf> it cannot be explained why it is so cool and unique
10:41 < obiwahn> nsf: you do not feel limited because templates operator
overolading etc is missing
10:41 < Namegduf> The way strings are stored (length + string, rather than
null-terminated) makes cutting strings up very cheap; you basically just make a
pointer into the existing string with an attached length.
10:41 < obiwahn> i love the std streams very much for example
10:41 -!- sacho [~sacho@213.91.244.15] has quit [Ping timeout: 246 seconds]
10:41 < nsf> obiwahn: I'm missing templates, but it's not critical for me,
because they do solve nothing (almost, except for saving time typing or
copy&pasting the same code all over again)
10:42 < Namegduf> I solve my data structure needs as I would in C
10:42 < nsf> std streams is a complete crap
10:42 < Namegduf> Don't really feel a loss from it.
10:42 < Namegduf> And for I/O, yeah, I don't feel like I've lost anything.
10:42 < nsf> I'm missing templates mostly for one very specific reason
10:42 < Namegduf> Printf/Fprintf do an excellent job.
10:43 < nsf> I don't want to write binary search and things like that by
hand
10:43 < nsf> cause it's boring :)
10:44 < obiwahn> mh ok - ill give it a go then:) - what i like is that it is
a bit simpler and clearer but does not throw performance and type safety away like
some other languages:)
10:44 -!- sacho [~sacho@213.91.244.15] has joined #go-nuts
10:44 < nsf> like python, yeah
10:44 < nsf> :D
10:45 < Namegduf> Yeah.
10:45 < obiwahn> stop reading my mind:P
10:45 < obiwahn> like python neverthelss
10:45 < Namegduf> I wouldn't say Python is simpler, but yeah.
10:45 -!- genbat [~genbat@125-239-208-148.jetstream.xtra.co.nz] has left #go-nuts
[]
10:45 < nsf> every decent C/C++ programmer uses python from time to time
nowadays
10:46 < Namegduf> It's also possible to understand the advantages of,
unlike, say, Ruby
10:46 < Namegduf> :P
10:46 < jcao219> python is awesome
10:47 < Namegduf> Python suffers from the same thing most of the new
languages do, which is throwing feature after feature in without an examination of
their benefit vs the complexity.
10:47 < obiwahn> i thought about ruby some time ago (2-3 years) but never
had decent documentation
10:47 < jcao219> python is really complex?
10:48 < nsf> Namegduf: agreed, feature composition is very important and I
like Go because its authors are being very conscious about that
10:48 < obiwahn> jcao219: no:) and its core libs are very nice and easy to
use:)
10:48 < nsf> python isn't complex unless you're trying to write an
implementation of it
10:48 < nsf> especially fast implementation
10:49 < jcao219> heh python isn't for speed
10:49 < nsf> it has a lot of dark corners
10:49 < jcao219> true
10:50 < obiwahn> it has good bindings to c
10:51 < obiwahn> so you can do expensive operations in c:)
10:51 < nsf> and a lot of tools to generate bindings
10:51 < nsf> I like pyrex very much
10:51 < Namegduf> Go has a good number of APIs provided by the standard
library, and quite a few bindings out there
10:51 < Namegduf> It isn't essentially simple to write one, though.  cgo
isn't too bad, I think.
10:52 < nsf> it is simple
10:52 < nsf> but boring :)
10:55 -!- DerHorst [~Horst@e176100121.adsl.alicedsl.de] has joined #go-nuts
10:57 < nsf> obiwahn: are you using vim?
10:57 < obiwahn> jap
10:58 < obiwahn> you got asyntax file?
10:58 < nsf>
http://groups.google.com/group/golang-nuts/browse_thread/thread/8f97b86cd5c5f30b/6d850429993b40be
10:58 < nsf> you should check that
10:58 < nsf> go has vim syntax file in its repo
10:58 < nsf> misc/vim
10:59 < nsf> and I've written an autocompletion daemon for Go and a plugin
for that for vim
10:59 < nsf> which might be useful
11:00 < obiwahn> hey nice:)
11:00 < bartbes> nsf: so how do you do omnicompletion anwyay
11:00 < bartbes> I never quite grasped the vim plugins
11:01 < obiwahn> bartbes: i just use them:)
11:01 < nsf> bartbes: are you interested in a Go specific part of just in a
vim plugin?
11:02 < bartbes> a vim plugin mostly
11:02 < bartbes> I have a lib which I really want to write a vim plugin for
11:02 < nsf> it's quite simple to do that in vim
11:02 < nsf> :help completion-functions
11:02 < nsf> oh wait
11:03 < nsf> complete-functions
11:03 < nsf> :)
11:03 < bartbes> I read that
11:03 < bartbes> didn't understand it though ;)
11:03 < nsf> well when user starts omnicompletion (C-x C-o)
11:03 < nsf> it calls whatever is in omnifunc
11:04 < nsf> two times
11:04 < nsf> the first time you supposed to figure out what part of the text
you're actually completing
11:04 < nsf> like: os.Get#
11:04 < nsf> and that part is "Get"
11:04 < nsf> when you tell that to vim it will replace that part totally
11:05 < nsf> and the second time you should return a list of completion
proposals
11:05 < bartbes> right
11:05 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
11:05 < nsf> as a list of strings or a map (which described in the doc)
11:06 < nsf> in gocode vim plugin I simply pass buffer contents from the
currently edited file
11:06 < nsf> and a cursor position
11:06 < nsf> gocode's vim format output returns me a list with that form:
11:06 -!- snearch [~snearch@f053005040.adsl.alicedsl.de] has joined #go-nuts
11:06 < nsf> [<number of chars replacing behind the cursor>, [ <map
entries for a completion proposal> ]]
11:07 < bartbes> right
11:07 < nsf>
http://github.com/nsf/gocode/blob/master/vim/autoload/gocomplete.vim
11:07 < nsf> so the resulting script is quite small
11:07 < nsf> see gocomplete#Complete function
11:09 < nsf> the only tricky thing in vim script is to get things right
11:09 < obiwahn> nsf: i ad 2 vim plugins
11:09 < obiwahn> the first was omincompletecpp
11:09 < nsf> like col('.') returns column which starts from 1
11:10 < nsf> and line('.') starts from 1 too
11:10 < obiwahn> and the other a plugin that allowed me to jump to the
definition of a variable of function or wahtever
11:10 < nsf> obiwahn: well, I don't have that for Go yet
11:10 < obiwahn> i never managed to run them at the same time though
11:10 < nsf> and I don't like omnicpp
11:10 < nsf> it sucks anyway
11:11 < obiwahn> becaue it needs the tag files?
11:12 < obiwahn> how does your progam work?
11:12 < nsf> because C++ has preprocessor
11:12 < nsf> gocode works like a daemon and a client
11:12 < nsf> mainly for caching purposes
11:12 < nsf> you're passing a buffer to it a filename of that buffer
11:12 < nsf> and a cursor position
11:12 < nsf> it answers back with autocompletion proposals
11:12 -!- DarthShrine [3cf26d3e@pdpc/supporter/student/DarthShrine] has quit
[Quit: Page closed]
11:13 < nsf> caches modules, automatically searches for other package files,
etc.
11:13 < nsf> works very fast
11:13 < nsf> typical autocompletion response time 20-30ms
11:17 < str1ngs> nsf: do you use gvim or mvim?
11:17 < nsf> gvim mostly
11:18 < nsf> not sure what mvim is
11:18 < str1ngs> mvim is mac variant
11:18 < str1ngs> I can tell.  generally I just use vim.
11:18 < nsf> I've never used mac, that's the problem I guess :)
11:18 < nsf> although, gocode works on mac
11:18 < nsf> but probably will not work on windows
11:18 < str1ngs> I'm going to check it out
11:19 < nsf> I have at least two successful usage reports from mac users
11:19 < nsf> :)
11:19 < str1ngs> well I use mac an linux so I can report back :P
11:19 < nsf> would be nice
11:24 -!- DerHorst [~Horst@e176100121.adsl.alicedsl.de] has quit [Remote host
closed the connection]
11:32 < str1ngs> very nice so far
11:32 < nsf> :)
11:35 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Read
error: Connection reset by peer]
11:43 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
11:43 -!- Agon-laptop [~marcel@ABordeaux-553-1-8-99.w86-221.abo.wanadoo.fr] has
joined #go-nuts
11:46 < nsf> interesting fact about gocode, before producing the actual
gocode executable it compiles and uses 'goremote', a code generator written in Go
:)
11:47 < nsf> which produces a bit of glue for RPC package
11:47 < nsf> goremote was written in 2 hours :)
11:47 < str1ngs> I find myself getting pretty fast with go now too.
11:48 < str1ngs> I would think its even faster or C programmers.
11:48 < str1ngs> for*
11:49 < nsf> I was referring to the fact that it's very to write that kind
of tool for Go
11:51 < taruti> Is there a way to build and install the go distribution
without running the tests?
11:52 -!- Agon-laptop [~marcel@ABordeaux-553-1-8-99.w86-221.abo.wanadoo.fr] has
quit [Read error: Connection reset by peer]
11:52 < taruti> I have a machine without a loopback interface and that is
making the tests fail
11:52 -!- artefon [~thiago@dhcp44.usuarios.dcc.ufmg.br] has joined #go-nuts
11:53 < nsf> taruti: afaik there is a switch that disables net tests
11:53 < nsf> one sec
11:54 < taruti> nsf: syslog is failing for me too
11:54 < nsf> DISABLE_NET_TESTS=1
11:54 < nsf> you should try running ./all.bash with that env var
11:54 < nsf> syslog uses sockets afaik
11:54 -!- rlab_ [~Miranda@91.200.158.34] has quit [Ping timeout: 245 seconds]
11:55 < nsf> so, aren't they in a net package too?
11:55 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
11:55 < nsf> also
11:55 < nsf> you can disable tests at all
11:55 * taruti retries
11:56 < nsf> somehow
11:56 < nsf> I don't remember how exactly :)
11:57 < rsaarelm> Just run make.bash instead of all.bash?
11:58 < nsf> yep, something like that :)
11:58 < str1ngs> ./make.bash think skips tests to
11:58 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
11:58 < taruti> thanks
12:08 -!- KirkMcDonald [~Kirk@pysoy/developer/KirkMcDonald] has quit [Ping
timeout: 260 seconds]
12:09 -!- KirkMcDonald [~Kirk@pysoy/developer/KirkMcDonald] has joined #go-nuts
12:16 -!- snearch [~snearch@f053005040.adsl.alicedsl.de] has quit [Quit:
Verlassend]
12:21 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 240 seconds]
12:30 -!- nomo [~nomo@mobile-166-137-137-111.mycingular.net] has joined #go-nuts
12:37 -!- angasule [c80571ea@gateway/web/freenode/ip.200.5.113.234] has joined
#go-nuts
12:40 < taruti> Is there a way to get the current operating system from the
go runtime?
12:41 < taruti> there is runtime.GOROOT and runtime.GOMAXPROCS, I am looking
for something like runtime.GOOS (which does not exist)
12:42 < nsf> os.Getenv("GOOS")?
12:42 < taruti> nsf: may not be defined on client systems
12:42 < nsf> you're right, yes
12:42 < nsf> but GOROOT uses environment variable too
12:43 < nsf> runtime.GOROOT i mean
12:43 < taruti> and a default if the environment is not defined
12:43 < taruti> but yes, bad example
12:45 < taruti> with C I would just call uname(2), but not available in Go
12:47 < str1ngs> syscall.Uname but you might want to find something higher
level then that.  mabye on os
12:48 < manveru> http://golang.org/pkg/syscall/#Uname
12:48 < manveru> heh
12:48 -!- nomo [~nomo@mobile-166-137-137-111.mycingular.net] has quit [Quit:
Colloquy for iPhone - http://colloquy.mobi]
12:48 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
12:49 < taruti> syscall was a good guess
12:49 < taruti> looking closer there is syscall.ARCH and .OS :)
13:01 -!- allengeorge [~allengeor@74.12.150.7] has quit [Ping timeout: 265
seconds]
13:03 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has quit [Ping timeout: 245
seconds]
13:03 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-151-180.clienti.tiscali.it] has
joined #go-nuts
13:05 -!- ampleyfly [~ampleyfly@h-149-143.A163.priv.bahnhof.se] has joined
#go-nuts
13:07 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has joined #go-nuts
13:10 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
13:13 -!- smw [~smw@12.198.177.3] has joined #go-nuts
13:28 -!- xash [~xash@d062223.adsl.hansenet.de] has joined #go-nuts
13:30 < jnwhiteh> So I have a situation where gopack is just..  never
returning when trying to pack up my test code.
13:31 < jnwhiteh> and now it returns ><
13:36 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has joined
#go-nuts
13:37 < jnwhiteh> as usual my issue was elsewhere, but thanks for listening
=)
13:40 < nickaugust> :)
13:43 -!- dju_ [dju@fsf/member/dju] has quit [Read error: Connection reset by
peer]
13:44 -!- dju [dju@fsf/member/dju] has joined #go-nuts
13:45 -!- dju [dju@fsf/member/dju] has quit [Read error: Connection reset by peer]
13:45 -!- dju [dju@fsf/member/dju] has joined #go-nuts
13:52 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
13:59 -!- artefon [~thiago@dhcp44.usuarios.dcc.ufmg.br] has quit [Ping timeout:
240 seconds]
13:59 -!- visof [~visof@unaffiliated/visof] has quit [Quit: Leaving]
14:01 < obiwahn> nsf: nice work:)
14:01 < nsf> :)
14:09 -!- smw [~smw@12.198.177.3] has quit [Remote host closed the connection]
14:09 < skelterjohn> what did nsf do this time?
14:13 -!- lmoura [~lauromour@186.212.112.70] has quit [Ping timeout: 258 seconds]
14:14 -!- femtoo [~femto@95-89-188-171-dynip.superkabel.de] has joined #go-nuts
14:14 -!- lmoura [~lauromour@186.212.112.70] has joined #go-nuts
14:16 < nsf> it's all the same
14:16 < nsf> :)
14:17 * nsf is expanding user base
14:17 < nickaugust> termbox is working nicely over here btw
14:17 < nsf> good
14:18 -!- divoxx [~divoxx@189.63.144.228] has joined #go-nuts
14:19 -!- artefon [~thiago@dhcp44.usuarios.dcc.ufmg.br] has joined #go-nuts
14:20 < jnwhiteh> Looking for another #lualang/#golang developer to work
with me an idiomatic implementation of Lua pattern matching in Go. Contact meh!
14:24 < nsf> are there any nice go libraries for manipulating .ini like
config files?
14:25 < nsf> http://github.com/msbranco/goconfig
14:25 < nsf> nice :)
14:26 < nsf> although, I will write my own
14:26 < nsf> :D
14:29 < nsf> or not
14:32 -!- atsampson [~ats@212.183.140.22] has quit [Ping timeout: 245 seconds]
14:32 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
14:34 -!- atsampson [~ats@212.183.140.1] has joined #go-nuts
14:35 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
14:36 -!- path[l]_ [~path@59.162.86.164] has joined #go-nuts
14:37 -!- path[l]__ [~path@59.162.86.164] has joined #go-nuts
14:37 -!- path[l]_ [~path@59.162.86.164] has quit [Read error: Connection reset by
peer]
14:39 -!- path[l] [~path@59.162.86.164] has quit [Ping timeout: 258 seconds]
14:40 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 246 seconds]
14:43 < exch> easy enough
14:44 < nsf> lazy enough
14:44 < nsf> :)
14:44 < exch> fair enough :)
14:44 -!- eml [eml@irk.bob.fi] has left #go-nuts []
14:46 < nsf> :)
14:53 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
14:54 -!- artefon [~thiago@dhcp44.usuarios.dcc.ufmg.br] has quit [Quit: bye]
14:55 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
15:00 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 240
seconds]
15:03 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
15:20 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts
15:21 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
15:29 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has joined
#go-nuts
15:30 -!- xash [~xash@d062223.adsl.hansenet.de] has quit [Read error: Connection
reset by peer]
15:31 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has joined
#go-nuts
15:33 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has left #go-nuts []
15:33 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has joined #go-nuts
15:34 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has quit [Read error: Connection
reset by peer]
15:34 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has joined #go-nuts
15:36 -!- yashi [~yashi@210.191.215.173] has quit [Remote host closed the
connection]
15:39 -!- alc [~arx@114.245.250.205] has joined #go-nuts
15:41 -!- skelterjohn [~jasmuth@c-76-116-182-139.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
15:41 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
15:44 -!- sacho [~sacho@213.91.244.15] has quit [Remote host closed the
connection]
15:46 -!- tvw [~tv@212.79.9.150] has quit [Read error: Connection reset by peer]
15:47 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
15:50 -!- kanru [~kanru@118-168-233-195.dynamic.hinet.net] has joined #go-nuts
15:52 -!- Venom_X [~pjacobs@99-8-218-190.lightspeed.hstntx.sbcglobal.net] has
joined #go-nuts
15:52 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
15:53 -!- hippondog [~user@unaffiliated/yesudeep] has joined #go-nuts
15:53 -!- gid [~gid@220-253-29-69.VIC.netspace.net.au] has quit [Ping timeout: 276
seconds]
15:59 -!- Fish-Work [~Fish@86.65.182.207] has quit [Read error: Connection reset
by peer]
16:02 -!- Ginto8 [~joe@pool-173-61-45-40.cmdnnj.fios.verizon.net] has joined
#go-nuts
16:03 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has quit [Quit: Leaving.]
16:04 -!- jcao219 [~jcao219@124.126.154.127] has joined #go-nuts
16:05 -!- jcao219 [~jcao219@124.126.154.127] has quit [Client Quit]
16:05 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has joined #go-nuts
16:07 -!- Fish-Work [~Fish@86.65.182.207] has joined #go-nuts
16:07 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has quit [Read error: Connection
reset by peer]
16:08 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Quit: (◣_◢)
BigBrowser is watching ⓎⓄⓊ]
16:11 -!- sacho [~sacho@79-100-57-33.btc-net.bg] has joined #go-nuts
16:12 -!- gent00r [~haxOr@gw.invnetworks.com] has quit [Quit: Leaving]
16:14 -!- derferman [~derferman@c-98-207-60-44.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
16:15 -!- yashi [~yashi@210.191.215.173] has joined #go-nuts
16:18 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has joined #go-nuts
16:20 -!- Ginto8 [~joe@pool-173-61-45-40.cmdnnj.fios.verizon.net] has quit [Quit:
Leaving.]
16:32 -!- skelterjohn [~jasmuth@nat02-nbpwireless-ext.rutgers.edu] has joined
#go-nuts
16:38 -!- skelterjohn [~jasmuth@nat02-nbpwireless-ext.rutgers.edu] has quit [Quit:
skelterjohn]
16:49 -!- kanru [~kanru@118-168-233-195.dynamic.hinet.net] has quit [Ping timeout:
246 seconds]
16:56 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
16:57 -!- divoxx [~divoxx@189.63.144.228] has quit [Quit: divoxx]
16:58 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
16:58 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
16:58 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:58 -!- path[l]_ [~path@122.182.0.38] has joined #go-nuts
16:58 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
16:59 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
16:59 -!- divoxx [~divoxx@189.63.144.228] has joined #go-nuts
17:02 -!- path[l] [~path@59.162.86.164] has quit [Ping timeout: 276 seconds]
17:03 -!- hippondog [~user@unaffiliated/yesudeep] has quit [Remote host closed the
connection]
17:04 -!- divoxx [~divoxx@189.63.144.228] has quit [Ping timeout: 276 seconds]
17:11 -!- ExtraSpice [~XtraSpice@88.118.32.225] has quit [Quit: Leaving]
17:16 < taruti> hmm, there is no Yaml library?
17:17 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Quit: tumdum]
17:18 < hokapoka> How do I get the value of a pointer?
17:19 < hokapoka> In particular, You can't get the len of a pointer to an
array.
17:20 < skelterjohn> because in go you don't use pointers to refer to arrays
17:20 < Namegduf> Slice the array.
17:20 < exch> You can index an array with pointer math, but it involves a
bit of black magic :)
17:22 < skelterjohn> hopefully the pointer stored in the slice is the first
word, so you can use unsafe to easily get to it
17:22 < Namegduf> Why would he need it?
17:22 < Namegduf> If you want a "pointer" to an array that is usable like
the array
17:23 < Namegduf> Just slice it.
17:24 < hokapoka> I'm trying to add a "Add" method to type foo []*bar
17:24 < hokapoka> Here's my simple example : http://pastie.org/1086393
17:26 < skelterjohn> container/vector has a good example of how to resize
arrays nicely
17:27 < skelterjohn> i suggest that your receiver type be *Params
17:27 < hokapoka> I took that from :
http://github.com/tav/go/blob/master/src/pkg/net/hosts.go#L58
17:27 < skelterjohn> rather than Params
17:27 < jcao219> wait why
17:27 < skelterjohn> then you can just point it at a new slice
17:27 < hokapoka> But then len(p) doesn't compile.
17:28 < jcao219> oh
17:28 < jcao219> i see
17:28 < exch> len(*p) will
17:29 -!- virtualsue [~chatzilla@nat/cisco/x-wwoqqlrmgrbssnsf] has quit [Ping
timeout: 252 seconds]
17:35 < hokapoka> Aha!
17:35 -!- peterdn [~peterdn@cpc1-oxfd18-2-0-cust914.4-3.cable.virginmedia.com] has
quit [Read error: Connection reset by peer]
17:35 < hokapoka> skelterjohn: The container/vector examples hepled me out,
as did your suggest exch
17:36 < hokapoka> his works a treat : http://pastie.org/1086416
17:36 < hokapoka> Many thanks.
17:37 -!- tvw [~tv@212.79.9.150] has quit [Read error: Connection reset by peer]
17:38 -!- marsu [~marsu@93.15.198.208] has joined #go-nuts
17:43 -!- ronnyy [~quassel@p4FF1D675.dip.t-dialin.net] has joined #go-nuts
17:44 -!- ikaros [~ikaros@188.107.211.231] has joined #go-nuts
17:45 < jcao219> why does it require a pointer to params
17:46 < jcao219> i don't understand why the first version didn't work
17:47 < exch> because you are reassigning to p
17:48 < exch> by passing p as a value, the change will not persist outside
of the Add function
17:48 < jcao219> oh p is passed as a value?
17:48 < jcao219> then what about the Swap function
17:48 < jcao219> would that change p?
17:48 < exch> if you do (p Params) then yes
17:49 < exch> the swap function only changes the data structure underlying
p.  not p itself
17:49 -!- ronnyy [~quassel@p4FF1D675.dip.t-dialin.net] has quit [Remote host
closed the connection]
17:49 < jcao219> oh, i see
17:49 < jcao219> since slices are basically pointers to arrays
17:49 < exch> yes
17:49 < jcao219> okay I get it, thanks
17:53 -!- iant [~iant@nat/google/x-modmrpqyvwispypx] has joined #go-nuts
17:53 -!- mode/#go-nuts [+v iant] by ChanServ
17:56 -!- marsu [~marsu@93.15.198.208] has quit [Quit: Leaving]
17:56 -!- divoxx [~divoxx@189.27.162.58.dynamic.adsl.gvt.net.br] has joined
#go-nuts
17:58 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
18:04 < jcao219> i wonder if there are any books being written currently for
go
18:05 < exch> I believe there is on in the making
18:06 -!- tumdum [~tumdum@auo72.neoplus.adsl.tpnet.pl] has joined #go-nuts
18:06 -!- tumdum [~tumdum@auo72.neoplus.adsl.tpnet.pl] has quit [Changing host]
18:06 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts
18:08 -!- divoxx [~divoxx@189.27.162.58.dynamic.adsl.gvt.net.br] has quit [Quit:
divoxx]
18:09 -!- Zoopee [alsbergt@zoopee.org] has quit [Ping timeout: 260 seconds]
18:10 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts
18:13 < nsf> hehe, new D2.0 version was released today
18:13 < nsf> finally it has working std.concurrency
18:13 < nsf> and I will be able to finish my mandelbrot
18:14 < nsf> and compare :)
18:17 < araujo> mmm..  interesting ...
18:17 < nsf> I expect D to be faster of course because it has better backend
18:18 < nsf> but I'd rather compare "coding process"
18:18 -!- KinOfCain [~KinOfCain@rrcs-64-183-61-2.west.biz.rr.com] has joined
#go-nuts
18:20 -!- derferman [~derferman@dsl092-048-218.sfo4.dsl.speakeasy.net] has joined
#go-nuts
18:24 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Ping
timeout: 265 seconds]
18:24 -!- Bombe [~droden@weltgehirnmaschine.de] has quit [Changing host]
18:24 -!- Bombe [~droden@freenet/developer/Bombe] has joined #go-nuts
18:24 -!- Venom_X [~pjacobs@99-8-218-190.lightspeed.hstntx.sbcglobal.net] has quit
[Quit: Venom_X]
18:27 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
18:28 -!- tvw [~tv@e176017187.adsl.alicedsl.de] has joined #go-nuts
18:29 -!- poet [~poet@unaffiliated/poet] has joined #go-nuts
18:31 -!- aho [~nya@fuld-4d00d01e.pool.mediaWays.net] has joined #go-nuts
18:32 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 240 seconds]
18:34 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]]
18:35 -!- ShadowIce` [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
18:37 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Ping
timeout: 240 seconds]
18:43 -!- alc [~arx@114.245.250.205] has quit [Remote host closed the connection]
18:50 < nickaugust> so a permutation is P(26,5) = 26!  / (26-5)!  =
7,893,600...  right so that means an id field 5 letters long and only lowercase
letters has 7,893,600 possibilties?  sound right?
18:51 < nickaugust> hmm is there a math channel on freenode...
18:51 < jcao219> lol
18:52 < nickaugust> wow there is :)
18:52 -!- jcao219 [~Jimmy_Cao@124.126.154.127] has quit [Quit: see y'all later]
18:54 -!- gnuvince [~vince@72.0.215.137] has quit [Quit: Via SOAP!  VIA SOAP!!]
18:54 -!- gnuvince [~vince@72.0.215.137] has joined #go-nuts
18:57 -!- path[l] [UPP@120.138.102.50] has joined #go-nuts
18:57 -!- ako [~nya@fuld-4d00d465.pool.mediaWays.net] has joined #go-nuts
18:58 -!- path[l] [UPP@120.138.102.50] has quit [Read error: Connection reset by
peer]
18:58 -!- path[l] [UPP@120.138.102.50] has joined #go-nuts
19:00 -!- aho [~nya@fuld-4d00d01e.pool.mediaWays.net] has quit [Ping timeout: 265
seconds]
19:01 < nickaugust> and the answer is you use 26^5 so 11,881,376 because the
letters can repeat.  if anyone was interested :)
19:03 -!- saschpe [~saschpe@mgdb-4d0cf4e0.pool.mediaWays.net] has quit [Remote
host closed the connection]
19:04 -!- virtualsue [~chatzilla@nat/cisco/x-jsahituxzwjvqmkd] has joined #go-nuts
19:08 -!- lmoura [~lauromour@186.212.112.70] has quit [Read error: Connection
reset by peer]
19:10 < skelterjohn> yes, that is right
19:11 < skelterjohn> your 26!  / (26-5)!  is almost 26!/((26-5)!*5!), which
is how many ways you can choose 5 letters from 26 candidates
19:13 -!- lmoura [~lauromour@187.113.102.231] has joined #go-nuts
19:14 -!- navigator [~navigator@p548973E4.dip.t-dialin.net] has quit [Quit:
Leaving]
19:17 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
19:21 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 265
seconds]
19:28 -!- smw [~smw@12.198.177.3] has joined #go-nuts
19:29 < nickaugust> skelterjohn: this is the stuff they teach you in college
i assume?  :)
19:29 < skelterjohn> yessir
19:29 < nickaugust> could come in handy i guess
19:29 < skelterjohn> hooray math
19:31 < skelterjohn> only computer scientists really know how to count
properly ;)
19:31 < ampleyfly> discrete maths is awesome
19:32 < exch> 0, 1 <- that's the extent of our math abilities :p
19:32 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:33 < skelterjohn> but you're allowed as many 0s and 1s as you like
19:34 < exch> yes, lucky us.  I think this is an excellent proof of concept
that evolution can work.  From simplicity invariably follows complexity :)
19:36 < skelterjohn> there are 10 types of people in the word, etc
19:36 < skelterjohn> someone else can finish up for me
19:36 < Namegduf> The kind that don't use IRC, and the kind that have heard
that joke before.
19:37 < Namegduf> :P
19:39 -!- aiju [~aiju@unaffiliated/aiju] has joined #go-nuts
19:39 < aiju> is there a go debugger?
19:40 < Namegduf> No.
19:40 < nsf> nope
19:40 < aiju> crap
19:41 < skelterjohn> a debugger is something i never quite feel like i need
until i've been using one for a while
19:41 < aiju> i'm heavily using gdb
19:42 < nsf> I used gdb in C days, for figuring out stack traces
19:42 < nsf> Go can do that for me
19:42 < aiju> (oh he's using GNU software, burn the heretic and so on)
19:42 < nsf> so I don't think I need one
19:42 < aiju> i'm coding some ASM, too, so gdb is quite handy
19:42 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
19:43 < nickaugust> is a debugger planned?
19:43 < Namegduf> Yes.
19:43 < skelterjohn> it will be called "ogle"
19:43 < nickaugust> heh
19:43 < Tonnerre> Or pher
19:43 < aiju> (i don't get the pun)
19:43 < Namegduf> No, I think "ogle" is actually it.
19:43 < Namegduf> Go + ogle
19:43 < skelterjohn>
http://golang.org/doc/go_faq.html#What_is_the_origin_of_the_name
19:43 < Tonnerre> Go + pher
19:43 < aiju> oh meh
19:44 < skelterjohn> *whoosh*
19:44 < nickaugust> does anyone still use gopher i wonder
19:44 < Namegduf> Tonnerre: Yes, but I think his answer was actually
accurate.
19:44 < aiju> nickaugust: people use COBOL
19:44 < skelterjohn> nickaugust: I think that gopher was officially taken
off life support a little while ago
19:44 < Tonnerre> gopher://gopher.semmel.ch/
19:44 < aiju> nickaugust: PDP11s were manufactured until 1997
19:44 < aiju> i'm pretty sure people still use gopher somewhere
19:44 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving]
19:44 < skelterjohn> or at least one major gopher server disappeared
19:45 < skelterjohn> saw something in slashdot
19:45 < nickaugust> 97 really wow
19:45 < nickaugust> when i first saw the go gopher tshirt thats what i
though they were talking about
19:46 * aiju recently saw one \o/
19:46 < aiju> (a PDP11, not a gopher)
19:46 < nickaugust> heheh
19:46 < aiju> i even flipped a switch!
19:46 < Tonnerre> Flipping a switch on a gopher is really mean
19:47 < nickaugust> i was like "wow pike still uses gopher"
19:48 < aiju> oh the Go mascot is supposed to be a gopher
19:48 < aiju> i thought it was a hamster
19:48 < Tonnerre> I guess the Ogle was taken
19:53 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
19:56 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Max SendQ exceeded]
19:57 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
19:57 -!- smw [~smw@12.198.177.3] has quit [Remote host closed the connection]
20:02 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has quit [Ping timeout: 265
seconds]
20:03 < aiju> what's go's "rand" called?
20:04 < nsf> rand..
20:04 < nsf> http://golang.org/pkg/rand/
20:04 < aiju> usnig the GOOGLE(tm) search engine (i'm just respecting the
trademark!) didn't help :/
20:05 < Tonnerre> Yeah, I guess the search results for «go rand» are pretty
wild
20:05 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
20:05 < aiju> go needs a more unique name!
20:05 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 245 seconds]
20:05 < Tonnerre> og
20:05 < Project_2501> Oz?
20:05 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
20:06 < Namegduf> aiju: Not that again, please.
20:06 < Tonnerre> come
20:07 < aiju> i'm in for いく, let's brag with our unicode capabilities!
20:07 < aho> (ノ ゜Д゜)ノ 彡 ┻━┻
20:07 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
20:07 < aho> RAA!
20:08 < aiju> aho: that would make an awesome variable name
20:08 < aho> haha
20:08 < Tonnerre> aiju, I think something in the star wars script would be
more appropriate
20:08 < aiju> heh
20:08 -!- Paradox924X [~Paradox92@adsl-11-19-99.mia.bellsouth.net] has joined
#go-nuts
20:10 < aiju> oh my imported, but not used, packages are considered errors?
20:11 < Tonnerre> Yeah, it's a waste.  You should at least use them in
unused deprecated routines.
20:11 < aiju> seems somehow pointless
20:17 < aiju> C (though completely unoptimized) is just 2 s slower than go
(quicksorting 10M numbers)
20:17 < aiju> thumbs u
20:17 < aiju> +p
20:18 < Tonnerre> The -O flag to gcc specifies the level to which gcc shall
mess up the resulting binary code.  The formula is messup = (O - 2)² + O
20:22 < nsf> D is so complicated to me :(
20:22 < nsf> all those shared immutable ref
20:22 < nsf> different rules
20:22 < nsf> etc.
20:22 < nsf> :(
20:23 -!- gent00r [~haxOr@gw.invnetworks.com] has joined #go-nuts
20:23 < nsf> Go has zero type qualifiers :)
20:23 < aiju> Tonnerre: oh how novel, gcc rant!
20:24 < Tonnerre> aiju, time to follow up with a C++ rant
20:24 -!- Guest83453 [~irc@209.17.191.58] has quit [Ping timeout: 265 seconds]
20:24 < aiju> C++ rant are at least fun!
20:24 * nsf goes to bed
20:24 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
20:28 -!- irc_ [~irc@209.17.191.58] has joined #go-nuts
20:29 -!- Fish [~Fish@AVelizy-152-1-33-144.w82-120.abo.wanadoo.fr] has joined
#go-nuts
20:30 -!- Paradox924X [~Paradox92@adsl-11-19-99.mia.bellsouth.net] has quit
[Changing host]
20:30 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has joined #go-nuts
20:34 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 276 seconds]
20:36 < aiju> is there any document describing the usual design of Go
programs?
20:36 < Namegduf> You make packages with functions in them
20:36 < Namegduf> You have a main package with main()
20:37 < Namegduf> main() calls functions to do stuff
20:37 < Namegduf> There's also init().
20:38 < aiju> ..  something more verbose
20:38 < Namegduf> What more do you expect in common?
20:39 -!- virtualsue [~chatzilla@nat/cisco/x-jsahituxzwjvqmkd] has quit [Ping
timeout: 258 seconds]
20:39 < aiju> hm dunno
20:39 < aiju> import doesn't find my packages :/
20:40 < Namegduf> I think you need to add -I
20:40 < Namegduf> Or possibly make and make install them
20:40 < Namegduf> Which is what I've been doing in the meantime.
20:41 < Namegduf> The default makefiles suck horribly for packages outside
the main Go tree, and just install into it, so I've just being going along with
that until I find a more okay solution.
20:41 < Namegduf> We need fewer half-solutions to this installation matter
(ones for example which do not have a versioning problem no one has any idea how
to fix) and more actually complete ones.
20:44 < aiju> is there some kind of dynamic type?
20:45 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
20:47 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined
#go-nuts
20:47 < exch> not sure what you mean by dynamic type, but defining something
as interface{} basically lets you treat it as anything.  other than that, defining
your own interfaces let's you do the same.
21:00 -!- femtooo [~femto@95-89-188-171-dynip.superkabel.de] has joined #go-nuts
21:03 -!- femtoo [~femto@95-89-188-171-dynip.superkabel.de] has quit [Ping
timeout: 260 seconds]
21:12 -!- tumdum [~tumdum@unaffiliated/tumdum] has left #go-nuts []
21:20 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-151-180.clienti.tiscali.it] has
quit [Ping timeout: 245 seconds]
21:23 -!- dju [dju@fsf/member/dju] has quit [Quit: Quitte]
21:25 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping
timeout: 258 seconds]
21:31 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has joined #go-nuts
21:32 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 260 seconds]
21:35 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit:
skelterjohn]
21:42 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 246
seconds]
21:43 -!- Fish [~Fish@AVelizy-152-1-33-144.w82-120.abo.wanadoo.fr] has quit [Ping
timeout: 246 seconds]
21:43 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
21:48 -!- femtooo [~femto@95-89-188-171-dynip.superkabel.de] has quit [Quit:
Leaving]
21:49 -!- Netsplit *.net <-> *.split quits: plexdev
21:50 -!- atsampson [~ats@212.183.140.1] has quit [Ping timeout: 264 seconds]
21:51 -!- atsampson [~ats@212.183.140.1] has joined #go-nuts
21:59 -!- ShadowIce` [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:04 -!- plexdev [~plexdev@arthur.espians.com] has joined #go-nuts
22:06 -!- Netsplit *.net <-> *.split quits: plexdev
22:10 -!- plexdev [~plexdev@arthur.espians.com] has joined #go-nuts
22:12 -!- rbraley [~rbraley@ip72-222-128-78.ph.ph.cox.net] has quit [Read error:
Connection reset by peer]
22:21 -!- jorisros [~joris@s5590d661.adsl.wanadoo.nl] has quit [Remote host closed
the connection]
22:22 -!- kanru [~kanru@118-168-233-195.dynamic.hinet.net] has joined #go-nuts
22:26 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
22:27 -!- DerHorst [~Horst@e176100121.adsl.alicedsl.de] has joined #go-nuts
22:28 -!- napsy [~luka@212.235.174.112] has joined #go-nuts
22:31 -!- Venom_X [~pjacobs@adsl-99-20-147-171.dsl.aus2tx.sbcglobal.net] has
joined #go-nuts
22:31 -!- divoxx [~divoxx@189.63.144.228] has joined #go-nuts
22:32 -!- divoxx [~divoxx@189.63.144.228] has quit [Remote host closed the
connection]
22:32 -!- divoxx [~divoxx@204.152.215.146] has joined #go-nuts
22:33 -!- divoxx [~divoxx@204.152.215.146] has quit [Client Quit]
22:39 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has joined #go-nuts
23:10 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving]
23:12 -!- DerHorst_ [~Horst@e176100217.adsl.alicedsl.de] has joined #go-nuts
23:13 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
23:14 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
23:16 -!- DerHorst [~Horst@e176100121.adsl.alicedsl.de] has quit [Ping timeout:
265 seconds]
23:17 -!- ikaros [~ikaros@188.107.211.231] has quit [Quit: Leave the magic to
Houdini]
23:20 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit
[Quit: carllerche]
23:30 -!- napsy [~luka@212.235.174.112] has quit [Ping timeout: 246 seconds]
23:31 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
23:31 -!- iant [~iant@nat/google/x-modmrpqyvwispypx] has quit [Ping timeout: 276
seconds]
23:36 -!- iant [~iant@67.218.107.123] has joined #go-nuts
23:36 -!- mode/#go-nuts [+v iant] by ChanServ
23:42 -!- Venom_X [~pjacobs@adsl-99-20-147-171.dsl.aus2tx.sbcglobal.net] has quit
[Quit: Venom_X]
23:47 -!- angasule [c80571ea@gateway/web/freenode/ip.200.5.113.234] has quit
[Quit: Page closed]
23:55 -!- aiju [~aiju@unaffiliated/aiju] has quit [Quit: 'x𒍅񥐴񖞅񦍥񸥅񧕨)򕕂']
--- Log closed Thu Aug 12 00:00:02 2010