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

--- Log opened Sat May 07 00:00:50 2011
00:02 -!- wrtp [~rog@92.17.111.113] has quit [Quit: wrtp]
00:09 -!- foocraft [~ewanas@86.36.49.200] has quit [Ping timeout: 240 seconds]
00:11 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 252 seconds]
00:12 -!- tylerl [~tylerl@ip24-251-232-171.ph.ph.cox.net] has quit [Quit: leaving]
00:36 -!- foocraft [~ewanas@86.36.49.200] has joined #go-nuts
00:36 -!- pilgrum [~pilgrum@cpe-67-49-71-222.socal.res.rr.com] has joined #go-nuts
00:42 -!- ios_ [~ios@180.191.91.34] has quit [Quit: Leaving]
00:52 -!- tvw [~tv@e176001002.adsl.alicedsl.de] has quit [Ping timeout: 263
seconds]
00:53 -!- tvw [~tv@e176009192.adsl.alicedsl.de] has joined #go-nuts
01:00 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
01:01 -!- artefon [~thiago@189.59.135.240] has joined #go-nuts
01:06 -!- iant [~iant@67.218.107.213] has quit [Quit: Leaving.]
01:08 -!- binarypie [~binarypie@c-24-6-151-185.hsd1.ca.comcast.net] has joined
#go-nuts
01:33 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Quit:
skelterjohn]
01:34 -!- pilgrum [~pilgrum@cpe-67-49-71-222.socal.res.rr.com] has quit [Ping
timeout: 240 seconds]
01:36 -!- artefon [~thiago@189.59.135.240] has quit [Remote host closed the
connection]
01:39 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
01:52 -!- pilgrum [~pilgrum@cpe-67-49-71-222.socal.res.rr.com] has joined #go-nuts
01:57 -!- EvilJStoker [jstoker@unaffiliated/jstoker] has joined #go-nuts
02:07 -!- keithcascio [~keithcasc@nat/google/x-ocntcultyilnkitf] has quit [Quit:
Leaving]
02:34 -!- elephants [~elephants@173-230-160-81.cable.teksavvy.com] has joined
#go-nuts
02:37 -!- ab3 [~abe@83.101.90.66] has quit [Ping timeout: 252 seconds]
02:39 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 258 seconds]
02:47 -!- pearle [~pearle@blk-224-181-222.eastlink.ca] has joined #go-nuts
02:48 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
02:49 -!- mode/#go-nuts [+v iant] by ChanServ
02:49 -!- gedevan [~gedevan@83.167.106.253] has joined #go-nuts
02:57 -!- path1 [~Adium@c-71-59-130-115.hsd1.wa.comcast.net] has joined #go-nuts
03:01 -!- path1 [~Adium@c-71-59-130-115.hsd1.wa.comcast.net] has quit [Client
Quit]
03:02 -!- niemeyer [~niemeyer@200-102-196-125.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
03:07 -!- fmoo [~Adium@66.220.144.74] has quit [Quit: Leaving.]
03:08 -!- pilgrum [~pilgrum@cpe-67-49-71-222.socal.res.rr.com] has quit [Quit:
Leaving]
03:13 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has joined
#go-nuts
03:18 -!- skelterjohn_ [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
03:26 -!- Internoob [18cf55a0@gateway/web/freenode/ip.24.207.85.160] has joined
#go-nuts
03:27 -!- Internoob [18cf55a0@gateway/web/freenode/ip.24.207.85.160] has left
#go-nuts []
03:38 -!- tvw [~tv@e176009192.adsl.alicedsl.de] has quit [Ping timeout: 240
seconds]
03:46 -!- pearle [~pearle@blk-224-181-222.eastlink.ca] has quit [Quit: Leaving]
03:48 -!- icey [~user@ip68-104-183-151.ph.ph.cox.net] has joined #go-nuts
04:07 -!- PJRobins [~kvirc@184-100-100-163.mpls.qwest.net] has quit [Quit: KVIrc
4.1.1 Equilibrium http://www.kvirc.net/]
04:11 -!- icey [~user@ip68-104-183-151.ph.ph.cox.net] has quit [Remote host closed
the connection]
04:16 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services]
04:16 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
04:29 -!- elephants [~elephants@173-230-160-81.cable.teksavvy.com] has quit
[Remote host closed the connection]
04:36 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has joined #go-nuts
04:44 -!- photron_ [~photron@port-92-201-6-145.dynamic.qsc.de] has joined #go-nuts
04:54 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
05:05 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has joined #go-nuts
05:06 -!- foocraft [~ewanas@86.36.49.200] has quit [Ping timeout: 240 seconds]
05:15 -!- vsayer [~vivek@c-67-170-236-166.hsd1.ca.comcast.net] has joined #go-nuts
05:16 -!- elimisteve [~elimistev@ec2-50-16-219-29.compute-1.amazonaws.com] has
joined #go-nuts
05:21 -!- genbattle [~nick@203-173-210-96.dialup.ihug.co.nz] has joined #go-nuts
05:24 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has quit [Read
error: Operation timed out]
05:33 -!- foocraft [~ewanas@86.36.49.200] has joined #go-nuts
05:34 -!- cafesofie [~cafesofie@ool-18b97779.dyn.optonline.net] has quit [Remote
host closed the connection]
05:49 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has joined #go-nuts
05:54 -!- unofficialmvp [~dev@94.62.164.227] has joined #go-nuts
06:01 -!- unofficialmvp [~dev@94.62.164.227] has left #go-nuts []
06:02 -!- foocraft [~ewanas@86.36.49.200] has quit [Quit: Leaving]
06:03 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving]
06:09 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has quit [Ping
timeout: 248 seconds]
06:10 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
06:31 -!- gedevan [~gedevan@83.167.106.253] has quit [Quit: Linkinus -
http://linkinus.com]
06:33 -!- tvw [~tv@e176009192.adsl.alicedsl.de] has joined #go-nuts
06:38 -!- tylerl_ [~tylerl@ip24-251-232-171.ph.ph.cox.net] has joined #go-nuts
06:39 < tylerl_> if there's a system library that I want to extend, what's
the best way to go about overriding an existing function?  Embed the struct in one
of my own and then make an identically-named function?
06:41 < scyth> I'd go with cloning the package
06:41 < tylerl> scyth: just dupe the whole thing?
06:41 < madari> tylerl: one example
https://github.com/madari/go-socket.io/blob/master/servemux.go
06:43 < tylerl> thanks
06:43 < tylerl> I'm modifying http/cgi to serve php.
06:44 < tylerl> the php cgi binary has its own rules
06:46 < tylerl> madari: what's that socketio stuff?
06:47 < madari> it's a Go backend for this: http://socket.io/
06:49 < tylerl> yes -- i'm looking at that but i don't understand what it
does
06:49 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
06:53 < madari> basically it helps you to write stuff like this
http://wall-r.com/paper without worrying about browser capabilities.  It picks the
best available transport (e.g.  websocket, xhr-multipart, ...) transparently
06:55 < madari> I hope that helps :)
06:56 < tylerl> madari: what part does it help me write?  What role does it
fill?
06:57 < tylerl> i mean, jquery is what usually helps me not worry about
browser capabilities.  why do i need socketio?
06:58 < madari> well it's sort of jquery for networking :D
06:59 < madari> "hiding the complexity of the different transports
(WebSocket, Flash, forever iframe, XHR long polling, XHR multipart encoded, etc),
while retaining a WebSocket-like API"
07:00 < madari> (from the client repository:
https://github.com/LearnBoost/Socket.IO)
07:00 < tylerl> Yeah.  I read that statement several times trying to figure
out what it was supposed to mean.
07:01 -!- ww [~ww@river.styx.org] has joined #go-nuts
07:05 < madari> :( if you're still interested maybe this will help:
http://blog.learnboost.com/blog/socket-io-sockets-for-the-rest-of-us/
07:08 -!- foocraft [~ewanas@86.36.49.200] has joined #go-nuts
07:17 -!- sebastianskejoe [~sebastian@89.249.0.154] has joined #go-nuts
07:19 < taruti> sometimes I dislike not being able to use dynamic arrays :(
07:19 < tylerl> taruti: how so?
07:20 < Namegduf> append() should let you get similar behaviour.
07:20 < tylerl> i never use arrays directoy for anything.
07:20 < taruti> Namegduf: I want them inside the struct for cache reasons
07:20 < tylerl> *directly*
07:20 < taruti> (as a variable sized last member)
07:20 < Namegduf> You mean C-style?
07:20 < Namegduf> Yeah.
07:20 < taruti> yes
07:21 < Namegduf> Not dynamically resizable, just dynamically sized.
07:21 < taruti> yes
07:22 < Namegduf> Yeah, you have to get into unsafe to do that.
07:23 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Read error: Connection
reset by peer]
07:24 < |Craig|> I wonder if that kind of thing could be done with the
hypothetical future generics system.  A generic struct containing an array of
generic size.  Of course we can't know yet
07:25 < |Craig|> That reminds be, any news on the generics front.  I havent
been paying attention
07:25 < taruti> Namegduf: any example of using unsafe to do that?
07:25 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts
07:25 < taruti> would probably beat using 8c
07:26 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has quit [Ping
timeout: 260 seconds]
07:27 < Namegduf> I couldn't provide one.
07:27 < Namegduf> You'd, hmm.
07:28 < Namegduf> Need to create a correctly sized block of bytes,
containing a slice, plus your end bit.
07:28 < taruti> ah yes
07:28 < Namegduf> Set up the slice's pointer bit to point to the remaining
part, and its len and cap correctly.
07:28 < taruti> and then cast it around
07:29 < Namegduf> And then cast a pointer to the block to just a pointer to
the type at the start.
07:29 < Namegduf> In essence the dynamically sized array isn't really part
of it, it's just right next to it.
07:29 < Namegduf> Similar effect, I hope.
07:30 -!- telexicon [~telexicon@unaffiliated/chowmeined] has quit [Ping timeout:
252 seconds]
07:30 < Namegduf> I think the only way to avoid the cost of dereferencing
the slice would be to have the type contain a zero-length array at the end, ala C
07:30 < Namegduf> And compile with bounds checking off
07:30 < Namegduf> Which is not a guaranteed feature
07:32 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:34 -!- Cobi [~Cobi@2002:1828:88fb:0:aede:48ff:febe:ef03] has joined #go-nuts
07:45 -!- genbattle [~nick@203-173-210-96.dialup.ihug.co.nz] has quit [Ping
timeout: 246 seconds]
07:51 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Remote
host closed the connection]
07:56 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
08:05 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 240 seconds]
08:13 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:20 -!- virtualsue [~chatzilla@nat/cisco/x-rxnwmkcnhjvmxzen] has joined #go-nuts
08:22 -!- Stiletto [7f000001@69.195.144.4] has joined #go-nuts
08:24 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
08:29 -!- xb95 [~xb95@dreamwidth/staff/mark] has quit [Ping timeout: 258 seconds]
08:30 -!- xb95 [~xb95@xb95.com] has joined #go-nuts
08:30 -!- xb95 [~xb95@xb95.com] has quit [Changing host]
08:30 -!- xb95 [~xb95@dreamwidth/staff/mark] has joined #go-nuts
08:35 -!- Coffee [5b9a07e9@gateway/web/freenode/ip.91.154.7.233] has joined
#go-nuts
08:38 -!- virtualsue [~chatzilla@nat/cisco/x-rxnwmkcnhjvmxzen] has quit [Quit:
ChatZilla 0.9.86.1 [Firefox 4.0/20110318052756]]
08:44 -!- GeertJohan [~Squarc@ip4da06866.direct-adsl.nl] has joined #go-nuts
08:48 -!- tvw [~tv@e176009192.adsl.alicedsl.de] has quit [Ping timeout: 240
seconds]
08:57 -!- wrtp [~rog@92.17.111.113] has joined #go-nuts
08:58 -!- Boney [~paul@124-168-103-51.dyn.iinet.net.au] has quit [Ping timeout:
276 seconds]
08:58 -!- GeertJohan [~Squarc@ip4da06866.direct-adsl.nl] has quit [Quit: Leaving.]
08:58 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
08:59 -!- Boney [~paul@124-168-103-51.dyn.iinet.net.au] has joined #go-nuts
09:01 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has quit [Quit:
This computer has gone to sleep]
09:06 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Read
error: Operation timed out]
09:10 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
09:13 -!- tylerl [~tylerl@ip24-251-232-171.ph.ph.cox.net] has quit [Quit: leaving]
09:14 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
09:24 -!- pmolleda [~pmolleda@0278ad51.bb.sky.com] has joined #go-nuts
09:37 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
09:38 -!- rlab_ [~Miranda@91.200.158.34] has joined #go-nuts
09:39 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 248 seconds]
09:41 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
09:59 -!- Fish- [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts
10:00 -!- GeertJohan [~Squarc@ip4da06866.direct-adsl.nl] has joined #go-nuts
10:05 -!- mudslinger [~mudslinge@60-242-109-78.tpgi.com.au] has joined #go-nuts
10:07 -!- bawr [~bawr@unaffiliated/mrfawkes] has joined #go-nuts
10:07 -!- bawr [~bawr@unaffiliated/mrfawkes] has quit [Client Quit]
10:19 -!- dRbiG [drbig@unhallowed.pl] has joined #go-nuts
10:20 -!- ptd [~ptd@host109-156-136-82.range109-156.btcentralplus.com] has joined
#go-nuts
10:21 -!- KingPhilroy [~kingphilr@shc-nat-newhall.stonehill.edu] has quit [Read
error: Connection reset by peer]
10:22 -!- KingPhilroy [~kingphilr@shc-nat-newhall.stonehill.edu] has joined
#go-nuts
10:22 -!- shvntr [~shvntr@116.26.128.225] has joined #go-nuts
10:27 < ptd> I'm getting an "imported and not used: fmt" error, how do I
turn it into a warning?
10:27 < aiju> not at all
10:27 -!- mudslinger [~mudslinge@60-242-109-78.tpgi.com.au] has left #go-nuts
["Leaving"]
10:28 < ptd> why?
10:28 < aiju> because.
10:28 < aiju> i'm sure there's a rationale on the mailinglist or so
10:28 -!- GeertJohan [~Squarc@ip4da06866.direct-adsl.nl] has quit [Quit: Leaving.]
10:29 -!- Project_2501 [~Marvin@82.84.97.80] has joined #go-nuts
10:29 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
10:36 -!- ptd [~ptd@host109-156-136-82.range109-156.btcentralplus.com] has quit
[Quit: Leaving]
10:38 -!- Myr [~myr@74.207.236.203] has left #go-nuts []
10:39 < YetiDung> How could I make a wrapper for a C++ library?
10:40 < aiju> i don't think that's easily possible
10:42 < kimelto> I started a ftp package for go (very basic).  It would be
nice if you could tell what is not "go-ish" so I could fix it.  The url:
https://github.com/jlaffaye/goftp/blob/master/ftp.go
10:43 < YetiDung> Would making a C wrapper and then calling the C functions
from Go work?
10:43 < aiju> it could
10:44 < aiju> kimelto: ConnectAnonymous isn't really needed
10:46 -!- huin [~huin@91.85.171.238] has joined #go-nuts
10:49 < kimelto> oki
10:59 < edsrzf> kimelto: It would be consistent with the core packages to
rename ServerCon -> ServerConn
10:59 < edsrzf> You might also look at using the net/textproto package
11:02 < ww> -
11:05 -!- exch [~exch@c74149.upc-c.chello.nl] has quit [Read error: Operation
timed out]
11:06 -!- exch [~exch@c74149.upc-c.chello.nl] has joined #go-nuts
11:08 < kimelto> edsrzf: right.  thx
11:10 < taruti> Has anyone wrapped liblzf for Go?
11:15 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has quit [Remote
host closed the connection]
11:20 -!- spacenick [~niklas@stgt-5f7026f7.pool.mediaWays.net] has joined #go-nuts
11:23 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-161-176.clienti.tiscali.it] has
joined #go-nuts
11:26 -!- Project_2501 [~Marvin@82.84.97.80] has quit [Read error: Operation timed
out]
11:31 < spacenick> Hi, all, I've got a problem with Go's IO performance, I'm
trying to write a sorting test
11:31 < spacenick> and I want to read in a text file with one integer number
per line
11:32 < spacenick> however even the performance of just reading the line is
abyssimal
11:32 < skelterjohn_> what are you using to read it
11:32 < skelterjohn_> and make sure it isn't a networked file
11:32 < spacenick> http://pastebin.com/yLdAJpfd
11:33 < spacenick> It's a local file and cat needs less than measurable to
read it and it's probably in the cache already
11:33 < spacenick> it's about 7 MB in size
11:33 < skelterjohn_> the slow bit is probably printing it out line-by-line
11:34 < skelterjohn_> try replacing "fmt.Print(line)" with "_ = line"
11:34 < skelterjohn_> (so line isn't unused)
11:34 < spacenick> what does _ = line mean?
11:34 < spacenick> ah ok
11:35 < spacenick> I see you want to eliminate printing
11:35 < skelterjohn_> "_ = x" is a noop that tricks the compiler into
thinking you're using x
11:35 < spacenick> Btw I've tried with gccgo and 8g both show about the same
speed and it's cpu bound (I'm writing to /dev/null)
11:37 < spacenick> Ok it still takes 0.8 seconds compared to 2.8 with
println but it's still many times slower then cat and co
11:37 < spacenick> I will test how fast this is in python
11:37 < skelterjohn_> cat doesn't read in line-by-line
11:38 < skelterjohn_> it just reads in all
11:38 < spacenick> Yeah that's why I want to confirm with a python script
11:38 < aiju> not quite either
11:38 < aiju> cat reads 8192 bytes blocks or so
11:39 < skelterjohn_> well yeah
11:39 < skelterjohn_> spacenick: might also consider trying
github.com/skelterjohn/exp/iochan O:-)
11:40 < spacenick> Ok so a simple python script (hacked from my comparable
sorttest in python) that read every line and just prints it takes about 3 seconds,
6 if I read them in a list and then print the list line by line
11:41 < ww> uriel: another one -- today for the libraries --
http://bitbucket.org/ww/marc21
11:41 -!- huin [~huin@91.85.171.238] has quit [Quit: off out]
11:43 -!- genbattle [~nick@203-173-210-96.dialup.ihug.co.nz] has joined #go-nuts
11:43 < spacenick> Ok with wrting in a vector and number conversion I'm at 3
seconds seems like this is normal for line by line operation
11:44 < spacenick> even though the file should definitely be cached and I
can see it's cpu bound
11:45 < spacenick> can anyone explain me why in my code I can take store
vector.IntVector variable and call the vector methods on it even though their
receiver is *IntVector?
11:45 < spacenick> ah and why does Open have 1 argument for 8g and 3 for
gccgo while gccgo doesn't know OpenFile?
11:50 -!- lucid [~rbl@84-74-142-37.dclient.hispeed.ch] has quit [Ping timeout: 240
seconds]
11:57 < kimelto> spacenick: you read one line at a time?  how?
11:57 < kimelto> using bufio?
11:57 < spacenick> by the way increasing the buffersize for bufio doesn't
help much, and I still don't understand how sort -n can sort the whole file in 2
seconds and Go takes 3 to read the lines into a vector alone
11:58 < spacenick> kimelto: yes see http://pastebin.com/yLdAJpfd
11:59 < spacenick> and without the print it still takes nearly 1 second
12:00 < kimelto> just for fun, if you replace ReadLine with ReadBytes, does
it change exec time?
12:01 < kimelto> (I dont know if string have *that* much overhead)
12:02 < spacenick> Imporves from 0.89 seconds to 0.49
12:03 < spacenick> but then it will be harder to get an int out of it
12:03 < spacenick> and I don't even know yet how casting works in go let
alone making a string out of a []byte
12:03 < kimelto> string(bytes)
12:05 < spacenick> and what does foo.(*type) do?
12:07 -!- pmolleda [~pmolleda@0278ad51.bb.sky.com] has quit [Remote host closed
the connection]
12:09 -!- foocraft [~ewanas@86.36.49.200] has quit [Quit: Leaving]
12:09 -!- foocraft [~ewanas@86.36.49.200] has joined #go-nuts
12:15 -!- ab3 [~abe@83.101.90.66] has joined #go-nuts
12:15 < genbattle> spacenick: look up type switch at
http://golang.org/doc/go_spec.html
12:16 < genbattle> spacenick: i'm pretty sure that's what the code you're
referring to does
12:22 < uriel> ww: cool, thanks
12:23 < uriel> ww: by the way, added the Open Knowledge Foundation to
http://go-lang.cat-v.org/organizations-using-go
12:23 < uriel> ww: any comment on what you are using it for?  :)
12:26 < ww> uriel: well, see that's a complicated one
12:27 < ww> see i actually got a fair amount of flak for rewriting a good
portion of ckan using go and rdf, instead of python and sql and solr and the rest
of the kitchen sink
12:28 < ww> so, i'd say "(meta)data catalogue aggregation and linked data"
12:28 < ww> but there are those who wouldn't agree
12:30 < ww> the continuation of that work is happening with edina (jisc
national data centre at university of edinburgh etc) but don't put them just yet
because i need their permission to mention their name on websites, press releases
whatever
12:30 < uriel> there are always people who disagree
12:31 < ww> (which i'll ask about tomorrow)
12:31 < ww> (err...  monday)
12:32 < uriel> heh, no worries, just wondering if you wanted to add some
explanatory comment
12:33 < ww> it's probably safe to put what i said.  just be aware that the
context is that it isn't the only such system at okf
12:33 -!- dropdrive [~dropdrive@cpe-72-227-159-70.nyc.res.rr.com] has quit [Read
error: Connection reset by peer]
12:36 < uriel> well, I don't expect any existing organization to have
completely rewritten all their systems in Go quite yet ;P
12:43 -!- YetiDung [5b9a07e9@gateway/web/freenode/ip.91.154.7.233] has quit [Ping
timeout: 252 seconds]
12:44 -!- dropdrive [~dropdrive@cpe-72-227-159-70.nyc.res.rr.com] has joined
#go-nuts
12:47 < genbattle> the hardest part of programming cgo interfaces for me is
writing C code :-/
12:47 -!- Project_2501 [~Marvin@82.84.95.239] has joined #go-nuts
12:49 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-161-176.clienti.tiscali.it] has
quit [Ping timeout: 276 seconds]
12:49 * ww complains about 1000 different web APIs
12:54 < spacenick> If I do func (heap Heap) siftDown(pos){} am I correct
that the heap is not copyed?
12:55 < spacenick> (type Heap []int)
12:56 -!- GeertJohan [~Squarc@ip4da06866.direct-adsl.nl] has joined #go-nuts
12:57 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 240 seconds]
12:58 < exch> yes
12:58 < exch> a slice is just a small struct with capacity, length and a
pointer to the actual underlying data
12:58 -!- genbattle [~nick@203-173-210-96.dialup.ihug.co.nz] has quit [Quit:
Leaving]
13:01 -!- gavin [db495b1c@gateway/web/freenode/ip.219.73.91.28] has joined
#go-nuts
13:05 -!- felix__ [~felix@cpc18-dals17-2-0-cust50.hari.cable.virginmedia.com] has
joined #go-nuts
13:06 < Guest79451> hi, can anyone advise me on the neatest way to take a
directory listing []*FileInfo and turrn it into a list of filenames with
extentions removed?
13:07 < Guest79451> in .NET i would do dirContents.Select(filename =>
filename.Substring(filename.LastIndexOf('.')).ToArray()
13:07 < Guest79451> in go do I have to declare and initialize a list, do a
for loop building up the list then somehow convert the list to an array/slice?
13:07 < Guest79451> er..  in go
13:08 < Guest79451> basically, can't think of a neat way to do it in go
13:11 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts
13:15 -!- ab3 [~abe@83.101.90.66] has quit [Ping timeout: 252 seconds]
13:24 -!- firwen [~firwen@ANancy-554-1-50-104.w90-13.abo.wanadoo.fr] has joined
#go-nuts
13:25 -!- dropdrive [~dropdrive@cpe-72-227-159-70.nyc.res.rr.com] has quit [Read
error: Connection reset by peer]
13:27 < Guest79451> why doesnt this line build:
13:27 < Guest79451> var titles [len(items)]string
13:27 < Guest79451> ?
13:28 < Guest79451> can you only create an array with size defined at
compile time?
13:29 -!- dropdrive [~dropdrive@cpe-72-227-159-70.nyc.res.rr.com] has joined
#go-nuts
13:33 < aiju> Guest79451: yes
13:34 < exch> Guest79451: you'll want a slice: titles := make([]string,
len(items))
13:35 < Guest79451> ah thanks
13:38 -!- pearle [~pearle@blk-224-181-222.eastlink.ca] has joined #go-nuts
13:46 < skelterjohn_> Guest24408: you create a slice of the same length as
the []*FileInfo, and then you populate it with theFileInfos[i].Name or whatever
the field is
13:46 < skelterjohn_> oh - you also want to trim stuff
13:46 < Guest79451> yea, ive done it now
13:46 < Guest79451> thanks
13:46 < skelterjohn_> filename[:strings.LastIndex(filename, ".")]
13:46 < skelterjohn_> cool
13:52 -!- rlab_ [~Miranda@91.200.158.34] has quit [Ping timeout: 252 seconds]
13:58 -!- shvntr [~shvntr@116.26.128.225] has quit [Quit: leaving]
13:59 -!- huin [~huin@91.85.171.238] has joined #go-nuts
14:05 -!- sebastianskejoe [~sebastian@89.249.0.154] has quit [Read error:
Operation timed out]
14:12 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
14:13 -!- Guest79451 [~felix@cpc18-dals17-2-0-cust50.hari.cable.virginmedia.com]
has quit [Quit: Leaving]
14:14 -!- sebastianskejoe [~sebastian@89.249.0.154] has joined #go-nuts
14:22 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
14:39 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed
the connection]
14:46 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-180-203.clienti.tiscali.it] has
joined #go-nuts
14:48 -!- snearch [~snearch@f053004157.adsl.alicedsl.de] has joined #go-nuts
14:49 -!- Project_2501 [~Marvin@82.84.95.239] has quit [Ping timeout: 252 seconds]
15:25 -!- tobym [~tobym@bas1-montreal42-1178045733.dsl.bell.ca] has joined
#go-nuts
15:29 -!- aho [~nya@fuld-590c6242.pool.mediaWays.net] has joined #go-nuts
15:44 -!- foocraft [~ewanas@86.36.49.200] has quit [Quit: if you're going....to
san.  fran.  cisco!!!]
15:48 -!- nbm [~nathan@dhcp-0-25-9c-d3-a7-c7.cpe.townisp.com] has joined #go-nuts
15:49 < nbm> So...I'm trying to use xgb and make gives me "not enough
arguments in call to os.Open" type errors.  What am I missing?
15:52 < exch> nbm: the source is probably outdated.  there have bene changes
to the os.Open api recently
15:52 < exch> either that, or your Go version is outdated
15:52 < exch> the source can be fixed by running gofix on it
15:53 < nbm> Thanks, I'll try gofix.
15:55 < str1ngs> Guest24408: I like to use filepath.Glob for listings then
range over them
15:56 < nbm> Okay..."hg incoming https://go.googlecode.com/hg/" ->
"abort: HTTP Error 502: Bad Gateway"
15:57 < str1ngs> Guest24408: to remove extentions something like
strings.Split
15:57 < nbm> Weird...clone works fine.
15:57 < str1ngs> derp wrong guy :(
15:58 < nbm> Okay, clone doesn't work fine...is this my network or is
something wrong with the server?
16:00 -!- gavin [db495b1c@gateway/web/freenode/ip.219.73.91.28] has quit [Quit:
Page closed]
16:01 < str1ngs> nbm: think google code is down
16:01 < nbm> Well crap.
16:02 < str1ngs> something related to hg
16:04 < nbm> Well, while I'm pointing out web failings, "The Mercurial in
your distribution's package repository will most likely be old and broken." is a
quote from http://golang.org/doc/install.html referring to hg in Ubuntu and
Debian.  I don't know about Ubuntu, but my copy of Debian comes with hg 1.8.1.
Also, that seems rather trollish for an installation guide.
16:07 < str1ngs> nbm: probably at the time of right it was old and broken :P
16:07 < str1ngs> writing*
16:09 < nbm> I'd concede that when it was written the mercurial in Debian
stable may have been old and broken, but I remember checking out Go from a machine
running sid back then without problems.  I don't want to start distro wars or
anything, but that page is dated at best.
16:10 < str1ngs> my guess is that line is dated now.
16:13 < str1ngs>
http://packages.debian.org/search?searchon=names&keywords=golang might get you
around the hg issue
16:13 < nbm> Huh, didn't know about that.
16:14 < nbm> It seems fixed though, yay.
16:17 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has joined
#go-nuts
16:18 < justinlilly> https://github.com/justinlilly/go-ghissues -- api
client for github issues if anyone needs it.
16:18 < str1ngs> justinlilly: oh I was thinking of doing that for gists
16:19 < justinlilly> they have a new gists api fwiw
16:20 < str1ngs> yes I figured that is what you used here.
16:20 < justinlilly> their issues api stayed the same with the redesign,
actually.
16:20 < justinlilly> if you want to patch up the project into a full github
api client..  I'm happy to use that.
16:20 < str1ngs> that might be best what you have here is a good base
16:21 < justinlilly> github/issues or github/gists seem like good
namespacing.
16:25 < str1ngs> add github/git for go-git :P
16:25 < str1ngs> which is still work in progress
16:25 < aiju> a go implementation of git?
16:25 < str1ngs> no I wish.  bindings to libgit2
16:26 < str1ngs> native bindings are abit of my skill range right now
16:27 < taruti> How does one pass+call closures from Go to 8c?
16:31 < taruti> that is any example of the use of runtime·closure
16:35 < str1ngs> taruti: are you trying to do a callback in cgo?
16:35 < str1ngs> not sure what you are trying to do here
16:35 < taruti> str1ngs: callback in 8c
16:36 < str1ngs> what is 8c?
16:36 < aiju> the c compiler
16:36 < taruti> the C compier that ships with Go distribution and that can
be used without cgo
16:36 < str1ngs> ok sorry so plan9 c
16:37 < taruti> not related to plan9 this time :)
16:37 < str1ngs> ok so its a C compiler yes?
16:37 < taruti> yes
16:37 < taruti> which does not require cgo
16:37 < str1ngs> right but all it does is C no?
16:37 < str1ngs> not really related to go
16:37 < taruti> yes
16:38 < taruti> actually it is, calling Go runtime functions
16:38 < str1ngs> just runtime?
16:39 < taruti> well Go code calls the C code which calls Go runtime etc
16:39 < scyth> anyone familiar with mgo driver?
16:39 < str1ngs> taruti: do you have an example of 8c ?
16:41 < taruti> str1ngs: see e.g.
https://bitbucket.org/taruti/hardcrypto.go
16:43 < str1ngs> taruti: OFILES calls 8c ?
16:43 < taruti> str1ngs: yes
16:43 < str1ngs> ok makes sense
16:43 < taruti> (or 8a depending whether there is a .c or a .s)
16:44 < str1ngs> ok
16:44 < aiju> 18:44 < str1ngs> taruti: do you have an example of 8c ?
16:44 < aiju> the whole runtime is written in 8c/8a
16:46 < str1ngs> aiju: was that an example.  nope :P
16:46 < str1ngs> taruti: func aesEncrypt(*uint32, int, *byte, *byte) calling
C I assume?
16:46 < str1ngs> or a declaring
16:47 < taruti> declaring
16:47 < str1ngs> ok bit like how gcc-go does it
16:48 -!- tobym [~tobym@bas1-montreal42-1178045733.dsl.bell.ca] has quit [Ping
timeout: 276 seconds]
16:51 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Read
error: Operation timed out]
16:51 < str1ngs> taruti: ok, sorry I know I'm not being helpful but callback
seems to be an issue with cgo also.  if you can post to the ML I think some else
would be more helpful
16:52 < str1ngs> my guess russ or someone else from the go team would know
16:53 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
16:53 < aiju> taruti: just dig around in runtime code
16:54 < taruti> aiju: it has no occurences of that, but the source seems
clear enough to get it right in a few tries :)
16:54 < aiju> look at runtime.closure, for example
16:57 -!- GeertJohan [~Squarc@ip4da06866.direct-adsl.nl] has quit [Quit: Leaving.]
16:58 < str1ngs> taruti: if it helps I'm looking to
17:03 -!- spacenick [~niklas@stgt-5f7026f7.pool.mediaWays.net] has quit [Quit:
Lost terminal]
17:06 -!- firwen [~firwen@ANancy-554-1-50-104.w90-13.abo.wanadoo.fr] has quit
[Remote host closed the connection]
17:13 -!- Allotabits [~Joshwa@h35.195.213.151.dynamic.ip.windstream.net] has
joined #go-nuts
17:13 < Allotabits> Anyone familiar with Go in Windows?
17:14 < Allotabits> I'm having an issue with goinstall.  I get "Bad file
number" for any command I issue.  Is goinstall supported in Windows?
17:16 -!- Viriix [~joseph@c-67-169-172-251.hsd1.ca.comcast.net] has quit [Quit:
Leaving]
17:18 < uriel> Allotabits: I don't think goinstall works on windows yet
17:18 < uriel> I think there is an issue about it
17:18 < Allotabits> Ahh, that's too bad.  Is there a forum or issues list
for gomingw?
17:28 -!- Mr_Dark [~dk@poviko.demon.nl] has quit [Ping timeout: 252 seconds]
17:30 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has joined #go-nuts
17:43 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
17:47 < kimelto> how do you manage in go multiple types when you need to
know what the struct has, and not what it does (behavior via interfaces).
interface with getters seems overkill.
17:54 -!- BoWozZ [~BackTrack@180.249.188.243] has joined #go-nuts
17:56 -!- sebastianskejoe [~sebastian@89.249.0.154] has quit [Ping timeout: 246
seconds]
17:57 -!- sebastianskejoe [~sebastian@89.249.0.154] has joined #go-nuts
18:00 -!- BoWozZ [~BackTrack@180.249.188.243] has quit []
18:14 -!- Urtie [~urtie@2a01:2b0:301d:100:e2cb:4eff:fecd:72d2] has quit [Remote
host closed the connection]
18:26 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
18:31 < steven> the new reflect changes broke my lib
18:31 < steven> and gofix didnt fix it.
18:31 < steven> :|
18:32 -!- KirkMcDonald [~Kirk@python/site-packages/KirkMcDonald] has quit [Ping
timeout: 252 seconds]
18:32 < steven> it runtime panics when i do reflect.Zero(someVar).Addr()
18:33 -!- KirkMcDonald [~Kirk@python/site-packages/KirkMcDonald] has joined
#go-nuts
18:34 < steven> println(reflect.Zero(reflect.TypeOf(42)).Addr().String())
18:34 < steven> should that panic?
18:37 -!- TheMue [~TheMue@p5DDF7D23.dip.t-dialin.net] has joined #go-nuts
18:37 < steven> this also panics: var a int;
println(reflect.ValueOf(a).CanAddr())
18:37 < steven> whats the deal
18:53 -!- keidaa [~keidaa@cm-84.210.56.138.getinternet.no] has joined #go-nuts
18:55 -!- foocraft [~ewanas@78.101.239.100] has joined #go-nuts
19:09 -!- ahf [ahf@irssi/staff/ahf] has joined #go-nuts
19:10 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has joined #go-nuts
19:11 < skelterjohn> steven: not really familiar enough with the reflect api
to answer your question
19:15 -!- anticw [~anticw@c-98-210-108-13.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
19:19 -!- salty-horse [~ori@bzq-79-178-40-138.red.bezeqint.net] has joined
#go-nuts
19:19 < salty-horse> can I report documentation bugs here?
19:25 < skelterjohn> issue tracker is in the topic
19:25 < skelterjohn> but you can double check that it's a bug here O:-)
19:25 -!- telexicon [~telexicon@unaffiliated/chowmeined] has joined #go-nuts
19:26 < salty-horse> skelterjohn, nm :) --
https://code.google.com/p/go/issues/detail?id=1786
19:30 -!- Fib [~fib@li142-170.members.linode.com] has joined #go-nuts
19:31 < Fib> Hi - I'm a complete newbie trying to learn Go with a small
project.  I'm trying to use https://github.com/jb55/go-twitter but I'm having to
make a few changes to get it to compile.
19:31 < Fib> I've made a few fixes already but there's one error I don't
understand enough to fix:
19:32 < Fib> http_auth.go:94: cannot use map literal (type map[string]
string) as type http.Header in assignment
19:33 < Fib> I've tried changing the type of the map to map[string][]string
to match the current type of http.Header, but this just gives a new error:
19:33 < Fib> http_auth.go:94: cannot use (node ADDSTR) (type string) as type
[]string in map value
19:34 < Fib> I've tried extracting the string addition expression and adding
a [:] to make a slice from the string, but I still get similar errors
19:37 < Fib> It looks like string is already a slice type, so somestring[:]
just gives a string?
19:37 -!- foocraft [~ewanas@78.101.239.100] has quit [Quit: if you're going....to
san.  fran.  cisco!!!]
19:39 -!- salty-horse [~ori@bzq-79-178-40-138.red.bezeqint.net] has left #go-nuts
["Leaving"]
19:42 -!- Allotabits [~Joshwa@h35.195.213.151.dynamic.ip.windstream.net] has quit
[Ping timeout: 276 seconds]
19:46 < keidaa> cannot convert html (type interface { }) to type map[string]
string: need type assertion
19:46 < keidaa> is this even possible?
19:49 -!- nictuku [~yvesj@unaffiliated/nictuku] has quit [Ping timeout: 240
seconds]
19:50 -!- nictuku [~yvesj@84-72-7-79.dclient.hispeed.ch] has joined #go-nuts
19:50 -!- nictuku [~yvesj@84-72-7-79.dclient.hispeed.ch] has quit [Changing host]
19:50 -!- nictuku [~yvesj@unaffiliated/nictuku] has joined #go-nuts
19:52 < Fib> I've fixed the errors by using h := make(http.Header);
h.Add(etc, etc).  It would be nice to understand the error though.  Is there any
way of making a literal map[string][]string?
19:53 -!- PJRobins [~kvirc@184-100-100-163.mpls.qwest.net] has joined #go-nuts
19:55 -!- nictuku [~yvesj@unaffiliated/nictuku] has quit [Ping timeout: 240
seconds]
19:56 < kevlar> Fib: Sure, just like any composite type
19:56 < kevlar> map[string][]string{ "blah": []string{"foo", "bar"} }
19:57 < Fib> ahhhhh I see
19:58 -!- xb95 [~xb95@dreamwidth/staff/mark] has quit [Quit: uh oh]
19:58 < kevlar> but to convert a map[string]string to a http.Header, you'll
probably want to make(Header) and then for k,v:=range inmap{h.Set(k,v)} or
something.  It's possible the type of http.Header changed since go-twitter was
made.
19:59 -!- thakis_ [~thakis@216.239.45.130] has joined #go-nuts
19:59 < Fib> I expect a few things have changed, yes.  I had to modify the
makefiles too
20:00 < Fib> It was looking for Make.$(GOARCH), I think the correct
replacement is Make.inc
20:00 < kevlar> hopefully now that we have gofix, packages that are
up-to-date now or in the future will be able to be somewhat simply upgraded.
20:00 < kevlar> oh, wow, yeah that's been awhile
20:01 -!- nictuku [~yvesj@84-72-7-79.dclient.hispeed.ch] has joined #go-nuts
20:01 -!- nictuku [~yvesj@84-72-7-79.dclient.hispeed.ch] has quit [Changing host]
20:01 -!- nictuku [~yvesj@unaffiliated/nictuku] has joined #go-nuts
20:01 < thakis_> hi, i'm new to go.  i'm trying to write a program with one
producer that reads lines from stdin and writes them to a channel, and a consumer
that reads from a channel and prints the output to stdout (i.e.  some form of
cat).  however, the producer produces the first line of the input forever.  what
am i doing wrong?  http://pastie.org/1875838
20:02 < keidaa> is there a way to check if a map key exists?
20:02 < Fib> So what is the benefit of http.Header being a
map[string][]string?  Is it valid to have multiple values under the same key in
the http header?
20:02 < kevlar> thakis_: in a for loop, the first expression is only run
once
20:02 < thakis_> heh
20:02 < kevlar> keidaa: value,exists := m[key]
20:03 < kevlar> Fib: yes, in HTTP it's technically the same to send Header:
a, b and Header: a Header: b
20:03 < Fib> Ok, thanks
20:04 < kevlar> thakis_: try something like for { bytes,err := ...; if err
== os.EOF { break } else if err != nil {...} ...}
20:05 -!- Dr_Who [~tgall@206.9.88.154] has quit [Changing host]
20:05 -!- Dr_Who [~tgall@linaro/tgall-foo] has joined #go-nuts
20:05 < thakis_> kevlar: thanks!
20:10 -!- Kafo [5b98bdf4@gateway/web/freenode/ip.91.152.189.244] has joined
#go-nuts
20:14 < keidaa> fl := []string{}
20:14 < keidaa> for _,file := range files {
20:14 < keidaa> append(fl, file.Name)
20:14 < keidaa> }
20:14 < keidaa> main.go:81: append(fl, file.Name) not used
20:15 < keidaa> ?
20:15 < justinlilly> does append return a new list?
20:15 < justinlilly>
http://golang.org/doc/go_spec.html#Appending_and_copying_slices
20:16 < keidaa> I see, looking at it
20:16 < justinlilly> so basically I think you're looking for fl = append(fl,
file.Name)
20:16 < keidaa> yep, works
20:17 < keidaa> is there a better way of doing that btw?
20:17 < keidaa> I just want the filenames in a string slice/array
20:17 * justinlilly is a noob and doesn't know.
20:17 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds]
20:17 < keidaa> oh well, it works:P
20:23 < kevlar> keidaa: what data type is "files"?
20:23 -!- foocraft [~ewanas@78.100.195.95] has joined #go-nuts
20:23 < keidaa> *File
20:24 < kevlar> and that is definitely a slice, not an array.  I have never
used an array directly in the entire time I've been programming with and
developing Go.
20:24 -!- vsayer [~vivek@c-67-170-236-166.hsd1.ca.comcast.net] has quit [Ping
timeout: 248 seconds]
20:24 < kevlar> oh, so files is a []*File?
20:24 < keidaa> yes
20:24 < keidaa> hence file.Name
20:25 < kevlar> then that's probably the best way to do it, though I would
personally go the fl := make([]string, len(files)); ...  { fl[i] = file.Name; }
route
20:25 < kevlar> because you know how many there are, so you might as well
preallocate the slice
20:26 < keidaa> yes, the append felt a bit sloppy
20:28 < keidaa> I thought new was used for built-in types though?
20:29 < jnwhiteh> Does anyone have a library for working with sets?
20:33 < kevlar> jnwhiteh: I cheat and use map[...]bool
20:33 < jnwhiteh> yeah =/
20:33 < jnwhiteh> no tiem to write one atm :P
20:33 -!- Allotabits [~Joshwa@h35.195.213.151.dynamic.ip.windstream.net] has
joined #go-nuts
20:35 -!- krutcha [~krutcha@S010600045a27676a.vs.shawcable.net] has joined
#go-nuts
20:35 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has joined #go-nuts
20:37 -!- photron_ [~photron@port-92-201-6-145.dynamic.qsc.de] has quit [Read
error: Operation timed out]
20:37 < keidaa> is there a list of the built-in functions some place?
20:38 -!- snearch [~snearch@f053004157.adsl.alicedsl.de] has quit [Quit:
Verlassend]
20:38 < krutcha> www.golang.org
20:39 < keidaa> yes, but where?
20:40 < krutcha> what sort of functions are you looking for?
20:40 < krutcha> you want the library functionality, or the raw language ?
20:40 < krutcha> try http://golang.org/pkg/
20:41 < krutcha> for the built-in library type stuff (organized into
individual packages in go)
20:44 < keidaa> I'm looking for global functions like len() make() etc.
20:46 < krutcha> http://golang.org/doc/go_spec.html should have everything,
although it's sortof organized by topic rather than raw reference
20:46 < krutcha> http://golang.org/doc/go_spec.html#Length_and_capacity
20:46 < krutcha> has len() described, for example
20:47 < |Craig|> http://golang.org/doc/go_spec.html#Built-in_functions
20:47 < krutcha>
http://golang.org/doc/go_spec.html#Making_slices_maps_and_channels
20:47 < |Craig|> all the built in functions are in the built in functions
section there, though they are not cleanly listed by name
20:48 < krutcha> brb reboot and maybe brick laptop :P
20:49 < keidaa> ok, was so few in there, thought there would be more..
20:49 < keidaa> looking for a way to remove a slice element
20:50 -!- krutcha [~krutcha@S010600045a27676a.vs.shawcable.net] has quit [Read
error: Connection reset by peer]
20:51 -!- krutcha [~krutcha@S010600045a27676a.vs.shawcable.net] has joined
#go-nuts
20:52 < edsrzf> keidaa: If you're removing it from the beginning of the
slice, you can say something like s = s[1:].  The end is similar.
20:52 < edsrzf> If you're removing an element from the middle, you'll have
to copy over the element.  There's no "remove" operation.
20:56 -!- Fish- [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Quit: So
Long, and Thanks for All the Fish]
20:56 -!- keidaa [~keidaa@cm-84.210.56.138.getinternet.no] has quit [Quit:
Leaving]
20:58 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
20:58 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-180-203.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
20:59 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
21:10 < wrtp> thakis_: your for loop does only does the ReadBytes once
21:10 < thakis_> wrtp: yes, kevlar told me how to fix this above, thanks
21:11 < wrtp> thakis_: oh yes, i missed that, np
21:22 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Ping timeout: 240
seconds]
21:24 -!- krutcha [~krutcha@S010600045a27676a.vs.shawcable.net] has quit [Quit:
Leaving]
21:27 -!- thakis_ [~thakis@216.239.45.130] has quit [Ping timeout: 240 seconds]
21:27 -!- ako [~nya@fuld-590c6bba.pool.mediaWays.net] has joined #go-nuts
21:29 -!- aho [~nya@fuld-590c6242.pool.mediaWays.net] has quit [Ping timeout: 240
seconds]
21:30 -!- thakis_ [~thakis@adsl-99-151-253-242.dsl.pltn13.sbcglobal.net] has
joined #go-nuts
21:30 -!- thakis_ [~thakis@adsl-99-151-253-242.dsl.pltn13.sbcglobal.net] has quit
[Remote host closed the connection]
21:30 -!- thakis_ [~thakis@216.239.45.130] has joined #go-nuts
21:32 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
21:34 -!- TheMue [~TheMue@p5DDF7D23.dip.t-dialin.net] has quit [Quit: TheMue]
21:39 -!- Kafo_ [5b98bdf4@gateway/web/freenode/ip.91.152.189.244] has joined
#go-nuts
21:40 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
21:44 -!- Kafo [5b98bdf4@gateway/web/freenode/ip.91.152.189.244] has quit [Ping
timeout: 252 seconds]
21:52 -!- Kafo_ [5b98bdf4@gateway/web/freenode/ip.91.152.189.244] has quit [Ping
timeout: 252 seconds]
21:55 -!- huin [~huin@91.85.171.238] has quit [Quit: off to bed]
22:00 -!- sebastianskejoe [~sebastian@89.249.0.154] has quit [Quit: Lost terminal]
22:08 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
22:08 -!- Kafo [5b98bdf4@gateway/web/freenode/ip.91.152.189.244] has joined
#go-nuts
22:13 < nbm> Does anyone know if the SDL bindings are any good?
22:16 -!- xb95 [~xb95@dreamwidth/staff/mark] has joined #go-nuts
22:16 -!- xb95 [~xb95@dreamwidth/staff/mark] has quit [Client Quit]
22:18 -!- xb95 [~xb95@dreamwidth/staff/mark] has joined #go-nuts
22:20 -!- kfb [~kevin@c-24-7-103-177.hsd1.ca.comcast.net] has joined #go-nuts
22:21 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
22:32 -!- wrtp [~rog@92.17.111.113] has quit [Quit: wrtp]
22:41 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
22:48 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
22:55 -!- Kafo [5b98bdf4@gateway/web/freenode/ip.91.152.189.244] has quit [Ping
timeout: 252 seconds]
22:58 -!- chimes [~chimes@24.104.130.118] has joined #go-nuts
23:25 -!- ab3 [~abe@83.101.90.66] has joined #go-nuts
23:28 -!- kfb [~kevin@c-24-7-103-177.hsd1.ca.comcast.net] has quit [Quit: Leaving]
23:30 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
23:30 < jeremy_c> How do I convert a unsafe.Pointer to a *C.Ihandle ?
23:32 -!- genbattle [~nick@203-173-210-96.dialup.ihug.co.nz] has joined #go-nuts
23:51 -!- nbm [~nathan@dhcp-0-25-9c-d3-a7-c7.cpe.townisp.com] has quit [Quit:
Leaving]
23:52 -!- thakis_ [~thakis@216.239.45.130] has quit [Ping timeout: 252 seconds]
--- Log closed Sun May 08 00:00:50 2011