--- Log opened Mon Feb 07 00:00:05 2011
00:00 -!- waqas [~waqas@jaim.at] has left #go-nuts []
00:01 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has joined #go-nuts
00:03 -!- jdp [~jdp@nj-76-6-38-194.dhcp.embarqhsd.net] has quit [Ping timeout: 265
seconds]
00:06 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has quit [Quit:
Computer has gone to sleep.]
00:07 < exch> hmm turns out that os.Wait() does work, just not for the
process I was using it on
00:07 < exch> opening chromium creates a new process for each tab.  For some
reason it instantly registers as closed, eventhough it still exists.
00:08 < exch> I can only guess that the process stops being a child of my
own app and becomes a child of chromium itself
00:11 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
00:12 -!- Kashia [~Kashia@port-92-200-74-207.dynamic.qsc.de] has joined #go-nuts
00:13 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
00:14 -!- adu [~ajr@pool-173-79-54-138.washdc.fios.verizon.net] has joined
#go-nuts
00:19 -!- jdp [~jdp@nj-76-6-38-194.dhcp.embarqhsd.net] has joined #go-nuts
00:20 -!- Tuller_ [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined
#go-nuts
00:26 -!- Tuller_ [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Quit:
Computer has gone to sleep.]
00:31 -!- adu [~ajr@pool-173-79-54-138.washdc.fios.verizon.net] has quit [Quit:
adu]
00:31 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
00:33 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
00:49 -!- Varriount [60ffd6f3@gateway/web/freenode/ip.96.255.214.243] has joined
#go-nuts
00:52 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
00:53 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
01:01 -!- Sgeo [~Sgeo@ool-18bf618a.dyn.optonline.net] has joined #go-nuts
01:01 < Sgeo> Varriount, I made the same mistake.  It caused me to become
interested in the game
01:01 -!- Natch| [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
01:02 < Sgeo> (wrt the channel)
01:04 -!- Natch| [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
01:06 -!- Natch [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
01:06 -!- Natch| [~natch@c-6dcde155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
01:12 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
01:13 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
01:17 -!- Darkmush [badaimer@unaffiliated/darkmush] has quit []
01:22 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has joined
#go-nuts
01:32 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
01:33 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
01:41 -!- Varriount [60ffd6f3@gateway/web/freenode/ip.96.255.214.243] has quit
[Disconnected by services]
01:52 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
01:52 -!- jdp [~jdp@nj-76-6-38-194.dhcp.embarqhsd.net] has quit [Remote host
closed the connection]
01:53 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
02:05 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
02:12 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
02:13 -!- nutate [~rseymour@adsl-69-231-230-219.dsl.irvnca.pacbell.net] has joined
#go-nuts
02:13 -!- visof [~visof@unaffiliated/visof] has quit [Read error: Connection reset
by peer]
02:13 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
02:18 -!- vbh [~vipul@cpe-68-173-41-175.nyc.res.rr.com] has joined #go-nuts
02:23 < decaf> I couldn't find any documents about 'C' pseudo packageeeee
02:23 < decaf> sorry, have to clean keyboard
02:23 -!- vbh [~vipul@cpe-68-173-41-175.nyc.res.rr.com] has quit [Quit: vbh]
02:24 -!- vbh [~vipul@cpe-68-173-41-175.nyc.res.rr.com] has joined #go-nuts
02:24 < decaf> how can people write C wrappers?  I've seen many of them
02:27 < Namegduf> decaf: Using cgo.
02:29 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Ping
timeout: 245 seconds]
02:29 -!- tensai_cirno [~cirno@77.232.15.216] has joined #go-nuts
02:31 < decaf> Namegduf: by reading this?  http://golang.org/cmd/cgo/
02:32 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
02:32 -!- exch [~exch@h78233.upc-h.chello.nl] has quit [Read error: Connection
reset by peer]
02:33 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
02:34 -!- exch [~exch@h78233.upc-h.chello.nl] has joined #go-nuts
02:34 -!- vbh [~vipul@cpe-68-173-41-175.nyc.res.rr.com] has quit [Quit: Leaving]
02:48 -!- decaf [~mehmet@95.10.172.95] has quit [Ping timeout: 240 seconds]
02:52 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
02:53 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
03:00 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts
03:01 -!- decaf [~mehmet@95.10.172.95] has joined #go-nuts
03:03 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
03:07 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Remote
host closed the connection]
03:07 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
03:12 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
03:14 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
03:21 -!- boscop [~boscop@f050133141.adsl.alicedsl.de] has quit [Ping timeout: 240
seconds]
03:25 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Remote host
closed the connection]
03:26 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
03:28 -!- adu [~ajr@pool-173-79-54-138.washdc.fios.verizon.net] has joined
#go-nuts
03:28 < adu> wow
03:28 < adu> when did cmplx() get renamed to complex()?
03:30 < exch> not too long ago.  the float type was also removed
03:30 < exch> in favour of explicit float32 and float64
03:30 < exch> http://codereview.appspot.com/4071041
03:30 < adu> ooo, maybe that's why, because it doesn't conflict with the
complex type anymore
03:31 -!- nettok [~quassel@200.119.164.31] has joined #go-nuts
03:31 < adu> I'm guessing the same time they made SendExpr into SendStmt
03:32 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
03:32 < adu> (which is huge, imho)
03:34 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
03:34 -!- nettok_ [~quassel@200.119.179.174] has quit [Ping timeout: 240 seconds]
03:35 < adu> i don't understand why they didn't use complex64{re, im}
03:35 < adu> maybe because they didn't want people thinking it was a struct?
03:35 * exch has no clue
03:35 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts
03:35 < adu> hi jdp
03:36 -!- foocraft [~dsc@178.152.69.68] has quit [Read error: Connection reset by
peer]
03:36 < jdp> hello
03:37 < adu> how goes?
03:37 -!- foocraft [~dsc@78.101.130.242] has joined #go-nuts
03:39 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
03:41 -!- shvntr [~shvntr@222.50.226.13] has joined #go-nuts
03:52 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
03:54 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
04:07 -!- CoconutCrab [~cua@unaffiliated/coconutcrab] has joined #go-nuts
04:07 -!- nutate [~rseymour@adsl-69-231-230-219.dsl.irvnca.pacbell.net] has quit
[Quit: I'm outta heee-eere]
04:12 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
04:14 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
04:22 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
04:32 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
04:34 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
04:35 -!- tensai_cirno [~cirno@77.232.15.216] has quit [Ping timeout: 255 seconds]
04:41 -!- eikenberry [~jae@ivanova.zhar.net] has quit [Quit: End of line.]
04:46 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Quit:
itrekkie]
04:52 -!- hantu_cyber [~enjoyaja3@110.136.255.64] has joined #go-nuts
04:52 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
04:54 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
04:54 -!- jodaro [~user@poquito.divinia.com] has joined #go-nuts
05:06 -!- nutate [~rseymour@adsl-69-231-230-219.dsl.irvnca.pacbell.net] has joined
#go-nuts
05:09 -!- nutate [~rseymour@adsl-69-231-230-219.dsl.irvnca.pacbell.net] has quit
[Client Quit]
05:12 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
05:14 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
05:17 -!- hantu_cyber [~enjoyaja3@110.136.255.64] has quit [Ping timeout: 260
seconds]
05:20 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
05:21 -!- hantu_cyber [~enjoyaja3@110.136.255.64] has joined #go-nuts
05:21 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
05:32 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
05:34 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
05:46 -!- hantu_cyber [~enjoyaja3@110.136.255.64] has quit [Ping timeout: 245
seconds]
05:50 -!- hantu_cyber [~enjoyaja3@110.136.255.64] has joined #go-nuts
05:52 -!- fabled [~fabled@mail.fi.jw.org] has joined #go-nuts
05:52 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
05:54 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
05:56 -!- nettok_ [~quassel@200.119.179.227] has joined #go-nuts
05:59 -!- nettok [~quassel@200.119.164.31] has quit [Ping timeout: 240 seconds]
06:12 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
06:14 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
06:15 -!- waqas [~waqas@jaim.at] has joined #go-nuts
06:19 -!- CoconutCrab [~cua@unaffiliated/coconutcrab] has quit [Ping timeout: 240
seconds]
06:20 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
06:25 -!- CoconutCrab [~cua@unaffiliated/coconutcrab] has joined #go-nuts
06:31 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts
06:31 -!- eiken [~jae@ivanova.zhar.net] has joined #go-nuts
06:31 -!- eiken [~jae@ivanova.zhar.net] has quit [Read error: Connection reset by
peer]
06:32 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
06:34 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
06:44 -!- hantu_cyber [~enjoyaja3@110.136.255.64] has quit [Read error: Connection
reset by peer]
06:45 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has quit
[Quit: JusticeFries]
06:52 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
06:54 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
07:01 -!- vicevirtue [~vice@220-253-155-186.VIC.netspace.net.au] has joined
#go-nuts
07:03 -!- laurus [~laurus@c-68-40-207-109.hsd1.mi.comcast.net] has joined #go-nuts
07:03 -!- CoconutCrab [~cua@unaffiliated/coconutcrab] has quit [Quit: leaving]
07:05 < vicevirtue> I'm trying to wrap a C library with CGO, one of the
fields in a structure I'm trying to wrap is named "type", I'm hoping someone can
help me with this http://golang.pastebin.com/PFpkVRw9
07:05 < Namegduf> vicevirtue: Use _type
07:05 < vicevirtue> Is there some sort of special case for when a field is
named "type"
07:05 < vicevirtue> oh thanks, Namegduf :)
07:05 < Namegduf> I think _type is so, yeah.
07:06 < laurus> Is Go "Free as in freedom" ?
07:07 < waqas> laurus: BSD: http://golang.org/LICENSE
07:08 < laurus> waqas, what about patents, ala Sun/Oracle?
07:08 < waqas> "Free as in freedom" doesn't do much about patents
07:09 < waqas> laurus: This may be of interest:
http://groups.google.com/group/golang-nuts/browse_thread/thread/8f881ceab22cd1b7
07:10 < laurus> waqas, ah, that is exactly what I was looking for.
07:12 < waqas> laurus: http://golang.org/PATENTS
07:12 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
07:13 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
07:14 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
07:15 < laurus> waqas, do you understand that whole text?
07:15 < laurus> What does it mean "This grant does not include claims that
would be infringed only as a consequence of further modification of this
implementation."
07:17 < Namegduf> If you modify the implementation so it includes
implementations of other patents, they don't suddenly become licensed?
07:17 < waqas> Yep, that's what it says
07:18 < laurus> Oh, but if you just modified it in your own way, it's fine?
07:19 < waqas> If you extended Go to inlude a search lib which violated some
google search patent, you don't automatically get a grant for that patent.
Otherwise it's fine.
07:19 < waqas> IANAL, etc
07:19 < laurus> waqas, okay, great, thanks for the explanation!
07:29 -!- neshaug [~oyvind@213.239.108.5] has joined #go-nuts
07:30 -!- Ina [~Ina@524AF477.cm-4-3d.dynamic.ziggo.nl] has quit [Ping timeout: 240
seconds]
07:32 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
07:32 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
07:34 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
07:34 -!- Sgeo [~Sgeo@ool-18bf618a.dyn.optonline.net] has quit [Ping timeout: 240
seconds]
07:40 -!- laurus [~laurus@c-68-40-207-109.hsd1.mi.comcast.net] has left #go-nuts
["Leaving"]
07:52 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
07:54 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
07:56 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
07:58 < taruti> Is the order of init functions in various packages defined?
08:00 < taruti> meh, wrong order
08:00 * taruti ponders for a way to change os.Argv before flag gets the turn
08:01 -!- nettok [~quassel@200.119.179.227] has joined #go-nuts
08:02 -!- nettok_ [~quassel@200.119.179.227] has quit [Ping timeout: 265 seconds]
08:02 -!- tvw [~tv@e176005025.adsl.alicedsl.de] has joined #go-nuts
08:03 < waqas> taruti: You want to reorder the flags before being parsed?
08:04 < taruti> waqas: shift them
08:04 < anticw> taruti: dependancy order
08:05 < waqas> Modify os.Args before calling flag.Parse()?
08:06 < taruti> waqas: flag takes the os.Args in init
08:06 < taruti> I *can* hack a local version of flag
08:07 < waqas> "It is safe to call flag.Parse multiple times, possibly after
changing os.Args.  This makes it possible to implement command lines with
subcommands that enable additional flags, as in:" - doesn't that work for you?
08:10 -!- tensai_cirno [~cirno@194.186.188.99] has joined #go-nuts
08:11 < taruti> waqas: the subcommand wanted the flags shifted, and that
created an issue.  rewriting it to be aware of the parent helped.
08:12 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
08:14 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
08:14 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has quit [Read error:
Connection reset by peer]
08:15 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts
08:16 -!- ExtraSpice [~XtraSpice@88.118.33.48] has joined #go-nuts
08:18 < taruti> Basically I am trying to do "command subcommand -arg1 -arg2"
and shift args so that flag would see "subcommand -arg1 -arg2" instead of just
seeing subcommand as the first non-argument and stopping there.
08:30 < plexdev> http://is.gd/JlFzd3 by [Andrey Mirtchovski] in
go/doc/codelab/wiki/ -- Codelab: correct function definitions for handlers before
closures are introduced.
08:32 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
08:34 -!- napsy [~luka@88.200.96.18] has quit [Quit: leaving]
08:34 -!- snearch [~snearch@f053007038.adsl.alicedsl.de] has joined #go-nuts
08:34 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
08:34 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
08:42 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:48 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has joined
#go-nuts
08:50 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
08:53 -!- brucebanner [~brucebann@80.169.174.130] has quit [Read error: No route
to host]
08:54 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Remote host
closed the connection]
08:56 < erus_> skelterjohnnn!!!
08:57 < erus_> I think he forgot to git add a new file
09:02 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
09:04 -!- vicevirtue [~vice@220-253-155-186.VIC.netspace.net.au] has quit [Ping
timeout: 260 seconds]
09:04 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Client Quit]
09:18 -!- snearch [~snearch@f053007038.adsl.alicedsl.de] has quit [Quit:
Verlassend]
09:22 -!- tensai_cirno [~cirno@194.186.188.99] has quit [Ping timeout: 276
seconds]
09:27 -!- nettok [~quassel@200.119.179.227] has quit [Ping timeout: 265 seconds]
09:29 -!- tensai_cirno [~cirno@194.186.188.99] has joined #go-nuts
09:30 -!- Belg [~kim@gw-gbg.ilait.se] has joined #go-nuts
09:31 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
joined #go-nuts
09:32 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
09:45 -!- ildorn [~ildorn@dslb-188-105-120-139.pools.arcor-ip.net] has joined
#go-nuts
09:50 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
09:51 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
09:52 -!- gabriel9 [~gabriel9@93.157.192.28] has left #go-nuts []
09:59 -!- adu [~ajr@pool-173-79-54-138.washdc.fios.verizon.net] has quit [Quit:
adu]
10:04 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has joined #go-nuts
10:07 -!- Ina [~Ina@dsl-087-195-206-242.solcon.nl] has joined #go-nuts
10:11 -!- Kashia [~Kashia@port-92-200-74-207.dynamic.qsc.de] has quit [Quit: This
computer has gone to sleep]
10:30 -!- virtualsue [~chatzilla@nat/cisco/x-zovlstwmqqlkcjph] has joined #go-nuts
10:31 -!- vzx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Ping timeout: 276
seconds]
10:33 -!- visof [~visof@41.233.112.245] has joined #go-nuts
10:33 -!- visof [~visof@41.233.112.245] has quit [Changing host]
10:33 -!- visof [~visof@unaffiliated/visof] has joined #go-nuts
10:43 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has quit [Ping
timeout: 245 seconds]
10:44 -!- boscop [~boscop@f050133141.adsl.alicedsl.de] has joined #go-nuts
10:46 -!- wrtp [~rog@92.17.35.133] has joined #go-nuts
10:49 -!- tensai_cirno [~cirno@194.186.188.99] has quit [Ping timeout: 240
seconds]
10:53 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has joined
#go-nuts
11:03 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has quit [Ping
timeout: 245 seconds]
11:09 -!- ath [ath@omega.lambda.fi] has quit [Ping timeout: 240 seconds]
11:10 -!- ath [ath@omega.lambda.fi] has joined #go-nuts
11:13 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
11:13 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Client Quit]
11:14 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
11:16 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Read error:
Connection reset by peer]
11:19 -!- waqas [~waqas@jaim.at] has quit [Remote host closed the connection]
11:29 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has quit [Quit:
Computer has gone to sleep.]
11:39 -!- ShadowIce`
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
11:39 -!- ShadowIce`
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
11:39 -!- ShadowIce` [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
11:39 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Read error:
Connection reset by peer]
12:01 -!- niemeyer [~niemeyer@189.30.48.133] has joined #go-nuts
12:07 -!- ExtraSpice [~XtraSpice@88.118.33.48] has quit [Read error: Connection
reset by peer]
12:08 -!- creack [~charme_g@163.5.84.215] has quit [Ping timeout: 255 seconds]
12:11 -!- creack [~charme_g@163.5.84.215] has joined #go-nuts
12:18 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
12:27 -!- vzx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
12:34 -!- creack [~charme_g@163.5.84.215] has quit [Ping timeout: 250 seconds]
12:38 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
12:41 -!- creack [~charme_g@163.5.84.215] has joined #go-nuts
12:45 -!- vzx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
12:48 -!- nighty__ [~nighty@x122091.ppp.asahi-net.or.jp] has joined #go-nuts
12:53 -!- vzx [~ryan@74-129-203-76.dhcp.insightbb.com] has joined #go-nuts
12:55 -!- visof [~visof@unaffiliated/visof] has quit [Remote host closed the
connection]
12:58 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the
connection]
13:07 -!- shvntr [~shvntr@222.50.226.13] has quit [Ping timeout: 240 seconds]
13:07 -!- boscop_ [~boscop@g230099172.adsl.alicedsl.de] has joined #go-nuts
13:09 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
13:09 -!- shvntr [~shvntr@59.35.236.39] has joined #go-nuts
13:09 -!- boscop [~boscop@f050133141.adsl.alicedsl.de] has quit [Ping timeout: 240
seconds]
13:15 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
13:19 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has joined
#go-nuts
13:19 < erus_> I wish go was written in go
13:19 < erus_> it takes ages to build
13:21 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
13:21 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Ping
timeout: 240 seconds]
13:23 < cde> erus_: that's my project, a self-hosting go cmopiler
13:24 < erus_> just replacing *g and *l ? or redoing the whole build
process?
13:25 < erus_> cde: is there a project page for it somewhere?
13:25 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
13:25 < wrtp> erus_: most of the build time is spent testing
13:25 < wrtp> erus_: building the compiler doesn't take long at all
13:25 -!- tvw [~tv@e176005025.adsl.alicedsl.de] has quit [Remote host closed the
connection]
13:26 < erus_> on my windows XP mode virtual machine it does
13:28 < cde> erus_: it's not done yet.  I'll announce it when it is ready
13:28 < cde> the thing is, I want it to be GPLv3 licensed.  so I have te
rewrite all the packages
13:29 < erus_> oh no
13:29 < erus_> It'l be lots of work keeping them compatible
13:29 < wrtp> cde: what's wrong with BSD licensing?
13:29 < cde> well we have Interfaces for compatibility
13:29 < niemeyer> cde: Rewrite all the *packages*!?
13:29 < cde> wrtp: it's much too free.  I like to keep my users in chains
13:30 < wrtp> fair enough
13:30 < cde> also GPLv3 ensures there will never be commercia adoption on a
wide scale, which fits my hippies ethics
13:30 < niemeyer> wrtp: Not sure if "fair" would apply, as it's quite
strange to rewrite something people put a lot of effort in and provide for free
just to restrict what they can do with it.
13:31 < wrtp> i don't care.  i don't have to use it.
13:31 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 246 seconds]
13:31 < wrtp> it's strange, it's true, but different strokes for different
folks, y'know.
13:31 < niemeyer> wrtp: Sure, nevermind
13:33 < cde> in any case the Go developers really should get working on a
pure Go compiler
13:33 < wrtp> (it'll never happen anyway - there's a lot of good effort gone
into the packages, and i'd be very surprised to see them duplicated in any kind of
a competent way)
13:33 < cde> right now it is tainted by the C part
13:34 < wrtp> *shrug*
13:34 < wrtp> avoiding bootstrapping issues is quite a good thing
13:36 < rm445> Being Ken Thompson and writing a new compiler by hacking on a
compiler you're already intimately familiar with is probably quite a good thing
too, if you want something that works, soon.
13:36 < rm445> (I think I'm right in saying that the Go compiler was derived
from the Plan 9 C compiler?)
13:36 < erus_> correct
13:36 < KBme> yep
13:37 < erus_> anyone had any joy building go on cygwin?
13:37 < KBme> one of the compilers ([86]g
13:41 < wrtp> the linker is taken from the plan 9 C linker.  i'm not sure
how much of the actual go compiler is (although portions are)
13:42 -!- artefon [~thiago@dhcp16.usuarios.dcc.ufmg.br] has joined #go-nuts
13:44 < KBme> the c compiler used to compile [68]g is the modified kencc
13:44 -!- ildorn [~ildorn@dslb-188-105-120-139.pools.arcor-ip.net] has quit [Quit:
Leaving.]
13:44 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
13:46 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
13:46 -!- tvw [~tv@e176005025.adsl.alicedsl.de] has joined #go-nuts
13:51 -!- hcl2 [~akuma@75.41.110.112] has joined #go-nuts
13:54 < rm445> can anyone explain to me what .goc files are about (in the
pkg/runtime source)?  I see from goc2c.c that "A .goc file is a combination of a
limited form of Go with C."
13:57 < wrtp> rm445: it's exactly that
13:57 < wrtp> if you look in one, you'll find C code intermixed with go
functions
13:58 < rm445> oh I believe you, just interested in the reason (I'm not
hacking on the runtime or anything, just curious)
13:58 < wrtp> it's to make it easier to write Go APIs in C
13:58 -!- jkakar_ [~jkakar@227.Red-79-153-89.dynamicIP.rima-tde.net] has joined
#go-nuts
13:59 < wrtp> it's only found in runtime - see goc2c.c
14:00 < wrtp> KBme: i don't think so
14:00 -!- jkakar [~jkakar@252.Red-88-0-173.dynamicIP.rima-tde.net] has quit [Ping
timeout: 260 seconds]
14:00 < wrtp> gc is compiled with gcc AFAIK
14:00 < KBme> wrtp: gc is teh modified kencc no?
14:01 < KBme> so gcc -> gc -> ng
14:01 < wrtp> nope
14:01 < KBme> huh
14:01 < KBme> so what does kencc do in go?
14:01 < wrtp> kencc is used for compiling C code to be linked with go code
14:02 < KBme> i see.  man i was wrong heh
14:02 < rm445> Is 6c used at all in building 6g?  (sticking to '6' for
simplicity) I vaguely thought it was used to build some of the runtime
14:03 < KBme> it seems not
14:03 < KBme> runtime != 6g
14:04 < rm445> yeah ok.
14:05 < wrtp> the runtime isn't used to build 6g
14:05 < wrtp> sorry, that's what KBme said
14:05 < rm445> yeah, sorry, so talk me through this.  The runtime is...  a
package that is linked against all Go programs?
14:06 < KBme> huh no, i said the runtime isn't the compiler.  we were
talking about what was used to compile the compiler
14:06 < exch> the runtime is linked into all your compiled go apps
14:07 < exch> Not sure what encompases the runtime, but it would include the
GC and thread/goroutine scheduler
14:07 < wrtp> the compiler knows about the runtime, but is mostly
independent of it
14:08 < rm445> So to build a working Go compiler suite, you use gcc to
compile the compiler, the C compiler, and the linker and other things
14:08 < rm445> and you also need to be able to build the runtime which is a
mix of C and Go and goc.
14:09 < rm445> so the 6c, kencc, compiler, is used for building that
runtime?
14:09 < wrtp> yeah
14:09 < wrtp> goc is really just C with a simple frontend processor
14:09 < rm445> that's cool, apologies for being so slow.
14:10 < wrtp> np.  it's not obvious until you understand it :-)
14:11 < rm445> right, well while we're doing remedial learning, can you also
tell me whether [6]c is used for anything else?  Cgo is my guess, but I'm not sure
how that works.
14:12 < wrtp> cgo's reasonably complex
14:12 < wrtp> it uses gcc and 6g and 6c
14:12 < aiju> s/reasonably/insanely/
14:13 < wrtp> it could be better about the number of files it leaves around
:0)
14:17 < erus_> ugh i give up
14:17 < erus_> go is not ready for windows
14:17 < erus_> well cgo anyway
14:27 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
14:30 -!- qjcg [~qjcg@208.88.110.46] has joined #go-nuts
14:30 -!- qjcg [~qjcg@208.88.110.46] has left #go-nuts []
14:32 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
14:38 -!- plainhao [~plainhao@208.75.85.237] has joined #go-nuts
14:38 -!- jbooth11 [~jay@209.249.216.2] has joined #go-nuts
14:48 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
14:49 -!- artefon [~thiago@dhcp16.usuarios.dcc.ufmg.br] has quit [Ping timeout:
250 seconds]
14:54 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4]
15:01 -!- chee [~chee@unaffiliated/chee] has quit [Ping timeout: 240 seconds]
15:02 -!- creack [~charme_g@163.5.84.215] has quit [Ping timeout: 255 seconds]
15:08 -!- creack [~charme_g@163.5.84.215] has joined #go-nuts
15:12 < dario_> does go have something like python's isinstance() ?
15:12 < aiju> what does that do?
15:13 < aiju> don't expect thorough python knowledge in a Go channel :P
15:13 < dario_> check if an object is an instance of a class
15:13 < aiju> yes
15:13 < dario_> as in isinstance(myself, human)
15:13 < aiju> _, ok := myself.(human)
15:14 < dario_> thx
15:14 < aiju> you'll likely want the first value as well
15:14 < aiju> it's the object casted to the specified type
15:19 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds]
15:23 < wrtp> dario_: it's actually somewhat more powerful than python's
isinstance.
15:24 < dario_> yes, spent the last five minutes playing with it, and will
also the next five :D
15:28 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
15:29 -!- sauerbraten [~sauerbrat@p508CFD03.dip.t-dialin.net] has joined #go-nuts
15:33 -!- shvntr [~shvntr@59.35.236.39] has quit [Ping timeout: 255 seconds]
15:35 -!- fluffybunnies [~imsplitbi@64.39.4.132] has joined #go-nuts
15:38 -!- shvntr [~shvntr@59.35.236.39] has joined #go-nuts
15:43 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
15:43 < decaf>
https://bitbucket.org/taruti/go-readline/src/a112b95391e9/readline.go any ideas,
where he found and learned that C.GoString ?
15:43 < decaf> by reading code?
15:43 < taruti> *she
15:43 < aiju> probably :P
15:43 < taruti> reading code.
15:44 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has quit [Ping timeout: 240 seconds]
15:44 < taruti> note that readline.go is just a fix to get it compiling, not
my work.
15:44 * taruti uses termios for line input
15:45 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has joined #go-nuts
15:46 -!- fluffybunnies [~imsplitbi@64.39.4.132] has quit [Quit: Bye!]
15:47 -!- shvntr [~shvntr@59.35.236.39] has quit [Ping timeout: 240 seconds]
15:49 < wrtp> yeah, GoString and CString should be documented
15:54 -!- ildorn [~ildorn@vpnclient-241-210.extern.uni-ulm.de] has joined #go-nuts
15:59 -!- jodaro [~user@poquito.divinia.com] has quit [Ping timeout: 240 seconds]
15:59 -!- Fish-- [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
16:00 -!- Fish-- [~Fish@exo3753.pck.nerim.net] has quit [Client Quit]
16:00 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
16:01 -!- Fish- [~Fish@coss6.exosec.net] has quit [Ping timeout: 250 seconds]
16:01 -!- artefon [~thiagon@150.164.2.20] has quit [Ping timeout: 240 seconds]
16:06 -!- chee [~chee@unaffiliated/chee] has joined #go-nuts
16:07 -!- Fish [~Fish@exo3753.pck.nerim.net] has quit [Ping timeout: 240 seconds]
16:10 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
16:11 -!- ildorn [~ildorn@vpnclient-241-210.extern.uni-ulm.de] has quit [Quit:
Leaving.]
16:18 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
16:21 < wm_eddie> Do you still have to export GOARCH and GOOS?
16:21 < aiju> or use gomake
16:22 < wm_eddie> hmm
16:24 -!- DerHorst [~Horst@e176105037.adsl.alicedsl.de] has joined #go-nuts
16:25 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
16:26 -!- jkakar [~jkakar@227.Red-79-153-89.dynamicIP.rima-tde.net] has left
#go-nuts ["Ex-Chat"]
16:26 < hypertux> wm_eddie: I just installed go on a new box, and I didn't
have to, they are guess automatically now
16:27 < hypertux> wm_eddie: you can still set them if you want to, though
16:27 < hypertux> wm_eddie: however, the default GOBIN is now $GOROOT/bin
and not $HOME/bin
16:28 < wm_eddie> I see.
16:28 < wm_eddie> I figured it was being guessed or something because
everything was working when I forgot to set them.
16:28 < hypertux> Haha, I found out because I forgot it was a 32-bit box
16:29 < hypertux> and set GOARCH as amd64
16:29 < aiju> however, if you want to be cool, you still set them
16:29 -!- artefon [~thiago@dhcp16.usuarios.dcc.ufmg.br] has joined #go-nuts
16:29 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
16:29 < hypertux> then I looked at the installation instructions, and they
had no info about setting them anymore
16:30 < hypertux> well, at least not in a mandatory manner
16:30 < aiju> cross compiling is a piece of cake with Go
16:30 < aiju> GOARCH=amd64 GOOS=linux ./all.bash and there you go
16:30 -!- cde [~cde@unaffiliated/cde] has quit [Quit: leaving]
16:30 -!- rleland [~rleland@74.125.57.36] has joined #go-nuts
16:31 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
16:31 -!- dchest [5f9b34f1@gateway/web/freenode/ip.95.155.52.241] has joined
#go-nuts
16:31 -!- cde [~cde@unaffiliated/cde] has joined #go-nuts
16:33 < dchest> Hi. Is there an easy way to do copy from io.Reader to two
io.Writers at once?
16:34 < hypertux> look up MultiWriter
16:35 < dchest> thanks!
16:35 < hypertux> it's in the io package, and looks like what you are asking
for
16:35 -!- sauerbraten [~sauerbrat@p508CFD03.dip.t-dialin.net] has quit [Remote
host closed the connection]
16:36 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Ping timeout: 240 seconds]
16:37 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-178-214.clienti.tiscali.it] has
joined #go-nuts
16:37 < wrtp> wm_eddie: all you need is $GOROOT
16:37 -!- hearts-torn [~support@92.26.128.58] has joined #go-nuts
16:37 < wrtp> you can add other env vars to taste
16:38 < hearts-torn> hi there folks is there a compiler for windows to
compile go code as i would like to move from c+= to google go code
16:38 < hearts-torn> c++ even
16:38 < hypertux> wrtp: you don't even need GOROOT
16:39 < hypertux> wrtp: it defaults to wherever src/ is located
16:39 -!- femtoo [~femto@95-89-248-48-dynip.superkabel.de] has joined #go-nuts
16:40 < hypertux> unless you want to just call "make'
16:42 < erus_> hearts-torn: search google for gomingw
16:42 < erus_> then read getting started at golang.org
16:43 < hearts-torn> gowin32_2011-02-01.1_installer.exe this one ?
16:44 < rm445> that would seem to be the one.
http://code.google.com/p/gomingw/downloads/list
16:44 < hearts-torn> ok rm445 but the getting started is for nix users
16:44 < hearts-torn> im using windows xp
16:44 < dchest> hypertux: it solved my problem, thanks again!
16:45 -!- femtoo [~femto@95-89-248-48-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
16:45 -!- nighty__ [~nighty@x122091.ppp.asahi-net.or.jp] has quit [Ping timeout:
240 seconds]
16:46 < rm445> hearts-torn: I suggest you just give it a go, there will be a
compiler and a linker and you can probably get it all working easily in a cmd
window.
16:47 < rm445> right click on my computer if you want to set your PATH
16:47 < rm445> I haven't tried it, but mingw was always pretty easy to get
going, you just plonked it at c:\mingw and put it in your path and all the
binaries worked.
16:48 < hearts-torn> its sats the tool did all that
16:48 < hearts-torn> ahah
16:48 < hearts-torn> i have d:\go folder
16:48 < hearts-torn> i put my apps in there?
16:49 < rm445> you probably put your apps in My Documents or whatever
16:51 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has quit [Read error:
Connection reset by peer]
16:51 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts
16:51 < rm445> if you open up a prompt and either 6g or 8g works, then
everything is probably good.
16:53 < hearts-torn> 8g working but loads of error
16:53 < hearts-torn> 6 g fucked
16:54 < rm445> don't worry, you only want one of them (8g if 32-bit windows,
6g if 64-bit windows)
16:55 < hearts-torn> ah i c
16:55 < hearts-torn> shud i not see the ouput of the code now its correct ?
im not seeing the word hello
16:55 < hearts-torn> :(
16:55 -!- gabriel9 [~gabriel9@93.157.192.28] has left #go-nuts ["Konversation
terminated!"]
16:55 < cde> hearts-torn: I'd recommend you compile the lastest release from
mercurial with mingw
16:55 < cde> it's fairly easy to do
16:56 < hearts-torn> when will an acutal compiler program be released
16:56 < hearts-torn> ?
16:56 < rm445> 8l (or 6l) is the linker.  8g hello.go compiles hello.go into
hello.8 (an object file) 8l -o hello.exe hello.8 makes an executable.
16:56 < rm445> Then you run hello.exe to see the output
16:56 < hearts-torn> i mean like a prgramming tool for windows
16:57 < hearts-torn> like you put code into prgram
16:57 < hearts-torn> and then compile using program
16:57 -!- erus_ [50b135f2@gateway/web/freenode/ip.80.177.53.242] has quit [Ping
timeout: 244 seconds]
16:57 < hearts-torn> then program shows u output rather than all the commnd
line crap
16:57 < rm445> That's an IDE, an Integrated Development Environment, anyone
who has written one could add Go support if they wanted.
16:58 < rm445> I don't blame you for wanting one, people who develop on
windows seem to like them.  Whereas on other OSes there are lots of helpful things
that make working with the command-line crap much easier.
16:58 < hearts-torn> yeh that the one
16:58 < hearts-torn> yeh ie linux
16:59 < hearts-torn> i take it there isnt an ide yet then :(
16:59 * hearts-torn crys
16:59 < hearts-torn> bk to cacky c++ and opengl then
16:59 < rm445> So in short I don't think anyone 'official' is going to write
an IDE, but if Go becomes popular, all the popular IDEs will add support for it in
the end.
17:00 * hearts-torn kicks google u shud of thought of this and made one
17:00 < hearts-torn> leading it experts but they dont make an ide for there
product
17:00 < foocraft> hi all
17:00 * hearts-torn tuts
17:00 < foocraft> is there any way I can force the Go runtime to treat go
routines as separate threads?
17:00 -!- ildorn [~ildorn@vpnclient-241-149.extern.uni-ulm.de] has joined #go-nuts
17:00 < nsf> hearts-torn: there is a goclipse:
http://code.google.com/p/goclipse/
17:01 < nsf> but please don't ask me about compiling gocode on windows
17:01 < foocraft> (heh nsf just like that email)
17:01 < nsf> ask goclipse guys to compile it for you :)
17:01 < nsf> foocraft: :D
17:01 * foocraft throws Next buttons on every one who uses windows
17:02 < rm445> hearts-torn: also IntelliJ apparently:
http://www.philipandrew.com/?p=46
17:03 < foocraft> hehe googling "threading in Go" can teach me a lot about a
lot of things that I should *not* know about women
17:04 < nsf> foocraft: lol
17:04 < decaf> that plugin doesn't work with latest version of intellij idea
17:04 < decaf> ide projects are in alpha stage
17:04 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has joined #go-nuts
17:04 < nsf> always
17:04 < nsf> :D
17:05 < nsf> at least codeblocks experience tells how much time and effort
creating an IDE can take
17:06 < nsf> but it's quite nice for C and C++ and now with libclang it will
receive nice code completion at some point
17:06 < foocraft> for vim users, I've written a full IDE: 1) write this in
your vimrc map <f5> <esc>:w<cr>:!<up><cr>
17:06 < nsf> for vim there is the gocode
17:06 < nsf> but it's for linux/mac vim users only
17:06 < nsf> sort of
17:07 < foocraft> gocode?
17:07 < nsf> https://github.com/nsf/gocode
17:07 < decaf> plugin for a java ide would work if go was a java ripoff
17:07 < nsf> an awesome autocompletion daemon
17:07 < nsf> written by one very smart guy, lol
17:07 < nsf> :)
17:08 < hypertux> nsf: who would that be?  :-P
17:08 < nsf> :D
17:08 < hypertux> nsf: I love gocode, by the way
17:08 < nsf> me too, lol
17:08 < nsf> now I'm writing ccode for myself
17:08 < nsf> (for C)
17:08 < nsf> :D
17:08 < foocraft> nsf, noicee :) I might use it
17:09 < nsf> but it's even more unportable, although there is a guy that
helps me with testing on mac
17:09 < foocraft> I believe there should exist a ctags solution to this
though (nsf, you would know)
17:09 < nsf> foocraft: https://github.com/nsf/ccode
17:09 < nsf> it's kind of better
17:09 < nsf> it uses libclang's autocompletion
17:09 < nsf> but I've just started ccode
17:09 < nsf> two days ago
17:10 < foocraft> so does it work with CTRL+P?
17:10 < foocraft> or is it auto in the IDE sense?
17:11 < nsf> well, it's the same basically as gocode
17:11 < foocraft> s/IDE sense/distracting IDE sense/
17:11 < nsf> plugin for vim + <c-x><c-o>
17:11 < nsf> I don't do any kind of automatic popups intentionally
17:11 < nsf> if you want that it can be done in vim
17:11 -!- Aco- [~MYOB@r1k2s1.freakyhosting.nl] has joined #go-nuts
17:11 < hypertux> and we all appreciate that because sometimes, we know what
we want to type
17:12 < hypertux> other times, we need some help
17:12 < nsf> exactly
17:12 < foocraft> yeah, map every key press in insert mode to
<ctrl>P(key pressed)
17:12 < nsf> using autocompletion as a reminder not as a helper
17:12 < nsf> imho a good idea
17:13 < foocraft> (tbqh, most IDE users have a lot of belief issues when it
comes to "What does the API provide?" and/or "How does the IDE do the
compiling/linking/makefile etc."
17:13 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
17:14 < nsf> yeah, it's kind of lame
17:14 < nsf> command line teaches you a lot of things
17:15 < foocraft> while [ 0 ] ; do ./thank nsf & done
17:15 < foocraft> thankbomb :p
17:15 < mdxi> xcode does a good job with tabcomplete stuffs -- but it pretty
much has to, since the Foundation and Cocoa frameworks are enormous
17:15 < nsf> but bash syntax teaches you the only thing: how you shouldn't
make a syntax for a language
17:15 < mdxi> it was the first DE in a long time that i didn't
automatically, rabidly hate
17:15 < cde> I like nsf.  but then again, I'm prejudiced towards
three-letter nicks
17:16 -!- gabriel9 [~gabriel9@93.157.192.28] has left #go-nuts []
17:16 < foocraft> lemme see here
17:16 < nsf> mdxi: well, xcode 3 uses libclang
17:16 < nsf> afaik
17:16 < fct> okay that doesn't sound right at all
17:16 < fct> it's like a rabbit saying a swear word
17:16 < nsf> :D
17:17 < mdxi> nsf: yes.  and clang/llvm are freakin' awesome.
compiler-as-a-service blew my mind.
17:17 < foocraft> mdxi, what!?
17:18 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
17:18 < nsf> it's not like it's very awesome, but currently it's the only
framework of that kind
17:18 < nsf> literally, there are no such things for C/C++/ObjC, especially
with BSD license
17:18 < foocraft> I didn't know llvm had a compiler-as-a-service thing going
on
17:19 < nsf> clang is a very promising compiler
17:19 < nsf> and a library :D
17:19 < foocraft> I love clang, but I don't know anything about a service
arch for a compiler
17:20 < nsf> I have no idea what it means also
17:20 < nsf> I guess it's about their philosophy
17:20 < nsf> of making a library and a tiny frontend on top of it
17:21 < nsf> like clang is basically a libclang, which provides things like
indexing, refactoring, autocompletion
17:21 < nsf> and then it's a compiler
17:21 < nsf> the same with LLVM, it's a library and then it's a low leve
bytecode compiler
17:21 < nsf> level*
17:21 < nsf> and JIT of course
17:22 < foocraft> but of course, 8g is not built on LLVM?
17:22 < nsf> no
17:22 < mdxi> "library" is probably a better word, yes.  "service" is how i
thought about it, because seeing how clang was reusing llvm internals made me
think about other awesome things you could do
17:22 < nsf> http://code.google.com/p/gofrontend/
17:22 < nsf> there is a nice project by iant though
17:23 < nsf> I'm pretty sure it should be relatively easy to connect it to
llvm
17:23 < nsf> but
17:23 < nsf> I'm not sure about Go specific stuff
17:23 -!- ildorn [~ildorn@vpnclient-241-149.extern.uni-ulm.de] has quit [Ping
timeout: 272 seconds]
17:23 < nsf> how llvm will handle that and what amount of work it requires
17:23 < mdxi> yeah, sorry for veering off into general compiler chat :)
17:23 < nsf> and of course how fast will it be at the end
17:23 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
17:24 < nsf> mdxi: I'm sure there are a lot of people interested in compiler
construction
17:25 -!- ildorn [~ildorn@vpnclient-240-036.extern.uni-ulm.de] has joined #go-nuts
17:25 < Aco-> nsf: amber?
17:26 < nsf> amber?
17:26 < nsf> :)
17:26 < Aco-> how long have you been using go
17:27 < nsf> about a year
17:27 < nsf> but honestly more like half of a year
17:27 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 240 seconds]
17:27 -!- jodaro [~user@poquito.divinia.com] has joined #go-nuts
17:28 -!- iant [~iant@216.239.45.130] has joined #go-nuts
17:28 -!- mode/#go-nuts [+v iant] by ChanServ
17:32 < foocraft> I believe that Go is one of the most suitable languages
for robotics interfacing
17:32 < nsf> an...  interesting statement
17:32 < nsf> why?  :)
17:33 < foocraft> chans, amongst other things can model sensors very well
17:33 < nsf> ah, maybe
17:33 < jodaro> nice
17:33 < jodaro> robots are pretty cool, too
17:33 < Ina> Not that other languages can't replicate those.
17:33 < jodaro> and go is pretty cool
17:33 -!- Project-2501 [~Marvin@82.84.83.196] has joined #go-nuts
17:33 -!- ildorn [~ildorn@vpnclient-240-036.extern.uni-ulm.de] has quit [Ping
timeout: 276 seconds]
17:37 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-178-214.clienti.tiscali.it] has
quit [Ping timeout: 255 seconds]
17:37 -!- sauerbraten [~sauerbrat@p508CFD03.dip.t-dialin.net] has joined #go-nuts
17:52 -!- Venom_X [~pjacobs@adsl-99-20-147-171.dsl.aus2tx.sbcglobal.net] has
joined #go-nuts
17:54 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
17:55 -!- hearts-torn [~support@92.26.128.58] has quit [Quit: —I-n-v-i-s-i-o-n—
3.2 (July '10)]
17:57 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
17:59 < artefon> what does .string: definition of unknown kind 27:
type.redis.Message error mean?
18:00 < artefon> everything compiles correctly but i am getting this error
when linking the app
18:00 < aiju> artefon: sounds like an error worth reporting
18:00 < wrtp> artefon: try rebuilding everything from scratch
18:00 < artefon> ok
18:00 < skelterjohn> did you update go since the last time you compiled
something that you're linking to?
18:00 < temoto> artefon, did you upgrade go recently?
18:00 < artefon> i am updated
18:00 < artefon> i just rebuild
18:00 < aiju> what's up with the recent build?
18:00 < artefon> but i will try again
18:01 < skelterjohn> is something wrong with the recent build?
18:01 < artefon> just to be safe
18:01 < aiju> can't they fork that darn build off?
18:01 < skelterjohn> artefon: don't just update - ./clean.bash; ./all.bash
18:01 < aiju> the build is broken twice a week
18:01 < temoto> All builds are fine.  Various problems arise when you link
against libraries that were compiled with older versions of Go.
18:01 < skelterjohn> ^
18:02 < artefon> skelterjohn: i did clean
18:02 < temoto> artefon, you must also rebuild all third party packages
used.
18:02 < temoto> artefon, after each go update.
18:02 < temoto> i think goinstall -u does it.
18:02 < artefon> now it worked
18:02 < skelterjohn> goinstall pkgs are easy - just run "goinstall -u -a"
and it will do all of them
18:02 < skelterjohn> cool
18:02 < artefon> i missed one third party
18:02 < artefon> package
18:07 -!- fabled [~fabled@mail.fi.jw.org] has quit [Quit: Ex-Chat]
18:18 -!- nettok [~quassel@200.119.158.142] has joined #go-nuts
18:20 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
18:23 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
quit [Quit: leaving]
18:28 -!- erus` [~tommo@host86-174-85-242.range86-174.btcentralplus.com] has
joined #go-nuts
18:29 -!- erus` [~tommo@host86-174-85-242.range86-174.btcentralplus.com] has quit
[Remote host closed the connection]
18:29 -!- erus` [~tommo@host86-174-85-242.range86-174.btcentralplus.com] has
joined #go-nuts
18:30 -!- coudX [coud@vinarek1.kolej.mff.cuni.cz] has joined #go-nuts
18:30 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
18:31 -!- cafesofie [~cafesofie@ool-4a5978f2.dyn.optonline.net] has quit [Ping
timeout: 240 seconds]
18:32 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
18:32 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
18:32 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
18:33 -!- cafesofie [~cafesofie@ool-4a5978f2.dyn.optonline.net] has joined
#go-nuts
18:33 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Client
Quit]
18:36 -!- femtoo [~femto@95-89-248-48-dynip.superkabel.de] has joined #go-nuts
18:37 -!- erus` [~tommo@host86-174-85-242.range86-174.btcentralplus.com] has quit
[Ping timeout: 240 seconds]
18:38 -!- erus` [~tommo@host86-174-85-242.range86-174.btcentralplus.com] has
joined #go-nuts
18:39 < erus`> any linux whizes in here?
18:39 < erus`> i just had to modprobe rt2780sta to get my wireless card to
work
18:39 < erus`> will i have todo that every time i restart pc?
18:40 -!- sauerbraten [~sauerbrat@p508CFD03.dip.t-dialin.net] has quit [Ping
timeout: 276 seconds]
18:40 < foocraft> TIAS
18:40 < foocraft> I believe if it's blacklisted, you'd have to modprobe it
every time
18:41 -!- dchest [5f9b34f1@gateway/web/freenode/ip.95.155.52.241] has left
#go-nuts []
18:41 -!- sauerbraten [~sauerbrat@p508CFD03.dip.t-dialin.net] has joined #go-nuts
18:44 -!- dchest [~dchest@95.155.52.241] has joined #go-nuts
18:45 -!- chee [~chee@unaffiliated/chee] has quit [Ping timeout: 240 seconds]
18:46 -!- TheMue [~TheMue@p5DDF5537.dip.t-dialin.net] has joined #go-nuts
18:47 < erus`> can one target windows from go in linux?
18:47 < aiju> you can try GOOS=windows
18:47 < erus`> then rebuild?
18:47 < aiju> erus`: distribution?
18:47 < aiju> erus`: GOOS=windows ./all.bash
18:48 < erus`> will that produce 8g.exe?
18:48 < aiju> no, 8g for Linux
18:48 < aiju> but Windows libraries
18:48 < erus`> ah perfect
18:48 < aiju> and you can compile Windows executables with GOOS=windows
18:48 < aiju> (in theory)
18:49 < erus`> how does the windows binaries of 8g 8l etc get built?
18:49 < aiju> i have no clue
18:49 < erus`> i tried at work with cygwin
18:49 < erus`> no joy
18:49 < aiju> if GOHOSTOS=windows it should produce 8g.exe & co
18:53 -!- dforsyth_ [~dforsyth@egress-w.gni.yelpcorp.com] has joined #go-nuts
18:54 -!- DerHorst [~Horst@e176105037.adsl.alicedsl.de] has quit [Remote host
closed the connection]
18:59 -!- nutate [~rseymour@cacsag4.usc.edu] has joined #go-nuts
18:59 -!- artefon [~thiago@dhcp16.usuarios.dcc.ufmg.br] has quit [Quit: bye]
18:59 -!- nola_n [~nola_n@wsip-98-175-220-146.ri.ri.cox.net] has joined #go-nuts
19:01 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
19:01 -!- jodaro [~user@poquito.divinia.com] has quit [Ping timeout: 276 seconds]
19:01 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
19:03 -!- dforsyth_ [~dforsyth@egress-w.gni.yelpcorp.com] has quit [Quit:
Leaving...]
19:04 -!- dforsyth_ [~dforsyth@egress-w.gni.yelpcorp.com] has joined #go-nuts
19:05 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has quit
[Disconnected by services]
19:05 -!- JusticeFries_
[~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net] has joined #go-nuts
19:05 -!- dforsyth_ [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has joined
#go-nuts
19:06 -!- virtualsue [~chatzilla@nat/cisco/x-zovlstwmqqlkcjph] has quit [Ping
timeout: 260 seconds]
19:09 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Ping timeout: 255 seconds]
19:09 -!- JusticeFries_
[~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net] has quit [Ping
timeout: 240 seconds]
19:10 -!- tvw [~tv@e176005025.adsl.alicedsl.de] has quit [Remote host closed the
connection]
19:10 -!- tvw [~tv@e176005025.adsl.alicedsl.de] has joined #go-nuts
19:10 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
19:15 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
19:22 -!- qjcg [~qjcg@208.88.110.46] has joined #go-nuts
19:23 -!- qjcg [~qjcg@208.88.110.46] has left #go-nuts []
19:32 -!- willdye [~willdye@fern.dsndata.com] has joined #go-nuts
19:34 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Operation timed out]
19:35 -!- drd [~eric@compassing.net] has left #go-nuts []
19:36 -!- JusticeFries [~JusticeFr@49.sub-75-220-138.myvzw.com] has joined
#go-nuts
19:41 -!- JusticeFries [~JusticeFr@49.sub-75-220-138.myvzw.com] has quit [Quit:
JusticeFries]
19:42 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has quit [Remote host
closed the connection]
19:42 -!- laurus [~laurus@c-68-40-207-109.hsd1.mi.comcast.net] has joined #go-nuts
19:42 < laurus> Is there a plan to create something like the GNU Scientific
Library (GSL) for Go?
19:43 < aiju> what's that?
19:43 < aiju> something like bignum?
19:43 < laurus> aiju: http://www.gnu.org/software/gsl/
19:44 < aiju> if it's GNU, it's not a good idea to copy it :P
19:44 < laurus> aiju, heh, right.
19:44 < laurus> Well, someone wrote this: http://code.google.com/p/gomatrix/
19:45 < aiju> http://go-lang.cat-v.org/pure-go-libs maybe look here
19:46 < laurus> Yeah, that's how I found gomatrix
19:51 -!- Magnade [~Magnade@unaffiliated/magnade] has quit [Ping timeout: 264
seconds]
19:51 -!- Magnade_ [~Magnade@rno-pppoe1a-065.gbis.net] has joined #go-nuts
19:51 < laurus> Thanks aiju.
19:52 -!- Magnade [~Magnade@rno-pppoe1a-065.gbis.net] has quit [Changing host]
19:52 -!- Magnade [~Magnade@unaffiliated/magnade] has joined #go-nuts
19:52 -!- laurus [~laurus@c-68-40-207-109.hsd1.mi.comcast.net] has quit [Quit:
Leaving]
19:56 -!- adu [~ajr@pool-173-79-54-138.washdc.fios.verizon.net] has joined
#go-nuts
20:04 -!- femtoo [~femto@95-89-248-48-dynip.superkabel.de] has quit [Ping timeout:
246 seconds]
20:06 < plexdev> http://is.gd/refFcf by [Andrey Mirtchovski] in
go/doc/codelab/wiki/ -- Codelab/wiki: fix typo
20:07 < aiju> that probably broke the build again
20:09 -!- adu [~ajr@pool-173-79-54-138.washdc.fios.verizon.net] has quit [Quit:
adu]
20:10 -!- adu [~ajr@pool-173-79-54-138.washdc.fios.verizon.net] has joined
#go-nuts
20:11 -!- salty-horse [~ori@109.67.21.126] has joined #go-nuts
20:12 < TheMue> aiju: *rofl*
20:21 -!- Magnade [~Magnade@unaffiliated/magnade] has quit [Ping timeout: 246
seconds]
20:21 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
20:25 -!- Magnade_ [~Magnade@2607:f1a8:3:1e:d183:9f44:55aa:4887] has joined
#go-nuts
20:25 -!- Magnade_ [~Magnade@2607:f1a8:3:1e:d183:9f44:55aa:4887] has quit [Client
Quit]
20:25 -!- Magnade [~Magnade@2607:f1a8:3:1e:c1ed:b75e:8565:1b5c] has joined
#go-nuts
20:27 -!- Magnade [~Magnade@2607:f1a8:3:1e:c1ed:b75e:8565:1b5c] has quit [Changing
host]
20:27 -!- Magnade [~Magnade@unaffiliated/magnade] has joined #go-nuts
20:33 -!- Magnade [~Magnade@unaffiliated/magnade] has quit [Ping timeout: 272
seconds]
20:33 -!- Magnade [~Magnade@rno-pppoe1a-220.gbis.net] has joined #go-nuts
20:39 < willdye> For what it's worth, here are two links of possible
interest to the Go language community:
20:40 < willdye> The first is http://codegolf.stackexchange.com/ (IMO, it's
a very good place to show off examples of go programming)
20:41 < willdye> The second is
http://mailinator.blogspot.com/2009/06/beautiful-race-condition.html . Um,
actually i don't know if this is *directly* applicable to go or not, it's just
such a beautiful write-up of a race condition that i loved reading it.  plus now
i'm curious to know if the same bug could be done in go by mistake, or if some
feature of the language would prevent it from happening.
20:42 -!- bsr_ [4118b1fd@gateway/web/freenode/ip.65.24.177.253] has joined
#go-nuts
20:43 -!- Magnade [~Magnade@rno-pppoe1a-220.gbis.net] has quit [Changing host]
20:43 -!- Magnade [~Magnade@unaffiliated/magnade] has joined #go-nuts
20:43 -!- Magnade [~Magnade@unaffiliated/magnade] has left #go-nuts ["Ex-Chat"]
20:43 < willdye> Anyway, if you want to evangelize the language, that first
link (codegolf) looks like a very good place to post some code samples.  You may
also want to post a few new challenges, emphasizing things that are easy & elegant
to do in Go but not other languages.
20:44 -!- Kashia [~Kashia@port-92-200-74-207.dynamic.qsc.de] has joined #go-nuts
20:44 -!- Scorchin [~Scorchin@host86-145-11-157.range86-145.btcentralplus.com] has
joined #go-nuts
20:46 < bsr_> A quick qn..  I have seen the below expression val.(TimeReal)
, where val is an interface, and TimeReal is a concrete type..  what does this
expression do?
20:47 < bsr_> type conversion?
20:48 < Namegduf> It extracts the given type from that interface.
20:48 < Namegduf> It is unsafe in that it asserts that the type in the
interface is that, and if it isn't, it will panic.
20:48 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
20:49 < bsr_> thank you very much..  I could proceed now..
20:49 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
20:51 < hypertux> bsr_: if you're going to use it, you should probably use
the "comma ok" version
20:51 < hypertux> newVal, ok := val.(Type)
20:52 < bsr_> ok...  thanks...  meanwhile, I was looking at the spec
(http://golang.org/doc/go_spec.html) to see for details..  does this kind of
conversion has a formal name to it?  thanks
20:53 < aiju> type assertion
20:53 < bsr_> :-) that was quick
20:53 < bsr_> yup i saw it..  thanks guys
20:53 -!- decaf [~mehmet@95.10.172.95] has quit [Quit: Leaving]
21:00 < bsr_> Let me bother you all with a basic qn...  what is the best way
to reuse common algorithms/code in go..  similar to base class/mixins (scala)..
for eg: say, I have to types, list and fancylist, both needs a length method
21:00 < aiju> the best way is not to reuse them
21:00 < bsr_> I could have an interface, but I would have to implement it
twice to satidfy both types..
21:00 -!- sjd [~sjd@4.78.243.126] has joined #go-nuts
21:00 < aiju> most list code is so trivial that "reusing" it is silly
21:01 < bsr_> sorry, for the trivial example..  i was just generalizing
21:01 < aiju> well, in the general case, use interfaces
21:02 < aiju> for your objects
21:02 < aiju> if you want to implement a hashmap (note that there is already
one in the language), have a interface with a Hash function for the key and an
empty interface for the value
21:03 -!- keithgcascio [~keithcasc@nat/google/x-sszjoxfpsmgajcqf] has joined
#go-nuts
21:03 < aiju> for a sort algorithm, have a Compare method ...
21:04 < bsr_> ok then, suppose the new hashmap has some common functionality
(independent of type),
21:05 < bsr_> is there a way to group them , and use without
21:05 -!- erus` [~tommo@host86-174-85-242.range86-174.btcentralplus.com] has quit
[Remote host closed the connection]
21:05 < aiju> group what?
21:05 < bsr_> implementing again for hashmap
21:05 < aiju> sorry, i don't quite get your point
21:05 < bsr_> say, size(), name()
21:06 < aiju> yeah, those could be methods of the Hashmap
21:06 < bsr_> it can be common for
21:06 < bsr_> different map implementation..
21:06 < aiju> that's getting tricky
21:06 < aiju> i'd simply repeat the code ...  really
21:06 < bsr_> yup :-) glad u understood
21:07 < aiju> DRY (don't repeat yourself) is a really stupid pattern imho
21:07 < aiju> just as worse as "don't use goto" and "don't use lookup
tables"
21:07 < aiju> you may (think you) sound clever, but you'll end up with a
huge mess in any real program
21:07 < bsr_> well, it has significance if u consider a big project..  but,
lately I too came to realize the prize of premeture optimization, worries etc
21:08 < aiju> hehe
21:08 < aiju> you shouldn't worry about Go theory too much, Go is a
practical language
21:08 < aiju> if you'll try it out you'll notice how neat everything fits
...
21:08 < bsr_> thank u so much..  meanwhile i was searching in the group
21:08 < bsr_> i saw a thread...
21:09 < bsr_>
http://groups.google.com/group/golang-nuts/browse_thread/thread/c7a5b41fed2723cc/d916e5c8b11f6d7e?lnk=gst&q=TimeInt#d916e5c8b11f6d7e
21:09 < bsr_> in that rob talks about an approach..
21:10 < bsr_> honestly, I am yet to fully understand the usage of interfaces
correctly
21:10 < bsr_> if u read that, would u consider it as practical
21:10 < bsr_> thanks for all ur time,
21:10 < aiju> well, you use interfaces when you write some piece of code and
want to accept it generic input
21:11 < aiju> so you specify what methods the caller should provide
21:11 < aiju> *want it to accept
21:12 < aiju> making proper use of interfaces and channels needs some
practice imho, feel free to experiment
21:12 < bsr_> ya...  trying hard..
21:14 < bsr_> i am curious, as u already been through, how do u debug stuff
in go??
21:14 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
21:14 < aiju> println
21:14 < bsr_> :-) ..
21:14 < aiju> there is also some arguably funny gdb support
21:14 < aiju> not too usable, but it works
21:14 * jumzi cheers to gdb
21:14 < bsr_> ok..  thanks
21:16 < bsr_> aiju -thanks for ur time..  let me try more to get a grip of
the interface usage
21:17 -!- snearch [~snearch@f053007038.adsl.alicedsl.de] has joined #go-nuts
21:18 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
21:23 -!- vinisterx [~ryan@74-129-210-121.dhcp.insightbb.com] has joined #go-nuts
21:25 -!- vzx [~ryan@74-129-203-76.dhcp.insightbb.com] has quit [Ping timeout: 240
seconds]
21:27 -!- sauerbraten [~sauerbrat@p508CFD03.dip.t-dialin.net] has quit [Ping
timeout: 260 seconds]
21:28 -!- TheMue [~TheMue@p5DDF5537.dip.t-dialin.net] has quit [Quit: TheMue]
21:30 -!- snearch [~snearch@f053007038.adsl.alicedsl.de] has quit [Quit:
Verlassend]
21:33 -!- adu [~ajr@pool-173-79-54-138.washdc.fios.verizon.net] has quit [Quit:
adu]
21:37 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
21:39 -!- m4dh4tt3r [~Adium@81.sub-75-210-217.myvzw.com] has joined #go-nuts
21:40 -!- nola_n [~nola_n@wsip-98-175-220-146.ri.ri.cox.net] has quit [Quit:
nola_n]
21:48 -!- rl [~rleland@84-74-142-37.dclient.hispeed.ch] has joined #go-nuts
21:49 < salty-horse> what's an "unqualified type name"?  it's only mentioned
once in the spec: http://golang.org/doc/go_spec.html#Struct_types
21:50 < rl> I want to play around with Go. Any suggestions as to what would
be cool to write in Go? (something that lets me play around with go routines!) I
have a friend who always writes a webserver as a kind of "hello world" in a new
programming language, but Go seems to have that covered.
21:51 < rl> salty-horse: To be honest I have no idea, but reading the doc my
guess would be type-name without qualifiers
21:51 < rl> As in how *T2 gets the name T2 (without the *)
21:51 < salty-horse> makes sense.  maybe I should file a bug...
21:52 < rl> that's not how it actually works?
21:53 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
21:55 -!- vinisterx [~ryan@74-129-210-121.dhcp.insightbb.com] has quit [Read
error: Connection reset by peer]
21:55 < salty-horse> rl, what do you mean by "it"?
21:55 < salty-horse> rl, oh, it is explained:
http://golang.org/doc/go_spec.html#Qualified_identifiers
21:55 -!- ildorn [~ildorn@dslb-188-105-120-139.pools.arcor-ip.net] has joined
#go-nuts
21:56 -!- nettok_ [~quassel@200.119.164.53] has joined #go-nuts
21:56 -!- vinisterx [~ryan@74-129-210-121.dhcp.insightbb.com] has joined #go-nuts
21:58 -!- nettok [~quassel@200.119.158.142] has quit [Ping timeout: 246 seconds]
21:58 < rm445> I'm no expert on the spec, but I don't think the thing about
package names is relevant.  It seems to just mean the type without the * is the
field name.
21:59 < rm445> so if you had a struct foo with an anonymous *int field, the
name would be foo.int
22:00 < rm445> and if *P.T4 is a pointer to struct bar, it would be foo.bar
22:01 -!- bsr_ [4118b1fd@gateway/web/freenode/ip.65.24.177.253] has quit [Ping
timeout: 245 seconds]
22:02 < rl> Yeah, that's what they mean by the unqualified name I suspect
22:03 -!- Venom_X [~pjacobs@adsl-99-20-147-171.dsl.aus2tx.sbcglobal.net] has quit
[Quit: Venom_X]
22:10 -!- chee [~chee@unaffiliated/chee] has joined #go-nuts
22:10 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has joined
#go-nuts
22:10 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
22:11 < chee> is here a list anywhere of the linux distributions that have a
go package in their repository?
22:11 < fenicks> yep
22:11 < chee> s/h/th/
22:12 < chee> fenicks: oh ho?  do you have it to hand/
22:12 < chee> ?
22:13 -!- coudX [coud@vinarek1.kolej.mff.cuni.cz] has quit [Ping timeout: 250
seconds]
22:14 < rm445> salty-horse: I just had to satisfy myself about what you were
talking about, this little program works as expected.  http://pastie.org/1538665
22:14 < fenicks> chee: I don't
22:15 < chee> i'm not sure how to google for it
22:18 < salty-horse> rm445, that doesn't demonstrate the "real" meaning as I
understand it.  to test that, you need a struct with an anonymous type of, say,
"P.T1" where P is a package and T1 is a typename.  then, T1 will be the field name
22:18 < chee> fenicks: how should I try to find it, sir?
22:21 -!- m4dh4tt3r [~Adium@81.sub-75-210-217.myvzw.com] has quit [Ping timeout:
276 seconds]
22:21 < fenicks> chee: I do not
think anybody built a linux package because Go is changing all the time
22:22 < chee> fenicks: i know that at least Arch Linux has a go package
22:23 < fenicks> oh ! Arch linux guys must be reactif
22:24 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
22:24 < Namegduf> I suggest not using them even if they exist
22:26 -!- wrtp [~rog@92.17.35.133] has left #go-nuts []
22:26 -!- m4dh4tt3r
[~Adium@75.144.24.109-BusName-walnutcreek.ca.hfc.comcastbusiness.net] has joined
#go-nuts
22:30 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has quit [Remote host closed the connection]
22:31 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
22:34 -!- ShadowIce` [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:36 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts
22:39 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4]
22:40 < plexdev> http://is.gd/YMV7Z8 by [Rob Pike] in 4 subdirs of
go/src/cmd/ -- loader: move the XputY routines into the ld directory.
22:53 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
22:55 -!- tvw [~tv@e176005025.adsl.alicedsl.de] has quit [Remote host closed the
connection]
22:55 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has quit [Remote
host closed the connection]
22:55 < rl> so what are people using go for?
22:56 < dforsyth> writing programs
22:56 < kimelto> fun?
22:56 < plexdev> http://is.gd/m1pwJJ by [Rob Pike] in 2 subdirs of
go/src/cmd/ -- ld: fix build (uvlong vs uint64 conflict on freebsd)
22:56 < plexdev> http://is.gd/DnCBeO by [Russ Cox] in go/src/pkg/syscall/ --
syscall: fix arm build
22:57 -!- vinisterx [~ryan@74-129-210-121.dhcp.insightbb.com] has quit [Ping
timeout: 240 seconds]
22:57 < rl> writing what kind of programs?
22:57 < dforsyth> im writing a text editor at the moment
22:58 < jesusaurus> im doing some work with audio processing
22:58 < rl> neat.  getting to the point where you can write the text editor
using the editor itself?  that'd be cool :p
22:59 < rl> jesusaurus: there are proper libraries for audio processing in
go?  or did you write your own?
22:59 < jesusaurus> its really easy to import C libraries
22:59 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
22:59 < dforsyth> i can already edit the editor in itself.  i broke it this
weekend though to add line numbers and proper screen mapping
22:59 < jesusaurus> so we wrote some simple wrappers for ffmpeg
22:59 -!- plainhao [~plainhao@208.75.85.237] has quit [Quit: plainhao]
23:00 < rl> jesusaurus: oh yeah, i heard about that, the reuse of C
libraries seems like a really useful feature for a new language
23:01 < rl> dforsyth: so is it more like vim, emacs, or notepad?  :p
23:01 < dforsyth> at this point its pretty much a nvi clone in terms of
functionality
23:01 < dforsyth> modal and such
23:05 -!- barkmore [~textual@64.134.140.88] has joined #go-nuts
23:09 -!- barkmore [~textual@64.134.140.88] has quit [Remote host closed the
connection]
23:13 < plexdev> http://is.gd/x76gnV by [Ken Thompson] in go/src/cmd/5g/ --
peep: fix bug in peep optimizer.
23:21 -!- salty-horse [~ori@109.67.21.126] has quit [Quit: Leaving]
23:22 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
23:23 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the
connection]
23:24 < skelterjohn> evening
23:32 -!- vinisterx [~ryan@74-129-210-121.dhcp.insightbb.com] has joined #go-nuts
23:39 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit
[Disconnected by services]
23:39 < dforsyth> are there any alternate go compilers in the works?
23:39 < dforsyth> not that i have a problem with 6/8g or gccgo, just curious
23:41 < cde> there is ergo iirc
23:42 -!- Project-2501 [~Marvin@82.84.83.196] has quit [Quit: E se abbasso questa
leva che succ...]
23:45 < skelterjohn> ergo is the gc in go compiler, right?
23:45 < skelterjohn> fun: http://newquistsolutions.com/blog/ <- ergo blog
23:46 < exch> afaik it's a windows only Go compiler (commercial product)
23:47 < exch> wtf are they doing?  O_o
23:47 < skelterjohn> weird to have a commercial go product
23:47 < skelterjohn> lol
23:48 < skelterjohn> exch: what are you referring to, exactly?
23:48 < exch> the rather convoluted build environment they are talking abuot
on the blog
23:49 < skelterjohn> ah
23:49 < exch> it's almost as if they took Go. removed it corsscompilery
goodness and then deliberately set out to use it to cross compile
23:49 < exch> massochistic comes to mind ;p
23:50 < exch> "Go is too easy otherwise.  people won't take us seriously!"
:p
23:51 -!- chee [~chee@unaffiliated/chee] has quit [Ping timeout: 240 seconds]
23:53 -!- serbaut [~joakims@88.80.182.68] has quit [Read error: Connection reset
by peer]
23:54 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Ping timeout: 240 seconds]
23:55 -!- serbaut [~joakims@88.80.182.68] has joined #go-nuts
23:57 < rm445> that's pretty interesting - anyone used it?
23:57 < rm445> I wonder if they actually intend to sell it, or are just
praying microsoft want to acquire a Go compiler for visual studio
23:58 -!- stalled [~stalled@unaffiliated/stalled] has quit [Read error: Connection
reset by peer]
--- Log closed Tue Feb 08 00:00:05 2011