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

--- Log opened Sun Jan 09 00:00:01 2011
00:02 -!- shishberg [~davemc@alcor.dreamhost.com] has joined #go-nuts
00:06 -!- shishberg [~davemc@alcor.dreamhost.com] has quit [Client Quit]
00:10 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
00:10 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
00:13 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-180-48.clienti.tiscali.it] has
joined #go-nuts
00:13 -!- Fish [~Fish@exo3753.pck.nerim.net] has quit [Ping timeout: 276 seconds]
00:14 -!- nettok [~quassel@200.119.176.229] has quit [Ping timeout: 255 seconds]
00:16 -!- Project_2501 [~Marvin@82.84.78.253] has quit [Ping timeout: 255 seconds]
00:19 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has quit [Ping timeout:
255 seconds]
00:19 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-180-48.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
00:21 -!- shishberg [~davemc@alcor.dreamhost.com] has joined #go-nuts
00:26 -!- LuitvD [~me@beigetower/luitvd] has quit [Quit: Leaving]
00:27 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has quit [Write
error: Broken pipe]
00:27 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
00:31 < uriel> adg:
00:31 < uriel> 04:25 < uriel> interesting:
http://code.google.com/p/toy/
00:31 < uriel> 04:25 < uriel> adg: I think that is your competition ;)
00:32 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
00:41 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 276 seconds]
00:41 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
00:44 -!- cafesofie [~cafesofie@rnwifi-164-107-93-12.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
00:44 -!- cafesofie [~cafesofie@rnwifi-164-107-93-12.resnet.ohio-state.edu] has
joined #go-nuts
00:47 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has quit [Ping timeout:
255 seconds]
00:47 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
00:50 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has quit [Read
error: Connection reset by peer]
00:50 -!- DarthShrine [~angus@60-242-109-62.tpgi.com.au] has joined #go-nuts
00:50 -!- DarthShrine [~angus@60-242-109-62.tpgi.com.au] has quit [Changing host]
00:50 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has joined
#go-nuts
00:53 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has left
#go-nuts []
00:58 -!- crazy2be [~justin@S0106001ac401d400.cg.shawcable.net] has joined
#go-nuts
00:59 -!- Eko [~eko@ppp-70-225-140-127.dsl.ipltin.ameritech.net] has joined
#go-nuts
01:00 -!- swdunlop [~swdunlop@96.26.45.40] has quit [Ping timeout: 265 seconds]
01:02 -!- rickard2 [~rickard@netra.esec.du.se] has quit [Ping timeout: 240
seconds]
01:03 -!- rickard2 [~rickard@netra.esec.du.se] has joined #go-nuts
01:07 -!- binarypie [~binarypie@c-24-130-113-34.hsd1.ca.comcast.net] has quit
[Ping timeout: 240 seconds]
01:08 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has quit [Ping timeout:
240 seconds]
01:12 -!- photron_ [~photron@port-92-201-104-199.dynamic.qsc.de] has quit [Read
error: Operation timed out]
01:14 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
01:15 -!- nettok [~quassel@200.119.168.87] has joined #go-nuts
01:15 -!- ExtraSpice [~XtraSpice@88.118.33.48] has joined #go-nuts
01:18 -!- swdunlop
[~swdunlop@173-10-77-187-BusName-Washington.hfc.comcastbusiness.net] has joined
#go-nuts
01:21 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 276 seconds]
01:21 -!- crazy2be [~justin@S0106001ac401d400.cg.shawcable.net] has quit [Ping
timeout: 265 seconds]
01:21 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
01:23 -!- gits [~gits@77.94.219.158] has quit [Ping timeout: 255 seconds]
01:24 -!- binarypie [~binarypie@c-24-130-113-34.hsd1.ca.comcast.net] has joined
#go-nuts
01:28 -!- nettok [~quassel@200.119.168.87] has quit [Ping timeout: 240 seconds]
01:30 -!- Qvist_ [~erik@c-4ccbe455.05-294-6c6b701.cust.bredbandsbolaget.se] has
joined #go-nuts
01:31 -!- cafesofie [~cafesofie@rnwifi-164-107-93-12.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
01:35 -!- niemeyer [~niemeyer@201-40-141-234.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
01:35 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has quit [Read error:
Connection reset by peer]
01:36 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has quit [Ping
timeout: 246 seconds]
01:37 -!- binarypie [~binarypie@c-24-130-113-34.hsd1.ca.comcast.net] has quit
[Ping timeout: 255 seconds]
01:37 -!- binarypie [~binarypie@c-24-130-113-34.hsd1.ca.comcast.net] has joined
#go-nuts
01:38 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
01:43 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
01:45 -!- teejae [~teejae@softbank219185095092.bbtec.net] has quit [Quit: teejae]
01:51 -!- shvntr [~shvntr@116.26.132.44] has joined #go-nuts
01:52 -!- kanru [~kanru@61-228-156-85.dynamic.hinet.net] has joined #go-nuts
02:04 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has quit [Ping timeout:
240 seconds]
02:05 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
02:08 -!- jesmon [~user@rrcs-69-193-6-191.nys.biz.rr.com] has joined #go-nuts
02:08 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has quit [Read
error: Connection reset by peer]
02:09 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has joined
#go-nuts
02:09 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
02:14 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has quit [Ping timeout:
240 seconds]
02:19 -!- cafesofie [~cafesofie@rnwifi-164-107-93-12.resnet.ohio-state.edu] has
joined #go-nuts
02:27 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
02:32 -!- Xenith [~xenith@xenith.org] has quit [Ping timeout: 272 seconds]
02:33 -!- Xenith [~xenith@xenith.org] has joined #go-nuts
02:33 -!- Qvist_ [~erik@c-4ccbe455.05-294-6c6b701.cust.bredbandsbolaget.se] has
quit [Ping timeout: 240 seconds]
02:35 -!- Qvist_ [~erik@c-afc9e455.05-294-6c6b701.cust.bredbandsbolaget.se] has
joined #go-nuts
02:35 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has quit [Ping timeout:
240 seconds]
02:36 -!- binarypie [~binarypie@c-24-130-113-34.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
02:36 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
02:41 < tylergillies> whats the best way to get rid of trailing zeros from
byte slice?
02:46 -!- ExtraSpice [~XtraSpice@88.118.33.48] has quit [Remote host closed the
connection]
02:48 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has joined
#go-nuts
02:51 < cbeck> var i int; for i = len(bslice); i > 0 && bslice[i-1] == 0;
i-- {}; blsice = bslice[:i]
02:51 < cbeck> Could probably be made much more efficient, but that's what
occurs to me off the top of my head
02:54 -!- reubenbond [~reubenbon@220-253-10-101.VIC.netspace.net.au] has joined
#go-nuts
02:55 < tylergillies> thnx
02:56 < tylergillies> suprised theres no bytes.TruncZeros or something
02:56 -!- monoid_ [~tmo@adsl-76-193-181-154.dsl.chcgil.sbcglobal.net] has joined
#go-nuts
02:56 < tylergillies> theres a whitespace trunc
02:57 < tylergillies> trim rather
02:58 < tylergillies> where do you submit typos for the documentation?
02:59 < monoid_> I wrote a sieve of eratothenes that generates a list of
primes up to n.  However, my algorithm doesn't do this correctly.  Is there
something wrong with the algorithm?
02:59 < monoid_> http://pastebin.com/MPRfqEa4
02:59 < monoid_> I mean, my implementation of the algorithm.  :P
03:09 -!- teejae [~teejae@softbank219185095092.bbtec.net] has joined #go-nuts
03:11 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
03:11 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
03:13 -!- Scorchin [~Scorchin@host86-186-244-172.range86-186.btcentralplus.com]
has quit [Quit: Scorchin]
03:13 -!- rbrewster [~rbrewster@pool-96-255-165-204.washdc.fios.verizon.net] has
quit [Quit: Leaving]
03:15 -!- boscop__ [~boscop@g226224096.adsl.alicedsl.de] has joined #go-nuts
03:18 -!- boscop_ [~boscop@f055153064.adsl.alicedsl.de] has quit [Ping timeout:
240 seconds]
03:20 -!- adu [~ajr@c-76-23-82-40.hsd1.in.comcast.net] has joined #go-nuts
03:24 < Eko> Is there any way to duplicate a map without making a new one
and copying all of the k,v over?
03:26 < cbeck> I don't believe so
03:27 < monoid_> http://pastebin.com/fkqQ4iNJ
03:28 < monoid_> I wrote this prime number sieving algorithm and it doesn't
run properly.  I can't find the error in the algorithm itself.  Could someone help
me find it?
03:28 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
03:34 < taruti> Is there no fsync in os?
03:35 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
03:40 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
03:40 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
03:59 -!- monoid_ [~tmo@adsl-76-193-181-154.dsl.chcgil.sbcglobal.net] has quit
[Quit: Ex-Chat]
04:02 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has quit [Ping timeout:
260 seconds]
04:04 -!- coldturnip [~COLDTURNI@118-166-78-153.dynamic.hinet.net] has quit [Read
error: Connection reset by peer]
04:05 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
04:12 -!- adu [~ajr@c-76-23-82-40.hsd1.in.comcast.net] has quit [Quit: adu]
04:13 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 250 seconds]
04:13 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
04:16 -!- kanru [~kanru@61-228-156-85.dynamic.hinet.net] has quit [Quit: WeeChat
0.3.3]
04:17 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has quit [Ping timeout:
255 seconds]
04:18 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
04:28 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
04:30 -!- cafesofie [~cafesofie@rnwifi-164-107-93-12.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
04:31 -!- VersaX [HurricaneS@c-98-206-238-4.hsd1.il.comcast.net] has joined
#go-nuts
04:31 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
04:32 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
04:33 -!- zav [~lsd@189001130056.usr.predialnet.com.br] has quit [Quit: .]
04:37 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has joined
#go-nuts
04:40 -!- VersaX [HurricaneS@c-98-206-238-4.hsd1.il.comcast.net] has quit [Read
error: Connection reset by peer]
04:51 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
04:51 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
04:56 -!- thebarberian [~maznio@216.252.93.216] has joined #go-nuts
04:57 < thebarberian> guys is anyone running mustache under FreeBSD?
05:00 < thebarberian> as in the mustache.go
05:03 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 276 seconds]
05:03 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
05:08 -!- swdunlop
[~swdunlop@173-10-77-187-BusName-Washington.hfc.comcastbusiness.net] has quit
[Ping timeout: 240 seconds]
05:08 -!- Qvist_ [~erik@c-afc9e455.05-294-6c6b701.cust.bredbandsbolaget.se] has
quit [Ping timeout: 240 seconds]
05:16 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
05:20 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
05:20 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
05:29 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 265 seconds]
05:30 < thebarberian> ouch it ain't mustache.go
05:31 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
05:31 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
05:31 < thebarberian> one of the changes to go breaks mustache.go...  I
would guess something to do with the bytes package...
05:39 -!- kanru [~kanru@61-228-156-85.dynamic.hinet.net] has joined #go-nuts
05:40 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 264 seconds]
05:44 -!- wtfness [~dsc@dyn-86-36-43-92.wv.qatar.cmu.edu] has joined #go-nuts
05:44 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
05:45 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
05:45 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
05:45 -!- mode/#go-nuts [+v iant] by ChanServ
05:56 -!- wtfness [~dsc@dyn-86-36-43-92.wv.qatar.cmu.edu] has quit [Quit: Leaving]
05:59 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has quit [Quit:
DarthShrine]
06:00 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
06:01 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Read error: Operation timed out]
06:02 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
06:10 -!- jesmon [~user@rrcs-69-193-6-191.nys.biz.rr.com] has left #go-nuts ["ERC
Version 5.3 (IRC client for Emacs)"]
06:12 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
06:12 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
06:24 -!- DarthShrine [~angus@124-171-107-225.dyn.iinet.net.au] has joined
#go-nuts
06:24 -!- DarthShrine [~angus@124-171-107-225.dyn.iinet.net.au] has quit [Changing
host]
06:24 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has joined
#go-nuts
06:30 -!- illya77 [~illya77@225-79-112-92.pool.ukrtel.net] has joined #go-nuts
06:41 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
06:41 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
06:51 < jessta> thebarberian: what version of mustache.go and what version
of go?
06:51 < thebarberian> latest mustache.go
06:51 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 255 seconds]
06:51 < thebarberian> go likewise
06:51 < thebarberian> the OS is freebsd (I didn't try it on the linux
machine I have)
06:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
06:52 < thebarberian> for now I just use the version of GO I know works with
mustache.go
06:52 < jessta> latest go release?  or hg head?
06:56 < thebarberian> yeah whatever comes when you do "hg clone -r release
https://go.googlecode.com/hg/ go"
06:58 < thebarberian> damn I closed the screen with "hg log | more"
06:58 < thebarberian> but as far as I remember there were some commits from
2011 (so yeah...  it was pretty fresh)
06:59 < thebarberian> should I not use that?
06:59 < thebarberian> if so what version should I be using?
07:04 < Namegduf> That's the most recent Go release
07:05 < thebarberian> ok thanks I will ignore the problem and use the
version I know works
07:10 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 250 seconds]
07:10 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
07:15 -!- grouzen [~grouzen@ip23-159.200.109.crimea.com] has quit [Ping timeout:
276 seconds]
07:21 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 276 seconds]
07:21 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
07:28 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has quit [Quit:
DarthShrine]
07:30 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 276 seconds]
07:31 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
07:31 -!- cafesofie [~cafesofie@rnwifi-164-107-93-12.resnet.ohio-state.edu] has
joined #go-nuts
07:33 -!- adu [~ajr@c-76-23-82-40.hsd1.in.comcast.net] has joined #go-nuts
07:34 -!- nettok [~quassel@200.119.175.41] has joined #go-nuts
07:35 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts
07:36 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
07:37 < reubenbond> Question about close(c) and closed(c): Why is is that I
must consume a zero-value from a closed channel before closed(c) will return true?
I typically follow every call to close(c) with <-c
07:40 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 272 seconds]
07:40 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
07:43 -!- prip [~foo@host64-135-dynamic.43-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 255 seconds]
07:47 -!- thebarberian [~maznio@216.252.93.216] has left #go-nuts []
07:55 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has joined
#go-nuts
07:55 -!- grouzen [~grouzen@ip23-159.200.109.crimea.com] has joined #go-nuts
07:55 -!- prip [~foo@host98-124-dynamic.36-79-r.retail.telecomitalia.it] has
joined #go-nuts
08:03 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
08:03 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
08:07 -!- cafesofie [~cafesofie@rnwifi-164-107-93-12.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
08:10 -!- cafesofie [~cafesofie@rnwifi-164-107-93-12.resnet.ohio-state.edu] has
joined #go-nuts
08:19 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:23 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:27 -!- grouzen [~grouzen@ip23-159.200.109.crimea.com] has quit [Ping timeout:
255 seconds]
08:36 -!- grouzen [~grouzen@ip23-159.200.109.crimea.com] has joined #go-nuts
08:56 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
08:57 -!- cafesofie [~cafesofie@rnwifi-164-107-93-12.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
09:00 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
09:01 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
09:05 -!- rbraley [~rbraley@ip72-222-134-229.ph.ph.cox.net] has quit [Read error:
Connection reset by peer]
09:06 -!- reubenbond [~reubenbon@220-253-10-101.VIC.netspace.net.au] has quit
[Read error: No route to host]
09:10 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 246 seconds]
09:10 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
09:20 -!- grouzen [~grouzen@ip23-159.200.109.crimea.com] has quit [Ping timeout:
240 seconds]
09:21 -!- grouzen [~grouzen@ip23-159.200.109.crimea.com] has joined #go-nuts
09:25 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
09:25 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
09:25 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
09:30 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
09:30 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
09:35 -!- Scorchin [~Scorchin@host86-145-52-72.range86-145.btcentralplus.com] has
joined #go-nuts
09:38 -!- Scorchin [~Scorchin@host86-145-52-72.range86-145.btcentralplus.com] has
quit [Client Quit]
09:38 -!- snearch [~snearch@f053002016.adsl.alicedsl.de] has joined #go-nuts
09:39 -!- Scorchin [~Scorchin@host86-145-52-72.range86-145.btcentralplus.com] has
joined #go-nuts
09:42 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
09:43 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
09:47 -!- Qvist_ [~erik@c-afc9e455.05-294-6c6b701.cust.bredbandsbolaget.se] has
joined #go-nuts
09:48 -!- nettok [~quassel@200.119.175.41] has quit [Ping timeout: 240 seconds]
10:00 -!- Qvist_ [~erik@c-afc9e455.05-294-6c6b701.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
10:00 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has quit [Read
error: Connection reset by peer]
10:01 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 246 seconds]
10:01 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
10:04 -!- kashia__ [~Kashia@port-92-200-93-96.dynamic.qsc.de] has joined #go-nuts
10:06 -!- kashia_ [~Kashia@port-92-200-103-145.dynamic.qsc.de] has quit [Ping
timeout: 240 seconds]
10:08 -!- adu [~ajr@c-76-23-82-40.hsd1.in.comcast.net] has quit [Quit: adu]
10:11 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
10:11 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
10:11 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
10:15 < Namegduf> Hmm.  Is it possible to inspect the stack in Go?
10:16 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
10:18 < Namegduf> Fundamentally something needs to make a decision based on
whether a related function is what resulted in it being called or not- whether
something which was done was done by its package or another.  I can pass "changer"
information down, but it's already there, really.
10:18 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
10:19 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
10:29 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the
connection]
10:30 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
10:30 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
10:43 -!- grouzen [~grouzen@ip23-159.200.109.crimea.com] has quit [Ping timeout:
265 seconds]
10:44 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 255 seconds]
10:44 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
10:45 -!- femtoo [~femto@95-89-248-40-dynip.superkabel.de] has joined #go-nuts
10:47 -!- gits [~gits@77.94.219.158] has joined #go-nuts
10:54 <@adg> uriel: hah, there's no contest
10:58 -!- photron_ [~photron@port-92-201-42-72.dynamic.qsc.de] has joined #go-nuts
11:03 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
11:06 -!- kashia__ [~Kashia@port-92-200-93-96.dynamic.qsc.de] has quit [Ping
timeout: 255 seconds]
11:07 -!- Mr_Dark [~dk@poviko.demon.nl] has quit [Read error: Connection reset by
peer]
11:08 -!- Mr_Dark [~dk@poviko.demon.nl] has joined #go-nuts
11:09 -!- Netsplit over, joins: Sieben
11:09 -!- Netsplit *.net <-> *.split quits: cw, shishberg, Maxdamantus,
exch, pingveno, KirkMcDonald, jessta, Fish, foocraft, napsy, (+5 more, use
/NETSPLIT to show all of them)
11:11 -!- shishberg [~davemc@alcor.dreamhost.com] has joined #go-nuts
11:11 -!- foocraft [~dsc@78.101.137.236] has joined #go-nuts
11:11 -!- exch [~exch@h78233.upc-h.chello.nl] has joined #go-nuts
11:11 -!- kamaji [~kamaji@cpc2-aztw22-2-0-cust775.aztw.cable.virginmedia.com] has
joined #go-nuts
11:11 -!- jessta [~jessta@64.62.231.205] has joined #go-nuts
11:11 -!- inv_arp_ [~junya@74.63.255.72] has joined #go-nuts
11:11 -!- segy [~segfault@pdpc/supporter/active/segy] has joined #go-nuts
11:11 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
11:11 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
11:11 -!- pingveno [~pingveno@c-98-246-133-8.hsd1.or.comcast.net] has joined
#go-nuts
11:11 -!- vpit3833 [~user@203.111.33.203] has joined #go-nuts
11:11 -!- cw [~anticw@parsec.stupidest.org] has joined #go-nuts
11:11 -!- Maxdamantus [~Maxdamant@203-97-238-106.cable.telstraclear.net] has
joined #go-nuts
11:11 -!- KirkMcDonald [~Kirk@python/site-packages/KirkMcDonald] has joined
#go-nuts
11:11 -!- Guest55373 [~irc@209.17.191.58] has joined #go-nuts
11:11 -!- kashia__ [~Kashia@port-92-200-125-182.dynamic.qsc.de] has joined
#go-nuts
11:13 -!- photron_ [~photron@port-92-201-42-72.dynamic.qsc.de] has quit [Quit:
Leaving]
11:14 -!- Project_2501 [~Marvin@82.84.66.70] has joined #go-nuts
11:24 -!- adg [~nf@2001:470:21:20::4444:61d9] has quit [Quit: leaving]
11:24 -!- nf_ [~nf@2001:470:21:20::4444:61d9] has joined #go-nuts
11:24 -!- mode/#go-nuts [+o nf_] by ChanServ
11:30 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout:
619 seconds]
11:32 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 264 seconds]
11:32 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
11:36 -!- shishberg [~davemc@alcor.dreamhost.com] has quit [Quit: Ex-Chat]
11:39 -!- wrtp [~rog@92.17.58.122] has joined #go-nuts
11:41 < teejae> are any of you guys familiar with how to make proper
Makefiles for Go, especially with multi-level directories/packages?
11:41 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
11:41 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
11:50 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
11:50 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
11:58 -!- wrtp [~rog@92.17.58.122] has quit [Quit: wrtp]
12:00 -!- Geekk [52f49491@gateway/web/freenode/ip.82.244.148.145] has joined
#go-nuts
12:04 < uriel> teejae: see golang-nuts archives, this has been discussed
many times
12:04 < teejae> uriel: thanks
12:04 < uriel> teejae: usually simple Makefile-per-package plus shell script
that runs them all is more than enough
12:05 < teejae> uriel: i figured it would have been in golang.org/doc/code
12:05 < teejae> but it's not in depth enough
12:06 < teejae> uriel: coincidentally on golang-nuts, the most recent entry
is on multiple pks
12:08 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com]
has quit [Quit: "Wait...  what?!"]
12:09 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com]
has joined #go-nuts
12:09 < nsf> https://github.com/nsf/goal
12:09 < nsf> I use my own makefiles for apps with lots of local packages
12:09 < nsf> but they are a bit complex, if you know make well, then maybe
it's ok for you
12:10 < teejae> nsf: i'd say i don't know Make at all ;)
12:10 < nsf> then a shell script will be a better idea
12:10 < nsf> which runs simple standard makefiles
12:10 < kimelto> oh noes :/
12:11 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 264 seconds]
12:13 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
12:21 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-155-112.clienti.tiscali.it] has
joined #go-nuts
12:21 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 272 seconds]
12:21 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
12:21 < uriel> yay, the Go subreddit reached 600 members:
http://www.reddit.com/r/golang/
12:24 -!- Project_2501 [~Marvin@82.84.66.70] has quit [Ping timeout: 240 seconds]
12:26 < teejae> once i do make install, and see the *.a files in my
GOROOT/src/pkg, i should be able to use those packages without any problems in any
other programs, is that right?
12:27 < teejae> i can't figure out why i can't see constants defined in one
of the packages
12:27 < Namegduf> Are they capitalised?
12:28 < teejae> yep
12:28 < teejae> will pastebin it
12:28 < teejae> http://pastebin.com/chMMTwC3
12:30 < teejae> the client of that lib is here:
12:30 < teejae> http://pastebin.com/GjmGVyYj
12:30 < teejae> i get errors importing thrift.*
12:31 < Namegduf> What are your errors?
12:32 < teejae> http://pastebin.com/k3vFyydk
12:32 < Namegduf> You're either having problems importing thrift, or having
problems using things that are in it.
12:32 < teejae> reposted the file + errors
12:32 < teejae> i suspect its my Makefile
12:32 < Namegduf> Where are they defined?
12:33 < Namegduf> I don't think that can be caused by a makefile error.
12:33 < teejae> they're in 2 separate parts of the directory tree
12:33 < teejae> i was doing rearrangement of the directory structure
12:33 < teejae> for a lib
12:33 < teejae> and i think the lib pkgs i think all compile fine and
install into GOROOT/src/pkg
12:34 < Namegduf> Sounds like the import is getting a version of the thrift
package without those constants.
12:34 < teejae> i'll export this to a github thing
12:36 < uriel> teejae: you should either install stuff with goinstall, or
install stuff into the Go distribution path
12:36 < uriel> I guess there are other ways, but then it is likely you will
have to do things slighlty more complicated than usual
12:37 < teejae> i'm using the template make files
12:37 < teejae> and before rearrangement, these things seemed to work :P
12:37 < teejae> here's the full tree
12:37 < teejae> https://github.com/teejae/thrift/tree/go_thrift_rearrange
12:38 < teejae> here's the lib dir
12:38 < teejae>
https://github.com/teejae/thrift/tree/go_thrift_rearrange/lib/go
12:38 < teejae> and here's the example client i'm attempting to use
12:38 < teejae>
https://github.com/teejae/thrift/tree/go_thrift_rearrange/tutorial/go
12:39 < teejae> these can be compared w/ a branch i have before
rearrangement
12:39 < teejae> https://github.com/teejae/thrift/tree/go_thrift/tutorial/go
12:39 < teejae> https://github.com/teejae/thrift/tree/go_thrift/lib/go
12:40 < teejae> previously, i was just doing a symbolic link from the
example client -> lib/go "thrift"
12:40 < Namegduf> Ew, Automake.
12:40 < teejae> and the makefiles hardcoded DEPS
12:41 < Namegduf> Does the automake actually do anything?
12:41 < teejae> automake?
12:41 < Namegduf> Yes, you're using automake
12:42 < teejae> i'm not the assuming you mean the top level usage, Thrift is
an Apache open source project, for which i'm playing around w/ trying to add Go
language bindings.  it's my first Go project
12:42 < teejae> i'm not touching any of the automake stuff yet
12:43 < teejae> i was merely playing around w/ 2 subdirs (lib/go and
tutorial/go)
12:43 < uriel> Namegduf: auto*hell does suck up plenty of CPU power
12:43 < teejae> so i presume that the automake thing is not relevant in at
least this discussion at the moment
12:43 < Namegduf> No, I found your actual Makefile now.
12:44 < uriel> automake is always relevant, as a perfect example of how
*never* to do things
12:44 < teejae> uriel: i'll keep that in mind, but i don't think its
something i'll worry about til i have a worth patch to go into the larger project,
since they don't even know i exist yet ;)
12:44 < Namegduf> Autohell is a system made by someone hacking something
together in shell script and then hacking more on top whenever it needed to handle
more things
12:45 < Namegduf> Never refactoring or actually designing anything
12:45 < teejae> so anyway, i think i'm using "standard" make files
12:45 < teejae> copied straight out of golang.org/doc/code
12:46 < Namegduf> Is "make install" being invoked in that directory?
12:46 < teejae> in lib/go?
12:46 < teejae> yes
12:46 < teejae> right now, i'm doing make install in each of
lib/go/{.,protocol,transport,server}
12:47 < Namegduf> Well, it looks like that directory builds a package called
thrift, which contains tprotocol.go, which contains those constants...
12:47 < teejae> and i see them in my GOROOT/src/pkg/arch dir
12:47 < teejae> right
12:47 < Namegduf> So I can't see why "import thrift" would fail to find
them.
12:47 < teejae> so maybe i'm not installing correctly?
12:47 < teejae> or perhaps my tutorial/go directory structure is messed up
12:50 < teejae> also, i don't have the tutorial/go/thrift symlink in the
repo, as i'm trying to get rid of it
12:53 < teejae> is there a list of noob-type pitfalls somewhere for this?
12:53 < Namegduf> I don't think so.  I suspect something in the fairly
complicated build setup you have is broke, and noobs generally don't have
complicated build setups.
12:54 < Namegduf> Try pulling it out of the bigger build system and
simplifying it until it works, then working out where in putting it back things
break.
12:54 < teejae> i'm not using a bigger build system
12:54 < teejae> just running these in their respective directories
12:55 < teejae> https://github.com/teejae/thrift/tree/go_thrift
12:55 < teejae> that branch works
12:55 < teejae> its 2 commits before the _rearrange branch
12:55 < teejae> was trying to refactor where interfaces and implementations
went
12:55 < teejae> it did build correctly
12:56 < teejae> i oculdn't do a smaller rearrangement without failing to
compile the lib/ alone
12:56 < teejae> but then again, i'm no make expert
13:00 < teejae> trying to get the "tutorial" thing working before i work on
code-gen, since i need to have a pretty good clue of how it should look for
clients :)
13:01 < teejae> since this is a protocol language binding
13:02 < teejae> Namegduf: so what tool do you use for packages?  do you have
a custom setup as well?
13:02 < Namegduf> I use my own Makefile, yeah.
13:02 < teejae> i see
13:03 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
13:03 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
13:03 < teejae> how do you do the making of packages with multiple levels
yourself?
13:04 < teejae> so in my case, for the lib/ dir, i'd like to do "build:
thrift protocol server transport"
13:04 < teejae> and just copy them all to the install dir right?
13:04 < teejae> and any client of it would just do something similar?
13:05 < teejae> including my "tutorial" directory?
13:15 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
13:18 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
13:30 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
13:30 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
13:40 -!- Boney_ [~paul@124-168-86-230.dyn.iinet.net.au] has quit [Ping timeout:
240 seconds]
13:41 -!- Urtie [~kim@90-227-159-22-no57.tbcn.telia.com] has joined #go-nuts
13:41 < Urtie> Is there a MongoDB-driver that can handle replica sets yet?
13:46 -!- Boney [~paul@124-148-146-151.dyn.iinet.net.au] has joined #go-nuts
13:46 -!- shvntr [~shvntr@116.26.132.44] has quit [Ping timeout: 255 seconds]
13:49 -!- gid [~gid@220-253-2-240.VIC.netspace.net.au] has joined #go-nuts
14:00 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
14:00 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
14:01 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 276 seconds]
14:01 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
14:04 -!- gid [~gid@220-253-2-240.VIC.netspace.net.au] has quit [Ping timeout: 265
seconds]
14:06 -!- snearch [~snearch@f053002016.adsl.alicedsl.de] has quit [Quit:
Verlassend]
14:07 -!- enherit [~enherit@75.92.111.122] has joined #go-nuts
14:09 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Read error: Operation timed out]
14:09 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
14:14 -!- jkakar [~jkakar@176.Red-79-155-139.dynamicIP.rima-tde.net] has quit
[Quit: Ex-Chat]
14:23 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
14:23 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
14:28 -!- wrtp [~rog@92.17.58.122] has joined #go-nuts
14:29 -!- enherit [~enherit@75.92.111.122] has quit [Ping timeout: 255 seconds]
14:31 -!- wrtp [~rog@92.17.58.122] has quit [Client Quit]
14:32 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 276 seconds]
14:32 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
14:35 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
14:36 -!- deso_ [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
14:38 -!- wrtp [~rog@92.17.58.122] has joined #go-nuts
14:40 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has joined
#go-nuts
14:41 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
14:41 < fenicks> hello
14:41 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
14:50 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 246 seconds]
14:50 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
14:57 -!- gits [~gits@77.94.219.158] has quit [Ping timeout: 272 seconds]
15:00 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-155-112.clienti.tiscali.it] has
quit [Read error: Connection reset by peer]
15:00 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
15:01 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
15:05 -!- enherit [~enherit@75.92.111.122] has joined #go-nuts
15:05 -!- Project_2501 [~Marvin@82.84.96.177] has joined #go-nuts
15:09 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
15:10 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
15:20 -!- Eko [~eko@ppp-70-225-140-127.dsl.ipltin.ameritech.net] has quit [Quit:
This computer has gone to sleep]
15:21 -!- wrtp [~rog@92.17.58.122] has quit [Quit: wrtp]
15:40 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Read error: Operation timed out]
15:40 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
15:43 -!- TheMue [~TheMue@p5DDF6625.dip.t-dialin.net] has joined #go-nuts
15:45 -!- wrtp [~rog@92.17.58.122] has joined #go-nuts
15:50 -!- Qvist_ [~erik@c-dcc8e455.05-294-6c6b701.cust.bredbandsbolaget.se] has
joined #go-nuts
15:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
15:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
15:56 -!- kanru [~kanru@61-228-156-85.dynamic.hinet.net] has quit [Ping timeout:
276 seconds]
15:57 -!- tvw [~tv@e176002191.adsl.alicedsl.de] has joined #go-nuts
16:02 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 276 seconds]
16:03 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
16:06 -!- Qvist_ [~erik@c-dcc8e455.05-294-6c6b701.cust.bredbandsbolaget.se] has
quit [Ping timeout: 250 seconds]
16:09 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
16:10 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
16:12 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
16:12 -!- nettok [~quassel@200.119.185.164] has joined #go-nuts
16:20 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
16:20 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
16:23 -!- enherit [~enherit@75.92.111.122] has quit [Ping timeout: 255 seconds]
16:24 -!- grouzen [~grouzen@ip23-159.200.109.crimea.com] has joined #go-nuts
16:27 -!- enherit [~enherit@75.92.111.122] has joined #go-nuts
16:30 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
16:30 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
16:37 -!- enherit [~enherit@75.92.111.122] has quit [Ping timeout: 240 seconds]
16:38 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Ping timeout: 255
seconds]
16:40 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
16:40 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
16:41 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
16:49 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
16:50 < teejae> stupid question: if i return multiple values in a func, does
the signature's return have to be in parens?
16:50 < teejae> func foo (boo, baz) {}
16:51 < teejae> oops
16:51 < teejae> func foo() (boo, baz){}
16:51 < nsf> yes
16:51 < teejae> ok
16:51 < teejae> thanks
16:51 < teejae> if i have foo1() (boo, baz) { return foo2() }
16:51 < teejae> i get an error about not assigning values
16:52 < teejae> assuming foo2() (boo, baz) {}
16:52 < Namegduf> You're allowed to omit the names of the return values.
16:52 < Namegduf> Just specify type.
16:52 < teejae> do i need to manually unpack and repack the return?
16:52 < teejae> implicit assignment of unexported field 'structName' of
thrift.TException in return argument
16:53 < Namegduf> No, that's not your problem.
16:53 < Namegduf> The problem is that you're returning a type by value which
has unexported fields, which is illegal.
16:53 < teejae> oh
16:53 < teejae> just return pointers then?
16:53 < Namegduf> You must return a pointer or not have unexported fields.
16:53 < Namegduf> Yeah.
16:53 < teejae> thanks :)
16:54 < teejae> i get the structs/interfaces messed up still
16:54 < teejae> btw, i finally got the multi-Makefiles to work
16:54 < teejae> not sure if it was a namespace issue or something
16:54 < teejae> but instead of "thrift", i needed like
"github.com/.../thrift"
16:54 < teejae> for whatever reason, it otherwise wouldn't work w/ a bare
name
16:55 < teejae> had to namespace it
16:55 < teejae> Namegduf: so appreciate you looking at it before
17:00 < Namegduf> Names are never aliased, so if you're installing it as
github.com...  you need to reference it as that.
17:00 < Namegduf> That would explain it, yeah.
17:01 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 272 seconds]
17:01 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
17:02 < teejae> well, i wasn't originally installing it as github.com...
17:02 < teejae> i installed it as purely "thrift"
17:02 < teejae> i had changed and re-namespaced everything
17:03 < Namegduf> That would do it.
17:04 < teejae> so try as i may, couldn't make it install as "thrift" alone
17:04 < Namegduf> I don't know how you were getting the import to succeed if
it had changed but maybe the old one which was just "thrift" still existed.
17:04 < teejae> not sure why that was the case
17:04 < teejae> yea, weird.  i even nuked the directory
17:04 < teejae> but alas, it works now
17:04 < teejae> maybe i'll try again later
17:04 < teejae> but first, on to other parts :)
17:05 -!- Boney [~paul@124-148-146-151.dyn.iinet.net.au] has quit [Ping timeout:
246 seconds]
17:07 -!- Boney [~paul@124-148-146-151.dyn.iinet.net.au] has joined #go-nuts
17:08 -!- gits [~gits@77.94.219.158] has joined #go-nuts
17:13 -!- niemeyer [~niemeyer@187.91.37.88] has joined #go-nuts
17:20 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 276 seconds]
17:20 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
17:26 -!- sav` [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
17:40 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
17:41 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
17:44 -!- rlab_ [~Miranda@91.200.158.34] has joined #go-nuts
17:46 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 276 seconds]
17:54 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
18:00 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
18:01 -!- Qvist_ [~erik@c-dcc8e455.05-294-6c6b701.cust.bredbandsbolaget.se] has
joined #go-nuts
18:02 -!- Eko [~eko@ppp-70-225-140-127.dsl.ipltin.ameritech.net] has joined
#go-nuts
18:04 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has joined
#go-nuts
18:08 -!- niemeyer [~niemeyer@187.91.37.88] has quit [Ping timeout: 255 seconds]
18:25 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
18:26 -!- boscop__ [~boscop@g226224096.adsl.alicedsl.de] has quit [Ping timeout:
240 seconds]
18:29 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has joined
#go-nuts
18:31 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
18:31 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
18:32 -!- Project-2501 [~Marvin@82.84.81.179] has joined #go-nuts
18:35 -!- Project_2501 [~Marvin@82.84.96.177] has quit [Ping timeout: 264 seconds]
18:38 -!- Qvist_ [~erik@c-dcc8e455.05-294-6c6b701.cust.bredbandsbolaget.se] has
quit [Ping timeout: 260 seconds]
18:42 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-177-208.clienti.tiscali.it]
has joined #go-nuts
18:45 -!- Project-2501 [~Marvin@82.84.81.179] has quit [Ping timeout: 240 seconds]
18:52 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
18:52 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
19:00 -!- gits [~gits@77.94.219.158] has quit [Ping timeout: 250 seconds]
19:00 -!- Geekk [52f49491@gateway/web/freenode/ip.82.244.148.145] has quit [Ping
timeout: 265 seconds]
19:01 -!- binarypie [~binarypie@c-24-130-113-34.hsd1.ca.comcast.net] has joined
#go-nuts
19:01 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
19:02 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
19:04 < kamaji> Has anyone seen the "Hello World v2.0" in
golang.org/doc/ExpressivenessOfGo.pdf ?
19:04 < kamaji> it doesn't compile for me
19:05 < kamaji> I get "Undefined http.Conn"
19:06 < yebyen> http hello world?
19:06 < yebyen> neat
19:06 < kamaji> if it works :P
19:06 -!- binarypie [~binarypie@c-24-130-113-34.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
19:06 < kamaji> Do I need to install http or something?
19:06 < Namegduf> No, it's part of the stdlib
19:06 < yebyen> http should be one of the modules that's built
19:06 < kamaji> harumph
19:06 < yebyen> possibly you're not using the module
19:06 < yebyen> if they just gave you some code in a PDF
19:06 < KBme> there probably was an update, go evolves very rapidly
19:06 < yebyen> you might have missed a use directive
19:06 < Namegduf> It's been imported.
19:07 < kamaji> use?
19:07 < yebyen> is http.Conn something we have now?
19:07 < Namegduf> Change Conn to ClientConn
19:07 < kamaji> what's use?  :D
19:07 -!- pancake [~pancake@95.61.49.229] has joined #go-nuts
19:07 < kamaji> oh ok
19:07 < yebyen> kamaji: it's called include?  or what
19:07 < Namegduf> It looks like there was an update
19:07 < yebyen> i haven't practiced go in a while
19:07 < Namegduf> "import"
19:07 < kamaji> yebyen: include?  bit lost, sorry
19:07 < yebyen> right
19:07 < yebyen> import
19:07 < pancake> can import ("") take more than one module in a single line?
import ("foo" "bar") only works if separated by \n
19:07 < aiju> pancake: ;?
19:08 < Namegduf> Put ; after the "foo", but it's kinda ugly
19:08 < Namegduf> Hard to search downward while reading like a regular set
of properly indented imports
19:08 < Namegduf> So I'm not sure why you want to.
19:08 < kamaji> would import("foo"); import("bar"); work?
19:08 < pancake> Namegduf: ok thanks, but the compiler error is not clear at
all :)
19:08 < pancake> import ("foo";"bar") works
19:09 -!- wrtp [~rog@92.17.58.122] has quit [Quit: wrtp]
19:09 < kamaji> btw, I can't use ClientConn, as it doesn't implement
io.Writer
19:09 < kamaji> I assume there's a ServerConn?
19:11 -!- samferry [sam@atheme/member/samferry] has joined #go-nuts
19:11 < kamaji> yebyen: ok i'm totally lost again, what's wrong with that
example code?
19:11 < yebyen> i haven't seen it, currently gutting xorg
19:11 < yebyen> won't have pdf for a few minutes at least
19:12 < Namegduf> ClientConn should implement io.Writer
19:12 < yebyen> kamaji: it would be swell if you can tag that on delicious
for:yebyen
19:12 < Namegduf> Ah, hmm, no, it doesn't.
19:13 < yebyen> i'll download it, but i like to see people using for: tag
19:13 < kamaji> yebyen: i've never used delicious tbh...
19:13 < Namegduf> I think there's no simple way to fix that code.
19:13 < Namegduf> It doesn't seem to have a "write arbitrary stuff to http
clients" thing.
19:13 -!- sav`` [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
19:14 < kamaji> The golang http package seems to say it has Read and Write
methods though?
19:14 < yebyen> kamaji: do you use anything like it?  supposedly delicious
is going away this year :(
19:14 < yebyen> bit.ly or somesuch
19:14 < Namegduf> Yeah, but the Write method doesn't accept a slice to
write.
19:14 < kamaji> yebyen: not really, I use firefox sync but that doesn't
really have a sharing component
19:14 < Namegduf> But, the request DOES implement io.Writer
19:14 < yebyen> :\
19:14 < Namegduf> Write to that
19:14 < yebyen> i'll just have to get used to mining my own firefox history
and .bash_history
19:14 -!- sav` [~lsd@189001130056.usr.predialnet.com.br] has quit [Read error:
Connection reset by peer]
19:14 < yebyen> for interesting wgets
19:14 < Namegduf> Hmm, no.
19:14 < yebyen> or clive'gets
19:14 < Namegduf> Write on that doesn't write a response.
19:15 < Namegduf> It writes the request.
19:15 < yebyen> well i have the pdf now
19:15 < yebyen> anyway
19:16 -!- wrtp [~rog@92.17.58.122] has joined #go-nuts
19:17 < kamaji> Namegduf: hrum.  Do you know of any http example code that
would be better then/
19:17 < kamaji> It seems weird that it's so out of date though, it's only a
few months ol
19:17 < kamaji> d
19:17 -!- boscop [~boscop@g226224096.adsl.alicedsl.de] has joined #go-nuts
19:18 -!- sav`` [~lsd@189001130056.usr.predialnet.com.br] has quit [Read error:
Connection reset by peer]
19:18 -!- sav`` [~lsd@189001130056.usr.predialnet.com.br] has joined #go-nuts
19:18 -!- sav`` [~lsd@189001130056.usr.predialnet.com.br] has quit [Remote host
closed the connection]
19:18 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
19:19 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
19:19 -!- pancake [~pancake@95.61.49.229] has quit [Quit: Lost terminal]
19:28 < kamaji> I don't suppose http isn't working because i'm using the
"6g" compiler instead of gccgo?
19:28 < Namegduf> 6g is more typical.
19:28 -!- binarypie [~binarypie@c-24-130-113-34.hsd1.ca.comcast.net] has joined
#go-nuts
19:29 < aiju> gccgo is the cancer that is killing go
19:29 < Namegduf> Nah, that's ex-Java-user.
19:29 < Namegduf> *users
19:30 -!- nameless| [~root@weowntheinter.net] has left #go-nuts ["going somewhere
that's not here"]
19:34 -!- wrtp [~rog@92.17.58.122] has quit [Ping timeout: 240 seconds]
19:34 -!- enherit [~enherit@75.92.111.122] has joined #go-nuts
19:36 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
19:37 < kamaji> oh there's a working example, joy :D
19:37 < kamaji> in the documentation
19:37 < kamaji> who would've thought
19:38 -!- WonTu [~WonTu@p57B569BF.dip.t-dialin.net] has joined #go-nuts
19:38 -!- WonTu [~WonTu@p57B569BF.dip.t-dialin.net] has left #go-nuts []
19:39 -!- wrtp [~rog@92.17.58.122] has joined #go-nuts
19:40 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
19:42 -!- piranha [~piranha@94-248-73-228.dynamic.peoplenet.ua] has joined
#go-nuts
19:49 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
19:49 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts
19:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
19:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
19:58 -!- enherit [~enherit@75.92.111.122] has quit [Ping timeout: 255 seconds]
19:59 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 250 seconds]
20:00 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
20:01 -!- femtooo [~femto@95-89-248-40-dynip.superkabel.de] has joined #go-nuts
20:01 -!- binarypie [~binarypie@c-24-130-113-34.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
20:02 < Urtie> aiju: Why is gccgo bad for Go?
20:02 < kamaji> Is there a File package or should I just use os.File?
20:03 < aiju> Urtie: well, gcc is quite a mess
20:04 < aiju> besides, gcc is slow
20:04 -!- femtoo [~femto@95-89-248-40-dynip.superkabel.de] has quit [Ping timeout:
255 seconds]
20:04 < Urtie> aiju: No argument there, but is it detrimental to Go itself?
They will discontinue 6g/8g, or what?
20:05 < aiju> Urtie: that was a 4chan reference
20:05 < aiju> "...  is the cancer that is killing ..." is usually an
overstatement ;)
20:05 < Urtie> haha, ok :)
20:06 < nsf> Urtie: I don't think the will discontinue 6g/8g in favor of
gccgo
20:07 -!- enherit [~enherit@75.92.111.122] has joined #go-nuts
20:08 < nsf> maybe in future there will be one or two more compilers
20:08 < nsf> gccgo has a nice frontend, written in C++
20:08 < nsf> attaching llvm-based backend to that should be pretty easy
20:08 < aiju> "nice" and "C++"?
20:08 < nsf> yes
20:08 < nsf> as much as it's possible
20:09 < aiju> the nice parts of C++ have their own name, they're called "C"
20:09 < nsf> and I think someone will want to see a Go-based compiler
20:09 < nsf> e.g.  written in Go
20:09 < kimelto> if it has a llvm backend!
20:10 < nsf> but for now
20:10 < aiju> what's wrong with 8g?
20:10 < nsf> 6g/8g isn't going anywere
20:11 < nsf> aiju: it's fine
20:11 < nsf> but people will want more compatibility with traditional stuff
20:12 < nsf> like .so support and elf object files
20:12 < Namegduf> The problem with 8g is that it indicates you're on a 32bit
system
20:12 < aiju> "If we have asked our costumer what they wanted, they would
have said 'faster horses'" (Henry Ford iirc)
20:12 < Namegduf> Get with the times!
20:12 < Namegduf> :P
20:12 < aiju> Namegduf: i really don't have the change for 64-bit hardware
20:12 < aiju> feel free to send me some :P
20:13 < aiju> i don't see too much of an reason to do so
20:13 < nsf> i have 64-bit hardware, but I'm too lazy to update my software
20:13 < nsf> :\
20:13 < nsf> it's kind of stupid, I'm running 32-bit OS and 64-bit OS in
qemu
20:13 < nsf> :\
20:14 < aiju> i don't see any advantage of running 64-bit
20:14 -!- SRabbelier [~SRabbelie@188.142.63.148] has quit [Ping timeout: 260
seconds]
20:14 < aiju> s/64-bit/AMD64
20:14 < nsf> 6g produces faster code on x86_64
20:14 < nsf> :)
20:14 < aiju> fucking marketing terms
20:14 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:30e6:cdb4:7f34:f52f] has joined
#go-nuts
20:14 < Namegduf> Supposedly the GC is also less prone to bug out because of
random crap left around
20:15 < aiju> duh …
20:15 < nsf> ok, time to go to bed, good night everyone
20:15 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
20:15 < aiju> with C i haven't seen any performance advantage yet
20:15 < Namegduf> Various things also run faster in general, but the real
performance win is that AMD64 has more registers by standard than i686
20:15 < aiju> so the only advantage would be 48-bit virtual address space
20:15 < Namegduf> False.
20:15 < Namegduf> Code compiled for a non-specific AMD64 proessor can run
faster due to the additional registers than code compiled for a non-specific i686
processor.
20:16 < Namegduf> I think it's double the number or something.
20:16 < aiju> "can run faster"
20:16 < Namegduf> ""can run faster""
20:17 < aiju> as in "under certain circumstances if the moon phase is right"
20:17 < Namegduf> No, as in generally does.
20:18 < aiju> but luckily with Linux there aren't too many issues (unlike
Windows …)
20:18 < Namegduf> No issues, no.
20:18 < Namegduf> Windows supposedly got rid of most of them in 7, too, but
Linux got rid of them way earlier.
20:18 < aiju> except for Debian people
20:18 < Namegduf> <- Debian user
20:19 -!- SRabbelier [~SRabbelie@188.142.63.148] has joined #go-nuts
20:19 < Namegduf> Has been fine for a long time.
20:19 < aiju> doesn't debian have /lib32 and /lib instead of /lib64 and
/lib?
20:19 -!- wrtp [~rog@92.17.58.122] has quit [Ping timeout: 260 seconds]
20:20 < Soultaker> isn't that the right way?
20:20 < Namegduf> Basically, yes.
20:20 < Namegduf> /lib64 exists and is a symlink to /lib
20:20 < Namegduf> /lib32 exists and is a symlink to /emul/ia32-linux/lib
20:20 < Namegduf> Everything certainly works, though.
20:22 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 255 seconds]
20:22 -!- SRabbelier [~SRabbelie@188.142.63.148] has quit [Read error: Connection
reset by peer]
20:23 < aiju> Soultaker: the right way is /386/lib and /amd64/lib
20:24 < Namegduf> According to whom?
20:24 < aiju> it's the only sane way to do it
20:24 < Namegduf> 'cause I know the LSB has nothing like that and /lib is
the native library directory on every single other architecture
20:24 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
20:24 < aiju> LSB isn't the ultimate source of truth …
20:24 < Soultaker> what he says!
20:24 < Namegduf> Or you could have /lib be native, like it is on every
other architecture, and put 32 somewhere else
20:25 < aiju> i don't think any Linux distribution implements it that way
20:25 < aiju> it's the Plan 9 way
20:25 < Soultaker> it makes intuitive sense to me to have libraries for your
primary ABI in /lib and /usr/lib
20:25 < aiju> Soultaker: the appropriate directory is binded in /lib
20:25 < Soultaker> whether that's a symlink or an actualy directory seems
inconsequential
20:25 < aiju> so whatever your arch your own, you're local stuff is in /lib
20:25 -!- wrtp [~rog@92.17.58.122] has joined #go-nuts
20:26 < Soultaker> then I wouldn't care either way :)
20:26 < Namegduf> At any rate this seems more like a "Linux sucks" kinda
complaint than "64-bit is worse than 32-bit"
20:26 < Namegduf> And it certainly all works fine.
20:26 < aiju> i didn't imply that this is something wrong with AMD64
20:26 < aiju> i didn't imply that AMD64 is in any way worse than 386
20:28 < aiju> Soultaker: that way allows you to run system with different
arches with the same filesystem
20:28 -!- SRabbelier [~SRabbelie@188.142.63.148] has joined #go-nuts
20:28 < Soultaker> what?  how?
20:29 < Soultaker> or do you mean one system with multiple ABIs?
20:29 < aiju> network file systems
20:29 < aiju> central file servers serves all systems, no matter what their
arch is
20:29 < Soultaker> then you still can't mount the root filesystem
20:29 < aiju> i have done that with 386 and ARM, works really neat
20:29 -!- piranha [~piranha@94-248-73-228.dynamic.peoplenet.ua] has quit [Read
error: Connection reset by peer]
20:30 < aiju> Soultaker: hu?  how so?
20:30 -!- piranha [~piranha@94-248-73-228.dynamic.peoplenet.ua] has joined
#go-nuts
20:31 < Soultaker> if you want /lib to be a different symlink in the root on
different systems, then you can't have a single root filesystem that's mounted
everywhere
20:31 < aiju> it's not a symlink
20:31 < aiju> it's a bind which is done locally
20:31 < aiju> (Plan 9 luckily doesn't have symlinks)
20:32 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 250 seconds]
20:32 < Soultaker> so I guess you want /lib64 to be the directory and /lib
to be bound locally?
20:32 < aiju> rather /amd64/lib
20:32 < aiju> but yeah, that's the idea
20:32 < Soultaker> ah, that makes sense.
20:32 < aiju> that also allows to switch to a 386 environment without chroot
20:33 < aiju> just change the bindings
20:33 < Soultaker> that sounds like a recipe for disaster!
20:33 < aiju> haha
20:33 < aiju> no, Plan 9 has per-process namespaces
20:33 < aiju> remotely similar to chroot
20:33 < Soultaker> I'd rather bind the relevant directories to a new part of
the filesystem and chroot there.
20:34 < Soultaker> (on Linux at least.)
20:34 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
20:34 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
20:38 -!- illya77 [~illya77@225-79-112-92.pool.ukrtel.net] has quit [Read error:
Connection reset by peer]
20:44 -!- piranha [~piranha@94-248-73-228.dynamic.peoplenet.ua] has quit [Quit:
Computer has gone to sleep.]
20:50 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
20:50 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 246 seconds]
20:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
20:55 -!- dforsyth [~dforsyth@c-76-21-40-117.hsd1.ca.comcast.net] has joined
#go-nuts
20:57 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has joined
#go-nuts
21:00 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
21:00 -!- enherit [~enherit@75.92.111.122] has quit [Ping timeout: 250 seconds]
21:00 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
21:05 -!- wrtp [~rog@92.17.58.122] has quit [Ping timeout: 272 seconds]
21:10 -!- wrtp [~rog@92.17.58.122] has joined #go-nuts
21:11 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 246 seconds]
21:11 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
21:13 -!- teejae [~teejae@softbank219185095092.bbtec.net] has quit [Quit: teejae]
21:17 -!- swdunlop [~swdunlop@96.26.45.40] has joined #go-nuts
21:21 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 255 seconds]
21:21 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
21:31 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
21:31 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
21:32 < kamaji> so I found this snippet on StackOverflow: func NewSyncMap()
*SyncMap { return &SyncMap{hm: make(map[string]string)} }
21:33 < kamaji> Doesn't that cause stack problems like it would in C?
21:33 < aiju> no
21:33 -!- impl [impl@224-74.ip4.durham0.network.cynigram.com] has joined #go-nuts
21:33 -!- impl [impl@224-74.ip4.durham0.network.cynigram.com] has quit [Changing
host]
21:33 -!- impl [impl@atheme/member/impl] has joined #go-nuts
21:33 < kamaji> so when is the struct allocated?
21:33 < kamaji> or is it implicit
21:33 < aiju> Go allocates variables where it's appropriate
21:33 < aiju> heap i suppose
21:33 < kamaji> is it dumb/possible to do it with new?
21:33 < kamaji> or is that just C++ infecting my brain
21:34 < aiju> new(Foo) and &Foo{} are equivalent
21:34 < aiju> either one is fine
21:34 < aiju> (the former seems more idiomatic to me tho)
21:34 < kamaji> cheers
21:34 < kamaji> I'll go with that
21:35 < kamaji> I was using a multiline {} initializer so I guess new is not
as nice, but it makes me feel better, hoho
21:35 < skelterjohn> new(Foo) will zero the struct - but &Foo{a,b,c}
initializes struct members to a, b, c etc
21:35 < kamaji> oic
21:36 < aiju> yeah, ofc
21:36 < kamaji> so I do want &Foo
21:36 < skelterjohn> you can also say f := new(Foo); f.a = a, f.b = b etc
21:36 < kamaji> I'm not addicted to C++ syntax enough to want to do that :D
21:36 < kamaji> (but thanks)
21:36 < aiju> heh
21:36 < skelterjohn> uh
21:37 < skelterjohn> that doesn't make sense to me
21:37 < skelterjohn> oh just because it uses new?
21:37 < kamaji> oh, I just meant if I want to initialize everything in a big
struct
21:37 < aiju> skelterjohn: new Foo is the C++ way of allocating stuff
21:37 < skelterjohn> it's nice to list the variables, though
21:37 < aiju> except that it also calls the constructor
21:37 < skelterjohn> aiju: yes, my confusion was something else
21:37 < kamaji> you do that in {} too
21:38 < skelterjohn> right, &Foo{a:a, b:b, c:c} i think
21:38 < kamaji> &Foo{bar: baz, qux: quz}
21:38 < skelterjohn> i've never actually written something like that
21:38 < kamaji> oh ^^
21:38 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:30e6:cdb4:7f34:f52f] has quit
[Quit: Leaving.]
21:38 < skelterjohn> i think that the need to push things all onto the same
line is misguided, though
21:39 < aiju> skelterjohn: i think both are fine, you should just break the
line appropriately
21:40 < kamaji> yea, I was using {x: x \n y:y \n}
21:40 < kamaji> also, how do you compile multiple files?  :D
21:40 < aiju> 8g foo.go bar.go
21:40 < aiju> if they all belong in the same package
21:40 < kamaji> bar.go is in package bar
21:40 < kamaji> not sure how to do that
21:40 < kamaji> does package = new object file?
21:40 < aiju> 8g foo.go ; 8g bar.go
21:40 < kamaji> ah ok
21:41 < kamaji> oh balls, I forgot to export everything, too
21:41 < kamaji> gotta get used to capital letters
21:41 < skelterjohn> kamaji: there are some good options for building go
projects without doing 8g, 8l by yourself
21:41 < aiju> regex is your friend
21:42 < aiju> usually make is the best
21:42 < skelterjohn> make is definitely the first shot
21:42 < skelterjohn> i like go-gb.googlecode.com
21:42 < skelterjohn> but...  that is because i wrote it
21:42 -!- gr0gmint [~quassel@87.60.23.38] has quit [Remote host closed the
connection]
21:42 < skelterjohn> so take that however you like
21:42 < kamaji> is it written in go?
21:42 < skelterjohn> it is
21:42 < kamaji> BADASS.
21:42 < skelterjohn> um.  it's really ugly code, though...  so don't look at
it as an example
21:42 < kamaji> does it use itself to build itself?
21:43 < skelterjohn> it does
21:43 < kamaji> still counts</akon>
21:43 < aiju> i dislike language specific tools
21:43 < cbeck> hahahah, akon++
21:43 < kamaji> :D
21:43 < skelterjohn> conversely, i dislike tools that try to do everything
for everyone
21:43 < jesusaurus> cbeck: pp isnt in here :P
21:43 < kamaji> sometimes I just like being lazy and getting a tool that
works
21:43 < aiju> kamaji: like … make
21:44 < skelterjohn> kamaji: if you want to use make there are template
makefiles in the go package source tree
21:44 < skelterjohn> it should be obvious how to modify them
21:44 < skelterjohn> template -> example
21:44 < aiju> you can just include them
21:45 < aiju>
http://phicode.de/git/?p=gb.git;a=blob_plain;f=Makefile;hb=HEAD
21:45 < skelterjohn>
http://code.google.com/p/go-gb/source/browse/gb/Makefile?r=fea37baa537977a30703fedf48f1cffe598df637
21:45 < skelterjohn> is an example
21:45 < skelterjohn> same as what aiju posted
21:46 < aiju> my experience with C has been that all "nice" tools like cmake
need so much fiddling that just using make is actually much faster
21:47 < skelterjohn> I've never used cmake
21:47 < aiju> i've tried most of them
21:47 < skelterjohn> but you make it sound like it just tries to do what
make does, and then some
21:48 < aiju> cmake, qmake and even autotools
21:49 < skelterjohn> but they all try to do everything for everyone
21:49 < skelterjohn> gb just compiles go projects.  more than that, it
requires you to use a prescribed (reasonable) project structure
21:49 < skelterjohn> as a result, almost no configuration required
21:49 < skelterjohn> and none required at all for simple things
21:49 < aiju> i don't mean a "just stuff everything in" tool
21:49 < aiju> rather a language-independent core with templates built on it
21:50 < skelterjohn> bash?  you can get the gb template for go, or the make
template for C? :)
21:50 < aiju> lol
21:50 -!- Mr_Dark [~dk@poviko.demon.nl] has quit [Read error: Connection reset by
peer]
21:51 < aiju> well, make can do anything
21:51 -!- Mr_Dark [~dk@poviko.demon.nl] has joined #go-nuts
21:51 < aiju> i also use it for tex documents and the like
21:51 < skelterjohn> with enough effort
21:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
21:52 -!- tvw [~tv@e176002191.adsl.alicedsl.de] has quit [Remote host closed the
connection]
21:53 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
21:53 < aiju> http://plan9.bell-labs.com/sources/contrib/aiju/nes/mkfile
21:53 < aiju> this isn't too much effort :P
21:54 < aiju> (that's mk not make, but the ideas are similar)
21:56 < aiju> anyway, i'm going sleeping now …
21:59 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
22:00 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
22:02 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Remote host closed the
connection]
22:03 -!- femtooo [~femto@95-89-248-40-dynip.superkabel.de] has quit [Ping
timeout: 240 seconds]
22:04 < kamaji> hmm.  If I have a type which wants to be written in two
seperate ways depending on where it's going (i.e.  a user-readable CLI format and
a computer-readable network format), how would I do that?
22:04 < kamaji> Should I create a wrapper type?
22:06 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-177-208.clienti.tiscali.it]
has quit [Quit: E se abbasso questa leva che succ...]
22:08 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has quit [Remote host closed the connection]
22:09 < skelterjohn> yeah - subtype it
22:09 < skelterjohn> type WriteThisWay MyType
22:09 < skelterjohn> func (t WriteThisWay) Write(....)
22:10 < skelterjohn> then you can pass
doSomethingToAWriter(WriteThisWay(mythingy))
22:10 < kamaji> I guess it makes more sense that way anyway.  cooooolbeans
22:10 < niekie> niek@oneironaut:~/programmingtests$ ./feedpenguinfish
22:10 < niekie> Penguin got 4 fish!  <>< <>< <><
<><
22:10 < niekie> niek@oneironaut:~/programmingtests$ ./feedpenguinfish
22:10 < niekie> Penguin got 5 fish!  <>< <>< <><
<>< <><
22:10 < niekie> Muhaha, it's alive.
22:11 < kamaji> hahahah awesome
22:11 < niekie> As you can see by the usefullness of my program, I'm still
pretty new to Go :P
22:12 < kamaji> I dunno man, it's got pretty sweet graphics
22:13 < niekie> Haha.
22:13 < niekie> Thanks!
22:13 <@nf_> =D nice
22:13 < niekie> (It's not adding 1 per run by the way or something, it's
actually just random)
22:14 < skelterjohn> you should have it be drawn from the poisson
distribution
22:14 <@adg> niekie: if you seed it by the current date (modulo the time)
you can use it as a measure of how lucky you will be today ;)
22:14 < niekie> adg: heh.  I'm seeding it with time.Nanoseconds() at the
moment.
22:14 < skelterjohn> no one likes my fish joke?
22:14 * niekie does.
22:15 < kamaji> lol
22:15 < kamaji> very good
22:15 <@adg> skelterjohn: i chuckled
22:16 < skelterjohn> is it bad that i only realized why it might be funny
once i had already typed it?
22:17 < skelterjohn> originally i was just thinking that the poisson
distribution would be an appropriate dist for number of fish caught in a certain
amount of time
22:17 <@adg> skelterjohn: that's why i didn't say anything; i thought you
were serious!
22:18 < skelterjohn> i should just trail all my messages with a ;) just in
case i said something funny
22:18 < niekie> Heh, time.Nanoseconds() is always the same on the
http://golang.org/ compiler.
22:18 < niekie> That ain't much fun :(
22:18 < kamaji> because of server exploitz?
22:18 < kamaji> that would probably kill ssh
22:18 < skelterjohn> i think it's to make things you run there deterministic
22:19 < kamaji> oh good point
22:19 < niekie> But I ain't a evil hacker.  It should be able to determine
that dynamically and let me run the code unsandboxed.  :P
22:19 <@adg> it's set to the date of Go's public release =)
22:20 < niekie> "By ticking this box, I agree that I am not a 3v17 h4xx0r"
;-)
22:21 < kamaji> just set your TCP/IP Evil Bit to 0.
22:22 -!- deso_ [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
22:23 < kamaji> ok is there like a "toString" function I should overload?
22:23 < kamaji> a standard one sorta fing
22:24 < kamaji> oh, "String"
22:25 -!- gits [~gits@77.94.219.158] has joined #go-nuts
22:26 < fzzbt> is there something like javadoc for go?
22:27 < kamaji> http://golang.org/pkg/
22:27 < fzzbt> oh, right godoc
22:27 < kamaji> oh
22:27 < kamaji> right you mean that :p
22:27 < skelterjohn> argh - apparently there are some changes to go/parser
that broke my code...
22:27 < fzzbt> :D
22:29 -!- waqas [~waqas@jaim.at] has joined #go-nuts
22:29 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Read error: Operation timed out]
22:29 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
22:32 -!- boscop [~boscop@g226224096.adsl.alicedsl.de] has quit [Ping timeout: 240
seconds]
22:37 <@adg> skelterjohn: apologies
22:37 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:37 -!- TheMue [~TheMue@p5DDF6625.dip.t-dialin.net] has quit [Quit: TheMue]
22:38 -!- wtfness [~dsc@78.101.137.236] has joined #go-nuts
22:39 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
22:39 < skelterjohn> hah - yes, you really should have checked with me
before improving the go core to make sure it was convenient
22:40 < skelterjohn> easily fixed, no worries
22:40 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Read error: Operation timed out]
22:41 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
22:46 < kamaji> I can't create a type just by going "type Foo Bar" ?
22:46 < kamaji> (if Bar is already a type)
22:46 <@adg> kamaji: you can
22:46 < kamaji> oh i'd just forgotten to prefix with package.Bar
22:46 < kamaji> whups :D
22:47 <@adg> but this will create a type of equivalent data structure as
Bar, but without any of its methods
22:48 < kamaji> Yeah, that's good, I just want to treat the same data
differently under different circumstances
22:48 < kamaji> it's for displaying to CLI vs writing to file or something
22:50 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 255 seconds]
22:52 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
22:55 -!- dRbiG [p@irc.kaer.tk] has joined #go-nuts
22:55 < dRbiG> hello
22:56 < skelterjohn> hi
22:57 < dRbiG> i'm just playing with Go and I wonder if it is possible to do
something like fname := strings.Split("/some/path/file.ext", "/", -1)[len(fname) -
1]
22:57 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 264 seconds]
22:58 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
22:59 < skelterjohn> take a look at the path package
23:00 < skelterjohn> _, fname := path.Split("/some/path/file.ext
23:00 < skelterjohn> ")
23:00 < dRbiG> arr...  i'll rephrase: is it possible to addres the last
element of a slice like with -1?
23:01 < skelterjohn> like python?  no
23:01 < dRbiG> that was the gist of my question, ty.  the file path was just
an arbitrary choice
23:02 < dRbiG> mhm, that sucks then.  i'll need to create intermediate
varibles to extract what i need
23:03 < skelterjohn> doing [len(thearray)-1] is as fast as it gets
23:03 < skelterjohn> the -1 shorthand does this anyway
23:03 < skelterjohn> it's just not hidden here
23:07 < dRbiG> so instead of doing '/some/path/file.ext'.split('/')[-1] and
getting what i want inplace i have to make two useless variables in two lines of
code ;)
23:08 < dRbiG> i guess that using more friendly tools makes one picky about
such stuff
23:10 < dRbiG> anyway, other question: my not-far-from hello world programs
all weight exactly the same (about 2.5Mb) - i guess that currently the linker puts
all imported stuff as is without bothering to check what is actually used?
23:14 <@adg> dRbiG: there are two issues
23:15 <@adg> dRbiG: one is that the runtime and reflect packages are quite
large, and necessary for almost all programs
23:15 <@adg> dRbiG: the other is that the linker could do a better job of
stripping unused code
23:18 < dRbiG> uhu.  i guess in future the linker will be better, though the
first issue will probably stay as it is
23:19 < skelterjohn> i bet one day linking will be dynamic
23:20 < dRbiG> actually i like the static linking here
23:20 <@adg> dynamic linking is a low priority
23:20 < kamaji> how do you cast a pointer?
23:20 < kamaji> do you have to dereference and then cast?
23:20 <@adg> there is no casting, only conversion
23:21 <@adg> so what are you trying to do?
23:21 < kamaji> var b *bar.Bar = bar.Bar(foo.Foo)
23:21 < skelterjohn> i think he has a *A that he wants to pass as a *B, and
"type A B"
23:21 < kamaji> yeah
23:21 < skelterjohn> well what you just said doesn't type-check
23:22 < skelterjohn> because *bar.Bar is not bar.Bar
23:22 < kamaji> but *bar.Bar(foo.Foo) doesn't work either
23:22 < skelterjohn> *bar.Bar(&foo.Foo)?
23:22 < kamaji> oh sorry, I meant *bar.Bar(foo)
23:22 < kamaji> where foo is a *foo.Foo
23:22 < skelterjohn> if Bar is a type of Foo, then you can't convert a Foo
to a *Bar
23:22 < skelterjohn> only a *Foo to a *Bar
23:22 <@adg> &bar.Bar(*foo)
23:23 < skelterjohn> adg: can you not convert the pointer?
23:23 <@adg> skelterjohn: no
23:23 <@adg> you must convert the value
23:24 < dRbiG> hmm...  what is the reson behind having values and pointers?
speed, safety?
23:24 < kamaji> it says "cannot take address of bar.Bar(*foo)"
23:24 < skelterjohn> as opposed to the way python or java does things?
23:25 < Namegduf> dRbiG: Control of memory layout and copying
23:25 <@adg> kamaji: b := bar.Bar(*foo); p := &b
23:25 < dRbiG> as opposed to my current universe (ruby) where everything is
a pointer actually
23:25 < kamaji> adg: ok, thanks
23:25 <@adg> dRbiG: because sometimes you want to pass values, sometimes you
want to pass pointers to values
23:25 < skelterjohn> passing around pointers to integers when you're doing
arithmetic is not the most efficient way to do things
23:26 < kamaji> adg: Wouldn't that be something the compiler could optimise?
23:26 < niekie> dRbiG: you can shave a little bit from the binary filesize
by using the "-s" option in the linker.
23:26 < kamaji> although I guess if you want to have a systems language then
you need memory management maybe?
23:26 < Namegduf> The compiler can only make optimisation as far as it can
prove they're safe
23:26 < skelterjohn> i think you give too much credit to compilers
23:26 < kamaji> Namegduf: but it can see how big an object is, and only pass
parameters that are used, things like that
23:26 <@adg> it's not something i _want_ the compiler to meddle with
23:27 <@adg> the semantics of passing a value or a pointer value are
different
23:27 <@adg> i know if i pass a value i'm making a copy of the value, so any
code that uses it can destroy it or whatever
23:27 <@adg> but if i pass a point to a value, i know that the value can be
changed at some point
23:28 <@adg> in concurrent code this is particularly important
23:28 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Read error: Operation timed out]
23:28 < dRbiG> okey, so safety in concurrency is an advantage
23:28 -!- vegai [vegai@archlinux/developer/vegai] has quit [Write error: Broken
pipe]
23:28 -!- vegai [vegai@archlinux/developer/vegai] has joined #go-nuts
23:28 < dRbiG> of pointer/value distinction
23:28 <@adg> dRbiG: not just safety, but efficiency also
23:28 -!- suiside [tajnyman@unaffiliated/suiside] has quit [Read error: Operation
timed out]
23:29 <@adg> if you don't have the explicit use of pointers in your language
then there's a lot that the compiler must do behind the scenes, and go is not that
kind of language
23:29 < dRbiG> true
23:32 -!- suiside [tajnyman@unaffiliated/suiside] has joined #go-nuts
23:34 < dRbiG> but what go really really needs is good ffi so people start
writing packages for all the real-world-necessary stuff out there
23:35 < kamaji> what creature is the go logo?
23:36 < kamaji> gopher.  right.
23:36 <@adg> yes
23:36 <@adg> dRbiG: ffi?
23:37 < dRbiG> adg: foreign function interface as they call it
23:37 <@adg> yes but what does that mean
23:38 < dRbiG> like in what i mean but good ffi or the definition?  :)
23:38 < dRbiG> by*
23:40 <@adg> kinda both
23:40 <@adg> what's it for?
23:40 <@adg> how does it help?
23:40 <@adg> sorry for my naivety
23:42 < dRbiG> let me paste a short example from wikipedia page about it (in
python)
23:42 < dRbiG> import ctypes
23:42 < dRbiG> libc = ctypes.CDLL( '/lib/libc.so.6' ) # under Linux/Unix
23:42 < dRbiG> t = libc.time(None) # equivalent C code: t = time(NULL)
23:42 < dRbiG> print t
23:42 < |Craig|> dRbiG: so what you want is CGO?
23:42 < |Craig|> http://golang.org/cmd/cgo/
23:43 -!- virtualsue [~chatzilla@93-97-62-8.zone5.bethere.co.uk] has joined
#go-nuts
23:43 < dRbiG> |Craig|: oh, wasn't aware of it
23:43 < dRbiG> yes, more or less something like it :)
23:44 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
23:45 -!- temoto [~temoto@95-25-114-98.broadband.corbina.ru] has joined #go-nuts
23:46 < temoto> Is there a way to put timeout on socket read/write?
23:48 < dRbiG> i guess go will need to attract a rather large userbase for
packages interfacing to various libraries to start springing out
23:48 -!- rlab_ [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
23:50 < dRbiG> working in ruby, or even better in perl means that you have a
package for almost anything you may think of
23:51 <@adg> dRbiG: http://godashboard.appspot.com/project
23:51 <@adg> there's a lot of stuff already
23:51 < dRbiG> reinventing the wheel is painful and the wheel usualy ends up
rather squarish and fragile :) at least in my case
23:52 < dRbiG> adg: it's a start
23:53 < dRbiG> but given the experimental status of the language it is
indeed something
23:55 <@adg> 1 year old.  1 year old
23:55 < dforsyth> do slices double in size when you do an append and a
reallocation is needed?
23:56 < dRbiG> okey, thanks for the chat, it's time for me to get some sleep
:)
23:57 <@adg> dforsyth: it doubles up to 1024, then it increases by 25%
23:57 < dforsyth> ah, okay
23:57 < dforsyth> that would explain some stuff :)
23:59 < kamaji> hm, why can't I os.Stdout.Flush() ?
--- Log closed Mon Jan 10 00:00:01 2011