--- Log opened Tue Feb 01 00:00:05 2011
--- Day changed Tue Feb 01 2011
00:00 < plexdev> http://is.gd/szDOJI by [Russ Cox] in 3 subdirs of go/ --
gc: remove non-blocking send, receive syntax
00:05 < skelterjohn> so frustrated....  http://pastebin.com/HLNPzRjc
00:05 -!- jdp__ [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has quit [Read error:
Connection reset by peer]
00:05 -!- keithcascio [~keithcasc@nat/google/x-qdfnglbgynvfotfv] has quit [Read
error: Connection reset by peer]
00:05 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts
00:08 < exch> O_o
00:10 < exch> that's not right
00:11 < skelterjohn> yeah...
00:11 < skelterjohn> heh
00:12 < cbeck> less maybe?  =/
00:12 < exch> print the actual addresses of those 4 thingies..  perhaps one
of em is pointing somewhere funky
00:12 -!- nettok [~quassel@200.119.178.219] has joined #go-nuts
00:16 < plexdev> http://is.gd/dt0KB0 by [Gustavo Niemeyer] in
go/misc/vim/syntax/ -- misc/vim: Document better syntax sync parameter
00:16 < plexdev> http://is.gd/63QRM9 by [Gustavo Niemeyer] in
go/misc/vim/ftplugin/go/ -- misc/vim: Define import commands on buffer switch
00:16 -!- nettok_ [~quassel@200.119.191.184] has quit [Ping timeout: 276 seconds]
00:17 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
00:19 < artefon> i cant goinstall my lib (github.com/thiagoncc/curses.go)
but it works with gomake install.  Am I missing something?
00:23 -!- snearch [~snearch@f053011158.adsl.alicedsl.de] has quit [Quit:
Verlassend]
00:25 < artefon> i cant goinstall my lib (github.com/thiagoncc/curses.go)
but it works with gomake install.  Am I missing something?  looks like it is not
linking the lib (i have CGO_LDFLAGS set)
00:28 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Lost terminal]
00:28 < exch> goinstall doesnt work with CGO projects as far as I know
00:30 -!- virtualsue [~chatzilla@nat/cisco/x-xldwnxxdjihqtbss] has quit [Quit:
ChatZilla 0.9.86 [Firefox 3.5.16/20101130074220]]
00:36 < skelterjohn> exch: good idea
00:36 < skelterjohn> and yeah - no cgo for goinstall yet
00:36 < skelterjohn> it's in the cards
00:36 < skelterjohn> but not ready
00:36 -!- sjbrown [~sjbrown@dsl081-072-059.sfo1.dsl.speakeasy.net] has joined
#go-nuts
00:39 < skelterjohn> exch: t.less is not a method!
00:40 < skelterjohn> type Tree struct { ...; less CallBack; ...  }
00:40 < skelterjohn> and it was nil
00:40 < exch> bingo
00:40 < skelterjohn> man that was a tricky one
00:40 < skelterjohn> for me, anyway
00:40 < exch> Not a trap you'll run into again
00:41 < skelterjohn> true
00:41 < skelterjohn> potentially
00:46 -!- keithcascio [~keithcasc@nat/google/x-dcdogazyxjcwxvjn] has joined
#go-nuts
00:49 -!- Scorchin [~Scorchin@host86-162-75-190.range86-162.btcentralplus.com] has
quit [Quit: Scorchin]
01:05 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
01:08 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
#go-nuts
01:13 -!- tvw [~tv@e176001053.adsl.alicedsl.de] has quit [Ping timeout: 240
seconds]
01:20 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has joined
#go-nuts
01:21 -!- napsy [~luka@88.200.96.18] has quit [Quit: leaving]
01:30 -!- niemeyer [~niemeyer@189-10-154-68.pltce701.dsl.brasiltelecom.net.br] has
quit [Ping timeout: 240 seconds]
01:36 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts
01:47 -!- sjbrown [~sjbrown@dsl081-072-059.sfo1.dsl.speakeasy.net] has quit [Ping
timeout: 240 seconds]
02:03 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Read error: Operation
timed out]
02:06 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts
02:10 -!- dforsyth_ [~dforsyth@bastion.inap.yelpcorp.com] has quit [Quit: Computer
has gone to sleep.]
02:19 -!- bfrank [4746df2b@gateway/web/freenode/ip.71.70.223.43] has joined
#go-nuts
02:32 -!- jumzi [~jumzi@c-89-233-234-125.cust.bredband2.com] has quit [Read error:
Operation timed out]
02:32 -!- mosva [~mosva@unaffiliated/mosva] has quit [Read error: Connection reset
by peer]
02:53 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
02:55 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Remote
host closed the connection]
03:05 -!- bfrank [4746df2b@gateway/web/freenode/ip.71.70.223.43] has quit [Ping
timeout: 265 seconds]
03:10 -!- adu [~ajr@pool-173-73-0-57.washdc.fios.verizon.net] has joined #go-nuts
03:22 -!- decaf [~mehmet@85.106.167.2] has quit [Remote host closed the
connection]
03:32 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
03:56 -!- idr [~idr@e179152044.adsl.alicedsl.de] has joined #go-nuts
04:02 -!- idr [~idr@e179152044.adsl.alicedsl.de] has quit [Remote host closed the
connection]
04:12 -!- nettok_ [~quassel@200.119.178.219] has joined #go-nuts
04:12 -!- nettok [~quassel@200.119.178.219] has quit [Ping timeout: 240 seconds]
04:13 -!- keithcascio [~keithcasc@nat/google/x-dcdogazyxjcwxvjn] has quit [Quit:
Leaving]
04:14 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Quit:
itrekkie]
04:23 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
05:22 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 250
seconds]
05:31 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
05:32 -!- millergarym [~chatzilla@203-219-89-242.static.tpgi.com.au] has quit
[Ping timeout: 240 seconds]
05:35 -!- millergarym [~chatzilla@203-219-89-242.static.tpgi.com.au] has joined
#go-nuts
05:42 -!- duncan [~KinOfCain@173-228-28-118.dsl.dynamic.sonic.net] has joined
#go-nuts
05:42 -!- duncan [~KinOfCain@173-228-28-118.dsl.dynamic.sonic.net] has quit
[Client Quit]
05:55 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
05:56 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has quit [Ping
timeout: 272 seconds]
05:56 -!- millergarym [~chatzilla@203-219-89-242.static.tpgi.com.au] has quit
[Ping timeout: 240 seconds]
05:58 -!- htoothrot [~mux@66-169-185-121.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
06:00 -!- millergarym [~chatzilla@203-219-89-242.static.tpgi.com.au] has joined
#go-nuts
06:03 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
06:32 -!- ymasory [~ymasory@c-76-99-55-224.hsd1.pa.comcast.net] has quit [Quit:
Leaving]
06:35 -!- radoshi [~roosh@216.239.45.130] has joined #go-nuts
06:40 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: Quit]
06:40 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
06:42 < radoshi> Hi! I was trying out the go codelab at
http://golang.org/doc/codelab/wiki/ and kept getting errors of the sort: "name not
exported: title in type *main.page"
06:42 < radoshi> I fixed this by changing the page's field to be Title and
Body to export it
06:42 < radoshi> and make the corresponding fix in the template.
06:42 < radoshi> and that worked.
06:42 < radoshi> but I was wondering if the codelab has a bug
06:43 < radoshi> or if I'm doing something wrong.
06:43 < radoshi> just to check, I built final.go and it has the same
problem.
06:46 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
06:46 < radoshi> ooops.  the code has been fixed, perhaps not pushed to the
site.
06:47 < radoshi> (just did a pull).  Anyway.  good to know its fixed, would
have saved a bit of frustration, but oh well.
06:59 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has quit
[Quit: JusticeFries]
06:59 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
07:08 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:17 -!- radoshi [~roosh@216.239.45.130] has quit [Quit: radoshi]
07:19 -!- nettok [~quassel@200.119.179.120] has joined #go-nuts
07:22 -!- nettok_ [~quassel@200.119.178.219] has quit [Ping timeout: 240 seconds]
07:28 -!- niemeyer [~niemeyer@189-10-154-68.pltce701.dsl.brasiltelecom.net.br] has
joined #go-nuts
07:30 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the
connection]
07:38 -!- chressie [~chressie@dreggn.in-ulm.de] has quit [Quit: WeeChat 0.3.4]
07:40 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
07:44 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
07:47 -!- chressie [~chressie@dreggn.in-ulm.de] has joined #go-nuts
07:54 -!- wtfness [~dsc@dyn-86-36-41-116.wv.qatar.cmu.edu] has joined #go-nuts
08:01 -!- nixness [~dsc@dyn-86-36-41-116.wv.qatar.cmu.edu] has joined #go-nuts
08:03 -!- wtfness [~dsc@dyn-86-36-41-116.wv.qatar.cmu.edu] has quit [Ping timeout:
260 seconds]
08:12 -!- photron [~photron@port-92-201-92-132.dynamic.qsc.de] has joined #go-nuts
08:14 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
08:15 -!- rm445 [rm445@pip.srcf.societies.cam.ac.uk] has quit [Read error:
Operation timed out]
08:18 -!- wrtp [~rog@92.17.35.133] has joined #go-nuts
08:18 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
08:18 -!- selud [~L1thium@61.19.244.134] has joined #go-nuts
08:18 -!- selud [~L1thium@61.19.244.134] has left #go-nuts []
08:18 -!- rm445 [rm445@pip.srcf.societies.cam.ac.uk] has joined #go-nuts
08:22 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-151-193.clienti.tiscali.it] has
joined #go-nuts
08:27 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:34 -!- nettok [~quassel@200.119.179.120] has quit [Ping timeout: 272 seconds]
08:43 -!- neshaug [~oyvind@213.239.108.5] has joined #go-nuts
08:43 -!- nobody`` [~nobody@88-108-250-247.dynamic.dsl.as9105.com] has joined
#go-nuts
08:47 -!- cenuij [~cenuij@78.122.228.32] has joined #go-nuts
08:47 -!- cenuij [~cenuij@78.122.228.32] has quit [Changing host]
08:47 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
08:51 -!- selud [~L1thium@61.19.244.134] has joined #go-nuts
08:51 -!- selud [~L1thium@61.19.244.134] has left #go-nuts []
08:53 < cenuij> I'm building the standard release packages in a fairly
restrictive chroot environment, so I set DISABLE_NET_TESTS=1, however I also find
the syslog package tests are failing too.  Where is DISABLE_NET_TESTS=1 checked?
I want run a local patch to disable the syslog tests before the build run as well.
08:54 -!- snearch [~snearch@f053011248.adsl.alicedsl.de] has joined #go-nuts
08:56 < cenuij> or nevermind, I grepped it in Makefile
09:17 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has joined #go-nuts
09:17 -!- photron [~photron@port-92-201-92-132.dynamic.qsc.de] has quit [Ping
timeout: 265 seconds]
09:39 -!- cafesofie [~cafesofie@rnwifi-164-107-93-127.resnet.ohio-state.edu] has
joined #go-nuts
09:40 -!- adu [~ajr@pool-173-73-0-57.washdc.fios.verizon.net] has quit [Quit: adu]
09:40 -!- tvw [~tv@e176003114.adsl.alicedsl.de] has joined #go-nuts
09:41 -!- ronnyy [~quassel@p4FF1C416.dip0.t-ipconnect.de] has joined #go-nuts
09:42 -!- ronnyy [~quassel@p4FF1C416.dip0.t-ipconnect.de] has quit [Remote host
closed the connection]
09:47 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has quit [Quit:
Leaving...]
09:50 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
09:55 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has joined #go-nuts
09:56 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has quit [Remote
host closed the connection]
09:56 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has joined #go-nuts
09:58 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has quit [Remote
host closed the connection]
09:58 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has joined #go-nuts
10:03 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the
connection]
10:11 -!- ShadowIce` [~pyoro@unaffiliated/shadowice-x841044] has quit [Ping
timeout: 276 seconds]
10:38 <@adg> :)
10:40 < jnwhiteh> Is there currently no way to have a multi-line string, or
do I have to manually break it up into separate strings and concatenate them?
10:42 < wrtp> `multi
10:42 < wrtp> line
10:42 < wrtp> string`
10:42 < wrtp> (although there's no way you can have a multi-line string
containing a backquote
10:42 < wrtp> )
10:43 < jnwhiteh> ah okay, thank you
10:43 < KBme> really?  that's what the backtick does!
10:43 < jnwhiteh> ah okay, thank you
10:46 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has quit [Ping
timeout: 240 seconds]
10:53 < jnwhiteh> hrm, seems odd that gotest doesn't work with Make.cmd O.o
10:53 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
joined #go-nuts
10:54 < KBme> you can only have one package main->func main()
10:54 < jnwhiteh> aye, I understand why..  just wish we had some funky
renaming that could get around it =)
10:57 < niemeyer> jnwhiteh: There's already some conversations to make that
work (gotest with main packages)
10:57 < jnwhiteh> that's be nice =)
10:57 < niemeyer> jnwhiteh: Meanwhile, there are tricks you can use to make
that work today
10:57 < niemeyer> jnwhiteh: Check out http://labix.org/gocheck
10:57 < jnwhiteh> not terribly bothered in this case
10:57 < jnwhiteh> my regexp isn't quite working as it is, so I've got to
sort that out first
10:57 < jnwhiteh> are character classes not supported by the regexp package,
i.e /S?
10:57 < jnwhiteh> err \S
10:58 < niemeyer> Under "Testing applications"
10:58 < jnwhiteh> thanks, I'll check that out!
11:01 -!- virtualsue [~chatzilla@nat/cisco/x-ayqzuwqhvsqcrvop] has joined #go-nuts
11:04 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
11:20 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
11:20 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
11:20 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
11:21 -!- mosva [~mosva@unaffiliated/mosva] has joined #go-nuts
11:27 -!- snearch [~snearch@f053011248.adsl.alicedsl.de] has quit [Quit:
Verlassend]
11:51 -!- mosva [~mosva@unaffiliated/mosva] has left #go-nuts []
11:52 -!- jdp__ [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts
11:52 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has quit [Read error:
Connection reset by peer]
11:52 -!- CrazyThinker [~CrazyThin@unaffiliated/mosva] has joined #go-nuts
11:57 < jnwhiteh> there is no way to look up a field in a struct from a
string, is there?
11:57 -!- shvntr [~shvntr@116.26.130.98] has joined #go-nuts
11:58 < KBme> nope, except foran if/switch
11:58 < KBme> for an*
11:59 < jnwhiteh> thought so, code generation, Go!
12:14 < wrtp> jnwhiteh: yes you can
12:14 -!- ExtraSpice [~XtraSpice@88.118.33.48] has joined #go-nuts
12:14 < wrtp> look at the reflect package
12:14 < jnwhiteh> wrtp: oh really?
12:14 < jnwhiteh> ah, I tend to avoid reflect and unsafe, but maybe I should
look again =)
12:17 < KBme> it's not easy to use (imho) but for what you want to it will
be useful
12:19 -!- vpit3833 [~user@203.111.33.203] has quit [Ping timeout: 240 seconds]
12:21 < cenuij> KBme: know of a reflection API that *is* intuitive/easy to
use?  (just curious)
12:22 < KBme> no, not really
12:25 < cenuij> me neither
12:28 -!- quantumelixir [~chillu@203.110.240.41] has joined #go-nuts
12:32 < cenuij> uriel: would you please update
http://go-lang.cat-v.org/packages for openSUSE/SLES if I give you a paste of the
build service project and repo url's?
12:33 < wrtp> jnwhiteh: avoiding unsafe is *definitely* good; avoiding
reflect is good too, most of the time.
12:34 < wrtp> depends what you're trying to do
12:34 < jnwhiteh> I used code generation instead for the actual code
12:34 < jnwhiteh> but for the unit tests, I'm using it
12:34 < jnwhiteh> I have a 52 element []string that needs to be moved into a
struct with named fields
12:34 < jnwhiteh> and most fields also need to be converted to float64
12:34 < jnwhiteh> so I think this combination is the nicest :P
12:45 < hokapoka> I'm trying to remove an item of a slice at a given
position, what's the best approach?
12:46 < hokapoka> I was tring, wrongly, s = s[0:n-1] + s[n+1:]
12:47 < quantumelixir> hokapoka: the slice refers to an array so you can
create a new slice: make([]int, len(old)-1) and copy stuff onto the new slice
12:48 < quantumelixir> but it would be best to avoid this completely if
possible..  especially if you do it often
12:48 < hokapoka> quantumelixir: right I was just looking at copy, I've only
ever used it to copy a single slice into another.
12:48 < quantumelixir> assigning is not copying
12:49 < hokapoka> I normally use copy when growing the capacity of a slice
to append additional items.
12:50 < Namegduf> hokapoka: Look at append()
12:50 < quantumelixir> hokapoka: what do you want to achieve?
12:50 < hokapoka> I just saw that.
http://golang.org/doc/go_spec.html#Appending_and_copying_slices
12:50 < Namegduf> Unless your version does clever, more optimal stuff in
your case.
12:50 < Namegduf> Which can happen.
12:51 < quantumelixir> hokapoka: If you're going to append and remove
elements then why are you using an array?!
12:51 < quantumelixir> Do you want O(1) access?
12:51 < Namegduf> If you're just doing it from the end, it's still much
cheaper than a list.
12:51 -!- decaf [~mehmet@85.106.167.2] has joined #go-nuts
12:52 < Namegduf> Especially if they tend to have a stable maximum size.
12:52 < hokapoka> Damn it, a map would be much more appropriate.
12:53 -!- fhs [~fhs@pool-74-101-66-112.nycmny.east.verizon.net] has quit [Quit:
leaving]
12:53 < hokapoka> Okay that sorts my remove at a given point.
12:57 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-151-193.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
12:57 < hokapoka> I've no idea way I've not used (even seen) append before.
In the rare situations where I have a slice that might be of dynamic length I've
alway used : s := make([]foo, x,y) and then used n := len(s); if n+1 > cap(s)
{s2 := make([]*foo, n, 2*n+1); copy(s2, s); s = s2 } s = s[0:n+1]; s[n] = f;
12:57 < wrtp> hokapoka: do you need to keep the slice items in the same
order?
12:58 < wrtp> 'cos if you don't, you can just do: a[n] = a[len(a)-1]; a =
a[0:len(a)-1]
12:59 < wrtp> i quite like this idiom too: s = append(s[0:n], s[n+1:])
13:00 < hokapoka> wrtp: thanks, I'll keep those in mind.
13:01 < hokapoka> I assume that the build-in append func handles capacity
too?
13:01 < hokapoka> "If the capacity of s is not large enough to fit the
additional values, append allocates a new, sufficiently large slice that fits both
the existing slice elements and the additional values."
13:01 < wrtp> hokapoka: yeah, that's the point - it uses any available
capacity before expanding
13:02 < hokapoka> As does my func, although I imagine i'd be better off
using the built-in func.  Has that been arround since like day 1?
13:02 < Namegduf> No.
13:02 < hokapoka> How recent?
13:03 < hokapoka> No, not better off, or not been arround since day 1?
13:03 < Namegduf> Not been around since day one.
13:03 < wrtp> it's relatively recent
13:04 < hokapoka> Okay, I'm not going to kick myself then.
13:05 -!- nixness [~dsc@dyn-86-36-41-116.wv.qatar.cmu.edu] has quit [Ping timeout:
240 seconds]
13:05 < wrtp> it's extremely useful
13:05 < hokapoka> And just to be sure, if I want a collection of whatever I
have 2 options.  Slices or maps, right?
13:08 < temoto> hokapoka, arrays and maps, yes.
13:08 < temoto> hokapoka, although, string may be seen as an ordered
immutable collection of bytes.
13:09 < wrtp> hokapoka: there's always container/list and container/ring too
13:09 < hokapoka> yeah that's what I figured.  just making sure.
13:10 < wrtp> and you can always roll your own (e.g.  with a linked list)
13:11 < skelterjohn> there are some third party options too
13:11 < skelterjohn> gohash.googlecode.com
13:12 < hokapoka> oh container..  I've staied away from it b/c of comments
regarding container/vector citing that's it expensive amnd shouldn't really be
used.
13:12 < wrtp> rog-go.googlecode.com/hg/key :-)
13:13 < wrtp> hokapoka: container/list is more useful
13:13 < skelterjohn> container/vector is just a slice with extra methods
13:13 < skelterjohn> it's no more expensive than a slice
13:13 < wrtp> container/list makes for a nice queue, for example
13:13 < hokapoka> man!
13:13 < wrtp> also, container/heap is very useful too
13:14 < hokapoka> wrtp: yep, that's exactally what I've just created.
13:14 < wrtp> what is?
13:14 < hokapoka> container/heap
13:15 < wrtp> what, you implemented a binary heap algorithm?
13:15 < skelterjohn> good to stay in shape
13:15 < wrtp> totally.  it's not hard.  just it's nice to have one to pull
off the shelf when you want one.
13:15 < hokapoka> Dual heap, a priority one and a regular one.  If there's
items in the priorty they pop uo over the ones in the scheduled one.
13:16 < hokapoka> yeah
13:16 < hokapoka> I think I'll go back throught the packages agin.
13:16 < wrtp> it's worth doing every so often
13:17 < skelterjohn> wrtp: you should consider making your key package work
with a search tree in the back
13:17 < hokapoka> indeed, oh well many thnaks guys
13:17 < skelterjohn> because people are horrible at making hashcode
functions
13:17 < skelterjohn> and collisions will abound
13:17 < skelterjohn> i use github.com/petar/GoLLRB
13:18 < wrtp> skelterjohn: to do that, you'd have to add an ordering
operation to the Hasher interface
13:19 < skelterjohn> yes
13:19 -!- nixness [~dsc@86.36.41.116] has joined #go-nuts
13:19 < skelterjohn> but you don't need the Equals
13:19 < skelterjohn> it would be a separate thing
13:19 < skelterjohn> keyless package next to the key package
13:20 < wrtp> i'm not sure how that would work
13:23 < skelterjohn> it would be a copy of the key package, except instead
of using the linked list and Equals() method, you'd use the llrb.Tree and a Less()
method
13:23 -!- nixness [~dsc@86.36.41.116] has quit [Ping timeout: 240 seconds]
13:25 < wrtp> you could probably make them coexist
13:26 < wrtp> use a tree when the hash implemented Less() and a linked list
otherwise
13:27 < skelterjohn> use reflect?
13:28 < skelterjohn> btw rog-go/go9p/g9pc/examples/read.go doesn't seem to
compile
13:28 < skelterjohn> read.go:28: undefined: log.Stderr
13:28 < wrtp> old code
13:29 < wrtp> that go9p directory probably shouldn't be in the repository at
all
13:30 < wrtp> log.Printf used to be called log.Stderr
13:31 < wrtp> looks like i have to compile python 2.7 before i can install
petar/GoLLRB...
13:31 < wrtp> grr
13:31 < wrtp> i already built python 2.6 this morning
13:32 < wrtp> and i already have at least three other versions of python on
this machine
13:32 < skelterjohn> ??
13:32 < skelterjohn> i have v2.5 here
13:32 < skelterjohn> why would you need any version of python to install
GoLLRB?
13:32 < wrtp> git
13:32 < skelterjohn> git is written in C!
13:32 < skelterjohn> (it's hg that is python)
13:33 < wrtp> yeah, but mac ports has python 2.7 as a dependency
13:33 < skelterjohn> huh
13:33 < wrtp> and i prefer using mac ports rather than wading into doing all
the dependencies manually
13:33 < skelterjohn> certainly reasonable
13:34 < wrtp> i had all this stuff built, but i recently changed the default
architecture to 64 bit so i could link 64 bit go code against the libraries.
13:34 < wrtp> it's a bit painful.
13:35 < KBme> any reason you are using rog-go/go9p instead of go9p?
13:35 < wrtp> KBme: i updated the API.
13:35 < wrtp> KBme: the author wasn't keen on my changes though, so it's
just left there as a relic
13:36 < KBme> i see
13:36 < wrtp> it was before i found out about russ's 9p library, which is
cleaner
13:37 < jnwhiteh> when I use reflection on my struct, the following type
assertion fails: val, ok := reflect.NewValue(results).(*reflect.StructValue)
13:38 < jnwhiteh> finding examples of this pretty sparse :P
13:38 < wrtp> jnwhiteh: paste some complete code?
13:38 < KBme> wrtp: russ' 9p lib?
13:38 < jnwhiteh> http://paste.pocoo.org/show/330520/
13:38 < plexdev> http://is.gd/65wOF9 by [Russ Cox] in 2 subdirs of go/ --
gc: fix send precedence
13:38 -!- cafesofie [~cafesofie@rnwifi-164-107-93-127.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
13:39 < jnwhiteh> results is a PerfData struct defined in the same package
13:39 < skelterjohn> jnwhiteh: if you want an example, this source file is
full of them http://code.google.com/p/goargcfg/source/browse/argcfg/argcfg.go
13:39 < wrtp> KBme: http://code.google.com/p/goplan9/
13:39 < wrtp> warning: it's buggy in its current state
13:39 < KBme> that's not 9p tho
13:39 < jnwhiteh> skelterjohn: oh that's great, thank you!
13:40 < KBme> ah, ok, there is a client lib
13:40 < wrtp> jnwhiteh: that's not a complete example.  where's the
definition of testData?
13:40 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
quit [Quit: leaving]
13:40 < KBme> I need the server part
13:40 < wrtp> (and ParseResults)
13:41 < wrtp> KBme: you don't need much for a 9p server - just read messages
and write them back to the connection
13:41 < jnwhiteh> wrtp: its just a string,
http://paste.pocoo.org/show/330521/ and http://paste.pocoo.org/show/330522/
13:42 < wrtp> right
13:42 < wrtp> ParseResults doesn't return a struct
13:42 < wrtp> it returns a pointer
13:42 < jnwhiteh> it returns a pointer
13:42 < jnwhiteh> yes ,I've just arrived at the same conclusion =)
13:43 < wrtp> if in doubt, just Printf("%T", reflectValue)
13:43 < wrtp> that'll tell you what you've actually got
13:43 < jnwhiteh> thanks
13:44 < jnwhiteh> all working now, thank you!
13:46 -!- Rennex [rennex@giraf.fi] has joined #go-nuts
13:52 -!- tvw [~tv@e176003114.adsl.alicedsl.de] has quit [Remote host closed the
connection]
13:54 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
13:55 < plexdev> http://is.gd/wkyTgw by [Gustavo Niemeyer] in 2 subdirs of
go/src/ -- cgo: define CGO_CFLAGS and CGO_LDFLAGS in Go files
13:55 < plexdev> http://is.gd/0hvq8M by [Mikio Hara] in go/src/pkg/syscall/
-- syscall: add network interface constants for freebsd/386, freebsd/amd64
14:00 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
joined #go-nuts
14:04 -!- adu [~ajr@pool-173-73-0-57.washdc.fios.verizon.net] has joined #go-nuts
14:13 -!- cafesofie [~cafesofie@dhcp-140-254-202-177.osuwireless.ohio-state.edu]
has joined #go-nuts
14:18 -!- cafesofie [~cafesofie@dhcp-140-254-202-177.osuwireless.ohio-state.edu]
has quit [Remote host closed the connection]
14:18 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
14:22 -!- cafesofie [~cafesofie@dhcp-140-254-202-177.osuwireless.ohio-state.edu]
has joined #go-nuts
14:29 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
14:30 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 265 seconds]
14:33 -!- Dr_Who [~tgall@206.9.88.154] has quit [Changing host]
14:33 -!- Dr_Who [~tgall@linaro/tgall-foo] has joined #go-nuts
14:40 -!- adu [~ajr@pool-173-73-0-57.washdc.fios.verizon.net] has quit [Quit: adu]
14:41 -!- iant [~iant@67.218.107.234] has joined #go-nuts
14:41 -!- mode/#go-nuts [+v iant] by ChanServ
14:45 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
14:53 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
14:54 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
14:56 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
15:00 -!- niemeyer [~niemeyer@189-10-154-68.pltce701.dsl.brasiltelecom.net.br] has
quit [Ping timeout: 240 seconds]
15:01 -!- CoconutCrab [~cua@unaffiliated/coconutcrab] has joined #go-nuts
15:07 -!- shvntr [~shvntr@116.26.130.98] has quit [Quit: leaving]
15:08 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
15:12 -!- ildorn [~ildorn@dhcp11.clubraum.in-ulm.de] has joined #go-nuts
15:13 -!- ildorn [~ildorn@dhcp11.clubraum.in-ulm.de] has quit [Client Quit]
15:15 -!- nobody`` [~nobody@88-108-250-247.dynamic.dsl.as9105.com] has quit [Quit:
.]
15:17 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
15:19 < niekie> Heh, sweet.  I think the compiler on the Golang.org website
is dead.
15:20 < niekie> It exits with " [process took too long]" at the default
Hello, world!  :)
15:21 < skelterjohn> immediately, even
15:28 -!- niemeyer [~niemeyer@189.98.165.74] has joined #go-nuts
15:29 -!- icbh [~icbh@ntszok033003.szok.nt.adsl.ppp.infoweb.ne.jp] has quit [Ping
timeout: 265 seconds]
15:32 -!- decaf [~mehmet@85.106.167.2] has quit [Ping timeout: 240 seconds]
15:34 < niekie> Ah, runs now.
15:39 -!- DerHorst [~Horst@e176101217.adsl.alicedsl.de] has joined #go-nuts
15:40 -!- ExtraSpice [~XtraSpice@88.118.33.48] has quit [Quit: Leaving]
15:44 -!- sauerbraten [~sauerbrat@p508CF280.dip.t-dialin.net] has joined #go-nuts
15:46 < wm_eddie> I wonder if that was me.
15:46 < wm_eddie> I was using it to run solve some Project Euler questions.
15:46 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
15:46 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
15:48 -!- decaf [~mehmet@78.163.171.119] has joined #go-nuts
15:49 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
15:53 -!- icbh [~icbh@ntszok054022.szok.nt.adsl.ppp.infoweb.ne.jp] has joined
#go-nuts
15:59 -!- adu [~ajr@pool-173-73-0-57.washdc.fios.verizon.net] has joined #go-nuts
16:02 -!- iant [~iant@67.218.107.234] has quit [Quit: Leaving.]
16:04 -!- decaf [~mehmet@78.163.171.119] has quit [Quit: Leaving.]
16:05 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
16:12 < plexdev> http://is.gd/r3cwow by [Adam Langley] in 12 subdirs of
go/src/pkg/ -- crypto: add package.
16:17 -!- DerHorst [~Horst@e176101217.adsl.alicedsl.de] has quit [Remote host
closed the connection]
16:19 -!- qjcg [~qjcg@208.88.110.46] has joined #go-nuts
16:28 -!- cafesofie [~cafesofie@dhcp-140-254-202-177.osuwireless.ohio-state.edu]
has quit [Remote host closed the connection]
16:29 < CrazyThinker> niekie, I got that same error now
16:29 < skelterjohn> works for me
16:34 < wrtp> if in doubt, just add a space and try again
16:34 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
16:34 < wrtp> the playground hashes by program text.
16:37 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
16:41 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
16:43 -!- wrtp [~rog@92.17.35.133] has quit [Quit: wrtp]
16:45 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
16:45 -!- wrtp [~rog@92.17.35.133] has joined #go-nuts
16:46 -!- qjcg [~qjcg@208.88.110.46] has left #go-nuts []
16:47 -!- wrtp [~rog@92.17.35.133] has quit [Client Quit]
16:47 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 260 seconds]
16:47 < artefon> i am having problems goinstalling my lib.  gomake install
works fine but when i goinstall cgo complains in the linking phase.  I set the
libraries to use in the Makefile.  Someone have any clues?  (the makefile url:
https://github.com/thiagoncc/curses.go/blob/master/Makefile )
16:48 < KBme> you can't goinstall cgo stuff
16:49 < artefon> oohh
16:49 < KBme> i don't even think goinstall uses your makefile
16:49 < artefon> thats why :)
16:49 < artefon> KBme, is there a workaround?
16:50 -!- bfrank [~brad@cpe-098-026-048-143.nc.res.rr.com] has joined #go-nuts
16:50 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
16:50 < KBme> nope, goinstall doesn't work for cgo stuff or commands
16:50 < KBme> at least last I checked
16:50 < artefon> i updated my release, it still dont
16:51 < artefon> i will update the readme then
16:51 -!- mbruce [~mbruce@ip66-104-100-163.z100-104-66.customer.algx.net] has quit
[Ping timeout: 255 seconds]
16:53 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
16:54 < artefon> KBme, thanks a lot ;)
16:54 < skelterjohn> cgo support for goinstall is something being worked on
16:54 -!- cafesofie [~cafesofie@rnwifi-164-107-93-127.resnet.ohio-state.edu] has
joined #go-nuts
16:55 < skelterjohn> but i imagine that goinstall won't ever download the
makefile, since that could potentially run arbitrary code
16:55 < artefon> skelterjohn, i was very pleased for working with cgo
16:56 < artefon> skelterjohn, very clever implementation
16:56 < skelterjohn> thanks, but i had nothing to do with it O:-)
16:56 -!- emjayess [~emjayess@pix1.i29.net] has quit [Quit: Leaving]
16:57 < artefon> hehehe
16:57 < artefon> skelterjohn, just saying
16:57 < artefon> :)
16:58 -!- CoconutCrab [~cua@unaffiliated/coconutcrab] has quit [Quit: tết tết tết
đến rồi]
16:58 < artefon> skelterjohn, but you can run arbitrary code with C, with
GO...  the makefile shoudn't be a concern
16:59 < plexdev> http://is.gd/X45i3g by [Hector Chu] in 5 subdirs of
go/src/pkg/ -- windows: multiple improvements and cleanups
16:59 < plexdev> http://is.gd/iDilki by [Gustavo Niemeyer] in go/src/cmd/6l/
-- 6l: add comment to CMOV* relocation
17:01 < jnwhiteh> Is there any reason I wouldn't be able to submit multiple
RPC calls to the same RPC server asynchronously?
17:04 < jnwhiteh> no, seems that should work fine..  time to look elsewhere
for the issues
17:05 < artefon> jnwhiteh, are you using Go?
17:06 < jnwhiteh> yes, ofc =)
17:06 < artefon> jnwhiteh, did you set maxprocs/?
17:06 < jnwhiteh> no
17:07 < artefon> jnwhiteh, http://golang.org/pkg/runtime/#GOMAXPROCS :)
17:08 < jnwhiteh> I'm not sure why that's relevant..
17:08 < sauerbraten> why can't I use float % float?  I got the prime p =
19249*2^(13018586)+1 and need to to int % p
17:09 < jnwhiteh> Go programs don't need to have that set to have multiple
network connections
17:09 < sauerbraten> and p is too big for int
17:09 < artefon> jnwhiteh, for multiple connections probably not
17:09 < jnwhiteh> which is what I'm asking baout
17:09 < jnwhiteh> I've NEVER had to set GOMAXPROCS in a Go program, for
anything
17:09 < jnwhiteh> and I've done quite a bit of concurrency/scalability work
=)
17:09 < artefon> jnwhiteh, for real multithreading
17:10 < jnwhiteh> which I don't need..
17:10 < jnwhiteh> there's a reason we have goroutines
17:10 < artefon> jnwhiteh, for concurrency
17:10 < jnwhiteh> ...
17:10 < artefon> jnwhiteh, concurrent code
17:10 < jnwhiteh> You aren't making much sense to me at all.
17:10 < artefon> jnwhiteh, ok sorry
17:10 < jnwhiteh> what you are talking about isn't concurrency, its TRUE
parallelism
17:10 < jnwhiteh> and even that's not strictly true
17:11 < jnwhiteh> given that you're just multiplexing onto multiple OS
processes
17:11 < sauerbraten> nvm guys, int64 is enough
17:11 < Ina> I appear to be missing a Makefile
17:11 < jnwhiteh> which is the exact same model that goroutines use, just
slightly different
17:13 < Ina> Makefile:5: /home/ina/go/src/Make.386: No such file or
directory
17:13 < jnwhiteh> Ina: look in $GOROOT, the makefiles are no longer
structured like that
17:13 < jnwhiteh> $GOROOT/src, specifically
17:13 < Ina> jnwhiteh, well then.  How am I supposed to update this
library's makefile?
17:13 < jnwhiteh> Ina: you look at the new ones and use them instead
17:14 < jnwhiteh> include $(GOROOT)/src/Make.inc
17:14 < jnwhiteh> that's the first one you need to include
17:14 < jnwhiteh> the second one (at the end) depends on whether you are
building ap ackage or a command, in this case, its likely include
$(GOROOT)/src/Make.pkg
17:14 < jnwhiteh> but its tough to say without looking at it
17:16 < plexdev> http://is.gd/TcgyI9 by [Eoghan Sherry] in go/src/cmd/6g/ --
6g: fix registerization of temporaries
17:16 < plexdev> http://is.gd/x5FPmC by [Gustavo Niemeyer] in 2 subdirs of
go/src/ -- exec: use custom error for LookPath
17:17 < cenuij> using any of the core command binaries from within a
chrooted environment leads to an immediate segfault e.g.  execve("/usr/bin/gofmt",
["gofmt", "cpu.go"], [/* 55 vars */]) = -1 EFAULT (Bad address)
17:17 < cenuij> but I've no idea why, other C binaries for example are fine
17:17 < cenuij> any clue bat ?
17:20 -!- Cyd [~zinc@unaffiliated/cydd] has joined #go-nuts
17:24 -!- iant [~iant@nat/google/x-ylpqgvmzmxjejonc] has joined #go-nuts
17:24 -!- mode/#go-nuts [+v iant] by ChanServ
17:27 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
17:27 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
quit [Quit: leaving]
17:28 -!- maattd [~maattd@esc31-1-78-245-92-71.fbx.proxad.net] has joined #go-nuts
17:29 < jnwhiteh> Anyone here have much experience with RPC?
17:33 -!- millergarym [~chatzilla@203-219-89-242.static.tpgi.com.au] has quit
[Ping timeout: 240 seconds]
17:33 -!- millergarym [~chatzilla@203-219-89-242.static.tpgi.com.au] has joined
#go-nuts
17:44 -!- virtualsue [~chatzilla@nat/cisco/x-ayqzuwqhvsqcrvop] has quit [Ping
timeout: 276 seconds]
17:46 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Read error: Connection
reset by peer]
17:49 -!- niekie [~niek@CAcert/Assurer/niekie] has joined #go-nuts
17:56 -!- jdp__ [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has quit [Read error:
Connection reset by peer]
17:57 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts
17:57 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has quit
[Ping timeout: 272 seconds]
17:58 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:dcbc:23c7:7e99:defa] has joined
#go-nuts
18:03 < plexdev> http://is.gd/wSG8Er by [Russ Cox] in go/src/pkg/strconv/ --
strconv: add test that trips up other implementations
18:12 -!- keithgcascio [~keithcasc@nat/google/x-emtuunbhkvtfyyuy] has joined
#go-nuts
18:20 -!- imsplitbit [~imsplitbi@64.39.4.132] has joined #go-nuts
18:26 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-157-233.clienti.tiscali.it] has
joined #go-nuts
18:32 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
18:35 < plexdev> http://is.gd/pC23kW by [Russ Cox] in go/ -- A+C: Jose Luis
Vázquez González (individual CLA)
18:50 -!- cafesofie [~cafesofie@rnwifi-164-107-93-127.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
18:51 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
18:55 -!- hcl2 [~akuma@75.41.110.112] has joined #go-nuts
18:56 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
18:56 < hcl2> anyone know how to debug a build hang?  i get no output after
building "pkg/net"
18:57 < hcl2> make[1] entering directory pkg/net, make[2] entering directory
pkg/net, make[2] leaving, but no make[1] leaving
18:58 -!- dforsyth_ [~dforsyth@bastion.inap.yelpcorp.com] has joined #go-nuts
18:59 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
18:59 <+iant> hcl2: start again, but set DISABLE_NET_TESTS=1 in the
environment
19:00 < hcl2> oh, yeah, it just finally died
19:01 < hcl2> would be nice if that was on the "getting started" page
19:01 < Cyd> shut up hcl2
19:03 -!- j3parker [j3parker@artificial-flavours.csclub.uwaterloo.ca] has quit
[Quit: Lost terminal]
19:05 -!- nettok [~quassel@200.119.172.13] has joined #go-nuts
19:06 <+iant> It's a temporary issue, I think
19:06 < plexdev> http://is.gd/K6HLsX by [Jose Luis Vázquez González] in
go/src/pkg/http/ -- http: add host patterns
19:07 < plexdev> http://is.gd/IWu9rx by [Russ Cox] in 2 subdirs of go/ --
gc: handle invalid name in type switch
19:11 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has quit [Read error:
Connection reset by peer]
19:11 -!- jdp [~jdp@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts
19:12 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has joined
#go-nuts
19:20 -!- ddoman [~root@24.83.96.98] has joined #go-nuts
19:22 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
19:23 < hcl2> are there any examples of go programs larger than 1 file?
19:23 < plexdev> http://is.gd/KflN0n by [Russ Cox] in go/lib/codereview/ --
codereview: more ascii vs unicode nonsense
19:23 <+iant> hcl2: src/cmd/cgo
19:27 -!- DerHorst [~Horst@e176101217.adsl.alicedsl.de] has joined #go-nuts
19:31 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving]
19:32 < hcl2> i don't actually see how src/cmg/cgo/main.go is utilizing any
other file other than standard distribution libraries.
19:33 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:dcbc:23c7:7e99:defa] has quit
[Quit: Leaving.]
19:33 < temoto> hcl2, currently, you can only write tests for packages.
This restriction enforces you to break program into package and single simple
main.go file that uses program-package.
19:33 < niemeyer> hcl2: It uses all files in that directory
19:33 < niemeyer> hcl2: It's their only reason of existing
19:34 < aiju> hcl2: just pass all files to the compiler
19:34 < temoto> hcl2, here's another example of more multifile program:
https://github.com/temoto/heroshi/tree/master/io-worker
19:34 < aiju> http://phicode.de/git/?p=gb.git;a=tree another one :P
19:35 < temoto> hcl2, maybe you're looking for imports of individual files
in main.go?  Things work a bit differently.
19:37 < hcl2> http://golang.org/doc/go_tutorial.html
19:37 < hcl2> so, i'm trying to follow the tutorial
19:37 < hcl2> import "./file" doesn't work, even after compiling file.go as
a separate step
19:37 < aiju> hcl2: it doesn't work that way
19:38 < aiju> hcl2: you simply pass all files to the compiler
19:38 < aiju> and all of them start with package main
19:38 < temoto> hcl2, in Go you import packages, not individual files.  Like
in .NET, if you're familiar with that.
19:39 < aiju> does any language import individual files?
19:39 < hcl2> so, i can't write a library unless i distribute it with go
sources and put it in src/pkg/mylibrary ?
19:39 < aiju> no
19:40 < aiju> there's no reason why you should
19:40 < hcl2> well, whatever
19:40 < temoto> You can write a library and distribute it separately of go
sources.  But it will install into $GOROOT/pkg/....  But why do you care where it
would install into.
19:41 < temoto> aiju, Well Python does, sort of.  Nodejs does.  PHP surely
does include/require files.
19:41 < aiju> oh yeah PHP
19:41 < temoto> but that's include
19:42 < temoto> import is somewhat by definition is not about files
19:42 < aiju> haven't written PHP in a long time
19:44 < temoto> hcl2, to write a library you need: 1) write package
your-library-name as first line in each file, 2) compile all files at once 3) link
them into single my-library.a
19:44 < temoto> hcl2, you can copy-paste Makefile from any package in
$GOROOT/src/pkg and use it as template.  You will have convenient compile/install
commands then.
19:45 < aiju> you don't need to copy&paste
19:46 < aiju> e.g.  include $(GOROOT)/src/Make.inc ; TARG = foo ;
GOFILES=foo.go bar.go ; include $(GOROOT)/src/Make.cmd for commands (; indicating
newline)
19:46 < bfrank> has anyone had any success compiling the windows go target?
19:48 < hcl2> so, if you import a library and don't use it, it's an error or
a warning?
19:48 <+iant> hcl2: yes
19:49 < aiju> error
19:50 < aiju> one of the things i find most annoying with Go
19:50 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
19:51 < temoto> aiju, that's exactly what would be copy-pasted.  Why not?
19:52 < aiju> easily memorizable ;)
19:52 < temoto> Also, you forgot GOFMT and format target.
19:55 < temoto> At first i was annoyed about unused import errors too, but
then...  it helps to keep your code consistent what you really use, right?  Other
languages have specialized tools to find unused imports.  In Go we have it for
free.  :)
19:56 < aiju> esp.  when commenting out code, unused errors are annoying
19:58 < temoto> True.
19:59 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
20:01 < hcl2> what if you don't have a $(GOROOT)/src/Make.$(GOARCH) file ?
20:04 -!- ddoman31 [~root@24.83.96.98] has joined #go-nuts
20:05 < temoto> hcl2, that's normal.
20:05 < jnwhiteh> Am I doing anything absurdly wrong in my exec.Run usage
here?  It works fine when only one request is running, but as soon as the second
starts up both end up dying with a SIGSEGV.  I can't reproduce this without Go,
although I still believe it is an issue with httperf.  Any ideas would be greatly
appreciated.
20:05 < temoto> hcl2, at some point, they changed naming from Make.$(GOARCH)
to just constant Make.inc
20:06 -!- jodaro [~user@poquito.divinia.com] has joined #go-nuts
20:07 < temoto> jnwhiteh, absurdly invisible usage of exec.Run :)
20:07 -!- ddoman [~root@24.83.96.98] has quit [Ping timeout: 246 seconds]
20:08 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has quit
[Ping timeout: 272 seconds]
20:10 < plexdev> http://is.gd/a3C1zx by [Robert Griesemer] in go/doc/ -- go
spec: follow-up cleanups after communication operator changes
20:11 -!- photron [~photron@port-92-201-92-132.dynamic.qsc.de] has joined #go-nuts
20:11 -!- qjcg [~qjcg@208.88.110.46] has joined #go-nuts
20:12 -!- jyxent [~jyxent@129.128.191.96] has quit [Ping timeout: 276 seconds]
20:17 -!- TheMue [~TheMue@p5DDF703E.dip.t-dialin.net] has joined #go-nuts
20:25 -!- ajeet [~ajeet@c-24-6-103-8.hsd1.ca.comcast.net] has joined #go-nuts
20:25 < ajeet> hey
20:26 < ajeet> Does go have any form of reflection ?
20:26 < ajeet> can I query the attributes of an object?
20:27 < aiju> yeah
20:27 < aiju> see the reflect package
20:28 < ajeet> thanks
20:28 -!- jyxent [~jyxent@129.128.191.96] has joined #go-nuts
20:30 -!- sonntag
[~justinson@64-121-122-33.c3-0.smt-ubr1.atw-smt.pa.cable.rcn.com] has quit [Quit:
sonntag]
20:32 -!- tvw [~tv@e176003114.adsl.alicedsl.de] has joined #go-nuts
20:32 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has joined
#go-nuts
20:34 -!- ajeet [~ajeet@c-24-6-103-8.hsd1.ca.comcast.net] has quit [Quit: WeeChat
0.3.4-rc3]
20:45 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
20:52 -!- decaf [~mehmet@78.163.171.119] has joined #go-nuts
20:52 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
20:54 -!- decaf [~mehmet@78.163.171.119] has quit [Client Quit]
20:54 -!- decaf [~mehmet@78.163.171.119] has joined #go-nuts
20:57 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
20:57 < plexdev> http://is.gd/VyeDRs by [Rob Pike] in go/src/cmd/govet/ --
govet: add Panic to the list of functions
20:57 < plexdev> http://is.gd/nhVGkF by [Rob Pike] in 14 subdirs of go/ --
log: rename Exit* to Fatal*
20:57 < plexdev> http://is.gd/H1fxlm by [Ian Lance Taylor] in 3 subdirs of
go/src/cmd/ -- ld: Add -I option to set ELF interpreter.
20:57 < plexdev> http://is.gd/C1kYwX by [Robert Griesemer] in go/doc/ -- go
spec: s/log.Crash/log.Panic/
21:06 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
21:09 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
21:09 -!- CrazyThinker [~CrazyThin@unaffiliated/mosva] has quit [Read error:
Connection reset by peer]
21:10 -!- CrazyThinker [~CrazyThin@unaffiliated/mosva] has joined #go-nuts
21:18 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 246 seconds]
21:21 -!- wtfness [~dsc@78.101.45.86] has joined #go-nuts
21:25 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
21:25 -!- photron [~photron@port-92-201-92-132.dynamic.qsc.de] has quit [Ping
timeout: 260 seconds]
21:29 -!- vzx [~ryan@74-129-194-67.dhcp.insightbb.com] has quit [Ping timeout: 240
seconds]
21:36 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 276 seconds]
21:37 -!- Scorchin [~Scorchin@host109-154-145-33.range109-154.btcentralplus.com]
has joined #go-nuts
21:38 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
21:38 -!- nutate [~rseymour@cacsag4.usc.edu] has joined #go-nuts
21:41 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
21:43 -!- jumzi [~none@c-89-233-234-125.cust.bredband2.com] has joined #go-nuts
21:46 -!- snearch [~snearch@f053011248.adsl.alicedsl.de] has joined #go-nuts
21:48 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
21:52 -!- Urtie [~urtie@90-227-159-22-no57.tbcn.telia.com] has quit [Ping timeout:
240 seconds]
21:54 -!- iant [~iant@nat/google/x-ylpqgvmzmxjejonc] has quit [Ping timeout: 255
seconds]
21:54 -!- DerHorst [~Horst@e176101217.adsl.alicedsl.de] has quit [Remote host
closed the connection]
21:56 -!- TheMue [~TheMue@p5DDF703E.dip.t-dialin.net] has quit [Quit: TheMue]
21:57 -!- sauerbraten [~sauerbrat@p508CF280.dip.t-dialin.net] has quit [Remote
host closed the connection]
21:59 < plexdev> http://is.gd/BqxoWj by [Robert Griesemer] in 7 subdirs of
go/ -- go/ast: reflect communication operator changes accurately in ast
22:00 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Ping
timeout: 276 seconds]
22:04 -!- iant [~iant@nat/google/x-vinvboigdthlresj] has joined #go-nuts
22:04 -!- mode/#go-nuts [+v iant] by ChanServ
22:05 -!- Urtie [~urtie@90-227-159-22-no57.tbcn.telia.com] has joined #go-nuts
22:08 -!- cafesofie [~cafesofie@rnwifi-164-107-93-127.resnet.ohio-state.edu] has
joined #go-nuts
22:09 -!- vpit3833 [~user@203.111.33.203] has joined #go-nuts
22:13 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
22:14 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
22:20 -!- jrslepak [~jrslepak@24-247-40-178.dhcp.mrqt.mi.charter.com] has joined
#go-nuts
22:24 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
22:44 -!- napsy [~luka@88.200.96.18] has quit [Read error: No route to host]
22:45 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has quit [Remote host closed the connection]
22:45 -!- qjcg [~qjcg@208.88.110.46] has quit [Quit: qjcg]
22:46 -!- niemeyer [~niemeyer@189.98.165.74] has quit [Ping timeout: 240 seconds]
22:48 -!- sonntag [~justinson@pool-96-245-106-145.phlapa.fios.verizon.net] has
joined #go-nuts
22:52 -!- imsplitbit [~imsplitbi@64.39.4.132] has quit [Quit: Bye!]
22:55 -!- viirya_ [~viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts
22:59 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has quit [Ping timeout: 276
seconds]
23:00 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts
23:00 -!- viirya_ [~viirya@cml506-25.csie.ntu.edu.tw] has quit [Ping timeout: 265
seconds]
23:02 < jnwhiteh> temoto: ack, sorry!
https://github.com/jnwhiteh/autohttperf/blob/master/server/server.go
23:02 < jnwhiteh> That's the exec.Run usage I'm having issues with
23:02 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
23:03 -!- niemeyer [~niemeyer@189.30.51.218] has joined #go-nuts
23:05 -!- snearch [~snearch@f053011248.adsl.alicedsl.de] has quit [Quit:
Verlassend]
23:05 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
23:06 < temoto> jnwhiteh, i dunno, try to Run bash -c httperf
23:06 < temoto> jnwhiteh, or, try to debug coredump when you get SIGSEGV.
23:08 < jnwhiteh> I've done both of those, it still occurs when running bash
-c, which makes me very confident its an issue with httperf
23:08 < jnwhiteh> just wanted to sanity check that I'm not doing anything
stupid there =)
23:09 < temoto> Doesn't look stupid to me, but i'm not guru.
23:09 < jnwhiteh> well thanks for looking =)
23:09 < temoto> And what's interesting in core?
23:10 < jnwhiteh> they're just de-referencing a bad pointer
23:10 < jnwhiteh> and this only ever seems to happen when two versions of
the application are running at the same time
23:11 < temoto> Who?
23:11 < jnwhiteh> httperf
23:11 < jnwhiteh> =)
23:11 < jnwhiteh> for my purposes its not TOO big of a deal, since you'll be
using more than one worker machines, and those should be distinct
23:16 < plexdev> http://is.gd/UslHMp by [Rob Pike] in go/src/cmd/5g/ -- arm:
disable peep for release
23:21 -!- jbooth1 [~jay@209.249.216.2] has joined #go-nuts
23:22 -!- emjayess [~emjayess@pix1.i29.net] has quit [Quit: Leaving]
23:28 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
23:29 -!- qboiler [~bryce@99-7-4-180.lightspeed.cicril.sbcglobal.net] has joined
#go-nuts
23:30 -!- vzx [~ryan@74-129-194-67.dhcp.insightbb.com] has joined #go-nuts
23:46 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Ping timeout: 272 seconds]
23:47 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
23:48 < plexdev> http://is.gd/0JIJk5 by [Russ Cox] in 4 subdirs of go/ --
5l, 8l: pass stack frame size to morestack when needed
23:49 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
23:51 < temoto> jnwhiteh, did you try to play with various stdin/out/err
values?
23:52 < temoto> i don't see any more relations to parent (Go) process
23:52 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
23:54 < jnwhiteh> temoto: I haven't, I'll give that a try and see
23:55 -!- jrslepak [~jrslepak@24-247-40-178.dhcp.mrqt.mi.charter.com] has quit
[Quit: jrslepak]
23:57 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
23:57 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-157-233.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
--- Log closed Wed Feb 02 00:00:05 2011