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

--- Log opened Fri Nov 27 00:00:06 2009
--- Day changed Fri Nov 27 2009
00:00 < Ibw> > type blarg *int; e := make([]*int, 10); fmt.Printf("%T,
%v", e, e);
00:00 < rndbot> []*int, [<nil> <nil> <nil> <nil>
<nil> <nil> <nil> <nil> <nil> <nil>]
00:00 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit
["Leaving"]
00:00 < Ibw> oh
00:00 < Ibw> it was trying to use @eval that was throwing me off
00:00 < Ibw> > type e := make([]*int, 10); fmt.Printf("%T, %v", e, e);
00:00 < rndbot> <Error: syntax error near e>
00:00 < Ibw> > e := make([]*int, 10); fmt.Printf("%T, %v", e, e);
00:00 < rndbot> []*int, [<nil> <nil> <nil> <nil>
<nil> <nil> <nil> <nil> <nil> <nil>]
00:01 < XniX23> congrats
00:07 < ronaldbe> anybody have a Makefile example with local dependencies??
00:08 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts
00:08 -!- FatherDefiance [n=BleakGad@81.166.171.168] has quit ["Leaving"]
00:08 -!- FatherDefiance [n=BleakGad@2001:470:26:9f:223:12ff:fe1c:ce7d] has joined
#go-nuts
00:09 -!- loureiro [n=loureiro@189.2.128.130] has quit [Remote closed the
connection]
00:10 < anticw> > i:= 123;
00:10 < rndbot> <no output>
00:10 < ronaldbe> nvmd, found one, here for all else wondering:
http://stackoverflow.com/questions/1766720/multi-package-makefile-example-for-go
00:10 < anticw> > fmt.Println(1,2,3);
00:10 < rndbot> 1 2 3
00:11 -!- Freeaqinf [n=Freeaqin@ns3.hostdelight.com] has joined #go-nuts
00:16 -!- Adys [n=Adys@unaffiliated/adys] has quit [Read error: 110 (Connection
timed out)]
00:18 -!- jschmidt [n=jschmidt@modemcable105.20-80-70.mc.videotron.ca] has joined
#go-nuts
00:19 -!- Freeaqingme [n=Freeaqin@ns3.hostdelight.com] has quit [Read error: 110
(Connection timed out)]
00:23 -!- dju [n=dju@ip-39.net-80-236-37.suresnes.rev.numericable.fr] has quit
["Quitte"]
00:25 -!- JSharpe [n=jamie@5adaeaa9.bb.sky.com] has quit [Read error: 110
(Connection timed out)]
00:26 -!- alexf [n=alexf@99.54.139.5] has joined #go-nuts
00:27 -!- JSharpe [n=jamie@5adaeaa9.bb.sky.com] has joined #go-nuts
00:30 -!- XniX23 [n=XniX23@89.212.10.29] has quit [Read error: 131 (Connection
reset by peer)]
00:32 -!- Freakzoid [n=Freakzoi@89.150.91.95] has joined #go-nuts
00:35 -!- moo [n=moo@78.151.168.4] has joined #go-nuts
00:36 < Guest76637> anyone made anything cool with this yet
00:37 < Whtiger> I made it connect to IRC and echo things.
00:37 < Whtiger> so, very very simple bot
00:38 -!- ronaldbe [n=ron@adsl-71-136-239-211.dsl.sndg02.pacbell.net] has quit []
00:40 < Guest76637> go its a pain searching for go stuff :P
00:40 < exch> plenty of 'cool' stuff: http://go-lang.cat-v.org/
00:40 < sladegen> and you've read everything on golang.org already?
00:41 < sladegen> there is mailing lists.
00:42 -!- Freakzoid [n=Freakzoi@89.150.91.95] has quit []
00:43 -!- JSharpe2 [n=jamie@90.218.234.169] has joined #go-nuts
00:44 -!- Freakzoid [n=Freakzoi@89.150.91.95] has joined #go-nuts
00:46 -!- JSharpe2 [n=jamie@90.218.234.169] has quit [Read error: 131 (Connection
reset by peer)]
00:46 -!- JSharpe2 [n=jamie@5adaeaa9.bb.sky.com] has joined #go-nuts
00:48 -!- JSharpe2 [n=jamie@5adaeaa9.bb.sky.com] has quit [Read error: 104
(Connection reset by peer)]
00:48 -!- Guest76637 [n=moo@78.151.168.4] has quit ["Java user signed off"]
00:48 -!- JSharpe2 [n=jamie@5adaeaa9.bb.sky.com] has joined #go-nuts
00:48 -!- JSharpe [n=jamie@5adaeaa9.bb.sky.com] has quit [Read error: 110
(Connection timed out)]
00:51 -!- alc [n=alc@222.128.142.197] has joined #go-nuts
00:51 -!- skyyy [n=caw@cpe-24-58-178-87.twcny.res.rr.com] has quit [Client Quit]
00:53 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
00:54 < Zeffrin> rndbot is pretty cool
00:58 -!- ni| [n=james@isp2-resnet-nat1.union.edu] has quit ["leaving"]
00:59 -!- raichoo [n=raichoo@i577BB995.versanet.de] has quit
["http://raichoo.blogspot.com"]
01:03 -!- spook327 [n=RevSpook@173-20-203-218.client.mchsi.com] has joined
#go-nuts
01:07 < Ibw> very
01:12 < jschmidt> is there something equivalent to #define ?
01:12 < exch> nope
01:13 < sladegen> > type W func(W) ; func(go W){ print("woot!");
go(go)}(func(go W){print("woot!";go(go)})
01:13 < rndbot> <Error: syntax error near go, syntax error near go>
01:13 < sladegen> > type W func(W) ; func(g W){ print("woot!");
g(g)}(func(g W){print("woot!";g(g)})
01:13 < rndbot> <Error: syntax error near "<string>">
01:13 < Ibw> Lexical scanner in the standard packages?
01:13 < sladegen> > type W func(W) ; func(g W){ print("woot!");
g(g)}(func(g W){print("woot!");g(g)})
01:13 < rndbot>
woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woo...
01:14 < sladegen> > type W func(W) ; go:=func(g W){ print("woot!"); g(g)}
; go(go)
01:14 < rndbot> <Error: syntax error near go, syntax error near go>
01:15 < exch> go is a language construct
01:15 -!- mfss [n=mfss@20150143005.user.veloxzone.com.br] has joined #go-nuts
01:15 < sladegen> > g:=func(){ print("woot!"); g()} ; g()
01:15 < rndbot> <Error: undefined: g>
01:16 < Ibw> function overloading?
01:16 < sladegen> > var g func() ; g=func(){ print("woot!"); g()} ; g()
01:16 < rndbot>
woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woot!woo...
01:16 < exch> unfortunately not
01:16 < Ibw> darn
01:17 < exch> you can cheat though.  func foo(){...} is different from func
(a mytype) foo(){...}
01:17 < Ibw> hum
01:17 < Ibw> Doesn't really help
01:18 < sladegen> i hope it died on the other end not keeps on running and
heating up his laptop.
01:18 < exch> :p
01:18 < Ibw> no, he made it so that it stops after a bit
01:18 < Ibw> @eval hey there
01:18 < rndbot> <Error: syntax error near there>
01:18 < Ibw> @eval "hey there"
01:18 < rndbot> hey there
01:18 < exch> sladegen: I think he did a good enough job of preventing stuff
like that :)
01:19 < sladegen> > var g func() ; g=func(){g()} ; g()
01:19 < exch> > println(os.Getenv("GOOS"));
01:19 < rndbot> <killed> <no output>
01:19 < rndbot> linux
01:19 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
01:19 < sladegen> > println(os.Getenv("TERM"));
01:19 < rndbot> linux
01:19 < exch> besides.  it's running inside a VM on a minimal arch install.
So not much you can mess up
01:19 < sladegen> > println(os.Getenv("SHELL"));
01:19 < rndbot> /bin/bash
01:20 < Ibw> > println(os.Getenv("GOROOT"));
01:20 < rndbot> /home/mgruen/go/safe
01:20 < Ibw> mgruen
01:20 < Ibw> > println(os.Getenv("GOBIN"));
01:20 < rndbot> /home/mgruen/go/bin
01:20 < exch> > os.RemoveAll("/");
01:20 < rndbot> <no output>
01:21 < sladegen> > println(os.Getenv("DISPLAY"));
01:21 < rndbot>
01:22 < sladegen> > println(os.Getenv("LANG"));
01:22 < rndbot> en_US.UTF-8
01:23 < jschmidt> println(os.Getenv("PWD"));
01:23 < jschmidt> > println(os.Getenv("PWD"));
01:23 < rndbot> /home/mgruen
01:24 < Ibw> heh
01:27 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection]
01:30 < jschmidt> is there any -O flags available?
01:30 < Zeffrin> > var err os.Error; err = os.Mkdir("test", 775); if err
{ fmt.Print("mkdir") }; err = os.Chdir("test"); if err { fmt.Print("chdir") };
01:30 < rndbot> <Error: non-bool err (type os.Error) used as if
condition, non-bool err (type os.Error) used as if condition>
01:30 < Zeffrin> > var err os.Error; err = os.Mkdir("test", 775); if err
!= nil { fmt.Print("mkdir") }; err = os.Chdir("test"); if err != nil {
fmt.Print("chdir") };
01:30 < rndbot> mkdirchdir
01:31 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: rovar
01:31 -!- cpr420 [n=cpr420@67.165.199.143] has quit ["Vision[0.9.7-H-090423]: i've
been blurred!"]
01:31 -!- Netsplit over, joins: rovar
01:32 < Zeffrin> > os.Exec("ls", nil, nil)
01:32 < rndbot> <no output>
01:33 < Zeffrin> > os.Exec("ls", [".."], nil)
01:33 < rndbot> <Error: syntax error near "<string>">
01:34 < Zeffrin> > os.Exec("ls", {".."}, nil)
01:34 < rndbot> <Error: syntax error near "<string>">
01:35 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
01:36 < sladegen> > f = func(s string, c chan string){ c<-s ;
fmt.print(<-c)} ; k:=make(chan string) ; go f("ping",k) ; go f("pong",k) ; for
{ k<-"doing" }
01:36 < rndbot> <Error: cannot refer to fmt.print, undefined: f, cannot
assign to f, undefined: fmt.print>
01:37 < sladegen> > f = func(s string, c chan string){ c<-s ;
print(<-c)} ; k:=make(chan string) ; go f("ping",k) ; go f("pong",k) ; for {
k<-"doing" }
01:37 < rndbot> <Error: undefined: f, cannot assign to f>
01:37 < sladegen> > f := func(s string, c chan string){ c<-s ;
print(<-c)} ; k:=make(chan string) ; go f("ping",k) ; go f("pong",k) ; for {
k<-"doing" }
01:37 < rndbot> <no output>
01:37 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 104
(Connection reset by peer)]
01:39 -!- kcwu [i=fakeidkc@kcwu.csie.org] has quit ["reboot"]
01:39 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
01:40 < sladegen> > f := func(s string, c chan string){ c<-s ;
print(<-c)} ; k:=make(chan string) ; go f("ping",k) ; go f("pong",k) ; for {
k<-"doing"; print(<-k) }
01:40 < rndbot> <no output>
01:40 * sladegen hmmms.
01:42 < sladegen> > f := func(s string, c chan string){ for { c<-s ;
print(<-c) }} ; k:=make(chan string) ; go f("ping",k) ; go f("pong",k) ; for {
k<-"doing"; print(<-k) }
01:42 < rndbot> <no output>
01:43 -!- stalled [n=411@unaffiliated/stalled] has quit [Read error: 104
(Connection reset by peer)]
01:44 < sladegen> > f := func(s string, c chan string){ for { c<-s ;
print(<-c) }} ; k:=make(chan string) ; go f("ping",k) ; go f("pong",k) ;
f("doing", k)
01:44 < rndbot> <no output>
01:44 -!- Fraeon [n=kzer-za@212.246.65.153] has quit []
01:44 -!- stalled [n=411@93.80.238.120] has joined #go-nuts
01:44 * sladegen <eot>s.
01:46 < Zeffrin> > os.Exec("ls", []string{".."}, nil)
01:46 < rndbot> <no output>
01:46 < railbait[blowme]> os.Exit(1)
01:46 < Zeffrin> that'll just exist the subprocess
01:47 < railbait[blowme]> Sorry about my name, I have to keep it until this
idiot in #perlcafe drops his silly [hireme] tag
01:47 -!- Tuller [n=Tuller@pool-72-84-246-12.rcmdva.fios.verizon.net] has joined
#go-nuts
01:47 < railbait[blowme]> I was basically stating his likelihood of being
hired from the tag is equally as much as me getting my tag's contents
01:47 < Zeffrin> lol
01:47 < railbait[blowme]> So yeah
01:54 < Zeffrin> > i := os.Getppid(); os.Exec("kill",
[]string{fmt.Sprintf("%d", i)}, nil);
01:54 < rndbot> <no output>
01:55 < Zeffrin> > i := os.Getppid(); fmt.Printf("%d", i);
01:55 < rndbot> 993
01:55 < Zeffrin> > i := os.Getppid(); os.Exec("kill", []string{"-9",
fmt.Sprintf("%d", i)}, nil);
01:55 < rndbot> <no output>
01:56 -!- rayto [n=rayto@dynamic.rabat2-124-236-12-196.wanamaroc.com] has joined
#go-nuts
01:56 -!- nigeltao [n=nigeltao@203.39.247.241] has quit ["Leaving"]
01:58 < railbait[blowme]> PassThrough is supposed to be a constant in
"exec", but it seems I'm getting an error:
01:58 < railbait[blowme]> http://pastebin.com/mb1db82b
01:58 < railbait[blowme]> commandtest.go:9: undefined: PassThrough
01:59 < railbait[blowme]> Meaning the constant to just say "use whatever
you're using for this pipe"
02:00 -!- lenst [n=user@81.237.244.185] has quit [Read error: 145 (Connection
timed out)]
02:00 < Ibw> railbait[blowme]: Can you ghost him?
02:01 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
02:01 < Ibw> Wait
02:01 < Ibw> Why can't you change your name just because someone else has
[hireme]?
02:01 < railbait[blowme]> Because his tag is useless, thus mine is a protest
02:01 < Ibw> oh
02:03 < Zeffrin> > os.Exec("echo", []string{"test"}, nil)
02:03 < rndbot> <no output>
02:06 -!- garbeam_ [n=arg@garbe.us] has joined #go-nuts
02:06 -!- garbeam [n=arg@garbe.us] has quit [Read error: 104 (Connection reset by
peer)]
02:10 -!- Venom_X [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has joined
#go-nuts
02:10 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 104
(Connection reset by peer)]
02:13 -!- Kibiz0r [n=Adium@adsl-99-52-149-249.dsl.klmzmi.sbcglobal.net] has joined
#go-nuts
02:16 < railbait[blowme]> Ah, needed exec.PassThrough, forgetting everything
is package-centric, not brought into an aggregate namespace sort of thing
02:17 -!- rickardm [n=dat99rmo@195.60.68.148] has quit [Read error: 110
(Connection timed out)]
02:18 -!- rickardm [n=dat99rmo@proxy.se.axis.com] has joined #go-nuts
02:19 -!- General1337 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Connection timed out]
02:21 -!- garbeam_ [n=arg@garbe.us] has quit [Read error: 104 (Connection reset by
peer)]
02:21 -!- garbeam [n=arg@garbe.us] has joined #go-nuts
02:32 -!- Esmil [n=esmil@4704ds1-gjp.0.fullrate.dk] has quit [Read error: 104
(Connection reset by peer)]
02:32 -!- rayto [n=rayto@dynamic.rabat2-124-236-12-196.wanamaroc.com] has quit
["Leaving"]
02:33 -!- Esmil [n=esmil@4704ds1-gjp.0.fullrate.dk] has joined #go-nuts
02:35 -!- skelterjohn [n=jasmuth@c-71-58-123-111.hsd1.nj.comcast.net] has joined
#go-nuts
02:36 -!- Esmil [n=esmil@4704ds1-gjp.0.fullrate.dk] has quit [Read error: 104
(Connection reset by peer)]
02:36 -!- zum_ [n=jsykari@xdsl-83-150-88-4.nebulazone.fi] has joined #go-nuts
02:38 < Ibw> Did anyone answer me before?  Is there a lexer in the standard
packages?
02:38 -!- gislan [n=gislan@host-81-190-16-19.torun.mm.pl] has quit [Read error:
113 (No route to host)]
02:38 < Ibw> not that I saw
02:39 -!- Esmil [n=esmil@90.185.33.90] has joined #go-nuts
02:49 -!- zum [n=jsykari@xdsl-83-150-88-4.nebulazone.fi] has quit [Read error: 110
(Connection timed out)]
02:49 -!- stalled_ [n=411@93-80-238-120.broadband.corbina.ru] has joined #go-nuts
02:49 -!- stalled [n=411@unaffiliated/stalled] has quit [Read error: 131
(Connection reset by peer)]
02:56 -!- Kibiz0r [n=Adium@adsl-99-52-149-249.dsl.klmzmi.sbcglobal.net] has quit
["Leaving."]
02:56 < jordyd> Ibw: You mean these: http://golang.org/pkg/go ?
02:56 -!- Freakzoid [n=Freakzoi@89.150.91.95] has quit [Read error: 148 (No route
to host)]
02:56 -!- Tuller [n=Tuller@pool-72-84-246-12.rcmdva.fios.verizon.net] has quit []
02:57 < Ibw> jordyd: That doesn't really help very much.  As I understand,
those packages are specific to Go's specs
02:57 < jordyd> Ibw: Yes, they are.
02:57 < jordyd> I don't think there is a "generic" lexer, but I may be
wrong.
02:58 < tav> Ibw: no, people would contribute back using codereview as
current
03:01 < jschmidt> here's a link for the computation of PI using goroutines
in // : http://pastebin.com/dba208d7
03:05 < Zeffrin> jschmidt: coool
03:06 < jschmidt> nothing very useful, but it gives an example of goroutines
03:07 -!- ikke [n=1kk3@unaffiliated/ikkebr] has quit []
03:10 -!- fosho [n=notroot@ool-43570f3c.dyn.optonline.net] has joined #go-nuts
03:10 -!- ni| [n=ni|@cpe-72-191-33-69.satx.res.rr.com] has joined #go-nuts
03:12 -!- path[l] [n=path@115.240.107.58] has joined #go-nuts
03:12 < Zeffrin> i wanted to figure that out the other night but a) im not
very good at math and b) i was drinking
03:13 < Zeffrin> was looking at altgorithms for calculating pi and all the
eaiser methods end in this is an approximation to pi accurate to x digits
03:14 < Zeffrin> where x is 3 to 10 or so
03:14 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit []
03:16 -!- Kibiz0r [n=Adium@adsl-99-52-149-249.dsl.klmzmi.sbcglobal.net] has joined
#go-nuts
03:16 -!- fosho_ [n=notroot@ool-43570f3c.dyn.optonline.net] has joined #go-nuts
03:16 -!- fosho_ [n=notroot@ool-43570f3c.dyn.optonline.net] has quit [Client Quit]
03:17 -!- fosho_ [n=notroot@ool-43570f3c.dyn.optonline.net] has joined #go-nuts
03:17 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection]
03:19 < Zeffrin> one thing im curious about though
03:19 < Zeffrin> each goroutine here handles a range of iterations and all
dump their results onto the sums channel
03:19 < jschmidt> yeah
03:19 < Zeffrin> what garauntees the order in which results go in?
03:19 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
03:20 < jschmidt> nothing, but that it's why i start creating thread for
bigger numbers
03:20 < jschmidt> to have a more precise value of PI
03:21 -!- Kibiz0r [n=Adium@adsl-99-52-149-249.dsl.klmzmi.sbcglobal.net] has quit
[Client Quit]
03:21 < jschmidt> but "normally" they should sum in the right order :p
03:21 < jschmidt> anyway that was just a test for me
03:22 < Zeffrin> dont get me wrong Im curious because I dont quite under the
goroutine and channel thing yet
03:22 < Zeffrin> Im just confused how this promises that results will be in
the correct order, like what if one thread gets held up by another process or
something and then outputs to sums
03:23 < ni|> do a merge sort example
03:23 < ni|> it convinced me
03:23 < ni|> though you cannot really make them yield
03:23 < ni|> anyways i gg spend some time with my gramps hes 90 now :)
03:23 < ni|> happy thanksgiving all
03:26 -!- jschmidt [n=jschmidt@modemcable105.20-80-70.mc.videotron.ca] has quit
["Leaving"]
03:27 < Zeffrin> aww I didnt meant to upset him, im sure theres a reason
here i just dont understand
03:28 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
03:29 -!- pois0n [n=pois0n@190.22.86.202] has joined #go-nuts
03:33 -!- irc [n=irc@209.17.191.58] has joined #go-nuts
03:33 -!- fosho [n=notroot@ool-43570f3c.dyn.optonline.net] has quit [Read error:
110 (Connection timed out)]
03:34 -!- path[l] [n=path@115.240.107.58] has quit [Read error: 110 (Connection
timed out)]
03:34 -!- mitsuhiko_ [n=mitsuhik@hammett.srv.pocoo.org] has joined #go-nuts
03:35 -!- kegie_ [i=kegie@130.239.18.135] has joined #go-nuts
03:35 -!- bockmabe [n=B@miles.jfet.net] has joined #go-nuts
03:35 -!- hallsa_ [n=shane@miles.jfet.net] has joined #go-nuts
03:35 -!- Hertta_ [n=ptr@188.72.205.52] has joined #go-nuts
03:36 -!- Bao_ [n=bao@h-200-46.A212.priv.bahnhof.se] has joined #go-nuts
03:36 -!- atsampso1 [n=ats@94-193-50-45.zone7.bethere.co.uk] has joined #go-nuts
03:36 -!- prae [i=praetori@124.171.249.236] has joined #go-nuts
03:36 -!- hnaz_ [n=hannes@85.214.51.133] has joined #go-nuts
03:36 -!- abbyz_ [n=abhishek@garkbit.osl.iu.edu] has joined #go-nuts
03:36 -!- poucet_ [n=poucet@li23-146.members.linode.com] has joined #go-nuts
03:36 -!- laprice_ [n=larry@fremont.zoneverte.org] has joined #go-nuts
03:40 -!- kolmodin_
[n=kolmodin@c-c59c70d5.012-63-67626713.cust.bredbandsbolaget.se] has joined
#go-nuts
03:43 -!- decriptor [n=decripto@174-27-134-202.slkc.qwest.net] has quit [Read
error: 110 (Connection timed out)]
03:44 -!- lolsuper_ [n=super_@pool-173-65-48-13.tampfl.fios.verizon.net] has
joined #go-nuts
03:44 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: hallsa,
kolmodin, atsampson, praetorian, poucet, ct, exDM69, mitsuhiko, Bao, Hertta, (+11
more, use /NETSPLIT to show all of them)
03:44 -!- alexsuraci [n=Alex@pool-71-188-133-67.aubnin.fios.verizon.net] has quit
[Remote closed the connection]
03:45 -!- Netsplit over, joins: freespace, hallsa, laprice, Bao, kegie, mitsuhiko,
Hertta, senneth, abbyz, kolmodin (+8 more)
03:45 -!- mitsuhiko [n=mitsuhik@ubuntu/member/mitsuhiko] has quit [SendQ exceeded]
03:45 -!- pois0n [n=pois0n@190.22.86.202] has quit ["Leaving"]
03:46 -!- Esmil [n=esmil@90.185.33.90] has quit [Read error: 131 (Connection reset
by peer)]
03:46 -!- wiretapped [n=leif@75.101.62.89] has joined #go-nuts
03:46 -!- ct [n=ct@fsf/member/ct] has quit [Connection timed out]
03:46 -!- laprice [n=larry@fremont.zoneverte.org] has quit [Connection timed out]
03:47 -!- lolsuper_ [n=super_@unaffiliated/lolsuper-/x-9881387] has quit [Read
error: 104 (Connection reset by peer)]
03:47 -!- Bao [n=bao@h-200-46.A212.priv.bahnhof.se] has quit [Connection timed
out]
03:47 < mfss> quit
03:47 -!- mfss [n=mfss@20150143005.user.veloxzone.com.br] has quit []
03:48 -!- fosho_ [n=notroot@ool-43570f3c.dyn.optonline.net] has quit [Read error:
60 (Operation timed out)]
03:48 -!- bockmabe_ [n=B@miles.jfet.net] has quit [Connection timed out]
03:48 -!- Hertta [n=ptr@188.72.205.52] has quit [Connection timed out]
03:48 -!- kegie [i=kegie@stalin.acc.umu.se] has quit [Connection timed out]
03:48 -!- hallsa [n=shane@miles.jfet.net] has quit [Read error: 110 (Connection
timed out)]
03:48 -!- poucet [n=poucet@li23-146.members.linode.com] has quit [Success]
03:48 -!- kolmodin [n=kolmodin@gentoo/developer/kolmodin] has quit [Connection
timed out]
03:49 < sladegen> Ibw: /cmd/goyacc/ ? there is also /pkg/ebnf/ ...  not that
i used either.
03:49 -!- nightmouse [n=nightmou@69.247.77.241] has joined #go-nuts
03:49 -!- atsampson [n=ats@94-193-50-45.zone7.bethere.co.uk] has quit [Connection
timed out]
03:49 -!- abbyz [n=abhishek@unaffiliated/abbyz] has quit [Connection timed out]
03:50 -!- hnaz [n=hannes@85.214.51.133] has quit [Connection timed out]
03:53 -!- path[l] [n=path@115.240.107.58] has joined #go-nuts
03:57 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 131
(Connection reset by peer)]
03:58 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
03:58 -!- scandal [n=nobody@unaffiliated/scandal] has joined #go-nuts
04:00 -!- Esmil [n=esmil@4704ds1-gjp.0.fullrate.dk] has joined #go-nuts
04:05 -!- lolsuper_ [n=super_@pool-173-65-48-13.tampfl.fios.verizon.net] has
joined #go-nuts
04:05 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 104
(Connection reset by peer)]
04:06 -!- halfdan_ [n=halfdan@p57A94468.dip.t-dialin.net] has joined #go-nuts
04:11 -!- xuser [n=xuser@unaffiliated/xuser] has joined #go-nuts
04:12 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
04:12 -!- sliceofpi [n=Adium@c-98-194-205-176.hsd1.tx.comcast.net] has quit
["Leaving."]
04:13 -!- zerofluid [n=zeroflui@ip72-208-216-68.ph.ph.cox.net] has joined #go-nuts
04:16 -!- ct [n=ct@plutonium.ct.id.au] has joined #go-nuts
04:20 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 131
(Connection reset by peer)]
04:21 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
04:23 -!- halfdan [n=halfdan@p57A94642.dip.t-dialin.net] has quit [Read error: 110
(Connection timed out)]
04:24 -!- binaryjohn [n=binaryjo@24.30.132.50] has joined #go-nuts
04:24 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 104
(Connection reset by peer)]
04:25 -!- path[l] [n=path@115.240.107.58] has quit [Read error: 104 (Connection
reset by peer)]
04:27 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has quit
[]
04:28 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
04:36 -!- nightmouse [n=nightmou@69.247.77.241] has quit ["Nooooooooo"]
04:37 -!- decriptor [n=decripto@53.250.sfcn.org] has joined #go-nuts
04:39 -!- path[l] [n=path@115.240.107.58] has joined #go-nuts
04:39 < Ibw> what is the biggest number that an (unsigned) int64 can be?
04:40 < Ibw> nvm
04:40 < Ibw> found it
04:42 -!- phillipsm [n=mattscom@173.23.63.244] has joined #go-nuts
04:45 -!- snake__ [n=snake@80.95.37.238] has joined #go-nuts
04:46 -!- jinho [n=jinho326@user-387gl9p.cable.mindspring.com] has joined #go-nuts
04:46 < tav> uriel: the "golang" link at the top of cat-v.org points to the
wrong host ...
04:47 -!- snake_ [n=snake@cardinal.sura.ru] has quit [Read error: 60 (Operation
timed out)]
04:47 < tav> also, what's the url for the rss aggregator ?
04:47 -!- phillipsm [n=mattscom@173.23.63.244] has quit ["ChatZilla 0.9.85
[Firefox 3.5.5/20091109134913]"]
04:48 < sladegen> http://planet5.cat-v.org/ ?
04:49 < tav> that's the one, thanks!
04:50 -!- path[l] [n=path@115.240.107.58] has quit [Read error: 54 (Connection
reset by peer)]
04:50 -!- path[l] [n=path@115.240.107.58] has joined #go-nuts
04:52 -!- aho [n=nya@g226146141.adsl.alicedsl.de] has quit
["EXEC_over.METHOD_SUBLIMATION"]
04:52 < alc> @eval 1<<64-1
04:52 < rndbot> <Error: constant 18446744073709551615 overflows int>
04:52 < alc> @eval ^uint64(0)
04:52 < rndbot> 18446744073709551615
04:56 < ni|> @eval 3 |= 2
04:56 < rndbot> <Error: syntax error near 3>
04:57 < ni|> @eval 3 | 2
04:57 < rndbot> 3
04:57 < ni|> @eval 3 | 6
04:57 < rndbot> 7
04:57 < ni|> well played rndbot
04:58 -!- xuser [n=xuser@unaffiliated/xuser] has left #go-nuts []
04:59 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has quit
["Leaving"]
05:02 -!- path[l] [n=path@115.240.107.58] has quit [Read error: 145 (Connection
timed out)]
05:02 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 104
(Connection reset by peer)]
05:04 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection]
05:05 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
05:05 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
05:05 -!- phillipsm [n=mattscom@173-23-63-244.client.mchsi.com] has joined
#go-nuts
05:07 -!- tedster [n=tedster@67.23.158.117] has quit [Read error: 110 (Connection
timed out)]
05:08 -!- tedster [n=tedster@67.23.158.117] has joined #go-nuts
05:14 -!- ni| [n=ni|@cpe-72-191-33-69.satx.res.rr.com] has quit [Remote closed the
connection]
05:14 -!- ni| [n=ni|@cpe-72-191-33-69.satx.res.rr.com] has joined #go-nuts
05:15 -!- scandal [n=nobody@unaffiliated/scandal] has quit ["Leaving."]
05:16 -!- Ibw_ [n=isaac@cpe-67-241-42-134.twcny.res.rr.com] has joined #go-nuts
05:16 -!- phillipsm [n=mattscom@173-23-63-244.client.mchsi.com] has quit
["ChatZilla 0.9.85 [Firefox 3.5.5/20091109134913]"]
05:17 -!- mythmon [n=mike@71.92.118.211] has joined #go-nuts
05:19 -!- pace_t_zulu_ [n=pacetzul@unaffiliated/pacetzulu/x-585030] has joined
#go-nuts
05:27 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 131
(Connection reset by peer)]
05:27 -!- ni| [n=ni|@cpe-72-191-33-69.satx.res.rr.com] has quit [Read error: 104
(Connection reset by peer)]
05:28 -!- ni| [n=ni|@72.191.33.69] has joined #go-nuts
05:29 -!- pace_t_zulu_ [n=pacetzul@unaffiliated/pacetzulu/x-585030] has quit []
05:30 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
05:33 -!- binaryjohn [n=binaryjo@24.30.132.50] has quit []
05:34 -!- Ibw [n=isaac@cpe-67-241-42-134.twcny.res.rr.com] has quit [Read error:
110 (Connection timed out)]
05:38 -!- The_Doctor [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has joined
#go-nuts
05:39 -!- itrekkie [n=itrekkie@98.165.246.56] has joined #go-nuts
05:39 -!- path[l] [n=path@115.240.101.153] has joined #go-nuts
05:41 -!- blackmagik [n=blackmag@unaffiliated/blackmagik] has quit ["Leaving"]
05:43 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts
05:44 -!- Alkavan [n=alkavan@77.124.44.87] has joined #go-nuts
05:45 < Zeffrin> var big, a int64; for i := 0, a = 1; i<64; i++ { big ^=
a; a << 1 }; fmt.Print("%d", big);
05:45 < Zeffrin> > var big, a int64; for i := 0, a = 1; i<64; i++ {
big ^= a; a << 1 }; fmt.Print("%d", big);
05:45 < rndbot> <Error: syntax error near a, syntax error near i, syntax
error near fmt, empty top-level declaration>
05:47 < Zeffrin> well it didnt like any of that did it
05:47 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 54 (Connection
reset by peer)]
05:48 < mythmon> so, in euler.go, I have `package euler;`.  Then in prob3.go
I have `import "euler";`
05:48 < mythmon> both in the same directory
05:49 < mythmon> is something wrong with that?  because 8g seems to think so
05:49 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
05:49 < mythmon> it says `prob3.go:4: fatal error: can't find import: euler`
05:51 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit ["Leaving"]
05:52 -!- Venom_X [n=pjacobs@cpe-67-9-131-167.austin.res.rr.com] has quit []
05:52 -!- Alkavan [n=alkavan@77.124.44.87] has quit ["Leaving"]
05:53 < Zeffrin> > var big,a uint64; for i := 0, a = 1; i<64; i++ {
big ^= a; a <<= 1 }; fmt.Print("%d", big);
05:53 < rndbot> <Error: syntax error near a, syntax error near i, syntax
error near fmt, empty top-level declaration>
05:54 < Zeffrin> i thought var a, b int type thing was valid?
05:54 < mythmon> > var a,b int;
05:54 < rndbot> <no output>
05:54 < mythmon> seems like it is
05:54 < Zeffrin> whats wrong with it in my one there, hrm
05:54 < Zeffrin> > var a, b uint64
05:54 < rndbot> <no output>
05:55 < mythmon> oh.  its the i := 0, a = 1
05:55 < mythmon> it should be
05:55 < mythmon> hmm...  no, i dont think you can do it
05:55 < mythmon> because you can't do the coma
05:55 < mythmon> *comma
05:55 < Zeffrin> doh, kk
05:56 -!- droid001 [n=g1@79.220.226.102] has quit [Success]
05:56 < Zeffrin> > var big, a int64 = 0, 1; for i := 0; i<64; i++ {
big ^= a; a <<= 1 }; fmt.Print("%d", big);
05:56 < rndbot> %d-1
05:56 < Zeffrin> > var big, a int64 = 0, 1; for i := 0; i<64; i++ {
big ^= a; a <<= 1 }; fmt.Printf("%d", big);
05:56 < rndbot> -1
05:56 < Zeffrin> lol hrm
05:56 < Zeffrin> thanks tho, good to know can't set more than one value in
for if I want to use :=
05:56 < mythmon> well, you could
05:57 -!- droid001 [n=g1@79.220.228.216] has joined #go-nuts
05:57 < mythmon> you just can't mix = and :=
05:57 < mythmon> you can do
05:57 < mythmon> > a,b := 0,1; fmt.Print(a,b);
05:57 < rndbot> 0 1
05:57 < Zeffrin> oh cool
06:00 -!- locifer [i=locifer@121.37.9.200] has joined #go-nuts
06:01 -!- KillerX [n=anant@59.96.61.31] has joined #go-nuts
06:01 < anticw> anyone here used tar/archive?
06:02 < anticw> i find header = reader.Next() works fine unless i consume
the file data, in which case it fails
06:02 < anticw> (the first works)
06:02 -!- path[l] [n=path@115.240.101.153] has quit [Read error: 110 (Connection
timed out)]
06:02 < alc> mythmon: try import "./euler"
06:03 < mythmon> alc: I tried that, the error just becomes can't find import
"./euler"
06:03 < alc> compile euler.go first
06:03 < mythmon> yep
06:04 < mythmon> tried that as well, still no luck
06:04 < mythmon> oh.  hmm.  it worked this time
06:05 -!- jinho [n=jinho326@user-387gl9p.cable.mindspring.com] has quit
["Leaving"]
06:06 < mythmon> ok, so shouldn't I be able to rename euler.go to util.go,
as long as I still call it package euler?  because that doesn't work
06:06 -!- locifer [i=locifer@121.37.9.200] has quit ["Leaving"]
06:10 < alc> what matters is the compiled file: euler.8
06:11 < alc> you can name the .go source whatever as long as it starts with
"package euler" and you compile it to euler.8
06:11 -!- itrekkie [n=itrekkie@98.165.246.56] has quit []
06:12 < mythmon> i see.  and if i want to split package euler among
different .go files?  how do i get them to all compile to a single euler.8 ?
06:12 -!- xiaoxiaolu [n=hirc2000@121.37.9.200] has joined #go-nuts
06:13 < alc> btw you can still import "euler" and use 8g -I dir ....
06:13 < alc> oh, that i dont know.  maybe with some help of go make files..
06:13 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has quit
["Leaving"]
06:14 < mythmon> alright.  i didn't need to do that, I was just curious
06:14 < mythmon> thanks for the help
06:14 < alc> np
06:16 -!- zerofluid [n=zeroflui@ip72-208-216-68.ph.ph.cox.net] has quit ["This
computer has gone to sleep"]
06:16 < mythmon> hmm...  I /think/ that `8g -o euler.8 util1.go util2.go`
will do the write thing
06:16 < Ibw_> mythmon: You can use gopack to still all your .8 package files
together
06:18 < mythmon> oh, and 8g util.go util2.go will only make a util.8, not a
util2.8, so i am just over complicating things
06:22 -!- mizai [n=mizai@rhou-164-107-213-187.resnet.ohio-state.edu] has quit
[Read error: 110 (Connection timed out)]
06:23 < alc> `8g -o euler.8 util1.go util2.go` works
06:24 < alc> 8g util.go util2.go will only make a util.8 <-- the output
file by default is the first dot 8; but all files are compiled actually
06:25 < mythmon> good to know
06:30 < uriel> tav: thanks, fixed that
06:35 -!- drry [n=drry@unaffiliated/drry] has joined #go-nuts
06:37 -!- chid [n=fdefwrhf@c122-106-95-175.rivrw1.nsw.optusnet.com.au] has quit
[Read error: 60 (Operation timed out)]
06:38 < alc> using c.vim for go indent file almost fine..  only one annoying
thing, "blah := xxx" is treated as a goto label and always put at the first
column..
06:38 -!- knave [n=Knave@dsl-240-187-198.telkomadsl.co.za] has joined #go-nuts
06:39 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts
06:41 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: deufrai,
keeto, Hong_MinHee, smcq, Guest36996, triplez, Killerkid, Raziel2p, jorendorff,
nbaum, (+27 more, use /NETSPLIT to show all of them)
06:41 < mythmon> there is go.vim in $GOROOT/misc/vim/ ...  but it has the
same thing
06:42 -!- Netsplit over, joins: lifeless
06:42 -!- Netsplit over, joins: Hong_MinHee, toft
06:42 -!- kve [i=zaknifar@srv-e218.esp.mediateam.fi] has joined #go-nuts
06:42 -!- Netsplit over, joins: shasbot
06:42 -!- fosho_ [n=notroot@ool-43570f3c.dyn.optonline.net] has joined #go-nuts
06:42 -!- Netsplit over, joins: AmirMohammad
06:43 -!- chid [n=inlup@c122-106-95-175.rivrw1.nsw.optusnet.com.au] has joined
#go-nuts
06:47 < sladegen> > a:=make([]int, 1) ; a[2]=1
06:47 < alc> mythmon: thats for syntax highlighting; what i want is a go.vim
indent file :p
06:47 < sladegen> > return "foo"
06:48 < sladegen> > print(1+1)
06:48 * sladegen ahas.
06:48 < alc> netsplit
06:49 < Zeffrin> > var big, a int64 = 0, 1; for i := 0; i<64; i++ {
big ^= a; a <<= 1 }; fmt.Printf("%ud", big);
06:49 < sladegen> he ain't here.
06:49 < Zeffrin> doh
06:49 -!- path[l] [n=path@122.182.0.38] has joined #go-nuts
06:49 < knave> * rndbot (n=bot@wikipedia/Gracenotes) Quit
(verne.freenode.net irc.freenode.net)
06:58 -!- BMeph [n=black_me@65.103.151.24] has quit [Read error: 104 (Connection
reset by peer)]
06:59 -!- temme [n=kcollins@173.71.105.240] has joined #go-nuts
07:02 -!- BMeph [n=black_me@65.103.151.24] has joined #go-nuts
07:04 -!- zhaozhou [n=zhaozhou@linfast76.bitnet.nu] has quit [Read error: 110
(Connection timed out)]
07:05 -!- bentley` [n=bentley`@71-38-209-21.albq.qwest.net] has quit [Read error:
113 (No route to host)]
07:07 -!- temme [n=kcollins@173.71.105.240] has left #go-nuts ["Konversation
terminated!"]
07:08 -!- |houkiom| [n=belkiss@78.235.168.105] has joined #go-nuts
07:08 -!- |houkiom| [n=belkiss@78.235.168.105] has quit [Read error: 54
(Connection reset by peer)]
07:10 -!- xiaoxiaolu [n=hirc2000@121.37.9.200] has quit ["SunNet HIRC-2,
ÁúµÄÈí¼þ"]
07:11 -!- xiaoxiaolu [n=hirc2000@121.37.9.200] has joined #go-nuts
07:11 -!- ziyu4huang [n=ziyu_hua@220.133.3.82] has joined #go-nuts
07:12 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined
#go-nuts
07:15 -!- ni| [n=ni|@72.191.33.69] has quit ["Leaving..."]
07:16 -!- chid [n=inlup@c122-106-95-175.rivrw1.nsw.optusnet.com.au] has quit [No
route to host]
07:17 < Zeffrin> ok so I tested my way somewhere else and I know that works
but question for you elite peoples
07:17 < Zeffrin> whats the best way to set all bits to 1 in a uint64?
07:18 < Zeffrin> and initializing it to the largest possible number doesn't
count...  though if theres a constant type thing like MAXINT that'd be good to
know
07:18 < Zeffrin> ] [ sawtooth ] [ Vino ]
07:18 < Zeffrin> oops
07:19 < mythmon> what about `^unint64(0)` ??  (im not sure)
07:19 < mythmon> > println(^unint64(0));
07:19 < mythmon> er.  he is gone still...
07:19 -!- rog [n=rog@89.240.136.210] has joined #go-nuts
07:25 -!- rob| [n=rob@95-90-45-206-dynip.superkabel.de] has quit [Read error: 110
(Connection timed out)]
07:26 -!- lambo4jos [n=chatzill@c-76-126-250-10.hsd1.ca.comcast.net] has quit
["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"]
07:26 -!- mythmon [n=mike@71.92.118.211] has quit ["Lost terminal"]
07:26 < tav> Zeffrin: maxint64 = (1 << 64) - 1
07:26 < tav> ?
07:30 -!- odemia_ [n=Odemia-D@207.47.143.154] has quit [Remote closed the
connection]
07:30 < s_mosher> tav, I can't decide between that and ^uint64(0) best for
showing intent and clarity
07:31 < knave> add a comment :p
07:31 < Zeffrin> oh very neat
07:32 < Zeffrin> how come 1 << 64 overflows the int but the -1 makes
the difference?
07:33 -!- Odemia [n=Odemia-D@207.47.143.154] has joined #go-nuts
07:33 < Zeffrin> and I dont understant ^uint64(0)...  so thats an XOR..  but
it should be 0...  0^0 = 0?
07:34 -!- Odemia [n=Odemia-D@207.47.143.154] has quit [Read error: 104 (Connection
reset by peer)]
07:34 < Zeffrin> oh ok I get the first now, even though the variable cant
handle the 65th bit the processor can
07:34 < s_mosher> Zeffrin, it's computed as a constant by the compiler
07:35 < s_mosher> but you can't autodeclare it without some extra work
07:35 < Zeffrin> yah figured it would but it still needs to figure it out at
some point to do that, so thats cool
07:35 < droid001> int64 != uint64 :P
07:35 < Zeffrin> meant to be talkin about uint64 sorry
07:35 < s_mosher> it's typed as larger than uint64 internally before the
subtraction takes effect, and it stays that way, sadly
07:37 -!- Ibw_ [n=isaac@cpe-67-241-42-134.twcny.res.rr.com] has quit [Remote
closed the connection]
07:40 -!- decriptor [n=decripto@53.250.sfcn.org] has quit [Read error: 113 (No
route to host)]
07:41 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection]
07:42 < tav> s_mosher: i'd be biased as to which is clearer ;p
07:44 -!- djanderson [n=dja@74.221.71.42] has quit [Read error: 145 (Connection
timed out)]
07:44 -!- s_mosher [n=smosher@76.64.157.4] has quit ["Leaving"]
07:44 < Zeffrin> so why does { var bla uint64 = 0; bla ^= bla;
fmt.Printf("%d", bla); } print 0, but then if I change to fmt.Printf("%d", ^bla);
it prints as the max number?
07:44 < Zeffrin> shouldnt ^= be doing the same thing as ^ except also
storing the result back into itself or something?
07:45 -!- fosho_ [n=notroot@ool-43570f3c.dyn.optonline.net] has quit [Read error:
60 (Operation timed out)]
07:46 < tricky> did you try bla = ^bla?
07:47 < Zeffrin> no, but that does work, isnt it the same thing?
07:47 -!- mizai [n=mizai@164.107.141.200] has joined #go-nuts
07:47 < tricky> i guess not hehe :)
07:49 -!- lux` [n=lux@151.54.240.211] has joined #go-nuts
07:53 -!- SRabbelier [n=SRabbeli@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
07:53 -!- hackbench [n=hackbenc@78.176.19.128] has joined #go-nuts
07:57 -!- s_mosher [n=smosher@bas1-ottawa10-1279302916.dsl.bell.ca] has joined
#go-nuts
07:58 < s_mosher> I love it when stuff breaks
07:58 < s_mosher> tav, why so?
07:59 -!- Zeffrin [n=zeffrin@203.141.132.221.static.zoot.jp] has quit ["home time
yay"]
08:02 < tav> s_mosher: well, that's how i think of "maxint", so it's the
most natural expression of it -- for me at least
08:05 < s_mosher> the only problem with it is that in that context go messes
up the type
08:05 < s_mosher> besides ^0 should be the same thing anyway
08:05 < s_mosher> although the type gets messed up there too
08:05 < tav> you probably want to define it as a const ;p
08:08 -!- crashR [n=crasher@codextreme.pck.nerim.net] has joined #go-nuts
08:08 < tav> s_mosher: btw, how exactly does go mess up the type?
08:09 < s_mosher> constant 18446744073709551615 overflows int
08:09 < s_mosher> using autodecl
08:11 < tav> const foo uint64...  ?
08:12 < tav> autodecl ?
08:12 < s_mosher> x := foo;
08:12 < s_mosher> but
08:12 < s_mosher> obviously it was untyped
08:12 < s_mosher> so all that nonsense
08:13 < s_mosher> but I mean if you're using a typed constant, who cares how
you got there?  so long as it's named appropriately
08:15 -!- akheron [n=akheron@lilja.asteriski.fi] has quit [Read error: 104
(Connection reset by peer)]
08:15 -!- akheron [n=akheron@lilja.asteriski.fi] has joined #go-nuts
08:16 -!- tibshoot [n=tibshoot@linagora-230-146.pr0.nerim.net] has joined #go-nuts
08:18 -!- shuaib [n=shuaib@unaffiliated/shuaib] has quit [Read error: 110
(Connection timed out)]
08:19 -!- bentley` [n=bentley`@97-119-167-212.albq.qwest.net] has joined #go-nuts
08:19 -!- rob| [n=rob@95-90-45-206-dynip.superkabel.de] has joined #go-nuts
08:19 -!- msbranco_ [n=msbranco@64-172.61-188.cust.bluewin.ch] has joined #go-nuts
08:19 -!- nbaum [n=nathan@84.45.115.9] has joined #go-nuts
08:19 -!- irc [n=irc@209.17.191.58] has joined #go-nuts
08:19 -!- hallsa_ [n=shane@miles.jfet.net] has joined #go-nuts
08:19 -!- bockmabe [n=B@miles.jfet.net] has joined #go-nuts
08:19 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts
08:19 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has joined #go-nuts
08:19 -!- Amaranth [n=travis@ubuntu/member/Amaranth] has joined #go-nuts
08:19 -!- Raziel2p [n=Raziel2p@ti0032a380-dhcp0316.bb.online.no] has joined
#go-nuts
08:19 -!- AndrewBC [n=Andrew@97.93.242.12] has joined #go-nuts
08:19 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts
08:19 -!- Killerkid [n=l1am9111@host86-132-22-153.range86-132.btcentralplus.com]
has joined #go-nuts
08:19 -!- pilt [n=pilt@h-60-10.A163.priv.bahnhof.se] has joined #go-nuts
08:19 -!- p0g0_ [n=pogo@unaffiliated/p0g0] has joined #go-nuts
08:19 -!- gnibbler [n=duckman@124-168-35-89.dyn.iinet.net.au] has joined #go-nuts
08:19 -!- vz [n=vz@static133-147.adsl.no] has joined #go-nuts
08:19 -!- ned [n=ned@c-76-19-208-96.hsd1.ma.comcast.net] has joined #go-nuts
08:19 -!- deufrai [n=deu@www.wardsback.org] has joined #go-nuts
08:19 -!- rndbot [n=bot@wikipedia/Gracenotes] has joined #go-nuts
08:19 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-nuts
08:19 -!- jorendorff [n=jorendor@c-76-22-141-17.hsd1.tn.comcast.net] has joined
#go-nuts
08:19 -!- soul9 [n=none@unaffiliated/johnnybuoy] has joined #go-nuts
08:19 -!- ivan` [n=ivan@unaffiliated/ivan/x-000001] has joined #go-nuts
08:19 -!- smcq [n=smcq@smcq.net] has joined #go-nuts
08:19 -!- mjard [n=k@70.114.138.168] has joined #go-nuts
08:19 -!- sahazel [n=sah@64.13.131.178] has joined #go-nuts
08:19 -!- tgall_foo [n=tgall@gentoo/developer/dr-who] has joined #go-nuts
08:19 -!- cworth [n=cworth@u15218177.onlinehome-server.com] has joined #go-nuts
08:19 -!- alus [n=gah@64.13.131.178] has joined #go-nuts
08:19 -!- mpl [n=mpl@smgl.fr.eu.org] has joined #go-nuts
08:20 -!- trickie [n=trickie@94.100.112.225] has joined #go-nuts
08:24 -!- existsec_ [n=existsec@76-228-31-64.lightspeed.frokca.sbcglobal.net] has
quit [Read error: 104 (Connection reset by peer)]
08:28 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit []
08:28 -!- The_Doctor [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has quit
["Leaving..."]
08:28 -!- Zeffrin [n=no@110-175-179-56.tpgi.com.au] has joined #go-nuts
08:28 -!- snake__ [n=snake@80.95.37.238] has quit [Remote closed the connection]
08:35 -!- hackbench [n=hackbenc@78.176.19.128] has quit [Read error: 110
(Connection timed out)]
08:40 < alc> > fmt.Printf("%b", ^uint64(0))
08:40 < rndbot>
1111111111111111111111111111111111111111111111111111111111111111
08:40 < uriel> welcome back rndbot!
08:41 -!- Guest91091 [n=blee@85.11.190.15] has joined #go-nuts
08:41 < __ed> > fmt.Printf("%b", ~uint64(0))
08:41 < rndbot> <Error: the OCOM operator is ^>
08:41 < __ed> OCOM ?
08:41 < alc> one's complement
08:42 < __ed> oh ok, and what's XOR ?
08:42 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts
08:42 < alc> still ^
08:42 < alc> @eval 15 ^ 7
08:42 < rndbot> 8
08:43 < __ed> ok ok, they distincts XOR from OCOM by the unary!/binary
operator ?
08:43 < __ed> nice idea :)
08:43 < alc> i think so
08:43 -!- existsec [n=existsec@76.228.31.64] has joined #go-nuts
08:44 < __ed> but that's overload the langage when trying to do something
like that: 12 ^ ^2
08:44 < __ed> @eval 12 ^ ^2
08:44 < rndbot> -15
08:44 < __ed> @eval 12 ^^ 2
08:44 < rndbot> -15
08:44 < __ed> neat :>
08:44 -!- mitchellh [n=mitchell@76.95.29.3] has joined #go-nuts
08:45 < __ed> I though we had to parenthesis this.  12 ^ (^2) ;P
08:46 < droid001> > const maxint64 uint64 = (1 << 64) - 1;
fmt.Printf(" %b", maxint64);
08:46 < rndbot>
1111111111111111111111111111111111111111111111111111111111111111
08:47 -!- kaigan|work
[n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined
#go-nuts
08:47 < vegai> heh.
08:47 < vegai> also that didn't take long.
08:48 < vegai> anyone working at a bittorrent lib?
08:49 < __ed> vegai: why ?
08:49 < alc> @eval (1<<64)-1 == 1<<64-1 // bit shift has higher
precedence than +- in go, which is different from c
08:49 < rndbot> <Error: syntax error near 1>
08:50 < __ed> @eval (1<<64)-1 == 1<<64-1
08:50 < rndbot> true
08:51 < alc> @eval 1 // cant use comment?
08:51 < rndbot> <Error: syntax error near 1>
08:52 < droid001> @eval 1; //bla
08:52 < rndbot> <Error: syntax error near 1>
08:52 -!- p0g0__ [n=pogo@unaffiliated/p0g0] has joined #go-nuts
08:54 < __ed> @eval 1 /* bla */
08:54 < rndbot> 1
08:54 < __ed> :))
08:54 < droid001> ;)
08:54 < __ed> the GO code is inline to be compiler
08:54 < __ed> // doesn't make sens.
08:54 < __ed> inlined*
08:56 -!- p0g0_ [n=pogo@unaffiliated/p0g0] has quit [Read error: 110 (Connection
timed out)]
08:57 -!- awishformore [n=awishfor@149.156.89.221] has joined #go-nuts
08:57 < alc> > print("hello") // blah
08:57 < rndbot> hello
08:58 -!- Fraeon [n=kzer-za@212.246.65.153] has joined #go-nuts
08:58 < kaigan|work> > /* print("hello") */
08:58 < rndbot> <no output>
08:58 < vegai> __ed: because I'm planning to.
08:59 < __ed> vegai: look at the Qt bittorrent client exemple
08:59 < __ed> vegai: the whole stuff is explainned, commented, and
simplified.
09:00 < vegai> I also have libtorrent, libbt, monotorrent that I'm looking
at
09:00 < vegai> perhaps the original bittorrent client too
09:00 < vegai> and the specs, of course
09:00 < vegai> the basics are rather simple, but I bet it'll be a bit
difficult to get it to act properly
09:01 < __ed> you wanna rewrite a bit torrent lib in go ?
09:02 < vegai> write from scratch, yes.
09:03 -!- mizai [n=mizai@164.107.141.200] has quit [Read error: 110 (Connection
timed out)]
09:03 < vegai> meh, shouldn't have opened my big mouth before I have some
code in
09:03 < vegai> never a good idea, that.
09:04 -!- mizai [n=mizai@rhou-164-107-213-187.resnet.ohio-state.edu] has joined
#go-nuts
09:04 * Smergo writes down vegais new commitments
09:05 < uriel> vegai: mjl has a bt client in Limbo which should probably be
easy to translate to Go
09:06 < uriel> vegai: and let me know when you have something going, so I
can add a link to go-lang.cat-v.org
09:08 -!- raphael [n=rgb@82.231.40.223] has joined #go-nuts
09:08 < vegai> http://www.ueber.net/code/r/torrent this one, I suppose
09:08 < vegai> yeah, I will
09:10 < mpl> vegai: yes, that's the one.
09:11 -!- XniX23 [n=XniX23@89-212-10-29.dynamic.dsl.t-2.net] has joined #go-nuts
09:11 < jessta> vegai: ah, I started writing a bittorrent client too
09:12 < vegai> jessta: which do you prefer, competition or cooperation?  :)
09:13 < tricky> cooperation till he gets all your best ideas then breaking
free and being the competition !
09:14 < jessta> well, it's all a bit of a mess at the moment, I wrote e
bencode encoder/decoder and I'm starting on the DHT protocol
09:16 < vegai> repo anywhere?
09:16 < tav> tricky: lol
09:16 -!- Guest91091 [n=blee@85.11.190.15] has quit [Client Quit]
09:17 -!- melba [n=blee@unaffiliated/lazz0] has joined #go-nuts
09:17 < uriel> jessta: don't do dht, use standard trackers by default
09:18 < uriel> jessta: the state of dhts in bt is still rather immature, and
supporting standard trackers is trivial
09:18 < uriel> the p2p transfer protocol is the interesting/tricky bit
09:18 -!- mxcl [n=mxcl@94-193-125-246.zone7.bethere.co.uk] has left #go-nuts []
09:19 < sladegen> > a:=make([]int, 1) ; a[2]=1
09:19 < rndbot> <no output>
09:20 < sladegen> shouldn't that be <no output></no output>?
09:21 < tricky> lol
09:21 < tricky> if it was my bot it would say "Segmentation Fault" when
there was no output
09:21 < tricky> to throw people off :)
09:22 < sladegen> or "sh-1.2.0>"
09:22 < tricky> root@localhost>
09:22 < tricky> and you would get people trying some funny stuff :)
09:22 -!- zordsdavini [n=zordsdav@213.197.191.154] has joined #go-nuts
09:23 < sladegen> #
09:23 < s_mosher> > f(); } func f() { println("blah"); }
09:23 < rndbot> <Error: syntax error near "<string>">
09:23 < sladegen> > rm -rf /
09:23 < rndbot> <Error: syntax error near rf>
09:24 < s_mosher> @eval f(); } func f() { println("blah"); }
09:24 < rndbot> <Error: syntax error near f, syntax error near
"<string>">
09:25 < s_mosher> there goes my theories on the line comment problem
09:26 < KirkMcDonald> @eval 12); fmt.Println("foo"
09:26 < rndbot> <Error: Expression not contained>
09:26 < KirkMcDonald> Heh.
09:27 < jessta> vegai: http://github.com/jessta/gobit there you go
09:27 < sladegen> > } func foo() { print("hmm") } main() { foo()
09:27 < rndbot> <Error: syntax error near main>
09:28 -!- mitchellh [n=mitchell@76.95.29.3] has quit ["Leaving."]
09:28 < KirkMcDonald> @eval main()
09:28 < rndbot> <Error: main() used as value>
09:28 < KirkMcDonald> Ah. Of course.
09:29 -!- savy [n=z@z.dark.sk] has quit [Remote closed the connection]
09:30 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts
09:30 < sladegen> > foo() } func foo() { print("hmm") } func goo() {
print("boo")
09:30 < rndbot> <Error: Statements not contained>
09:32 < sladegen> > foo() } func foo() { print("hmm") } {
09:32 < rndbot> <Error: syntax error near "<string>">
09:32 < Ycros> sladegen: ha, I already tried that
09:33 < sladegen> s_mosher was first this lapse of a moment.
09:36 -!- xjih78 [i=z0r0@90.154.213.217] has quit [Read error: 60 (Operation timed
out)]
09:36 < vegai> jessta: cheers
09:39 -!- xjih78 [i=z0r0@87-126-211-86.btc-net.bg] has joined #go-nuts
09:43 < sladegen> > foo() }() func foo() { print("hmm")
09:43 < rndbot> <Error: syntax error near foo>
09:46 < alc> jessta: gotorrent.go: MaxRequestSize = 2 ^ 14; // you intended
to mean xor or 2's power (ie.  1 << 14)?
09:47 < alc> jessta: also MaxInRequestSize = 2 ^ 17;
09:47 < jessta> alc: ah, yeah I did mean 2's power
09:47 < alc> gotcha :p
09:48 < jessta> alc: thanks
09:48 < alc> np
09:52 -!- hcatlin [n=hcatlin@host81-154-246-241.range81-154.btcentralplus.com] has
joined #go-nuts
09:58 -!- mizai [n=mizai@rhou-164-107-213-187.resnet.ohio-state.edu] has quit
[Read error: 110 (Connection timed out)]
10:08 -!- dju [i=dju@80.236.37.39] has joined #go-nuts
10:10 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits:
msbranco_, keeto, rob|, smcq, triplez, Killerkid, Raziel2p, jorendorff, nbaum,
ned, (+22 more, use /NETSPLIT to show all of them)
10:11 -!- def [n=def@pro75-6-88-185-121-188.fbx.proxad.net] has joined #go-nuts
10:11 -!- Netsplit over, joins: msbranco_
10:12 -!- Netsplit over, joins: rndbot, Gracenotes, soul9, hcatlin, bentley`,
rob|, nbaum, Guest68279, hallsa_, bockmabe (+21 more)
10:15 -!- tomestla [n=tom@78.251.201.209] has joined #go-nuts
10:16 -!- zordsdavini [n=zordsdav@213.197.191.154] has quit ["leaving"]
10:35 -!- tomestla [n=tom@78.251.201.209] has quit [Read error: 110 (Connection
timed out)]
10:37 -!- GeoBSD [n=geocalc@lns-bzn-22-82-249-100-251.adsl.proxad.net] has joined
#go-nuts
10:37 < exch> morning
10:37 -!- afurlan [n=afurlan@200.160.16.18] has joined #go-nuts
10:40 < uriel> good morning exch
10:40 < tav> hola
10:44 < uriel> jessta: btw, been reading your blog, so far I like it
10:49 -!- malkomalko [n=malkomal@96.232.72.138] has joined #go-nuts
10:53 < jessta> uriel: thanks, most people who look at my blog are either
searching for a python error message or searching for "sluty girls"
10:54 < rog> is there an archive of go contributions anywhere?
10:55 < rog> i wonder if someone's done an ultra-simple bit-pushing,
mouse-reading GUI interface
10:55 < kve> http://go-lang.cat-v.org/ like this?
10:56 < rog> yeah, that
10:56 -!- nomism [n=nomism@e179244226.adsl.alicedsl.de] has joined #go-nuts
10:56 < rog> what's the name of jessta's blog?
10:56 -!- nomism [n=nomism@e179244226.adsl.alicedsl.de] has left #go-nuts
["Verlassend"]
10:57 < TenOfTen> jessta: related topics?  ;)
10:59 < jessta> TenOfTen:
http://blog.jessta.id.au/2007/05/vaccine-encourages-young-girls-to-have.html
11:01 < TenOfTen> yeah i heard about that vaccine proposal here in sweden,
but not about the crazy americans wanting to stop it.
11:01 < uriel> rog: I guess for ultra-simple bit-pushing and mouse-reading
SDL is probably the best option
11:02 < uriel> the pkg/exp/draw interface just got an x11 backend, but I
don't think it has any way to handle input
11:02 < uriel> (didn't check though)
11:05 < rog> uriel: sdl doesn't look like it does input.  from the looks of
the code, it looks like it doesn't do much other than bit-pushing.
http://code.google.com/p/gosdl/source/browse/trunk/sdl.go
11:06 < rog> oops wrong sdl wrapper
11:06 < uriel> there are two sdl wrappers, so who knows, you might be lucky
;)
11:07 < rog> banthar's one is lots better
11:07 < rog> i wonder if it's thread safe
11:08 < TenOfTen> dont think it's doing opengl well yet, he split it into
another repo there
11:08 -!- tomestla [n=tom@78.251.141.253] has joined #go-nuts
11:08 < uriel> rog: I suspect not, but who knows..
11:09 -!- awishformore [n=awishfor@149.156.89.221] has quit [Read error: 110
(Connection timed out)]
11:10 < yiyus> uriel: if you want, you can add
http://hg.4l77.com/go/brainfuck/ and http://hg.4l77.com/go/ngaro/ to your page
11:10 < yiyus> go/brainfuck is finished, i think
11:10 -!- awishformore [n=awishfor@149.156.89.221] has joined #go-nuts
11:11 < yiyus> go/ngaro needs some more work, but it can already run a
simple hello world image
11:11 < yiyus> it also boots a retroforth image, but something is wrong with
the image i got...
11:12 < uriel> yiyus: oh, shit, I forgot!  sorry, will do right away
11:14 < uriel> yiyus: can you give me a one-line description for each?
11:15 -!- tomestla1 [n=tom@78.251.141.253] has joined #go-nuts
11:15 -!- tomestla [n=tom@78.251.141.253] has quit ["Leaving."]
11:16 < yiyus> go/brainfuck: brainfuck virtual machine
11:17 < yiyus> go/ngaro: ngaro virtual machine (to run retroForth images)
11:17 < yiyus> you could link to http://github.com/crcx/ngaro for further
explanations
11:18 < uriel> ok, added both
11:19 < uriel> btw, your hg setup is a bit messed up, it adds back the
annoying hgwebdir.cgi thing to the path some times
11:19 < uriel> (I had the same problem with hg.cat-v.org, but can't remember
how i fixed it :/)
11:20 < yiyus> i know, i should fix hg, the header is wrong too
(inconsistent with the rest of pages)
11:20 < yiyus> my todo list is long and scary :)
11:23 -!- tomestla1 [n=tom@78.251.141.253] has quit ["Leaving."]
11:23 -!- tomestla [n=tom@78.251.141.253] has joined #go-nuts
11:26 -!- zeroXten [n=zeroXten@0x10.co.uk] has joined #go-nuts
11:26 < zeroXten> o/
11:27 -!- dju [i=dju@80.236.37.39] has quit ["Quitte"]
11:34 -!- mizai [n=mizai@164.107.141.200] has joined #go-nuts
11:39 -!- smooge [n=smooge@int.smoogespace.com] has quit [Remote closed the
connection]
11:40 < uriel> yiyus: heh, no worries, you are adoing an awesome job
11:40 < uriel> (you certainly manage to get more done than me)
11:41 < uriel> hey zeroXten
11:41 < zeroXten> heya uriel
11:41 * zeroXten has only just found out about go :)
11:49 -!- afurlan [n=afurlan@200.160.16.18] has quit [Remote closed the
connection]
11:49 -!- [Pete_27] [n=noname@115.64.1.61] has quit ["leaving"]
11:49 -!- [Pete_27] [n=noname@115.64.1.61] has joined #go-nuts
11:50 < XniX23> zeroXten: welcome
11:51 -!- afurlan [n=afurlan@scorpion.mps.com.br] has joined #go-nuts
11:52 < zeroXten> thanks XniX23.  its sounds like an interesting way of
doing things.  All i need now is to think of a use for playing :)
11:53 < XniX23> for playing with go?
11:53 < zeroXten> r
11:54 < XniX23> r?
11:54 < zeroXten> r..  arrrggh...  pirate speak for "yes"
11:54 < XniX23> oh sorry, im not really into pirates
11:55 < zeroXten> heh, me neither, but its convinient on irc
11:55 < uriel> arrrrr!!
11:55 < uriel> pirates rule!
11:55 < XniX23> only jack
11:55 < zeroXten> but ninjas kick ass
11:56 < tav> hrhr
11:59 < zeroXten> heh
12:00 < zeroXten> so, whats the one thing i "must know" about Go? (a
colleague told me about the concurrency being really simple - all the threading bs
is hidden).
12:01 -!- chickamade [n=chickama@222.254.2.3] has joined #go-nuts
12:04 < jessta> zeroXten: yeah, channels and goroutines are awesome
12:05 < zeroXten> i have yet to come across channels
12:09 < spikebike> heh
12:09 < spikebike> they go so well together
12:09 < zeroXten> have just started reading about em :)
12:09 < spikebike> zeroXten: I couldn't call the threading bs hidden
12:09 < zeroXten> oh ok
12:09 < spikebike> I'd watch the rob pike 1 hour video on go
12:10 < zeroXten> hmm, tonight perhaps with a glass of wine
12:10 < spikebike> threading is much easier, but by no means transparent
12:11 < TenOfTen> zeroXten: slow drinker?
12:11 < zeroXten> na, married
12:12 -!- cactii [n=t@87.252.230.12] has joined #go-nuts
12:13 < spikebike> there are slides around that are pretty similar if you
are in a rush
12:13 < zeroXten> ok
12:15 < zeroXten> think Go would be good for writing SOAK test software?
Using the concurrency in load testing could be very handy
12:16 -!- tor7 [n=tor@c-987a71d5.04-50-6c756e10.cust.bredbandsbolaget.se] has
joined #go-nuts
12:26 -!- bennabi [n=Miranda@41.104.102.111] has joined #go-nuts
12:27 -!- mizai [n=mizai@164.107.141.200] has quit [Read error: 110 (Connection
timed out)]
12:28 -!- tomestla [n=tom@78.251.141.253] has quit [Read error: 110 (Connection
timed out)]
12:30 -!- mizai [n=mizai@rhou-164-107-213-187.resnet.ohio-state.edu] has joined
#go-nuts
12:38 -!- ritolatu [n=ritolatu@84.251.84.201] has quit [Remote closed the
connection]
12:44 < Zeffrin> the talk was good, well worth the hour
12:44 < spikebike> ya
12:44 < Zeffrin> though he sped through a lot, i dont think I learned how to
use any of it from there but it was good for seeing whats available
12:45 -!- chickamade [n=chickama@222.254.2.3] has quit ["Leaving"]
12:45 < hcatlin> Ok, if someone can take a look at this, I'd appreciate it.
12:45 < hcatlin> http://gist.github.com/243988
12:45 < hcatlin> When I execute this code, I expect e to remain around
12:45 < hcatlin> however, its leaving the scope
12:45 < hcatlin> this is a trite example of a real problem i'm having
12:46 < tricky> e := new(Element);
12:46 < tricky> i suspect thats creating a local scoped version of it
12:46 < hcatlin> how do i get it to make a non-locally-scoped version?
12:46 < def> e = new(Element)
12:46 < tricky> take aay the :
12:46 < hcatlin> OHHHH
12:46 < tricky> away*
12:46 < hcatlin> riiiiiight
12:46 < Zeffrin> losing the pointer outside of the if {}
12:46 < hcatlin> because := is saying var over again
12:46 < hcatlin> ahhhhhhhhhhhhhhhhhhhhhh
12:46 < tricky> exactly
12:47 < hcatlin> AHHHHHHHHHHHHHHHH
12:47 < hcatlin> sorry
12:47 < hcatlin> yes, now it works
12:47 < hcatlin> dang it.
12:47 < hcatlin> having fun porting my template language to go.
12:47 < Zeffrin> intersting that doesn't give some kind of e already
declared error at compile time?
12:48 < tricky> not really
12:48 < hcatlin> oh man.
12:48 < hcatlin> so, i did a huge refactor of the code
12:48 < Zeffrin> also the var on the i :0 is redundant, you can either var x
int or x := <some int>
12:48 < hcatlin> (you know, new language to learn and all)
12:49 < hcatlin> Zeffrin: oh yeah, i had that fixed in my running sample...
forgot it on the gist
12:49 < hcatlin> and apparently this was the only refactor bug
12:49 < hcatlin> it actually seems to work now.
12:49 < hcatlin> zamazing.
12:49 < hcatlin> (how rarely that happens in programming)
12:49 -!- jordyd [n=irchon@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
12:50 -!- jordyd [n=irchon@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has quit
[Remote closed the connection]
12:51 < Zeffrin> > type Element struct { x int; }; var e Element; e.x =
5; fmt.Printf("%d", e.x);
12:51 < rndbot> 5
12:54 < Zeffrin> it's interesting that Rob Pike must be a hardcore comp sci
genius, yet he's a pretty decent speaker
12:55 < Zeffrin> terrible stereotype but the two skills are generally, not
naturally found together
12:57 -!- jordyd [n=jordyd@99.177.65.75] has joined #go-nuts
12:58 -!- gislan [n=gislan@host-81-190-16-19.torun.mm.pl] has joined #go-nuts
12:58 -!- ritolatu [n=quassel@84.251.84.201] has joined #go-nuts
13:00 < tricky> i'm a bad computer scientist and a bad speaker
13:00 < tricky> what are the odds of that ?!
13:01 < Zeffrin> odds might be better, im teh same :)
13:01 < nbaum> No idea.  I'm a bad statistician.
13:01 < Zeffrin> haha nbaum
13:02 < tricky> lol
13:05 < zeroXten> I'm bad
13:05 < zeroXten> eep!
13:05 * zeroXten moonwalkes
13:05 < zeroXten> -e
13:10 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts
13:14 -!- HeavensRevenge
[n=quassel@CPE001d0fe73b7d-CM00111ae5c642.cpe.net.cable.rogers.com] has joined
#go-nuts
13:14 < HeavensRevenge> hello
13:14 -!- alexf [n=alexf@99.54.139.5] has quit [Read error: 131 (Connection reset
by peer)]
13:14 < tricky> i guess someone needs to write a bot to greet new users :D
13:15 < HeavensRevenge> i just had an idea, can you integrate go files to
have a #!/$GOBIN execution line # 1 to be jit-compiled then immediately run?
13:16 < HeavensRevenge> as in a scripting language, because go compiles so
fast, it should be able to be run like a scripting language
13:16 < HeavensRevenge> making the file +x and doing the a jit compile+run +
any paramaters passed in
13:17 < tricky> i'm sure if you wanted to no-one would stop you from doing
that
13:17 < tricky> they might as you "BUT WHY?!"
13:17 < HeavensRevenge> then go files could just be run
13:17 < tricky> ask*
13:17 < HeavensRevenge> compiling a super redundant ultra fast compile seems
like a waste to me
13:18 < TenOfTen> HeavensRevenge: you can script it...
13:18 < HeavensRevenge> i dont mind compiling, but i just think having a
#!/bin/gonow execution declaration would be the best thing to add
13:19 -!- keeto [n=keeto@121.54.92.149] has quit ["http://keetology.com/"]
13:19 < TenOfTen> start your file with #/* then have gc $0; exit and */
13:19 < TenOfTen> or just run it instead of exit
13:19 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts
13:19 < TenOfTen> ehm, my trick might only work for C btw...
13:19 < TenOfTen> and on linux
13:20 < HeavensRevenge> inside a huge azz comment??  :P
13:20 < HeavensRevenge> i want to note, im not a pythonist
13:21 < TenOfTen> well it's a trick, i didnt say it was good
13:21 < HeavensRevenge> but i think a concurrent script capable language
will be a winner, and to be able to call a go file to execute directly like a
runghc or python, i think would be the only thing to add to go which would make it
better than it already is
13:22 < TenOfTen> i know another trick too if youre on linux...  might work
on other OS's too.  associate the file suffix with an action to compile and run
13:23 < tricky> wel if you just want to run single files you can just write
your own go.sh file and pass the file as a param to it
13:23 < TenOfTen> or have the last action in your Makefile be to run the
thing
13:23 < HeavensRevenge> yes...  but im suggesting this to be added to the
trunk
13:23 -!- Guest31191 [n=chatzill@9.111.218.87.dynamic.jazztel.es] has joined
#go-nuts
13:23 < TenOfTen> HeavensRevenge: yeah, that might be a nice idea
13:23 -!- keeto [n=keeto@121.54.92.149] has quit [Client Quit]
13:24 < HeavensRevenge> ability to call a go file, jit it and execute
13:24 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts
13:24 < HeavensRevenge> go is wikid fast to compile...  its basically
begging to be used that way
13:25 < TenOfTen> # on the first line must be allowed by go then, since
that's what linux reads
13:25 * TenOfTen ignores other OS's ;)
13:25 < HeavensRevenge> well, #!  seems like a more usual option
13:26 < HeavensRevenge> # as byte 1 should be able to parse
13:26 < Zeffrin> once you've finished developing your thing whatever it is
wouldn't you just want to be running the executable from then on?
13:27 -!- Snert [n=achowe@puff.snert.com] has joined #go-nuts
13:27 -!- keeto [n=keeto@121.54.92.149] has quit [Client Quit]
13:27 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts
13:27 < TenOfTen> there's a slight complication i think, with python, the
first file you run is treated differently from the rest, in respect to namespace
and generated bytecode files
13:28 < HeavensRevenge> Zeffrin that is something to consider, but i guess
it depends how slow go becomes at compiling
13:29 -!- alexf [n=alexf@adsl-99-24-248-96.dsl.klmzmi.sbcglobal.net] has joined
#go-nuts
13:29 -!- silenius [n=jl@192.166.201.90] has joined #go-nuts
13:29 < HeavensRevenge> whats the slowest single binary youve seen compile
beyond the compiler itself?
13:29 < TenOfTen> i would say your suggestion is only interesting for
single-file applications, dont you think?
13:31 < Zeffrin> i can see how during development it'd be nice not to have
to type make before running the thing but after that failing to see a reason
13:31 < HeavensRevenge> well i really think it would be a good thing to have
as a feature
13:31 < TenOfTen> Zeffrin: make && ./run :) have that in shell history and
just arrow up
13:31 < Zeffrin> TenOfTen suggested you can associate an extension with an
action locally to compile and run, I think this is a good solution
13:32 < TenOfTen> yeah, there's some crazy wine-i-fied linux distro that did
that with .exe files...  starting them with wine
13:32 < HeavensRevenge> yeesh
13:34 < HeavensRevenge> i already have a little script to call which does a
compile link and execute in 1, but i stand by requesting a #!  execution call as a
universal language feature of go
13:34 < HeavensRevenge> or maybe a descussion
13:36 < sladegen> binfmt_misc
13:36 < TenOfTen> sladegen: aye, thats it
13:36 < jessta> Zeffrin: you could put a line to run the program in your
makefile, then you just type 'make' to compile and run
13:37 < TenOfTen> you can make a chmod +x hello.jpg then ./hello.jpg and
itll start gimp for example
13:37 < HeavensRevenge> a scripting languages have an advantage of not
needing an extra step, but where i see a potential win is sending a restructured
go file out to a cluster of remote servers and all have their binary jitted on
arrival before execution
13:37 < TenOfTen> jessta: already suggested that ;)
13:38 < HeavensRevenge> compilation sort of sets the architecture in
stone(bianry)
13:38 -!- ni| [n=ni|@cpe-72-191-33-69.satx.res.rr.com] has joined #go-nuts
13:39 < HeavensRevenge> but having a script like behaviour allows the
execution of the same result be executed on multiple architectures with close
enough results able to be used as an aggregate
13:40 < HeavensRevenge> the fact that go is a speed compile, its as if our
compilation never even existed anyway :P just human interaction which is unneeded
i think
13:41 -!- Guest31191 [n=chatzill@9.111.218.87.dynamic.jazztel.es] has quit
["ChatZilla 0.9.85 [Firefox 3.5.5/20091102134505]"]
13:41 < HeavensRevenge> but, glad i got a chance to share what poped into my
head, before i have to go jump in the shower to really start the day
13:43 -!- chickamade [n=chickama@222.254.2.3] has joined #go-nuts
13:44 < Zeffrin> Distribution made me think of .net and why I liked the JIT
compiler it has, but I'm just some guy at home and halfway to loaded..  not sure
theres a place to post ideas for feature requests yet?
13:44 < tricky> i keep most things that pop into my head a secret
13:44 < tricky> call it a public service if you like
13:45 < TenOfTen> it's a secret to everybody
13:50 * sladegen bites his brain off.
13:51 < tricky> we're going to need to hl2 bindings for go to get rid of thi
headcrab
13:51 * tricky stares at sladegen.
13:53 -!- ikke [n=1kk3@unaffiliated/ikkebr] has joined #go-nuts
13:54 < jessta> Zeffrin: distribution?  you just distribute the sourcecode
13:55 -!- tricky [n=Knave@dsl-240-187-198.telkomadsl.co.za] has quit ["fight dirty
today, to fight again tomorrow"]
13:58 -!- elmarco [n=elmarco@83.245.167.151] has left #go-nuts []
14:01 -!- General1337 [n=support@71.84.247.187] has joined #go-nuts
14:03 -!- rog [n=rog@89.240.136.210] has quit [Remote closed the connection]
14:03 -!- rog [n=rog@89.240.136.210] has joined #go-nuts
14:07 -!- einsidan [n=einsidan@194.144.68.248] has joined #go-nuts
14:10 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts []
14:10 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-nuts
14:10 -!- Ryan_ [n=ryan@75.88.118.216] has joined #go-nuts
14:14 -!- Ryan_ [n=ryan@75.88.118.216] has quit [Client Quit]
14:14 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: hcatlin,
keeto, afurlan, rob|, [Pete_27], smcq, Killerkid, triplez, Raziel2p, jorendorff,
(+25 more, use /NETSPLIT to show all of them)
14:18 -!- General13372 [n=support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Connection timed out]
14:19 -!- Netsplit over, joins: nbaum, smcq, ivan`
14:19 -!- hallsa [n=shane@miles.jfet.net] has joined #go-nuts
14:19 -!- Netsplit over, joins: bockmabe, deufrai
14:19 -!- Netsplit over, joins: pilt, AndrewBC, gislan
14:19 -!- rob| [n=rob@95.90.45.206] has joined #go-nuts
14:19 -!- Netsplit over, joins: Killerkid
14:19 -!- Netsplit over, joins: Amaranth, afurlan, ned, [Pete_27]
14:19 -!- Raziel2p [n=Raziel2p@88.89.66.63] has joined #go-nuts
14:19 -!- cworth [n=cworth@82.165.184.25] has joined #go-nuts
14:19 -!- irc [n=irc@209.17.191.58] has joined #go-nuts
14:20 -!- Netsplit over, joins: Gracenotes, ikke
14:20 -!- Netsplit over, joins: gnibbler, sahazel
14:20 -!- Netsplit over, joins: alus
14:21 -!- Netsplit over, joins: hipe
14:24 -!- loureiro [n=loureiro@189.2.128.130] has joined #go-nuts
14:24 -!- mpl [n=mpl@213.251.175.204] has joined #go-nuts
14:24 -!- vz [n=vz@static133-147.adsl.no] has joined #go-nuts
14:25 -!- mjard [n=k@70.114.138.168] has joined #go-nuts
14:26 -!- KillerX [n=anant@gentoo/developer/KillerX] has quit ["Leaving."]
14:31 -!- ajstarks [n=ajstarks@pool-98-109-198-180.nwrknj.fios.verizon.net] has
joined #go-nuts
14:32 -!- decriptor [n=decripto@53.250.sfcn.org] has joined #go-nuts
14:34 -!- triplez [n=triplez@cm52.sigma225.maxonline.com.sg] has joined #go-nuts
14:36 -!- keeto [n=keeto@121.54.92.149] has joined #go-nuts
14:38 -!- ikke [n=1kk3@unaffiliated/ikkebr] has quit [Read error: 104 (Connection
reset by peer)]
14:39 -!- ajstarks [n=ajstarks@pool-98-109-198-180.nwrknj.fios.verizon.net] has
quit []
14:40 < nickjohnson> I think someone needs to write a utility library for Go
called 'gogadget'
14:40 < nickjohnson> Then you can "go gogadget.spotlight()"
14:41 < Norgg> "go gogadget.go()" ?
14:41 < nickjohnson> heh
14:42 < exch> hehe
14:42 < sladegen> go lola.go()
14:43 < uriel> go olag() (ok, that is not too funy)
14:44 -!- foz [n=jschmidt@modemcable105.20-80-70.mc.videotron.ca] has joined
#go-nuts
14:45 -!- lskbr [n=menezes@www.multitel.be] has joined #go-nuts
14:46 -!- randomiser [n=james@nat-studcudn-172-24-62-0.fitz.cam.ac.uk] has quit
["making the jump..."]
14:46 < garbeam> go gogirl()
14:46 < jessta> go godancer()
14:47 -!- Killerkid [n=l1am9111@host86-132-22-153.range86-132.btcentralplus.com]
has quit [Read error: 104 (Connection reset by peer)]
14:48 -!- path[l] [n=path@122.182.0.38] has quit []
14:50 -!- rajeshsr [n=rajeshsr@59.92.10.200] has joined #go-nuts
14:52 -!- maacl [n=mac@0x573526c8.virnxx17.dynamic.dsl.tele.dk] has joined
#go-nuts
14:53 -!- XniX23 [n=XniX23@89-212-10-29.dynamic.dsl.t-2.net] has quit [Remote
closed the connection]
14:55 < uriel> nickjohnson: do I get an App Engine USB drive for suggesting
you write a Go compiler for .net?  ;P
14:57 -!- path[l] [n=path@59.162.86.164] has joined #go-nuts
14:57 < nickjohnson> uriel: Heh.  No ;)
14:58 < uriel> damn!  now I need to think of an actually reasonable
suggestion :((
14:58 -!- Zeffrin [n=no@110-175-179-56.tpgi.com.au] has quit []
14:58 < nickjohnson> heh
14:59 < nickjohnson> I'm still tempted to write one.  Or maybe learn Java IL
and do it there ;)
14:59 < uriel> I wonder how doing it in Java bytecode would compare, I fear
it might be even harder :/
14:59 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has quit ["Leaving"]
14:59 < nickjohnson> Actually, there's one major advantage
15:00 < nickjohnson> You could probably use JNI with gccgo to write the
Go-to-Java compiler in Go
15:00 < uriel> ah!  nice idea
15:00 < nickjohnson> Then run it on its on source to make it self-hosting in
short order
15:00 < uriel> yea, that could work, neat
15:01 < uriel> got another idea, should I post it here, or in your blog?
15:01 < chickamade> nickjohnson: hey can I have a USB drive as the bounty?
15:02 < nickjohnson> chickamade: Heh!  Maybe.  :)
15:02 < nickjohnson> Send me your address :P
15:02 * nickjohnson hopes his bosses are okay with him giving drives away...
15:05 -!- mejja [n=user@c-49b6e555.023-82-73746f38.cust.bredbandsbolaget.se] has
joined #go-nuts
15:08 -!- rndbot [n=bot@wikipedia/Gracenotes] has joined #go-nuts
15:09 < exch> "func (l *List) Iter() <- chan interface{} {" ...  what
does the <- bit do here?  Does it make the channel read-only?
15:10 < chickamade> exch: yep
15:10 < exch> cool, thanks
15:11 -!- soul9 [n=none@unaffiliated/johnnybuoy] has joined #go-nuts
15:17 -!- foz [n=jschmidt@modemcable105.20-80-70.mc.videotron.ca] has quit
["Leaving"]
15:17 -!- Anders__ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts
15:19 -!- tgall_foo [n=tgall@gentoo/developer/dr-who] has joined #go-nuts
15:21 -!- hcatlin [n=hcatlin@host81-154-246-241.range81-154.btcentralplus.com] has
joined #go-nuts
15:22 -!- Nihathrael [n=nihathra@BAH9c24.bah.pppool.de] has joined #go-nuts
15:22 < hcatlin> so, after my Makefile runs...  i'm left with _go_.6
15:22 < hcatlin> and packagename.a
15:22 < hcatlin> ...i just want to execute main?
15:23 -!- xiaoxiaolu [n=hirc2000@121.37.9.200] has quit
["ÖйúÈ˲»ÄÜÓÀԶͣÁôÔÚÖ»¸ømIRCдBOTµÄˮƽÉÏ SunNet HIRC-2¡£"]
15:23 < hcatlin> any help on how to make this happen?
15:23 < def> you need to link it: 6l packagename.a
15:23 < tav> if any of you are on reddit, could you upvote
http://www.reddit.com/r/programming/comments/a8p9f/ciao_python_hola_go_this_hackers_detailed/
pls ?
15:23 < Gracenotes> you need a main package
15:23 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts
15:24 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has quit [Read
error: 60 (Operation timed out)]
15:24 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts
15:25 < hcatlin> ok, i'll have to read-up more on makefiles again
15:25 < hcatlin> been too long!
15:25 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has joined
#go-nuts
15:25 < def> hcatlin: I assumed you had already a main function in the
package, right?
15:26 < Gracenotes> at least, whenever I've tried to have a main function in
a package named something other than 'main', Go has complained in some form
15:26 < hcatlin> def, yeah...  i did
15:26 < hcatlin> def: it wasn't linking though..  had some weird error
15:26 -!- ikke [n=1kk3@unaffiliated/ikkebr] has joined #go-nuts
15:26 < hcatlin> i'm not trying to figure out how i'm supposed to have these
different parts setup
15:27 < hcatlin> like...  /src/Makefile src/haml/Makefile
15:27 < hcatlin> i guess main goes in /src/ and then my haml packages go in
/src/haml
15:30 -!- skelterjohn [n=jasmuth@c-71-58-123-111.hsd1.nj.comcast.net] has joined
#go-nuts
15:31 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: crakrjak,
mikejs, hipe, brrant, Amaranth, exDM69, alus, DreamCodeR, AndrewBC, msbranco_,
(+21 more, use /NETSPLIT to show all of them)
15:31 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: zeroish,
stalled_, poucet_, lolsuper_, DJCapelis, mjburgess, beneth`, loureiro, path[l],
sqweek, (+34 more, use /NETSPLIT to show all of them)
15:31 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: JoNaZ,
nsz, huf, vegai, redondos, Gussi, rup, Jerub, dj_ryan, vsmatck, (+69 more, use
/NETSPLIT to show all of them)
15:31 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: tibshoot,
akheron, idm, drhodes, Raziel2p, michaelh, emilh_, rbancroft, kfx, decriptor, (+67
more, use /NETSPLIT to show all of them)
15:31 -!- Bao [n=bao@h-200-46.A212.priv.bahnhof.se] has joined #go-nuts
15:31 -!- hnaz [n=hannes@85.214.51.133] has joined #go-nuts
15:31 -!- Hofanoff [i=hofanoff@server1.bshellz.net] has joined #go-nuts
15:31 -!- Netsplit over, joins: shawn
15:31 -!- mike [n=quassel@91.111.24.173] has joined #go-nuts
15:31 -!- Netsplit over, joins: facemelter
15:31 -!- poucet [n=poucet@li23-146.members.linode.com] has joined #go-nuts
15:31 -!- mike [n=quassel@91.111.24.173] has quit [Remote closed the connection]
15:32 -!- Netsplit over, joins: syd
15:32 -!- atsampson [n=ats@94-193-50-45.zone7.bethere.co.uk] has joined #go-nuts
15:32 -!- Netsplit over, joins: danderson
15:32 -!- jepler [n=jepler@dsl.unpythonic.net] has joined #go-nuts
15:32 -!- mode/#go-nuts [+v danderson] by ChanServ
15:32 -!- Netsplit over, joins: railbait[blowme]
15:32 -!- reppie [i=refugee@elvis.mu.org] has joined #go-nuts
15:32 -!- Netsplit over, joins: blabla
15:32 -!- whiteley [n=bart@nat/novell/x-mvjknuwlfwrszfbb] has joined #go-nuts
15:32 -!- Netsplit over, joins: t5vaha01
15:32 -!- raphael [n=rgb@did75-11-82-231-40-223.fbx.proxad.net] has joined
#go-nuts
15:32 -!- Netsplit over, joins: chaynie, dj_ryan, gnuvince
15:32 -!- tsavola [i=thain@80.81.189.233] has joined #go-nuts
15:32 -!- Netsplit over, joins: ztzg
15:32 -!- JoNaZ [n=jonaz@77.105.229.77] has joined #go-nuts
15:32 -!- gl [n=gl@88.161.126.36] has joined #go-nuts
15:32 -!- JSharpe [n=jamie@5adaeaa9.bb.sky.com] has joined #go-nuts
15:32 -!- Netsplit over, joins: mikejs
15:32 -!- TenOfTen [n=TenOfTen@c-fd25e555.04-18-73746f10.cust.bredbandsbolaget.se]
has joined #go-nuts
15:32 -!- plux [i=plux@130.238.19.25] has joined #go-nuts
15:32 -!- Netsplit over, joins: korfuri
15:32 -!- nsz [i=nsz@79.172.201.187] has joined #go-nuts
15:32 -!- jurg [i=jurg@94.229.66.117] has joined #go-nuts
15:32 -!- Netsplit over, joins: drry
15:32 -!- viirya [n=viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts
15:32 -!- Netsplit over, joins: hhg
15:32 -!- BlunderB1ss [n=BlunderB@12.54.221.117] has joined #go-nuts
15:32 -!- Netsplit over, joins: Dreamr_3
15:32 -!- strlen [n=alex@208.83.221.26] has joined #go-nuts
15:32 -!- Demp_ [i=sbnc@13.f.cali.vgames.co.il] has joined #go-nuts
15:32 -!- dho_ [n=dho@onager.omniti.com] has joined #go-nuts
15:32 -!- Netsplit over, joins: Robdgreat, rthc, shachaf, cpach, vsmatck, tromp_,
Rint, ozzloy, bsod2, dagle2 (+13 more)
15:32 -!- rthc [n=chtr@freya.dhcp.rose-hulman.edu] has quit [Killed by
ballard.freenode.net (Nick collision)]
15:32 -!- Smergo_ [n=smergo@65.110.43.110] has joined #go-nuts
15:32 -!- rthc [n=chtr@freya.dhcp.rose-hulman.edu] has joined #go-nuts
15:33 -!- Jerub_ [n=gideon@li82-123.members.linode.com] has joined #go-nuts
15:33 -!- Netsplit over, joins: nickgibbon
15:33 -!- ozzloy_ [n=ozzloy@ozzloy.lifeafterking.org] has joined #go-nuts
15:33 -!- Netsplit over, joins: drhodes, dibb, shardz, jessta, skelterjohn,
Nihathrael, tgall_foo, lskbr, triplez, decriptor (+68 more)
15:33 -!- poe_ [n=poe@void.printf.net] has joined #go-nuts
15:33 -!- anticw [n=anticw@76.126.87.56] has joined #go-nuts
15:33 -!- Gussi [n=gussi@gussi.is] has joined #go-nuts
15:33 -!- bthomson [n=bthomson@71.114.74.245] has joined #go-nuts
15:33 -!- tromp__ [n=tromp@rtc34-222.rentec.com] has joined #go-nuts
15:33 -!- jamuraa_ [n=jamuraa@c-24-118-48-176.hsd1.mn.comcast.net] has joined
#go-nuts
15:33 -!- NoOneButMe [i=znc@85.17.224.147] has joined #go-nuts
15:33 -!- awalton_ [n=awalton@76.177.53.219] has joined #go-nuts
15:33 -!- Netsplit over, joins: loureiro, Altercation
15:33 -!- monteslu_ [n=monteslu@ip68-109-171-127.ph.ph.cox.net] has joined
#go-nuts
15:34 -!- Netsplit over, joins: shasbot, ct, wiretapped, freespace, senneth,
crakrjak, exDM69
15:34 -!- malkomalko [n=malkomal@pool-96-232-72-138.nycmny.east.verizon.net] has
joined #go-nuts
15:34 -!- vsmatck1 [n=smack@64-142-40-6.dsl.static.sonic.net] has joined #go-nuts
15:34 -!- redondos [n=nnnnnnre@87.230.7.171] has joined #go-nuts
15:34 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits:
freespace, exDM69, shasbot, ct, wiretapped, senneth, crakrjak
15:34 -!- lolsuper_ [n=super_@pool-173-65-48-13.tampfl.fios.verizon.net] has
joined #go-nuts
15:34 -!- Netsplit over, joins: msw, freespace
15:35 -!- Netsplit over, joins: droid001
15:35 -!- rup [i=Rupert@deathcoil.net] has joined #go-nuts
15:35 -!- Netsplit over, joins: rhc, franksalim
15:35 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: vegai,
Jerub, vsmatck, Rint, cpach, antarus, jamuraa, roto, BlunderBuss, Demp, (+12 more,
use /NETSPLIT to show all of them)
15:35 <+danderson> hmm.
15:35 -!- Netsplit over, joins: ct
15:35 -!- senneth_ [i=senneth@equinox.oberkommando.org] has joined #go-nuts
15:35 -!- Robdgrea1 [i=rob@cqtopia.com] has joined #go-nuts
15:35 <+danderson> fascinating.
15:35 <+danderson> freenode appears to have exploded.
15:35 -!- Rint_ [i=john@static-71-244-60-125.dllstx.fios.verizon.net] has joined
#go-nuts
15:35 -!- lskbr [n=menezes@www.multitel.be] has left #go-nuts []
15:36 -!- Netsplit over, joins: mycroftiv, sqweek, kuroneko, ment, Gracenotes,
alus, mitsuhiko, brrant, hipe, sahazel (+38 more)
15:36 -!- KirkMcDonald [n=Kirk@24.143.227.33] has joined #go-nuts
15:36 -!- freespace [i=foobar@85.203.232.72.static.reverse.ltdomains.com] has quit
[Killed by sagan.freenode.net (Nick collision)]
15:36 -!- freespace [i=foobar@72.232.203.85] has joined #go-nuts
15:36 -!- crakrjak_ [n=merc@70.62.156.154] has joined #go-nuts
15:36 -!- Paradox924X [n=Paradox9@98.142.211.46] has joined #go-nuts
15:36 -!- Netsplit over, joins: zeroXten, trickie
15:36 -!- wiretapped [n=leif@pony.noisebridge.net] has joined #go-nuts
15:36 -!- ct [n=ct@plutonium.ct.id.au] has quit [Killed by douglas.freenode.net
(douglas.freenode.net (ct[i=ct@195.49.138.42] Ghosted sagan.freenode.net))]
15:36 -!- ct [n=ct@plutonium.ct.id.au] has joined #go-nuts
15:36 -!- Netsplit over, joins: roto
15:36 -!- Netsplit over, joins: mikedee_
15:36 -!- AndreSantos [n=Mandrac@20151032022.user.veloxzone.com.br] has joined
#go-nuts
15:36 -!- exDM69 [n=riku@84.34.147.150] has joined #go-nuts
15:36 < exch> was just a notice about memleak maintenance and rehubbing
15:36 -!- Netsplit over, joins: paulproteus
15:36 -!- freespac1 [i=foobar@85.203.232.72.static.reverse.ltdomains.com] has
joined #go-nuts
15:36 -!- Netsplit over, joins: roo
15:36 < zeroXten> danderson: again
15:37 -!- silenius [n=jl@yian-ho03.nir.cronon.net] has joined #go-nuts
15:37 <+danderson> ah, I lost that in the reconnect noise.
15:37 -!- Netsplit over, joins: lazzurs, huf
15:37 -!- Netsplit over, joins: tobiasu, JoLeClodo
15:37 -!- gcarrier [n=gcarrier@snibbits.net] has joined #go-nuts
15:37 -!- Netsplit over, joins: wm_eddie, laprice
15:37 -!- def_ [n=def@pro75-6-88-185-121-188.fbx.proxad.net] has left #go-nuts []
15:37 -!- stalled [n=411@unaffiliated/stalled] has joined #go-nuts
15:37 -!- antarus_ [n=antarus@nat/google/x-keqsibyacmpqlytf] has joined #go-nuts
15:37 -!- Netsplit over, joins: bsod2
15:37 -!- Netsplit over, joins: cpach, vegai
15:37 -!- def_ [n=def@pro75-6-88-185-121-188.fbx.proxad.net] has joined #go-nuts
15:39 -!- cjuner [n=cjuner@frnk-590dfb04.pool.mediaWays.net] has joined #go-nuts
15:41 -!- skelterjohn [n=jasmuth@c-71-58-123-111.hsd1.nj.comcast.net] has quit []
15:44 -!- dagle2 [n=dagle@host162-104.bornet.net] has joined #go-nuts
15:44 -!- shasbot [n=shasbot@ip70-171-218-55.tc.ph.cox.net] has joined #go-nuts
15:46 -!- Gynvael [n=gynvael@static-87-105-185-61.ssp.dialog.net.pl] has joined
#go-nuts
15:46 -!- sladegen [n=nemo@unaffiliated/sladegen] has joined #go-nuts
15:50 -!- scandal [n=nobody@unaffiliated/scandal] has joined #go-nuts
15:50 -!- raphael [n=rgb@did75-11-82-231-40-223.fbx.proxad.net] has quit [Client
Quit]
15:51 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
15:51 -!- Norgg [n=norgg@norgg.org] has joined #go-nuts
15:51 -!- garbeam [n=arg@garbe.us] has joined #go-nuts
15:51 -!- alc [n=alc@222.128.142.197] has quit ["Ex-Chat"]
15:53 -!- simonz05 [n=simon@143.84-49-89.nextgentel.com] has joined #go-nuts
15:54 -!- ni| [n=ni|@cpe-72-191-33-69.satx.res.rr.com] has quit ["Leaving..."]
15:55 -!- aa [n=aa@r200-40-114-26.ae-static.anteldata.net.uy] has joined #go-nuts
15:56 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has joined
#go-nuts
15:59 -!- ni| [n=ni|@cpe-72-191-33-69.satx.res.rr.com] has joined #go-nuts
16:01 -!- rbohn [n=chatzill@208.186.134.103] has joined #go-nuts
16:04 -!- JoLeClodo [n=JoLeClod@88.191.33.32] has quit ["leaving"]
16:04 -!- Cyanure [n=cyanure@212-198-164-142.rev.numericable.fr] has joined
#go-nuts
16:06 -!- Nihathrael_ [n=nihathra@BAHb556.bah.pppool.de] has joined #go-nuts
16:09 < sladegen> > type C struct { int float ; float int } ; c := C{1.2,
3.4} ; print(c.int, c.float)
16:09 < rndbot> <Error: constant 3.4 truncated to integer>
16:09 -!- JoLeClodo [n=JoLeClod@vian.wallinfire.net] has joined #go-nuts
16:09 < sladegen> > type C struct { int float ; float int } ; c := C{1.2,
3} ; print(c.int, c.float)
16:09 < rndbot> +1.200000e+0003
16:10 < yiyus> hahaha!  I fixed a couple of bugs and now I can run
retroforth in my (go)ngaro virtual machine!
16:15 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 60 (Operation
timed out)]
16:16 -!- alexsuraci [n=Alex@pool-71-188-133-67.aubnin.fios.verizon.net] has
joined #go-nuts
16:18 -!- werdan7 [n=w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
16:20 -!- Nihathrael_ [n=nihathra@BAHb556.bah.pppool.de] has left #go-nuts []
16:21 -!- kaigan|work
[n=kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit []
16:23 -!- Nihathrael [n=nihathra@BAH9c24.bah.pppool.de] has quit [Read error: 110
(Connection timed out)]
16:26 < uriel> yiyus: nice!
16:34 < yiyus> i guess retroforth could be the first language to have an
implementation 100% go
16:34 < yiyus> (actually, it was brainfuck, but whatever...)
16:35 < uriel> hehehe
16:35 -!- snearch [n=olaf@g225055198.adsl.alicedsl.de] has joined #go-nuts
16:37 -!- bentley` [n=bentley`@97-119-167-212.albq.qwest.net] has joined #go-nuts
16:38 -!- Zaba [n=zaba@about/goats/billygoat/zaba] has quit [Read error: 145
(Connection timed out)]
16:40 -!- Zaba [n=zaba@ip102.148.adsl.wplus.ru] has joined #go-nuts
16:41 -!- snearch [n=olaf@g225055198.adsl.alicedsl.de] has quit ["Ex-Chat"]
16:44 -!- snearch_ [n=olaf@g225055198.adsl.alicedsl.de] has joined #go-nuts
16:44 -!- fosho_ [n=notroot@ool-43570f3c.dyn.optonline.net] has joined #go-nuts
16:45 -!- Xavi_ [n=Xavi@66-191-181-152.dhcp.gnvl.sc.charter.com] has joined
#go-nuts
16:46 < AndreSantos> where can i get some info about translating the
documentation?
16:46 < Xavi_> Can I use a for loop in Go?
16:46 < nickjohnson> yes
16:46 < s_mosher> Xavi_, yep, that's the only one you get
16:46 < Xavi_> for (x=0; x<=5; x++)
16:46 < Xavi_> that the correct way to use a for loop?
16:46 < s_mosher> I want select to accept a test, and to loop while that's
true
16:47 < s_mosher> Xavi_, no parens
16:47 < alexsuraci> and := instead of =, usually
16:47 < alexsuraci> unless you declare x beforehand
16:47 < Xavi_> s_mosher: ah, thanks!
16:47 < Xavi_> Just playing around with coding in go
16:48 < Xavi_> anyone done a really big project in go yet?
16:48 < s_mosher> Xavi_, you should read the docs on for, though, they
really changed the way it works
16:48 < s_mosher> (and I can't keep it straight)
16:48 < Xavi_> s_mosher: where are the docs?
16:48 < Xavi_> I can't find much documentation on go
16:48 < Xavi_> is it over at golang.org?
16:48 -!- trickie [n=trickie@94.100.112.225] has quit [Connection timed out]
16:49 < alexsuraci> there are lik 7 pages at golang linked in the sidebar
16:49 < s_mosher> there's this:
http://golang.org/doc/go_spec.html#For_statements
16:49 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has joined #go-nuts
16:49 < Xavi_> ah, thanks
16:49 < sladegen> no, golang.org is actually a spoof page in order to
confuse miscrosoft.
16:49 < Xavi_> rad
16:49 < s_mosher> this has more examples:
http://golang.org/doc/effective_go.html#for
16:50 -!- tedster [n=tedster@67.23.158.117] has quit [Remote closed the
connection]
16:50 < s_mosher> golang.org's stylesheet assumes a white background :/
16:50 < gislan> when declaring an array (var x [10]int) are all elements
cleared (i.e.  set to 0) automagically?
16:51 -!- AndreSTC [n=Mandrac@20151099023.user.veloxzone.com.br] has joined
#go-nuts
16:51 < sladegen> > var x [2]int; print(x[1])
16:51 < rndbot> 0
16:51 < s_mosher> gislan, everything should be initialized to zero in just
about every case
16:52 -!- loureiro [n=loureiro@189.2.128.130] has quit [Read error: 113 (No route
to host)]
16:52 -!- clearscreen [n=clearscr@e248070.upc-e.chello.nl] has quit [Remote closed
the connection]
16:53 < gislan> s_mosher: great, thanks
16:53 < Xavi_> What should I be looking for if I am looking for a way to
accept user input?
16:54 < yiyus> Xavi_: the io package
16:54 < sladegen> bufio.ByteString iirc.
16:56 < yiyus> but i have not found an equivalent to getchar, anybody knows?
16:57 < rog> does Go actually run on more than one processor on a mac box?
16:57 < rog> here's some code (and timing results) that seem to indicate
otherwise.  http://pastebin.com/f4476334d
16:58 < rog> i ran it on a dual processor x86 on a macbook
16:58 < rog> i'd have expected at least *some* speed up.
16:58 < rog> perhaps this is well known
16:59 <+danderson> it's possible that you're actually benchmarking goroutine
creation/teardown and channel overhead, if the code in goroutines isn't doing
something non-trivial
16:59 < rog> no, i'm only starting 2 go routines
16:59 <+danderson> haven't looked at the code though, maybe you figured
that.
16:59 <+danderson> and I don't know what the mac support is like.
16:59 < rog> that each count for 0.5e10 iterations
16:59 < rog> the code is ultrasimple
17:00 < rog> there's no synchronisation either apart from at the end
17:01 < s_mosher> rog, I don't think you'll see more than one core used if
you don't make blocking calls or set GOMAXPROCS
17:01 < rog> i did set GOMAXPROCS
17:01 < rog> to 2
17:01 < rog> and to 1
17:01 < rog> there was no difference in timing results
17:01 < s_mosher> oh.  try using time.Sleep or something and just look at
your process list
17:02 < rog> how would that help?
17:02 < s_mosher> annnnnnnd, I think it will automatically use the second
core if you *do* block, regardless of GOMAXPROCS
17:02 < s_mosher> I could be way off on that
17:02 < rog> but if one's blocking, then there's no need to use the second
core as the first one is no longer in use
17:02 < s_mosher> but I seem to recall GOMAXPROCS only affecting the number
of non-blocking processes
17:03 < rog> i've got two non-blocking processes
17:03 <+danderson> just looked at your code
17:03 <+danderson> assuming most of the time is spent burning cpu in the
goroutines, that should be using 2 CPUs
17:04 < s_mosher> I should do that too before I comment further
17:04 -!- scandal [n=nobody@unaffiliated/scandal] has quit ["Leaving."]
17:04 -!- loureiro [n=loureiro@189.2.128.130] has joined #go-nuts
17:04 <+danderson> unfortunately, as I said, I use linux exclusively, so I
have no idea of what the runtime does on OS X
17:04 < rog> oh i've just found something very odd
17:05 <+danderson> you may want to post this to the mailing list to ask for
guidance if you don't figure it out
17:05 < gislan> times are almost the same on my linux box too
17:05 <+danderson> since it's Thanksgiving weekend in the US, the Go masters
are away stuffing their faces with turkey.
17:05 < rog> i was using the p9port "time" routine.  if i use the system
time command i get half elapsed time
17:05 < s_mosher> actually now that I look at it, I wouldn't really expect
that to be any faster on 2 than one process
17:05 < rog> s_mosher: why not?
17:06 < rog> it should be twice as fast
17:06 < rog> note it divides n by np
17:06 < s_mosher> because creating another host process is costlier than i--
basically
17:06 < rog> i'm only creating 2 host processes total
17:06 < s_mosher> plus IPC for channels
17:06 < rog> and only doing two channel sends
17:06 < s_mosher> yeah but you're not really doing anything heavy with them
17:07 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-nuts []
17:07 < rog> i'm counting to 10 billion.  doesn't that count as heavy?
17:07 < s_mosher> calculate pi to x places in each and then send the result
on a channel
17:07 < s_mosher> hm
17:07 < rog> it takes 20 seconds to do the counting single threaded on my
machine
17:08 -!- skelterjohn [n=jasmuth@c-71-58-123-111.hsd1.nj.comcast.net] has joined
#go-nuts
17:08 < s_mosher> hm yeah
17:09 < s_mosher> that is a little heavier
17:09 -!- AndreSantos [n=Mandrac@20151032022.user.veloxzone.com.br] has quit [Read
error: 110 (Connection timed out)]
17:09 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
17:09 < s_mosher> for some reason I thought the c <- true was inside the
loop
17:09 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
17:10 < s_mosher> unless some kind of optimization is taking care of it, but
I doubt that
17:10 < rog> no
17:10 < rog> i've found the reason
17:10 < rog> and it's very odd
17:10 < rog> somehow the "time" command that i was using to do the timing is
suppressing multiprocessor usage
17:11 < rog> 'cos if i run it and time it manually it takes half the time
17:11 < s_mosher> really?  that's...  odd
17:11 -!- def_ [n=def@pro75-6-88-185-121-188.fbx.proxad.net] has quit ["Leaving."]
17:11 < nickjohnson> How were you specifying maxprocs?
17:11 < rog> same as if i run it under /usr/bin/time
17:11 < rog> % u time cpu -n 2
17:11 < rog> 12.53 real 22.16 user 0.19 sys
17:12 < rog> that's more what i expected to see
17:12 -!- skelterjohn [n=jasmuth@c-71-58-123-111.hsd1.nj.comcast.net] has quit
[Client Quit]
17:12 < rog> most odd
17:12 -!- kolmodin_
[n=kolmodin@c-c59c70d5.012-63-67626713.cust.bredbandsbolaget.se] has quit [Client
Quit]
17:12 -!- tibshoot [n=tibshoot@linagora-230-146.pr0.nerim.net] has quit [Remote
closed the connection]
17:12 < s_mosher> maybe the other one is adding the times for both
process(or/e)s together?
17:13 < sladegen> intellitiming.
17:13 < s_mosher> after all, work done should be similar in both cases
17:14 < sladegen> but i think you should have notices the difference between
10 and 20 seconds with your own eyes.
17:15 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
17:15 < rog> no i've found the answer
17:15 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
17:15 < rog> and it's just that i'm really stupid
17:15 < rog> sorry
17:15 < rog> the two time commands print out times in a different order
17:16 < ni|> yea
17:16 < ni|> rog: i just read your pastebin
17:16 < ni|> (and you aren't dumb)
17:16 < rog> test?
17:16 < rog> hmm
17:17 < rog> the /usr/bin/time command puts real time first
17:17 < rog> p9p time puts it last
17:17 < rog> (don't try and start a message with / on irc :-])
17:18 < sladegen> /why?
17:18 < rog> my client just absorbed it
17:18 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection]
17:18 < rog> what's the escape char?
17:18 < rog> /test
17:18 < sladegen> /say perhaps
17:18 < Xavi_> /why not?
17:18 < rog> blah
17:18 < rog> sorry for the noise
17:18 < Xavi_> /-:
17:18 < Xavi_> :P
17:19 < sladegen> moare noise!
17:19 < rog> i'll have to go and re-time my chameneos benchmark now!
17:19 -!- jordyd [n=jordyd@99.177.65.75] has quit ["Leaving"]
17:19 < dagle2> You have to do go or program go.  Not to go.
17:20 < Xavi_> to accept a string from the keyboard I just use WriteString
(x);
17:20 < Xavi_> ?
17:21 -!- leitaox [n=leitaox@189.20.94.66] has joined #go-nuts
17:21 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
17:21 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
17:22 -!- teedex [n=teedex@204.14.155.161] has joined #go-nuts
17:23 -!- path[l] [n=path@59.162.86.164] has joined #go-nuts
17:25 -!- Xavi_ [n=Xavi@66-191-181-152.dhcp.gnvl.sc.charter.com] has quit [Remote
closed the connection]
17:26 < rog> still gets much slower executing on 2 processors, as expected.
all it's doing is chan comms.
17:27 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
17:28 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
17:33 -!- simonz05 [n=simon@143.84-49-89.nextgentel.com] has quit ["Ex-Chat"]
17:34 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
17:34 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
17:37 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
17:37 -!- silenius [n=jl@yian-ho03.nir.cronon.net] has quit []
17:37 < jordyd> What is the difference between bufio.WriteString() and
io.WriteString()?
17:38 <+danderson> the first one is buffered, the other isn't
17:38 -!- rbohn [n=chatzill@208.186.134.103] has quit ["shopping"]
17:39 <+danderson> so if you repeatedly io.WriteString with a 1-char string,
it'll be much slower than iobuf.WriteString, because each call results in a
syscall
17:39 <+danderson> instead of buffering in the program and flushing a bunch
of bytes at once
17:39 < jordyd> Ah, OK.
17:39 -!- raichoo [n=raichoo@i577BB402.versanet.de] has joined #go-nuts
17:40 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
17:40 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
17:40 * sladegen facepalms.
17:42 -!- __ed [i=bitch@anal-co.it] has quit [Read error: 60 (Operation timed
out)]
17:42 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
17:43 -!- tsavola [i=thain@80.81.189.233] has quit ["leaving"]
17:44 < Clooth> http://www.youtube.com/watch?v=Qnx5hbb0vQI
17:47 -!- shambler [i=kingrat@mm-52-166-84-93.dynamic.pppoe.mgts.by] has joined
#go-nuts
17:48 -!- mraddatz [n=me@markraddatz.org] has joined #go-nuts
17:48 -!- awishformore [n=awishfor@149.156.89.221] has quit [Remote closed the
connection]
17:48 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit ["KVIrc
Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47
UTC http://www.kvirc.net/"]
17:48 -!- awishformore [n=awishfor@149.156.89.221] has joined #go-nuts
17:48 -!- awishformore [n=awishfor@149.156.89.221] has quit [Remote closed the
connection]
17:49 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
17:49 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
17:52 -!- path[l] [n=path@59.162.86.164] has quit []
17:55 -!- ikke [n=1kk3@unaffiliated/ikkebr] has quit [Success]
17:55 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
17:55 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
17:56 -!- chickamade [n=chickama@222.254.2.3] has quit ["Leaving"]
18:01 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
18:01 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
18:02 -!- jchico [n=jchico@user-387hok4.cable.mindspring.com] has joined #go-nuts
18:03 < jchico> hi, how do I update my Go's source files to the latest one?
18:04 < KirkMcDonald> jchico: hg pull -u
18:04 < jchico> thank you!
18:07 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
18:07 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
18:09 -!- Fraeon [n=kzer-za@212.246.65.153] has quit []
18:09 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
18:10 -!- __ed [i=bitch@anal-co.it] has quit [Read error: 60 (Operation timed
out)]
18:10 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
18:13 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [Client
Quit]
18:13 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
18:14 -!- __ed [i=bitch@anal-co.it] has quit [Read error: 60 (Operation timed
out)]
18:14 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
18:16 -!- Cyanure [n=cyanure@212-198-164-142.rev.numericable.fr] has quit
["Quitte"]
18:20 -!- zju [n=t@87.252.230.12] has joined #go-nuts
18:20 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
18:20 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
18:23 -!- scandal [n=nobody@unaffiliated/scandal] has joined #go-nuts
18:24 < exch> i'm sure someone will find this useful.  Or not :p
http://github.com/jteeuwen/go-playground/blob/master/src/color.go
18:25 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts
18:25 -!- path[l] [n=path@115.240.13.160] has joined #go-nuts
18:26 -!- djanderson [n=dja@hltncable.pioneerbroadband.net] has joined #go-nuts
18:27 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
18:27 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
18:27 -!- fosho_ [n=notroot@ool-43570f3c.dyn.optonline.net] has quit [Read error:
110 (Connection timed out)]
18:28 -!- oklokok [n=oklopol@a91-153-117-63.elisa-laajakaista.fi] has quit [Read
error: 60 (Operation timed out)]
18:28 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has quit [Remote closed
the connection]
18:29 -!- spook327 [n=RevSpook@173-20-203-218.client.mchsi.com] has quit [Read
error: 60 (Operation timed out)]
18:31 < jordyd> Hrm...  what does this mean: multiple-value
(conn.(<nil>)).*Reader·ReadString() in single-value context
18:31 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has joined #go-nuts
18:31 < exch> it means you are taking only a single return value from a
function that has more than 1
18:32 < jordyd> Ah, OK.
18:32 < jordyd> Thank you.
18:32 -!- ni| [n=ni|@cpe-72-191-33-69.satx.res.rr.com] has quit ["Leaving..."]
18:32 < uriel> use _ to discard the value you don't want
18:32 < jchico> ah was just about to ask that, what if you don't need all of
them.
18:32 < uriel> ie.,: v, _ := functionthatreturnstwovalues()
18:33 < jordyd> How about "if conn.(*bufio.Reader).ReadString('\n') ==
"TRUE", _ {"
18:33 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
18:33 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
18:34 < exch> you'll have to do it like this: if v,_:=foo(); v == "true" {
...  }
18:34 < jordyd> OK, thanks.
18:35 -!- cactii [n=t@87.252.230.12] has quit [Read error: 110 (Connection timed
out)]
18:35 -!- oklofok [n=oklopol@a91-153-117-63.elisa-laajakaista.fi] has joined
#go-nuts
18:36 < uriel> actually I think you are expected to do if v, ok := foo(); ok
{ ...  }
18:36 < uriel> but I don't remember the ReadString() return by memory, but
tha is the common pattern
18:37 < uriel> (er, idiom, fuck paterns ;P)
18:39 -!- XniX23 [n=vegy@we.will.never-be.afraid.org] has joined #go-nuts
18:39 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
18:39 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
18:40 -!- hcatlin [n=hcatlin@host81-154-246-241.range81-154.btcentralplus.com] has
quit []
18:44 -!- mbarkhau [n=koloss@p54A7EA49.dip.t-dialin.net] has joined #go-nuts
18:45 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
18:46 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
18:52 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
18:52 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
18:53 -!- spook327 [n=RevSpook@173-20-203-218.client.mchsi.com] has joined
#go-nuts
18:56 -!- fosho_ [n=notroot@ool-43570f3c.dyn.optonline.net] has joined #go-nuts
18:56 -!- Batonius [n=user@line117-37.adsl.kirov.ru] has joined #go-nuts
18:57 -!- skelterjohn [n=jasmuth@c-71-58-123-111.hsd1.nj.comcast.net] has joined
#go-nuts
18:58 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
18:58 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
18:59 < mikedee_> did anyone notice that assigning the return of a function
to an object property does not compile?
18:59 < mikedee_> ie.  o.a, o.b, err = myfunc();
19:00 < mikedee_> is that me making a mistake?
19:00 < exch> works fine here
19:00 < tor7> mikedee_: you're not using := by mistake?
19:01 < mikedee_> no - its a different error
19:01 < mikedee_> unexpected DOT or something
19:01 < mikedee_> non-name (node XDOT) on left side of :=
19:02 < mikedee_> i am using := actually but 1 of the 3 params is not
defined so thats ok I think?
19:02 < exch> should be
19:02 < exch> is there something odd in the previous line?
19:03 < tor7> I've never got := to work with anything other than a literal
name on the left side
19:03 < sladegen> that's not ok most probably
19:03 < mikedee_> http://pastebin.com/m34e0849f
19:03 < mikedee_> line 8
19:03 < tor7> and := will shadow previous variables silently too in some
cases
19:03 < mikedee_> was c.buf etc
19:04 < mikedee_> what do you mean by shadow?
19:04 < sladegen> so try declaring error...
19:04 -!- __ed [i=bitch@anal-co.it] has quit ["changing servers"]
19:04 -!- __ed [i=bitch@anal-co.it] has joined #go-nuts
19:05 < exch> it does go wrong if you add a new (undefined) var to the list
19:05 < exch> with := as well
19:05 < mikedee_> that works now
19:05 < mikedee_> thanks
19:05 < mikedee_> defining error first
19:05 < mikedee_> then using =
19:06 < mikedee_> but it gives a different error and works if the variables
are not properties
19:06 < mikedee_> i think it might be an oversight in the parser
19:06 < mikedee_> sorry, different error if := is used in mistake
19:07 -!- malkomalko [n=malkomal@pool-96-232-72-138.nycmny.east.verizon.net] has
quit []
19:07 < mikedee_> the pastebin code works even though I am using := and
error is not defined
19:08 -!- skelterjohn [n=jasmuth@c-71-58-123-111.hsd1.nj.comcast.net] has quit []
19:08 -!- mjard [n=k@70.114.138.168] has quit [Read error: 145 (Connection timed
out)]
19:09 -!- syd [n=sydcogs@118.127.19.220] has quit [Remote closed the connection]
19:10 -!- syd [n=sydcogs@118.127.19.220] has joined #go-nuts
19:19 -!- scandal [n=nobody@unaffiliated/scandal] has quit ["Leaving."]
19:19 -!- rndbot [n=bot@wikipedia/Gracenotes] has quit ["be back soon"]
19:22 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit ["Leaving"]
19:23 < jordyd> What is the envv argument for syscall.Exec()?
19:26 < dho> environment.
19:26 < jordyd> Why is it a []string?
19:26 < dho> array of key=val pairs.
19:27 < jordyd> OK, thanks.
19:27 < dho> np
19:27 -!- The_Doctor [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has joined
#go-nuts
19:30 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has joined #go-nuts
19:30 -!- maacl [n=mac@0x573526c8.virnxx17.dynamic.dsl.tele.dk] has quit []
19:35 -!- dju [n=dju@ip-39.net-80-236-37.suresnes.rev.numericable.fr] has joined
#go-nuts
19:35 -!- aho [n=nya@e183149150.adsl.alicedsl.de] has joined #go-nuts
19:36 -!- leitaox [n=leitaox@189.20.94.66] has quit [Client Quit]
19:36 -!- maacl [n=mac@0x573526c8.virnxx17.dynamic.dsl.tele.dk] has joined
#go-nuts
19:36 -!- decriptor [n=decripto@53.250.sfcn.org] has quit [Read error: 113 (No
route to host)]
19:40 -!- wurtog [n=unifacs@20150050010.user.veloxzone.com.br] has joined #go-nuts
19:40 -!- murodes1 [n=James@124-169-42-199.dyn.iinet.net.au] has joined #go-nuts
19:40 -!- murodese [n=James@124-169-42-199.dyn.iinet.net.au] has quit [Read error:
104 (Connection reset by peer)]
19:40 -!- skelterjohn [n=jasmuth@c-71-58-123-111.hsd1.nj.comcast.net] has joined
#go-nuts
19:40 < wurtog> any effort to have go on windows have started ? i am willing
to help in testing.
19:41 < JBeshir> Some has, I'm not sure of the progress yet.
19:41 < uriel> windows port is pretty much working already
19:41 -!- inittab- [n=dlbeer@ip-118-90-62-32.xdsl.xnet.co.nz] has quit [Read
error: 60 (Operation timed out)]
19:42 < uriel> http://code.google.com/p/go-windows/
19:42 -!- inittab [n=dlbeer@ip-118-90-62-32.xdsl.xnet.co.nz] has joined #go-nuts
19:42 < uriel> it is now in the process of being merged into the main tree
19:42 < uriel> (but note that while working, the port is not really
complete)
19:43 < wurtog> uriel, really ? this is great news.  this guys work fast, i
asked some weeks ago and they had nothing.
19:43 -!- Zarutian [n=zarutian@194-144-84-110.du.xdsl.is] has joined #go-nuts
19:43 < wurtog> uriel, will checkout it.  thanks.
19:43 * alexsuraci wonders what keeps killing gopaste
19:44 < XniX23> wurtog: it wasnt the guys from the google who did the port
19:44 < uriel> 'some weeks ago' could not be more than two weeks ago :)
19:45 -!- mertimor [n=mertimor@p4FE75141.dip.t-dialin.net] has joined #go-nuts
19:45 -!- Snert [n=achowe@puff.snert.com] has quit ["ChatZilla 0.9.85 [Firefox
3.5.5/20091102152451]"]
19:47 < tor7> it's only been two weeks?
19:47 < XniX23> 2 and a half
19:50 < tor7> I ported XCB (the X11 library) to go and it works for my
simple tests.  if someone wants to bang on it and see if it breaks or has any
suggestions to improve it I'd be grateful.
19:50 < tor7> temporary link: http://casper3.ghostscript.com/~tor/repos/xgb/
19:55 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has quit [Read error:
104 (Connection reset by peer)]
19:55 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has joined #go-nuts
19:59 -!- afurlan [n=afurlan@scorpion.mps.com.br] has quit ["Leaving"]
20:00 -!- maacl [n=mac@0x573526c8.virnxx17.dynamic.dsl.tele.dk] has quit []
20:00 < uriel> tor7: cool, will add to
http://go-lang.cat-v.org/library-bindings
20:01 -!- skelterjohn [n=jasmuth@c-71-58-123-111.hsd1.nj.comcast.net] has quit []
20:01 < uriel> tor7: does input work too?
20:02 -!- binaryjohn [n=binaryjo@cpe-24-30-132-50.san.res.rr.com] has quit []
20:03 -!- drusepth [n=drusepth@174.32.154.79] has joined #go-nuts
20:04 -!- aa [n=aa@r200-40-114-26.ae-static.anteldata.net.uy] has quit [Remote
closed the connection]
20:08 < yiyus> mmmh, what is the syntax error near out here:
http://gopaste.org/view/8YDMH ?
20:09 < yiyus> (full file at http://gopaste.org/view/9hx6e)
20:09 < KirkMcDonald> yiyus: That kind of assignment is not permitted as a
'case' expression.
20:09 < KirkMcDonald> At least, I don't think it is.
20:09 * KirkMcDonald double checks.
20:10 < yiyus> http://golang.org/doc/go_spec.html#Select_statements
20:10 < yiyus> in fact, it is
20:10 < yiyus> see in the example: case i1 = <-c1:
20:10 -!- snicket [n=Promethe@148.227.201.174] has joined #go-nuts
20:11 -!- armence [n=armence@c-67-188-229-128.hsd1.ca.comcast.net] has joined
#go-nuts
20:11 < yiyus> but maybe the index, being a var, is causing problems
20:12 < yiyus> i will get a simpler test case to be sure
20:12 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has quit []
20:12 -!- drusepth [n=drusepth@174.32.154.79] has quit [Read error: 54 (Connection
reset by peer)]
20:13 -!- rovar [i=c7aca911@gateway/web/freenode/x-cbzuszikyukrtmxh] has quit
[Ping timeout: 180 seconds]
20:14 < yiyus> yes, that will be: case x := <-child.Out: vm.ports[out] =
x; works, is this a bug?
20:15 < KirkMcDonald> At the very least, I would say that the documentation
is unclear.
20:15 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has quit [Read error:
54 (Connection reset by peer)]
20:16 < uriel> yiyus: hey, now that you have x bindings for Go, you have no
excuse to rewrite dio in Go ;)
20:16 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has joined #go-nuts
20:16 < uriel> (no excuse not to...)
20:18 < yiyus> KirkMcDonald: after another look, i think the documentation
is ok, and the behaviour is expected
20:18 -!- Popog [n=Adium@pool-71-121-200-233.sttlwa.dsl-w.verizon.net] has joined
#go-nuts
20:18 < yiyus> because a RecvExpr can contain expresions, but not
identifiers
20:18 < yiyus> afaiu
20:18 -!- JPascal [n=jpascal@95-27-163-164.broadband.corbina.ru] has joined
#go-nuts
20:18 < KirkMcDonald> yiyus: An identifier is an expression.
20:19 < yiyus> is it?  then it is a bug
20:19 < JPascal> Hello all!
20:19 < exch> lo
20:19 < JPascal> How I can add any directives in json-template (package
template)?
20:20 -!- snicket [n=Promethe@148.227.201.174] has quit ["Saliendo"]
20:21 -!- wurtog [n=unifacs@20150050010.user.veloxzone.com.br] has quit [Read
error: 110 (Connection timed out)]
20:22 -!- fosho_ [n=notroot@ool-43570f3c.dyn.optonline.net] has quit [Remote
closed the connection]
20:22 < yiyus> KirkMcDonald: yes, you are true, definitively
20:22 < tor7> uriel: sorry, I was AFK.  as far as I know everything should
work except X extensions.
20:23 -!- rares [n=rares@c-69-143-38-77.hsd1.va.comcast.net] has joined #go-nuts
20:23 < yiyus> uriel: I'd accept some "patches" for dio, if you want to try
20:23 -!- maacl [n=mac@0x573526c8.virnxx17.dynamic.dsl.tele.dk] has joined
#go-nuts
20:23 -!- hipe_ [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has joined #go-nuts
20:25 < tor7> uriel: oh, and it's not a cgo binding, it's pure go
20:25 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has quit [Read error:
104 (Connection reset by peer)]
20:25 -!- The_Doctor [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has quit
["Leaving..."]
20:27 -!- nightmouse [n=scheiber@c-69-247-77-241.hsd1.nm.comcast.net] has joined
#go-nuts
20:28 -!- cmatei [n=cmatei@95.76.26.166] has quit [Read error: 104 (Connection
reset by peer)]
20:29 -!- Rob_Russell [n=chatzill@206-248-157-156.dsl.teksavvy.com] has quit
["ChatZilla 0.9.85 [Firefox 3.5.5/20091102152451]"]
20:30 -!- Batonius [n=user@line117-37.adsl.kirov.ru] has left #go-nuts ["ERC
Version 5.3 (IRC client for Emacs)"]
20:31 -!- geocalc [n=geocalc@lns-bzn-22-82-249-111-165.adsl.proxad.net] has joined
#go-nuts
20:34 -!- The_Doctor [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has joined
#go-nuts
20:35 -!- Cyanure [n=cyanure@212-198-164-142.rev.numericable.fr] has joined
#go-nuts
20:36 -!- melba [n=blee@unaffiliated/lazz0] has quit [Read error: 54 (Connection
reset by peer)]
20:36 -!- aa [n=aa@r190-135-238-5.dialup.adsl.anteldata.net.uy] has joined
#go-nuts
20:36 -!- melba [n=blee@unaffiliated/lazz0] has joined #go-nuts
20:37 -!- loureiro [n=loureiro@189.2.128.130] has quit ["Quit"]
20:37 -!- bennabi [n=Miranda@41.104.102.111] has quit ["Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org"]
20:37 -!- decriptor [n=decripto@174-27-134-202.slkc.qwest.net] has joined #go-nuts
20:39 -!- rares [n=rares@c-69-143-38-77.hsd1.va.comcast.net] has quit
["Leaving..."]
20:40 -!- rog [n=rog@89.240.136.210] has quit []
20:40 -!- skyyy [n=caw@cpe-24-58-178-87.twcny.res.rr.com] has joined #go-nuts
20:43 -!- rog [n=rog@89.240.136.210] has joined #go-nuts
20:43 -!- sm [n=sm@pool-71-165-166-155.lsanca.dsl-w.verizon.net] has joined
#go-nuts
20:49 -!- zhaozhou [n=zhaozhou@linfast76.bitnet.nu] has joined #go-nuts
20:49 < uriel> tor7: oh, you are generating go via xslt?  UGH!
20:49 -!- GeoBSD [n=geocalc@lns-bzn-22-82-249-100-251.adsl.proxad.net] has quit
[Read error: 110 (Connection timed out)]
20:49 < uriel> still, I think I'd consider a kind of binding, even if a very
sick and convoluted one ;)
20:51 < tor7> python, but still ugd
20:51 -!- ejb [n=ejb@unaffiliated/ejb] has joined #go-nuts
20:51 < uriel> hehe
20:52 < uriel> ah, it was my friend garbeam that was in charge of replacing
the xslt with python, well, seems that at least improved things somewhat..
20:52 < Popog> If an interface only has one struct that implements it, does
any Go compiler now, or will any Go compiler in the future, optimize the vtable
away?
20:54 < tor7> yeah, there's no way I'm touching xslt.  I'd rather write all
the bindings manually with cat.
20:54 < JPascal> How I can make dynamic array of strings?
20:55 < kimelto> vector?
20:56 < JPascal> No. Var[3] = "sdd"
20:56 -!- snearch_ [n=olaf@g225055198.adsl.alicedsl.de] has quit [Read error: 113
(No route to host)]
20:56 < uriel> tor7: indeed :)
21:00 < Popog> Anyone know?
21:01 < uriel> Popog: does it matter much?
21:01 < uriel> in any case, I'm sure iant will know
21:01 -!- smooge [n=smooge@int.smoogespace.com] has joined #go-nuts
21:02 < Popog> uriel: Just wondering, I'd like to know all the
optimizations, current and planned.
21:02 < KirkMcDonald> Popog: The compiler can't know.
21:03 < KirkMcDonald> Popog: If the interface is exported, then another
package which imports that package is free to write structs which implement it.
21:03 < KirkMcDonald> s/structs/types/
21:03 < uriel> Popog: you seriously would like to know *all* the
optimizations, current and planed?
21:04 < tor7> the linker could be made to not include dead code and
unreferenced symbols though
21:04 < Popog> uriel: Yes, if there's a 3000 page manual on optimizations,
I'd like to read it.
21:05 < KirkMcDonald> tor7: You are suggesting making the linker smart
enough to opimize away the vtable.
21:05 < KirkMcDonald> optimize*
21:05 < uriel> have we learned anything since Knuth's famous pronouncement?
it seems not...
21:06 < uriel> Popog: I'd recommend you find something more productive with
which to spend your time
21:07 -!- elmar [n=elmar@dslb-188-097-002-055.pools.arcor-ip.net] has joined
#go-nuts
21:07 < Popog> uriel: I want to see if Go will be good for Game Development
or if it'll be slow and painful like Java.
21:07 < tor7> kirk: right, vtable, wasn't thinking straight...  that'd need
compiler support to eliminate
21:08 < Popog> If I have to write dirty hacks to get the performance I need,
Go might be a decent tools language, but then I don't have to learn it that much.
21:09 < tor7> Popog: then I would worry less about a few kilobytes and a
pointer indirection and start thinking about utilizing the graphics hardware
properly :)
21:09 < Popog> If Go can get the performance, then it would be a huge
paradigm shift in the gaming industry.
21:09 -!- skelterjohn [n=jasmuth@c-71-58-123-111.hsd1.nj.comcast.net] has joined
#go-nuts
21:09 < Popog> With GPGPU's coming into play, "graphics hardware" might soon
disappear.
21:10 < uriel> Popog: if you want to see that, then wait for a while until
the language is at least close to being finished and things like the new garbage
collector are in place
21:10 < Popog> uriel: Your right, but I'm impatient :P
21:11 < Popog> *you're
21:11 < uriel> and I really don't care what the hell you are doing, the
rules about optimization still apply:
21:11 < uriel> “The First Rule of Program Optimization: Don't do it.  The
Second Rule of Program Optimization (for experts only!): Don't do it yet.”
21:11 < uriel> so!
21:11 < tor7> I'm biased against Java, so I'd say it'll be better even in
its current state :)
21:11 < uriel> java == pure masochism
21:12 < Popog> At least it's not ActionScript
21:12 < tor7> go gives you a sane concurrency model, that alone makes it
better
21:12 -!- skelterjohn [n=jasmuth@c-71-58-123-111.hsd1.nj.comcast.net] has quit
[Client Quit]
21:12 < uriel> Popog: you are talking about game programming, and you
mention actionscript in the same conversation?  == *fail*
21:14 -!- JPascal [n=jpascal@95-27-163-164.broadband.corbina.ru] has left #go-nuts
[]
21:14 < tor7> at least flash gives you a better graphics model...
21:14 < Popog> I've had colleagues that think it's great, and they somehow
get into the PAX 10 with that complete and utter crap.
21:15 * uriel adds one more quote to his collection: “More computing sins are
committed in the name of efficiency (without necessarily achieving it) than for
any other single reason - including blind stupidity.” - W.A.  Wulf
21:15 < uriel> wtf is PAX 10?
21:15 < tor7> penny arcade expo?
21:15 < Popog> http://www.paxsite.com/pax10.php
21:17 < uriel> Popog: well, here is the thing, I know nothig about games,
but last I checked the point of games was to be *fun*, not to be written in some
super-optimized awesome blahblah whatever way
21:17 < uriel> anyway, this is all offtopic
21:17 * uriel finds almost all modern games extremely *boring*
21:18 -!- rndbot [n=bot@wikipedia/Gracenotes] has joined #go-nuts
21:18 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-nuts
21:19 < uriel> > fmt.Printf("Welcome Back rndbot!")
21:19 < rndbot> Welcome Back rndbot!
21:19 < uriel> hey Gracenotes :)
21:20 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has joined #go-nuts
21:21 < KirkMcDonald> uriel: Dwarf Fortress!
21:22 < uriel> hah!
21:22 < uriel> now, that is *insane*
21:23 -!- Method [n=Method@nat-3-135.snu.edu] has joined #go-nuts
21:24 < Method> why does go require an executable stack?
21:27 -!- HeavensRevenge
[n=quassel@CPE001d0fe73b7d-CM00111ae5c642.cpe.net.cable.rogers.com] has quit [Read
error: 54 (Connection reset by peer)]
21:28 < KirkMcDonald> Method: Without actually knowing, I predict it has
something to do with either function literals or goroutines.  Or it is some sort
of oversight.
21:28 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has quit ["Leaving"]
21:31 -!- drusepth [n=drusepth@ppp-70-244-235-75.dsl.spfdmo.swbell.net] has joined
#go-nuts
21:31 < Gracenotes> uriel: hey :!
21:31 -!- drusepth [n=drusepth@ppp-70-244-235-75.dsl.spfdmo.swbell.net] has quit
[Client Quit]
21:35 -!- chachan [n=chachan@ccscliente156.ifxnetworks.net.ve] has quit ["KVIrc
Insomnia 4.0.0, revision: , sources date: 20090520, built on: 2009/06/06 11:44:47
UTC http://www.kvirc.net/"]
21:48 -!- Nanoo [n=Nano@95-89-198-45-dynip.superkabel.de] has quit [Read error:
110 (Connection timed out)]
21:51 -!- sliceofpi [n=Adium@c-98-194-205-176.hsd1.tx.comcast.net] has joined
#go-nuts
21:51 -!- nightmouse [n=scheiber@c-69-247-77-241.hsd1.nm.comcast.net] has quit
["Ex-Chat"]
21:52 -!- The_Doctor [n=The_Doct@cpe-98-150-247-183.hawaii.res.rr.com] has quit
["Leaving..."]
22:00 -!- slashus2 [n=slashus2@74-137-26-8.dhcp.insightbb.com] has joined #go-nuts
22:02 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has quit
[Read error: 110 (Connection timed out)]
22:06 -!- elmar [n=elmar@dslb-188-097-002-055.pools.arcor-ip.net] has quit
["Leaving"]
22:07 -!- Zeffrin [n=zeffrin@203.141.132.221.static.zoot.jp] has joined #go-nuts
22:09 < Zeffrin> morning all
22:11 -!- msbranco_ [n=msbranco@64-172.61-188.cust.bluewin.ch] has quit [Remote
closed the connection]
22:12 < jchico> you must be on the other side of the world :P
22:13 -!- jdp [n=gu@75.97.120.11.res-cmts.senj.ptd.net] has joined #go-nuts
22:13 < Zeffrin> yah Australia
22:17 -!- ejb [n=ejb@unaffiliated/ejb] has quit ["Leaving"]
22:20 -!- castlevaniafan [n=castleva@f048058224.adsl.alicedsl.de] has joined
#go-nuts
22:22 < uriel> it is always morning somewhere in irc
22:23 -!- pace_t_zulu_ [n=pacetzul@unaffiliated/pacetzulu/x-585030] has joined
#go-nuts
22:23 < syd> 8:24 am here
22:23 < syd> I shouldn't have drank all that red bull before bed
22:24 -!- jchico [n=jchico@user-387hok4.cable.mindspring.com] has quit ["Leaving"]
22:24 -!- castlevaniafan [n=castleva@f048058224.adsl.alicedsl.de] has quit [Client
Quit]
22:26 -!- pace_t_zulu_ [n=pacetzul@unaffiliated/pacetzulu/x-585030] has quit
[Client Quit]
22:27 < uriel> HAH
22:29 < General1337> throw: index out of range
22:29 < General1337> what is this error?
22:30 < sladegen> index ouf of range
22:30 -!- brrant [n=John@168-103-78-133.hlrn.qwest.net] has joined #go-nuts
22:30 < tor7> you're accessing a slice outsidte it's bounds.
22:30 < sladegen> letter out of typo
22:31 < tor7> >.<
22:32 -!- skyyy [n=caw@cpe-24-58-178-87.twcny.res.rr.com] has quit [Client Quit]
22:33 -!- rajeshsr [n=rajeshsr@59.92.10.200] has quit [Remote closed the
connection]
22:45 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has quit [Remote closed
the connection]
22:46 -!- teedex [n=teedex@204.14.155.161] has quit [Remote closed the connection]
22:46 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has joined #go-nuts
22:58 -!- mkanat [n=mkanat@c-67-188-1-39.hsd1.ca.comcast.net] has joined #go-nuts
23:06 < KirkMcDonald> So at the moment, my option parser supports options of
the form --foo, and options of the form -f.
23:06 < KirkMcDonald> Now I'm adding support for options of the form -foo.
23:07 < KirkMcDonald> Given that --foo=bar works, I want -foo=bar to work.
But it is also the case that -fbar works.
23:07 < KirkMcDonald> So there's some ambiguity when the argument to the
option contains an equals sign.
23:09 < KirkMcDonald> That is, --foo FOO=BAR vs.  -fFOO=BAR.  The latter
could be interpreted as passing the argument "BAR" to the option "-fFOO".  This is
making the parser more complicated than I had at first thought it would.  :-)
23:09 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit []
23:10 -!- sm [n=sm@pool-71-165-166-155.lsanca.dsl-w.verizon.net] has quit []
23:11 < uriel> KirkMcDonald: will you please add options of the form /foo
too?  I really need that!
23:11 < KirkMcDonald> What, for Windows?
23:13 < uriel> no, for sarcasm
23:13 < KirkMcDonald> Ah. :-)
23:13 < KirkMcDonald> Well, you're not gettin' 'em, no matter how
sarcastically you ask!
23:13 -!- fosho_ [n=notroot@ool-43570f3c.dyn.optonline.net] has joined #go-nuts
23:23 -!- Adys [n=Adys@unaffiliated/adys] has quit ["I ♥ Unicode"]
23:23 < Gracenotes> hm.  what should I call the Google Code project for
rndbot?
23:24 < uriel> rndbot?
23:24 <+danderson> rndbot or maybe go-bot or something
23:24 <+danderson> but rndbot sounds fun :)
23:24 < uriel> or gordnbot!
23:24 < uriel> (or gordonbot if you like to spell it all out)
23:26 < Gracenotes> heh
23:27 -!- rakd [n=rakd@219.117.252.7.static.zoot.jp] has quit ["See you..."]
23:27 < Gracenotes> because rndbot is just a name I registered for no real
reason a year or so ago ;) glad it's found a niche
23:27 -!- erus` [n=tom@92.29.1.64] has joined #go-nuts
23:27 < uriel> ah!  and here I was feeling stupid for not figuring out the
pun in the name!
23:27 < uriel> damn you!
23:27 < Gracenotes> :3
23:29 -!- Fraeon [n=kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
23:31 -!- AndrewBC_ [n=Andrew@97.93.242.12] has joined #go-nuts
23:32 < uriel> I think gordonbot would be a good name, and the mascot can be
a version of gordon with cables comming out from its head and red led eyes, etc
23:34 -!- ikke [n=1kk3@unaffiliated/ikkebr] has joined #go-nuts
23:38 -!- AndrewBC [n=Andrew@97.93.242.12] has quit [Read error: 60 (Operation
timed out)]
23:38 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has
joined #go-nuts
23:38 -!- cpr420 [n=cpr420@67.165.199.143] has joined #go-nuts
23:39 -!- xuser [n=xuser@unaffiliated/xuser] has joined #go-nuts
23:40 -!- jordyd [n=jordyd@99-177-65-75.lightspeed.wepbfl.sbcglobal.net] has quit
[Remote closed the connection]
23:40 -!- fosho_ [n=notroot@ool-43570f3c.dyn.optonline.net] has quit [Read error:
104 (Connection reset by peer)]
23:43 -!- path[l] [n=path@115.240.13.160] has quit [Read error: 110 (Connection
timed out)]
23:45 -!- hipe [n=hipe@c-24-11-83-170.hsd1.mi.comcast.net] has quit [Remote closed
the connection]
23:48 -!- Adys [n=Adys@unaffiliated/adys] has joined #go-nuts
23:48 -!- ikkebr [n=1kk3@unaffiliated/ikkebr] has joined #go-nuts
23:49 -!- ikke [n=1kk3@unaffiliated/ikkebr] has quit [Read error: 60 (Operation
timed out)]
23:51 -!- hstimer [n=hans@70.90.170.37] has joined #go-nuts
23:52 < hstimer> how do I get access to environment variables i.e.  the
variables set be the calling shell
23:53 < jdp> hstimer: os.Getenv
23:53 < dagle2> like in most languages.
23:53 < hstimer> jdp: thanks!
23:54 -!- Anders_ [n=Anders@c83-253-2-206.bredband.comhem.se] has joined #go-nuts
23:56 -!- mwoods79 [n=mwoods79@c-98-239-44-209.hsd1.la.comcast.net] has joined
#go-nuts
23:56 < alexsuraci> http://gopaste.org/view/bZU01 woo, this is fun
23:58 < Gracenotes> uriel: is there any documentation for..  uh..  the
existence of Gordon anywhere?
23:59 < Gracenotes> alexsuraci: recursive descent?  awesome
--- Log closed Sat Nov 28 00:00:26 2009