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

--- Log opened Sat Jun 12 00:00:10 2010
00:11 -!- iant [~iant@nat/google/x-mwubchlfxnffvmjf] has quit [Ping timeout: 264
seconds]
00:16 -!- qIIp [~qIIp@72-173-156-132.cust.wildblue.net] has joined #go-nuts
00:17 < steven_t> what advantages does go have over, say, python?
00:17 < steven_t> all the ones i know of is speed and concurrency
00:17 -!- qIIp [~qIIp@72-173-156-132.cust.wildblue.net] has quit [Read error:
Connection reset by peer]
00:18 < smw> steven_t, that is all I can think of
00:18 < smw> it gives static binaries
00:19 < smw> a user can not read the source
00:19 -!- iant [~iant@nat/google/x-quunalcmirlrylvd] has joined #go-nuts
00:19 -!- mode/#go-nuts [+v iant] by ChanServ
00:20 < steven_t> they can read the assembly ;)
00:22 -!- qIIp [~qIIp@72-173-156-132.cust.wildblue.net] has joined #go-nuts
00:22 < photron> go is compiled, so you get stuff like type safety checked
at compile time
00:25 -!- MariusKarthaus [~quassel@s5593c029.adsl.wanadoo.nl] has quit [Remote
host closed the connection]
00:25 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 245 seconds]
00:25 < steven_t> im not sure i see that as an advantage.
00:26 < steven_t> i like to play my types fast and loose.
00:26 < smw> steven_t, there are advantages to both
00:26 < steven_t> whats the advantage to compile-time type safety?
00:27 < smw> um, lack of random panics due to type errors not good enough?
00:30 < steven_t> ive programmed in objc and python.  i much prefer pythons
runtime-complaining than objcs compile-time warning
00:31 < photron> steven_t: a type error is a type error.  with go the
compiler will tell you, with python a user of a program will tell you, because
your test suite doesn't have 100% coverage and the user manages to hit some
branches you never exectuted
00:31 < photron> just as an example
00:31 < photron> s/user of a program/user of your program/
00:31 < smw> photron, that is a great way of explaining it.
00:32 < photron> thats why you should do serious programming in python with
a test driven approach
00:33 < photron> on the other hand proper test driven programming has more
advantages than compile-time type safety
00:34 -!- iant [~iant@nat/google/x-quunalcmirlrylvd] has quit [Ping timeout: 276
seconds]
00:34 < Namegduf> You speak as if they're somehow conflicting
00:35 < photron> they aren't
00:38 -!- tvw [~tv@e176007115.adsl.alicedsl.de] has quit [Read error: Connection
reset by peer]
00:38 < photron> all i want to say is that compile-time type safety is nice
to have
00:39 -!- mikespook [~mikespook@58.61.205.118] has joined #go-nuts
00:39 < photron> and that its more work to achieve the same thing in python
00:39 -!- skelterjohn [~jasmuth@c-76-124-45-65.hsd1.nj.comcast.net] has joined
#go-nuts
00:42 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
00:42 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Disconnected by
services]
00:42 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
00:47 -!- Dunkelstern [~Dunkelste@2a00:1328:e1ca:243:20a:e4ff:fef7:2490] has quit
[Remote host closed the connection]
00:50 -!- alexbobP [~alex@ppp-70-253-77-16.dsl.austtx.swbell.net] has joined
#go-nuts
00:52 -!- tux21b [~christoph@90.146.60.30] has quit [Quit: exit(EXIT_SUCCESS);]
00:59 < steven_t> well,
00:59 < steven_t> ok i guess i like that.
01:00 -!- iant [~iant@m3e0536d0.tmodns.net] has joined #go-nuts
01:00 -!- mode/#go-nuts [+v iant] by ChanServ
01:01 < steven_t> does go have a c-like argument passing style for
functions?
01:01 < steven_t> i really dig python's style
01:01 < steven_t> especially the ability to pass in arrays and dicts to act
as natural args
01:02 < pizza_> oh, so you love python?  great.
01:04 < steven_t> im just curious if go has this feature
01:04 < steven_t> no need to be sarcastic :(
01:04 <+iant> no
01:09 < steven_t> thanks
01:14 -!- photron [~photron@port-92-201-100-145.dynamic.qsc.de] has quit [Ping
timeout: 258 seconds]
01:14 -!- steven_t [~steven@unaffiliated/steven] has left #go-nuts []
01:22 -!- rejb [~rejb@unaffiliated/rejb] has quit [Quit: .]
01:42 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Quit:
slashus2]
01:47 -!- iant [~iant@m3e0536d0.tmodns.net] has quit [Read error: Connection reset
by peer]
01:54 -!- dwanderer [~facemelte@0x535dcce9.hgnxx2.dynamic.dsl.tele.dk] has quit
[Quit: leaving]
02:22 -!- skelterjohn [~jasmuth@c-76-124-45-65.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
02:23 -!- qIIp [~qIIp@72-173-156-132.cust.wildblue.net] has quit [Quit: leaving]
02:26 -!- noam [~noam@77.127.206.19] has joined #go-nuts
02:26 -!- noam_ [~noam@77.127.206.19] has quit [Ping timeout: 258 seconds]
02:28 -!- skelterjohn [~jasmuth@c-76-124-45-65.hsd1.nj.comcast.net] has joined
#go-nuts
02:40 -!- ender2070 [~ender2070@bas22-toronto12-2925103372.dsl.bell.ca] has joined
#go-nuts
02:52 -!- noam_ [~noam@77.127.206.19] has joined #go-nuts
02:55 -!- noam [~noam@77.127.206.19] has quit [Ping timeout: 260 seconds]
02:57 -!- skelterjohn [~jasmuth@c-76-124-45-65.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
02:59 -!- alexbobP [~alex@ppp-70-253-77-16.dsl.austtx.swbell.net] has quit [Quit:
leaving]
03:02 -!- ender2070 [~ender2070@bas22-toronto12-2925103372.dsl.bell.ca] has quit
[Remote host closed the connection]
03:05 -!- kanru [~kanru@61-228-154-61.dynamic.hinet.net] has joined #go-nuts
03:11 -!- ekontsevoy [~ekontsevo@209.20.66.251] has joined #go-nuts
03:12 < ekontsevoy> Can I use Go to build extensions for Python or Ruby?
03:22 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout:
615 seconds]
03:23 < rsaarelm> ekontsevoy: I don't think so.
03:23 < rsaarelm> You'd probably need to call Go from C for that to work,
and call Go from C isn't working yet.
03:26 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
03:26 -!- mode/#go-nuts [+v iant] by ChanServ
03:27 -!- Netsplit *.net <-> *.split quits: noam_, mulander, felipe,
pjm0616, [Pete_27]
03:27 -!- adu [~ajr@pool-71-191-173-118.washdc.fios.verizon.net] has joined
#go-nuts
03:31 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined
#go-nuts
03:36 -!- Netsplit over, joins: noam_, pjm0616, mulander, [Pete_27]
03:41 < exch> rsaarelm: it does actually..  sort of.
http://groups.google.com/group/golang-nuts/msg/c98b4c63ba739240?pli=1
03:42 < rsaarelm> Ah.
03:43 < rsaarelm> Doesn't look very straightforward though.
03:43 < exch> very true
03:54 -!- prip [~foo@host92-121-dynamic.42-79-r.retail.telecomitalia.it] has quit
[Read error: Operation timed out]
03:55 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
03:57 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 245 seconds]
04:03 -!- dforsyth [~dforsyth@pool-96-231-169-83.washdc.fios.verizon.net] has quit
[Quit: leaving]
04:09 -!- prip [~foo@host134-197-dynamic.17-79-r.retail.telecomitalia.it] has
joined #go-nuts
04:09 -!- alexbobP [~alex@ppp-70-253-77-16.dsl.austtx.swbell.net] has joined
#go-nuts
04:12 -!- iant [~iant@216.239.45.130] has joined #go-nuts
04:12 -!- mode/#go-nuts [+v iant] by ChanServ
04:13 < ekontsevoy> rsaarelm: thanks
04:14 < ekontsevoy> that's a huge issue though...  that reduces the set of
applicable tasks to simple scripting, it seems :-(
04:14 -!- felipe [~felipe@my.nada.kth.se] has joined #go-nuts
04:19 -!- felipe [~felipe@my.nada.kth.se] has quit [Max SendQ exceeded]
04:23 -!- alexbobP_ [~alex@ppp-70-253-77-16.dsl.austtx.swbell.net] has joined
#go-nuts
04:24 -!- alexbobP_ [~alex@ppp-70-253-77-16.dsl.austtx.swbell.net] has quit
[Client Quit]
04:24 -!- alexbobP [~alex@ppp-70-253-77-16.dsl.austtx.swbell.net] has quit [Remote
host closed the connection]
04:24 -!- alexbobP [~alex@ppp-70-253-77-16.dsl.austtx.swbell.net] has joined
#go-nuts
04:27 -!- felipe [~felipe@my.nada.kth.se] has joined #go-nuts
04:27 -!- visof [~visof@unaffiliated/visof] has quit [Quit: Leaving]
04:30 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
04:32 -!- noam__ [~noam@77.127.206.19] has joined #go-nuts
04:34 -!- noam_ [~noam@77.127.206.19] has quit [Ping timeout: 276 seconds]
04:43 < plexdev> http://is.gd/cMiW5 by [Rob Pike] in go/doc/ -- spec:
clarify that result parameters are always zeroed before the function executes.
04:44 -!- babusri [~E50138@122.167.85.16] has joined #go-nuts
04:57 -!- prip [~foo@host134-197-dynamic.17-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 245 seconds]
05:00 -!- scm [justme@d039131.adsl.hansenet.de] has quit [Ping timeout: 245
seconds]
05:07 -!- scm [justme@d057067.adsl.hansenet.de] has joined #go-nuts
05:08 -!- lost4815162342 [~chatzilla@222.73.189.45] has joined #go-nuts
05:08 -!- eduardoboss [~eduardobo@187.58.224.87] has quit [Quit: Ex-Chat]
05:09 -!- prip [~foo@host231-125-dynamic.35-79-r.retail.telecomitalia.it] has
joined #go-nuts
05:21 -!- eikenberry [~jae@ivanova.zhar.net] has quit [Ping timeout: 252 seconds]
05:23 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Quit: leaving]
05:24 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts
05:40 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has joined
#go-nuts
05:55 -!- adu [~ajr@pool-71-191-173-118.washdc.fios.verizon.net] has quit [Quit:
adu]
06:10 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has joined #go-nuts
06:17 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
06:22 -!- lost4815162342 [~chatzilla@222.73.189.45] has quit [Ping timeout: 245
seconds]
06:30 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
06:33 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has joined
#go-nuts
06:33 -!- alexbobP [~alex@ppp-70-253-77-16.dsl.austtx.swbell.net] has quit [Quit:
leaving]
06:34 -!- alexbobP [~alex@ppp-70-253-77-16.dsl.austtx.swbell.net] has joined
#go-nuts
06:38 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-182-64.clienti.tiscali.it] has
joined #go-nuts
06:51 -!- alkavan [~alkavan@IGLD-84-229-221-97.inter.net.il] has quit [Read error:
Connection reset by peer]
06:52 -!- alkavan [~alkavan@IGLD-84-229-221-97.inter.net.il] has joined #go-nuts
06:56 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
06:58 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has joined
#go-nuts
06:58 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
06:59 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has joined
#go-nuts
06:59 -!- AndrewBC [~AndrewBC@97.93.232.247] has quit [Ping timeout: 252 seconds]
07:03 -!- alkavan_ [~alkavan@IGLD-84-228-161-187.inter.net.il] has joined #go-nuts
07:07 -!- alkavan [~alkavan@IGLD-84-229-221-97.inter.net.il] has quit [Ping
timeout: 260 seconds]
07:10 -!- Kashia [~Kashia@port-92-200-22-184.dynamic.qsc.de] has quit [Quit: This
computer has gone to sleep]
07:13 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
07:18 -!- wrtp [~rog@92.17.36.55] has joined #go-nuts
07:19 -!- alkavan_ [~alkavan@IGLD-84-228-161-187.inter.net.il] has quit [Read
error: Connection reset by peer]
07:20 -!- alkavan_ [~alkavan@IGLD-84-228-10-26.inter.net.il] has joined #go-nuts
07:26 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Quit: Changing server]
07:38 -!- lost4815162342 [~chatzilla@222.73.189.45] has joined #go-nuts
07:40 -!- babusri [~E50138@122.167.85.16] has quit [Ping timeout: 260 seconds]
08:03 -!- Meidor [~quassel@piggy.cs.ru.nl] has quit [Ping timeout: 260 seconds]
08:04 -!- Meidor [~quassel@piggy.cs.ru.nl] has joined #go-nuts
08:04 -!- pjm0616 [~user@61.250.113.98] has quit [Quit: pjm0616]
08:08 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
08:16 -!- photron [~photron@port-92-201-100-145.dynamic.qsc.de] has joined
#go-nuts
08:18 -!- pjm0616 [~user@61.250.113.98] has joined #go-nuts
08:24 -!- noam__ [~noam@77.127.206.19] has quit [Read error: Operation timed out]
08:26 -!- noam__ [~noam@77.127.206.19] has joined #go-nuts
08:44 -!- Vova [~Vova@77.127.69.68] has quit [Read error: Connection reset by
peer]
08:44 -!- Vovchik [~Vova@77.127.69.68] has joined #go-nuts
08:45 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
08:56 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
09:17 -!- ikaros [~ikaros@f051168059.adsl.alicedsl.de] has joined #go-nuts
09:34 -!- ameno [~ameno@pl053.nas982.p-okinawa.nttpc.ne.jp] has joined #go-nuts
09:38 -!- wrtp [~rog@92.17.36.55] has quit [Quit: wrtp]
09:43 -!- ameno [~ameno@pl053.nas982.p-okinawa.nttpc.ne.jp] has quit [Quit:
Leaving...]
09:49 -!- noam_ [~noam@77.127.206.19] has joined #go-nuts
09:50 -!- path[l] [UPP@120.138.102.50] has quit [Quit: path[l]]
09:51 -!- mikespook [~mikespook@58.61.205.118] has quit [Quit: Leaving.]
09:51 -!- noam__ [~noam@77.127.206.19] has quit [Ping timeout: 276 seconds]
09:59 -!- BrowserUk [~irc1_20_B@92.15.61.192] has joined #go-nuts
10:00 < BrowserUk> Is it possible to restart a go build from where it dies
rather than over again?
10:05 -!- wrtp [~rog@92.17.36.55] has joined #go-nuts
10:05 -!- wrtp [~rog@92.17.36.55] has quit [Client Quit]
10:15 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has joined #go-nuts
10:18 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
10:23 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
10:27 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Client
Quit]
10:34 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
10:37 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 248 seconds]
10:39 -!- wrtp [~rog@92.17.36.55] has joined #go-nuts
10:48 < BrowserUk> No? Any thoughts about this error?: %%%% making cc %%%%
10:48 < BrowserUk> bison -y -d cc.y
10:48 < BrowserUk> C:\msys\bin\bison.exe: bison.simple: No such file or
directory
10:48 < BrowserUk> make: *** [y.tab.h] Error 2
10:48 < BrowserUk> cc.y is there
10:53 -!- cenuij [~cenuij@78.112.253.165] has joined #go-nuts
10:53 -!- cenuij [~cenuij@78.112.253.165] has quit [Changing host]
10:53 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
11:04 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
11:06 -!- MizardX [~MizardX@unaffiliated/mizardx] has joined #go-nuts
11:07 -!- alkavan__ [~alkavan@IGLD-84-228-10-26.inter.net.il] has joined #go-nuts
11:08 -!- Jimmio [~Jimmi@pool-71-175-79-65.phlapa.fios.verizon.net] has joined
#go-nuts
11:09 < Jimmio> Hey all!  I have three files..  two are of package
"brainfuck", one needs to be of main.  How do I compile and link these?
11:10 -!- alkavan_ [~alkavan@IGLD-84-228-10-26.inter.net.il] has quit [Ping
timeout: 240 seconds]
11:17 < waterwalker> 6g -o brainfuck.6 b1.go b2.go && 6g main.go && 6l
main.6
11:18 < Jimmio> Main will complain that it can't find the stuff in
"brainfuck"
11:18 < Jimmio> What's the point of packages..?
11:19 < taruti> -I.  probably
11:19 < Jimmio> Tried that too :/
11:27 < MizardX> It can't find "brainfuck", or it can't find the stuff
inside "brainfuck"?
11:30 -!- marsu [~marsu@93.12.55.72] has joined #go-nuts
11:31 < Jimmio> Huh..  this is interesting..
11:31 < Jimmio> importing a package imports the whole thing into the
object..  so the linker only links that one object.  Huh.
11:31 < Jimmio> So it's my error.
11:33 < Jimmio> but now, I removed an if statement checking whether this is
okay or not, and it worked, then barked.  "throw: all goroutines are asleep -
deadlock!"
11:34 < Jimmio> (the if originally prevented it from working; it being
http://www.anarchyinthetubes.com/hg/hgwebdir.cgi/go/brainfuck/file/ddcf4bca3fd6
modified to work again (strings.Bytes doesn't exist anymore))
11:37 < Jimmio> I'm just calling the TestHelloWorld (and passing in nil, as
I don't know what that variable is for)
11:39 < BrowserUk> One step forward.  But now: < bison -y -d cc.y /
conflicts: 3 shift/reduce >?  Thoughts?  Curses?  Anything?
11:42 -!- plexdev [~plexdev@arthur.espians.com] has quit [Remote host closed the
connection]
11:44 -!- plexdev [~plexdev@arthur.espians.com] has joined #go-nuts
11:54 -!- babusri [~babu@122.167.85.16] has joined #go-nuts
12:01 -!- ikaros [~ikaros@f051168059.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
12:01 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
12:08 -!- visof [~visof@unaffiliated/visof] has quit [Quit: Leaving]
12:09 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
12:14 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
12:16 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit
[Read error: Connection reset by peer]
12:28 < Jimmio> What does 8g search for for packages?  Can I use any file
extension?
12:31 -!- skelterjohn [~jasmuth@c-76-124-45-65.hsd1.nj.comcast.net] has joined
#go-nuts
12:31 -!- OpenSpace [~ja@77.46.201.42] has quit [Ping timeout: 258 seconds]
12:40 < BrowserUk> Hm. Seems my build problems are routed in that GNU bison
creates output file called y_tab.h & y_tab.c instead of y.tab.h y.tab.c (under
some mistaken impression that the OS cannot handle two '.' in a filename).  The
fix is to rename these file.  But there are many Makefiles where this needs to be
done.  Does anyone here understand the build process sufficiently to suggest a
short-cut to modifying them all manually?
12:45 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
12:47 -!- BrowserUk [~irc1_20_B@92.15.61.192] has left #go-nuts []
12:55 -!- OpenSpace [~ja@212.200.195.29] has joined #go-nuts
12:57 -!- Dr_Who [~tgall@gentoo/developer/dr-who] has joined #go-nuts
13:00 -!- tgall_foo [~tgall@gentoo/developer/dr-who] has quit [Ping timeout: 245
seconds]
13:05 -!- wrtp [~rog@92.17.36.55] has quit [Quit: wrtp]
13:09 -!- path[l] [~path@120.138.102.50] has joined #go-nuts
13:15 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 276 seconds]
13:23 -!- noam_ [~noam@77.127.206.19] has quit [Read error: Connection reset by
peer]
13:24 -!- noam_ [~noam@77.127.206.19] has joined #go-nuts
13:25 -!- lost4815162342 [~chatzilla@222.73.189.45] has quit [Read error:
Connection reset by peer]
13:27 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
13:30 < Jimmio> How do you use os.Read?  Is there an easy way to read a line
from a file, and not have to check for \n and/or \r\n?
13:32 < skelterjohn> take a look at the io/ioutil package
13:32 < MizardX> Why does this cause the error "undefined: e"?  switch e :=
stack.Pop().(type) {...}
13:32 < skelterjohn> oh, that is not good advice
13:33 < MizardX> Jimmio: bufio.Reader.ReadBytes(delim byte) (line []bytes,
err os.Error)
13:33 < skelterjohn> take a look at bufio
13:33 < skelterjohn> yeah there we go
13:33 < skelterjohn> i knew io was in the package name somewhere
13:36 < Jimmio> I wish the docs had examples :/ How do I open a file for
reading using that?
13:38 * Jimmio is very tempted to type "ifstream file("MyFile.txt");"
13:42 < MizardX> f := bufio.Reader(os.Open("MyFile.txt", O_RDONLY, 0666));
line, err := f.ReadBytes('\n')
13:45 < Jimmio> and what should I use for the file permissions if..  say..
I'm on Windows?  xP
13:45 < Jimmio> The same thing?
13:45 < Jimmio> And thanks :D
13:47 < MizardX> I don't really know what the permissions are for.  It seems
to work if you put 0666 or 0444.
13:48 < photron> the persmission is probably only used when you open a
non-existing file for writing, in that case the files needs to be created
13:48 < MizardX> ok
13:49 < photron> that's a guess, i don't know for sure
13:53 -!- tav_ [~tav@78.149.190.227] has joined #go-nuts
13:53 < Jimmio> Question.  func (what, are, these, for int) MyFunc(in, put,
arguments int) (out, put int) { } What are the first items in the parentheses for?
13:53 -!- tux21b [~christoph@90.146.60.30] has joined #go-nuts
13:53 -!- ahihi [~generic@cs27127176.pp.htv.fi] has quit []
13:56 -!- tav [~tav@2001:0:53aa:64c:0:3ffb:abf2:50cd] has quit [Ping timeout: 260
seconds]
14:02 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts
14:03 < waterwalker> Jimmio: you should read the tutorial
14:04 < waterwalker> but in short: func (f *Foo) Bar() {} defines a method
Bar or objects of type Foo
14:04 < waterwalker> s/or/for/
14:04 < Jimmio> for objects of type?  Ah.
14:04 < Jimmio> Okay, that makes sense.
14:05 < waterwalker> in this case, f is the receiver
14:05 < Jimmio> So it's like C++ classes, in that it's a member function,
but they're not defined in the struct.
14:05 < waterwalker> yes, Go just doesn't use "this"
14:06 < waterwalker> instead, you name it yourself
14:06 < waterwalker> "f" in my example
14:06 < Jimmio> Hmm, neato!
14:06 < Jimmio> I'm liking Go more and more :D
14:07 < waterwalker> that's the spirit!
14:08 < Jimmio> It's a mix of the good in Javascript, the ease of use of
Python/Java, and the speed of (almost) C++
14:09 -!- dju [dju@fsf/member/dju] has joined #go-nuts
14:09 < Jimmio> Though I would sacrifice "no semicolon needed" if I could
put my curly brace on the next line :<
14:10 -!- dju [dju@fsf/member/dju] has quit [Max SendQ exceeded]
14:11 -!- dju [dju@fsf/member/dju] has joined #go-nuts
14:14 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de]
has joined #go-nuts
14:19 < rsaarelm> I always use "self" like in Python for the object
reference parameter, even though this is different from the style in the
libraries.
14:20 < rsaarelm> Just one less inessential decision to make when writing
code.
14:20 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has joined #go-nuts
14:23 < Namegduf> Why stop there?  I always call my variables x, y, and z to
avoid having to make decisions about their naming.
14:25 < waterwalker> for the receiver I ususally pick the first letter of
the type
14:25 < waterwalker> "self" and "this" have too many letters :)
14:25 < rsaarelm> Hm. "me" would be shorter.
14:26 -!- aho [~nya@f051022164.adsl.alicedsl.de] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
14:26 < Ina> "I"
14:27 -!- tux21b [~christoph@90.146.60.30] has quit [Ping timeout: 260 seconds]
14:28 < rsaarelm> Yeah, looks like local variables starting with a capital
letter are valid.
14:28 < rsaarelm> Of course there's the problem that it looks like l and 1.
14:28 -!- aho [~nya@f051022164.adsl.alicedsl.de] has joined #go-nuts
14:29 < waterwalker> you should choose a better font :)
14:34 -!- noam_ [~noam@77.127.206.19] has quit [Read error: Operation timed out]
14:35 -!- noam_ [~noam@77.127.206.19] has joined #go-nuts
14:37 < Jimmio> Is there a resizable array type?  Something like an
std::vector in C++?
14:37 < taruti> container/vector ?
14:37 < Jimmio> Oh o.O
14:43 -!- BrowserUk [~irc1_20_B@92.15.61.192] has joined #go-nuts
14:48 < BrowserUk> Thoughts on why <%error-verbose> would give error:
<src/cmd/gc/"go.y", line 117: junk after `%%' in definition section>?
14:55 -!- xeon [~chatzilla@222.73.189.45] has joined #go-nuts
14:57 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts
15:03 -!- rinzai [~rinzai@host81-157-103-101.range81-157.btcentralplus.com] has
joined #go-nuts
15:04 -!- Killerkid [~killerkid@host86-180-63-35.range86-180.btcentralplus.com]
has quit [Ping timeout: 265 seconds]
15:04 -!- ako [~nya@e176237058.adsl.alicedsl.de] has joined #go-nuts
15:08 -!- aho [~nya@f051022164.adsl.alicedsl.de] has quit [Ping timeout: 264
seconds]
15:08 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
15:08 -!- dforsyth [~dforsyth@pool-96-231-169-83.washdc.fios.verizon.net] has
joined #go-nuts
15:12 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving]
15:13 -!- Killerkid [~killerkid@host86-177-39-136.range86-177.btcentralplus.com]
has joined #go-nuts
15:13 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 265 seconds]
15:18 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
15:34 -!- wayneeseguin [~wayneeseg@rrcs-72-45-208-165.nys.biz.rr.com] has joined
#go-nuts
15:39 < wayneeseguin> I am confused as to the 8l / 6g commands, where can I
read what each mean and what the differences are?
15:39 < wayneeseguin> I've looked here http://golang.org/cmd/
15:39 < Tonnerre> 8l is the linker on i386
15:39 < Tonnerre> 6g is the go compiler on amd64
15:39 < Tonnerre> i386 → 8, amd64 → 6, arm5 → 5
15:40 < Tonnerre> linker → l, C compiler → c, Go compiler → g
15:40 < wayneeseguin> ahhhhh
15:40 < wayneeseguin> ok so there is some method to the madness
15:40 < Tonnerre> Found the method, still looking for the madness
15:40 < wayneeseguin> hehe
15:41 < wayneeseguin> For me it was an overwhelming # of commands where I
wasn't sure which I should be using
15:41 < wayneeseguin> Interesting, so roots in Plan 9 ?
15:42 < Tonnerre> Sure
15:42 < wayneeseguin> Is there a concept of 'C extensions' in Go ?
15:42 < wayneeseguin> eg.  take advantage of system libraries / tools
15:43 < Ina> There is such a thing as cgo]
15:43 < Ina> cgo *
15:47 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has quit [Ping
timeout: 252 seconds]
15:48 -!- Wiz126 [~Wiz126@24.229.245.72.res-cmts.sm.ptd.net] has joined #go-nuts
15:48 < BrowserUk> Can some chec which version of bison they are succesfully
building go with?
15:49 < taruti> 2.4.2 worked at least in the past
15:49 < Ina> 2.4.1 worked for my version of go
15:51 < BrowserUk> Hm: I (now) have bison (GNU Bison) 2.4.1.  How about m4?
15:52 < taruti> 1.4.14 (probably not needed?)
15:53 < BrowserUk> I'm getting <NONE:0: /bin/m4: ERROR: EOF in string /
bison: subsidiary program `/bin/m4' failed (exit status 1)> from <LANG=C
LANGUAGE="en_US.UTF8" bison -v -y -d go.y>
15:53 < BrowserUk> Is GNU m4 1.4 likely close enough?
16:00 < BrowserUk> taruti: Did you mean that particular version is not
needed; or m4 is not needed?
16:02 -!- i___ [~none@189.115.35.210] has joined #go-nuts
16:03 -!- i___ [~none@189.115.35.210] has quit [Client Quit]
16:04 -!- BrowserUk [~irc1_20_B@92.15.61.192] has left #go-nuts []
16:13 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
connection]
16:21 -!- qIIp [~qIIp@72-173-156-132.cust.wildblue.net] has joined #go-nuts
16:22 -!- cenuij [~cenuij@78.112.253.165] has joined #go-nuts
16:22 -!- cenuij [~cenuij@78.112.253.165] has quit [Changing host]
16:22 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
17:05 -!- xeon [~chatzilla@222.73.189.45] has quit [Read error: Connection reset
by peer]
17:09 -!- Surma [~surma@91-64-16-168-dynip.superkabel.de] has joined #go-nuts
17:17 -!- bedwards [~bedwards@cpe-66-68-70-92.austin.res.rr.com] has joined
#go-nuts
17:23 -!- tsykoduk [~tsykoduk@2001:470:1f04:671:20d:93ff:fe77:1dc4] has quit
[Quit: This is Free Trader Beowulf, calling anyone...  Mayday, Mayday...]
17:23 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 258 seconds]
17:25 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
17:28 -!- babusri [~babu@122.167.85.16] has quit [Ping timeout: 260 seconds]
17:31 -!- gpv [~gpv@59.92.114.148] has joined #go-nuts
17:33 -!- ExtraSpice [~ExtraSpic@78-62-86-161.static.zebra.lt] has joined #go-nuts
17:35 -!- wrtp [~rog@92.17.36.55] has joined #go-nuts
17:36 -!- aho [~nya@f051119102.adsl.alicedsl.de] has joined #go-nuts
17:38 -!- ako [~nya@e176237058.adsl.alicedsl.de] has quit [Ping timeout: 265
seconds]
17:39 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
17:39 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
17:40 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Client Quit]
17:41 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has joined #go-nuts
17:45 -!- bedwards [~bedwards@cpe-66-68-70-92.austin.res.rr.com] has quit [Quit:
bedwards]
17:46 -!- noam_ [~noam@77.127.206.19] has quit [Read error: Connection reset by
peer]
17:47 -!- noam_ [~noam@77.127.206.19] has joined #go-nuts
17:49 < plexdev> http://is.gd/cMSZs by [Russ Cox] in 2 subdirs of
go/src/cmd/ -- gopack: add S flag to force marking a package as safe
17:49 < plexdev> http://is.gd/cMSZy by [Russ Cox] in 2 subdirs of
go/src/pkg/runtime/ -- runtime: fix 386 signal handler bug
17:50 -!- bedwards [~bedwards@cpe-66-68-70-92.austin.res.rr.com] has joined
#go-nuts
17:51 -!- alehorst [~alehorst@189.58.2.93.dynamic.adsl.gvt.net.br] has quit
[Remote host closed the connection]
17:53 -!- alehorst [~alehorst@189.58.2.93.dynamic.adsl.gvt.net.br] has joined
#go-nuts
17:56 < napsy> if my method implements an interface.  Why can't a cast that
type to the interface the calling function expects?
17:56 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has joined #go-nuts
17:57 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
18:04 -!- bedwards [~bedwards@cpe-66-68-70-92.austin.res.rr.com] has quit [Quit:
bedwards]
18:08 < exch> could you rephrase that question napsy?  I don't think I quite
understand what you mean
18:08 < napsy> wait a sec, I'll upload the code
18:09 < exch> unless you mean your type implements an interface and you want
to cast it to said interface.  The answer would be that you dont have to cast it.
Just pas sit into the function as-is
18:09 < exch> the compiler will figure out if said type implements the
expected interface
18:10 < napsy> http://gist.github.com/435955
18:10 < napsy> it doesn't work
18:10 -!- bedwards [~bedwards@cpe-66-68-70-92.austin.res.rr.com] has joined
#go-nuts
18:10 -!- bedwards [~bedwards@cpe-66-68-70-92.austin.res.rr.com] has quit [Client
Quit]
18:11 < exch> ah.  a slice of a type is a type in it's own right.  casting
[]person to []sortable makes no sense
18:12 < exch> define p as []Sortable from the start.  You can fill it with
person instances because they each implement Dortable
18:13 < napsy> oh cool it compiles
18:13 < napsy> thanks
18:16 < napsy> it seems it needs some tuning, I get a panic
18:21 < plexdev> http://is.gd/cMUAI by [Russ Cox] in 2 subdirs of go/ -- gc:
less aggressive name binding, for better line numbers in errors
18:26 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
18:36 -!- Surma [~surma@91-64-16-168-dynip.superkabel.de] has quit [Quit:
Leaving.]
18:38 < plexdev> http://is.gd/cMViM by [Russ Cox] in go/doc/ -- spec: remove
...  (keeping ...T)
18:50 -!- gpv [~gpv@59.92.114.148] has quit [Quit: Leaving]
18:53 -!- alkavan__ [~alkavan@IGLD-84-228-10-26.inter.net.il] has quit [Read
error: Connection reset by peer]
18:53 -!- alkavan__ [~alkavan@IGLD-84-228-10-26.inter.net.il] has joined #go-nuts
18:58 -!- surma [~surma@91-64-16-168-dynip.superkabel.de] has joined #go-nuts
18:58 -!- gpv [~gpv@59.92.114.148] has joined #go-nuts
19:04 -!- yaroslav [~yaroslav@ppp91-78-214-39.pppoe.mtu-net.ru] has joined
#go-nuts
19:23 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
19:23 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
19:26 -!- alkavan__ [~alkavan@IGLD-84-228-10-26.inter.net.il] has quit [Quit:
Leaving]
19:35 -!- gpv [~gpv@59.92.114.148] has quit [Quit: Leaving]
19:45 < napsy> Is there another way to concatenate two array without using
copy and custom array bounds?
19:48 < Namegduf> An array is a continuous block in memory.
19:48 < Namegduf> By definition, I don't think so.
19:49 < napsy> what about slices?
19:50 < Namegduf> Also continuous blocks in memory.
19:50 < exch> a slice is limited by the size of the underlying data
structure.  it's just a 'window' into that data structure.  You can't resize it
beyond it's underlying capacity
19:51 < napsy> what if I have enough capacity for a slice bit just want to
append data
19:52 < exch> then using copy to transfer that data into the slice should
work
19:52 < Namegduf> Then you can resize the slice up to the capacity, yes
19:52 < napsy> ok
19:53 < napsy> http://gist.github.com/436019 I have this naive quicksort
implementation and thought the slice concatenation could be prettier
19:54 -!- arogantpenguin [1805f3d8@gateway/web/freenode/ip.24.5.243.216] has
joined #go-nuts
19:57 < arogantpenguin> how do I find the port for the ARM architecture?  I
wanna do some testing on my Android 2.1 - HTC Incredible
19:57 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 245 seconds]
19:58 -!- arogantpenguin [1805f3d8@gateway/web/freenode/ip.24.5.243.216] has quit
[Client Quit]
19:58 -!- surma [~surma@91-64-16-168-dynip.superkabel.de] has quit [Quit:
Leaving.]
20:17 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Read error:
Connection reset by peer]
20:18 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
20:19 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
20:20 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Client
Quit]
20:29 -!- visof [~visof@unaffiliated/visof] has quit [Ping timeout: 264 seconds]
20:40 -!- qIIp [~qIIp@72-173-156-132.cust.wildblue.net] has quit [Quit: Lost
terminal]
20:42 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
20:47 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
20:58 -!- dforsyth [~dforsyth@pool-96-231-169-83.washdc.fios.verizon.net] has quit
[Read error: Connection reset by peer]
21:07 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: (
www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )]
21:10 < TenOfTen> anyone using protobuf?  c++ and python understand each
other, but Go pukes on the same data
21:10 < kmeyer> hm, i've been using C++ / Go protobuf with no trouble
21:10 < kmeyer> what sort of puke?
21:11 < TenOfTen> it won't unmarshal the file i have generated from c++ or
python
21:12 < TenOfTen> im noob at go, but it seemed quite straightforward, using
ioutil.ReadFile, create a new message, then proto.Unmarshal
21:13 < TenOfTen> any more examples than the README file?
21:13 < kmeyer> hrm
21:13 < kmeyer> let me look at my code
21:13 < kmeyer> it's been a bit
21:14 < TenOfTen> careful tho, latest goprotobuf doesnt compile, but the
checking from may 11th works
21:14 < kmeyer> ah, mine is older than that
21:15 < TenOfTen> f, _ := ioutil.ReadFile(fname) p :=
packet_test.NewThepacket() err := proto.Unmarshal(f, p)
21:15 < TenOfTen> thats supposed to be enough, right?
21:15 < kmeyer> ahhhh
21:15 < kmeyer> hrm
21:15 < kmeyer> does ReadFile return a buffer which is only as long as it
needs to be?
21:15 < TenOfTen> no idea, sorry
21:16 < kmeyer> one thing I noticed is that Go protobuf chokes if you hand
it more bytes than it needs
21:16 < TenOfTen> this is about as much go i've ever done
21:16 < kmeyer> e.g.  you have a 2k buffer, read in a 1k message, and hand
the 2k buffer to Unmarshal
21:16 < kmeyer> but you're not doing anything obviously wrong that I can
see.
21:17 < TenOfTen> i dont see why ReadFile would allocate more memory than
needed, doesnt seem very go-ish
21:20 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
21:21 < kmeyer> welll, if I remember correctly it allocates based on stat()
(so it ought to be correct)
21:26 -!- ako [~nya@f050243226.adsl.alicedsl.de] has joined #go-nuts
21:29 -!- aho [~nya@f051119102.adsl.alicedsl.de] has quit [Ping timeout: 245
seconds]
21:31 -!- dforsyth [~dforsyth@pool-96-231-169-83.washdc.fios.verizon.net] has
joined #go-nuts
21:31 -!- Shyde [~shyde@HSI-KBW-078-043-070-132.hsi4.kabel-badenwuerttemberg.de]
has quit [Quit: Shyde]
21:31 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
21:38 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
21:54 -!- yaroslav [~yaroslav@ppp91-78-214-39.pppoe.mtu-net.ru] has quit [Quit:
yaroslav]
22:07 -!- cthom [~cthom@ip68-10-255-97.hr.hr.cox.net] has joined #go-nuts
22:12 -!- bedwards [~bedwards@cpe-66-68-70-92.austin.res.rr.com] has joined
#go-nuts
22:13 -!- bedwards [~bedwards@cpe-66-68-70-92.austin.res.rr.com] has quit [Client
Quit]
22:13 -!- alexbobP [~alex@ppp-70-253-77-16.dsl.austtx.swbell.net] has left
#go-nuts []
22:33 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
22:35 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
22:35 -!- ExtraSpice [~ExtraSpic@78-62-86-161.static.zebra.lt] has quit [Remote
host closed the connection]
22:37 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 260 seconds]
22:39 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
22:42 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
22:45 -!- noam__ [~noam@77.127.165.193] has joined #go-nuts
22:46 -!- Nexoro [~nexo@c-71-192-75-183.hsd1.ma.comcast.net] has left #go-nuts []
22:47 -!- noam_ [~noam@77.127.206.19] has quit [Ping timeout: 276 seconds]
22:48 -!- stanlly [~user@redhat/stanlly] has quit [Quit: puff]
22:54 -!- bedwards [~bedwards@cpe-66-68-70-92.austin.res.rr.com] has joined
#go-nuts
22:56 -!- bedwards [~bedwards@cpe-66-68-70-92.austin.res.rr.com] has quit [Client
Quit]
22:59 -!- bedwards [~bedwards@cpe-66-68-70-92.austin.res.rr.com] has joined
#go-nuts
23:05 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-182-64.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
23:11 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
23:11 < TenOfTen> kmeyer: did you have a working full code example for go
and c++ understanding the same protobuf data?
23:16 -!- rinzai [~rinzai@host81-157-103-101.range81-157.btcentralplus.com] has
quit [Quit: Leaving]
23:19 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 276 seconds]
23:23 -!- marsu [~marsu@93.12.55.72] has quit [Quit: Leaving]
23:33 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has quit [Read error:
Connection reset by peer]
23:34 -!- wrtp [~rog@92.17.36.55] has quit [Quit: wrtp]
23:39 -!- stanlly [~user@redhat/stanlly] has joined #go-nuts
23:46 -!- visof [~visof@unaffiliated/visof] has quit [Read error: Connection reset
by peer]
23:52 -!- slashus2 [~slashus2@74-137-24-74.dhcp.insightbb.com] has quit [Ping
timeout: 245 seconds]
--- Log closed Sun Jun 13 00:00:10 2010