--- Log opened Thu Sep 01 00:00:23 2011
00:00 -!- tvw [~tv@e176007023.adsl.alicedsl.de] has quit [Remote host closed the
connection]
00:02 -!- franciscosouza [~francisco@187.105.23.92] has joined #go-nuts
00:03 -!- ccc1 [~Adium@140.109.98.230] has joined #go-nuts
00:03 -!- ccc1 [~Adium@140.109.98.230] has quit [Client Quit]
00:04 -!- pjacobs [~pjacobs@66.54.185.130] has quit [Quit: Leaving]
00:05 -!- x44t [~xps@175.169.150.111] has joined #go-nuts
00:06 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has joined
#go-nuts
00:07 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
00:07 -!- chadkouse [~Adium@rrcs-74-218-87-242.central.biz.rr.com] has joined
#go-nuts
00:08 -!- miker2 [~miker2@pool-71-175-94-30.phlapa.fios.verizon.net] has joined
#go-nuts
00:08 -!- tansell-laptop [~tansell@42.62.196.221] has joined #go-nuts
00:14 -!- nekoh [~nekoh@dslb-088-069-158-056.pools.arcor-ip.net] has quit [Quit:
nekoh]
00:16 -!- replore [~replore@203.152.213.161.static.zoot.jp] has joined #go-nuts
00:19 -!- Bigbear1 [~Cody@S010678cd8e7c81a8.cg.shawcable.net] has joined #go-nuts
00:31 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
00:33 -!- iant1 [~iant@67.218.106.149] has quit [Read error: Connection reset by
peer]
00:33 -!- iant [~iant@67.218.106.149] has joined #go-nuts
00:33 -!- mode/#go-nuts [+v iant] by ChanServ
00:34 < smw> Hi all.  I am trying to convert a stupid project euler task to
go.  My original was in python.  How can I convert the line: "while not i in
answers:" to go?
00:35 < smw> I know that to get the "in" I do _, ok := answers[i]
00:36 < smw> however, how do I do that assignment and then test ok?
00:36 < lazy1> do a for {} loop and break when ok is true
00:36 < zeebo> for ok := false; !ok; _, ok := answers[i] { } might work too,
but lazy1's suggestion is better
00:37 < smw> lazy1, that is not very clean :-P
00:37 < thrashr888> and lazier
00:37 < thrashr888> haha
00:37 * chilts prefers zeebo's solution :)
00:37 < exch> the _, ok := syntax only works if 'answers' is a map, not a
slice.
00:37 < chilts> you probably don't need the initial 'ok := false' either
00:38 < smw> zeebo, I don't know it is originally false, but I guess you
mean just put the first answer.
00:38 -!- jrslepak [~jrslepak@pool-74-104-100-26.bstnma.east.verizon.net] has
joined #go-nuts
00:38 < smw> exch, it is a map...
00:38 < chilts> ah ok, I'd try: for _, ok := answers[i]; !ok { ...  }
00:38 < zeebo> you need another ; there i think.
00:38 < zeebo> its either none or two
00:38 < smw> chilts, I tried that
00:39 < exch> if _, ok := m[k]; ok { ...  }
00:39 < lazy1> swm: see https://gist.github.com/1185136
00:39 < smw> exch, but I need a for loop
00:39 < smw> exch, so you are recommending lazy1's idea?
00:39 < chilts> smw: and what happened?
00:40 < smw> chilts, syntax error
00:40 < chilts> oh right
00:40 < smw> chilts, but that should definitely work!
00:40 < smw> lol
00:41 < zeebo> smw: you could change the initializer but i prefer to keep it
DRY and lose one comparison
00:41 < smw> so, it appears lazy1 won this debate
00:41 < smw> to me it is just so wrong...  lol
00:42 < zeebo> you tend to avoid breaks in python hehe
00:42 < smw> zeebo, I avoid breaks in every language...
00:42 < chilts> same
00:42 < zeebo> breaks are ok when they're appropriate
00:42 < smw> zeebo, but in this situation it should not be needed.
00:43 -!- franciscosouza_ [~francisco@187.105.27.150] has joined #go-nuts
00:43 < lazy1> hey, I managed to avoid goto :)
00:43 < chilts> when the language doesn't support enough ways of doing loops
and conditions
00:43 < zeebo> needed != appropriate
00:43 < smw> zeebo, I understand there are times when they make sense
00:43 < smw> zeebo, I know that
00:43 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has joined #go-nuts
00:43 < smw> zeebo, what I am saying is this is a time when it is needed but
not appropriate for any other language.
00:43 < smw> lol
00:44 < zeebo> yeah i getcha
00:44 -!- franciscosouza [~francisco@187.105.23.92] has quit [Ping timeout: 240
seconds]
00:44 < smw> zeebo, I hated my CS teacher in highschool who would not let us
use breaks ever.
00:45 < smw> zeebo, she believed it as taboo as goto...
00:45 < zeebo> highschoolers generally dont have a good grasp on when those
are appropriate
00:45 -!- tansell-laptop [~tansell@42.62.196.221] has quit [Ping timeout: 245
seconds]
00:45 < smw> zeebo, I was a highschooler who knew C and python at the time.
00:46 -!- c00w [~colin@cpe-24-92-60-252.nycap.res.rr.com] has quit [Quit: Ex-Chat]
00:48 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has quit [Client Quit]
00:48 < zeebo> which euler problem is it btw?
00:48 < smw> 14
00:49 < zeebo> yay the collatz problem
00:49 < smw> zeebo, http://codepad.org/4aMJLw8V
00:50 < smw> so simple...
00:54 < smw> hm, if _, ok := answers[i]; !ok {break} seems to always break
no matter what
00:55 -!- Bigbear1 [~Cody@S010678cd8e7c81a8.cg.shawcable.net] has quit [Quit:
Leaving.]
00:57 -!- avelino_ [~avelino@189.120.233.230] has quit [Remote host closed the
connection]
00:58 < exch> If speed is a concern, you should opt for a slice of ints
instead of a map
00:59 < exch> incrementally looking for 1e6 in the map approach takes about
61 millisecs here.  The same using a slice takes 3 millisecs
01:00 < smw> exch, perhaps a slice would be better...
01:00 < smw> exch, but I do not know the max size needed
01:00 < smw> I would need to resize every time I got to a bigger number
01:01 < exch> yea, that will take extra time.  But a slice can not hold more
than 1<<31 - 1 elements.  So if you really must, you can initialize it with
that size
01:01 < smw> ok
01:02 < smw> I am trying to figure out why it keeps giving me an answer of 0
01:02 < smw> lol
01:04 -!- Ginto8 [~ginto8@pool-173-72-17-110.cmdnnj.fios.verizon.net] has joined
#go-nuts
01:06 -!- iant [~iant@67.218.106.149] has quit [Quit: Leaving.]
01:11 < smw> Anyone know what I did wrong here?  http://fpaste.org/NPtT/
01:11 < smw> I am apparently using all free memory after 6 seconds of
operation
01:11 < smw> my python version took 5 seconds to complete
01:13 < Ginto8> I think the issue is trying to allocate a 4 megabyte
contiguous chunk of memory
01:13 < smw> Ginto8, that is not allowed?
01:13 < Ginto8> I don't know
01:13 < Ginto8> lemme check the make spec
01:14 < Ginto8> actually
01:14 < Ginto8> it looks like it's trying to allocate 117 megabytes
01:14 < smw> it fails at num = 113383
01:15 < smw> it gets up to that number really fast and then stays there for
a sec
01:15 < smw> then panic
01:17 < smw> Ginto8, looks like an integer overflow
01:18 < smw> Ginto8, does go panic on integer overflow?
01:18 < Namegduf> There is no integer overflow
01:18 < Ginto8> well the error actually looks like you're allocating more
memory than the OS allows
01:18 < zeebo> it wraps
01:18 < smw> Namegduf, what do you mean?
01:18 < Namegduf> The error is that it has run out of memory
01:18 < Ginto8> I can't understand why it's allocating so much memory though
01:19 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has joined #go-nuts
01:19 < Namegduf> That is what the panic says.
01:19 < smw> Namegduf, and the reason for that is the numbers go negative.
01:19 < Namegduf> It will not be a different panic to the one it says.
01:19 < Ginto8> smw, no
01:19 < Namegduf> Go does have integer overflow, yes.
01:19 < smw> Namegduf, an integer overflow probably caused the loop to go
longer than it should which would cause too much memory.
01:19 < Ginto8> no numbers that could possibly negative are involved in
memory allocation
01:20 < Namegduf> Ginto8: See what smw said.
01:20 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has quit [Client Quit]
01:20 < smw> perhaps a uint?
01:20 < smw> I don't know how high this goes
01:20 < Namegduf> Perhaps fixing the algorithm
01:20 < Ginto8> no, there's no overflow, but in the for {}, there's no way
of allocating answers[i]
01:21 < Ginto8> it will end up an infinite loop
01:21 < smw> Ginto8, what?
01:21 < Ginto8> lines 15-24
01:21 < smw> Ginto8, what about them?
01:22 < Ginto8> well line 16 is the only line that would cause it to leave
the loop
01:22 < smw> Ginto8, that is correct
01:22 < Ginto8> and if you never cause answers[i] to exist (by assigning to
it), it will never leave the loop
01:22 < Ginto8> and will keep appending to run
01:23 < smw> Ginto8, answers[1] = 0
01:23 < Ginto8> it's not in what you pasted
01:23 < smw> line 9
01:23 < Ginto8> and anyway that's out of the loop
01:23 < Ginto8> oh wait
01:23 < Ginto8> sorry -_-
01:23 < smw> np
01:24 < smw> ok, I need some sort of integer overflow check
01:24 < smw> but that is after I solve the problem...
01:24 < smw> I am going to try a uint
01:24 < Ginto8> it's not integer overflow, you need to cap the size of run
01:24 < Namegduf> A uint will not fix the underlying problem
01:25 -!- miker2 [~miker2@pool-71-175-94-30.phlapa.fios.verizon.net] has quit
[Quit: Computer has gone to sleep.]
01:25 < Namegduf> It will just make you wrap to 0 instead of to negative
stuff
01:25 < smw> Namegduf, the Big library would...
01:25 < Namegduf> It could.  int64 might be enough, depending.
01:25 < Namegduf> I can't really tell what it's trying to do.
01:25 < smw> Namegduf, solve the project euler problem :-P
01:25 < Namegduf> "the" Project Euler problem?
01:26 < smw> ah, you missed the beginning of this
01:26 < Ginto8> I did too :/
01:26 < smw> http://projecteuler.net/index.php?section=problems&id=14
01:26 < zeebo> smw: i solved this problem a long time ago (probably in
python), so i was rewriting it in go for fun like you
01:26 < zeebo> and i kept using a memoization technique and getting the wong
answer
01:26 < zeebo> so i just took that out and it worked fine in 1.25 seconds
heh
01:27 < zeebo> premature optimization and all that jazz
01:27 < smw> I am trying to convert http://codepad.org/4aMJLw8V to go
Namegduf and Ginto8
01:27 < Namegduf> smw: That algorithm does not seem like it ought to have
any individual values go over four million
01:27 < smw> :-\
01:27 < zeebo> premature optimization and all that jazz
01:27 < zeebo> oops wrong window haha
01:28 < zeebo> this is how i did it if you want a reference
http://www.pastie.org/2463167
01:28 < Ginto8> smw, you don't need to store all the intermediary numbers,
just the number of numbers
01:29 < Namegduf> Yeah, I don't see why run exists at all there.
01:30 < smw> zeebo, I want to know which is faster, my approach or yours ;-)
01:30 < Namegduf> Ah, wait.  It's for memoisation.
01:30 < smw> Namegduf, for what?
01:30 < Namegduf> zeebo's.  It finishes.  :P
01:30 < zeebo> haha
01:30 < smw> yes...  zeebo's works...
01:30 < Namegduf> smw: In order to see what is broken, it would probably be
advisable to make it print the chain at that point
01:31 < Namegduf> Constantly printing the chain to stdout would accomplish
this; huge amount of spam, but the last line before it crashes will show you.
01:31 < smw> Namegduf, I did find what was broken, it overflowed a signed
int
01:32 < Namegduf> Which signed int goes over two billion?
01:32 < smw> ...
01:32 < smw> 113383
01:33 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has joined #go-nuts
01:33 < Namegduf> How is a chain derived from that going over two billion?
01:34 < Namegduf> It really shouldn't be doing that.
01:34 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has quit [Client Quit]
01:34 < Namegduf> I'm pretty sure if it's overflowing, it's only overflowing
because of a second problem making it do so
01:35 -!- deepfuture [~liuxing@218.75.249.184] has joined #go-nuts
01:39 -!- smw_ [~stephen@unaffiliated/smw] has joined #go-nuts
01:39 -!- smw [~stephen@unaffiliated/smw] has quit [Ping timeout: 258 seconds]
01:39 < smw_> hi
01:39 < smw_> I apparently froze my computer through overuse of memory in
python...
01:40 < smw_> any chat log since <Namegduf> It really shouldn't be
doing that.
01:40 < smw_> ?
01:41 < Namegduf> "I'm pretty sure if it's overflowing, it's only
overflowing because of a second problem making it do so."
01:41 < Namegduf> That was it.
01:41 < smw> ok
01:41 -!- fenicks [~fenicks@log77-3-82-243-254-112.fbx.proxad.net] has joined
#go-nuts
01:47 < smw> Namegduf, the numbers get really big...  1325287492
01:47 < Namegduf> Are they supposed to?
01:48 < Ginto8> smw, you said it panicked at 113382 right?
01:48 < Ginto8> cuz my program is hanging there
01:48 < smw> 2482111348L
01:48 < smw> yep
01:48 < Namegduf> If so, then I suggest figuring out what the maximum size
is, and using int64 if it will fit in that, or big if not.
01:49 < smw> Ginto8, the largest number with that number is 2482111348L
01:49 -!- jrslepak [~jrslepak@pool-74-104-100-26.bstnma.east.verizon.net] has left
#go-nuts []
01:49 < smw> Namegduf, well, we know that a uint64 will fit it
01:49 * exch still has recurring nightmares from the last time he implemented the
collatz conjecture in his own postscript flavour -> http://pastie.org/2463219
01:49 < smw> Namegduf, zeebo proved that
01:50 -!- jrslepak [~jrslepak@pool-74-104-100-26.bstnma.east.verizon.net] has
joined #go-nuts
01:50 < smw> I really want to know if this is faster than zeebo's test
01:50 -!- jrslepak [~jrslepak@pool-74-104-100-26.bstnma.east.verizon.net] has left
#go-nuts []
01:50 < smw> if it isn't, that would be hysterical
01:50 -!- jrslepak [~jrslepak@pool-74-104-100-26.bstnma.east.verizon.net] has
joined #go-nuts
01:51 < smw> Namegduf, how do I force a variables type?
01:51 < smw> Namegduf, max uint64 := 0
01:51 < smw> ?
01:51 -!- jrslepak [~jrslepak@pool-74-104-100-26.bstnma.east.verizon.net] has left
#go-nuts []
01:51 < smw> var max uint64 := 0?
01:52 < exch> max := uint64(0)
01:52 < smw> ok
01:52 < exch> or var max uint64 = 0
01:53 < Ginto8> yay mine worked!
01:54 < Ginto8> no memory allocation involved (except for stack variables)
01:56 < Ginto8> http://pastebin.com/3br3AgeL in case anyone's interested
01:57 < Namegduf> How fast?
01:58 < Ginto8> real 0m3.919s
01:58 < Ginto8> user 0m3.884s
01:58 < Ginto8> sys 0m0.004s
02:00 < Ginto8> 5 million takes significantly longer though :P
02:00 < smw> 31 seconds and it returns the wrong value
02:00 < smw> I give up
02:01 < Ginto8> there's something wrong with how your calculating the length
of the chain
02:07 < Ginto8> is there a standard package function for converting a string
to an int?
02:07 < Ginto8> ie.  "1234" will return int(1234)
02:08 < smw> Ginto8, strconv
02:08 < Ginto8> ah thanks, didn't notice that package :P
02:10 < Ginto8> if you call flag.Arg(n) and there isn't an nth arg, what
happens?
02:11 < Ginto8> aha, found it in the source
02:11 < Ginto8> returns "", if anyone's curious
02:13 -!- thrashr888 [~thrashr88@64.125.143.6] has quit [Quit: thrashr888]
02:17 -!- miker2 [~miker2@pool-71-175-94-30.phlapa.fios.verizon.net] has joined
#go-nuts
02:19 -!- segy [~segfault@pdpc/supporter/active/segy] has joined #go-nuts
02:20 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has joined #go-nuts
02:22 -!- miker2 [~miker2@pool-71-175-94-30.phlapa.fios.verizon.net] has quit
[Quit: Computer has gone to sleep.]
02:33 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 264 seconds]
02:42 -!- tansell-laptop [~tansell@42.62.196.221] has joined #go-nuts
02:42 -!- dreadlorde [~dreadlord@c-68-42-82-10.hsd1.mi.comcast.net] has quit [Ping
timeout: 252 seconds]
02:44 -!- moraes [~moraes@189.103.177.124] has quit [Quit: Leaving]
02:52 -!- deepfuture [~liuxing@218.75.249.184] has quit [Quit: Leaving.]
02:58 -!- tansell-laptop [~tansell@42.62.196.221] has quit [Ping timeout: 245
seconds]
03:01 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
03:06 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Linkinus - http://linkinus.com]
03:09 < Ginto8> http://pastebin.com/cfx7KaXp <- this is giving me
"test.go:26: append(ret, total) not used"
03:12 -!- tansell-laptop [~tansell@nat/google/x-sxbxckpvhnekmjmq] has joined
#go-nuts
03:13 < qeed> its ret = append(ret, total)
03:13 < Ginto8> ohh
03:13 < Ginto8> ok thanks
03:14 < Ginto8> that makes sense
03:33 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has quit [Quit: Computer
has gone to sleep.]
03:47 -!- BizarreCake [~BizarreCa@77.126.1.15] has joined #go-nuts
03:55 -!- danrzeppa [~danrzeppa@cpe-66-61-15-236.neo.res.rr.com] has joined
#go-nuts
03:58 -!- Bigbear1 [~Cody@S010678cd8e7c81a8.cg.shawcable.net] has joined #go-nuts
03:59 -!- Satya [63e6b4f6@gateway/web/freenode/ip.99.230.180.246] has joined
#go-nuts
04:00 -!- Satya [63e6b4f6@gateway/web/freenode/ip.99.230.180.246] has quit [Client
Quit]
04:03 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has joined #go-nuts
04:03 -!- ccc1 [~Adium@140.109.98.187] has quit [Quit: Leaving.]
04:03 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
04:06 -!- niemeyer [~niemeyer@200-102-220-163.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
04:08 -!- lazy1 [~miki@cpe-75-84-253-172.socal.res.rr.com] has quit [Ping timeout:
245 seconds]
04:10 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving]
04:13 -!- Bigbear11 [~Cody@S010678cd8e7c81a8.cg.shawcable.net] has joined #go-nuts
04:13 -!- Bigbear1 [~Cody@S010678cd8e7c81a8.cg.shawcable.net] has quit [Ping
timeout: 276 seconds]
04:16 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
04:16 -!- mode/#go-nuts [+v iant] by ChanServ
04:20 -!- sl [none@sp.inri.net] has quit [Ping timeout: 252 seconds]
04:28 -!- qeed [~qeed@adsl-98-85-47-71.mco.bellsouth.net] has quit [Quit: Leaving]
04:38 -!- ccc_ [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has quit [Quit:
leaving]
04:39 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
04:40 < f2f> so, the escape analysis changes dropped all.bash's build time
from 4m5s to 3m37s on one host, and from ~2m35s to 2m12s on another.
04:41 < f2f> coolio :)
04:41 < str1ngs> nice, but who runs all.bash?  :P
04:42 < f2f> i do.  all the time :)
04:42 < f2f> actually i don't use anything else to compile.  all.bash
forever.  i'm sure it's cost me a few man-years by now :)
04:42 < f2f> man-months, rather
04:43 < str1ngs> there are times I don't use it.  maybe I should
04:47 -!- kurrik [~kurrik@c-69-181-2-69.hsd1.ca.comcast.net] has quit [Quit:
Leaving]
04:48 -!- BizarreCake [~BizarreCa@77.126.1.15] has quit [Remote host closed the
connection]
04:51 -!- sl [none@sp.inri.net] has joined #go-nuts
04:59 -!- magn3ts [~magn3ts@colemickens.unl.edu] has joined #go-nuts
05:00 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
05:02 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
05:07 -!- sunfmin [~sunfmin@115.238.44.107] has joined #go-nuts
05:10 -!- vmil86 [~vmil86@88.118.38.213] has joined #go-nuts
05:13 -!- homa_rano [~ede@30-51-226.dynamic.csail.mit.edu] has quit [Ping timeout:
240 seconds]
05:13 -!- Nisstyre [~yours@infocalypse-net.info] has quit [Ping timeout: 250
seconds]
05:18 -!- Tv__ [~Tv__@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout:
258 seconds]
05:19 -!- homa_rano [~ede@30-51-226.dynamic.csail.mit.edu] has joined #go-nuts
05:20 -!- Bigbear11 [~Cody@S010678cd8e7c81a8.cg.shawcable.net] has quit [Read
error: Connection reset by peer]
05:22 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
05:27 -!- araujo [~araujo@190.73.44.29] has joined #go-nuts
05:27 -!- araujo [~araujo@190.73.44.29] has quit [Changing host]
05:27 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
05:31 < dmg> Hi, I have another question about implementing
polymorphism-like behaviour with interfaces.
05:31 < dmg> (code at: https://github.com/dgryski/dgohash/ )
05:32 < dmg> In murmur3.go and superfast.go, the 'Write()' calls are
virtually identical.  I can make them _actually_ identical if I change the
signature of update() call and move some accounting code around.
05:33 < dmg> However, I'm not sure the best way to structure the new types
and actually go about doing this.
05:40 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
05:41 < str1ngs> are you trying to satisfy io.Writer?
05:42 < dmg> str1ngs: in that case, yes, because I'm actually trying to
satisfy hash.Hash32
05:43 -!- benjack [~benjack@bb116-15-174-30.singnet.com.sg] has joined #go-nuts
05:43 < dmg> as in, should I made an internal type 'bufferedUpdater' or
something that contains my four-byte buffer and length, and an un-implemented call
to update() with the new signature?
05:44 < dmg> I think I'm still structuring my types pretending it's an OO
hierarchy with polymorphism -- too much java :|
05:44 < str1ngs> ok as long as the Write method signatures provide what is
needed
05:44 < dmg> yes, func(data []byte) (int, os.Error)
05:45 < str1ngs> after that things linke update are no public so thats kind
upto you what needs shared code internally or not
05:45 < str1ngs> as it looks now seems fine at least from the interface
stand point.
05:45 < dmg> right, so I would like those two methods to share code but I'm
not sure the best way to structure the sharing of just this one routine.
05:46 < dmg> because superfast and murmur3 don't really share a base type...
so I can _make_ one that will just end up being used for this one method.
05:47 < str1ngs> I might start with something like write() a private
function that returns []byte
05:51 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
05:51 -!- sunfmin [~sunfmin@115.238.44.107] has quit [Quit: sunfmin]
05:53 -!- ccc1 [~Adium@140.109.98.187] has quit [Quit: Leaving.]
05:57 < str1ngs> dmg: after you get that sorted out you can maybe make a
struct and embed it into the other two structs
05:57 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
05:57 < str1ngs> dmg: see http://golang.org/doc/effective_go.html#embedding
05:58 -!- __lucio__ [~lucio@190.246.72.114] has joined #go-nuts
05:58 < str1ngs> but imo for that not really needed.  but upto you.
05:58 < str1ngs> for this*
05:59 < dmg> str1ngs: ok, thanks
05:59 < dmg> that's probably what I'm looking for
05:59 < dmg> although I agree, likely overkill
06:01 < str1ngs> t.Errorf("%s is expected to exist on server we got %v",
06:01 < str1ngs> testDownload, pass)
06:01 < str1ngs> sorry fail paste
06:01 < str1ngs> https://gist.github.com/ea181ce8d7a1ccb8062b
06:01 < str1ngs> I made a simple example hope that helps
06:04 < __lucio__> Hello all, i have two packages (lets say, pkg1 and pkg2),
each on on ~/src/test/pkg1 and ~/src/test/pkg2 respectively.  How do i compile
pkg2 if it depends on pkg1 and i dont want to install pkg1 on the system
installation?
06:05 -!- franciscosouza [~francisco@187.105.27.150] has quit [Read error:
Connection reset by peer]
06:07 -!- franciscosouza [~francisco@187.105.27.150] has joined #go-nuts
06:13 < __lucio__> mmh, 6g -I ../pkg1/_obj/
06:15 < str1ngs> goinstall with GOPATH should do this
06:15 < str1ngs> see godoc goinstall
06:16 < __lucio__> str1ngs, reading, thanks
06:19 -!- meling [~meling@pico.ux.uis.no] has joined #go-nuts
06:20 -!- confab [~confab@c-24-10-60-185.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
06:20 -!- confab [~confab@c-24-10-60-185.hsd1.ca.comcast.net] has joined #go-nuts
06:26 -!- BigBlackDog
[~BigBlackD@HSI-KBW-109-192-007-188.hsi6.kabel-badenwuerttemberg.de] has joined
#go-nuts
06:27 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
06:32 -!- ccc1 [~Adium@140.109.98.187] has quit [Quit: Leaving.]
06:37 -!- mavar [~mavar@81-226-52-85-no179.tbcn.telia.com] has joined #go-nuts
06:42 -!- ccc1 [~Adium@140.109.103.153] has joined #go-nuts
06:43 -!- ccc12 [~Adium@140.109.98.187] has joined #go-nuts
06:46 -!- ccc1 [~Adium@140.109.103.153] has quit [Ping timeout: 260 seconds]
06:47 -!- Husio [husiatyn@oceanic.wsisiz.edu.pl] has quit [Read error: Operation
timed out]
06:51 -!- Husio [husiatyn@oceanic.wsisiz.edu.pl] has joined #go-nuts
06:52 -!- ccc12 [~Adium@140.109.98.187] has left #go-nuts []
06:56 -!- ccc1 [~Adium@140.109.98.187] has joined #go-nuts
06:56 -!- ccc1 [~Adium@140.109.98.187] has left #go-nuts []
06:56 -!- kahvi [576c168e@gateway/web/freenode/ip.87.108.22.142] has joined
#go-nuts
06:59 -!- losehole [~Adium@140.109.98.187] has joined #go-nuts
07:00 -!- yogib [~yogib@webauth-79-196.uni-paderborn.de] has joined #go-nuts
07:01 -!- fvbommel [~fvbommel_@86.86.15.250] has quit [Ping timeout: 260 seconds]
07:05 -!- chrisdot1all [~chris@segfault.net.nz] has quit [Quit: Lost terminal]
07:05 -!- chrisdothall [~chris@segfault.net.nz] has joined #go-nuts
07:05 -!- kahvi [576c168e@gateway/web/freenode/ip.87.108.22.142] has quit [Ping
timeout: 252 seconds]
07:06 -!- deepfuture [~liuxing@218.75.249.184] has joined #go-nuts
07:10 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-155-24.clienti.tiscali.it] has
joined #go-nuts
07:13 -!- Belg [~kim@2a01:2b0:301d:100:e2cb:4eff:fecd:72d2] has quit [Remote host
closed the connection]
07:14 < __lucio__> goinstall wont work with
https://github.com/banthar/Go-SDL (package has no files), but i have installed
that manually in the system repo (it works).  but goinstall wont find it when
goinstalling my packages.  how can i force Go-S?DL to get installed in GOPATH?  or
make goinstall find it where it was before
07:14 -!- erus` [~chatzilla@mailgate.ips-international.com] has joined #go-nuts
07:22 -!- tvw [~tv@e176006196.adsl.alicedsl.de] has joined #go-nuts
07:23 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:23 < vegai> I'm reading a thread from a haskell web ml where they say
that they're encoding 10 json msg/s at 100% cpu
07:23 < vegai> and they finish the thread with an analyzation that it cannot
be much faster even if implemented in C
07:24 < vegai> I'm having trouble believing that
07:24 < vsmatck> Big JSON?
07:25 -!- gobeginner [~nwood@84-93-217-24.plus.net] has joined #go-nuts
07:27 -!- danrzeppa [~danrzeppa@cpe-66-61-15-236.neo.res.rr.com] has quit [Read
error: Operation timed out]
07:28 -!- danrzeppa [~danrzeppa@cpe-66-61-15-236.neo.res.rr.com] has joined
#go-nuts
07:29 < vegai> oh, stupid me
07:30 < vegai> 182K :-p
07:31 -!- theli_ua [~theli@188.163.238.74] has joined #go-nuts
07:32 < str1ngs> I doubt they can beat yajl
07:33 < str1ngs> go is very close to yajl though.
07:33 -!- Pumbaa [~Adium@2001:610:1908:1200:226:b0ff:fee8:3eb0] has joined
#go-nuts
07:39 -!- Nisstyre [~yours@out-on-162.wireless.telus.com] has joined #go-nuts
07:41 -!- virtualsue [~chatzilla@nat/cisco/x-ckmqztgjffskozwv] has quit [Ping
timeout: 240 seconds]
07:43 -!- franciscosouza [~francisco@187.105.27.150] has quit [Read error:
Connection reset by peer]
07:45 < adamhassel> Do any of you have pointers to a http client example,
that does a POST with specific headers?
07:45 -!- franciscosouza [~francisco@187.105.27.150] has joined #go-nuts
07:46 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has quit [Ping timeout: 264 seconds]
07:47 < vsmatck> http://pastie.org/2464406 There's a function I wrote to
verify recaptcha.  It uses a POST.
07:48 < adamhassel> Yeah, it doesn't set headers :(
07:49 < adamhassel> I need specific content type and host headers...
07:49 < vsmatck> Oh. You're right.  :)
07:49 < vsmatck> 1 sec
07:50 -!- virtualsue [~chatzilla@nat/cisco/x-ekslczlzqlpriypb] has joined #go-nuts
07:50 -!- photron [~photron@port-92-201-23-49.dynamic.qsc.de] has joined #go-nuts
07:50 < vsmatck> http://pastie.org/2464416 Got that one from adg's blog
pretty much.
07:51 < vsmatck> It sets headers to indicate what compression type is being
used.
07:51 < adamhassel> Right, I'm with you that far :)
07:52 < adamhassel> Problem arises when I try and put the body in.
07:52 -!- Pumbaa [~Adium@2001:610:1908:1200:226:b0ff:fee8:3eb0] has quit [Remote
host closed the connection]
07:53 < adamhassel> See, doing a Post is easy.  So is making a request
w/custom headers, that isn't a POST (ie, has stuff in the body).
07:53 < adamhassel> Combining them seems to be hard (or, I am missing
something, which is likely, since I'm a noob @ Go ;))
07:54 < vsmatck> Ah. I see what you're saying.
07:55 < vsmatck> Yeah that is hard.  :)
07:56 -!- tvw [~tv@e176006196.adsl.alicedsl.de] has quit [Remote host closed the
connection]
07:58 < adamhassel> :(
07:59 -!- homa_rano [~ede@30-51-226.dynamic.csail.mit.edu] has quit [Ping timeout:
240 seconds]
07:59 -!- homa_rano [~ede@30-51-226.dynamic.csail.mit.edu] has joined #go-nuts
08:00 < vsmatck> Seems like the stuff to do it is not there.
08:01 < adamhassel> Yeah, that's pretty much what I figured.
08:02 < adamhassel> I guess I'll have to tick out bytes directly on the
wire, then.
08:02 * adamhassel is trying to do JSON-RPC over HTTP
08:02 -!- deepfuture [~liuxing@218.75.249.184] has quit [Quit: Leaving.]
08:02 < adamhassel> That also is not really implemented.
08:02 -!- valentin [~valentin@darkstar2.fullsix.com] has joined #go-nuts
08:02 < adamhassel> JSONRPC is.  And RPC over HTTP.  But not the combo.
08:03 -!- Nisstyre [~yours@out-on-162.wireless.telus.com] has quit [Ping timeout:
240 seconds]
08:03 -!- moraes [~moraes@189.103.177.124] has joined #go-nuts
08:11 -!- vpit3833 [~user@203.111.33.203] has quit [Read error: Operation timed
out]
08:11 -!- vpit3833 [~user@203.111.33.203] has joined #go-nuts
08:12 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts
08:13 < str1ngs> adamhassel: you just need to set Headers?
08:13 < str1ngs> if so you can do something like client :=
http.NewRequest(.....)
08:13 < str1ngs> err req :+
08:14 < str1ngs> then req.Headers.Set("key","val")
08:14 < str1ngs> then client.Do(req0
08:14 < adamhassel> Yes.
08:14 < str1ngs> one sec I'll find an example
08:14 < adamhassel> But how do I put a BODY in that req?
08:15 -!- mavar [~mavar@81-226-52-85-no179.tbcn.telia.com] has quit [Ping timeout:
245 seconds]
08:15 < str1ngs> depends on the body, is it just plain text ie not
multi-part?
08:16 < adamhassel> It's a JSON-RPC-request, so, yeah, just plain text.
08:16 < str1ngs> https://gist.github.com/f469a3246c514a3fbb7c
08:17 < str1ngs> ok for this just ignore the multi-part stuff
08:17 < str1ngs> instead write your body to buf
08:17 < str1ngs> I have not tested what you are trying to do this is just
theory
08:17 -!- Nisstyre [~yours@out-on-162.wireless.telus.com] has joined #go-nuts
08:17 < adamhassel> Mah intertoobs are slow :(
08:17 -!- smw [~stephen@unaffiliated/smw] has quit [Read error: Operation timed
out]
08:18 < str1ngs> does this make sense?  I can more simple
08:18 < adamhassel> I dunno..  Can't seem to lead the page :)
08:18 < adamhassel> load even
08:18 < str1ngs> hmm
08:18 < str1ngs> turn off the pr0n torrents?  :P
08:18 < adamhassel> Shhh!
08:18 < adamhassel> My boss is right behind me!
08:18 < adamhassel> :P
08:19 * str1ngs waves to boss.
08:19 < adamhassel> "Sending request..." says Chrome forever...
08:20 < str1ngs> also you sure you even need a Body?
08:20 < str1ngs> possibly you just need to use Values
08:21 < adamhassel> JSON
08:21 < str1ngs> ah right
08:22 < str1ngs> json.NewEncoder(buf).Encode(v)
08:22 < str1ngs> somehting like that
08:22 < str1ngs> the pass buf as Body to NewRequest
08:22 < adamhassel> Yeah, that's not the issue :)
08:22 < adamhassel> gist.github is timing out on me :(
08:22 < str1ngs> ok let me fix it does pasti.org work for you?
08:23 < str1ngs> pastie.org rather
08:23 -!- Fish [~Fish@exo3753.pck.nerim.net] has quit [Read error: Operation timed
out]
08:23 < adamhassel> Yeah, that's fine.
08:24 < str1ngs> ok I'll fix it abit and give a better example.
08:24 < adamhassel> karma(str1ngs)++
08:25 < valentin> rather *(karma(str1ngs)++)
08:25 < adamhassel> As long as the message gets though, the rest is
semantics :)
08:26 < valentin> but you may modify a copy of str1ngs' karma
08:26 < adamhassel> Then he has more karma!
08:27 < adamhassel> Combined, the copies are more than twice the karma!
08:27 < adamhassel> Everyone wins!
08:28 -!- tansell-laptop [~tansell@nat/google/x-sxbxckpvhnekmjmq] has quit [Ping
timeout: 252 seconds]
08:28 -!- Nisstyre [~yours@out-on-162.wireless.telus.com] has quit [Ping timeout:
258 seconds]
08:28 -!- tansell-laptop [~tansell@nat/google/x-otsonioofijqffeg] has joined
#go-nuts
08:29 -!- mavar [~mavar@188.92.169.90] has joined #go-nuts
08:30 < str1ngs> adamhassel: http://pastie.org/2464535
08:31 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
08:31 < str1ngs> this is not tested on an post but you get the idea
08:32 < str1ngs> I make all my client global since they are thread safe.
08:38 -!- fabled [~fabled@83.145.235.194] has quit [Ping timeout: 260 seconds]
08:39 < moraes> go'od morning.
08:43 -!- unCork[home] [Cork@h27n1c1o1042.bredband.skanova.com] has joined
#go-nuts
08:43 -!- Cork[home] [Cork@firefox/community/cork] has quit [Disconnected by
services]
08:47 < str1ngs> hello moraes
08:49 < moraes> hello
08:49 < moraes> now i understand a bit about encryption.
08:49 < moraes> from zero to a bit.  not bad.
08:49 < valentin> congrats
08:49 < moraes> :)
08:50 < moraes>
http://stackoverflow.com/questions/7263928/decrypt-using-the-ctr-mode/7264281#7264281
08:50 < moraes> i think the crypto/* apis are badass
08:50 < adamhassel> str1ngs, thanks, I'll give it a go!
08:51 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
08:51 -!- fvbommel [~fvbommel_@86.86.15.250] has joined #go-nuts
08:54 -!- deepfuture [~liuxing@218.75.249.184] has joined #go-nuts
08:55 -!- Nisstyre [~yours@out-on-210.wireless.telus.com] has joined #go-nuts
08:59 -!- kahvi [576c168e@gateway/web/freenode/ip.87.108.22.142] has joined
#go-nuts
09:02 < str1ngs> adamhassel: great I'll assume the pun was intended :P
09:04 -!- Nisstyre [~yours@out-on-210.wireless.telus.com] has quit [Ping timeout:
276 seconds]
09:04 < adamhassel> str1ngs, awesome!  it plays ball
09:04 < adamhassel> Also, no, didn't actually intend that pun :)
09:09 < str1ngs> plays ball as in worked?
09:09 < adamhassel> Indeed!
09:10 < str1ngs> nice
09:10 -!- kahvi [576c168e@gateway/web/freenode/ip.87.108.22.142] has quit [Ping
timeout: 252 seconds]
09:10 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has joined #go-nuts
09:11 -!- TimKack [~tkack@213.208.236.186] has joined #go-nuts
09:11 < moraes> in this channel you can't say "give it a go", "go for it",
"keep going" or "i have to go".
09:12 -!- snits [~snits@174-17-108-51.phnx.qwest.net] has joined #go-nuts
09:12 -!- aat [~aat@cpe-72-225-174-173.nyc.res.rr.com] has quit [Quit: Computer
has gone to sleep.]
09:13 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has joined #go-nuts
09:16 < zozoR> oh yes you can
09:16 < zozoR> but it means MORE PROGRAMMING
09:16 < zozoR> and then you start feeling awesome :)
09:19 < djbrown> str1ngs: figured out what that compile problems was, forgot
i had dropbox running eating up all the watches
09:20 -!- Solak [~stijnw@cthia.xs4all.nl] has joined #go-nuts
09:25 < str1ngs> djbrown: sounds right, I figured it was to many open
watches.  but I didnt think of a way to check that offhand
09:25 < str1ngs> glad you found the issue.
09:26 < str1ngs> is that something dropboxes does, or something you created?
09:26 < djbrown> just have alot of files on dropbox
09:27 < str1ngs> sounds like they are doing it wrong.  the right way is to
watch dirs not files
09:27 < str1ngs> then when an even fires get the file detail from the event.
09:28 < djbrown> possibly, all i know is that i eats up a ton of watches
09:29 < str1ngs> main thing is you found the problem.
09:29 < djbrown> yep
09:29 -!- erus` [~chatzilla@mailgate.ips-international.com] has quit [Quit:
ChatZilla 0.9.87 [Firefox 6.0.1/20110830092941]]
09:29 < djbrown> all is good ;)
09:29 < str1ngs> but now that I think about it.  that error is not very
intuitive
09:29 < str1ngs> it could be a syserror not go related
09:30 -!- Nisstyre [~yours@out-on-135.wireless.telus.com] has joined #go-nuts
09:38 -!- Nisstyre [~yours@out-on-135.wireless.telus.com] has quit [Ping timeout:
264 seconds]
09:38 -!- [1]confab [~confab@c-24-10-60-185.hsd1.ca.comcast.net] has joined
#go-nuts
09:39 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has joined #go-nuts
09:39 -!- Netsplit *.net <-> *.split quits: Archwyrm, tansell-laptop,
preflex, serialhex, grncdr, fenicks, yugui_zzz, EvilJStoker, confab, hokapoka, (+6
more, use /NETSPLIT to show all of them)
09:40 -!- Netsplit over, joins: preflex
09:40 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
09:41 -!- snits [~snits@174-17-108-51.phnx.qwest.net] has quit [Read error:
Connection reset by peer]
09:42 -!- Netsplit over, joins: foocraft, mavar, tansell-laptop, fenicks, kkress,
Adys, napsy, serialhex, grncdr, yugui_zzz (+3 more)
09:45 -!- EvilJStoker [jstoker@unaffiliated/jstoker] has joined #go-nuts
09:51 -!- erus` [~chatzilla@mailgate.ips-international.com] has joined #go-nuts
10:01 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
joined #go-nuts
10:06 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
quit [Quit: Linkinus - http://linkinus.com]
10:07 -!- Fish [~Fish@exo3753.pck.nerim.net] has quit [Ping timeout: 240 seconds]
10:10 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
10:14 -!- deepfuture [~liuxing@218.75.249.184] has quit [Quit: Leaving.]
10:16 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
10:22 -!- xulfer [~xulfer@ipv6.cheapbsd.net] has quit [Quit: quitting]
10:23 -!- BizarreCake [~BizarreCa@77.126.1.15] has joined #go-nuts
10:23 -!- xulfer [~xulfer@ipv6.cheapbsd.net] has joined #go-nuts
10:24 -!- Niedar [~dgdfg@host-173-230-2-133.vanodod.clients.pavlovmedia.com] has
quit [Ping timeout: 258 seconds]
10:25 -!- ccc_ [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has joined #go-nuts
10:31 -!- replore [~replore@203.152.213.161.static.zoot.jp] has quit [Read error:
Connection reset by peer]
10:38 -!- GeertJohan [~geertjoha@s51478c91.adsl.wanadoo.nl] has joined #go-nuts
10:43 < moraes> wow weekly changes list is huge.  is that usual?
10:49 -!- benjack [~benjack@bb116-15-174-30.singnet.com.sg] has quit [Quit:
Leaving.]
10:50 < gobeginner> "* cov: remove tautological #defines.  (thanks Lucio De
Re) " is interesting, is the code coverage tool finally being fixed?
10:50 -!- BizarreCake [~BizarreCa@77.126.1.15] has quit [Read error: Connection
reset by peer]
10:53 < gobeginner> It isn't fixed for me at least:
10:53 < gobeginner> go/hg/src/pkg/math$ make coverage
10:53 < gobeginner> 6cov -g go/hg/src/pkg/math 8.out | grep -v '_test\.go:'
10:53 < gobeginner> 6cov: cannot read pc: can't translate address 90
10:54 < exch> moraes: this one seems particularly lenghty
10:54 < gobeginner> I guess they'll get to it eventually.
10:55 -!- Argue [~Argue@112.201.172.5] has joined #go-nuts
10:58 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
joined #go-nuts
10:58 -!- theli_ua [~theli@188.163.238.74] has quit [Read error: Connection reset
by peer]
11:00 -!- theli_ua [~theli@188.163.238.74] has joined #go-nuts
11:01 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has quit [Ping timeout: 264 seconds]
11:05 -!- x44t [~xps@175.169.150.111] has quit [Read error: Connection reset by
peer]
11:07 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
quit [Quit: Leaving...]
11:08 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
joined #go-nuts
11:13 -!- BizarreCake [~BizarreCa@77.126.1.15] has joined #go-nuts
11:18 -!- nekoh [~nekoh@dslb-178-004-069-176.pools.arcor-ip.net] has joined
#go-nuts
11:18 -!- Project-2501 [~Marvin@82.84.91.84] has joined #go-nuts
11:21 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-155-24.clienti.tiscali.it] has
quit [Ping timeout: 260 seconds]
11:39 -!- hargettp [~hargettp@pool-71-174-130-252.bstnma.east.verizon.net] has
quit [Quit: Leaving...]
11:55 -!- replore_ [~replore@ntkngw133234.kngw.nt.ftth.ppp.infoweb.ne.jp] has
joined #go-nuts
11:58 -!- miker2 [~miker2@64.55.31.190] has joined #go-nuts
11:58 -!- ericvh [~Adium@cpe-72-177-122-77.austin.res.rr.com] has quit [Quit:
Leaving.]
12:13 -!- franciscosouza [~francisco@187.105.27.150] has quit [Quit:
franciscosouza]
12:27 -!- danrzeppa [~danrzeppa@cpe-66-61-15-236.neo.res.rr.com] has left #go-nuts
[]
12:28 -!- danrzeppa [~danrzeppa@cpe-66-61-15-236.neo.res.rr.com] has joined
#go-nuts
12:30 -!- lucid [~rbl@84-74-139-92.dclient.hispeed.ch] has joined #go-nuts
12:33 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
12:39 -!- tncardoso [~thiago@187.114.53.215] has joined #go-nuts
12:40 -!- dmg [~dmg@ip56513def.adsl-surfen.hetnet.nl] has quit [Read error:
Operation timed out]
12:46 -!- meling [~meling@pico.ux.uis.no] has quit [Remote host closed the
connection]
12:47 -!- odoacre [~antonio@218.241.169.34] has quit [Quit: Leaving]
12:47 -!- deepfuture [~liuxing@220.170.28.26] has joined #go-nuts
12:48 -!- Nisstyre [~yours@out-on-204.wireless.telus.com] has joined #go-nuts
12:51 -!- Project_2501 [~Marvin@82.84.85.212] has joined #go-nuts
12:51 -!- TheMue [~FMueller@p5DDF73BF.dip.t-dialin.net] has joined #go-nuts
12:54 -!- Project-2501 [~Marvin@82.84.91.84] has quit [Ping timeout: 240 seconds]
12:54 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Read
error: Connection reset by peer]
12:55 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has joined #go-nuts
12:55 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts
13:06 -!- x44t [~xps@175.169.150.111] has joined #go-nuts
13:07 -!- Project-2501 [~Marvin@82.84.95.120] has joined #go-nuts
13:10 -!- Project_2501 [~Marvin@82.84.85.212] has quit [Ping timeout: 258 seconds]
13:12 -!- hkh [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined #go-nuts
13:17 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has quit [Quit: wrtp]
13:18 -!- Nisstyre [~yours@out-on-204.wireless.telus.com] has quit [Ping timeout:
260 seconds]
13:22 -!- tansell-laptop [~tansell@nat/google/x-otsonioofijqffeg] has quit [Ping
timeout: 240 seconds]
13:27 -!- Nisstyre [~yours@out-on-164.wireless.telus.com] has joined #go-nuts
13:28 -!- moraes [~moraes@189.103.177.124] has quit [Remote host closed the
connection]
13:31 -!- Project_2501 [~Marvin@82.84.71.2] has joined #go-nuts
13:34 -!- Project-2501 [~Marvin@82.84.95.120] has quit [Ping timeout: 252 seconds]
13:36 -!- ericvh [~Adium@32.97.110.64] has joined #go-nuts
13:40 -!- ericvh [~Adium@32.97.110.64] has quit [Read error: Connection reset by
peer]
13:40 -!- ericvh [~Adium@32.97.110.64] has joined #go-nuts
13:41 -!- tansell-laptop [~tansell@42.62.196.221] has joined #go-nuts
13:48 -!- x44t [~xps@175.169.150.111] has quit [Quit: Leaving.]
13:50 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 252
seconds]
13:51 -!- dunsten [82580048@gateway/web/freenode/ip.130.88.0.72] has joined
#go-nuts
13:52 < dunsten> Has there ever been any discussion of why Go doesn't allow
block comments to nest?  Effective Go specifically says that they can be used to
comment out large blocks of code, so it makes sense to allow this, and it would be
trivial to add to the scanner.  Something that's come up before?
13:55 -!- ike_ [4556237f@gateway/web/freenode/ip.69.86.35.127] has joined #go-nuts
13:55 -!- niemeyer [~niemeyer@200-102-220-163.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
13:55 < ike_> anyone in the tri-state area?
14:01 -!- ike_ [4556237f@gateway/web/freenode/ip.69.86.35.127] has quit [Quit:
Page closed]
14:02 -!- dmg [~dmg@ip56513def.adsl-surfen.hetnet.nl] has joined #go-nuts
14:02 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
14:05 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
14:07 < dunsten> ike_: aren't there quite a lot of places that could be
described as "tri-state"?  NT? Iowa?  Philadelphia?
14:07 < adamhassel> BeNeLux ;)
14:09 < mpl> the evil axe
14:09 < mpl> *axis
14:10 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-176-66.clienti.tiscali.it] has
joined #go-nuts
14:13 -!- Project_2501 [~Marvin@82.84.71.2] has quit [Ping timeout: 260 seconds]
14:15 -!- Nisstyre [~yours@out-on-164.wireless.telus.com] has quit [Remote host
closed the connection]
14:17 -!- nekoh [~nekoh@dslb-178-004-069-176.pools.arcor-ip.net] has quit [Ping
timeout: 258 seconds]
14:19 -!- Nisstyre [~yours@infocalypse-net.info] has joined #go-nuts
14:26 -!- nekoh [~nekoh@dslb-088-068-000-173.pools.arcor-ip.net] has joined
#go-nuts
14:29 -!- miker2 [~miker2@64.55.31.190] has quit [Read error: Connection reset by
peer]
14:29 -!- miker2_ [~miker2@64.55.31.190] has joined #go-nuts
14:30 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
14:32 -!- dunsten [82580048@gateway/web/freenode/ip.130.88.0.72] has quit [Quit:
Page closed]
14:35 -!- joshbaptiste [~joshbapti@74.63.255.72] has quit [Ping timeout: 258
seconds]
14:36 -!- joshbaptiste [~joshbapti@74.63.255.72] has joined #go-nuts
14:39 -!- deepfuture [~liuxing@220.170.28.26] has quit [Quit: Leaving.]
14:40 < Argue> if I have this code here http://pastebin.com/Sdq99zWH
14:40 < Argue> Aside from doing a check on the outside and switching
strategies, is there a way to prevent out <- myList.Front() from executing if
myList is empty?
14:42 < hkh> Argue, "default: if myList != empty { out <- myList.Front()
}" maybe?
14:43 < Argue> now why didn't i think of that
14:43 < Argue> although...  that would use a lot of cycles wouldn't it (it's
in a loop)
14:44 -!- miker2_ [~miker2@64.55.31.190] has quit [Read error: Connection reset by
peer]
14:44 -!- miker2_ [~miker2@64.55.31.190] has joined #go-nuts
14:44 < hkh> Probably yes.  I'll try something.
14:44 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has joined #go-nuts
14:45 < jessta> Argue: you could check first and set out to nil
14:45 < valentin> why don't you make myList a chan of its own, as it seems
you use it as a pure FIFO
14:46 < Argue> Ah, I wanted it to buffer indefinitely.
14:46 -!- moraes [~moraes@189.103.177.124] has joined #go-nuts
14:46 < jessta> Argue: and set out back to out when things come in
14:46 < Argue> jessta, that would also use a lot of cycles wouldn't it?
14:47 < Argue> all i can think of is something like if { select{} } else {
select{} }
14:47 < hkh> Are those lost cycles too big problem?
14:48 < Argue> well no, but i don't like it :P
14:48 < zeebo> a terrible hack you might want to consider is having myList
return a channel that it will never send anything down if it's empty
14:49 < zeebo> oh wait
14:49 < zeebo> ignore that im dumb
14:50 < jessta> Argue: eg.  http://pastebin.com/nVpZG4aH
14:50 -!- tansell-laptop [~tansell@42.62.196.221] has quit [Ping timeout: 264
seconds]
14:51 < Argue> oh, wait, would it treat the case as nonexistent if out is
nil?
14:51 -!- aat [~aat@rrcs-184-75-54-130.nyc.biz.rr.com] has joined #go-nuts
14:52 < jessta> " A channel may be nil, which is equivalent to that case not
being present in the select statement except, if a send, its expression is still
evaluated."
14:52 < jessta> hmmm...
14:53 < Argue> doh
14:55 < jessta> also, infinite channels are a bad idea
14:56 < jessta> if you need an infinite channel, then you also need infinite
memory
14:57 -!- GeertJohan [~geertjoha@s51478c91.adsl.wanadoo.nl] has quit [Quit:
Leaving.]
14:57 < Argue> That's true.  I was too lazy to figure out appropriate buffer
sizes.
14:58 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
14:59 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Client Quit]
14:59 < jessta> Argue: how about just 1000
14:59 < Argue> That would probably be more than enough.  I guess I'll just
use a channel.
15:00 -!- enjoycrf [~enjoycrf@rrcs-74-62-47-147.west.biz.rr.com] has joined
#go-nuts
15:03 -!- hkh [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Ping
timeout: 252 seconds]
15:04 -!- ericvh [~Adium@32.97.110.64] has quit [Quit: Leaving.]
15:05 -!- tncardoso [~thiago@187.114.53.215] has quit [Remote host closed the
connection]
15:10 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
15:11 < enjoycrf> ok this chanel anyhting but nuts lol
15:11 -!- enjoycrf [~enjoycrf@rrcs-74-62-47-147.west.biz.rr.com] has left #go-nuts
["Leaving"]
15:12 -!- fabled [~fabled@83.145.235.194] has quit [Ping timeout: 276 seconds]
15:12 < twolfe18> i never considered how the name of this chan would be
interpreted if you don't know what it is… lol
15:12 -!- fabled [~fabled@83.145.235.194] has joined #go-nuts
15:13 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 240 seconds]
15:14 -!- virtualsue [~chatzilla@nat/cisco/x-ekslczlzqlpriypb] has quit [Ping
timeout: 260 seconds]
15:17 -!- avelino [~avelino@unaffiliated/avelino] has quit [Remote host closed the
connection]
15:19 -!- ericvh [~Adium@32.97.110.64] has joined #go-nuts
15:20 -!- virtualsue [~chatzilla@host81-139-100-166.in-addr.btopenworld.com] has
joined #go-nuts
15:21 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
15:21 < nsf> oh no
15:21 < nsf> :(
15:21 < nsf> gocode is broken again :D
15:21 < nsf> by escape analysis
15:22 * nsf sighs
15:23 < nsf> but now I know that escape analysis works across packages
15:23 < nsf> which is nice
15:24 -!- BizarreCake [~BizarreCa@77.126.1.15] has quit [Ping timeout: 252
seconds]
15:24 < gobeginner> That explains the PANIC it keeps suggesting then
15:24 < nsf> gobeginner: yes :(
15:25 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
15:30 < mpl> heh.  "when in doubt, just call panic()" :)
15:30 < nsf> gocode is fixed
15:30 < nsf> should work on weekly 2011-09-01 now
15:31 < nsf> another hack...
15:31 < nsf> I really should move the packages parser to robert's GcImporter
15:34 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
15:36 -!- theli_ua [~theli@188.163.238.74] has quit [Quit: Leaving]
15:37 -!- TimKack [~tkack@213.208.236.186] has quit [Quit: TimKack]
15:40 -!- meling [~meling@134.81-167-41.customer.lyse.net] has joined #go-nuts
15:42 < nsf> hm..
15:42 < nsf> go/types has a very ugly interface
15:42 < nsf> all I need is the parser
15:42 < nsf> but it will do all the file searches for me as well
15:42 < nsf> I guess I'll have to fork it
15:43 -!- BizarreCake [~BizarreCa@77.126.1.15] has joined #go-nuts
15:50 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Quit: twolfe18]
15:51 -!- snits [~snits@174-17-108-51.phnx.qwest.net] has joined #go-nuts
15:52 -!- Argue [~Argue@112.201.172.5] has quit [Quit: Leaving]
15:53 -!- erus` [~chatzilla@mailgate.ips-international.com] has quit [Remote host
closed the connection]
16:00 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:02 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has joined
#go-nuts
16:05 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
16:06 < nsf> hehe, ok, 197 followers on the github
16:06 < nsf> 3 more and I will reimplement package parser
16:06 < nsf> :D
16:07 -!- tncardoso [~thiagon@150.164.2.20] has joined #go-nuts
16:11 < moraes> followers of what?
16:11 < mpl> you know your code is sad when even you don't want to touch
it...  :/
16:11 < nsf> https://github.com/nsf/gocode
16:12 < nsf> mpl: yeah, I know
16:12 < mpl> nsf: I'm not speaking of your code, just for things to be clear
:)
16:12 < mpl> but some horrible c++ I did.
16:12 -!- x44t [~xps@175.169.150.111] has joined #go-nuts
16:12 < nsf> gocode is the most horrible code I ever wrote
16:12 < nsf> but it work
16:12 < nsf> works*
16:13 < nsf> :D
16:13 < moraes> 199
16:13 < nsf> :D
16:13 < moraes> i followed but i don't use emacs
16:13 * mpl becomes a follower just to force nsf
16:13 < mpl> there we go ;)
16:14 < nsf> 200, yay
16:14 < nsf> mpl: I need to practice writing parsers anyway
16:14 < nsf> :D
16:14 < nsf> in parallel I work on a scripting language
16:15 < moraes> nsf, i use the same 'code chapters' separator style
16:15 < nsf> moraes: //----------?
16:16 < moraes> yep.  maybe i copied from some go code unconsciously :-/
16:16 < nsf> hehe
16:16 < nsf> I don't know why I use them
16:16 < moraes> i use them because i get lost
16:17 < moraes> i'm very strict about EOL 79 though
16:17 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has joined #go-nuts
16:17 < moraes> i'm a EOL 79 nazi
16:17 < nsf> moraes: some things in Go are very hard to break
16:17 < moraes> yeah
16:17 < nsf> wait, I'll give you an example
16:18 < nsf> func (t *Lexer) match3(tok1 int, lit1 string, rune2 int, tok2
int, lit2 string, rune3 int, tok3 int, lit3 string) Token {
16:18 < moraes> i discovered how to break most things
16:18 < moraes> break after comma
16:18 < nsf> yes, but it will be ugly
16:18 < moraes> nope
16:18 < moraes> align with parentheses
16:18 < nsf> gofmt will place it on the first column
16:18 < mpl> ok, break after then gofmt -w ;)
16:18 < moraes> gofmt is wrong about that
16:19 < moraes> *obviously*
16:19 < nsf> I guess, but I'm just leaving it as a long line for now
16:19 < moraes> will search if there's a bug filed later
16:20 < nsf> ugh, my package.go is a mess
16:20 < moraes> indeed.  this kind of code gofmt should just delete.
16:20 < nsf> :D
16:21 -!- tgall_foo [~tgall@linaro/tgall-foo] has quit [Remote host closed the
connection]
16:21 -!- tgall_foo [~tgall@206.9.88.154] has joined #go-nuts
16:21 < nsf> and there is one horrible thing I did
16:21 < nsf> I'm using "go/ast" directly to represent types in gocode
16:22 < nsf> so..  now if I'm writing a parser for packages
16:22 < nsf> I'll have to make ast nodes for types
16:22 < nsf> but that's not a big deal I hope
16:22 -!- sebastianskejoe [~sebastian@56345014.rev.stofanet.dk] has joined
#go-nuts
16:23 < moraes> so.  you follow go since when?
16:23 < nsf> since the beginning :)
16:23 < nsf> I rememeber days when there were no semicolon insertion
16:23 < moraes> wow that was so long ago, like 2 years
16:24 < nsf> yes
16:24 < moraes> :P
16:24 < nsf> gocode was written 1.5 years ago
16:24 < moraes> ok.  i follow from a distance since beginning.
16:24 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
joined #go-nuts
16:24 < nsf> I think
16:24 -!- ccc_ [~macroron@c-76-26-54-186.hsd1.fl.comcast.net] has quit [Ping
timeout: 240 seconds]
16:24 < nsf> Mon Jul 5 02:49:39 2010 +0600
16:24 < moraes> i actually wote some go code one month ago.
16:24 < nsf> well, a year ago
16:24 < nsf> that's the first commit
16:24 < moraes> let me confess something.
16:25 < moraes> i never used a goroutine!  :D
16:25 < nsf> moraes: I use them rarely as well
16:25 < moraes> ok.  but i also don't know what they are!  :D
16:25 < valentin> :)
16:25 < moraes> i have an idea.
16:26 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Quit: Ex-Chat]
16:26 < valentin> like threads but lighter
16:26 < nsf> and scheduled differently
16:26 < moraes> yeah that's my idea.
16:26 < moraes> like parallel workers.
16:26 < valentin> yup
16:27 < jessta> moraes: they don't need to be parallel
16:27 < moraes> ok.
16:27 < valentin> in fact, multiple goroutine are muxed in a system thread
16:27 < valentin> (or in multiple system threads, depending on how much
goroutine you have)
16:28 < valentin> (please anyone stop me if I'm wrong )
16:28 < nsf> you're wrong
16:28 < nsf> :D
16:28 < nsf> the number of system threads depends on few factors
16:29 < nsf> one is blocked goroutines (when goroutine is blocked in a
syscall, another thread is being spawned)
16:29 < nsf> and the second one is GOMAXPROCS
16:29 < nsf> by default it's == 1
16:29 < nsf> but you can set to to a higher number
16:29 < nsf> that actually affects the number of goroutines _running_ in
parallel
16:30 < valentin> but a too high GOMAXPROC is useless isn't it ?
16:30 < nsf> yes
16:30 < nsf> in fact
16:30 < nsf> currently when it's > 1 it's bad
16:30 < nsf> in most cases
16:30 < nsf> :)
16:30 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Read error:
Connection reset by peer]
16:31 < nsf> context switching and synchronization in scheduler kills all
the benefits
16:31 < nsf> kill*
16:31 < moraes> nsf: 200
16:31 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has joined #go-nuts
16:31 < nsf> on the other hand
16:31 < nsf> some apps will be faster
16:31 < nsf> of course if your machine has multiple CPUs
16:32 < nsf> which is true for almost everyone
16:32 < moraes> reimplement package parser, you promised, i have it saved in
my logs, it is not fair
16:32 < nsf> moraes: I will
16:32 < moraes> hehe ok
16:32 < nsf> in fact I'm looking at package.go right now
16:32 < nsf> on the second monitor :D
16:33 < nsf> trying to figure out how it works
16:33 < nsf> lol
16:33 < nsf> :D
16:33 -!- kevlar_work [~kevlar@unaffiliated/eko] has quit [Ping timeout: 258
seconds]
16:37 -!- kevlar_work [~kevlar@unaffiliated/eko] has joined #go-nuts
16:38 -!- TheMue [~FMueller@p5DDF73BF.dip.t-dialin.net] has quit [Ping timeout:
264 seconds]
16:42 < moraes> i hate that -er is the convention for interface names
16:42 < moraes> "It Doesn't Scale"
16:42 -!- gobeginner [~nwood@84-93-217-24.plus.net] has quit [Ping timeout: 252
seconds]
16:42 < nsf> don't use it
16:43 < valentin> it doesn't make sense in all situations
16:44 < valentin> type Lesser interface { Less(a, b interface{}) bool } ??!
16:44 < nsf> more like Comparer
16:44 < moraes> i'm a convention freak so i have to use it.  so my Encoder
implements the interface Encoderer.
16:44 < moraes> nah.
16:45 < moraes> this convention simply doesn't scale past obvious interface
names.
16:45 < nsf> you can also have an interface and an implementation named the
same way
16:45 < nsf> let's say
16:45 < nsf> audio.Encoder - interface
16:45 < nsf> audio.MP3.Encoder - impl
16:45 < nsf> or well, packages are lowercase
16:45 < nsf> audio.mp3.Encoder - impl
16:46 < nsf> it's perfectly ok imho :)
16:46 < moraes> hm.
16:46 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
16:46 < pharris> I would expect an Encoder to implement the function
"Encode".
16:46 < moraes> create a new package for the basic implementation.
16:47 < nsf> moraes: it should be easy, current makefile crap though, makes
it hard
16:47 -!- thrashr888 [~thrashr88@64.125.143.6] has joined #go-nuts
16:47 < nsf> I had an alternative makefile system that makes it easy
16:47 < nsf> but I'm afraid it's outdated :)
16:47 < nsf> I'll fix it soon though
16:47 < nsf> after package.go reimplementation probably
16:48 < nsf> and to make sure it stays up-to-date, I'll move gocode to that
system
16:48 < jessta> goinstall
16:48 < nsf> :D
16:48 * nsf hates goinstall
16:48 < nsf> ;)
16:48 < jessta> why?
16:48 < nsf> I don't knwo
16:48 < nsf> know*
16:48 < nsf> I guess I don't believe in magic
16:48 < nsf> that much
16:49 < jessta> what magic?
16:49 < nsf> goinstall
16:49 < nsf> it's supposed to magically install everything
16:50 -!- GintoDroid [~ginto8@66-87-13-208.pools.spcsdns.net] has joined #go-nuts
16:50 < jessta> it's not really magical, it's pretty straight forward
16:50 < nsf> gocode for example uses custom generator tool written in go
16:50 < nsf> so the build system should build that generator
16:50 < nsf> and run it
16:50 < nsf> goinstall will never install gocode without running its
makefile
16:51 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
16:52 < nsf> it's not like I can't avoid that
16:52 < nsf> but that's a trivial thing
16:52 < nsf> a lot of big projects do that
16:52 < nsf> goinstall won't work for them
16:52 < nsf> I would call goinstall a NIH product, but I don't like that
word
16:53 < GintoDroid> Nih?
16:53 < moraes> not invented here
16:53 < nsf> not invented here
16:54 < nsf> http://en.wikipedia.org/wiki/Not_Invented_Here
16:54 -!- avelino_ [~avelino@189.120.233.230] has joined #go-nuts
16:55 < nsf> build systems is an area where NIH especially hurts
16:55 < nsf> because build system is a complicated topic
16:56 < nsf> well, whatever, I just don't like goinstall
16:56 < nsf> it conflicts with my understanding of build systems
16:56 < nsf> :D
16:57 -!- avelino [~avelino@unaffiliated/avelino] has quit [Ping timeout: 240
seconds]
16:58 -!- GintoDroid [~ginto8@66-87-13-208.pools.spcsdns.net] has quit [Ping
timeout: 240 seconds]
16:59 -!- mrsrikanth [~mrsrikant@59.92.81.167] has joined #go-nuts
17:00 -!- kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined
#go-nuts
17:00 < danrzeppa> has anyone used gb for building their app?  and does
anyone know how it differs from goinstall now?
17:00 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit:
Leaving.]
17:01 < zozoR> i have
17:02 < zozoR> i havent used goinstall though
17:02 < zozoR> and only used gb for simple building
17:02 -!- pyrhho [~pyrhho@host-92-27-75-48.static.as13285.net] has quit [Quit:
pyrhho]
17:03 < jessta> nsf: goinstall works well for most projects, because most
projects have very simple build requirements
17:03 < nsf> jessta: ok ok, it doesn't work for me
17:04 < nsf> I'm not saying it sucks
17:04 < nsf> if people want to use it, that's ok
17:04 < nsf> :D
17:05 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Quit: twolfe18]
17:05 -!- noam [~noam@87.69.42.61.cable.012.net.il] has quit [Ping timeout: 250
seconds]
17:06 < zozoR> isnt goinstall only for packages anyway?
17:06 < nsf> zozoR: I think it now works for apps too
17:06 < zozoR> i think you work for apps too
17:06 -!- BizarreCake [~BizarreCa@77.126.1.15] has quit [Quit: Leaving]
17:06 < nsf> :D
17:07 * nsf is not a build system
17:07 < zozoR> that's what she said!
17:08 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
17:10 -!- remy_o [~babar@archlinux/developer/remy-o] has joined #go-nuts
17:10 < nsf> haha, ok, I'm rewriting package.go
17:10 < nsf> I promised
17:12 -!- valentin [~valentin@darkstar2.fullsix.com] has quit [Remote host closed
the connection]
17:12 -!- alehorst2 [~alehorst@189.58.21.184.dynamic.adsl.gvt.net.br] has joined
#go-nuts
17:12 -!- noam [~noam@87.69.42.61.cable.012.net.il] has joined #go-nuts
17:14 < jessta> zozoR: if there is a package main and you've set $GOBIN then
it will compile that and put the executable in $GOBIN
17:14 -!- alehorst [~alehorst@189.58.21.184.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 245 seconds]
17:14 < zozoR> gb is fine ^^
17:15 -!- fabled [~fabled@83.145.235.194] has quit [Quit: Ex-Chat]
17:17 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Quit: twolfe18]
17:24 -!- XenoPhoenix [~Xeno@cpc13-aztw24-2-0-cust23.aztw.cable.virginmedia.com]
has quit [Ping timeout: 240 seconds]
17:25 -!- smw [~stephen@unaffiliated/smw] has quit [Ping timeout: 240 seconds]
17:26 -!- TheMue [~FMueller@p5DDF73BF.dip.t-dialin.net] has joined #go-nuts
17:29 -!- caljunior_ [3e2dec4a@gateway/web/freenode/ip.62.45.236.74] has joined
#go-nuts
17:31 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
17:35 -!- caljunior_ [3e2dec4a@gateway/web/freenode/ip.62.45.236.74] has quit
[Quit: Page closed]
17:37 -!- moraes [~moraes@189.103.177.124] has quit [Remote host closed the
connection]
17:42 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has quit
[Quit: Coyote finally caught me]
17:42 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Quit: twolfe18]
17:44 -!- robteix [~robteix@ec2-174-129-247-164.compute-1.amazonaws.com] has
joined #go-nuts
17:46 -!- BigBlackDog
[~BigBlackD@HSI-KBW-109-192-007-188.hsi6.kabel-badenwuerttemberg.de] has quit
[Quit: WeeChat 0.3.6-dev]
17:47 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
17:47 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
17:52 -!- muke [~doobies@75-59-237-124.lightspeed.sntcca.sbcglobal.net] has joined
#go-nuts
18:01 -!- sebastianskejoe [~sebastian@56345014.rev.stofanet.dk] has quit [Quit:
Lost terminal]
18:03 -!- kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Ping
timeout: 252 seconds]
18:05 -!- remy_o [~babar@archlinux/developer/remy-o] has quit [Quit: WeeChat
0.3.5]
18:10 -!- mrsrikanth [~mrsrikant@59.92.81.167] has quit [Quit: Leaving]
18:11 -!- remy_o [~babar@archlinux/developer/remy-o] has joined #go-nuts
18:11 -!- tncardoso [~thiagon@150.164.2.20] has quit [Quit: Leaving]
18:14 -!- mavar [~mavar@188.92.169.90] has quit [Ping timeout: 240 seconds]
18:25 -!- kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined
#go-nuts
18:30 -!- mavar [~mavar@81-226-52-85-no179.tbcn.telia.com] has joined #go-nuts
18:34 -!- smw [~stephen@unaffiliated/smw] has joined #go-nuts
18:35 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Quit: twolfe18]
18:41 -!- BigBlackDog
[~BigBlackD@HSI-KBW-109-192-007-188.hsi6.kabel-badenwuerttemberg.de] has joined
#go-nuts
18:49 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-153-109.clienti.tiscali.it]
has joined #go-nuts
18:52 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-176-66.clienti.tiscali.it] has
quit [Ping timeout: 240 seconds]
18:57 -!- scorpil [~voffka@77.126.187.108] has joined #go-nuts
18:58 < xyproto> If var x [2]int = [2]int{1, 2}, why isn't x == x true, even
if == isn't defined for arrays?  Surely, x == x is true, regardless of the type?
Or is this due to concurrency, and fear that x may change while comparing them?
18:58 < xyproto> Yes, it's not very useful to compare x with x, but still
18:58 < xyproto> It is true
18:59 < Ginto8> I don't think they made x == x a special case, so that would
be why
18:59 < xyproto> Ginto8: good point
19:02 -!- Xenith [~xenith@xenith.org] has quit [Quit: leaving]
19:02 -!- thrashr888 [~thrashr88@64.125.143.6] has quit [Quit: thrashr888]
19:03 < jessta> xyproto: &x == &x
19:03 -!- jstemmer [~cheetah@mrpwn.stemmertech.com] has quit [Quit: leaving]
19:05 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
19:10 -!- Xenith [~xenith@xenith.org] has joined #go-nuts
19:20 -!- valentin [~valentin@85-170-19-98.rev.numericable.fr] has joined #go-nuts
19:21 -!- PortatoreSanoDiI [~Marvin@dynamic-adsl-94-36-153-109.clienti.tiscali.it]
has quit [Quit: E se abbasso questa leva che succ...]
19:22 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-153-109.clienti.tiscali.it] has
joined #go-nuts
19:23 -!- moraes [~moraes@189.103.177.124] has joined #go-nuts
19:23 -!- avelino_ [~avelino@189.120.233.230] has quit [Remote host closed the
connection]
19:23 -!- avelino [~avelino@189.120.233.230] has joined #go-nuts
19:23 -!- avelino [~avelino@189.120.233.230] has quit [Changing host]
19:23 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
19:28 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed
the connection]
19:31 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-153-109.clienti.tiscali.it] has
quit [Read error: Connection reset by peer]
19:31 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-153-109.clienti.tiscali.it] has
joined #go-nuts
19:32 -!- BigBlackDog
[~BigBlackD@HSI-KBW-109-192-007-188.hsi6.kabel-badenwuerttemberg.de] has quit
[Read error: Connection reset by peer]
19:32 < xyproto> jessta: &x == &x, yes, but x == x also
19:33 -!- BigBlackDog
[~BigBlackD@HSI-KBW-109-192-007-188.hsi6.kabel-badenwuerttemberg.de] has joined
#go-nuts
19:33 < xyproto> I'm working on my little c2go project, this is why I'm
asking
19:33 -!- TheMue [~FMueller@p5DDF73BF.dip.t-dialin.net] has quit [Ping timeout:
240 seconds]
19:34 < xyproto> Another funny thing is "if !(1) {}", this let's me know
that "invalid operation: ! ideal".  I'm happy I had an ideal "!" there ;)
19:35 -!- TheMue [~FMueller@p5DDF73BF.dip.t-dialin.net] has joined #go-nuts
19:37 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-160-153.clienti.tiscali.it] has
joined #go-nuts
19:38 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-153-109.clienti.tiscali.it] has
quit [Ping timeout: 252 seconds]
19:39 < remy_o> i didn't know Go implemented commutative algebra oO
19:41 < jessta> xyproto: 1 is an ideal constant
19:52 < nsf> yes, in gc "ideal" is an untyped number with arbitrary
precision
19:53 < nsf> it does some constant evaluation at compile-time
19:53 < nsf> and apparently it can't do !<number> expression
19:53 < nsf> because it's illegal go
19:53 < nsf> :)
19:55 < ww> ok folks, obfuscated go contest
19:55 < ww> extra points if the code is also ascii art
19:58 -!- alehorst2 [~alehorst@189.58.21.184.dynamic.adsl.gvt.net.br] has quit
[Quit: Leaving.]
20:00 < zozoR> go is too awesome for that to happen :D
20:02 -!- zozoR [~Morten@2906ds2-arno.0.fullrate.dk] has quit [Remote host closed
the connection]
20:02 -!- miker2_ [~miker2@64.55.31.190] has quit [Ping timeout: 240 seconds]
20:03 < valentin> +1
20:06 < xyproto> nsf: thanks, I didn't know about "ideal" in this context
20:06 < xyproto> ww: as long as it has to be run through "gofmt", it could
be interesting ;)
20:07 < dmg> ww: my experience with running ioccc winners through 'indent'
shows that it doesn't help much.
20:07 -!- kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Quit:
Page closed]
20:08 < xyproto> yeah, the ioccc winning programs are crazy
20:08 -!- kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has joined
#go-nuts
20:08 < valentin> "formated-obfuscated code contest" intersting concept
20:10 < dmg> valentin: http://underhanded.xcott.com/
20:11 < moraes> contest: function signatures with famous quotes!  func
dracula(I never, drink ...wine) {}
20:11 -!- fenicks [~fenicks@log77-3-82-243-254-112.fbx.proxad.net] has left
#go-nuts []
20:12 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
20:13 < moraes> *crickets*
20:13 < moraes> ok, i'll be quiet.
20:13 < valentin> lol
20:15 < valentin> dmg : _very_ interesting
20:16 -!- jajamana [~jcb@cm-84.209.210.27.getinternet.no] has joined #go-nuts
20:20 -!- twolfe18 [~twolfe18@128.220.251.133] has joined #go-nuts
20:22 < xyproto> moraes: :)
20:24 -!- valentin [~valentin@85-170-19-98.rev.numericable.fr] has quit [Remote
host closed the connection]
20:25 -!- jmil [~jmil@c-68-81-252-40.hsd1.pa.comcast.net] has joined #go-nuts
20:43 -!- TheMue [~FMueller@p5DDF73BF.dip.t-dialin.net] has quit [Quit: leaving]
20:44 -!- avelino [~avelino@unaffiliated/avelino] has quit [Remote host closed the
connection]
20:44 -!- avelino [~avelino@unaffiliated/avelino] has joined #go-nuts
20:47 -!- twolfe18 [~twolfe18@128.220.251.133] has quit [Quit: twolfe18]
20:50 -!- avelino [~avelino@unaffiliated/avelino] has quit [Ping timeout: 240
seconds]
20:51 -!- scorpil [~voffka@77.126.187.108] has left #go-nuts []
20:52 -!- alehorst [~alehorst@189.58.21.184.dynamic.adsl.gvt.net.br] has joined
#go-nuts
20:56 -!- qeed [~qeed@adsl-74-235-197-174.mco.bellsouth.net] has joined #go-nuts
20:57 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
20:59 -!- jbooth1 [~jay@209.249.216.2] has quit [Quit: Leaving.]
21:03 -!- twolfe18 [~twolfe18@128.220.159.20] has joined #go-nuts
21:11 -!- squeese [~squeese@cm-84.209.17.156.getinternet.no] has quit [Remote host
closed the connection]
21:12 -!- awidegreen [~quassel@h-170-226.a212.priv.bahnhof.se] has quit [Remote
host closed the connection]
21:15 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has joined #go-nuts
21:15 < moraes> nsf, exists already:
http://code.google.com/p/go/issues/detail?id=1524
21:16 -!- Solak [~stijnw@cthia.xs4all.nl] has quit [Remote host closed the
connection]
21:17 < moraes> ideally it should align with parentheses or start args
indented in the next line and keep aligned that way on next lines.
21:17 < moraes> let me comment this there.  :)
21:18 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has quit [Client Quit]
21:19 -!- mavar [~mavar@81-226-52-85-no179.tbcn.telia.com] has quit [Ping timeout:
245 seconds]
21:21 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has joined #go-nuts
21:23 -!- Fish- [~Fish@9fans.fr] has quit [Quit: WeeChat 0.3.5]
21:24 < nsf> moraes: ah, ok
21:24 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-160-153.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
21:24 -!- thrashr888 [~thrashr88@64.125.143.6] has joined #go-nuts
21:26 < moraes> i'd search and fill a bug; bet it existed already
21:27 -!- wrtp [~rog@host-92-23-125-43.as13285.net] has quit [Quit: wrtp]
21:27 < moraes> yay, almost friday.
21:28 < chilts> it's Friday here :)
21:28 < chilts> am about 1/4 of the way through my work day
21:28 -!- ericvh [~Adium@32.97.110.64] has quit [Quit: Leaving.]
21:28 < moraes> always ahead!
21:28 < chilts> but behind in other ways I'm sure :)
21:28 < mpl> are you asking for some rebecca black or what?
21:29 < moraes> i was reminded by that music.
21:30 -!- tvw [~tv@e176006196.adsl.alicedsl.de] has joined #go-nuts
21:33 -!- kahvi [5b9b57fc@gateway/web/freenode/ip.91.155.87.252] has quit [Quit:
Page closed]
21:34 < moraes> one thing that bothers me is that i can't avoid runtime
errors sometimes
21:35 < moraes> or hm...  maybe i should fill a bug about this specific
crypto issue.
21:35 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
21:38 -!- franciscosouza [~francisco@201.7.186.67] has quit [Quit: franciscosouza]
21:42 -!- tgall_foo [~tgall@206.9.88.154] has quit [Changing host]
21:42 -!- tgall_foo [~tgall@linaro/tgall-foo] has joined #go-nuts
21:45 -!- BigBlackDog
[~BigBlackD@HSI-KBW-109-192-007-188.hsi6.kabel-badenwuerttemberg.de] has quit
[Quit: WeeChat 0.3.6-dev]
21:53 -!- decaf [~mehmet@unaffiliated/decaf] has joined #go-nuts
21:55 -!- vmil86 [~vmil86@88.118.38.213] has quit [Remote host closed the
connection]
22:03 -!- r_linux [~r_linux@static.200.198.180.250.datacenter1.com.br] has quit
[Quit: Lost terminal]
22:04 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:08 -!- twolfe18 [~twolfe18@128.220.159.20] has quit [Quit: twolfe18]
22:09 -!- photron [~photron@port-92-201-23-49.dynamic.qsc.de] has quit [Read
error: Operation timed out]
22:10 -!- yogib [~yogib@webauth-79-196.uni-paderborn.de] has quit [Quit: yogib]
22:10 -!- jajamana [~jcb@cm-84.209.210.27.getinternet.no] has quit [Quit: This
computer has gone to sleep]
22:11 -!- replore_ [~replore@ntkngw133234.kngw.nt.ftth.ppp.infoweb.ne.jp] has quit
[Remote host closed the connection]
22:13 -!- erus` [~chatzilla@cpc2-gill2-0-0-cust701.basl.cable.virginmedia.com] has
quit [Quit: ChatZilla 0.9.87 [Firefox 6.0.1/20110830092941]]
22:31 -!- remy_o [~babar@archlinux/developer/remy-o] has quit [Ping timeout: 252
seconds]
22:33 -!- clr_ [~colin@cpe-24-92-60-252.nycap.res.rr.com] has joined #go-nuts
22:34 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has left #go-nuts
[]
22:44 < nsf> hm..
22:44 < nsf> I did it
22:44 < nsf> again
22:44 < nsf> :D
22:44 < nsf> lol
22:44 -!- aat [~aat@rrcs-184-75-54-130.nyc.biz.rr.com] has quit [Ping timeout: 264
seconds]
22:44 < jlaffaye> s/hm/oops/
22:45 < nsf> :D
22:45 < nsf> no, seriously, I rewrote the package parser
22:45 < nsf> and gocode passes all its 31 tests
22:45 < nsf> can you imagine?  not a single fucking error
22:45 < nsf> :D
22:45 * nsf loves Go
22:46 < nsf> well, I copy & pasted most of the parser
22:46 < nsf> but..  still
22:46 < nsf> I've changed all the data structures
22:46 < nsf> go/types uses its own stuff for declarations and types
22:46 < nsf> and I use my own
22:47 -!- tvw [~tv@e176006196.adsl.alicedsl.de] has quit [Remote host closed the
connection]
22:50 < nsf> ah, wait
22:50 < nsf> I lied
22:50 < nsf> I forgot "make install"
22:50 < nsf> but it passes 12 tests out of 19
22:50 < nsf> which is nice
22:52 -!- angasule [~angasule@190.2.33.49] has joined #go-nuts
22:55 -!- thrashr888_ [~thrashr88@64.125.143.6] has joined #go-nuts
22:59 -!- thrashr888 [~thrashr88@64.125.143.6] has quit [Ping timeout: 258
seconds]
23:01 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
23:04 -!- twolfe18 [~twolfe18@c-68-34-98-222.hsd1.md.comcast.net] has joined
#go-nuts
23:13 -!- twolfe18 [~twolfe18@c-68-34-98-222.hsd1.md.comcast.net] has quit [Read
error: Connection reset by peer]
23:13 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
23:18 -!- franciscosouza [~francisco@201.7.186.67] has joined #go-nuts
23:21 < mpl> nsf: congrats :)
23:21 < nsf> mpl: no, it's not ready yet
23:21 < nsf> 25 passes and 6 fails
23:22 < nsf> but soon!
23:22 < nsf> :)
23:22 < qeed> what color scheme is your vim?
23:23 < nsf> qeed: mine?
23:23 < qeed> i saw your go autocompletion video and it looked cool
23:23 < qeed> yeah
23:23 < nsf> oh
23:23 < nsf> one sec
23:23 < qeed> is that terminus font?
23:23 < nsf> yes
23:24 < qeed> man if i didnt have such bad eyesight i wouldnt use bold and
smaller font
23:24 -!- itrekkie [86868b4a@gateway/web/freenode/ip.134.134.139.74] has joined
#go-nuts
23:24 < qeed> terminus looked alot better when its small and isnt bolded
23:24 < itrekkie> Hi everyone--does anyone know of any package to do some
basic drawing and export to say png?
23:24 < nsf> qeed: anyways, I use asu1dark in console and baycomb in gui
23:25 < qeed> ok thanks
23:26 < itrekkie> image/draw seems to be missing things like DrawLine or
DrawText--I could be wrong though, I really don't have any idea how these things
usually work
23:27 < qeed> hmm can you share your xdefault colors nsf?  im guessing my
asu1dark looks nothing like yours because of colors
23:27 < nsf> qeed: http://pastie.org/2468214
23:28 < qeed> thanks alot
23:28 < nsf> at that time I was using urxvt
23:28 < nsf> but colors should match anyway
23:29 -!- danilo04 [~danilo04@cpe-67-247-80-249.rochester.res.rr.com] has joined
#go-nuts
23:30 -!- chomp [~chomp@c-67-186-35-69.hsd1.pa.comcast.net] has joined #go-nuts
23:31 < qeed> yeah it does thanks
23:33 < qeed> itrekkie, i dont think go has a gui lib that does that, you
have to use C/C++ libraries in go for that
23:33 < itrekkie> I found one package that looks promising, but goinstall is
erroring out installing it: http://code.google.com/p/draw2d/
23:34 -!- danilo04 [~danilo04@cpe-67-247-80-249.rochester.res.rr.com] has quit
[Quit: Leaving]
23:36 < nsf> mpl: 30 passes and 1 fail
23:36 < nsf> !
23:37 < smw> what is a "nat"?  http://golang.org/src/pkg/big/rat.go#L20
23:38 < zeebo> smw: http://golang.org/src/pkg/big/nat.go
23:38 -!- replore [~replore@203.152.213.161.static.zoot.jp] has joined #go-nuts
23:38 < smw> thanks
23:39 < zeebo> still workin on project euler problems?
23:39 < smw> zeebo, nope
23:39 < smw> just curious :-P
23:40 < zeebo> oh :)
23:40 < zeebo> i fixed the memoization in problem 14 so its .1 seconds now
23:40 < nsf> mpl: all tests pass!
23:40 < nsf> yay
23:40 < smw> zeebo, cool, so when you use memoization it is much faster?
23:41 < zeebo> yeah about 10x
23:41 < smw> cool
23:41 < nsf> mpl: omg, cold cache autocompletion time dropped from 600ms to
200ms
23:41 < nsf> :D
23:42 < zeebo> thats gocode?
23:42 < nsf> yes
23:42 < zeebo> very nice :)
23:42 < nsf> and it's _cold_ cache
23:42 < nsf> with warm cache typical autocompletion time 25-30ms
23:42 < itrekkie> autocompletion for what, may I ask?
23:42 < nsf> for Go
23:42 < nsf> :)
23:43 < nsf> https://github.com/nsf/gocode
23:43 < smw> zeebo, I am still in search of a go project.  I think I am just
going to make an xbmc remote for my new touchpad in JS :-P
23:44 < zeebo> irc bot is always fun
23:44 < smw> zeebo, nah, need a better ideea
23:44 < smw> idea*
23:44 < smw> I thought of making a nntp server...  but I don't see what I
would use it for...
23:45 < smw> I need something I could use...
23:46 < itrekkie> oh there's emacs integration, I'm sold :)
23:46 < zeebo> somebody made a sublime package to integrate it too
23:49 < itrekkie> I've just started taking a look at sublime text, so that
might be pretty nifty :)
23:51 < itrekkie> any chance of it showing up on the readme with
instructions for integration any time soon?
23:55 -!- flaguy48 [~gmallard@user-0c6s350.cable.mindspring.com] has joined
#go-nuts
23:56 -!- c00w [~colin@cpe-24-92-60-252.nycap.res.rr.com] has quit [Ping timeout:
240 seconds]
23:58 -!- twolfe18 [~twolfe18@c-68-34-98-222.hsd1.md.comcast.net] has joined
#go-nuts
--- Log closed Fri Sep 02 00:00:22 2011