--- Log opened Wed Feb 02 00:00:05 2011
00:02 -!- iant [~iant@nat/google/x-vinvboigdthlresj] has quit [Quit: Leaving.]
00:05 < plexdev> http://is.gd/E9lSNt by [Andrew Gerrand] in 2 subdirs of go/
-- release.2011-02-01
00:05 < plexdev> http://is.gd/SU8Akv by [Andrew Gerrand] in go/ -- tag
release.2011-02-01
00:14 -!- niemeyer [~niemeyer@189.30.51.218] has quit [Ping timeout: 240 seconds]
00:21 -!- iant [~iant@nat/google/x-dmtmmlqshexpytrf] has joined #go-nuts
00:21 -!- mode/#go-nuts [+v iant] by ChanServ
00:23 -!- Scorchin [~Scorchin@host109-154-145-33.range109-154.btcentralplus.com]
has quit [Ping timeout: 240 seconds]
00:23 -!- qboiler [~bryce@99-7-4-180.lightspeed.cicril.sbcglobal.net] has left
#go-nuts []
00:31 -!- iant [~iant@nat/google/x-dmtmmlqshexpytrf] has quit [Quit: Leaving.]
00:34 -!- iant [~iant@67.218.107.234] has joined #go-nuts
00:34 -!- mode/#go-nuts [+v iant] by ChanServ
00:34 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 246 seconds]
00:38 -!- vzx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Ping timeout: 240
seconds]
00:45 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Ping
timeout: 276 seconds]
00:46 -!- cafesofie [~cafesofie@rnwifi-164-107-93-127.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
00:47 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
00:49 -!- nettok_ [~quassel@200.119.170.35] has joined #go-nuts
00:49 -!- nettok [~quassel@200.119.172.13] has quit [Ping timeout: 245 seconds]
00:51 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has quit [Quit:
Computer has gone to sleep.]
00:56 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
01:05 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
01:06 < plexdev> http://is.gd/eUAU0r by [Robert Griesemer] in
go/src/pkg/go/ast/ -- go/ast: add missing handling of SendStmt to ast.Walk
01:10 < itrekkie> out of curiosity, does anyone know of any work on a
self-hosting compiler?
01:11 -!- tvw [~tv@e176003114.adsl.alicedsl.de] has quit [Read error: Connection
reset by peer]
01:11 < aiju> itrekkie: you mean one written in Go?
01:11 < itrekkie> aiju: yup
01:11 < aiju> yeah, some Windows guys are working on it
01:12 < itrekkie> erGo?  does that sound right?
01:13 < aiju> yeah that was it
01:13 < itrekkie> cool thanks :)
01:13 -!- davisp [~davisp@couchdb/developer/davisp] has joined #go-nuts
01:13 < itrekkie> sadly their pages all seem to be down
01:14 < aiju> i suppose it's temporary
01:15 < itrekkie> yea, I sure hope so, it would be interesting to see what a
compiler in go might look like
01:16 < aiju> i think Google is also working on it
01:16 -!- nettok [~quassel@200.119.170.32] has joined #go-nuts
01:17 -!- nettok_ [~quassel@200.119.170.35] has quit [Ping timeout: 265 seconds]
01:20 -!- cafesofie [~cafesofie@dhcp-140-254-202-115.osuwireless.ohio-state.edu]
has joined #go-nuts
01:23 < plexdev> http://is.gd/5MkXJ5 by [Andrew Gerrand] in go/ --
release.2011-02-01.1
01:23 < plexdev> http://is.gd/CFNKyX by [Andrew Gerrand] in go/ -- tag
release.2011-02-01.1
01:32 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Quit: JusticeFries]
01:38 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
#go-nuts
01:44 -!- cafesofie [~cafesofie@dhcp-140-254-202-115.osuwireless.ohio-state.edu]
has quit [Remote host closed the connection]
01:45 -!- zeel [~zinc@69.156.94.168] has joined #go-nuts
01:46 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 240 seconds]
01:47 -!- Cyd [~zinc@unaffiliated/cydd] has quit [Ping timeout: 240 seconds]
01:53 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
01:53 -!- CrazyThinker [~CrazyThin@unaffiliated/mosva] has quit [Read error:
Connection reset by peer]
01:55 < plexdev> http://is.gd/tKgnZB by [Rob Pike] in go/src/pkg/regexp/ --
regexp tests: make some benchmarks more meaningful
02:02 -!- iant [~iant@67.218.107.234] has quit [Quit: Leaving.]
02:03 -!- cafesofie [~cafesofie@dhcp-140-254-190-94.osuwireless.ohio-state.edu]
has joined #go-nuts
02:33 -!- Mr_Dark [~dk@poviko.demon.nl] has joined #go-nuts
02:34 -!- Mr_Dark` [~dk@poviko.demon.nl] has quit [Ping timeout: 276 seconds]
02:38 -!- dforsyth_ [~dforsyth@bastion.inap.yelpcorp.com] has quit [Quit: Computer
has gone to sleep.]
02:41 -!- sonntag [~justinson@pool-96-245-106-145.phlapa.fios.verizon.net] has
quit [Read error: No route to host]
02:43 -!- sonntag [~justinson@pool-96-245-106-145.phlapa.fios.verizon.net] has
joined #go-nuts
02:51 -!- keithgcascio [~keithcasc@nat/google/x-emtuunbhkvtfyyuy] has quit [Quit:
Leaving]
03:10 -!- decaf [~mehmet@78.163.171.119] has quit [Remote host closed the
connection]
03:13 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
03:14 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
03:20 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
03:20 -!- adu [~ajr@pool-173-73-0-57.washdc.fios.verizon.net] has quit [Quit: adu]
03:35 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
03:37 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
03:45 -!- rboyd [~rboyd@d4-98.rb.sm.centurytel.net] has joined #go-nuts
04:03 -!- rboyd [~rboyd@d4-98.rb.sm.centurytel.net] has quit [Quit: rboyd]
04:08 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Ping
timeout: 245 seconds]
04:19 -!- cafesofie [~cafesofie@dhcp-140-254-190-94.osuwireless.ohio-state.edu]
has quit [Remote host closed the connection]
04:22 -!- zeel [~zinc@69.156.94.168] has quit []
04:23 -!- Cydd [~zinc@69.156.94.168] has joined #go-nuts
04:23 -!- Cydd [~zinc@69.156.94.168] has quit [Changing host]
04:23 -!- Cydd [~zinc@unaffiliated/cydd] has joined #go-nuts
04:23 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
04:25 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 255
seconds]
04:27 -!- hcl2 [~akuma@75.41.110.112] has quit [Ping timeout: 240 seconds]
04:31 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
04:31 -!- mode/#go-nuts [+v iant] by ChanServ
04:54 -!- sonntag [~justinson@pool-96-245-106-145.phlapa.fios.verizon.net] has
quit [Quit: sonntag]
04:56 -!- cafesofie [~cafesofie@rnwifi-164-107-93-247.resnet.ohio-state.edu] has
joined #go-nuts
05:00 -!- shvntr [~shvntr@116.26.135.30] has joined #go-nuts
05:06 -!- vzx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
05:10 -!- nettok_ [~quassel@200.119.165.184] has joined #go-nuts
05:13 < plexdev> 028c5d0 by [Rob Pike] in go/src/pkg/io/ -- io: add
ReadRuner
05:13 -!- nettok [~quassel@200.119.170.32] has quit [Ping timeout: 240 seconds]
05:13 < plexdev> 7d90f83 by [Rob Pike] in go/src/pkg/fmt/ -- fmt: document
%b for floating point
05:21 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
05:43 -!- leczb [~leczb@nat/google/x-grovjptsduvbhphw] has quit [Read error:
Operation timed out]
05:44 -!- leczb [~leczb@nat/google/x-qdjhkftaehzexmee] has joined #go-nuts
05:44 < plexdev> 6395660 by [Rob Pike] in go/src/pkg/sync/ -- sync: tidy a
couple of comments.
05:50 -!- adu [~ajr@pool-173-73-0-57.washdc.fios.verizon.net] has joined #go-nuts
06:09 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
06:11 -!- larva [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com] has
quit [Quit: No Ping reply in 180 seconds.]
06:11 -!- larva [~larvanitr@ec2-46-51-171-183.eu-west-1.compute.amazonaws.com] has
joined #go-nuts
06:35 -!- cbeck1 [cbeck@gateway/shell/pdx.edu/x-swxaslnlmfnnhoqf] has joined
#go-nuts
06:35 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-aexcusyaybtvbxbv] has quit [Read
error: Connection reset by peer]
06:42 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Ping timeout: 240 seconds]
06:49 -!- jdp__ [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts
06:49 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has quit [Read error:
Connection reset by peer]
06:52 -!- nettok [~quassel@200.119.165.184] has joined #go-nuts
06:54 -!- nettok_ [~quassel@200.119.165.184] has quit [Ping timeout: 276 seconds]
07:09 -!- Cyd [~zinc@unaffiliated/cydd] has left #go-nuts []
07:27 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
07:33 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
07:35 -!- tvw [~tv@e176002033.adsl.alicedsl.de] has joined #go-nuts
07:36 -!- ExtraSpice [~XtraSpice@88.118.33.48] has joined #go-nuts
07:48 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
08:01 -!- cafesofie [~cafesofie@rnwifi-164-107-93-247.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
08:12 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:16 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
08:21 -!- nettok [~quassel@200.119.165.184] has quit [Ping timeout: 260 seconds]
08:33 -!- icbh [~icbh@ntszok054022.szok.nt.adsl.ppp.infoweb.ne.jp] has quit [Quit:
leaving]
08:39 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
08:40 < nsf> adg: $GOROOT/src/pkg/exp/wingui/Makefile has TARG=wingui, is it
a bug?  shouldn't it be something like exp/wingui?
08:41 < nsf> it confused my documentation generator :)
08:46 < nsf> omg
08:46 < nsf> and makefile includes Make.cmd
08:46 < nsf> !!!
08:47 < nsf> instead of .pkg
08:48 < nsf> I will simply skip it this time in my docs update, looks like a
real bug
08:52 < nsf> anyways, take a look!
http://code.google.com/p/go/source/browse/src/pkg/exp/wingui/Makefile
08:52 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
09:01 -!- adu_ [~ajr@pool-71-191-173-95.washdc.fios.verizon.net] has joined
#go-nuts
09:02 -!- adu [~ajr@pool-173-73-0-57.washdc.fios.verizon.net] has quit [Ping
timeout: 240 seconds]
09:04 -!- adu_ [~ajr@pool-71-191-173-95.washdc.fios.verizon.net] has quit [Client
Quit]
09:14 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
09:17 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 240 seconds]
09:23 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
09:26 -!- ExtraSpice [~XtraSpice@88.118.33.48] has quit [Read error: Connection
reset by peer]
09:34 -!- Project_2501 [~Marvin@82.84.98.163] has joined #go-nuts
09:35 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has joined #go-nuts
09:39 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
09:43 -!- wtfness [~dsc@78.101.45.86] has quit [Remote host closed the connection]
09:52 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
09:52 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
10:00 -!- trochala [~trochala@46.12.89.126.dsl.dyn.forthnet.gr] has joined
#go-nuts
10:09 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
10:09 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
10:09 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
10:12 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
10:14 < trochala> Hello, I have a question for the websocket package.  To
read a ws message you have to pass a fixed-size byte array to ws.Read()
10:15 < trochala> but as ws protocol is message based, I would expect a
method that returns a full-message string
10:16 < trochala> This is my first go program, so am I missing something
here?
10:19 < trochala> The problem is that on a message-like protocol I should
not have to worry about buffer sizes
10:22 -!- wrtp [~rog@92.17.35.133] has joined #go-nuts
10:24 < rm445> gosh I'm rusty.  Are you sure it doesn't take a slice that is
can resize if necessary?
10:24 < rm445> *it can resize
10:27 < bXi> trochala: http://gary.beagledreams.com/page/go-websocket-chat
10:27 < bXi> i got the basic websocket usage from there
10:30 < trochala> bXi: yes I have read that, nice example
10:31 < trochala> bXi: It uses a 256 buffer, for reading.  What happens if I
send a larger message?
10:32 < bXi> good question
10:32 < bXi> i'll try that in a moment
10:36 < bXi> just trying to keep my javascript part to stay connected
10:46 -!- ExtraSpice [~XtraSpice@88.118.33.48] has joined #go-nuts
10:55 -!- wtfness [~dsc@78.101.45.86] has joined #go-nuts
10:55 -!- Zoopee [alsbergt@zoopee.org] has quit [Ping timeout: 276 seconds]
10:56 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has joined #go-nuts
11:05 -!- Project-2501 [~Marvin@82.84.96.132] has joined #go-nuts
11:08 -!- Project_2501 [~Marvin@82.84.98.163] has quit [Ping timeout: 276 seconds]
11:08 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts
11:09 -!- niemeyer [~niemeyer@189.30.51.218] has joined #go-nuts
11:20 -!- CrazyThinker [~CrazyThin@unaffiliated/mosva] has joined #go-nuts
11:30 -!- virtualsue [~chatzilla@nat/cisco/x-wloefsrufzvrkcst] has joined #go-nuts
11:32 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
11:34 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has quit [Quit:
Computer has gone to sleep.]
11:34 -!- ExtraSpice [~XtraSpice@88.118.33.48] has quit [Quit: Leaving]
11:41 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has joined
#go-nuts
11:42 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
11:42 < erus_> skejoe: I just sent you a pull request for go-gb
11:44 < skejoe> erus_: uhm, why?
11:45 < erus_> read it
11:46 < skejoe> erus_: I don't have anything to do with go-gb :) That's
skeletor I think.
11:47 < erus_> says skelterjohn on github.  I thought skejoe was close
enough
11:47 < skejoe> Ah. Well it isn't me :)
11:48 < skejoe> I think skelterjohn is his nick in irc too.  Couldn't
remember.
11:54 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has quit [Ping
timeout: 265 seconds]
11:54 < bXi> ooooooookay
11:54 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the
connection]
11:55 < bXi> json in go stumped me there
11:55 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has quit [Quit: ciao]
11:58 -!- decaf [~mehmet@78.163.183.188] has joined #go-nuts
12:09 -!- wtfness [~dsc@78.101.45.86] has quit [Remote host closed the connection]
12:11 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
12:17 < bXi> hmm
12:18 < bXi> do you need to specify a type in a function
12:19 -!- tvw [~tv@e176002033.adsl.alicedsl.de] has quit [Remote host closed the
connection]
12:19 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
12:21 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 272 seconds]
12:25 < temoto> bXi, what is 'type in a function'?
12:30 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has quit [Ping
timeout: 240 seconds]
12:30 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
12:33 < bXi> well
12:33 < rm445> if a function returns something, you need to specify the type
of the return(s).  If the function is a method on a type, you need to say what
type it is a method of.
12:33 < rm445> And if a function has arguments, you need to state their
types.
12:33 < bXi> func test(var string) { do something with string }
12:34 < bXi> but i'm trying to create a few debug functions in which i can
add the data what i'm trying to see
12:35 < rm445> that's a function called test that takes a string called var
(isn't that a reserved word?) and doesn't return anything.
12:35 < bXi> well thank you captain obvious
12:36 < bXi> i want func test(var) { try to find out the type of var and use
it to display data the way i need it }
12:36 < rm445> sorry, you're not using terms in their normal way so we're
taking is from the beginning.
12:36 < rm445> aaaaahhhhhhh
12:37 < rm445> ok, so yes, everything has to have a type.  But we have a
type called interface {}, which can hold anything.
12:38 < bXi> ah right
12:38 < rm445> But when someone passes you something in an 'interface {}',
you can't just use it, you have to 'unbox' the data it stores, using a type
switch.
12:39 < bXi> okay that makes sense
12:39 < bXi> *writes this down*
12:39 < rm445> So Go has these two weird pieces of syntax, type assertions
and type switches, which look like i.(int)
12:39 < bXi> (basicly i'm trying to mimic php's var_dump() function)
12:40 < rm445> They are to do with interfaces.  When a function gets passed
something inside an interface variable (maybe interface {} or maybe an interface
like io.Reader),
12:41 < rm445> well either you want to call methods defined on that
interface (e.g.  calling whatever.Read())
12:41 < rm445> OR you want to unbox the underlying type to get at the
variable itself.
12:42 < wrtp> bXi: if you want to display the value of a variable of any
type, just use fmt.Println(v) (or fmt.Printf("%v\n", v))
12:43 < exch> %+v and %#v for more verbose output
12:43 < exch> and %T to print the type name
12:46 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
12:46 < bXi> yeah i'm making a var_dump function that displays it in a (for
me anyway) logical way
12:46 < bXi> so %T and %+t will be used with some extra info
12:47 < bXi> and theres probobaly a function that does this on the interwebs
but i need to learn typing
12:48 < wrtp> exch: i didn't know about %+v.  what does it do that %#v
doesn't?
12:48 < wrtp> bXi: %T means print the type of the value.  %t means print a
boolean.
12:49 < wrtp> bXi: if you print an arbitrary variable yourself, look at the
reflect package.
12:49 < wrtp> s/variable/type/
12:49 < exch> wrtp: it prints struct field names like %#v, but omits struct
type info.  generally reads a little easier
12:50 < wrtp> i see.  it could do with being documented.
12:50 < exch> it also doesnt escape newlines and such in strings like %#v
does
12:51 < bXi> does it print a newline like \n if you use %+v ?
12:52 < exch> not the literal '\n'.  it prints the actual newline byte, so
the string is split up
12:52 < exch> %#v does print '\n'
12:53 < wrtp> i wish that %#v and %q didn't escape all valid unicode
characters
12:59 < bXi> ah right
13:08 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
13:16 -!- hcl2 [~akuma@75.41.110.112] has joined #go-nuts
13:22 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
13:24 -!- brucebanner_ [~brucebann@80.169.174.130] has joined #go-nuts
13:24 < brucebanner_> where do i get the go-lang source zipped up
13:24 < brucebanner_> i don't have mercurial installed
13:24 < nsf> http://code.google.com/p/go/downloads/list
13:25 < nsf> although
13:25 < brucebanner_> ta
13:25 < nsf> it looks like there is a limited amount of binaries
13:25 < nsf> darwin amd64 is the only one basically
13:25 < nsf> :(
13:25 < nsf> ah..  it's binary yes
13:25 < nsf> but it contains sources as well
13:25 < nsf> so..
13:25 < nsf> should work
13:28 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
13:28 -!- tvw [~tv@212.79.9.150] has quit [Ping timeout: 240 seconds]
13:36 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-150-206.clienti.tiscali.it] has
joined #go-nuts
13:37 < temoto> A developer doesn't have VCS installed?
13:38 < nsf> brucebanner_: also there is a git mirror on the github, but an
unofficial one
13:38 < nsf> github.com/tav/go
13:38 < nsf> and you can download snapshots from there
13:39 -!- Project-2501 [~Marvin@82.84.96.132] has quit [Ping timeout: 265 seconds]
13:46 -!- ExtraSpice [~XtraSpice@88.118.33.48] has joined #go-nuts
13:49 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
13:50 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
13:51 < bXi> wrtp: i have one final question about variables
13:51 < wrtp> go on
13:51 < bXi> lets say i have var_dump(myname) in my code
13:51 < bXi> (myname being the name of the var)
13:51 < bXi> can i get this in my var_dump function as well?
13:52 < wrtp> no
13:52 < bXi> darn
13:52 < wrtp> why do you want it?
13:52 < wrtp> it doesn't give you much useful info
13:53 < bXi> string myname: "Hello world"
13:53 < bXi> for example
13:53 < bXi> or maybe a line number would make more sense
13:53 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
connection]
13:53 < wrtp> a line number is easy
13:53 < wrtp> but isn't it the contents of the variable you're interested
in, not who called the dump function?
13:54 < bXi> well true
13:54 < wrtp> what are you doing this for anyway?  debugging?
13:54 < bXi> trying to think of information that could help the debugging
process
13:54 < wrtp> what do you want that Printf("%#v", varname) doesn't give you?
13:55 < wrtp> where Printf could be log.Printf, which can print the line
number of the caller
13:56 < bXi> so far i have Printf("\n%T: %#v\n", object)
13:57 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
13:58 < wrtp> doesn't %#v print the type too?
14:00 < bXi> string: "{\"user\":\"test\",\"pass\":\"test\"}"
14:00 < bXi> this is what i get now
14:00 < bXi> so i would assume that %#v doesnt show the type
14:11 -!- tvw [~tv@212.79.9.150] has quit [Read error: Connection reset by peer]
14:13 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Ping timeout: 260
seconds]
14:13 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
14:18 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-150-206.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
14:21 < wrtp> bXi: yeah you're right - it only prints the type when it's a
struct
14:27 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit:
Leaving.]
14:28 < trochala> I am having a problem passing a function pointer to a
function, the code is here: http://go.pastie.org/1521582
14:29 < trochala> any ideas why this is not working?
14:32 < skelterjohn> morning
14:34 < skelterjohn> trochala: I seem to recall that according to the spec,
it is valid, but hasn't been implemented in the compiler yet
14:34 < skelterjohn> but i thought that had been fixed.  so, either it was
not fixed, or it got taken away
14:34 < skelterjohn> or it isn't in the spec
14:36 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 265
seconds]
14:39 < artefon> skelterjohn, hello )
14:40 -!- dmytro_ [~dmytro@193.227.120.3] has joined #go-nuts
14:40 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
14:41 -!- dipoll [~dmytro@193.227.120.3] has quit [Ping timeout: 250 seconds]
14:41 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
14:44 -!- iant [~iant@67.218.107.234] has joined #go-nuts
14:44 -!- mode/#go-nuts [+v iant] by ChanServ
14:45 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
14:45 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving]
14:46 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
14:47 -!- Fish [~Fish@exo3753.pck.nerim.net] has quit [Ping timeout: 246 seconds]
14:48 -!- Kashia [~Kashia@p4FE87844.dip.t-dialin.net] has joined #go-nuts
14:49 -!- sauerbraten [~sauerbrat@p508CFD94.dip.t-dialin.net] has joined #go-nuts
14:52 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
14:54 < wrtp> trochala: you can't do it that way
14:56 < wrtp> you can do: websocket.Draft75Handler(func(ws
*websocket.Conn){cs.clientHandler(ws)}).ServeHTTP(c, req)
14:56 < wrtp> i.e.  create the closure manualluy
14:56 < wrtp> s/luy/ly/
14:57 < trochala> wrtp: Yes that would work, thanks :)
14:58 <@adg> nsf: maybe, i've never even seen that package before!
15:02 -!- imsplitbit [~imsplitbi@64.39.4.132] has joined #go-nuts
15:02 < nsf> adg: well, that's why I'm telling, it was introduced in the
latest release
15:06 -!- imsplitbit [~imsplitbi@64.39.4.132] has quit [Client Quit]
15:06 -!- imsplitbit [~imsplitbi@64.39.4.132] has joined #go-nuts
15:07 -!- pr [phil@unaffiliated/pr] has quit [Ping timeout: 255 seconds]
15:09 < nsf> adg: and well it has a main func
15:09 < nsf> wtf is it doing in the go pkg tree
15:09 < skelterjohn> there are lots of things in the pkg tree with "package
main" and "func main()"
15:09 < skelterjohn> as I find out while trying to make gb compile
$GOROOT/src
15:10 < nsf> hm..
15:10 < nsf> but that one has the cmd makefile as well
15:11 < nsf> I do understand that it's some kind of unfinished chunk of
experiments with winapi gui
15:11 < nsf> but whatever, not my tree :) go devs will clean in up if they
want to
15:11 < skelterjohn> what are you referring to?
15:11 < nsf> exp/wingui
15:13 < wrtp> skelterjohn: the convention is to ignore "package main" files
if there's another package defined.
15:13 < wrtp> goinstall uses that convention
15:13 < skelterjohn> seems that way
15:13 < skelterjohn> oh does it?
15:13 < wrtp> seems reasonable to me
15:13 < skelterjohn> yep
15:13 -!- cafesofie [~cafesofie@dhcp-140-254-202-115.osuwireless.ohio-state.edu]
has joined #go-nuts
15:13 < wrtp> (it would 'cos i put that heuristic into goinstal :-])
15:13 < skelterjohn> (started making that change to gb about 45 sec ago)
15:13 < skelterjohn> haha
15:14 <@adg> nsf: there have been other commands in pkg/exp before (like
ogle), and it's okay for a cmd to have a simple name as a targ
15:14 < skelterjohn> wrtp: do you know if any of the goroot pkgs that have
this helper commands need to invoke them to be built?
15:14 < nsf> adg: ok then
15:14 < nsf> I'll hack my doc tool
15:14 < nsf> so it will ignore makefiles with Make.cmd
15:15 < wrtp> skelterjohn: probably
15:15 < skelterjohn> :\
15:15 < wrtp> but surely it doesn't matter if you're using make to do the
build
15:15 -!- pr [phil@komodo.contextshift.eu] has joined #go-nuts
15:15 -!- pr [phil@komodo.contextshift.eu] has quit [Changing host]
15:15 -!- pr [phil@unaffiliated/pr] has joined #go-nuts
15:17 < wrtp> skelterjohn: BTW, i definitely think that a target-outwards
approach rather than a calculate-all-dependencies-regardless approach is likely to
be better
15:18 < skelterjohn> other than warning messages (that I can suppress)
what's the difference?
15:18 < skelterjohn> it takes .3s to scan the whole source tree
15:19 < wrtp> only when it's in cache, i'd guess
15:19 < skelterjohn> true
15:20 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
15:21 < wrtp> and i often have parts of the directory tree that are in
shoddy state (e.g.  goinstalled projects that don't work, ancient projects of
mine).  doing an outwards approach rather than a top-down approach means that gb
never has to look at them
15:21 < skelterjohn> problem arises for projects that have targets different
from there relative path
15:22 < skelterjohn> some analysis needs to be done to see what the target
is
15:22 < skelterjohn> and if something else depends on it, scanning
everything to look for it is the only option
15:22 < wrtp> for stuff in the go tree, are there any examples of that?
15:23 < skelterjohn> not in the go tree, but a project you have elsewhere
that is meant to work with goinstall
15:25 < wrtp> if you can't find a target, *then* you can go looking it (e.g.
with goinstall or searching a directory for target.gb files)
15:25 -!- wtfness [~dsc@dyn-86-36-41-116.wv.qatar.cmu.edu] has joined #go-nuts
15:26 < skelterjohn> possible
15:26 < skelterjohn> that's an optimization for later, though
15:27 < wrtp> it's more than an optimisation.  currently, if i've got a
random test program, say in $HOME/src/tst.go; i'd like to be able to build it (and
all its dependencies) without putting it under $GOROOT.
15:28 < skelterjohn> gb will not reach from $HOME/src into $GOROOT
15:28 < wrtp> indeed
15:28 < wrtp> that's a bit of a problem
15:28 < skelterjohn> that would be a bit much to ask of a single build tool
15:28 < skelterjohn> honestly i disagree
15:28 < skelterjohn> $GOROOT contains stuff that gets installed
15:29 < skelterjohn> and is (for most people) static
15:29 < skelterjohn> i realize in your case you'll edit stuff in $GOROOT/src
and $HOME/src at the same time
15:29 < skelterjohn> but...  that goes against my grain a little bit
15:34 < wrtp> well, maybe i am acting unusually when i edit core go packages
when i'm debugging, but i don't think it's unusual to be developing several
packages in independent source directories, and to want to have them all built as
appropriate, even though they might not share a convenient source directory.
15:35 < wrtp> i don't think it's asking too much of a build tool anyway.
gobuild target: does whatever is necessary to build the target.  gobuild -a: tries
to bring everything in the current directory up to date.
15:36 < wrtp> doesn't *sound* too hard :-)
15:37 -!- qjcg [~qjcg@208.88.110.46] has joined #go-nuts
15:38 -!- gmilleramilar [~gmiller@38.104.67.234] has joined #go-nuts
15:39 < skelterjohn> oh wrtp - doesn't address your other issues, but you
would want to run gb from $GOROOT/src/pkg rather than $GOROOT/src
15:39 < wrtp> why's that?
15:39 < skelterjohn> because then the path to, for instance, fmt is "fmt"
instead of "pkg/fmt"
15:39 < wrtp> i was trying to build godoc
15:40 < skelterjohn> that is the cause of that suggestion for -g
15:40 < skelterjohn> it didn't find "github.com/etc", because there was only
"pkg/github.com/etc"
15:41 < skelterjohn> and regarding what gobuild does - i'm not saying it's
too hard to write a tool to do that.  i'm saying that i don't think the tool
should do that
15:41 < wrtp> ok
15:41 < wrtp> so you're saying that's there's no way to build commands in
$GOROOT/src/cmd with gb?
15:42 < skelterjohn> the cmd and pkg directories are two different source
roots
15:42 < skelterjohn> you'd have to install the pkgs first
15:42 < wrtp> ah you mean i'd have to run gb twice?
15:43 < skelterjohn> gb will not build every project on your hard drive from
one command line
15:43 < wrtp> oh
15:43 < skelterjohn> i exaggerate, but it's the same issue
15:44 < wrtp> " gb will identify any possible targets existing in
subdirectories of the current
15:44 < wrtp> working directory, and act on them as appropriate."
15:44 < wrtp> that's not true then?  :-)
15:44 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
15:44 < wrtp> 'cos $GOROOT/src certainly seems like a legitimate source root
to me
15:45 < skelterjohn> if it has the information, it will try to build it
15:45 -!- Natch [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
15:45 < wrtp> what info doesn't it have there?
15:45 < skelterjohn> if, in fmt there was a target.gb containing "fmt", it
would figure it out
15:45 < skelterjohn> but otherwise it thinks it is a package "pkg/fmt"
15:45 -!- Natch| [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
15:45 < skelterjohn> (btw i appreciate your thoughts)
15:47 < skelterjohn> huh...what do I do about go/typechecker/testdata?
Where there are 4 different source files, each with a different package name (P0,
P1, P3, P4)
15:47 -!- artefon [~thiago@189.115.129.243] has joined #go-nuts
15:49 < wrtp> that's not a problem if nothing depends on that directory, in
theory
15:49 -!- shvntr [~shvntr@116.26.135.30] has quit [Read error: Connection reset by
peer]
15:49 < skelterjohn> it'd be nice if i could run gb from $GOROOT/src/pkg and
have it build everything, though
15:49 < skelterjohn> gb certainly won't try otherwise
15:50 < wrtp> well, if there's more than one non-main package in a directory
and there's no Makefile, you could just ignore the directory.
15:50 < wrtp> assuming -m
15:51 < skelterjohn> and the extra package isn't "documentation"...
15:52 < wrtp> BTW, i've just realised that gb is incompatible with
goinstall.  hmm.
15:52 < skelterjohn> in what way?
15:54 < wrtp> ah, not if you use target.gb, i see
15:55 < skelterjohn> right
15:55 < skelterjohn> you can also put a //target:<name> comment in the
source
15:55 < wrtp> i think that the "relative path == package import path"
assumption is flawed.  that's almost never going to be the case.
15:56 < wrtp> you could have better heuristics there
15:56 < wrtp> such as $GOROOT/src/pkg/anything -> import path anything
15:57 < wrtp> and allow a target.gb file in a source directory that gives
the import path root for all directories below it
15:57 < skelterjohn> that last thing is already the case
15:58 < wrtp> oh yes, i see
15:58 < wrtp> BTW it would be good to have one place where both the flags
and the overall usage were documented
15:59 < skelterjohn> go-gb.googlecode.com
16:01 -!- artefon [~thiago@189.115.129.243] has quit [Quit: bye]
16:01 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has quit [Ping
timeout: 250 seconds]
16:01 < wrtp> oh yeah - you should put that info in a documentation file in
the gb directory too, so that godoc can find it
16:01 -!- sonntag [~justinson@pool-96-245-106-145.phlapa.fios.verizon.net] has
joined #go-nuts
16:01 < wrtp> (or me - i just assume that the documentation comes with the
source code)
16:01 -!- sonntag_ [~justinson@pool-96-245-106-145.phlapa.fios.verizon.net] has
joined #go-nuts
16:01 -!- sonntag [~justinson@pool-96-245-106-145.phlapa.fios.verizon.net] has
quit [Read error: Connection reset by peer]
16:02 < wrtp> so, just to get this straight: if i have a go project in
$HOME/src/myproject, and one of the files depends on some other package, say
"github.com/someotherproject", and i do goinstall -u github.com/someotherproject,
then cd $HOME/src/myproject; gb; will my project get rebuilt appropriately?
16:02 < skelterjohn> it's in go-gb/gb/README, but not in a way godoc likes
16:02 < wrtp> README doesn't document the flags
16:02 < skelterjohn> cd there and "gb -g"
16:02 < skelterjohn> it will run goinstall for you
16:02 < wrtp> goinstall -u ?
16:03 < skelterjohn> no, though i suppose that would be a good thing to add
16:03 < skelterjohn> that redownloads, right?
16:03 -!- iant [~iant@67.218.107.234] has quit [Quit: Leaving.]
16:04 < wrtp> anyway, that's not the point.  i might have done the goinstall
for some other reason in some other project.  i just wanted to know if gb would
know if the project needs rebuilding because a dependency has changed.
16:04 < wrtp> yes
16:05 < skelterjohn> at the moment it only checks things inside your src
root, though checking changes in pkgs in $GOROOT is on the todo list
16:05 -!- DerHorst [~Horst@e176102020.adsl.alicedsl.de] has joined #go-nuts
16:06 -!- artefon [~thiago@189.115.129.243] has joined #go-nuts
16:06 < wrtp> ok, thought so.  i think that's essential, BTW.
16:06 -!- davisp [~davisp@couchdb/developer/davisp] has quit [Quit: Terminated
with extreme prejudice - dircproxy 1.0.5]
16:06 < skelterjohn> yes, i agree
16:09 < gmilleramilar> when using netchan.Exporter, is "netchan export:
error decoding client header:EOF" just a fact of life, or am I using it wrong?
16:09 < gmilleramilar> http://pastie.org/private/aovktj3qjtlvkmim5speg
16:11 < wrtp> gmilleramilar: i don't get that error
16:12 < gmilleramilar> what build are you running?
16:12 < gmilleramilar> (you're running both the importer and exporter sides,
right?)
16:12 < wrtp> yeah
16:12 < wrtp> the exporter runs and hangs
16:12 < wrtp> the import runs then the export prints 12345
16:13 < wrtp> oh no, i've seen the error
16:13 < wrtp> then the importer panics (with close of closed channel)
16:13 < gmilleramilar> oh, I haven't seen that
16:13 < gmilleramilar> you're running the latest release of go?
16:14 < wrtp> reasonable recent, yes
16:14 < wrtp> i see what's happening
16:14 < wrtp> and i do think it's a bug in netchan actually
16:15 -!- iant [~iant@nat/google/x-kyyemjrtlassxtxy] has joined #go-nuts
16:15 -!- mode/#go-nuts [+v iant] by ChanServ
16:15 -!- jodaro [~user@poquito.divinia.com] has quit [Ping timeout: 264 seconds]
16:15 < wrtp> if you import a channel with netchan.Send, you can close it
and then no other importer can use it
16:16 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
16:16 < wrtp> the "error decoding client header" is just a log message and
shouldn't concern you
16:16 < skelterjohn> wrtp: thanks for all the discussion this morning.  i'll
get back to you in a few days to see if I can make you any happier
16:16 < gmilleramilar> ah, ok.  I just don't like log messages that have the
word 'error' in them
16:17 < wrtp> skelterjohn: np.  sorry to be so...  unsatisfied :-)
16:18 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts
16:18 < skelterjohn> don't apologize - i was looking for constructive
criticism
16:18 -!- mattn_jp [~mattn@112-68-77-188f1.hyg1.eonet.ne.jp] has joined #go-nuts
16:20 < skelterjohn> i did push an update for the "checking for changes in
pkgs in $GOROOT" issue though
16:21 < wrtp> does it do that by going from my-source-directory to $GOROOT
then?  it's a slippery slope :-)
16:21 -!- iant [~iant@nat/google/x-kyyemjrtlassxtxy] has quit [Ping timeout: 272
seconds]
16:22 < skelterjohn> no - just checks the time by calling os.Stat
16:22 < skelterjohn> i was already checking existence
16:24 < skelterjohn> heading to campus
16:24 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
16:24 < wrtp> but what if github.com/otherpackage depends on
googlecode.com/hg/yetanotherpackage and that's the one i've goinstall -u'd ?
16:26 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
16:30 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
16:33 -!- iant [~iant@nat/google/x-okhbdqhmvzlmxdbi] has joined #go-nuts
16:33 -!- mode/#go-nuts [+v iant] by ChanServ
16:34 < bXi> has there been a change regarding floats recently?
16:35 <+iant> float is gone
16:35 <+iant> also complex
16:35 <+iant> now you have to use float32/float64 and complex64/complex128
16:36 < bXi> hmm
16:38 < bXi> well the good news is that the module has been updated already
16:38 < bXi> the bad news is my git repo doesnt see that change y et
16:50 -!- mattn_jp [~mattn@112-68-77-188f1.hyg1.eonet.ne.jp] has quit [Read error:
Connection reset by peer]
16:55 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
16:57 -!- mattn_jp [~mattn@112-68-77-188f1.hyg1.eonet.ne.jp] has joined #go-nuts
16:58 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-150-206.clienti.tiscali.it] has
joined #go-nuts
17:01 -!- qjcg [~qjcg@208.88.110.46] has quit [Quit: qjcg]
17:08 -!- prip_ [~foo@host19-122-dynamic.47-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 240 seconds]
17:19 -!- cafesofie [~cafesofie@dhcp-140-254-202-115.osuwireless.ohio-state.edu]
has quit [Remote host closed the connection]
17:20 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-150-206.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
17:20 -!- prip_ [~foo@host241-124-dynamic.36-79-r.retail.telecomitalia.it] has
joined #go-nuts
17:24 -!- ProfOak_ [~profoak@c-76-29-96-30.hsd1.il.comcast.net] has joined
#go-nuts
17:24 -!- Davidian1024 [~Davidian1@cpe-174-100-42-130.neo.res.rr.com] has quit
[Ping timeout: 276 seconds]
17:26 < ProfOak_> I just installed Go on Fedora 14 (32 bit), my compiler is
8g.  When I compile, it throws an error: "can't find import: fmt".  Should I send
a bug report or is this fixable?  (If it is, how do I fix it
17:26 < ProfOak_> ?)
17:26 < taruti> ProfOak_: is $GOROOT set correctly?
17:27 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Ping
timeout: 245 seconds]
17:27 < ProfOak_> No, I haven't set any other variables
17:30 -!- wtfness [~dsc@dyn-86-36-41-116.wv.qatar.cmu.edu] has quit [Remote host
closed the connection]
17:31 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has joined
#go-nuts
17:31 < ProfOak_> taruti: Is there a tutorial somewhere that says how to do
it?  I'm on http://golang.org/doc/go_tutorial.html and it doesn't mention setting
variables.
17:32 -!- qjcg [~qjcg@208.88.110.46] has joined #go-nuts
17:32 < exch> ProfOak_: http://golang.org/doc/install.html
17:33 < ProfOak_> If it makes a difference, I set go/bin to my path variable
17:33 < ProfOak_> added go to my path variable*
17:33 < exch> http://golang.org/doc/install.html#environment <- there
17:34 < ProfOak_> Ah thank you
17:34 < exch> "The Go compilation environment can be customized by
environment variables.  None are required by the build, but you may wish to set
them to override the defaults." mm that seems wrong
17:35 < exch> considering building stuff fails if GOROOT is not set
17:36 < bXi> iant: would the old float be float32 or float64 ?
17:38 < ProfOak_> exch: I have GOROOT, GOOS, GOARCH, GOBIN set, but it's
still throwing the same error
17:40 < exch> mm that's not right
17:40 < Ina> ProfOak_, what's the value of $GOROOT, and what is the absolute
path of your go folder?
17:40 < ProfOak_> I have moved the go folder to /usr
17:40 < ProfOak_> so my goroot is /usr/go
17:41 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
17:41 < Ina> Okay.  How did you install go?
17:41 < ProfOak_> echo "Root: $GOROOT, Go OS: $GOOS, Go Arch: $GOARCH, Go
Bin: $GOBIN" yields: Root: /usr/go/, Go OS: linux, Go Arch: 386, Go Bin:
/usr/go/bin/
17:42 < ProfOak_> I pretty much copy and pasted from the install tutorial
17:42 < Ina> check /usr/go/pkg for the presence of fmt.a
17:43 -!- nettok [~quassel@200.119.170.153] has joined #go-nuts
17:43 < ProfOak_> /usr/go/pkg/linux_386/fmt.a
17:43 < bXi> i think you'll have to remake after moving
17:43 < bXi> not sure tho
17:44 < bXi> i had my goroot as /root/go
17:44 < bXi> but i moved it to /opt/go after and i couldnt get it working
untill i recompiled go
17:44 < ProfOak_> I have to do something, I'll be back in a while
17:47 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
17:50 -!- nettok_ [~quassel@200.119.169.12] has joined #go-nuts
17:51 -!- nettok [~quassel@200.119.170.153] has quit [Ping timeout: 255 seconds]
18:03 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
18:08 -!- nettok [~quassel@200.119.188.34] has joined #go-nuts
18:11 -!- nettok_ [~quassel@200.119.169.12] has quit [Ping timeout: 240 seconds]
18:18 < ProfOak_> Should fmt.a be in /go/pkg or /go/pkg/linux_386/?
18:24 <+iant> bXi: the old float was 32-bits, I think
18:24 -!- vzx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
18:24 <+iant> actually I was never entirely sure
18:24 <+iant> in gccgo it was 32-bits
18:25 < bXi> i assumed 32 bit as well
18:25 -!- vzx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
18:25 < KBme> ProfOak_: in linux_386 if it's on a 32 bit linux
18:26 < KBme> in linux_amd64 (guessing here) if it's 64 bit linux
18:26 < KBme> and i don't know for osx
18:26 < ProfOak_> KBme: so it should be in a folder called OS_architecture?
18:26 < KBme> yes
18:27 < ProfOak_> KBme: weird, it still says I can
18:27 < ProfOak_> 't find fmt.a
18:27 < KBme> maybe your GOROOT is off?
18:27 < ProfOak_> I just set it
18:27 < KBme> ProfOak_: please tell us the whole problem
18:27 -!- vzx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
18:28 < ProfOak_> KBme: Sorry, I had done so a while ago.  but...
18:28 < KBme> what you are tryiong to do, what the exact error message, what
os, what architecture, what doc you followed, what version of go?
18:28 -!- mattn_jp [~mattn@112-68-77-188f1.hyg1.eonet.ne.jp] has quit [Read error:
Connection reset by peer]
18:28 < ProfOak_> When compiling a simple "hello world!" example, it gives
me an error "Can't find import: fmt"
18:28 -!- vzx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
18:28 -!- mattn_jp [~mattn@112-68-77-188f1.hyg1.eonet.ne.jp] has joined #go-nuts
18:29 < ProfOak_> running on Fedora14, 32bit.  Compiler: 8g
18:29 < KBme> so 8g is in your path?  GOROOT is set, you did run all.bash
18:29 < KBme> ?
18:29 < ProfOak_> It's completely installed, and moved to /usr/go
18:30 < ProfOak_> http://codepad.org/kqudbJII for info of my environment
variables
18:30 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 265
seconds]
18:33 < ProfOak_> oh and /usr/go/bin was added to my $PATH variable
18:35 < nsf> ProfOak_: echo $GOROOT, what it says?
18:35 < nsf> I don't believe you that you set it correctly
18:35 < nsf> :)
18:35 < ProfOak_> nsf: it's all right here http://codepad.org/kqudbJII
18:35 -!- trochala [~trochala@46.12.89.126.dsl.dyn.forthnet.gr] has quit [Quit:
Αποχώρησε]
18:36 < nsf> ah, sorry, missed it
18:36 < ProfOak_> I think I did everything right, but I'm not really sure
what to do
18:36 < nsf> dunno, maybe you should try to remove trailing "/" from the
GOROOT
18:37 < nsf> but it is unlikely that this is the problem
18:37 < Ina> I still feel this might be relevant: <bXi> but i moved it
to /opt/go after and i couldnt get it working untill i recompiled go
18:38 < ProfOak_> Ina: So you're saying place it in the folder I want, then
compile it?
18:38 < ProfOak_> Worth a shot
18:38 < nsf> yeah, but compiler should be aware of GOROOT
18:38 < nsf> if it's not, then it's a bug
18:38 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
18:39 < ProfOak_> nsf: Well I'll try to do the move then install idea
18:39 < ProfOak_> nsf: If needed, I'll file a bug report
18:40 < ProfOak_> This will be my first bug report, hah
18:40 < nsf> but still I don't think it's a bug
18:40 < nsf> let me see the compiler source code
18:41 < nsf> interesting
18:41 < nsf> looks like compiler doesn't care about GOROOT O_o
18:41 < ProfOak_> Do you have a preferred paste page?
18:41 < nsf> pastie.org
18:41 < nsf> I grepped go/src/cmd
18:42 < nsf> no GOROOT stuff in .c files
18:42 < nsf> weird
18:42 -!- TheMue [~TheMue@p5DDF50DA.dip.t-dialin.net] has joined #go-nuts
18:42 < ProfOak_> nsf: http://pastie.org/1522518
18:42 < nsf> well, it works for me
18:42 < nsf> I think you should ask on the ML
18:42 < ProfOak_> ML?
18:43 < nsf> about building and then moving
18:43 < Ina> mailing list
18:43 < nsf> mailing list
18:43 < nsf> :D
18:43 < ProfOak_> ah
18:43 -!- JusticeFries_
[~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net] has joined #go-nuts
18:44 < nsf> because guys that are responsible for the gc compiler internals
aren't here, sadly
18:44 < nsf> and they know for sure, should go compiler be aware of GOROOT
or not
18:45 < ProfOak_> nsf: Ok, doing it now
18:45 < ProfOak_> http://groups.google.com/group/golang-nuts/post Is this
ok?
18:45 < nsf> yeah
18:47 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Ping timeout: 272 seconds]
18:47 -!- JusticeFries_
[~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net] has quit [Ping
timeout: 255 seconds]
18:48 < bXi> okay!  starting to understand it all a bit better
18:48 < bXi> now my last issue
18:48 < bXi> i have a variable that contains map[string] interface {
}{"user":"test", "pass":"test"}
18:49 -!- tvw [~tv@e176002033.adsl.alicedsl.de] has joined #go-nuts
18:49 < bXi> after using Printf("%#v", object) on it
18:49 < bXi> the only thing i dont understand yet is how i can get the
string test out of there
18:50 < nsf> object is a var of that type right?
18:50 < nsf> object["user"].(string)
18:50 -!- qjcg [~qjcg@208.88.110.46] has left #go-nuts []
18:50 < nsf> but inteface{} usage in 50% of cases is a misuse
18:50 < nsf> people tend to overuse it for some reason
18:51 < nsf> mostly python people I bet, missing their duck typing
18:52 < nsf> sorry for my rude personal opinion :)
18:52 < bXi> i never wrote more then 5 lines of python :p
18:52 < nsf> hehe, what's your primary language
18:52 < nsf> ?
18:52 < nsf> other than Go if it's Go
18:52 < bXi> i've done a lot of php and perl
18:52 < nsf> well, it's the same as python then
18:52 < nsf> duck typing
18:53 < nsf> it's not like a bad idea, but there are very little amount of
cases where it's really useful
18:53 < nsf> anyways, I don't want to teach you or something, again..  sorry
18:54 < nsf> you can cast a var of type inteface{} to its real type via type
assertion
18:54 < nsf> var x inteface{} = "123"
18:54 < nsf> var y string = x.(string)
18:54 < nsf> it's the case when you know the type
18:54 < nsf> you can check the type also
18:54 < nsf> var y, isString = x.(string)
18:55 < nsf> or simply:
18:55 < nsf> y, isString = x.(string)
18:55 < nsf> isString will be a bool
18:55 < nsf> y will be a string
18:55 < skelterjohn> i wish that the path package had a function
RelativePath(base, p), that would give me back, for instance,
RelativePath("/a/b/c", "/a/b/c/d/e") -> "d/e"
18:55 < nsf> it will be an empty string if isString is false
18:55 < bXi> shouldnt it be := in that last example?  (because your not
stating its a new var there?)
18:55 < nsf> oh, yes
18:55 < nsf> sorry
18:56 < bXi> well i've tried the object["user"].(string)
18:56 < nsf> I'm writing a lot of C code lately, so I started to forget Go
syntax :)
18:56 < nsf> and?
18:56 < bXi> server.go:111: invalid operation: data["user"] (index of type
interface { })
18:56 < bXi> data being object
18:56 < nsf> well, ok
18:56 < nsf> data is inteface{}
18:56 < nsf> but you were talking about the map
18:56 -!- photron [~photron@port-92-201-246-84.dynamic.qsc.de] has joined #go-nuts
18:56 < nsf> I thought data is:
18:56 < nsf> var data map[string]inteface{}
18:57 < skelterjohn> data.(map[string]interface{})["user"].(string)
18:57 < skelterjohn> :)
18:57 < nsf> no no
18:57 < nsf> I think it's no the case
18:57 < nsf> not*
18:57 < nsf> because that would be simply stupid
18:57 < skelterjohn> if his compile error states that data is of type
interface{}
18:57 < skelterjohn> it would be silly to do that, yes
18:57 < nsf> I think data is a value from the map
18:57 < nsf> if so, then simply: data.(string)
18:58 < nsf> bXi: a code snippet would help
18:58 < nsf> us to understand you
18:58 < nsf> and what you want
18:58 < bXi> making one as we speak
18:58 < nsf> :D
18:59 < bXi> http://bluepunk.pastebin.com/6Uwkk606
19:00 < bXi> i hope it makes enough sense this way
19:00 < nsf> ah I see
19:00 < nsf> then actually skelterjohn's variant was correct
19:00 < nsf> :)
19:00 < skelterjohn> but still silly
19:00 < skelterjohn> you shouldn't write the line i did
19:00 < nsf> data.(map[string]interface{})["user"].(string)
19:00 < nsf> that one
19:00 < nsf> but yeah
19:00 < nsf> something is wrong though
19:00 < nsf> I think your var should have different type
19:01 < nsf> like map[string]interface{}
19:01 < nsf> I mean 'data'
19:01 < bXi> the examples i found concering json.Unmarshal all mentioned
making a struct that looked like the data comming from my json string
19:02 < bXi> oh my
19:02 < bXi> that actually works
19:02 < ProfOak_> nsf: Is this ok?
http://groups.google.com/group/golang-nuts/browse_thread/thread/2756a842e75242d0
19:03 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit
[Disconnected by services]
19:03 < bXi> now i wont need the .(string) either
19:03 < nsf> ProfOak_: sure, but emphasizing that you've moved the tree
would help
19:04 < nsf> bXi: you don't need the .(string) because Printf converts it
back to interface{}
19:04 < nsf> but if you really want a string var, you need that
19:04 < bXi> ah so if i where to do something like user = data["user"] i'd
actually need the .(string)
19:04 < nsf> yes
19:04 < nsf> if user is: var user string
19:05 -!- erus_ [5687a2d9@gateway/web/freenode/ip.86.135.162.217] has joined
#go-nuts
19:05 < nsf> but actually using struct (as you've mentioned about examples)
is a better idea
19:05 < nsf> data structures are fixed almost all the time anyway
19:06 < nsf> if not, they have a flexible data structure, like array or map
19:06 < nsf> you should try to avoid using interface{}
19:06 < nsf> that's my imho
19:06 < nsf> but frankly this is what types in languages are about
19:06 < plexdev> http://is.gd/ZgSLUy by [Robert Griesemer] in go/doc/ --
Effective Go: fix typo
19:07 < bXi> i just need to learn a lot about typing
19:07 < nsf> yeah, that would be reasonable thing to do
19:08 < bXi> i have this book by dennis ritchie which seems like a good read
about C basics
19:08 < erus_> skelterjohn: I see you fixed CopyTheHardWay whilst i was on
holiday :) I was gonna submit a patch today
19:08 < nsf> well, C is perfect for that, because it doesn't have duck typed
types
19:08 < nsf> but learning it will take 2-5 years
19:08 < nsf> :)
19:08 < skelterjohn> ah - yes and i made a github project, too
19:08 < skelterjohn> i've been doing a lot of work on gb lately, and i have
a lot more to do now that i've gotten some feedback from wrtp
19:09 < erus_> I forked it :)
19:09 < skelterjohn> oh - was that you who did the windows build script?
19:09 < skelterjohn> people have too many internet aliases :)
19:09 < erus_> yup
19:09 < skelterjohn> i pulled your fork back in
19:09 < skelterjohn> if that's the right way to describe what i did
19:10 < skelterjohn> not super experienced with git
19:10 < skelterjohn> but github had some instructions on how to merge, and i
followed them
19:11 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:ec4c:44bf:6a9:a9a7] has joined
#go-nuts
19:11 < nsf> bXi: although learning some kind of a language that doesn't do
implicit type conversions would help too, afair ruby is that kind of language
19:11 < nsf> and I have no idea about php and perl, just don't remember that
19:12 -!- virtualsue [~chatzilla@nat/cisco/x-wloefsrufzvrkcst] has quit [Ping
timeout: 265 seconds]
19:12 < nsf> but lack of implicit type conversions means you have to think
about types even if you're not specifying them explicitly
19:12 < nsf> that's a good start
19:12 < nsf> :D
19:12 < nsf> or just learn Go, whatever
19:13 < nsf> understanding is achievable with anything basically
19:13 < nsf> :D
19:13 < nsf> just takes time
19:13 -!- erus_ [5687a2d9@gateway/web/freenode/ip.86.135.162.217] has quit [Ping
timeout: 240 seconds]
19:14 -!- dforsyth_ [~dforsyth@bastion.inap.yelpcorp.com] has joined #go-nuts
19:16 < bXi> well in PHP you can specify a type
19:16 < bXi> typecasting i think its called
19:16 < bXi> "string"(float) == 0
19:16 -!- mattn_jp [~mattn@112-68-77-188f1.hyg1.eonet.ne.jp] has quit [Read error:
Connection reset by peer]
19:16 < nsf> I would say it's an explicit type conversion
19:16 < temoto> Cast string to float is nonsense.
19:16 < nsf> because having ones makes sense actually
19:17 < nsf> temoto: it's not a cast, it's a conversion
19:17 < bXi> well it depends
19:17 < bXi> "1.23"(float) would make sense
19:17 < temoto> "string"(float) == 0 is nonsense still.
19:17 < nsf> that's actually the main difference between say C programmers
and PHP/Perl/Python programmers
19:18 < nsf> one of the first C programmer questions is: how can I convert
string to an int
19:18 < nsf> or vice versa
19:18 < nsf> :D
19:18 < bXi> oh wait i think it would return 1 instead of 0
19:18 < temoto> Python has strong typing too.
19:18 < temoto> fortunately
19:18 < nsf> hm..
19:18 < Namegduf> Python has strong typing but everything's a void*
19:18 < nsf> anyways, I'm a bad teacher anyway
19:18 < temoto> PHP/Perl/Javascript - yes.
19:19 < Namegduf> Similar to using interface{} for everything in Go.
19:19 < Namegduf> And letting + work at runtime if they're both numeric
types using reflection.
19:19 < nsf> but it's clear that language affects the way you thing about
data and code
19:19 < nsf> usually data is more important though
19:19 < nsf> think*
19:19 < temoto> Yes, it does affect a lot.
19:20 < temoto> That's why learning many different languages is vital.
19:20 < temoto> Unbinds you from one set of stereotypes.
19:20 < bXi> hmm
19:20 < Namegduf> I tend to think that knowing more or less about how types
are actually implemented is more influential on the data thing
19:21 < Namegduf> But still, more languages more different from each other
is good.
19:21 < bXi> if i create a var outside of any function should i be able to
call that variable from anywhere?
19:21 < nsf> and different ones, like low level (C/C++/asm/Pascal), high
level (php/perl/ruby/python), managed (C#/D/Go/Java), weird (Haskell, etc.)
19:21 < nsf> :D
19:21 < Namegduf> Access that variable.  And yes, from anywhere within the
package.
19:21 < Namegduf> If its first letter is capitalised, then from outside the
package as well, using pkg.Varname
19:22 -!- keithcascio [~keithcasc@nat/google/x-aqfbsywqwtenlibk] has joined
#go-nuts
19:22 < bXi> okay that makes sense
19:22 < Namegduf> Bear in mind that code using package-scope variables is
non-reentrant and it's generally bad stylistically.
19:22 < bXi> and that works trough several layers of functions?
19:23 < Namegduf> I'm not sure what you mean by "through several layers of
functions".
19:23 < ProfOak_> nsf: Ok so I moved it then compiled it and it works...
and now to be embarrassed on the google groups.  ):
19:23 < Namegduf> A given function can access variables based on which
package it is in, regardless of who or what is calling it.
19:23 < bXi> main() calls func1() which calls func2() which calls func3()
and func3 wants one of the global vars
19:23 < nsf> ProfOak_: you shouldn't be embarrassed, because my opinion is
that Go compiler should be aware of GOROOT
19:23 < nsf> and compilation place only sets default GOROOT
19:24 < Namegduf> Compiling GOROOT in actually would make sense.
19:24 < nsf> Namegduf: it is compiled in
19:24 < nsf> but compiler should check for GOROOT env var as well
19:24 < Namegduf> Ah.
19:24 < nsf> it doesn't as far as I can say
19:24 < ProfOak_> nsf: I just also read in the install tutorial that I
should have set $GOROOT_FINAL to my go root
19:25 < temoto> bXi, you can just access global variables.  It doesn't
matter how long is call stack.
19:25 < nsf> at least "grep -r GOROOT *" in go/src/cmd
19:25 < ProfOak_> http://golang.org/doc/install.html
19:25 < nsf> shows nothing
19:25 < Namegduf> bXi: func3's ability to access stuff is unrelated to who
calls it.
19:25 < nsf> FINAL, what a nonsense, never heard about that
19:25 < nsf> :D
19:25 < bXi> and whatever type of variable i think of shouldnt matter either
right?
19:26 < nsf> ProfOak_: well, indeed
19:26 < Namegduf> Type doesn't affect scope, no.
19:26 < nsf> but I think go devs are bad at orginizing things
19:26 < nsf> complaining about it may help
19:26 < nsf> :D
19:26 < bXi> then i'm fairly sure that i've broken something horribly here
19:27 < temoto> I think the very existence of $GOROOT proves that they are,
instead, good at organizing things.
19:27 < nsf> but now there is GOROOT_FINAL too
19:27 < Namegduf> Cut it down to a minimal example until it makes sense; if
it can't be simplified any more and you still don't get it, pastebin.
19:27 < nsf> wtf, one is not enough?
19:27 < nsf> GOROOT_REALLY_FINAL
19:27 < temoto> You don't have to use it, right?
19:28 < Namegduf> GOROOT_FINAL looks like an installation tool
19:28 < ProfOak_> temoto: you do if you change the compiled go tree
19:28 < Namegduf> Not something to be set for general usage
19:28 < nsf> I don't have to use go compiler too
19:28 < temoto> exactly
19:28 < Namegduf> No, you don't.
19:28 < nsf> hopefully gccgo will be in a usable state soon
19:28 < ProfOak_> Which one yields more optimized code currently?
19:28 < Namegduf> Thread-per-goroutine makes programs sad.
19:29 < nsf> ProfOak_: both are ok, the main difference in runtime
19:29 < bXi> http://bluepunk.pastebin.com/t2Yhgbg8 (using Philio/GoMySQL)
19:29 < nsf> as far as I know gccgo is missing scheduler
19:29 < Namegduf> Gccgo is better at optimising in general but uses a thread
per goroutine, which will make a lot of code in Go using goroutines idiomatically
(i.e.  generously) slow
19:29 < nsf> and nice goroutines impl
19:29 < bXi> by the time i'm trying to run the query it complains that there
is no mysql connection
19:30 < ProfOak_> Well, it's still pretty young.  What I'd like to see, as
it matures, is to overthrow Java in making Android apps.
19:30 < temoto> I hope it will replace javascript in browsers.
19:30 < ProfOak_> temoto: Why's that?
19:30 < bXi> ooh crap forgot to call openDatabaseConnection() from main()
19:30 < Namegduf> I think Go would make a good phone app language, but
missed the big chance.  Safe, but actually reasonably efficient on what is an
embedded platform.
19:31 < nsf> I hope nativeclient will replace javascript in browsers
19:31 < temoto> ProfOak_, because js is a piece of crap.
19:31 < ProfOak_> temoto: I never had any experience with it, so I wouldn't
know
19:31 < nsf> and Go can easily target nativeclient
19:31 -!- maattd [~maattd@78.245.92.71] has joined #go-nuts
19:31 < nsf> as it was before
19:31 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
19:32 < temoto> nativeclient seems very C++ oriented
19:32 < nsf> temoto: no
19:32 < Namegduf> You could probably compile Go to C++.
19:32 -!- ddoman31 [~root@24.83.96.98] has quit [Ping timeout: 240 seconds]
19:32 < Namegduf> Or close to, anyway.
19:32 < nsf> nativeclient is a technology in the first place
19:32 -!- ddoman31 [~root@24.83.96.98] has joined #go-nuts
19:32 < nsf> of having safe binaries and executing them in a safe manner
19:32 < nsf> a lot of it implemented in C++
19:32 < nsf> but it uses C API
19:33 < temoto> okay
19:33 < nsf> so called NPAPI
19:33 < nsf> netscape plugin api
19:33 < nsf> so..  bascially you write a browser plugin
19:33 < nsf> that can be executed safely in a browser
19:34 < nsf> without dealing with "trust" issues or whatever
19:34 < nsf> even though I don't like NPAPI, the technology is promising
19:34 < nsf> :D
19:39 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:39 -!- zozoR2 [~zozoR@56347ac9.rev.stofanet.dk] has joined #go-nuts
19:40 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
19:43 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
#go-nuts
19:44 -!- CrazyThinker [~CrazyThin@unaffiliated/mosva] has quit [Read error:
Connection reset by peer]
19:44 -!- CrazyThinker [~CrazyThin@unaffiliated/mosva] has joined #go-nuts
19:45 -!- artefon [~thiago@189.115.129.243] has quit [Quit: bye]
19:45 -!- gits [~gits@77.94.219.158] has joined #go-nuts
19:46 -!- boscop [~boscop@f055073148.adsl.alicedsl.de] has joined #go-nuts
19:50 -!- zozoR2 [~zozoR@56347ac9.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
19:52 -!- cafesofie [~cafesofie@rnwifi-164-107-93-240.resnet.ohio-state.edu] has
joined #go-nuts
19:53 -!- zozoR2 [~zozoR@56347ac9.rev.stofanet.dk] has joined #go-nuts
19:54 -!- JusticeFries [~JusticeFr@88.sub-75-196-174.myvzw.com] has joined
#go-nuts
19:58 -!- illya77 [~illya77@30-54-133-95.pool.ukrtel.net] has joined #go-nuts
19:59 < bXi> i effing love go
20:00 -!- zozoR2 [~zozoR@56347ac9.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
20:05 < ProfOak_> So I just made a small python script (because I'm not as
good at bash) to just automate compiling and linking.  If you want to, you can add
some sort of command line functionality.
20:05 < jumzi> what w8?
20:06 < jumzi> Ah, i suppose you can go about it that way too, i'm just i
kind of make guy
20:06 < jumzi> or rather mk
20:06 < ProfOak_> Anything works :D
20:07 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
20:12 -!- elimisteve [~elimistev@ip98-185-213-155.sb.sd.cox.net] has joined
#go-nuts
20:13 < skelterjohn> ProfOak_: i've been working on a build tool to help out
with this - go-gb.googlecode.com
20:18 -!- arexus [~andrew@c-98-207-173-169.hsd1.ca.comcast.net] has joined
#go-nuts
20:18 -!- elimisteve [~elimistev@ip98-185-213-155.sb.sd.cox.net] has quit [Ping
timeout: 272 seconds]
20:19 -!- JusticeFries [~JusticeFr@88.sub-75-196-174.myvzw.com] has quit [Read
error: Connection reset by peer]
20:19 -!- wmat [~btraynor@gromit.mixdown.ca] has joined #go-nuts
20:20 < arexus> Does anyone know of a README to get the WindowsPort
devlopment enviornment setup and working?
20:30 -!- JusticeFries [~JusticeFr@26.sub-75-196-169.myvzw.com] has joined
#go-nuts
20:31 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Read error: Operation
timed out]
20:31 -!- DerHorst [~Horst@e176102020.adsl.alicedsl.de] has quit [Remote host
closed the connection]
20:31 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has quit [Read
error: Operation timed out]
20:31 -!- elimisteve [~elimistev@pool-71-102-138-52.snloca.dsl-w.verizon.net] has
joined #go-nuts
20:33 -!- Zoopee [alsbergt@zoopee.org] has quit [Quit: Ejected]
20:34 -!- tav [~tav@92.7.116.65] has quit [Ping timeout: 240 seconds]
20:35 -!- tav [~tav@92.7.116.65] has joined #go-nuts
20:35 -!- jnwhiteh [~jnwhiteh@WoWUIDev/WoWI/Featured/Dongle/cladhaire] has quit
[Ping timeout: 250 seconds]
20:35 -!- illya77 [~illya77@30-54-133-95.pool.ukrtel.net] has quit [Quit: illya77]
20:35 < arexus> I have tried using the prebuilt windows package and mingw, I
run into problems with go use $(GOROOT) in there Makefiles.  This causes mingw and
cygwin to attempt to execute GOROOT (ie: $(pwd) would return pwd), however if
${GOROOT} was used insead the correct path would be used
20:35 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts
20:35 -!- niekie [quasselcor@CAcert/Assurer/niekie] has joined #go-nuts
20:36 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
20:36 -!- AndyP [~andyp@ubuntu/member/andyp] has quit [Ping timeout: 276 seconds]
20:36 -!- Fish- [~Fish@88.162.170.133] has joined #go-nuts
20:36 -!- jnwhiteh [~jnwhiteh@WoWUIDev/WoWI/Featured/Dongle/cladhaire] has joined
#go-nuts
20:40 < plexdev> http://is.gd/FpokDm by [Russ Cox] in go/src/pkg/runtime/ --
runtime: correct runtime.GOOS, runtime.GOARCH
20:40 < plexdev> http://is.gd/o461Eg by [Rob Pike] in go/src/pkg/fmt/ --
fmt.Scan: scan binary-exponent floating format, 2.4p-3
20:41 -!- HT [~ht@ip3e83ff64.speed.planet.nl] has joined #go-nuts
20:43 -!- AndyP [~andyp@ubuntu/member/andyp] has joined #go-nuts
20:45 -!- Fish- [~Fish@88.162.170.133] has quit [Ping timeout: 240 seconds]
20:46 < HT> IS
20:46 < HT> Is there a GUI toolkit I can use?
20:46 -!- cbeck1 [cbeck@gateway/shell/pdx.edu/x-swxaslnlmfnnhoqf] has quit [Read
error: Connection reset by peer]
20:47 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has quit [Read
error: Operation timed out]
20:47 -!- cbeck1 [cbeck@gateway/shell/pdx.edu/x-gpvocrtvmweeafrh] has joined
#go-nuts
20:48 < HT> I found a gtk one, but was wondering if there are others
20:48 -!- erus_ [5687a2d9@gateway/web/freenode/ip.86.135.162.217] has joined
#go-nuts
20:49 < HT> And if there are, what has the most change of becomming the
go-to GUI toolkit in the go-world?
20:49 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
20:49 -!- Zoopee [alsbergt@zoopee.org] has quit [Quit: Ejected]
20:49 -!- itrekkie_ [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
20:50 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts
20:52 -!- JusticeFries [~JusticeFr@26.sub-75-196-169.myvzw.com] has quit [Quit:
JusticeFries]
20:52 -!- kavalg [~chatzilla@82.137.109.1] has joined #go-nuts
20:54 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
20:55 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has quit [Quit:
KBme kthxbye]
20:55 < kavalg> Hi, I've just pulled the latest revision (53791c69fc6f) and
tried to build it on ubuntu 32bit, but it failed with 34 unexpected bugs
20:55 < kavalg> the central build on linux 386 is reported as successful
20:56 < kavalg> anyone got the same problem?
20:59 < kavalg> http://pastie.org/1523013
21:00 < Namegduf> Wow.
21:00 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
21:01 < cbeck> kavalg: Are you sure you cleaned out all old binaries and
libs?
21:02 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
21:03 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
21:06 -!- gits [~gits@77.94.219.158] has quit [Remote host closed the connection]
21:07 < kavalg> yes, I deleted the whole ~/go dir
21:07 < kavalg> first I tried to update with : hg update release
21:08 < kavalg> when that failed I deleted everything and did a clean
install
21:08 < kavalg> same failure
21:10 < homa_rano> are the algorithms in test/bench fixed?
21:10 < homa_rano> I have a 2x speedup in pidigits with a different
algorithm
21:12 < bfrank> go compiles fine on ubuntu for me
21:13 < kavalg> which version do you have?
21:13 < bfrank> 10.10
21:13 < bfrank> compiling the latest changes now, to be sure
21:14 < bfrank> finished
21:14 < bfrank> compiled fine
21:16 < kavalg> hmm, mine is Ubuntu 10.04.1 LTS
21:16 < bfrank> I see the latest revision as 7332:e389f2d670be
21:18 < kavalg> it is already 7332:e389f2d670be indeed
21:18 < kavalg> let me try this one
21:18 < bfrank> prob won't make much difference, but you could try it
21:18 < bfrank> sounds like you have other problems
21:18 -!- Nitro [~Nitro@unaffiliated/nitro] has joined #go-nuts
21:20 -!- cenuij [~cenuij@78.122.228.32] has joined #go-nuts
21:20 -!- cenuij [~cenuij@78.122.228.32] has quit [Changing host]
21:20 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
21:21 < kavalg> any idea what these problems might be?
21:25 < kavalg> yep, failed again with 34 unexpected bugs
21:33 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has quit [Read
error: Operation timed out]
21:34 < niemeyer> kavalg: You seem to have an old tree
21:34 < niemeyer> kavalg: > fixedbugs/bug109.go:12: cannot use e (type
float) as type float64 in return argument
21:34 < niemeyer> kavalg: There's no type float anymore
21:34 < niemeyer> kavalg: For a couple of releases
21:35 < kavalg> I am sure I deleted the go directory, so it must be
mercurial playing strangely
21:36 < kavalg> ~/go/src$ hg summary
21:36 < kavalg> parent: 7332:e389f2d670be tip
21:36 < kavalg> mercurial says the revision is right, but maybe the file
content isn't
21:37 < Venom_X> I have that problem aswell
21:37 -!- artefon [~thiago@189.115.129.243] has joined #go-nuts
21:37 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
21:39 < homa_rano> I had a similar problem, manually nuking $GOROOT/bin
solved it
21:40 < homa_rano> otherwise check that `which [568]g` is updated when you
make
21:41 -!- ProfOak_ [~profoak@c-76-29-96-30.hsd1.il.comcast.net] has quit [Quit:
Leaving]
21:41 < plexdev> http://is.gd/x07l2H by [Russ Cox] in go/lib/codereview/ --
codereview: record repository, base revision
21:42 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
21:42 < kavalg> niemeyer: I checked the bug109.go and have an old tree
21:44 < kavalg> I mean the file bug109.go seems identical with the repo.  Do
you have an idea which one I should check to confirm that it is an old tree
21:44 < niemeyer> kavalg: Well, do you have an old tree or a new tree?
21:45 < kavalg> that's what I am trying to determine
21:45 < skelterjohn> why not just nuke $GOROOT and start over?
21:45 < niemeyer> kavalg: Sorry, what did you mean with you -3 sentence?
:-)
21:45 < kavalg> and in order to do so, I wanted to check the content of the
file that is suspected of being stale
21:45 < kavalg> @skelterjohn - I did this several times already
21:45 -!- TheMue [~TheMue@p5DDF50DA.dip.t-dialin.net] has quit [Quit: TheMue]
21:46 < skelterjohn> what command line are you using to check it out, then?
21:46 < kavalg> hg clone -r release https://go.googlecode.com/hg/ go
21:46 < kavalg> as it says on the install guide here:
http://golang.org/doc/install.html
21:47 < kavalg> I also tried without specifying the -r release to get the
latest
21:47 < kavalg> the result was the same
21:49 < niemeyer> kavalg: I repeat..  type float is *gone*..
21:50 < niemeyer> kavalg: If you are getting that error message, the tree is
broken
21:50 < skelterjohn> kavalg: i update with "hg pull -u", try that?
21:50 -!- HT [~ht@ip3e83ff64.speed.planet.nl] has left #go-nuts ["Konversation
terminated!"]
21:51 < kavalg> ok, I will give hg pull -u a try
21:53 < skelterjohn> so, i wonder why we get rid of float but keep int?
21:55 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
21:55 < kavalg> I got the same 34 unexpected bugs
21:55 < kavalg> I guess today's not my lucky day.  I will try tomorrow or
maybe on another machine
21:56 < kavalg> I am pretty sure it is a mercurial issue, but I still don't
know how to prove it
21:56 < niemeyer> kavalg: What "which 8g" returns?
21:57 < skelterjohn> ah good catch
21:57 < skelterjohn> that has tripped me up in the past
21:57 < kavalg> "/usr/local/bin/8g"
21:57 < skelterjohn> when you run all.bash, in builds to $GOBIN
21:57 < skelterjohn> you should delete all the go tools in /usr/local/bin
21:58 < kavalg> what I do is hg clone in my home directory, then I cd go/src
and ./all.bash
21:58 < plexdev> http://is.gd/0zd9Ca by [Robert Griesemer] in 2 subdirs of
go/src/pkg/ -- io: rename interfaces
21:58 < plexdev> http://is.gd/fUrjCN by [Russ Cox] in 3 subdirs of
go/src/pkg/runtime/ -- runtime: more detailed panic traces, line number work
21:59 < skelterjohn> right, sometime in the past they got put in
/usr/local/bin accidentally
21:59 < skelterjohn> maybe all.bash used to do something different
21:59 < kavalg> btw how did 8g get in /usr/local/bin if I've always had the
build running without root privileges?
21:59 < skelterjohn> good question
21:59 < skelterjohn> i have no answer
22:00 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:ec4c:44bf:6a9:a9a7] has quit
[Quit: Leaving.]
22:00 < kavalg> ok I will delete 8g from /usr/local/bin and I will try again
22:00 < skelterjohn> 8l too
22:00 < skelterjohn> basically, anything that appears in $GOBIN
22:01 < mpl> if I'm making a writer that outputs more than it is fed, like a
compressor, what's the reasonable n to return then?  the number fed, the number
actually written, else?
22:02 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Max
SendQ exceeded]
22:03 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
#go-nuts
22:03 -!- ExtraSpice [~XtraSpice@88.118.33.48] has quit [Read error: Connection
reset by peer]
22:04 < exch> Write() returns the amount written
22:05 < exch> in most of the Write() implementations I've seen so far
anyways
22:05 -!- photron [~photron@port-92-201-246-84.dynamic.qsc.de] has quit [Ping
timeout: 255 seconds]
22:05 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
22:08 < mpl> exch: is this a requirement for n to be the correct amount, or
is it ok to be whatever I want as long as it's documented you think?
22:09 < skelterjohn> http://golang.org/pkg/io/#Writer
22:09 < skelterjohn> "It returns the number of bytes written from p (0 <=
n <= len(p))"
22:10 < kavalg> deleting everything go-related from /usr/local/bin solved
the problem with the broken build
22:10 < kavalg> thanks :)
22:10 < mpl> well that's for io, it's not authoritative for any Writer
implementation, is it?
22:11 < skelterjohn> kavalg: good!
22:11 < exch> not a golden rule, but people will expect it to behave that
way.  if n is unreliable, why return it at all?
22:11 < mpl> exch: because if you don't return it at all, it's not a writer
anymore.
22:11 < exch> true
22:12 < exch> If you really can't get it to be reliable, then prolly just
return 0 all the time and make it clear in the docs that this is intended
behaviour
22:13 < mpl> ok, I'll see what I can do, thx.
22:14 < niemeyer> <niemeyer> kavalg: What "which 8g" returns?
22:14 < niemeyer> kavalg: That's why I asked :)
22:15 < kavalg> that was cool.  Thanks once again :)
22:15 < niemeyer> kavalg: Lots of very weird issues happen when the path is
mixed up
22:15 < niemeyer> and it's not so uncommon
22:17 < niemeyer> I once spent a while debugging something that made
absolutely no sense with Python, and then I finally figured that PYTHONPATH was
set to a different branch of the same project
22:17 < niemeyer> It's absolutely frustrating..  :)
22:19 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
22:19 < kavalg> happened to me many times with Java, when the classpath was
messed up :)
22:20 -!- emjayess [~emjayess@pix1.i29.net] has quit [Ping timeout: 240 seconds]
22:21 < kavalg> it's rather late here in eastern europe now and I've got to
leave.  Thanks for all your help :)
22:23 < niemeyer> kavalg: No problem, glad it was helpful
22:27 -!- kavalg [~chatzilla@82.137.109.1] has quit [Quit: ChatZilla 0.9.86
[Firefox 3.6.13/20101206122310]]
22:30 -!- sauerbraten [~sauerbrat@p508CFD94.dip.t-dialin.net] has quit [Remote
host closed the connection]
22:30 -!- davisp [~davisp@couchdb/developer/davisp] has joined #go-nuts
22:31 -!- ddoman31 [~root@24.83.96.98] has quit [Ping timeout: 265 seconds]
22:33 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
22:33 -!- ddoman31 [~root@24.83.96.98] has joined #go-nuts
22:36 -!- amacleod [~amacleod@pool-96-252-93-11.bstnma.fios.verizon.net] has
joined #go-nuts
22:37 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
22:42 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Ping
timeout: 245 seconds]
22:49 -!- imsplitbit [~imsplitbi@64.39.4.132] has quit [Quit: Bye!]
22:54 -!- donflamenco [42ec081e@gateway/web/freenode/ip.66.236.8.30] has joined
#go-nuts
22:58 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
23:00 -!- erus_ [5687a2d9@gateway/web/freenode/ip.86.135.162.217] has quit [Ping
timeout: 240 seconds]
23:00 < plexdev> http://is.gd/HSDrtD by [Robert Griesemer] in
go/src/pkg/fmt/ -- fmt: rename internal interfaces
23:06 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
23:06 -!- donflamenco [42ec081e@gateway/web/freenode/ip.66.236.8.30] has quit
[Quit: Page closed]
23:16 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
23:18 -!- maattd [~maattd@78.245.92.71] has quit [Quit: Computer has gone to
sleep.]
23:18 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
23:25 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
23:25 -!- jbooth1 [~jay@209.249.216.2] has quit [Quit: Leaving.]
23:31 -!- Nitro [~Nitro@unaffiliated/nitro] has quit [Quit: This computer has gone
to sleep]
23:33 -!- soapy_illusions [~soapy_ill@modemcable005.105-177-173.mc.videotron.ca]
has joined #go-nuts
23:34 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has quit
[Ping timeout: 240 seconds]
23:36 -!- franksalim [~frank@99-123-6-19.lightspeed.sntcca.sbcglobal.net] has
joined #go-nuts
23:36 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
23:38 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
23:39 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has joined
#go-nuts
23:39 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has left
#go-nuts []
23:43 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
23:44 -!- artefon [~thiago@189.115.129.243] has quit [Quit: bye]
23:46 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has quit [Ping timeout: 250
seconds]
23:47 < plexdev> http://is.gd/PsA3ym by [Russ Cox] in 2 subdirs of go/ --
gc: select receive bug fix
23:48 -!- cafesofie [~cafesofie@rnwifi-164-107-93-240.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
23:56 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
23:58 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
--- Log closed Thu Feb 03 00:00:05 2011