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

--- Log opened Mon Feb 22 00:00:13 2010
00:01 -!- MarkBao [~MarkBao@75-144-186-92-NewEngland.hfc.comcastbusiness.net] has
joined #go-nuts
00:07 -!- MarkBao [~MarkBao@75-144-186-92-NewEngland.hfc.comcastbusiness.net] has
quit [Ping timeout: 260 seconds]
00:09 -!- homiziado [~ernestofr@88.210.105.175.rev.optimus.pt] has joined #go-nuts
00:10 -!- nighty^ [~nighty@210.188.173.245] has joined #go-nuts
00:13 -!- leonod [~Andreas@zreahese.hus.sgsnet.se] has quit [Quit: Leaving]
00:25 -!- nchaimov [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has quit
[Remote host closed the connection]
00:25 -!- nchaimov [~cowtown@vpn174-172.uoregon.edu] has joined #go-nuts
00:31 -!- nchaimov_ [~cowtown@c-71-237-208-209.hsd1.or.comcast.net] has joined
#go-nuts
00:33 -!- sudi [~chatzilla@dslb-084-056-015-133.pools.arcor-ip.net] has joined
#go-nuts
00:35 -!- gnuvince [~vince@72.0.221.19] has quit [Read error: Operation timed out]
00:35 -!- adu [~ajr@pool-173-66-253-196.washdc.fios.verizon.net] has joined
#go-nuts
00:35 -!- nchaimov [~cowtown@vpn174-172.uoregon.edu] has quit [Ping timeout: 246
seconds]
00:39 -!- homiziado [~ernestofr@88.210.105.175.rev.optimus.pt] has quit [Quit:
homiziado]
00:39 -!- gnuvince [~vince@72.0.215.40] has joined #go-nuts
00:43 -!- skelterjohn [~jasmuth@c-76-124-22-198.hsd1.nj.comcast.net] has joined
#go-nuts
00:43 -!- skelterjohn [~jasmuth@c-76-124-22-198.hsd1.nj.comcast.net] has quit
[Client Quit]
00:50 -!- kota1111 [~kota1111@gw2.kbmj.jp] has joined #go-nuts
00:54 -!- monty_hall [~sprague_r@adsl-75-51-110-82.dsl.sgnwmi.sbcglobal.net] has
quit [Quit: Leaving.]
00:56 -!- exch [~nuada@h144170.upc-h.chello.nl] has joined #go-nuts
00:59 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
00:59 -!- mbarkhau [~koloss@p54A7FEBB.dip.t-dialin.net] has quit [Quit: Leaving.]
01:05 -!- skelterjohn [~jasmuth@c-76-124-22-198.hsd1.nj.comcast.net] has joined
#go-nuts
01:09 -!- skelterjohn [~jasmuth@c-76-124-22-198.hsd1.nj.comcast.net] has quit
[Client Quit]
01:12 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has quit [Read
error: Connection reset by peer]
01:15 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
01:18 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
01:30 -!- michaelnovakjr [~mnovak@ool-18b83159.dyn.optonline.net] has joined
#go-nuts
01:33 -!- rbraley [~rbraley@ip72-222-129-178.ph.ph.cox.net] has joined #go-nuts
01:45 -!- carllerche [~carllerch@c-69-181-129-204.hsd1.ca.comcast.net] has joined
#go-nuts
01:50 < plexdev> http://is.gd/8TOMU by [Ken Thompson] in go/src/cmd/6g/ --
all done except -
01:54 -!- sudi [~chatzilla@dslb-084-056-015-133.pools.arcor-ip.net] has quit
[Quit: ChatZilla 0.9.86 [Firefox 3.5.8/20100214235958]]
01:56 -!- KirkMcDonald [~Kirk@pysoy/developer/KirkMcDonald] has quit [Ping
timeout: 264 seconds]
01:59 -!- monty_hall [~sprague_r@adsl-75-51-110-82.dsl.sgnwmi.sbcglobal.net] has
joined #go-nuts
02:00 -!- andrewh [~andrewh@94-194-56-42.zone8.bethere.co.uk] has quit [Ping
timeout: 264 seconds]
02:02 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Read error: Connection reset by peer]
02:02 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined
#go-nuts
02:03 -!- mat__ [~mat@prod2.absolight.net] has joined #go-nuts
02:04 -!- mat_ [~mat@prod2.absolight.net] has quit [Read error: Connection reset
by peer]
02:16 -!- nutate [~rseymour@2002:629a:411c:0:21b:63ff:fe05:1203] has joined
#go-nuts
02:16 -!- nutate [~rseymour@2002:629a:411c:0:21b:63ff:fe05:1203] has quit [Excess
Flood]
02:17 -!- nutate [~rseymour@2002:629a:411c:0:21b:63ff:fe05:1203] has joined
#go-nuts
02:21 -!- shellrie [~shellrie@216.104.102.97.cfl.res.rr.com] has joined #go-nuts
02:23 -!- skelterjohn [~jasmuth@c-76-124-22-198.hsd1.nj.comcast.net] has joined
#go-nuts
02:26 -!- nutate [~rseymour@2002:629a:411c:0:21b:63ff:fe05:1203] has quit [Quit:
nutate]
02:27 -!- skelterjohn [~jasmuth@c-76-124-22-198.hsd1.nj.comcast.net] has quit
[Client Quit]
02:29 -!- nutate [~rseymour@cpe-98-154-65-28.socal.res.rr.com] has joined #go-nuts
02:34 -!- andy1 [~aolsen@host-19.pl107798-3.fiber.net] has joined #go-nuts
03:07 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Remote host closed
the connection]
03:07 < plexdev> http://is.gd/8U2HV by [Russ Cox] in go/test/ -- test:
rename nul.go to nul1.go
03:10 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit [Read
error: Connection reset by peer]
03:11 -!- Xeon [~chatzilla@118.126.12.53] has quit [Ping timeout: 252 seconds]
03:12 -!- yatoo [~marcus@host86-153-224-40.range86-153.btcentralplus.com] has quit
[Ping timeout: 268 seconds]
03:39 -!- shellrie [~shellrie@216.104.102.97.cfl.res.rr.com] has quit [Quit:
Leaving]
03:49 -!- nutate [~rseymour@cpe-98-154-65-28.socal.res.rr.com] has quit [Quit: I'm
outta heee-eere]
03:54 -!- carllerche [~carllerch@c-69-181-129-204.hsd1.ca.comcast.net] has quit
[Quit: carllerche]
03:54 < plexdev> http://is.gd/8UaL5 by [Michael Hoisie] in go/src/pkg/http/
-- http request URI should never be empty
03:57 -!- ericvh [~ericvh@cpe-70-113-78-14.austin.res.rr.com] has left #go-nuts []
04:06 -!- carllerche [~carllerch@c-69-181-129-204.hsd1.ca.comcast.net] has joined
#go-nuts
04:07 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
04:13 -!- pct [~pct@deep.tw] has quit [Ping timeout: 252 seconds]
04:23 -!- Will_D [~Will@c-67-183-109-188.hsd1.wa.comcast.net] has joined #go-nuts
04:32 -!- nettok_ [~netto@200.119.151.2] has joined #go-nuts
04:34 -!- andy1 [~aolsen@host-19.pl107798-3.fiber.net] has left #go-nuts []
04:34 -!- nettok [~netto@200.119.151.3] has quit [Ping timeout: 248 seconds]
04:41 -!- nettok_ [~netto@200.119.151.2] has quit [Quit: Ex-Chat]
04:42 -!- nettok [~netto@200.119.151.2] has joined #go-nuts
04:53 -!- itrekkie [~itrekkie@ip72-200-104-177.tc.ph.cox.net] has joined #go-nuts
04:57 * Will_D finds possible bug
05:02 -!- droid001 [~g1@p4FDCBE46.dip.t-dialin.net] has quit [Ping timeout: 256
seconds]
05:08 -!- sinuhe [~sinuhe@kaptah.deevans.net] has quit [Quit: leaving]
05:10 -!- itrekkie [~itrekkie@ip72-200-104-177.tc.ph.cox.net] has quit [Quit:
itrekkie]
05:14 -!- Sherlock [~outside@zednarley.com] has joined #go-nuts
05:14 -!- Chris [~chris@unaffiliated/chris] has joined #go-nuts
05:14 -!- Chris [~chris@unaffiliated/chris] has left #go-nuts []
05:14 < Sherlock> What is the current status of Go?
05:15 < uriel> what is that question supposed to mean?
05:15 < uriel> deffine 'status'
05:16 < Sherlock> "stable enough to use in a practical environment"
05:16 < Sherlock> "not recomended for use above testing"
05:16 < uriel> deffine 'practical environment'
05:16 < Sherlock> "very stable, like pytho"
05:16 < Sherlock> n
05:16 < uriel> I (and many others) find it quite practical
05:17 < uriel> it is clearly not finished (some parts of the language itself
are not completely settled down, but most of the important bits are quite solid)
05:17 < uriel> and the implementation is not quite ready for 'mission
critical' uses, but can be used in production with some care
05:17 < uriel> (eg., golang.org runs go)
05:18 < uriel> in short, like every other tool, it depends on what you want
to use it for, and in many cases the only way to really find out is to try it out
05:22 -!- MarkBao [~MarkBao@pool-173-76-27-66.bstnma.fios.verizon.net] has joined
#go-nuts
05:25 -!- Will_D [~Will@c-67-183-109-188.hsd1.wa.comcast.net] has quit [Ping
timeout: 252 seconds]
05:28 -!- carllerche [~carllerch@c-69-181-129-204.hsd1.ca.comcast.net] has quit
[Quit: carllerche]
05:28 -!- stalled [~411@unaffiliated/stalled] has quit [Ping timeout: 240 seconds]
05:31 -!- stalled [~411@unaffiliated/stalled] has joined #go-nuts
05:41 -!- aho [~nya@g228002062.adsl.alicedsl.de] has quit [Ping timeout: 246
seconds]
05:46 -!- Cyprien__ [Cyprien@199-38.3-85.cust.bluewin.ch] has quit [Ping timeout:
276 seconds]
06:05 -!- nettok [~netto@200.119.151.2] has quit [Ping timeout: 260 seconds]
06:13 -!- nettok [~netto@200.119.151.7] has joined #go-nuts
06:14 -!- TaMonKein [~toni@87-95-64-67.bb.dnainternet.fi] has quit [Quit: Leaving]
06:42 -!- KillerX [~anant@145.116.234.40] has joined #go-nuts
06:42 -!- KillerX [~anant@145.116.234.40] has quit [Changing host]
06:42 -!- KillerX [~anant@gentoo/developer/KillerX] has joined #go-nuts
06:45 -!- caw [skyyy@phonzdesktop.rh.rit.edu] has quit []
06:49 -!- Macpunk [~macpunk@2002:48b1:1add:0:eee:e6ff:fec7:7eaa] has joined
#go-nuts
06:49 < Macpunk> Anyone available for a quick question about allocation and
the way Effective Go explains it?
06:51 < cbeck> May as well ask, and see if anyone can answer
06:51 < uriel> Macpunk: never ask to ask, just ask
06:52 < Macpunk> Fair enough, thank you.  :-)
06:52 < Macpunk> var v []int = make([]int, 100) // v now refers to a new
array of 100 ints
06:52 < Macpunk> I would assume v now refers to a slice of 100 ints...am I
wrong?
06:54 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
06:57 < uriel> I'm not sure, but that doesn't seem very idiomatic...
06:57 -!- KillerX [~anant@gentoo/developer/KillerX] has quit [Quit: Leaving.]
06:57 < uriel> (but i could be wrong)
06:58 < uriel> what are you trying to do?
06:58 < Macpunk> it's not
06:59 < Macpunk> I'm just reading through the rules on allocation with
new/make
06:59 < Macpunk> er, new *and* make, not new *or* make
06:59 < Macpunk> but it seems as though that comment on that example is
misleading...
07:00 < Macpunk> since make([]int, 100) makes a slice and not an array(you
don't make arrays, you use new to allocate arrays)
07:00 < anticw> []int is a slice
07:00 < anticw> [100]int is an array
07:00 < uriel> Macpunk: slices always refer to some array
07:01 < uriel> afaik v is an slice that *refers* to an array of 100 ints
(note that it doesn't say that v *is* an array of 100 ints)
07:02 < anticw> call a slice a slice, calling it an array is confusing
07:02 < anticw> because there are arrays too, and they are distinct types
07:02 < Macpunk> anticw, exactly what I thought =\
07:02 < Macpunk> that's why that line troubles me, they declare v as a
[]int, which is a slice of ints
07:03 < Macpunk> yet v refers to an array?
07:03 < anticw> it's a clie
07:03 < anticw> slice
07:03 < uriel> Macpunk: as I said, *all slices refer to an underlying
array*&
07:03 < anticw> a slice is an array of sorts ...  but it's not the same as a
tranditional array
07:03 < Macpunk> it can grow and shrink dynamically
07:03 < uriel> a slice is just basically a pointer to some possition in an
array
07:04 < uriel> Macpunk: only as far as the underlying array allows
07:04 < anticw> Macpunk: you can't
07:04 < uriel> slives are not 'arrays of sorts', they are references to
arrays
07:04 < anticw> Macpunk: a slice as a cap (capacity) and a length ...  if
you want to change the capacity, you need to realloc and copy
07:04 < uriel> you can just grow what part of the underlying array the slice
refers to
07:07 < Macpunk> hm, okay
07:08 < adu> do pointers have underlying arrays?
07:08 < anticw> no
07:09 < anticw> a pointer is a pointer typically, nothing more
07:09 < adu> new and make are confusing
07:10 < anticw> new(T) returns a pointer to T which is zeroed
07:10 < anticw> effective go talks about this and the difference to make
07:10 < anticw> you don't use new as much as you might thing you would
07:10 < anticw> often code ends up being something like: foo :=
bar.CreateBlem()
07:11 < anticw> or: foo := &someType{1,2,3}
07:12 < adu> that looks C++0x-ish
07:12 < anticw> := ?
07:12 < adu> no the {1,2,3}
07:13 < adu> C++0x is supposed to add list initializers
07:13 < Macpunk> mmmm, according to my test, v would refer to a slice.
07:14 < Macpunk> http://pastebin.com/m426949d7
07:14 < anticw> they are slices
07:14 < Macpunk> mmmhmmm
07:14 < anticw> arrays have static sizes
07:14 < Macpunk> so Effective Go is misleading
07:14 < Macpunk> yes
07:15 < anticw> i dont think so
07:15 < anticw> which works are misleading?
07:15 < Macpunk> var v []int = make([]int, 100) // v now refers to a new
array of 100 ints
07:15 < anticw> ah
07:15 < Macpunk> "v now refers to a new *array* of 100 ints"
07:15 < anticw> well, technically a slice is an array
07:16 < anticw> but arrays and slices in Go are not the same thing
07:16 < Macpunk> yeah, and I think at that point in that document the
distinction is kind of critical
07:16 < anticw> so as i said, strictly speaking a slice is an array ...  but
arrays exist as their own distinct types too
07:16 < JBeshir> I think the problem is with the word "refers"
07:17 < JBeshir> The slice v does indeed refer to a new array, but the name
v does not.
07:18 < JBeshir> "The slice v now refers to a new array of 100 ints" or "v
is initialised as a slice referring to a new array of 100 ints" would be clearer
if clumsy.
07:18 < JBeshir> Maybe someone can find a better wording.
07:20 < Macpunk> v now refers to a slice of 100 ints (referring to an
underlying array of 100 ints)
07:21 < Macpunk> Should I post about this on the mailing list?
07:21 -!- kaigan|work
[~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined #go-nuts
07:24 < anticw> probably won't hurt
07:25 -!- Cyprien_ [~Cyprien@pub1.heig-vd.ch] has joined #go-nuts
07:26 < Macpunk> mmmkay, thanks for all you guys' help :-)
07:26 -!- idea_squirrel [~ct2rips@77-21-28-13-dynip.superkabel.de] has joined
#go-nuts
07:28 -!- Speedy2 [~mike@bzq-79-180-18-85.red.bezeqint.net] has joined #go-nuts
07:29 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-171-141.clienti.tiscali.it] has
joined #go-nuts
07:31 < Macpunk> So if I'
07:31 < Macpunk> er
07:31 -!- Speedy2 [~mike@bzq-79-180-18-85.red.bezeqint.net] has quit [Excess
Flood]
07:32 < Macpunk> nvm
07:35 -!- droid001 [~g1@p4FDCBED7.dip.t-dialin.net] has joined #go-nuts
07:43 -!- trickie [~trickie@94.100.112.225] has joined #go-nuts
07:47 -!- adu [~ajr@pool-173-66-253-196.washdc.fios.verizon.net] has quit [Quit:
adu]
07:47 -!- ollins [~ollins@www.inventage.com] has joined #go-nuts
07:58 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
08:01 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]]
08:28 -!- nettok [~netto@200.119.151.7] has quit [Quit: Ex-Chat]
08:30 -!- Demp [~Demp@109.64.27.44] has quit [Read error: Connection reset by
peer]
08:30 -!- Demp [~Demp@109.64.27.44] has joined #go-nuts
08:31 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
08:31 -!- jontore [~jontore@2001:700:300:1421:221:9bff:fe1e:4150] has joined
#go-nuts
08:34 -!- souffledev [~soufflede@110-174-144-249.static.tpgi.com.au] has joined
#go-nuts
08:34 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
08:38 -!- jontore [~jontore@2001:700:300:1421:221:9bff:fe1e:4150] has left
#go-nuts []
08:50 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
08:55 -!- Cyprien__ [~Cyprien@pub1.heig-vd.ch] has joined #go-nuts
08:56 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
08:58 -!- Cyprien_ [~Cyprien@pub1.heig-vd.ch] has quit [Ping timeout: 264 seconds]
09:10 -!- wrtp [~rog@89.242.205.202] has joined #go-nuts
09:13 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
09:13 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
09:29 -!- souffledev [~soufflede@110-174-144-249.static.tpgi.com.au] has quit
[Quit: <>]
09:37 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
09:45 -!- pct [~pct@deep.tw] has joined #go-nuts
09:46 -!- kota1111 [~kota1111@gw2.kbmj.jp] has quit [Quit: Leaving...]
09:50 -!- oal [~olav@5.79-160-122.customer.lyse.net] has joined #go-nuts
09:56 -!- Macpunk [~macpunk@2002:48b1:1add:0:eee:e6ff:fec7:7eaa] has quit [Quit:
Leaving]
09:57 -!- Kashia [~Kashia@port-92-200-133-127.dynamic.qsc.de] has quit [Quit: This
computer has gone to sleep]
10:03 -!- vegai [~quassel@archlinux/developer/vegai] has quit [Remote host closed
the connection]
10:07 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Disconnected by
services]
10:07 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
10:20 -!- yatoo [~marcus@host86-153-224-40.range86-153.btcentralplus.com] has
joined #go-nuts
10:26 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
10:51 -!- lambdaz [~de47cb82@gateway/web/freenode/x-ildodbcduwxeudjv] has joined
#go-nuts
11:04 -!- nighty^ [~nighty@210.188.173.245] has quit [Remote host closed the
connection]
11:08 -!- quixoten [~Devin_Chr@c-67-177-8-48.hsd1.ut.comcast.net] has quit [Ping
timeout: 256 seconds]
11:18 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
11:21 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
11:21 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
11:22 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 256 seconds]
11:23 -!- path[l] [~path@59.162.86.164] has quit [Client Quit]
11:25 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
11:25 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
11:39 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
11:41 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 256
seconds]
11:45 -!- ejb [~ejb@unaffiliated/ejb] has joined #go-nuts
11:50 -!- MarkBao [~MarkBao@pool-173-76-27-66.bstnma.fios.verizon.net] has quit
[Ping timeout: 272 seconds]
11:50 -!- chickamade [~chickamad@113.190.173.90] has joined #go-nuts
11:59 -!- chickamade [~chickamad@113.190.173.90] has quit [Ping timeout: 272
seconds]
12:04 -!- nf [~nf@124-171-10-197.dyn.iinet.net.au] has quit [Remote host closed
the connection]
12:04 -!- nf [~nf@203-158-53-232.dyn.iinet.net.au] has joined #go-nuts
12:05 -!- MarkBao [~MarkBao@pool-173-76-27-66.bstnma.fios.verizon.net] has joined
#go-nuts
12:05 -!- afurlan [~afurlan@scorpion.mps.com.br] has joined #go-nuts
12:06 -!- kevinwatt [kevin@59-125-147-75.HINET-IP.hinet.net] has quit [Remote host
closed the connection]
12:06 -!- crashR [~crasher@codextreme.pck.nerim.net] has quit [Quit: Leaving.]
12:08 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
12:10 -!- MarkBao [~MarkBao@pool-173-76-27-66.bstnma.fios.verizon.net] has quit
[Ping timeout: 264 seconds]
12:14 -!- jalmeida [~jalmeida@c9340a2e.virtua.com.br] has joined #go-nuts
12:21 -!- alkavan [~alkavan@77.124.138.136] has joined #go-nuts
12:34 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has quit [Ping
timeout: 256 seconds]
12:37 -!- cmarcelo [~cmarcelo@200.184.118.130] has joined #go-nuts
12:37 -!- cmarcelo [~cmarcelo@200.184.118.130] has quit [Changing host]
12:37 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
12:56 -!- nanoo [~nano@95-89-189-202-dynip.superkabel.de] has joined #go-nuts
13:06 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
13:12 -!- lambdaz [~de47cb82@gateway/web/freenode/x-ildodbcduwxeudjv] has quit
[Quit: Page closed]
13:18 -!- vdrab [~vdrab@cap008-102.kcn.ne.jp] has joined #go-nuts
13:21 -!- michaelnovakjr [~mnovak@ool-18b83159.dyn.optonline.net] has quit [Quit:
michaelnovakjr]
13:23 -!- kevinwatt [~kevin@59-125-147-75.HINET-IP.hinet.net] has joined #go-nuts
13:25 -!- wuehlmaus [~wuehlmaus@p4FCC5A3B.dip.t-dialin.net] has quit [Excess
Flood]
13:26 -!- wuehlmaus [~wuehlmaus@p4FCC5A3B.dip.t-dialin.net] has joined #go-nuts
13:28 -!- kevinwatt [~kevin@59-125-147-75.HINET-IP.hinet.net] has quit [Ping
timeout: 252 seconds]
13:37 -!- rauli [x@luno.fi] has quit [Read error: Connection reset by peer]
13:38 -!- kevinwatt [~kevin@59-125-147-75.HINET-IP.hinet.net] has joined #go-nuts
13:39 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
13:41 -!- tokuhirom [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has quit [Ping
timeout: 272 seconds]
13:41 -!- Associat0r [~Associat0@h163153.upc-h.chello.nl] has joined #go-nuts
13:41 -!- Associat0r [~Associat0@h163153.upc-h.chello.nl] has quit [Client Quit]
13:43 -!- ericvh [~ericvh@2002:4671:4e0e:0:223:6cff:fe93:c616] has joined #go-nuts
13:43 -!- ericvh [~ericvh@2002:4671:4e0e:0:223:6cff:fe93:c616] has quit [Client
Quit]
13:44 -!- kevinwatt [~kevin@59-125-147-75.HINET-IP.hinet.net] has quit [Ping
timeout: 264 seconds]
13:52 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
13:57 -!- tokuhirom [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has joined #go-nuts
14:13 -!- kevinwatt [kevin@59-125-147-75.HINET-IP.hinet.net] has joined #go-nuts
14:16 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has joined #go-nuts
14:17 -!- ericvh [~ericvh@32.97.110.63] has joined #go-nuts
14:18 -!- ericvh [~ericvh@32.97.110.63] has left #go-nuts []
14:20 -!- kevinwatt [kevin@59-125-147-75.HINET-IP.hinet.net] has quit [Ping
timeout: 245 seconds]
14:20 -!- ericvh [~ericvh@32.97.110.63] has joined #go-nuts
14:26 < vdrab> hi #go-nuts.  What is the idiomatic way of converting between
strings and []byte ?
14:34 < vdrab> I followed the language spec, which suggested
[]byte("hello"), but this didn't work.  A footnote in the spec says this
conversion is not yet implemented.  Any ideas?
14:37 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
14:39 -!- kevinwatt [kevin@59-125-147-75.HINET-IP.hinet.net] has joined #go-nuts
14:43 -!- chickamade [~chickamad@113.190.162.191] has joined #go-nuts
14:47 -!- codearl [~codearl@210006102131.ctinets.com] has joined #go-nuts
14:47 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
14:48 -!- taruti [taruti@aoi.yi.org] has joined #go-nuts
14:48 < taruti> Has anyone got a socketpair syscall for linux done?
14:49 -!- codearl [~codearl@210006102131.ctinets.com] has left #go-nuts []
14:53 < jA_cOp> vdrab, Strings.Bytes, I think
14:55 < vdrab> JA_cOp: thanks, that seems to do it
14:55 < jA_cOp> np
15:05 -!- alkavan [~alkavan@77.124.138.136] has quit [Quit: Leaving]
15:08 -!- lmoura [~lauromour@200.184.118.130] has joined #go-nuts
15:11 -!- lmoura [~lauromour@200.184.118.130] has quit [Client Quit]
15:12 -!- lmoura [~lauromour@200.184.118.130] has joined #go-nuts
15:12 -!- kevinwatt [kevin@59-125-147-75.HINET-IP.hinet.net] has quit [Ping
timeout: 248 seconds]
15:13 -!- sinuhe [~sinuhe@hq-nat2.gurulabs.com] has joined #go-nuts
15:15 -!- chickamade [~chickamad@113.190.162.191] has quit [Quit: Leaving]
15:17 -!- Wiz126 [Wiz126@72.20.221.109] has joined #go-nuts
15:18 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
quit [Quit: Leaving.]
15:20 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
15:24 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Read error:
Operation timed out]
15:32 -!- Wiz126 [Wiz126@72.20.221.109] has quit [Ping timeout: 241 seconds]
15:33 -!- TMKCodes [~toni@87-93-82-165.bb.dnainternet.fi] has joined #go-nuts
15:35 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
15:36 -!- GeoBSD [~geobsd@lns-bzn-37-82-253-45-68.adsl.proxad.net] has joined
#go-nuts
15:40 -!- jophish [~jophish@hermi.gotadsl.co.uk] has joined #go-nuts
15:53 -!- Cyprien__ [~Cyprien@pub1.heig-vd.ch] has quit [Ping timeout: 272
seconds]
15:56 -!- Wiz126 [Wiz126@72.20.223.241] has joined #go-nuts
15:56 -!- vdrab [~vdrab@cap008-102.kcn.ne.jp] has quit [Ping timeout: 252 seconds]
16:02 -!- asmo [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
16:04 -!- p4p4 [~P4p4@82.113.106.31] has joined #go-nuts
16:07 -!- vdrab [~vdrab@cap008-102.kcn.ne.jp] has joined #go-nuts
16:13 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving]
16:15 -!- p4p4 [~P4p4@82.113.106.31] has quit [Quit: ChatZilla 0.9.84 [SeaMonkey
2.0a3/20090223135443]]
16:16 -!- ollins [~ollins@www.inventage.com] has quit [Remote host closed the
connection]
16:18 -!- kaigan|work
[~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit [Quit:
kaigan|work]
16:27 -!- vdrab [~vdrab@cap008-102.kcn.ne.jp] has quit [Ping timeout: 260 seconds]
16:34 -!- trickie [~trickie@94.100.112.225] has quit [Read error: Operation timed
out]
16:37 -!- asmo [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has
quit [Read error: Connection reset by peer]
16:37 -!- tokuhirom [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has quit [Ping
timeout: 246 seconds]
16:37 -!- asmo [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has
joined #go-nuts
16:41 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Ping timeout:
246 seconds]
16:42 -!- Venom_X [~pjacobs@cpe-67-9-131-167.austin.res.rr.com] has joined
#go-nuts
16:51 -!- sinuhe [~sinuhe@hq-nat2.gurulabs.com] has quit [Ping timeout: 264
seconds]
16:53 -!- tokuhirom [~tokuhirom@s230.GtokyoFL21.vectant.ne.jp] has joined #go-nuts
16:57 -!- hurtonm [~hurtonm@adsl-195-168-235-023.dynamic.nextra.sk] has joined
#go-nuts
16:58 -!- sinuhe [~sinuhe@hq-nat2.gurulabs.com] has joined #go-nuts
16:59 -!- Wiz126 [Wiz126@72.20.223.241] has quit [Ping timeout: 264 seconds]
17:04 -!- nanoo [~nano@95-89-189-202-dynip.superkabel.de] has quit [Quit: Leaving]
17:08 -!- ollins [~ollins@84-73-206-133.dclient.hispeed.ch] has joined #go-nuts
17:16 -!- sudi [~chatzilla@dslb-084-056-015-133.pools.arcor-ip.net] has joined
#go-nuts
17:19 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
17:22 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
17:23 -!- nanoo [~nano@95-89-189-202-dynip.superkabel.de] has joined #go-nuts
17:23 -!- TMKCodes [~toni@87-93-82-165.bb.dnainternet.fi] has quit [Ping timeout:
264 seconds]
17:24 -!- TMKCodes [~toni@87-93-133-100.bb.dnainternet.fi] has joined #go-nuts
17:29 -!- jalmeida [~jalmeida@c9340a2e.virtua.com.br] has quit [Remote host closed
the connection]
17:30 -!- Demp [~Demp@109.64.27.44] has quit [Ping timeout: 252 seconds]
17:31 -!- Demp [~Demp@bzq-79-183-68-223.red.bezeqint.net] has joined #go-nuts
17:41 -!- keeto [~keeto@121.54.92.149] has quit [Read error: Connection reset by
peer]
17:41 -!- keeto [~keeto@121.54.92.149] has joined #go-nuts
17:44 -!- quixoten [~Devin_Chr@c-67-177-8-48.hsd1.ut.comcast.net] has joined
#go-nuts
17:46 -!- keeto [~keeto@121.54.92.149] has quit [Ping timeout: 252 seconds]
17:52 -!- Cyprien_ [Cyprien@81.62.55.87] has joined #go-nuts
17:52 -!- wrtp [~rog@89.242.205.202] has quit [Quit: wrtp]
17:54 -!- wrtp [~rog@89.242.205.202] has joined #go-nuts
17:55 -!- wrtp [~rog@89.242.205.202] has quit [Client Quit]
17:56 -!- leonod [~Andreas@zreahese.hus.sgsnet.se] has joined #go-nuts
17:58 -!- b00m_chef__ [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts
18:01 -!- keeto [~keeto@121.54.92.149] has joined #go-nuts
18:04 -!- tux21b [~christoph@90.146.60.30] has quit [Read error: Connection reset
by peer]
18:05 -!- tux21b [~christoph@90.146.60.30] has joined #go-nuts
18:10 -!- appamatto [~anonymous@softbank219056232109.bbtec.net] has joined
#go-nuts
18:15 -!- wrtp [~rog@89.242.205.202] has joined #go-nuts
18:22 -!- appamatto [~anonymous@softbank219056232109.bbtec.net] has quit [Quit:
appamatto]
18:30 -!- sudi [~chatzilla@dslb-084-056-015-133.pools.arcor-ip.net] has quit
[Quit: ChatZilla 0.9.86 [Firefox 3.5.8/20100214235958]]
18:40 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
18:43 -!- GabydeWilde_ [~gabydewil@84-104-135-141.cable.quicknet.nl] has quit
[Read error: Connection reset by peer]
18:45 -!- Wiz126 [Wiz126@72.20.223.141] has joined #go-nuts
18:45 -!- nanoo [~nano@95-89-189-202-dynip.superkabel.de] has quit [Quit: Leaving]
18:49 -!- nettok [~netto@200.119.155.6] has joined #go-nuts
18:52 -!- fgb [~fgb@190.246.85.45] has joined #go-nuts
18:54 -!- hurtonm [~hurtonm@adsl-195-168-235-023.dynamic.nextra.sk] has quit [Ping
timeout: 265 seconds]
18:58 -!- aflash [~jontore@62.101.223.78] has quit [Quit: Leaving]
19:01 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined
#go-nuts
19:07 -!- rrr [debian-tor@gateway/tor-sasl/rrr] has quit [Remote host closed the
connection]
19:08 -!- Kashia [~Kashia@port-92-200-133-127.dynamic.qsc.de] has joined #go-nuts
19:11 -!- Cyprien__ [Cyprien@158-233.76-83.cust.bluewin.ch] has joined #go-nuts
19:13 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
19:15 -!- Cyprien_ [Cyprien@81.62.55.87] has quit [Ping timeout: 260 seconds]
19:15 -!- monty_hall [~sprague_r@adsl-75-51-110-82.dsl.sgnwmi.sbcglobal.net] has
quit [Quit: Leaving.]
19:16 -!- andy1 [~aolsen@host-19.pl107798-3.fiber.net] has joined #go-nuts
19:21 -!- aho [~nya@f052112183.adsl.alicedsl.de] has joined #go-nuts
19:21 -!- nettok [~netto@200.119.155.6] has quit [Quit: Ex-Chat]
19:24 < skelterjohn> What's the proper way to see how many procs go is
allowed to use...  os.Getenv("GOMAXPROCS")?
19:36 -!- sinuhe [~sinuhe@hq-nat2.gurulabs.com] has quit [Read error: Operation
timed out]
19:37 -!- Cyprien_ [Cyprien@45-52.78-83.cust.bluewin.ch] has joined #go-nuts
19:40 -!- Cyprien__ [Cyprien@158-233.76-83.cust.bluewin.ch] has quit [Ping
timeout: 260 seconds]
19:41 -!- Cyprien__ [Cyprien@131-228.76-83.cust.bluewin.ch] has joined #go-nuts
19:42 -!- Cyprien_ [Cyprien@45-52.78-83.cust.bluewin.ch] has quit [Ping timeout:
248 seconds]
19:42 -!- monty_hall [~sprague_r@adsl-75-51-110-82.dsl.sgnwmi.sbcglobal.net] has
joined #go-nuts
19:42 -!- ollins [~ollins@84-73-206-133.dclient.hispeed.ch] has quit [Remote host
closed the connection]
19:44 -!- nutate [~rseymour@cacsag4.usc.edu] has joined #go-nuts
19:44 -!- nutate [~rseymour@cacsag4.usc.edu] has quit [Excess Flood]
19:44 -!- nutate [~rseymour@cacsag4.usc.edu] has joined #go-nuts
19:46 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
19:46 -!- u4ia [~weechat@quepasa.solcon.nl] has quit [Read error: Connection reset
by peer]
19:47 -!- u4ia [~weechat@quepasa.solcon.nl] has joined #go-nuts
19:47 -!- nanoo [~nano@95-89-189-202-dynip.superkabel.de] has joined #go-nuts
19:49 -!- gzmask [~gzmask@corwin.cat.uregina.ca] has joined #go-nuts
19:55 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
19:56 -!- nanooo [~nano@95-89-189-202-dynip.superkabel.de] has joined #go-nuts
19:57 -!- hurtonm [~hurtonm@adsl-195-168-227-081.dynamic.nextra.sk] has joined
#go-nuts
19:59 -!- nanoo [~nano@95-89-189-202-dynip.superkabel.de] has quit [Ping timeout:
240 seconds]
20:00 <+iant> skelterjohn: I think that's the best one can do at the moment
20:01 -!- hurtonm [~hurtonm@adsl-195-168-227-081.dynamic.nextra.sk] has quit
[Client Quit]
20:02 < skelterjohn> useful information for a program that wants to
load-balance
20:03 -!- nanooo [~nano@95-89-189-202-dynip.superkabel.de] has quit [Quit:
Leaving]
20:03 -!- sinuhe [~sinuhe@64.245.157.11] has joined #go-nuts
20:07 -!- nutate [~rseymour@cacsag4.usc.edu] has quit [Quit: I'm outta heee-eere]
20:09 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
20:13 -!- Wiz126 [Wiz126@72.20.223.141] has quit [Ping timeout: 245 seconds]
20:14 -!- MarkBao [~MarkBao@75-144-186-92-NewEngland.hfc.comcastbusiness.net] has
joined #go-nuts
20:15 -!- sudi [~chatzilla@dslb-084-056-015-133.pools.arcor-ip.net] has joined
#go-nuts
20:19 -!- MarkBao [~MarkBao@75-144-186-92-NewEngland.hfc.comcastbusiness.net] has
quit [Ping timeout: 268 seconds]
20:21 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
20:24 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
20:25 < gzmask> how do I ignore multiple parameters that a function returns?
i.e a, b := os.Write(...) I want to ignore b
20:26 < drhodes> a, _ := ...
20:27 < gzmask> underscore works, thanks drhodes
20:27 < drhodes> your welcome
20:27 < drhodes> 're!  ^^ >.<
20:37 < gzmask> do I need to import "bytes" to use byte type?
20:43 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
20:46 < anticw> gzmask: no
20:47 < gzmask> thx anticw...  I did something like a := {'a','b','c
20:47 < gzmask> and fmt.print it, gives me a list of numbers
20:47 < skelterjohn> a := []byte{'a',...}
20:48 < skelterjohn> oh
20:48 < gzmask> yea, that's what I did.  mistyped
20:48 < skelterjohn> you probably used %d instead of %c
20:48 < gzmask> hello := []byte{'h', 'e', 'l', 'l', 'o', ',', ' ', 'w', 'o',
'r', 'l', 'd', '\n'}
20:48 < gzmask> fmt.Print(hello)
20:48 < smw> gzmask: printf
20:48 < gzmask> gives [104 101 108 108 111 44 32 119 111 114 108 100 10]
20:48 < skelterjohn> well, bytes are numbers
20:48 < skelterjohn> so can't say i'm surprised
20:48 < anticw> gzmask: you're printing an array of bytes ...  not chars
20:49 < smw> gzmask: fmt.Printf("%s\n", bytearray)
20:49 < gzmask> I see.  the point of doing this is I am trying to write this
string into a file
20:49 < skelterjohn> string([]byte{'a',...})?
20:49 < skelterjohn> can you do that?
20:50 < gzmask> so when I do file.Write(hello), it gives me nothing in the
file
20:50 < gzmask> no the Write systemcall wont accept string type
20:50 < skelterjohn> flush/close the file?
20:51 < gzmask> done that with file.Close()
20:51 < gzmask> ops, there is a WriteString systemcall.  gonna try that
first
20:52 < skelterjohn> fmt.Fprintf
20:52 < skelterjohn> fmt.FPrintf(theWriter, "hello\n")
20:52 < anticw> flush only matters for buffered IO
20:52 < smw> gzmask: the general rule is never use syscalls, ever
20:52 < anticw> gzmask: i test it here, workds fine
20:53 < anticw> hello := []byte{'h', 'e', 'l', 'l', 'o', ',', ' ', 'w', 'o',
'r', 'l', 'd', '\n'}
20:53 < skelterjohn> check the err return for the Write call
20:53 < anticw> f, _ := os.Open("/tmp/testfile", os.O_CREAT|os.O_RDWR, 0644)
20:53 < anticw> f.Write(hello)
20:53 < skelterjohn> perhaps it isn't returning NoError
20:53 < anticw> strace the code, see what's going on ....  lazy way to check
errors :-)
20:53 < skelterjohn> oh - people often don't realize you have to do multiple
flags to create and write to a file
20:54 < gzmask> my code: file, _ := os.Open("html_escape_output",
os.O_CREAT, 0666) . why you need two flags there?
20:55 < skelterjohn> because you don't want to only create
20:55 < gzmask> ah shit, nvm
20:55 < skelterjohn> you also want to write
20:55 < gzmask> I am an idiot
20:55 < anticw> error checking
20:55 < anticw> error checking
20:55 < anticw> error checking
20:55 < skelterjohn> that too
20:55 < anticw> the write would have errored ...  if you want to avoid error
checking directly use strace or something else
20:55 < anticw> or do what i do, avoid writing bugs
20:57 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
20:57 < gzmask> anyway, smw, why avoid sys calls?  I think golang is for sys
until/drivers/etc.  so it needs to call them
20:57 -!- Wiz126 [Wiz126@72.20.224.126] has joined #go-nuts
20:58 < smw> gzmask: because most people are not writing drivers.
20:59 < smw> gzmask: most syscalls have nice frontend libraries
20:59 -!- geocalc [~geobsd@lns-bzn-40-82-251-145-180.adsl.proxad.net] has joined
#go-nuts
20:59 < gzmask> yea...  but then it''ll became c++ with so many nice
frontend libraries...
21:00 -!- GeoBSD [~geobsd@lns-bzn-37-82-253-45-68.adsl.proxad.net] has quit [Ping
timeout: 265 seconds]
21:00 -!- afurlan [~afurlan@scorpion.mps.com.br] has quit [Quit: Leaving]
21:01 < gzmask> and at least there isn't a nice frontend lib for File IO
AFAIK
21:08 < skelterjohn> C++ may have weaknesses, but the large amount of
front-end libraries available is not one of them, i think
21:09 < fenicks> thanks uriel, for the tips, I have what I was looking for
in go-nuts archives (GO termio binding)
21:10 < gzmask> absolutely correct.  bad example there...  I m trying to
prove the point that kernel space sys calls are nice especially when they are
POSIX
21:14 < anticw> the go windows port is marching along nicely ...  portable
code shouldn't assume POSIX
21:16 -!- gzmask [~gzmask@corwin.cat.uregina.ca] has quit [Remote host closed the
connection]
21:16 -!- tux21b [~christoph@90.146.60.30] has quit [Read error: Operation timed
out]
21:16 -!- gzmask [~gzmask@corwin.cat.uregina.ca] has joined #go-nuts
21:17 < gzmask> I thought windows is POSIX compatible
21:20 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has quit
[Excess Flood]
21:20 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has joined
#go-nuts
21:20 < skelterjohn> http://en.wikipedia.org/wiki/POSIX#POSIX_for_Windows
21:23 < anticw> file objects seem quite reasonable to be in the current
form, using syscalls directly should be avoided
21:23 < anticw> (i actually do this myself for ioctls, but it's not
something i would encourage at all)
21:24 -!- gerry_ [~gerry@86.171.115.79] has joined #go-nuts
21:24 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit:
skelterjohn]
21:30 < gzmask> I don't know which file object you are referring to, I found
that the tutorial file IO very close to sys call style.
21:31 -!- homiziado [~ernestofr@93.102.57.199.rev.optimus.pt] has joined #go-nuts
21:32 -!- tux21b [~christoph@90.146.60.30] has joined #go-nuts
21:33 -!- oal [~olav@5.79-160-122.customer.lyse.net] has quit [Remote host closed
the connection]
21:39 -!- jdpo [~joe@66-169-176-49.dhcp.ftwo.tx.charter.com] has joined #go-nuts
21:44 -!- sudi [~chatzilla@dslb-084-056-015-133.pools.arcor-ip.net] has quit
[Remote host closed the connection]
21:45 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has joined
#go-nuts
21:45 < millertimek1a2m3> hey
21:45 < millertimek1a2m3> i just joined the go programming group!  lol :)
21:45 < smw> :-)
21:46 < gzmask> To the top of Mount Wanna-hock-a-loogie
21:46 < smw> welcome
21:47 < smw> gzmask: really?  that is the best you can come up with?
21:48 -!- franksalim [~frank@adsl-75-61-86-190.dsl.pltn13.sbcglobal.net] has quit
[Remote host closed the connection]
21:49 < gerry_> whats the likely future for go...  will the gcc front end be
the main entry point?
21:49 < Boggy-B> i am saddened by Go
21:49 < Boggy-B> it's missing some bits to use where id like to
21:50 < Boggy-B> it's more of a language with concurrancy than a concurrant
language
21:50 < jessta> Boggy-B: like what?
21:51 < smw> gerry_: no one knows what the future of go is.  Most people
here pray for success
21:51 < Boggy-B> guarded commands
21:51 < gerry_> smw: its just for the purposes of porting...  where should
efforts be concentrated
21:51 < Boggy-B> i need to to use ALT/PRI ALT structures to get what i want
21:52 < jessta> guarded commands?  like if statements?
21:52 < smw> gerry_: it needs two things gccgo and a windows port (as much
as I hate linux)
21:52 < smw> oops
21:52 < smw> hate windows :-P
21:52 < jessta> Boggy-B: what is ALT/PRI ATL?
21:52 < Boggy-B> no, erm, how to put this..
21:52 < gerry_> smw: ;) yea.
21:53 < Boggy-B> concurrent IF's almost, so you can have a process that runs
in a loop with an input channel, and in the event of that channel receiving and
resolving true on the guard then that action has priority
21:54 < smw> gerry_: it also needs something else.  It needs better
documentation/tutorials.  I love godoc.  But it will not teach you to use a
library well.
21:54 < smw> easytiger: ^
21:54 < Boggy-B> jessta: "It allows a process to wait for multiple events,
but only engage in one of them" from my documentation on Occam
21:54 < Boggy-B> (sorry, im a student, and thus dont know much) lol
21:55 < easytiger> smw: yea true.  i was just considering helping out on a
solaris port if there was interest.
21:55 < jessta> Boggy-B: so, if statements in a select block?
21:55 < Boggy-B> no
21:56 < smw> easytiger: I would be interested in documentation for idiots.
Hopefully that does not say much about me ;-).
21:56 < Boggy-B> it's close, but the if's would have to be perminatly
concurrent, almost like an interrupt
21:57 < easytiger> smw: ha.  yea i found the turoial a bit terse myself.
and some stuff like the line i just saw to demonstrate printf would put new folks
off.
21:57 < Boggy-B> so if (A) { interrupt } else {do something that's forever
looping}
21:57 < easytiger> var u64 uint64 = 1<<64-1
21:57 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Read error: Connection
reset by peer]
21:57 < Boggy-B> and you want A to be true-able at any time
22:00 < jessta> Boggy-B: still sounds like select block to me
22:00 < Boggy-B> well i am explaining it badly :)
22:00 < Boggy-B> http://frmb.org/occtutor.html#alting
22:01 < dho> select is an alt construct.
22:01 < Boggy-B> they're missing from Go, accoridg to the wiki page, which
would explain why i couldn't find it
22:01 < Boggy-B> oh..
22:02 < Boggy-B> *reads*
22:02 < dho> they are not prioritized, they are randomly entered depending
on the conditions.
22:02 < Boggy-B> is there any way to prioritise them?
22:02 < smw> I have a stupid question.  How do you read a io.Reader into a
[]byte?
22:03 -!- rhelmer [~rhelmer@adsl-69-107-87-1.dsl.pltn13.pacbell.net] has joined
#go-nuts
22:03 < dho> smw: reader.Read()
22:03 <+iant> Boggy-B: you can prioritize to some extent by listing cases
more than once
22:03 < dho> smw: Read takes a a byte array and reads up to len(arg) bytes
22:04 < Boggy-B> right, thanks, that's something learnt right there
22:04 -!- homiziado [~ernestofr@93.102.57.199.rev.optimus.pt] has quit [Quit:
homiziado]
22:04 -!- jdpo [~joe@66-169-176-49.dhcp.ftwo.tx.charter.com] has quit [Remote host
closed the connection]
22:05 < Boggy-B> with any luck i can use this language for my projects,
rather than Occam, any language that can't deal with non-fixed width arrays is far
too annoying
22:07 < nf> smw: I'm working on some "documentation for beginners"
22:07 < Boggy-B> i'd like that too.  haha
22:07 < nf> trying to address a lot of the beginner
misconceptions/misunderstandings
22:08 < gzmask> $GOROOT/doc/GoCourseDay1.pdf
22:09 < smw> nf: cool
22:09 < smw> what does mmap: errno=0x16 mean?
22:11 <+iant> smw: it means that something called mmap with invalid values,
such as an address which was not page aligned
22:12 <+iant> smw: did you call mmap?
22:12 < smw> I called make.  Could that be it?
22:12 -!- scm [justme@c136105.adsl.hansenet.de] has quit [Ping timeout: 256
seconds]
22:12 < smw> can make take int64?
22:12 <+iant> calling make shouldn't cause this kind of error, no
22:12 <+iant> is it repeatable?
22:13 <+iant> if it is, please open an issue for it, because something is
wrong
22:13 < smw> iant: http://pastebin.com/ddf8ac40 it is short
22:13 < smw> I am trying to figure out the http lib (for client use)
22:13 -!- scm [justme@d019153.adsl.hansenet.de] has joined #go-nuts
22:14 <+iant> smw: I get an out of memory error when I run that
22:14 < smw> iant: http://pastebin.com/m2d245c9
22:14 < smw> ok
22:14 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Quit:
leaving]
22:15 <+iant> what system are you running on?
22:15 < smw> amd64 linux
22:16 < smw> iant: I figured it out...
22:16 < smw> r.ContentLength == -1
22:16 <+iant> ah
22:16 <+iant> could you still file an issue to get a more plausible error
message for that?
22:16 <+iant> that one is unnecessarily cryptic
22:17 < smw> I agree
22:17 < smw> They do not expect people to do something that stupid I guess
:-P
22:17 < smw> I will make a issue
22:18 <+iant> thanks
22:19 -!- CodeBlock_ [~CodeBlock@174.137.57.117] has joined #go-nuts
22:19 < smw> iant: it stops -1 at compile time.  The issue is runtime
apparently
22:21 < smw> iant: I am having issue making an example case.  The compiler
is pretty smart
22:21 <+iant> call a function which returns -1
22:21 < nf> smw: i := 0 ; i += -1 ; c := make(..., i) ?
22:23 < smw> iant: testissue.go:5: make([]uint8, num, num) not used
22:23 < smw> oh nm
22:23 < smw> not used means I need to assign it to something
22:24 -!- mssm [~mssm@ip-95-221-93-75.bb.netbynet.ru] has joined #go-nuts
22:24 < gzmask> hmm, beginner question guys: how to list all files from a
directory?  using dir* ?
22:25 < smw> gzmask: http://localhost:6060/pkg/os/#File.Readdirnames
22:25 < smw> gzmask: http://golang.org/pkg/os/#File.Readdirnames
22:25 < gzmask> gdoc?  nice lol
22:25 < smw> lol
22:26 < smw> I use gdoc because it has the latest docs and the http lib is
under heavy development
22:26 < gzmask> you use nightly builds?
22:26 < smw> yeah.  hg sync
22:27 < gzmask> hmm cool tip thx
22:28 -!- gzmask [~gzmask@corwin.cat.uregina.ca] has left #go-nuts []
22:33 < plexdev> http://is.gd/8Xxqd by [Robert Griesemer] in
go/src/pkg/scanner/ -- scanner: match go/scanner and disallow NUL character;
22:33 < plexdev> http://is.gd/8Xxqu by [Russ Cox] in go/ -- A+C: add Sergei
Skorobogatov (individual CLA)
22:33 < plexdev> http://is.gd/8Xxr2 by [Sergei Skorobogatov] in
go/src/pkg/json/ -- json: fix quoted strings in Marshal
22:47 -!- jophish [~jophish@hermi.gotadsl.co.uk] has quit [Remote host closed the
connection]
22:47 < leonod> night guys
22:47 -!- leonod [~Andreas@zreahese.hus.sgsnet.se] has quit [Quit: Leaving]
22:49 < plexdev> http://is.gd/8XATL by [Petar Maymounkov] in
go/src/pkg/http/ -- http: fix bug in Post
22:49 < plexdev> http://is.gd/8XAU5 by [Andrew Gerrand] in go/doc/ --
effective_go: clarified small comment
22:50 -!- millertimek1a2m3 [~adam@rrcs-67-79-54-130.sw.biz.rr.com] has quit [Ping
timeout: 246 seconds]
22:50 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: (
www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )]
22:52 -!- idea_squirrel [~ct2rips@77-21-28-13-dynip.superkabel.de] has quit [Quit:
what would a pirate do?]
22:58 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:58 -!- rrr [debian-tor@gateway/tor-sasl/rrr] has joined #go-nuts
23:03 -!- ericvh [~ericvh@32.97.110.63] has quit [Quit: ericvh]
23:06 < easytiger> func filter(in chan int, out chan int, prime int) and
func filter(in, out chan int, prime int) are equivalent?
23:06 <+iant> yes
23:14 -!- fenicks [~christian@log77-4-82-246-228-78.fbx.proxad.net] has left
#go-nuts []
23:15 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Quit: This
computer has gone to sleep]
23:15 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has joined #go-nuts
23:16 -!- jajamana [~jcb@cm-84.215.40.160.getinternet.no] has quit [Client Quit]
23:17 < smw> can someone help me with my code?  It is not reading the entire
webpage.  It ends up truncating it.  http://pastebin.com/d54893d06
23:18 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined
#go-nuts
23:19 -!- Xeon_ [~chatzilla@118.126.12.53] has joined #go-nuts
23:21 < plexdev> http://is.gd/8XHBA by [Michael Hoisie] in go/src/pkg/xml/
-- xml: treat bool as value in Unmarshal
23:22 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 252 seconds]
23:26 < easytiger> so is "chan int" a type in and of itself?
23:26 < anticw> yes
23:26 < easytiger> so we can have spaces in types in go?
23:26 < jessta> smw: Read() should return some error
23:26 < jessta> smw: you should check for that error
23:27 < smw> jessta: I did
23:27 < smw> <nil>
23:31 < easytiger> s/types/type\ identifiers/
23:35 < sladegen> smw: it's returning 404 here...  no idea why...
23:35 < smw> sladegen: that is odd.  I am at least getting part of it
23:35 < smw> and it is returning 200
23:36 -!- adu [~ajr@pool-71-191-173-96.washdc.fios.verizon.net] has joined
#go-nuts
23:37 < plexdev> http://is.gd/8XKRC by [Petar Maymounkov] in
go/src/pkg/http/ -- http: use RawURL in Request.Write
23:38 < nf> easytiger: no, you cannot have a space in a keyword
23:39 < nf> otherwise how would you distinguish:
23:39 < nf> foo chan int // where "foo chan" is an int
23:39 < nf> foo chan int // where "foo" is a chan int
23:39 -!- vdrab [~vdrab@cap010-038.kcn.ne.jp] has joined #go-nuts
23:40 <+iant> easytiger: chan int is not an identifier, it is a type, just
like []int is a type
23:41 < easytiger> iant, nf:thanks, just finding that a bit confusing
23:41 <+iant> it's not really different from C/C++, where, e.g., "long
unsigned int" is a type
23:44 -!- cmarcelo [~cmarcelo@187.59.118.58] has joined #go-nuts
23:44 -!- cmarcelo [~cmarcelo@187.59.118.58] has quit [Changing host]
23:44 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
23:44 -!- mikejs [~me@67.23.5.49] has left #go-nuts []
23:45 -!- vdrab [~vdrab@cap010-038.kcn.ne.jp] has quit [Quit: vdrab]
23:47 -!- wrtp [~rog@89.242.205.202] has quit [Quit: wrtp]
23:49 < smw> iant: do you have any idea why my program is not working?
http://pastebin.com/d54893d06 . I am right now just trying to get a proof of
concept for downloading a webpage and it is not easy :-\
23:50 < anticw> iant: is there a way to create a slice (providing the array)
using reflection somewhere?  i looked and didnt see one
23:52 < smw> anticw: wouldn't assigning an array to a slice work?
23:53 < smw> var something []T; something = an-array
23:53 < sladegen> smw: i'm guessing you have to read until os.eof...
23:53 -!- sinuhe [~sinuhe@64.245.157.11] has quit [Quit: leaving]
23:53 < smw> sladegen: thanks I will look at that
23:53 < anticw> oh right, i think i was told that and my brain censored it
23:53 < smw> I need to go
23:53 < smw> lol
23:53 < anticw> i should look at the code and try and see what's not working
23:54 < plexdev> http://is.gd/8XO81 by [Robert Griesemer] in
go/src/pkg/go/printer/ -- go/printer (gofmt): remove more residue from semicolon
transition
--- Log closed Tue Feb 23 00:00:14 2010