--- Log opened Sat Jun 18 00:00:53 2011
00:01 < allengeorge> I'm looking for some examples on how to write idiomatic
Go byte-buffer -> message parsing.  Does anyone have any suggestions?
00:02 < allengeorge> I thought about the JSON package, but that's not quite
what I'm writing.  I'm parsing buffers into known message types...
00:13 < jessta> allengeorge: there is a protocol-buffers package
00:13 < jessta> and the gob package will do that too
00:21 -!- Tv [~Tv@ip-66-33-206-8.dreamhost.com] has quit [Ping timeout: 260
seconds]
00:24 < allengeorge> jessta: Thanks, I'll look at those
00:25 < crazy2be> hmm i'm making an inotify wrapper
00:25 < crazy2be> it calls handlers when files are modified
00:25 < crazy2be> but i'm not sure how to write a unit test for it :<
00:26 < jessta> crazy2be: create files, modify them
00:27 < crazy2be> jessta: Well i have my Testxxx functions, which are
different from the Handler functions, and i'm not sure how the Testxxx functions
should ensure that the Handlers are called
00:27 < crazy2be> since they are potentially running in different threads
and all
00:28 < crazy2be> perhaps a channel, but that might not do what I want if
there are too many or too few messages sent
00:28 < crazy2be> hrm
00:28 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Excess Flood]
00:32 -!- zcram [~zcram@78-28-101-215.cdma.dyn.kou.ee] has quit [Quit: Leaving]
00:34 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 240 seconds]
00:38 < crazy2be> oops now the testing code deadlocks :/
00:43 < allengeorge> I'm having another problem with assignability from an
unnamed type to a named type, even when both (unnamed and named) have the same
underlying types
00:43 < allengeorge> The problem is in this piece of sample code:
http://pastebin.com/cEwfabWa
00:43 < allengeorge> It seems like this satisfies the assignability rules,
but perhaps I'm reading the rules wrong
00:43 < allengeorge> Could someone please confirm?
00:46 < nsf> allengeorge: mystruct.name has type 'string', it's a named type
00:46 < nsf> binding has type 'binding' which is also named
00:46 < nsf> and they are not the same
00:47 < nsf> => not assignable
00:47 < allengeorge> What's an unnamed type then?
00:47 < nsf> one of the composite types
00:47 < nsf> struct { }
00:47 < nsf> interface { }
00:47 < nsf> [N]Type
00:47 < nsf> *Type
00:47 < nsf> etc.
00:48 < nsf> these all are unnamed :)
00:48 < allengeorge> Ah. I see.  So the provided types (int32, etc.) are all
named types?
00:48 < nsf> yes
00:48 < nsf> this rule is made for function pointers mainly I believe
00:48 < allengeorge> In the example is mystruct a named type?
00:48 < nsf> e.g.
00:48 < nsf> type X func(int)
00:49 < crazy2be> does gotest mixup the order of the tests randomly?
00:49 < nsf> func Hello(a int)
00:49 < nsf> and this Hello is assignable to var x X
00:49 < nsf> allengeorge: yes, mystruct is a named type
00:49 < nsf> only anonymous type is unnamed
00:49 < nsf> e.g.
00:49 < nsf> var data struct { a, b, c int }
00:50 < allengeorge> Ah - I see.  Great - thanks nsf!
00:50 < nsf> this var's type is unnamed
00:50 < nsf> np
00:50 < allengeorge> Yeah
00:50 < allengeorge> It's anonymous
00:50 < allengeorge> Go will match it via structure fields and order I
assume
00:50 < nsf> yes
00:54 < crazy2be> is there any way to have an interface require that any one
of it's methods be implemented?
00:55 < crazy2be> as in at least one, but it doesn't matter which one
00:59 < Namegduf> No, that's not what an interface does or is for.
00:59 < Namegduf> Use something else, like a function in an interface{}
00:59 < Namegduf> Or a structure of functions
00:59 < crazy2be> hm
01:00 < Namegduf> Interfaces declare a required set of operations that the
given type must support, so you can write an algorithm to work with anything
supporting the required operations.
01:02 < crazy2be> well i have a bunch of different handler types:
ModifiedHandler, DeletedHandler, MovedHandler
01:02 < crazy2be> all of which are interfaces
01:03 < crazy2be> and i want a function that can take any one of those types
01:03 < crazy2be> right now it takes a Handler, which is an interface{}
01:03 < crazy2be> which works, but doesn't ensure that what the caller is
doing is useful
01:04 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
01:20 -!- tavis_rain [~tavisb@24-104-129.146.hfc.mediarain.com] has quit [Read
error: Connection reset by peer]
01:34 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
01:34 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
01:36 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Remote host closed the
connection]
01:37 < exch> one learns something new every day..  My Color struct has a
ToInt() method.  I accidentally typed Color.ToInt() instead of c.ToInt() (where c
is an instance of Color).  The compiler only complained about a lack of
parameters.  Apparently you can do Color.ToInt(c)
01:38 < exch> Does that behaviour indicate that methods are merely syntactic
sugar for regular functions bound to a type?
01:38 < crazy2be> exch: As i recal, yes
01:38 < crazy2be> that's how they are implemented, anyway
01:39 < crazy2be> now sure if you can call them explicitly like in lua
01:39 < exch> k seems logical.  I was just a bit surprised that worked
01:40 < crazy2be> man this is hard
01:40 < crazy2be> i even wrote out a rough design beforehand
01:40 < crazy2be> but didn't consider the corner cases thouroughly enough
01:41 < crazy2be> heh
01:41 < crazy2be> and this is like the third time i've tried roughly the
same thing
01:41 < crazy2be> this one is closer and better tho
01:41 < crazy2be> almost there!
01:43 -!- fabilist [~fabilist@99-99-247-143.lightspeed.lnngmi.sbcglobal.net] has
joined #go-nuts
01:46 < crazy2be> hmm, that's interesting
01:47 < crazy2be> the http library uses a map[string]Handler to store the
handlers
01:47 < crazy2be> i would have sworn it used to use a []Handler
01:47 < crazy2be> I mean, each request it goes through the whole list anyway
01:47 < crazy2be> so i don't really see the point of a map
01:48 < crazy2be> unless you are just trying to avoid duplicates
01:48 < crazy2be> seems like it would be a lot less efficient
01:53 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
02:02 -!- virtualsue [~chatzilla@nat/cisco/x-uvyertsrgwizbjyl] has joined #go-nuts
02:04 -!- virtualsue [~chatzilla@nat/cisco/x-uvyertsrgwizbjyl] has quit [Client
Quit]
02:10 -!- robteix [~robteix@host78.190-137-109.telecom.net.ar] has joined #go-nuts
02:12 -!- fabilist [~fabilist@99-99-247-143.lightspeed.lnngmi.sbcglobal.net] has
quit [Quit: Leaving]
02:15 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
02:16 -!- mkr [5b9c455c@gateway/web/freenode/ip.91.156.69.92] has joined #go-nuts
02:18 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has quit [Quit:
Leaving.]
02:27 -!- warlock_mza [~warlock@86-91-231-201.fibertel.com.ar] has joined #go-nuts
02:30 -!- mkr [5b9c455c@gateway/web/freenode/ip.91.156.69.92] has quit [Quit: Page
closed]
02:35 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has quit [Ping timeout:
264 seconds]
02:40 -!- kr [~Keith@204.14.152.118] has quit [Ping timeout: 240 seconds]
02:41 -!- kr [~Keith@22.sub-75-208-207.myvzw.com] has joined #go-nuts
02:55 -!- justinlilly [justinlill@70.32.34.100] has quit [Ping timeout: 255
seconds]
02:57 -!- littlebobby [~bob@unaffiliated/littlebobby] has joined #go-nuts
02:57 < crazy2be> hrmph
02:57 < crazy2be> assignment count mismatch: 2 = 0
02:57 -!- littlebobby [~bob@unaffiliated/littlebobby] has left #go-nuts []
02:58 -!- robteix [~robteix@host78.190-137-109.telecom.net.ar] has quit [Quit:
Computer has gone to sleep.]
02:59 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
03:02 -!- kr [~Keith@22.sub-75-208-207.myvzw.com] has quit [Ping timeout: 240
seconds]
03:03 -!- warlock_mza [~warlock@86-91-231-201.fibertel.com.ar] has quit [Remote
host closed the connection]
03:07 < crazy2be> woot finally passes tests
03:08 < crazy2be> very simple tests
03:08 < crazy2be> but it passes them :P
03:09 -!- adu [~ajr@pool-173-66-6-81.washdc.fios.verizon.net] has joined #go-nuts
03:10 < adu> hi
03:12 < crazy2be> adu: hello
03:12 -!- dfr|mac [~dfr|work@nat/google/x-gbbxxaynsjflddcv] has joined #go-nuts
03:12 < adu> crazy2be: how are you?
03:13 < crazy2be> good, I just got a library to pass tests :P
03:13 < adu> YEY
03:13 < crazy2be> after struggling with it for several hours
03:13 < adu> I'm working on tests too
03:13 < adu> both for fun and for work
03:15 < crazy2be> heh
03:15 < crazy2be> i'm making mine more extensive, so it's likely i'll break
it yet
03:15 < crazy2be> better now then when I try to use it tho
03:15 < adu> when I was writing an arbitrary precision library
03:16 < adu> I found some interesting things when I started doing unit tests
:P
03:16 < adu> like multiplying by zero gave 199876874
03:18 < crazy2be> that's correct as per iso-235-212-1923: use of '0' in
multiplication
03:18 < crazy2be> :P
03:18 < adu> lol
03:19 < adu> no, it was my bad
03:19 < crazy2be> hmm my watchers only ever seem to give me one event
03:20 < crazy2be> which is wierd
03:20 < adu> you should make a watcher-watcher
03:23 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has quit [Remote host
closed the connection]
03:24 < crazy2be> adu: Then what happens if my watcher watcher doesn't work?
03:24 < crazy2be> :P
03:26 < crazy2be> hrmph
03:28 < crazy2be> I blame inotify
03:29 < crazy2be> is there a way i can cause go to panic foribly, printing a
stack trace?
03:31 < adu> yes
03:31 < adu> panic(...)
03:31 < crazy2be> i mean externally
03:32 < crazy2be> i want to see where it's hanging
03:32 < adu> <cntl>-C?
03:32 < crazy2be> nope, just exits cleanly
03:32 < adu> gdb?
03:32 < adu> o wait, gdb doesn't work with go
03:32 < crazy2be> lol
03:32 < crazy2be> does it?
03:33 < adu> no it doesn't I forgot
03:33 < adu> cuz the people who made it were nazis about dynamic stacks
03:33 < crazy2be> gdb?
03:33 < adu> no go
03:33 < crazy2be> lol
03:34 < adu> iirc, gdb assumes a static stack
03:34 < crazy2be> doesn't go have dynamic stacks?
03:34 < crazy2be> segmented stacks
03:34 < adu> yes, it always has dynamic stacks
03:34 < adu> another issue (iirc), is non-ascii code symbols
03:36 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Read error: Connection reset by peer]
03:37 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
03:38 < adu> namely, the character '\u00B7'
03:39 < crazy2be> added this in init()
03:39 < crazy2be> go func() {
03:39 < crazy2be> time.Sleep(10*1000*1000*1000)
03:39 < crazy2be> panic("debug")
03:39 < crazy2be> }()
03:39 < crazy2be> :P
03:41 -!- Count_Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has joined #go-nuts
03:41 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
#go-nuts
03:43 -!- qeed [~qeed@adsl-98-85-59-139.mco.bellsouth.net] has quit [Quit:
Leaving]
03:43 < crazy2be> I don't see it getting stuck anywhere in the stack trace
tho
03:45 -!- Niedar [~bleh@ip68-99-166-222.hr.hr.cox.net] has quit [Ping timeout: 244
seconds]
03:46 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has joined #go-nuts
03:49 < crazy2be> AH AH AH AH AH AH
03:49 < crazy2be> 1d10t error
03:49 < crazy2be> forgot to put the select {} inside of a for {}
03:50 < crazy2be> durp
03:51 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has quit [Ping timeout:
252 seconds]
03:52 -!- bytbox [~s@96.26.105.154] has joined #go-nuts
03:53 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has joined #go-nuts
03:54 -!- dfr|mac [~dfr|work@nat/google/x-gbbxxaynsjflddcv] has quit [Ping
timeout: 250 seconds]
03:56 -!- dfr|mac [~dfr|work@nat/google/x-kotslucailtsmweu] has joined #go-nuts
03:56 -!- scyth [~scyth@220.156.185.146] has joined #go-nuts
03:57 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has quit [Ping timeout:
240 seconds]
03:57 < nteon> crazy2be: kill -BUS $GO_PROCESS_PID
03:58 < nteon> will cause a panic
03:58 < nteon> for future reference
03:59 < nteon> * will cause a panic, print goroutine info, and exit
04:02 < crazy2be> nteon: Hmm, how does that work?
04:02 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 260 seconds]
04:02 < crazy2be> i tried sending SIGSEGV to the process
04:02 < crazy2be> :P
04:02 < crazy2be> didn't work
04:04 < nteon> crazy2be: -BUS is a sigbus, memory error.  its fatal, but go
prints out debugging info before it quits
04:08 -!- rejb [~rejb@unaffiliated/rejb] has quit [Disconnected by services]
04:09 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
04:09 < nteon> crazy2be: strange, sending SIGSEGV works for me
04:13 -!- niemeyer [~niemeyer@187.53.255.234] has quit [Ping timeout: 240 seconds]
04:13 -!- dfr|mac [~dfr|work@nat/google/x-kotslucailtsmweu] has quit [Ping
timeout: 240 seconds]
04:18 < crazy2be> nteon: 0xb?
04:19 < crazy2be> huh
04:19 < crazy2be> 0xb doesn't work, but 11 does
04:20 < crazy2be> which wouldn't be supprising, except that there's no error
if i use 0xb
04:23 -!- foocraft [~ewanas@78.101.160.76] has quit [Quit: So long, and thanks for
all the fish!]
04:25 < nsf> 0xb is 12
04:25 < nsf> oh, wait
04:25 < nsf> I'm wrong
04:25 < nsf> :D
04:26 < nsf> interesting
04:26 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
04:26 < nsf> the best way to kill go and to force the stack trace
04:27 < nsf> is SIGABRT
04:27 < nsf> that's what all language use to do that kind of thing (e.g.
drop out to debugger, C's assert calls abort which does that)
04:27 < nsf> languages*
04:30 < crazy2be> oooh, it prints the register values too!
04:30 < crazy2be> pretty!
04:30 -!- scyth [~scyth@220.156.185.146] has quit [Remote host closed the
connection]
04:37 < nteon> nsf: I'll remember that, thanks
04:37 -!- dfc [~dfc@124-168-0-164.dyn.iinet.net.au] has joined #go-nuts
04:38 -!- dfc [~dfc@124-168-0-164.dyn.iinet.net.au] has quit [Client Quit]
04:45 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has joined #go-nuts
05:00 -!- adu [~ajr@pool-173-66-6-81.washdc.fios.verizon.net] has quit [Quit: adu]
05:16 -!- adlan [~adlan@175.144.112.157] has joined #go-nuts
05:24 < str1ngs> crazy2be: are you using select?
05:24 < crazy2be> str1ngs: for what?
05:25 < str1ngs> inotify
05:25 < crazy2be> yeah in a for loop
05:25 < crazy2be> kinda working now: https://github.com/crazy2be/fsmon
05:26 < crazy2be> the inotify code is kinda ugly
05:26 < crazy2be> but less ugly than my first try
05:27 < crazy2be> but it only does one watcher per directory
05:27 < crazy2be> which is the most efficient way to do inotify
05:27 < str1ngs> abstracting.  ambitious :P
05:27 < crazy2be> since there's a limit on the number of fds
05:28 < str1ngs> just adding dirs is enough
05:28 < str1ngs> so I find
05:28 < crazy2be> so if you watch foo/bar/foobar.txt and
foo/bar/foooobar.txt, it's actually only watching one file
05:28 < crazy2be> as far as inotify is concerned, that is
05:28 < str1ngs> right but if you watch foo/bar it watch all the files in
that dir.  so less fd
05:28 < crazy2be> it'll still keep track of and call the two different
callbacks
05:28 < crazy2be> yeah
05:29 < crazy2be> and the interface would make it fairly easy to add the os
and windows equivelents
05:29 < str1ngs> also onething that might help you.  I noticed when you
path.Split its better to path.Clean after
05:29 < crazy2be> also I personally like the callbacks a lot more than the
channels
05:30 < crazy2be> but that might be because of how i use it
05:30 < crazy2be> str1ngs: Is that so?
05:30 < crazy2be> i would assume that path.Split() would path.Clean()
05:30 < str1ngs> channels are good for event driven nut sure about the mac
stuff
05:30 < crazy2be> but perhaps not
05:30 < str1ngs> no it doesnt
05:30 < str1ngs> I think it should but meh
05:33 < crazy2be> there fixed
05:34 < crazy2be> now for sleep
05:36 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has quit [Remote
host closed the connection]
05:47 -!- tsung [~jon@112.104.53.151] has quit [Remote host closed the connection]
05:49 -!- tsung [~jon@112.104.53.151] has joined #go-nuts
05:56 -!- moraes [~moraes@189.103.188.201] has quit [Read error: Connection reset
by peer]
05:59 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:c9b3:bd66:9d87:3064] has joined
#go-nuts
06:05 -!- allengeorge [~allengeor@c-24-7-17-50.hsd1.ca.comcast.net] has quit [Ping
timeout: 252 seconds]
06:07 -!- darkhelmetlive [u1769@gateway/web/irccloud.com/x-mhnhjcarhnpfrvii] has
joined #go-nuts
06:12 -!- dfc [~dfc@124-168-0-164.dyn.iinet.net.au] has joined #go-nuts
06:12 -!- dfc [~dfc@124-168-0-164.dyn.iinet.net.au] has quit [Client Quit]
06:19 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
06:57 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
06:58 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
06:58 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-121-123.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
06:58 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
07:10 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Remote
host closed the connection]
07:11 -!- iant [~iant@ip-62-105-190-89.dsl.twang.net] has quit [Ping timeout: 260
seconds]
07:12 -!- message144 [~message14@cpe-75-83-155-145.socal.res.rr.com] has quit
[Quit: gone]
07:16 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:26 < darkhelmetlive> How can I pass a char ** to a C function using cgo?
07:27 < darkhelmetlive> I have a string converting to a char * and passing
fine, but I'm not sure what to build and send for a char **
07:29 < str1ngs> darkhelmetlive: its not easy to do
07:30 < str1ngs> darkhelmetlive: if you have a helper funcion in C to do it
would be easier
07:30 < darkhelmetlive> yeah that's what I was thinking.
07:31 < str1ngs> I had a the same problem.  but turns out the lib I was
using had a helper function for it.
07:31 < str1ngs> but I did not figure out how to do it manuallly
07:32 < str1ngs> darkhelmetlive: something like this
https://gist.github.com/c00d2728310951f5d961
07:32 < darkhelmetlive> would returning it be easier?  basically the
function takes a string, and gives back two strings.
07:33 < str1ngs> would be better though if I didnt have to do that.  let me
know if you figure it ou
07:33 < str1ngs> out*
07:34 < str1ngs> darkhelmetlive: if you can make a function that does that
in C sure
07:34 < str1ngs> my C is weak at best.  maybe you can figure it out
07:35 < darkhelmetlive> :) i'll hack away at it
07:35 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
07:43 -!- iant [~iant@74.125.57.58] has joined #go-nuts
07:43 -!- mode/#go-nuts [+v iant] by ChanServ
07:45 -!- iant1 [~iant@74.125.57.49] has joined #go-nuts
07:46 -!- iant1 [~iant@74.125.57.49] has quit [Client Quit]
07:48 -!- iant [~iant@74.125.57.58] has quit [Ping timeout: 255 seconds]
07:48 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has joined
#go-nuts
07:52 < darkhelmetlive> lol i love C
07:53 < darkhelmetlive> since I only needed two values, a little wrapper
method that passes in and then returns a struct with two char *.  since it's a
struct, with only the two things, i can cast it to a char ** and it works just
fine
07:54 < str1ngs> hmm really that easy.  do you mind pasteing that code?
07:55 < darkhelmetlive> yeah just a sec
07:55 < str1ngs> kk thanks
07:56 -!- adlan [~adlan@175.144.112.157] has quit [Quit: Leaving]
07:56 -!- iant [~iant@nat/google/x-zechfrrijyqojbdr] has joined #go-nuts
07:56 -!- mode/#go-nuts [+v iant] by ChanServ
07:56 -!- nteon [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has quit [Quit:
leaving]
07:57 -!- alkavan [~alkavan@IGLD-84-228-189-104.inter.net.il] has joined #go-nuts
07:57 -!- krolaw [~krolaw@203.100.208.229] has quit [Quit: krolaw]
07:58 < darkhelmetlive> https://gist.github.com/1032910
07:59 < str1ngs> ah nice thanks.  you ended up helping me more then I helped
you :P
08:01 < darkhelmetlive> i love software!
08:01 < darkhelmetlive> :D
08:02 -!- iant [~iant@nat/google/x-zechfrrijyqojbdr] has quit [Quit: Leaving.]
08:10 < aiju> what are these macros
08:10 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
08:11 < aiju> #define META_FREE(x) free((x))
08:11 < aiju> do you happen to be a GTK programmer?
08:11 < nsf> lol, what, I gotta see this
08:12 < nsf> hehe
08:12 < nsf> in the cast from void* to any pointer type is implicit btw
08:12 < nsf> in C*
08:13 < nsf> but META_MALLOC sounds cool
08:13 < nsf> lol
08:14 < str1ngs> must we troll everyone that is helpful?
08:15 < aiju> yes
08:15 < nsf> it's not helpful, but it's fun
08:15 < str1ngs> seriously I asked this question 2 days ago.  nobody helped
with it.  and now there is a solution we tear it apart?
08:15 < nsf> :D
08:15 < aiju> are you suggesting the "if it works, it is good" approach to
programming?
08:15 < aiju> can't you go program FORTRAN or COBOL instead?
08:15 < nsf> aiju: it's fine!
08:16 < str1ngs> I rather have a solution then no solution at all
08:16 < nsf> unless you don't have to look at the source code
08:16 < nsf> for example: minecraft
08:16 < nsf> it works - good
08:16 < aiju> it is buggy as hell - bad
08:16 < nsf> but I wouldn't maintain it :D
08:16 < str1ngs> but its not like you are suggesting another way either
08:16 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-166-143.clienti.tiscali.it] has
joined #go-nuts
08:17 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts
08:19 < nsf> hm
08:19 < nsf> I think this code is buggy
08:19 < nsf> ah well, no
08:20 < nsf> but it's weird
08:20 < nsf> it does one unnecessary alloc
08:20 < nsf> which is struct dm_result
08:21 < nsf> you can just return this struct directly
08:21 < nsf> avoiding one malloc
08:21 < nsf> not a pointer to struct dm_result
08:22 < nsf> yuck
08:22 < nsf> https://github.com/nsf/krawl/blob/master/TODO
08:22 < nsf> does anyone want to help me?  :)
08:22 < nsf> with my huge TODO list
08:24 < nsf> https://github.com/tav/go/compare/64a4b67e32...a13cc994d3
08:24 < nsf> hehe
08:25 < nsf> what was wrong with int
08:26 < nsf> type purity doesn't work in Go's type system
08:29 < hallas> what do you mean by type purity?  if I may
08:29 < nsf> well, type purist would always use uint for something that
represents "size"
08:29 < nsf> or uintptr
08:30 < hallas> oh ok i get it
08:30 < nsf> but once you're starting to do this
08:30 < nsf> Go's type system makes a lot of problems
08:30 < nsf> you can't write for i := 0; i < size; i++ {
08:30 < nsf> anymore
08:30 < nsf> because size is uint and i is int
08:30 < nsf> etc.
08:38 -!- Fish [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
08:45 < zippoxer> why strings.Split accepts int instead of uint in the 3rd
argument?
08:46 < nsf> because it can be -1
08:46 < nsf> which means "any number of splits"
08:46 < zippoxer> -1 eans no limit?
08:46 < zippoxer> ok
08:49 -!- s [~s@96.26.105.154] has joined #go-nuts
08:51 -!- bytbox [~s@96.26.105.154] has quit [Ping timeout: 276 seconds]
08:53 < darkhelmetlive> nsf: the META stuff was related to some ifdefs where
the impl was different (normal, vs some perl specific stuff)
08:54 < nsf> I like the name :)
08:55 < darkhelmetlive> the meta names, or my 'darkhelmetlive'?
08:55 < nsf> META_MALLOC
08:55 < nsf> :)
08:56 < darkhelmetlive> yeah luckily that stuff was the only weird part of
the file.  i just removed the ifdefs and left the relevant mem stuff
08:56 < nsf> and you still have one unnecessary malloc
08:58 < darkhelmetlive> since i'm returning that back to go land, don't i
have to malloc it (so it's on the heap instead of the stack)?
08:58 < nsf> you don't have to malloc the struct itself
08:58 < nsf> it contains two points, just return it and that's it
08:59 < nsf> pointers*
08:59 < darkhelmetlive> return the struct, and not a pointer to it
08:59 < nsf> yes
08:59 < nsf> or better don't change anything if it works
09:00 < nsf> in 90% cases this malloc doesn't matter
09:00 < nsf> I just like to troll and complain about irrelevant stuff
09:00 < darkhelmetlive> i have to free the strings after the fact anyway...
09:00 < darkhelmetlive> lol :)
09:00 < darkhelmetlive> it did bug me though...
09:01 < str1ngs> aha the truth comes out nsf :P
09:01 < nsf> darkhelmetlive: of course, free the strings, but struct is an
unnecessary malloc
09:01 -!- zhaozhou [~zhaozhou@linfast76.bitnet.nu] has joined #go-nuts
09:02 < darkhelmetlive> i probably won't worry about it.  it works, and i
highly doubt that will be a perf/memory problem
09:02 < darkhelmetlive> but it's a good point nonetheless
09:02 < nsf> yes, it won't be
09:03 < darkhelmetlive> well it's 3am, so I think it's time for sleep.  good
night ladies and gents
09:04 < zippoxer> no overload funcs in Go?
09:04 < nsf> sweet dreams
09:04 < nsf> zippoxer: Go has interfaces
09:04 < nsf> ah well
09:04 < nsf> overloading you mean as in C++
09:04 < nsf> no
09:04 -!- darkhelmetlive [u1769@gateway/web/irccloud.com/x-mhnhjcarhnpfrvii] has
left #go-nuts []
09:04 < nsf> no such thing
09:04 < zippoxer> yeah I just saw about intefaces, it can replace :)
09:05 < zippoxer> (replace overloading)
09:05 < nsf> well, in C++ few types of overloading
09:05 < nsf> one is by type signature:
09:05 < nsf> void foo(int a, int b);
09:05 < nsf> void foo(void *p);
09:05 -!- iant [~iant@74.125.57.49] has joined #go-nuts
09:05 -!- mode/#go-nuts [+v iant] by ChanServ
09:05 < nsf> and the other which is about virtual functions and inheritance
09:05 -!- krolaw [~krolaw@203.100.208.229] has quit [Quit: krolaw]
09:06 < zippoxer> wow, didn't got that far in C++ :P
09:06 < nsf> interfaces works for virtual functions and inheritance (sort
of)
09:06 < nsf> work*
09:06 < nsf> far?
09:06 < nsf> it's C++ basics
09:06 < nsf> but whatever
09:06 < nsf> :)
09:06 < zippoxer> virtual functions :P
09:06 < nsf> try interfaces
09:08 -!- iant [~iant@74.125.57.49] has quit [Read error: Connection reset by
peer]
09:08 -!- iant1 [~iant@nat/google/x-jdxkxrrhaezkzxgu] has joined #go-nuts
09:08 < zippoxer> ok got it :P thanks
09:09 < nsf> haha, another topic for trolling: digital mars D compiler move
recently (in January) to github
09:09 < nsf> it has less followers than gocode :)
09:10 < nsf> D's dead, baby, D's dead
09:11 < zippoxer> hail Go.
09:11 < zippoxer> lol I see ur the owner of gocode :P
09:11 < nsf> I'm the author, yes
09:12 < nsf> strangely enough, I don't write Go anymore :D
09:12 < zippoxer> I hope I'll get a shot, installing ubuntu now...
09:12 < zippoxer> so u write D? :O
09:12 < nsf> no
09:12 < nsf> C++
09:12 < nsf> >_<
09:12 < zippoxer> because ur forced to or u want?  :P
09:13 < nsf> uhm
09:13 < nsf> by accident I guess
09:13 < nsf> :D
09:13 < zippoxer> lol..
09:13 < nsf> no, it just has some libraries that I use
09:14 < zippoxer> what about cgo?  ^^
09:14 < nsf> maintaining bindings is hard
09:14 < zippoxer> you may be right...  never tried it
09:14 < nsf> and a C++ library works better in C++
09:14 < nsf> for obvious reasons :)
09:14 < zippoxer> lol :P
09:18 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts
09:19 -!- huin [~huin@91.85.188.1] has joined #go-nuts
09:22 -!- gasprog [~chatzilla@fm-ip-118.136.169.247.fast.net.id] has joined
#go-nuts
09:26 -!- gasprog [~chatzilla@fm-ip-118.136.169.247.fast.net.id] has left #go-nuts
[]
09:31 -!- iant1 [~iant@nat/google/x-jdxkxrrhaezkzxgu] has quit [Quit: Leaving.]
09:45 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving]
09:46 -!- tsung [~jon@112.104.53.151] has quit [Read error: Connection reset by
peer]
09:47 -!- tsung [~jon@112.104.53.151] has joined #go-nuts
09:50 < zippoxer> damn ubuntu runs slow on my virtualbox...
09:51 < zippoxer> any alternative os to use as go development environment?
09:51 < nsf> any linux would work
09:51 < nsf> if you know linux well you may want to try archlinux
09:52 < nsf> or well
09:52 < zippoxer> u mean it has no gui?
09:52 < nsf> any linux distro that has no gui
09:52 < nsf> yes
09:52 < nsf> archlinux by default has no gui
09:52 < zippoxer> mm okay, I'll have to give it a shot
09:52 < zippoxer> thanks.
09:53 < cenuij> !seen niemeyer
09:53 < GoBIR> cenuij: niemeyer was last seen quitting IRC at 00:18:28 EDT
on Saturday, June 18, 2011
09:54 < aiju> we have a bot?
09:54 < cenuij> no idea it's functionality thought, I've yet to try and
abuse it ;)
09:55 < aiju> no markov chain no fun
09:55 < aiju> !list
09:56 < cenuij> heh
09:56 < nsf> we should call the bot "pedobear"
09:56 < nsf> just for fun
09:56 < aiju> nsf: no, that reminds me of loliscripts
09:56 < nsf> :D
09:56 < aiju> which are the worst thing to happen to IRC, ever
09:58 -!- ami2 [bc1a93ca@gateway/web/freenode/ip.188.26.147.202] has joined
#go-nuts
10:03 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has joined
#go-nuts
10:04 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has joined #go-nuts
10:16 -!- ami2 [bc1a93ca@gateway/web/freenode/ip.188.26.147.202] has quit [Ping
timeout: 252 seconds]
10:20 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
connection]
10:24 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-166-143.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
10:51 < nsf>
http://programmer.97things.oreilly.com/wiki/index.php/Contributions_Appearing_in_the_Book
10:51 < nsf> many useful stuff here
11:02 -!- rcrowley [~rcrowley@c-71-202-44-233.hsd1.ca.comcast.net] has quit [Quit:
Computer has gone to sleep.]
11:04 -!- hallas [~hallas@x1-6-30-46-9a-b2-c5-1f.k891.webspeed.dk] has left
#go-nuts []
11:06 -!- tvw [~tv@e176000123.adsl.alicedsl.de] has joined #go-nuts
11:10 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
11:11 -!- foocraft [~ewanas@78.100.177.46] has joined #go-nuts
11:15 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
11:18 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
11:20 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
11:21 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Client
Quit]
11:33 -!- Guest41827 [~s@96.26.105.154] has quit [Remote host closed the
connection]
12:03 -!- moraes [~moraes@189.103.188.201] has quit [Ping timeout: 260 seconds]
12:15 -!- robteix [~robteix@host78.190-137-109.telecom.net.ar] has joined #go-nuts
12:15 < nsf> 6g version release.r57.2 8306
12:16 < nsf> guys, does anyone know how people get stuff like that?
12:16 < nsf> release tag is here, but the revision number is far from
release
12:16 < nsf> I have previous weekly version
12:16 < nsf> and it says
12:16 < nsf> 8g version weekly.2011-06-09 8703
12:16 < nsf> people manage to miscompile Go compiler somehow
12:16 < nsf> they're convinced they have the latest version
12:17 < nsf> but it's not
12:17 < nsf> I think it's related to the way Go devs use mercurial
12:17 < nsf> they do some magic with tags
12:17 < nsf> which doesn't look right
12:18 < nsf> for the sake of experiment
12:18 < nsf> I did 'hg pull' and building now without update
12:18 < nsf> I think the end result will be release.r57.2 tag in the -V
output
12:19 < nsf> hm..
12:19 < nsf> nope
12:19 < nsf> but then the question is open
12:19 < nsf> how people manage to do that )
12:20 < nsf> 8773 revision is the release r57.2
12:20 < nsf> the guy has 8306
12:21 < nsf> and yet it says release.r57.2
12:21 < nsf> it annoys me
12:21 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
12:22 < nsf> hm..  let's find the version string generator
12:22 < str1ngs> ya that does seem odd.  could be a bug
12:22 < nsf> half of the bug reports on gocode are like that
12:22 < nsf> :\
12:24 < str1ngs> I blame gocode :P
12:24 < str1ngs> j/k ya I would think that they are not building right.  but
does not explain the mismatch
12:24 < nsf> -DGOVERSION='"'"$$(../version.bash)"'"'
12:24 < nsf> ok, found the gen
12:24 < nsf> let's see how it works
12:25 < nsf> [nsf @ src]$ ./version.bash
12:25 < nsf> weekly.2011-06-09 8703
12:25 < nsf> works fine
12:25 < nsf> hm..
12:26 < nsf> how do people get these release.r57.2
12:26 < nsf> interesting
12:26 < nsf> challenging
12:26 < nsf> lol
12:26 < aiju> i'm using my psychic powers to push back gocode
12:28 < str1ngs> nsf: does that work with tav's gitrepo?
12:28 < str1ngs> I guess not
12:28 < nsf> hm..
12:28 < nsf> true
12:28 < nsf> that might be an issue
12:28 < nsf> good guess!
12:28 < aiju> taV?
12:28 < str1ngs> I have mirror as well but mainly for backup if tav's goes
down
12:28 < nsf> aiju: https://github.com/tav/go
12:29 < nsf> it's just a github mirror
12:29 < aiju> why would people do that
12:29 < nsf> str1ngs: wait
12:29 < nsf> but it's weird
12:29 < nsf> if ! hg version > /dev/null 2>&1; then
12:29 < nsf> echo 'hg not installed' 1>&2
12:29 < nsf> exit 2
12:29 < nsf> fi
12:29 < nsf> bash script will die
12:29 < nsf> if there is no hg
12:29 < nsf> ah, right
12:29 < nsf> hm..
12:30 < str1ngs> aiju: because hg kinda sucks for some people?
12:30 < nsf> how does it work at all
12:30 < jlaffaye> so does bash :p
12:30 < nsf> it should define nothing
12:30 < aiju> what the fuck
12:30 < aiju> you just motherfucking clone the repository
12:30 < aiju> no need to get pissed over hg
12:30 < str1ngs> aiju: wow you think people just clone repos do not actually
interact with them
12:31 < str1ngs> ie I might actually have a branch?
12:31 < aiju> i'd be surprised if so many people did that
12:31 -!- iant [~iant@nat/google/x-njxtvrktswqdvemw] has joined #go-nuts
12:31 -!- mode/#go-nuts [+v iant] by ChanServ
12:31 < str1ngs> or hey I might want to git whatchanged.  or rebase?
12:31 < str1ngs> not that I have an issue with hg.  but I'm use to git.  so
why not use git
12:31 < str1ngs> doesnt hurt anyone
12:32 < aiju> yes it does
12:32 < aiju> look at that version stuff ;P
12:32 < str1ngs> still dont see how that hurt things
12:32 < nsf> I was using git mirror
12:33 < nsf> but then moved back to hg
12:33 < aiju> also, where is my cvs mirror
12:33 -!- foocraft [~ewanas@78.100.177.46] has quit [Ping timeout: 250 seconds]
12:33 < nsf> I know no hg
12:33 < nsf> but I know two commands
12:33 < nsf> hg pull
12:33 < nsf> hg update -r <something>
12:33 < nsf> and that works for me :)
12:33 < str1ngs> gah same trolls all the time
12:34 < nsf> str1ngs: but I agree that hg sucks
12:34 < nsf> it does
12:34 < nsf> really
12:35 < str1ngs> I dont think it sucks.  just suck when I need to do
something more advanced
12:35 < str1ngs> which I'm sure hg can do , just frankly do not want to
learn it
12:36 < nsf> all these extensions
12:36 < nsf> yuck
12:36 < nsf> it doesn't even run 'less' on hg log by default
12:36 < str1ngs> anyways my point is.  having a git mirror is better then
not having one
12:36 < str1ngs> look at the ratio of go projects in git vs hg
12:37 < nsf> unless it's a source of bugs :)
12:37 < nsf> /home/nsf/go/src/cmd/gc/go.h:1148:6: note: expected 'char *'
but argument is of type 'const char *'
12:37 < nsf> cc1: all warnings being treated as errors
12:37 < nsf> release.r57.2
12:37 < nsf> :\
12:37 < str1ngs> gcc 4.6
12:37 < str1ngs> fixed in a later release
12:37 < nsf> yep
12:37 < nsf> I see
12:38 < str1ngs> actually sorry bison issue
12:38 < str1ngs> 2.5
12:38 < nsf> wait, it was the last release :)
12:38 < str1ngs> double check
12:38 < str1ngs> because that was fixed
12:39 -!- gasprog [~chatzilla@fm-ip-118.136.169.247.fast.net.id] has joined
#go-nuts
12:39 < nsf> whatever, I'll just try the latest weekly
12:39 < nsf> I just want to test gocode for you guys :D
12:40 -!- iant [~iant@nat/google/x-njxtvrktswqdvemw] has quit [Quit: Leaving.]
12:40 < nsf> oh, nice
12:40 < nsf> weekly works
12:40 < str1ngs> release.r57.2 should work
12:40 < str1ngs> release.r57.1 iirc does not have the fix
12:41 -!- robteix [~robteix@host78.190-137-109.telecom.net.ar] has quit [Quit:
Computer has gone to sleep.]
12:41 < nsf> well
12:41 < nsf> maybe I don't know how to use hg
12:41 < nsf> the latest weekly works though
12:41 < nsf> all I care about
12:42 < nsf> it means most likely there were no breaking changes in between
12:43 -!- NiteRain [~kvirc@c-98-254-236-21.hsd1.fl.comcast.net] has quit [Read
error: Operation timed out]
12:43 < nsf> https://github.com/nsf/gocode/issues/39
12:43 < nsf> the guy is awesome
12:43 < nsf> I changed signals because they were moved to "os"
12:43 < nsf> he changed them back
12:43 < nsf> :D
12:44 < nsf> good job, what can I say
12:44 < nsf> everyone's happy
12:45 < str1ngs> ouch he patch your patch?
12:45 < nsf> patched back
12:45 < nsf> yeah
12:45 < str1ngs> doh
12:48 < nsf>
http://programmer.97things.oreilly.com/wiki/index.php/The_Professional_Programmer
12:48 < nsf> I like this thing
12:48 < nsf> amongst 97 other things every programmer should know :)
12:49 < nsf> Professionals do not tolerate big bug lists.  A huge bug list
is sloppy.  Systems with thousands of issues in the issue tracking database are
tragedies of carelessness.  Indeed, in most projects the very need for an issue
tracking system is a symptom of carelessness.  Only the very biggest systems
should have bug lists so long that automation is required to manage them.
12:49 < nsf> :P
12:49 < nsf> say that to D compiler
12:49 < str1ngs> hehe
12:50 < nsf> my compiler is full of bugs too, though
12:51 < nsf> but I can't say I tested it well
12:51 < nsf> it's hard to test a non-existing language compiler for bugs
12:51 < nsf> :D
12:53 < jessta> if you release early and release often you'll get a big bug
list
12:53 < nsf> I don't think it is related
12:53 < nsf> but I agree
12:53 < nsf> there is some kind of thing
12:54 < aiju> "I don't think so but I agree"
12:54 < nsf> when you release an unfinished project, which has unfinished
design
12:54 -!- moraes [~moraes@189.103.188.201] has joined #go-nuts
12:54 < nsf> no, I mean that if you release a project, early or later, and
it is positioned like a product
12:54 < nsf> it should work
12:55 < aiju> nsf: i don't really agree with this list
12:55 < nsf> but if you release a project like an experimental one
12:55 < aiju> i'm in favour of releasing early
12:55 < nsf> of course it will contain bugs and flaws
12:55 < aiju> even if it's broken as HELL
12:55 < aiju> someone else might help
12:55 < nsf> no, I don't like that
12:56 < nsf> I'm not starting to massively PR krawl
12:56 < nsf> because I have a small test suite
12:56 < aiju> They follow agreed upon standards and best practices.
12:56 < nsf> aiju: you see there is other side of people "helping" you
12:56 < nsf> they can break things
12:56 < aiju> ^-- massively disagree
12:56 < nsf> also it's much easier to say to someone "hey, tests are
failing"
12:57 < nsf> than trying to explain what he did wrong
12:57 < aiju> "standards" and "best practices" are the path to GNU hell
12:57 < nsf> but whatever, I have no experience in project management
12:57 < nsf> I just do what I do
12:58 < nsf> :D
12:58 < nsf> one way or another
12:58 < aiju> but then i don't care about being professional
12:58 < aiju> i do programming, motherfucker
12:58 < nsf> fuck yea
12:58 < nsf> :)
12:59 < nsf> yes, I'm largely an amateur
12:59 < aiju> professional code brought us windows
12:59 < aiju> amateur code brought us linux
12:59 < aiju> neither one seems like a good prospect to me ;P
13:00 < nsf> just choose the lesser evil
13:00 < str1ngs> so mac is what professional amateurs?  :P
13:00 < aiju> i just mean to see i don't see much value in that distinction
13:00 -!- foocraft [~ewanas@78.101.150.57] has joined #go-nuts
13:00 < aiju> str1ngs: hahahahahahaha
13:00 < aiju> str1ngs: yes
13:00 < str1ngs> j/k
13:08 < zippoxer> addition to aiju's sentence of life: fun code brought us
go.
13:08 < aiju> haha
13:08 < zippoxer> :P
13:19 -!- dfr|mac [~dfr|work@12-50-208-66.att-inc.com] has joined #go-nuts
13:36 < moraes> release stuff
13:36 < moraes> i vote for "release stuff"
13:36 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has quit [Remote
host closed the connection]
13:47 -!- mikespook [~mikespook@116.23.254.253] has joined #go-nuts
13:54 -!- dfr|mac [~dfr|work@12-50-208-66.att-inc.com] has quit [Remote host
closed the connection]
13:55 < vegai> 15:41 <nsf> it doesn't even run 'less' on hg log by
default
13:55 < vegai> was that a joke?
13:56 < nsf> no
13:56 < nsf> [pager]
13:56 < nsf> pager = less
13:56 < nsf> quiet = True
13:56 < nsf> attend = log, help, status, diff
13:56 < nsf> I had to add that in .hgrc
13:56 < nsf> :\
14:00 * vegai shrugs
14:00 < vegai> seems like a reasonable default, but then again...
14:01 < vegai> git would be much more bad, imho
14:01 -!- krolaw [~krolaw@203.100.208.229] has quit [Quit: krolaw]
14:01 < vegai> but git vs hg is largerly an emotional thing, I've seen
14:05 < nsf> :D
14:09 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has joined #go-nuts
14:34 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has quit [Quit:
leaving]
14:35 < Soultaker> anyone else participating in the TopCoder Open later?
14:37 -!- mikespook [~mikespook@116.23.254.253] has quit [Quit: Leaving.]
14:45 -!- iant [~iant@nat/google/x-yxhgjqwnulyvnijp] has joined #go-nuts
14:45 -!- mode/#go-nuts [+v iant] by ChanServ
14:45 -!- zippoxer [zippoxer@109.65.251.241] has quit [Ping timeout: 252 seconds]
14:46 -!- gasprog [~chatzilla@fm-ip-118.136.169.247.fast.net.id] has quit [Ping
timeout: 255 seconds]
14:46 -!- zippoxer [zippoxer@109.65.251.241] has joined #go-nuts
14:46 -!- iant [~iant@nat/google/x-yxhgjqwnulyvnijp] has quit [Client Quit]
14:47 -!- zippoxer [zippoxer@109.65.251.241] has quit [Read error: Connection
reset by peer]
14:49 -!- zippoxer [zippoxer@bzq-79-176-244-242.red.bezeqint.net] has joined
#go-nuts
14:56 -!- tvw [~tv@e176000123.adsl.alicedsl.de] has quit [Remote host closed the
connection]
15:05 -!- iant [~iant@74.125.57.57] has joined #go-nuts
15:05 -!- mode/#go-nuts [+v iant] by ChanServ
15:08 -!- adlan [~adlan@175.138.39.52] has joined #go-nuts
15:20 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
15:22 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
15:23 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has joined #go-nuts
15:24 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
15:27 -!- go_epsilon_go [~chacho@187-177-232-145.dynamic.axtel.net] has joined
#go-nuts
15:30 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has quit [Ping timeout:
240 seconds]
15:38 -!- iant [~iant@74.125.57.57] has quit [Quit: Leaving.]
15:38 -!- iant1 [~iant@nat/google/x-onjykiayhykukhtd] has joined #go-nuts
15:43 -!- GeertJohan [~Squarc@D978EC5D.cm-3-1d.dynamic.ziggo.nl] has joined
#go-nuts
15:45 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
15:47 -!- Tv [~Tv@ip68-4-237-249.oc.oc.cox.net] has joined #go-nuts
15:58 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds]
16:00 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
16:11 -!- boscop [~foo@f055068124.adsl.alicedsl.de] has quit [Ping timeout: 255
seconds]
16:27 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.5]
16:31 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
16:35 -!- danilo04 [~danilo04@66.44.225.80] has joined #go-nuts
16:42 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Quit:
skelterjohn]
16:43 -!- Queue29 [~Queue29@173-8-182-114-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
16:46 -!- sacho [~sacho@87-126-39-76.btc-net.bg] has quit [Read error: Connection
reset by peer]
16:50 -!- sacho [~sacho@87-126-39-76.btc-net.bg] has joined #go-nuts
16:57 -!- angasule [~angasule@190.2.33.49] has quit [Read error: No route to host]
16:57 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
16:58 -!- boscop [~foo@unaffiliated/boscop] has joined #go-nuts
17:00 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 260 seconds]
17:00 -!- iant1 [~iant@nat/google/x-onjykiayhykukhtd] has quit [Quit: Leaving.]
17:03 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
17:03 -!- tvw [~tv@e176000123.adsl.alicedsl.de] has joined #go-nuts
17:10 -!- oliver117 [~oliver@188-195-79-173-dynip.superkabel.de] has joined
#go-nuts
17:12 -!- m4dh4tt3r1 [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
17:13 -!- zippoxer [zippoxer@bzq-79-176-244-242.red.bezeqint.net] has left
#go-nuts []
17:13 -!- zippoxer [zippoxer@bzq-79-176-244-242.red.bezeqint.net] has joined
#go-nuts
17:13 -!- oliver117 [~oliver@188-195-79-173-dynip.superkabel.de] has left #go-nuts
[]
17:33 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has joined #go-nuts
17:36 -!- wallerdev [~wallerdev@72.44.102.30] has joined #go-nuts
17:36 -!- zippoxer [zippoxer@bzq-79-176-244-242.red.bezeqint.net] has quit []
17:43 -!- Queue29 [~Queue29@64.134.237.33] has joined #go-nuts
17:51 -!- nteon [~nteon@c-98-210-195-105.hsd1.ca.comcast.net] has joined #go-nuts
18:04 -!- Project_2501 [~Marvin@82.84.85.253] has joined #go-nuts
18:04 -!- Xenith [~xenith@xenith.org] has quit [Remote host closed the connection]
18:04 -!- TheMue [~TheMue@p5DDF743B.dip.t-dialin.net] has joined #go-nuts
18:05 -!- Xenith [~xenith@xenith.org] has joined #go-nuts
18:05 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Read error:
Connection reset by peer]
18:06 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
18:07 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has joined
#go-nuts
18:07 < tav> str1ngs / aiju: at one point tarmigan provided a patch to
version.sh which worked with the git repo, but it got rejected sadly,
http://codereview.appspot.com/4524048
18:11 -!- crazy2be [~crazy2be@d75-152-167-124.abhsia.telus.net] has joined
#go-nuts
18:11 < crazy2be> hrm
18:11 < aiju> tav: the reasoning seems reasonable
18:11 < crazy2be> calling os.Chdir() in init() causes gotest to get angry
18:12 < crazy2be> and hang
18:13 < crazy2be> but my tests involve creating and deleting files
18:13 < crazy2be> something i'd rather not do in the source directory
18:14 < tav> crazy2be: makes sense — gotest operates on files in the current
directory
18:14 < aiju> have you heard of ..  absolute paths?  ;P
18:15 < crazy2be> aiju: I'd rather not specify the name for each file as a
full path
18:15 < ww> os.TempDir()?
18:15 -!- allengeorge [~allengeor@c-67-188-178-118.hsd1.ca.comcast.net] has joined
#go-nuts
18:17 < tav> crazy2be: you could always chdir *back* to the initial working
directory afterwards too...
18:17 < crazy2be> tav: I suppose i could cd before each test then cd ..
18:17 < tav> right
18:18 < aiju> crazy2be: /tmp/?
18:19 < crazy2be> aiju: I just have a bunch of files like foo1 foo2 foo3,
and manually prefixing everywhere is going to be a bit of a pain
18:19 < crazy2be> and i was suprised that gotest just gave me no output if i
used os.Chdir()
18:19 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has joined
#go-nuts
18:20 < ww> func testfile(name string) string { retrun
path.Join(os.TempDir(), name) }
18:20 < aiju> crazy2be: maybe try regex?
18:20 < ww> "manually"
18:21 < crazy2be> ww: that was something like my approach
18:23 < aiju> ,s%Open("%&/tmp%g
18:23 < aiju> eh /tmp/
18:23 < ww> ...  check collisions, etc...  do we have mkstemp workalike?
18:25 -!- robteix [~robteix@host78.190-137-109.telecom.net.ar] has joined #go-nuts
18:27 -!- zippoxer [~zippoxer@bzq-79-176-244-242.red.bezeqint.net] has joined
#go-nuts
18:28 < zippoxer> make gocode returns 3 errors:
18:28 < zippoxer> os_posix.go:14: undefined: os.Signal
18:28 < zippoxer> os_posix.go:19: undefined: os.SIGINT
18:28 < zippoxer> os_posix.go:19: undefined: os.SIGTERM
18:29 < crazy2be> hrmph
18:30 < crazy2be> does test.v not print output until the test is finished?
18:30 < crazy2be> that's not very helpful if it's hanging...
18:33 < zippoxer> it executes command 8g (with a lot of filenames)
18:33 < zippoxer> and prints 3 errors, then exits.
18:35 < zippoxer> I didn't see the word test in the console :\
18:38 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
18:41 < zippoxer> maybe it's because the os.Signal and friends moved from os
to os.signal package?
18:44 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the
connection]
18:44 -!- tvw [~tv@e176000123.adsl.alicedsl.de] has quit [Remote host closed the
connection]
18:46 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
18:48 -!- danilo04 [~danilo04@66.44.225.80] has quit [Quit: Leaving]
18:48 -!- robteix [~robteix@host78.190-137-109.telecom.net.ar] has quit [Quit:
Leaving...]
18:49 < str1ngs> tav: hmm thats to bad
18:53 < str1ngs> zippoxer: that should be fixed.  what version of gocode and
go?
18:54 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 276 seconds]
18:54 < zippoxer> go version is newest (installed few hours ago)
18:54 < zippoxer> gocode version the newest too
18:54 < zippoxer> but I removed the signals part
18:54 -!- adlan [~adlan@175.138.39.52] has quit [Remote host closed the
connection]
18:54 < zippoxer> so if something sends gocode a termination signal
18:54 < zippoxer> it won't terminate
18:55 < zippoxer> but atleast it works!
18:55 < str1ngs> well I just built gocode without removeing singals so you
sure your go is synced?
18:55 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
18:56 < zippoxer> what synced means?
18:56 < crazy2be> zippoxer: cd ~/go/src; hg pull; hg update weekly
18:56 < crazy2be> assuming you installed to ~/go/
18:57 < zippoxer> no changes found
18:57 < zippoxer> (quote)
18:58 < str1ngs> 6g -V or 8g
18:58 < str1ngs> or 5g we/e you use :P
18:58 < zippoxer> 8g
18:58 < zippoxer> but even in the docs I can't see os.Signal
18:58 < zippoxer> that is used in os_posix.go in gocode
18:59 < str1ngs> what os?
18:59 < zippoxer> ubuntu 11.04
18:59 < str1ngs> what godoc are you useing you mean ie godoc os Signal?
19:00 < zippoxer> sorry for not being specific:
http://golang.org/src/pkg/os/
19:00 < str1ngs> meh dont use that
19:00 < zippoxer> y?
19:00 -!- virtualsue [~chatzilla@nat/cisco/x-tisdaquynrbdibpm] has joined #go-nuts
19:00 < zippoxer> doesn't update smoothly?
19:00 < str1ngs> it lags
19:00 < crazy2be> synced to stable probably
19:00 < crazy2be> er, release
19:00 < crazy2be> there is no stable go ;)
19:00 < zippoxer> ohhh...  damn.
19:00 < str1ngs> use it for refrence
19:01 < str1ngs> use godoc proper to verify
19:01 < zippoxer> godoc is a command?
19:01 < str1ngs> hello?
19:01 < str1ngs> :P
19:01 < zippoxer> :D
19:01 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has joined #go-nuts
19:01 < str1ngs> its practically all I use
19:01 < crazy2be> godoc package Function
19:02 < str1ngs> zippoxer: you can also run the server locally ie godoc
-http=:8080
19:02 < zippoxer> ohh!  much better.
19:02 < zippoxer> thanks
19:03 < str1ngs> ok but that might not fix your issue
19:04 < zippoxer> ur right ;)
19:04 < zippoxer> but it's still nice
19:04 < str1ngs> # which 8g
19:05 < zippoxer> 386?
19:05 < str1ngs> just make sure you dont have a wierd GOBIN
19:05 < str1ngs> no as in run that
19:05 < zippoxer> just a sec
19:06 < zippoxer> in my version of go there is not os.Signal
19:07 < zippoxer> which is used by the current version of gocode
19:07 < str1ngs> hg log | head -1
19:07 < zippoxer> go backward?
19:07 < str1ngs> just trying to figure out what changset you are using
19:08 < zippoxer> ohh sec
19:08 < zippoxer> "changeset: 8799:61ed63d57306"
19:09 < str1ngs> ya that seems right
19:09 < str1ngs> did not rebuild go or something?
19:09 < zippoxer> installed ubuntu & linux today (as u can see both for the
first time)
19:09 < zippoxer> OOPs
19:09 < zippoxer> ubuntu & go *
19:09 < crazy2be> :P
19:09 < zippoxer> :)
19:13 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
#go-nuts
19:14 < crazy2be> hmm how does inotify distinguish between create and modify
events?
19:15 < str1ngs> with flags
19:15 < str1ngs> do you mean how do you filter?
19:16 < crazy2be> well it seems to sometimes give me a create event
sometimes a modified event
19:16 < str1ngs> create event would be a new file dir I would think
19:17 < crazy2be> ah, might just have been a race in my code
19:17 < str1ngs> IN_CREATE File/directory created in watched directory (*).
19:17 < str1ngs> man inotify might help
19:17 < crazy2be> it happens only once in a few tests
19:17 < crazy2be> or was happening
19:17 -!- angasule [~angasule@190.2.33.49] has quit [Ping timeout: 255 seconds]
19:17 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
19:17 < crazy2be> so now i'm running gotest 100 times to see if i got rid of
it
19:18 < crazy2be> seems to be gone
19:18 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Read error:
Connection reset by peer]
19:19 < crazy2be> god i love select {}
19:19 < str1ngs> ya its creat
19:19 < str1ngs> great*
19:19 < bugQ> a race detector kit would be a cool gsoc project
19:20 < bugQ> if go were in gsoc derp
19:20 < crazy2be> yeah
19:20 < str1ngs> ya I guess go does not qualify for gsoc?
19:20 < crazy2be> i've got this one bug where a map is used to store the
addresses of remote servers
19:21 < crazy2be> and every so often, if you run it on this super slow
computer, it will incorrectly say that the remote server is not in the list
19:21 < crazy2be> I'm syncing all accesses to the map, so that's no the
issue
19:21 < skelterjohn> it's not an issue of qualifying - the team just didn't
have the resources
19:21 < crazy2be> and i have not been able to reproduce it using automated
tools
19:22 < str1ngs> skelterjohn: I thought google projects could not be using
in gsoc?
19:22 < str1ngs> used*
19:22 < skelterjohn> maybe i'm thinking of something else
19:23 < skelterjohn> actually i think it was someone who had been hired as
an intern, and was looking for a group to work wiht
19:23 < str1ngs> I heard it from someone else in channel here.  so not sure
19:24 -!- bmizerany [~bmizerany@c-69-181-106-229.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
19:25 < str1ngs> zippoxer: did that fix your problem btw?
19:29 < zippoxer> did what?
19:29 < zippoxer> any1 wrote something?
19:29 < zippoxer> (that i didn't saw)
19:29 < str1ngs> did rebuilding go fix that issue with gocode
19:29 < bugQ> the C&T for GSoC indeed forbid Google itself from
participating
19:30 < zippoxer> okay I start rebuilding that now
19:30 < str1ngs> bugQ: ya makes sense
19:33 < zippoxer> rebuilding go deletes all installed packages right?
19:35 < str1ngs> not really if you installed with goinstall you can use
goinstall -a
19:36 < str1ngs> if you installed with make then you'll probably have to
rebuild
19:37 < zippoxer> lol google thought about it :P
19:40 < skelterjohn> whenever possible, use goinstall to build 3rd party
libraries
19:41 < skelterjohn> then you can use "goinstall -a -clean" to rebuild all
of them
19:42 < str1ngs> no I use make :P
19:42 < str1ngs> just to "make" you made
19:42 < str1ngs> mad*
19:42 < zippoxer> making him mad, makes your code bad!
19:43 < str1ngs> no I do a good job of that myself :(
19:43 * str1ngs hack..  hackk
19:43 < zippoxer> was kidding..  ;)
19:43 < str1ngs> I wasnt :P
19:44 < zippoxer> so u hate john?
19:44 < zippoxer> y?
19:44 < str1ngs> did not mean that
19:50 < zippoxer> rebuilding go didn't help, but anyway gocode works fine
until now.
19:52 < str1ngs> ya strange it builds here for me
19:52 < zippoxer> rlly strange :\
19:57 < crazy2be> the inotify api for mac is bizzare
19:58 < aiju> -for mac
19:58 < crazy2be> well the inotify equivelent
19:58 < crazy2be> fsevents
19:58 < crazy2be> mergine the two into a logical interface seems darn near
impossible
20:05 < skelterjohn> make + go, unless you have weird things going on like
source code generation, is a waste of time
20:06 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 252 seconds]
20:13 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
20:13 -!- niklas` [~niklas@217-211-240-192-no29.tbcn.telia.com] has joined
#go-nuts
20:14 < niklas`> evening, i'm new to go and i'm trying to use scanner to
tokenize a bind zone file, i only want to to create a new token on whitespace, is
that possible?
20:16 -!- Queue29 [~Queue29@64.134.237.33] has quit [Remote host closed the
connection]
20:17 -!- allengeorge [~allengeor@c-67-188-178-118.hsd1.ca.comcast.net] has quit
[Quit: allengeorge]
20:19 -!- message144 [~message14@cpe-75-83-155-145.socal.res.rr.com] has joined
#go-nuts
20:25 -!- Bigbear1 [~Cody@d75-158-128-4.abhsia.telus.net] has left #go-nuts []
20:30 -!- bugQ [~bug@c-71-195-206-245.hsd1.ut.comcast.net] has quit [Ping timeout:
244 seconds]
20:32 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
20:34 -!- edsrzf [~edsrzf@122-61-221-144.jetstream.xtra.co.nz] has joined #go-nuts
20:36 -!- srid_ [~srid@S010678ca39ff0146.vn.shawcable.net] has joined #go-nuts
20:36 -!- srid_ [~srid@S010678ca39ff0146.vn.shawcable.net] has quit [Changing
host]
20:36 -!- srid_ [~srid@unaffiliated/srid] has joined #go-nuts
20:39 -!- iant [~iant@74.125.57.58] has joined #go-nuts
20:39 -!- mode/#go-nuts [+v iant] by ChanServ
20:40 -!- ajoe47 [~textual@h163.187.123.208.dynamic.ip.windstream.net] has joined
#go-nuts
20:40 < skelterjohn> niklas`: fmt.Scan* will always tokenize on whitespace,
and more often if you tell it to correctly
20:41 < skelterjohn> repeatedly calling fmt.Scanf(fin, "%s", &aString) will
tokenize on whitespace, i believe, and return errors when a line has nothing on it
(and you can inspect the error and call again)
20:41 < niklas`> thanks, i'll check that out
20:42 < rm445> is anyone doing anything cool with the scanner package?
20:42 < niklas`> is using scanner for thsi wrong?
20:45 -!- m4dh4tt3r [~Adium@c-98-210-145-213.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
20:46 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-wtmhidrzcdnrcitu] has quit [Read
error: Connection reset by peer]
20:46 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-gwebvgpxpuureecf] has joined
#go-nuts
20:46 -!- iant [~iant@74.125.57.58] has quit [Quit: Leaving.]
20:46 -!- iant1 [~iant@74.125.57.50] has joined #go-nuts
20:47 -!- srid_ [~srid@unaffiliated/srid] has quit [Quit: Computer has gone to
sleep.]
21:04 -!- ExtraSpice [XtraSpice@78-57-204-104.static.zebra.lt] has quit [Remote
host closed the connection]
21:05 -!- Project_2501 [~Marvin@82.84.85.253] has quit [Quit: E se abbasso questa
leva che succ...]
21:08 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Quit:
skelterjohn]
21:08 -!- niklas` [~niklas@217-211-240-192-no29.tbcn.telia.com] has quit [Quit:
sleep]
21:22 -!- iant1 [~iant@74.125.57.50] has quit [Quit: Leaving.]
21:24 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
21:25 -!- Sep102_ [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has quit [Read
error: Connection reset by peer]
21:27 -!- Sep102 [~Sep102@c-71-227-179-131.hsd1.wa.comcast.net] has joined
#go-nuts
21:27 -!- tvw [~tv@e176000123.adsl.alicedsl.de] has joined #go-nuts
21:31 -!- Alpha_Cluster [~quassel@thief-pool2-121-125.mncable.net] has joined
#go-nuts
21:31 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:c9b3:bd66:9d87:3064] has quit
[Quit: Leaving.]
21:33 -!- iant [~iant@ip-62-105-190-71.dsl.twang.net] has joined #go-nuts
21:33 -!- mode/#go-nuts [+v iant] by ChanServ
21:35 -!- TheMue [~TheMue@p5DDF743B.dip.t-dialin.net] has quit [Quit: TheMue]
21:36 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
21:39 -!- huin [~huin@91.85.188.1] has quit [Quit: leaving]
21:53 -!- Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] has quit [Quit: So
Long, and Thanks for All the Fish]
22:01 -!- iant [~iant@ip-62-105-190-71.dsl.twang.net] has quit [Ping timeout: 276
seconds]
22:05 -!- krolaw [~krolaw@203.100.208.229] has joined #go-nuts
22:10 -!- iant [~iant@ip-62-105-190-71.dsl.twang.net] has joined #go-nuts
22:10 -!- mode/#go-nuts [+v iant] by ChanServ
22:12 -!- nogwater [~Adium@cpe-76-172-223-245.socal.res.rr.com] has joined
#go-nuts
22:14 < Alpha_Cluster> hey is ! a special character whne using os.Args?
22:20 -!- boscop [~foo@unaffiliated/boscop] has left #go-nuts []
22:37 -!- ExsysTech [~ExsysTech@50-46-210-255.evrt.wa.frontiernet.net] has joined
#go-nuts
22:40 -!- krolaw [~krolaw@203.100.208.229] has quit [Quit: krolaw]
22:41 < rm445> I'm pretty sure Go doesn't do anything with it (though I've
been wrong before).  Your shell might do something with it before it gets passed
to the program.
22:42 < Alpha_Cluster> thanks that makes sense
22:42 < str1ngs> might want to escape it
22:42 < Alpha_Cluster> i just put a space after the ! and it worked fine
22:42 < str1ngs> ! generally in bash is a history event
22:44 -!- th0re [~thre@tmo-111-152.customers.d1-online.com] has joined #go-nuts
22:50 * th0re hört 04.KiLL yourself von SplatterRap auf HaKenKreuZ.
22:52 -!- jburns131 [~jburns131@pool-173-48-150-201.bstnma.fios.verizon.net] has
quit [Quit: Leaving]
22:53 -!- Queue29 [~Queue29@egress-w.sfo1.yelpcorp.com] has joined #go-nuts
22:55 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
23:01 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has quit [Read error:
Connection reset by peer]
23:01 -!- str1ngs [~strings@unaffiliated/str1ngs] has quit [Quit: WeeChat 0.3.0]
23:05 -!- str1ngs [~strings@unaffiliated/str1ngs] has joined #go-nuts
23:06 -!- kris928 [~kris928@64.134.224.198] has joined #go-nuts
23:07 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 252 seconds]
23:08 -!- th0re [~thre@tmo-111-152.customers.d1-online.com] has quit [Quit: Der
weg zur erkenntniss ist der richtige.]
23:10 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
23:15 -!- virtualsue [~chatzilla@nat/cisco/x-tisdaquynrbdibpm] has quit [Ping
timeout: 246 seconds]
23:15 -!- foocraft [~ewanas@78.101.150.57] has quit [Ping timeout: 258 seconds]
23:15 -!- foocraft_ [~ewanas@178.152.114.223] has joined #go-nuts
23:19 -!- Stiletto [7f000001@69.195.144.4] has quit [Ping timeout: 276 seconds]
23:23 -!- angasule [~angasule@190.2.33.49] has quit [Remote host closed the
connection]
23:27 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
23:31 -!- hieusun [~hieusun@113.22.24.191] has joined #go-nuts
23:32 < hieusun> hi
23:32 < hieusun> how can i fix mercurial 1.7 warning?
23:32 < hieusun> i dont know where to find global configuration file
23:32 < str1ngs> ssl?
23:32 < hieusun> yes
23:32 < hieusun> it says On Debian and Ubuntu you can use this global
configuration:
23:32 < str1ngs> should bin instructions on the install page iirc
23:32 < str1ngs> be*
23:33 < hieusun> just
23:33 -!- awidegreen [~quassel@h-170-226.A212.priv.bahnhof.se] has quit [Read
error: Operation timed out]
23:33 < hieusun> 2.1.  Debian/Ubuntu
23:33 < hieusun> On Debian and Ubuntu you can use this global configuration:
23:33 < str1ngs>
http://mercurial.selenic.com/wiki/CACertificates#Configuration_of_HTTPS_certificate_authorities
23:33 < hieusun> [web]
23:33 < hieusun> cacerts = /etc/ssl/certs/ca-certificates.crt
23:33 < str1ngs> what os/distro ?
23:34 < hieusun> ubuntu
23:34 < hieusun> 11.04
23:34 < str1ngs> and those instructions do not help?
23:34 < hieusun> yes i dont know what file to edit
23:34 < str1ngs> ah ~/.hgrc
23:35 < str1ngs> I would think
23:35 < Alpha_Cluster> you can also type "hg help config" to get the
locations
23:35 < hieusun> nope .hgrc file
23:35 < hieusun> let me try
23:35 < str1ngs> it may not exist
23:36 < str1ngs> ie you might have to create it
23:36 < Alpha_Cluster> yeah the ~/.hgrc wont exist by defauilt
23:36 < hieusun> yeah thanks
23:36 < hieusun> $HOME/.hgrc
23:37 -!- hieusun [~hieusun@113.22.24.191] has left #go-nuts []
23:41 -!- hieusun [~hieusun@113.22.24.191] has joined #go-nuts
23:42 < hieusun> do i have to install gccgo before using 8g or 6g or 5g?
23:42 < str1ngs> no
23:42 < Alpha_Cluster> gccgo is a completely different compiler
23:43 < hieusun> it's wierd i've installed go, my compiler is 8g but when i
type 8g to compile
23:43 < hieusun> it says command not found T.T
23:43 < str1ngs> add GOROOT/bin to your path
23:43 < str1ngs> $GOROOT rather
23:44 < hieusun> ah, the last line when install go...
23:44 < hieusun> sorry but, i have to ask
23:44 < hieusun> how?
23:45 < crazy2be> ~/.profile
23:45 < str1ngs> something like export PATH=$GOROOT/bin:$PATH
23:45 < str1ngs> in .bashrc
23:45 < crazy2be> i added this to the end of mine:
23:45 < hieusun> export PATH=/go/bin:$PATH ?
23:45 < crazy2be> # set PATH so it includes user's go bin if it exists
23:45 < crazy2be> if [ -d "$HOME/go/bin" ] ; then
23:45 < crazy2be> PATH="$HOME/go/bin:$PATH"
23:45 < crazy2be> fi
23:46 < str1ngs> use GOROOT please
23:46 < str1ngs> proper way imo
23:46 < crazy2be> sorry :P
23:46 < hieusun> $GOROOT or just GOROOT
23:46 < Alpha_Cluster> wouldnt GOROOT also need to be added then?
23:46 < crazy2be> $GOROOT
23:46 < crazy2be> yeah i don't have a goroot set
23:47 < Alpha_Cluster> niether do i my path is hard coded
23:47 < str1ngs> $HOME/go/bin is the same as $GOROOT/bin you can however use
$GOBIN to but most do not use that
23:47 < crazy2be> str1ngs: echo $GOROOT
23:47 < crazy2be> is blank unless changed
23:47 < hieusun> =))
23:47 < str1ngs> of course did you not set it?
23:47 < crazy2be> nope
23:48 < Alpha_Cluster> its not in the instructions anymore
23:48 < str1ngs> sigh
23:48 < str1ngs> anways use w/e not a big deal
23:48 < crazy2be> lol
23:49 < str1ngs> but GOROOT wont break if you decide to you know use another
GOROOT
23:49 -!- Natch| [~natch@c-adcee155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
23:51 < str1ngs> crazy2be: [[ -d $HOME/go/bin ]] && PATH=$HOME/go/bin:$PATH
:P
23:51 < str1ngs> ok done bike sheding as you were
23:52 < crazy2be> str1ngs: is that how your configuration works?
23:53 < str1ngs> crazy2be: I was showing you how to simplify your if
statement
23:53 < crazy2be> ok, i wasn't sure
23:53 < crazy2be> i just copied the if statement from above for ~/bin
23:53 < str1ngs> in my case no I would not test if the dir existed
23:53 < crazy2be> and changed it to ~/go/bin
23:53 -!- kris928 [~kris928@64.134.224.198] has quit [Remote host closed the
connection]
23:53 < str1ngs> ah ok I see what you mean
23:54 < str1ngs> actually I use ~/.bash_profile for PATH
23:54 < str1ngs> since if you want to resource its not recursive
23:54 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has joined #go-nuts
23:55 < hieusun> still command not found.  some last lines :
23:55 < hieusun> # this, if it's already enabled in /etc/bash.bashrc and
/etc/profile
23:55 < hieusun> # sources /etc/bash.bashrc).
23:55 < hieusun> if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
23:55 < hieusun> . /etc/bash_completion
23:55 < hieusun> fi
23:55 < hieusun> PATH=$PATH:~/.bin
23:55 < hieusun> export PATH
23:55 < hieusun> if [ -d "$HOME/go/bin" ] ; then
23:56 < hieusun> PATH=$GOROOT/bin:$PATH
23:56 < hieusun> export PATH
23:56 < hieusun> fi
23:56 < str1ngs> source ~/.bashrc
23:56 < str1ngs> env | grep GO
23:56 < str1ngs> will that wont work.  guess grep PATH
23:58 < str1ngs> or use type 8g or which 8g
23:58 < hieusun> not found =(
23:58 < hieusun> already source ~/.bashrc
23:58 < str1ngs> did source ~/.bashrc?
23:58 < hieusun> yes
23:58 < str1ngs> and I assume you used .bashrc right?
23:59 < hieusun> yes
23:59 < hieusun> pasted at the end
23:59 < Alpha_Cluster> did you define $GOROOT?
23:59 < str1ngs> you did not set GOROOT though
23:59 < hieusun> if [ -d "$HOME/go/bin" ] ; then
23:59 < hieusun> PATH=$GOROOT/bin:$PATH
23:59 < hieusun> export PATH
23:59 < hieusun> fi
--- Log closed Sun Jun 19 00:00:53 2011