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

--- Log opened Wed Jan 05 00:00:02 2011
00:00 -!- ios_ [~ios@180.191.47.94] has joined #go-nuts
00:00 -!- ios_ [~ios@180.191.47.94] has left #go-nuts []
00:00 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 250 seconds]
00:00 -!- bmizerany [~bmizerany@208.66.27.62] has joined #go-nuts
00:00 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
00:06 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Quit:
Computer has gone to sleep.]
00:09 -!- skejoe_ [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
00:10 -!- bmizerany [~bmizerany@208.66.27.62] has quit [Remote host closed the
connection]
00:11 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
00:12 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 272 seconds]
00:12 -!- _DerHorst_ [~Horst@e176099238.adsl.alicedsl.de] has joined #go-nuts
00:12 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
00:13 -!- kanru [~kanru@118-160-160-172.dynamic.hinet.net] has joined #go-nuts
00:15 -!- DerHorst [~Horst@e176103079.adsl.alicedsl.de] has quit [Ping timeout:
240 seconds]
00:22 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
00:23 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
00:23 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
00:26 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts
00:27 -!- iant [~iant@nat/google/x-lqrxfpjaoufbgbix] has quit [Ping timeout: 260
seconds]
00:31 -!- Scorchin [~Scorchin@host109-152-122-42.range109-152.btcentralplus.com]
has quit [Quit: Scorchin]
00:34 -!- iant [~iant@67.218.105.75] has joined #go-nuts
00:34 -!- mode/#go-nuts [+v iant] by ChanServ
00:36 -!- Venom_X [~pjacobs@75.92.43.21] has quit [Quit: Venom_X]
00:42 -!- bmizerany [~bmizerany@208.66.27.62] has joined #go-nuts
00:48 -!- iant [~iant@67.218.105.75] has quit [Ping timeout: 250 seconds]
00:50 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has joined
#go-nuts
00:51 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Quit:
Computer has gone to sleep.]
00:53 -!- iant [~iant@32.172.105.108] has joined #go-nuts
00:53 -!- mode/#go-nuts [+v iant] by ChanServ
00:56 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has quit [Quit:
adu]
00:56 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has joined
#go-nuts
00:57 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has quit [Client
Quit]
01:00 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has joined
#go-nuts
01:01 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has quit [Client
Quit]
01:02 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has joined
#go-nuts
01:05 -!- kanru [~kanru@118-160-160-172.dynamic.hinet.net] has quit [Ping timeout:
246 seconds]
01:07 -!- iant [~iant@32.172.105.108] has quit [Ping timeout: 240 seconds]
01:08 -!- iant [~iant@216.239.45.130] has joined #go-nuts
01:08 -!- mode/#go-nuts [+v iant] by ChanServ
01:10 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 246 seconds]
01:11 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
01:13 -!- niemeyer [~niemeyer@189.30.51.90] has quit [Ping timeout: 240 seconds]
01:25 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has quit [Quit:
Leaving.]
01:25 -!- shvntr [~shvntr@116.26.131.94] has joined #go-nuts
01:29 -!- _DerHorst_ [~Horst@e176099238.adsl.alicedsl.de] has quit [Remote host
closed the connection]
01:32 -!- noktoborus [~noxless@109.126.41.112] has quit [Ping timeout: 240
seconds]
01:33 -!- vinisterx [~ryan@74-129-202-71.dhcp.insightbb.com] has quit [Quit:
WeeChat 0.3.3]
01:35 -!- troutwine [~blt@74-44-76-124.dsl1-field.roch.ny.frontiernet.net] has
joined #go-nuts
01:35 -!- vinisterx [~ryan@74-129-202-71.dhcp.insightbb.com] has joined #go-nuts
01:36 -!- vinisterx [~ryan@74-129-202-71.dhcp.insightbb.com] has quit [Client
Quit]
01:36 -!- niemeyer [~niemeyer@189.30.51.90] has joined #go-nuts
01:37 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts
01:37 < troutwine> Hello, all.  Today's my first day at Go; has the http
package moved on since this http://goo.gl/5scqb or have I gone loony?
01:38 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
01:42 < exch> troutwine: I doubt it.  It's being hacked on regularly by some
people, but it's still awaiting that magical 'rewrite' :) the web.go project by
michael hoisie is probably the best place to look.  he's done most of said hacking
as far as I know
01:43 < exch> https://github.com/hoisie/web.go for reference
01:43 -!- noktoborus [~noxless@host-208-107.hosts.vtc.ru] has joined #go-nuts
01:44 -!- vinisterx [~ryan@74-129-202-71.dhcp.insightbb.com] has joined #go-nuts
01:44 < troutwine> exch: Thanks.  Building a transparent http server is one
of my getting-started projects, but I can't get the code in the mailing list
referenced above to compile.
01:44 < troutwine> exch: I'll have a look at web.go.
01:46 -!- aho [~nya@fuld-590c65c8.pool.mediaWays.net] has joined #go-nuts
01:47 -!- noktoborus [~noxless@host-208-107.hosts.vtc.ru] has quit [Read error:
Connection reset by peer]
01:50 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has quit [Quit:
adu]
01:50 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
joined #go-nuts
01:51 < newblue__> How to use regex in go lang?
01:52 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has joined
#go-nuts
01:52 <+iant> newblue__: http://golang.org/pkg/regexp/
01:52 < KirkMcDonald> The regexp package is still very basic.
01:53 <+iant> indeed
01:53 < cbeck> Any word on sre2 adoption?
01:53 < KirkMcDonald> The lack of a \b-equivalent makes me sad.
01:54 < exch> http://code.google.com/p/sre2/
01:55 < newblue__> thank you
01:56 <+iant> should we just replace the regexp package with sre2?
01:56 < exch> If you're going to break people's code, best to do it with a
bang :)
01:57 < exch> That's a yes from me, btw :)
01:58 < KirkMcDonald> I approve, as well.
01:59 < KirkMcDonald> You'd probably be hard pressed to find a non-trivial
usage of the existing regexp package.
01:59 < exch> true
01:59 < KirkMcDonald> So you might as well break the hell out of it if
you're going to make it useful.
01:59 < cbeck> Indeed, last I heard that was coming down the pipe
01:59 -!- binarypie [~binarypie@adsl-99-37-224-209.dsl.pltn13.sbcglobal.net] has
quit [Remote host closed the connection]
01:59 < cbeck> But I hadn't heard anything more
02:00 < troutwine> Quick question: do I have to do anything other than
implement the functions of an interface to make an implementation of that
interface?
02:00 < exch> troutwine: nope.  that's all
02:00 < troutwine> The rotate13 struct in the go_tutorial has as line 32
"source reader".  What's that all about?
02:01 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 250 seconds]
02:01 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has quit [Quit:
adu]
02:01 <+iant> troutwine: it means that the struct has a field named "source"
of type "reader"
02:01 < exch> it has a field 'source' of type 'reader', which is the
interface defined in the previous block
02:02 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
02:02 -!- noktoborus [~noxless@109.126.22.39] has joined #go-nuts
02:02 < troutwine> Of course.
02:03 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
02:08 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 264 seconds]
02:13 < newblue__> how to decode raw string to unicode string with charset
in golang ?
02:15 -!- serbaut [~joakims@88.80.182.68] has quit [Read error: Connection reset
by peer]
02:22 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 272 seconds]
02:22 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
02:23 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
02:33 -!- noktoborus_ [~noxless@109.126.43.88] has joined #go-nuts
02:34 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
02:36 -!- noktoborus [~noxless@109.126.22.39] has quit [Ping timeout: 272 seconds]
02:40 < newblue__> hwo to convert bytes to string?
02:40 < cbeck> string(bytearray)
02:49 -!- ios_ [~ios@180.191.130.241] has joined #go-nuts
02:49 -!- ios_ [~ios@180.191.130.241] has left #go-nuts []
02:51 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Remote
host closed the connection]
02:57 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
02:58 -!- niemeyer [~niemeyer@189.30.51.90] has quit [Ping timeout: 255 seconds]
02:58 < troutwine> I'm still plunking away at the transparent http proxy I
mentioned above, but I'm not understanding the results I see with curl when I
attempt to use my proxy: https://gist.github.com/765860
02:59 < troutwine> Please excuse the shoddy error handling in ServeHTTP.
03:06 < DarthShrine> troutwine: Uh, you're serving the proxy on port 10000,
and requesting on port 100000
03:07 < troutwine> DarthShrine: Clearly I'm turned around.  How's that?
03:07 < DarthShrine> troutwine: Huh?
03:08 < troutwine> DarthShrine: D'oh.  I see what you're saying.
03:08 < DarthShrine> troutwine: :)
03:09 < troutwine> DarthShrine: Thanks, by the way.
03:09 < DarthShrine> troutwine: Success?
03:09 < troutwine> DarthShrine: Yep.
03:09 < DarthShrine> troutwine: Excellent!  :)
03:11 < troutwine> Now on to ServeHTTP bugs.  Unless it balloons, this is
one of the shorter transparent proxies I've ever put together.  Very impressive.
03:13 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
03:14 -!- sjd_ [~sjd@204-195-89-40.wavecable.com] has joined #go-nuts
03:14 -!- sjd_ [~sjd@204-195-89-40.wavecable.com] has quit [Client Quit]
03:18 -!- bmizerany [~bmizerany@208.66.27.62] has quit [Remote host closed the
connection]
03:19 < Eko> troutwine: I'm noticing the same thing about my IRC server.
Far fewer lines of code than any C IRCd I've seen with comparable features.
03:20 < Boney> '/win 1
03:20 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 246 seconds]
03:21 < exch> It's a bit disconcerting really.  Getting the behaviour you
want with that little code, makes me feel like I forgot something
03:22 < exch> staring at your puny bit of code, scratching your head and
thinking "hmmr..  something must be wrong here"
03:22 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
03:22 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts
03:30 < troutwine> Eko: Is your code public?
03:31 < troutwine> exch: Makes me think, "Oh, it's a concise Python but
without the slow."
03:31 < exch> I've had to work on C# for 10 years.  I'm generally used to
vast piles of boilerplate
03:32 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
03:36 < troutwine> I've never had the misfortune of doing C#.
03:40 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 250 seconds]
03:40 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
03:40 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has joined
#go-nuts
03:41 < Eko> troutwine: of course ;-).  http://bitbucket.org/kylelemons/jaid
03:43 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has joined #go-nuts
03:46 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has joined
#go-nuts
03:49 -!- keithcascio [~keithcasc@nat/google/x-clicmdvzwzmbizgn] has quit [Quit:
Leaving]
03:51 < troutwine> Eko: Thank you.  I'll give that a read through
eventually.
03:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
03:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
03:52 < adu> Eko!
03:52 < Eko> troutwine: if you want to play with it, I have a development
server running at irc://irc.didntdoit.net:16667/#jaid (or 16697 for SSL).  Beware
frequent restarts.
03:52 < Eko> sup adu
03:52 < Eko> I looked at your code and had to clean up my brain with a mop
03:52 < Eko> what I could understand though looks snazzy.
03:52 < adu> not much
03:52 < adu> how are you today?
03:53 < Eko> adu: not too bad.  Just chilling and enjoying life.
03:58 < adu> nice
04:01 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 272 seconds]
04:01 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
04:03 < adu> Eko: are you talking about language-go?
04:03 * adu needs to work on that
04:03 < Eko> yep
04:04 < adu> yeah, I really like the Haskell/Parsec combo
04:04 < adu> for parsing that is
04:04 < adu> it might be slightly cleaner if it was written in OCaml tho
04:11 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 246 seconds]
04:11 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
04:16 -!- xash [~xash@d003159.adsl.hansenet.de] has quit [Ping timeout: 240
seconds]
04:17 -!- Tv1 [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
04:20 < adu> Eko: did you read my blog?
04:20 < Eko> yep.
04:21 < adu> ah, i couldn't remember
04:21 < adu> after hearing other's reactions, I think they're all doomed
04:21 < adu> unless I get my compiler working
04:23 < troutwine> What were the reactions?
04:23 -!- Tv1 [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Quit: Leaving.]
04:23 < adu> hey, adu, read the mailing list
04:24 < adu> another was "oh no, not again"
04:24 < adu> another was "Go is Turing complete"
04:25 < troutwine> And this is about your language-go?
04:25 < adu> no my blog
04:25 < adu> http://straymindcough.blogspot.com/
04:25 < adu> so far I haven't had any bad comments about
http://hackage.haskell.org/package/language-go
04:26 < adu> except the usual "I don't know Haskell"
04:26 < nsf> :D
04:27 < adu> one thing I really need to do is rewrite the lexer
04:27 < adu> the parser is working great
04:28 < adu> the lexer parses [import "io"; import "fmt";] as 3 tokens
04:28 < adu> 'import' then "io"; import "fmt" then ;
04:28 < troutwine> I noticed you were using utf8-string.  Why not add a few
instances for Parsec and go with Data.Text?
04:28 < troutwine> Other than supporting older versions of Parsec,
potentially.
04:28 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
04:29 < adu> Data.Text looks locale-specific
04:29 < adu> that seems bad
04:29 < adu> ooo but line endings are good
04:30 < adu> anyways, I've been stuck on how to separate the '"io"; import
"fmt"' token
04:30 < adu> it has to do with greedy/nongreedy regexes
04:30 < troutwine> Yeah, I can see that.  If you did run into problems, bos
is generally willing to horse-trade to fix them.
04:30 < adu> if alex had nongreedy regexes, then I'd just use those
04:30 < adu> but it doesn't
04:31 < adu> alex--
04:31 < troutwine> Sadly.
04:31 < adu> and i even removed " from valid string chars, and it still
parses like that
04:31 < troutwine> You might ask around in #haskell; I don't have a moment
to grok the lexer.
04:32 < adu> its ok, thanks for listening
04:33 < troutwine> Sure.  I'll send you a patch-set if I get a chance and if
you don't fix the issue first.
04:33 < adu> cool!
04:33 < adu> well, i'm working on it right now
04:34 < troutwine> No doubt you'll fix it before I can even crack open the
source.  (Building parsers and what not in Haskell is great fun.)
04:34 < adu> oh, I think i just fixed it
04:35 < adu> (") is 0x22 and I excluded 0x21 :P
04:35 < troutwine> Heh.
04:35 < adu> I'll upload it to hackage by Friday for sure
04:36 < adu> I'd really like to focus on semicolon autoinsertion
04:36 < adu> which is preventing me from using it on real Go
04:48 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Read error: Operation
timed out]
04:51 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
04:51 -!- mode/#go-nuts [+v iant] by ChanServ
04:53 -!- bgentry_ [~bgentry@75.85.173.206] has joined #go-nuts
04:56 -!- bgentry [~bgentry@75.85.173.206] has quit [Ping timeout: 255 seconds]
04:57 -!- Zarniwoop [~dsc@78.101.83.231] has quit [Ping timeout: 255 seconds]
04:58 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Read error: Operation timed out]
04:59 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
05:02 -!- welterde [welterde@thinkbase.srv.welterde.de] has quit [Excess Flood]
05:02 -!- Zoopee [alsbergt@zoopee.org] has quit [Quit: Ejected]
05:02 -!- Zoopee [alsbergt@zoopee.org] has joined #go-nuts
05:11 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
05:12 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
05:14 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-yykrtlhbrggxlldm] has quit [Read
error: Connection reset by peer]
05:15 -!- cbeck [cbeck@gateway/shell/pdx.edu/x-hizxbthwjfubjdzf] has joined
#go-nuts
05:15 -!- welterde [welterde@thinkbase.srv.welterde.de] has joined #go-nuts
05:16 -!- troutwine [~blt@74-44-76-124.dsl1-field.roch.ny.frontiernet.net] has
quit [Quit: Lost terminal]
05:21 -!- SoniaKeys [Alliebloom@c-24-91-112-191.hsd1.ma.comcast.net] has quit []
05:22 -!- fluf^arr [~camelid@s.pl0rt.org] has joined #go-nuts
05:23 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
05:23 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 240 seconds]
05:23 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Read error:
Connection reset by peer]
05:23 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
05:23 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has quit
[Remote host closed the connection]
05:24 -!- fluffle [~camelid@s.pl0rt.org] has quit [Ping timeout: 260 seconds]
05:24 -!- iant [~iant@216.239.45.130] has joined #go-nuts
05:24 -!- mode/#go-nuts [+v iant] by ChanServ
05:24 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
05:24 -!- KBme_ [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
05:27 -!- tsung_ [~jon@112.104.53.151] has quit [Ping timeout: 260 seconds]
05:27 -!- tsung [~jon@112.104.53.151] has joined #go-nuts
05:34 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
05:37 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
joined #go-nuts
05:43 -!- noktoborus_ [~noxless@109.126.43.88] has quit [Ping timeout: 240
seconds]
05:44 -!- noktoborus_ [~noxless@109.126.43.88] has joined #go-nuts
05:57 -!- foocraft [~dsc@78.101.83.231] has joined #go-nuts
05:58 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
06:01 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 255 seconds]
06:01 < newblue__> What wrong?  I use sre2 compile pattern := "<[^>]*
(?i:href|src|link)\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\">\\s]+))"
06:01 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
06:02 < newblue__> Can't match anything with a web page
06:05 -!- bamccaig [~bamccaig@unaffiliated/bamccaig] has quit [Quit: brb]
06:07 < adu> SRE2?
06:08 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
06:09 < adu> newblue__: do you mean to use (?=...) for lookahead?
06:12 < Eko> newblue__: the regexp package doesn't handle perl-compatible
regular expressions, only really basic ones.  http://golang.org/pkg/regexp/
06:13 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
06:17 < newblue__> Yes
06:18 < newblue__> I use SRE2 to do this.
06:27 < Eko> newblue__: are you sure that that regular expression is
correct?  If not, try #regex (it's not really a go language thing and you will
probably get help faster there)
06:28 < newblue__> This regex is copy from my c++ code, in my c++ code I use
pcre to do this thing.
06:29 < Eko> is pcre compatible with re2?
06:29 < newblue__> I don't know.
06:29 < cbeck> No
06:30 < cbeck> Not completely at least
06:31 < newblue__> I use go-pkg-pcre to compile this pattern, when I match
content, I got a error: panic: runtime error: slice bounds out of range
06:32 < Eko> I'm going to go with the topic on #regex on this one: eed help?
1) Language/platform.  2) Sample string.  3) Desired result.  4) Your attempt.
06:32 * cbeck will have to remember that
06:33 < Eko> except in our case, (1) should be boilerplate code so we can
paste something into /doc/play instead of just the language.
06:33 -!- photron_ [~photron@port-92-201-35-99.dynamic.qsc.de] has joined #go-nuts
06:36 < Eko> newblue__: the first thing that I notice that I don't like
about your regex is the space after the * before the (?i:
06:36 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts
06:36 < Eko> I don't often see < br/>
06:37 < Eko> why that would work in PCRE is beyond me (unless you have
extended mode turned on or something odd)
06:37 < Eko> oh, nevermind, I see what you're doing.
06:40 < Eko> eh, I don't see anything blatantly wrong, but if I were you I'd
start by stripping out the <^> part, taking out the case-insensitive href
part, not making it a ?: submatch, and running it on a strings.ToLower() or
bytes.ToLower() version of the input.  Then you can get the indices and look those
up in the original string to get it with the original case, and THEN try all of
your fancy stuff.
06:41 -!- vinisterx [~ryan@74-129-202-71.dhcp.insightbb.com] has quit [Quit:
WeeChat 0.3.3]
06:41 < Eko> baby steps.
06:41 -!- vinisterx [~ryan@74-129-202-71.dhcp.insightbb.com] has joined #go-nuts
06:44 < newblue__> I delete the space,but can't match any
06:46 < newblue__> thank you!  Let me try later.
06:50 -!- illya77 [~illya77@72-5-133-95.pool.ukrtel.net] has joined #go-nuts
06:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 255 seconds]
06:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
06:53 < uriel> pcre is an abomination that must die
06:53 < uriel> painfully
06:55 -!- Fish [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
06:55 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
06:55 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
06:55 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
07:02 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
07:02 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
07:03 < tylergillies> im trying to send data using UDPConn.WriteTo and it
returns a value, but when i UDPConn.ReadFrom it doesn't read what i wrote and just
blocks
07:04 < tylergillies> https://gist.github.com/3df01325d03572ecffce
07:04 < tylergillies> this *should* loop if im not mistaken
07:05 < tylergillies> it iterates once, then just says "waiting for read"
07:05 < Eko> tylergillies: try making the reader and writer in separate
goroutines
07:11 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
07:11 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
07:19 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
07:19 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
07:19 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
07:20 -!- derferman [~derferman@24-176-188-13.static.reno.nv.charter.com] has
joined #go-nuts
07:20 -!- Tbb__ [~tbb__@HSI-KBW-109-193-105-152.hsi7.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
07:21 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 264 seconds]
07:22 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
07:23 < tylergillies> Eko: i want the reader to block
07:23 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
joined #go-nuts
07:23 < tylergillies> but the writer should write data to it, thus
unblocking it, i think
07:24 < Eko> tylergillies: well, I would put them in the goroutines just to
test things.  You could just put the writer in a separate goroutine and leave the
read loop in the main.
07:24 < Eko> Will you actually be sending UDP bessages within your program?
07:24 < Eko> there are much easier ways to accomplish that ;P
07:25 -!- newblue__ [~newblue@116.26.58.39] has quit [Remote host closed the
connection]
07:30 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 246 seconds]
07:30 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
07:35 < tylergillies> yeah i can send messages
07:35 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
07:35 < tylergillies> i want this so if i send a message, the server can
reply on same connection
07:37 -!- ios_ [~ios@180.191.130.241] has joined #go-nuts
07:55 < tylergillies> ooooooooooooooooooooooh
07:55 < tylergillies> i need to do Read on the client
07:55 < tylergillies> after I do WriteTo on the server
07:55 < tylergillies> duh...  *facepalm*
07:58 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Read error: Connection reset by peer]
07:59 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
08:02 -!- derferman [~derferman@24-176-188-13.static.reno.nv.charter.com] has quit
[Quit: derferman]
08:08 -!- tensai_cirno [~cirno@77.232.15.216] has quit [Ping timeout: 250 seconds]
08:09 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:11 -!- photron_ [~photron@port-92-201-35-99.dynamic.qsc.de] has quit [Read
error: Operation timed out]
08:11 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
08:12 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
08:20 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
08:21 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
08:22 -!- snearch [~snearch@f053005138.adsl.alicedsl.de] has joined #go-nuts
08:24 -!- aho [~nya@fuld-590c65c8.pool.mediaWays.net] has quit [Ping timeout: 240
seconds]
08:25 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Ping timeout: 240 seconds]
08:26 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
08:28 -!- snearch [~snearch@f053005138.adsl.alicedsl.de] has quit [Quit:
Verlassend]
08:28 -!- snearch [~snearch@f053005138.adsl.alicedsl.de] has joined #go-nuts
08:42 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
08:42 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
08:45 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
08:47 -!- nettok [~quassel@200.119.155.180] has quit [Ping timeout: 240 seconds]
08:47 -!- vinisterx [~ryan@74-129-202-71.dhcp.insightbb.com] has quit [Ping
timeout: 240 seconds]
08:50 -!- wrtp [~rog@92.17.67.140] has joined #go-nuts
08:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
08:51 -!- vinisterx [~ryan@74-129-202-71.dhcp.insightbb.com] has joined #go-nuts
08:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
09:00 -!- xash [~xash@p548E41DE.dip.t-dialin.net] has joined #go-nuts
09:00 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
09:01 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
09:05 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds]
09:05 -!- xash [~xash@p548E41DE.dip.t-dialin.net] has quit [Client Quit]
09:11 -!- Scorchin [~Scorchin@host86-173-185-198.range86-173.btcentralplus.com]
has joined #go-nuts
09:13 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
09:19 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
09:22 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
09:22 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
09:25 -!- Fish- [~Fish@coss6.exosec.net] has quit [Quit: So Long, and Thanks for
All the Fish]
09:26 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has quit [Quit:
adu]
09:27 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
joined #go-nuts
09:31 -!- Fish [~Fish@exo3753.pck.nerim.net] has joined #go-nuts
09:32 -!- Kashia [~Kashia@port-92-200-5-186.dynamic.qsc.de] has quit [Quit: This
computer has gone to sleep]
09:34 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has joined
#go-nuts
09:35 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has quit [Client
Quit]
09:35 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Quit: Ex-Chat]
09:35 -!- sauerbraten [~sauerbrat@p508CF541.dip.t-dialin.net] has joined #go-nuts
09:35 -!- sauerbraten [~sauerbrat@p508CF541.dip.t-dialin.net] has quit [Remote
host closed the connection]
09:41 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 264 seconds]
09:41 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
09:48 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
09:50 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has quit [Ping timeout: 240
seconds]
09:51 -!- noktoborus [~noxless@109.126.43.88] has quit [Ping timeout: 240 seconds]
09:51 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 250 seconds]
09:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
09:52 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
joined #go-nuts
09:55 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has quit [Ping timeout: 255
seconds]
09:56 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has joined
#go-nuts
09:57 -!- foocraft [~dsc@78.101.83.231] has quit [Ping timeout: 240 seconds]
09:57 -!- wtfness [~dsc@78.100.229.200] has joined #go-nuts
09:58 -!- adu [~ajr@pool-173-66-253-179.washdc.fios.verizon.net] has quit [Client
Quit]
10:02 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts
10:04 -!- jacek [d4bd2304@gateway/web/freenode/ip.212.189.35.4] has joined
#go-nuts
10:04 -!- noktoborus [~noxless@109.126.33.84] has joined #go-nuts
10:04 < jacek> Hello.  Can anyone tell me what do I need to be able to
rebuild the windows port?  http://code.google.com/p/gomingw/downloads/
10:05 < jacek> Can it still work via src/all.bash?
10:09 -!- noktoborus_ [~noxless@109.126.23.31] has joined #go-nuts
10:11 -!- noktoborus [~noxless@109.126.33.84] has quit [Ping timeout: 240 seconds]
10:12 -!- Paradox924X [Paradox924@c-68-35-229-34.hsd1.fl.comcast.net] has joined
#go-nuts
10:13 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
10:21 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
10:21 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
10:27 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
10:29 -!- sauerbraten [~sauerbrat@p508CF541.dip.t-dialin.net] has joined #go-nuts
10:32 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 264 seconds]
10:33 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
10:34 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has quit [Ping timeout:
615 seconds]
10:39 -!- femtoo [~femto@95-89-196-149-dynip.superkabel.de] has joined #go-nuts
10:42 -!- Qvist_ [~erik@c-66cde455.05-294-6c6b701.cust.bredbandsbolaget.se] has
joined #go-nuts
10:43 < cde> jacek, install mingw-get
10:43 < cde> additionnaly, install nakw&ed (gnuwin32) into msys -- not sure
it's needed anymore
10:54 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
10:54 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
10:57 -!- Paradox924X [Paradox924@c-68-35-229-34.hsd1.fl.comcast.net] has quit
[Ping timeout: 255 seconds]
10:57 -!- serbaut [~joakims@88.80.182.68] has joined #go-nuts
10:57 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
10:58 -!- Paradox924X [~Paradox92@c-68-35-229-34.hsd1.fl.comcast.net] has joined
#go-nuts
11:02 < jacek> cde, thanks - i'll try it.  so i dont need cygwin?
11:03 < cde> nope
11:03 < cde> when installing mingw with mingw-get, be sure to check msys
11:05 -!- noktoborus [~noxless@109.126.23.31] has quit [Quit: noktoborus]
11:12 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 272 seconds]
11:13 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
11:14 -!- tensorpudding [~user@99.23.127.179] has quit [Read error: Connection
reset by peer]
11:18 -!- mosva [~mosva@unaffiliated/mosva] has joined #go-nuts
11:20 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Read error: Operation timed out]
11:20 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
11:23 -!- noktoborus [~noxless@109.126.23.31] has joined #go-nuts
11:27 -!- leczb [~leczb@nat/google/x-sjpaecysyirlffpz] has quit [Read error:
Connection reset by peer]
11:30 -!- mosva [~mosva@unaffiliated/mosva] has quit [Read error: Connection reset
by peer]
11:36 -!- leczb [~leczb@nat/google/x-ttguwiazilstnvfi] has joined #go-nuts
11:44 < jacek> what is nakw&ed ??  i cannot find it
11:45 < cde> try compiling without both
11:46 < cde> they were only needed like 6 months ago
11:46 < jacek> i did, but it seems to crash while building src/pkg/runtime
11:46 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
11:47 < jacek> 8a 386/vlop.s
11:47 < jacek> windows/386/sys.s:19 syntax error, last name: DX
11:47 < jacek> windows/386/sys.s:23 syntax error, last name: m_sched
11:47 < jacek> windows/386/sys.s:54 syntax error, last name: CX
11:48 < jacek> not really crash - it's just an error
11:48 < jacek> few errors actually
11:48 -!- unofficialmvp [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
11:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 250 seconds]
11:53 < jacek> after I removed some other folders from the PATH it says:
mkenam: line 31: ed: command not found
11:53 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
11:53 < aiju> jacek: then go install ed
11:54 < jacek> sorry for a stupid question, but how do you install ed under
mingw/msys?
11:54 < jacek> I know how to do it in cygwin :)
11:55 < aiju> just copy the binary to your bin i suppose
11:55 < jumzi> And cross your fingers!
11:55 < jacek> :)
11:55 < aiju> don't forget to sacrifice a windows lamb
11:55 < aiju> required for all windows activities
11:56 -!- xash [~xash@p548E41DE.dip.t-dialin.net] has joined #go-nuts
11:56 < aiju> a friend of mine is building mplayer for Windows as we speak
...  not a fun endeavour
11:57 < jumzi> You need too choose your friends carefully!
11:57 < aiju> well, he hates windows, he's just preparing for when he needs
to use it lol
12:02 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
12:02 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
12:04 < jacek> ok, thanks guys, but now how do I deal with this:
go/src/cmd/gc/yerr.h:17:5: error: 'loadsys' undeclared here (not in a function)
12:14 -!- go^lang [~newblue@116.26.58.39] has joined #go-nuts
12:16 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
12:17 < go^lang> how to convert string to unicode in difference charsets?
12:18 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
12:21 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 246 seconds]
12:21 < aiju> go^lang: ain't there encoding or something similar?
12:21 < go^lang> Who can help me?
12:21 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
12:22 < go^lang> example: I need convert gbk encoding (cp936) to unicode .
12:23 < go^lang> I need convert encoding, because sre2 work in unicode only!
12:28 -!- serbaut [~joakims@88.80.182.68] has quit [Quit: Leaving.]
12:28 -!- serbaut [~joakims@88.80.182.68] has joined #go-nuts
12:30 < KBme> go^lang: well there is http://golang.org/pkg/encoding/ but i
don't know if it supports windows charsets..
12:33 -!- niemeyer [~niemeyer@189.30.51.90] has joined #go-nuts
12:33 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 264 seconds]
12:33 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
12:38 < go^lang> Thank you,but this is no way to solve this problem
12:38 -!- xash [~xash@p548E41DE.dip.t-dialin.net] has quit [Ping timeout: 276
seconds]
12:40 < go^lang> IAny way to support raw string for SRE2
12:40 < go^lang> Any way to support raw string for SRE2
12:41 < KBme> go^lang: just use icu to convert it
12:41 < KBme> why can't you use icu to convert the stupid encoding to
unicode?
12:42 < KBme> i mean iconv
12:42 < cde> jacek: http://gnuwin32.sourceforge.net/packages/ed.htm
12:42 < cde> put ed.exe and associated dll into msys/1.0/bin
12:42 < cde> jacek: you might also need to copy nawk.exe into
msys/1.0/bin/awk.exe
12:43 < KBme> go^lang: it should be as simple as iconv -f cp936 -t utf-8
file.txt
12:43 < KBme> (i'm not sure, look at man iconv though)
12:50 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
12:50 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
12:52 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
12:53 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
12:54 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 260
seconds]
12:59 < go^lang> thanks
13:01 -!- skejoe_ [~skejoe@188.114.142.162] has joined #go-nuts
13:05 -!- skejoe [~skejoe@188.114.142.162] has quit [Ping timeout: 272 seconds]
13:06 -!- ssb [~ssb@213.167.39.150] has quit [Ping timeout: 255 seconds]
13:06 -!- ssb [~ssb@213.167.39.150] has joined #go-nuts
13:07 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has quit [Quit:
DarthShrine]
13:09 -!- Project_2501 [~Marvin@82.84.72.49] has joined #go-nuts
13:11 -!- outworlder [~stephen@189.90.170.251] has joined #go-nuts
13:12 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
13:12 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
13:15 -!- ios_ [~ios@180.191.130.241] has quit [Quit: Leaving]
13:22 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 264 seconds]
13:22 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
13:31 < Urmel|> d
13:38 -!- kanru [~kanru@118-160-160-172.dynamic.hinet.net] has joined #go-nuts
13:39 -!- femtoo [~femto@95-89-196-149-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
13:40 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
13:43 -!- snearch [~snearch@f053005138.adsl.alicedsl.de] has quit [Quit:
Verlassend]
13:44 -!- noktoborus [~noxless@109.126.23.31] has quit [Ping timeout: 240 seconds]
13:51 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
13:52 < KBme> is there any way to debug goroutines?
13:52 < Namegduf> gdb works on Go binaries.
13:53 < aiju> well...  somewhat
13:53 < Namegduf> And with recent Go and recent GDB can run arbitrary
commands in the context of a given goroutine.
13:54 < KBme> oh?
13:54 < KBme> nice
13:54 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving...]
13:54 < KBme> is there some docs somewhere?
13:54 < KBme> (i don't really know how to use gdb either :)
13:54 < KBme> just found that one or two of my goroutines start eating a lot
of cpu after a while
13:58 -!- noktoborus [~noxless@109.126.26.65] has joined #go-nuts
14:00 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
14:01 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
14:04 -!- skejoe_ [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
14:05 -!- plainhao [~plainhao@208.75.85.237] has joined #go-nuts
14:05 < wrtp> KBme: fmt.Print :-)
14:06 < KBme> :)
14:06 < KBme> uh oh
14:06 < KBme> if I have to add an fmt.Print to all goroutines..
14:06 < KBme> gonna hurt
14:07 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
14:07 -!- noktoborus [~noxless@109.126.26.65] has quit [Quit: noktoborus]
14:07 -!- noktoborus [~noxless@109.126.26.65] has joined #go-nuts
14:10 < wrtp> you wouldn't find gdb that easy either - i don't think it's
straightforward to see what goroutines are currently running, but i'd like to be
proved wrong.
14:11 < wrtp> actually, log.Print is better
14:12 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 272 seconds]
14:12 < KBme> :)
14:12 < KBme> i guess you're probably right
14:12 < KBme> I'll wait and see if it happens again, and if it does i'll add
some prints
14:13 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
14:18 < KBme> i think i found the bug :)
14:18 < KBme> ticker not getting stopped in a function that's called every
15 minutes
14:18 < KBme> after a while that makes a lot of tickers
14:19 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Read error: Operation timed out]
14:20 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
14:28 < wrtp> KBme: you might want to look at time.After if you're using
Stop a lot.
14:30 < KBme> uh
14:30 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
14:30 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
14:31 < KBme> nah, i restart tickers
14:34 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 260 seconds]
14:35 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
14:41 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 250 seconds]
14:41 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
14:42 -!- iant [~iant@67.218.105.75] has joined #go-nuts
14:43 -!- mode/#go-nuts [+v iant] by ChanServ
14:43 -!- LeNsTR [~lenstr@unaffiliated/lenstr] has quit [Ping timeout: 240
seconds]
14:49 -!- jesmon [~user@static-71-244-114-122.albyny.fios.verizon.net] has joined
#go-nuts
14:53 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 272 seconds]
14:54 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
15:01 -!- aho [~nya@fuld-590c70a2.pool.mediaWays.net] has joined #go-nuts
15:18 -!- jacek [d4bd2304@gateway/web/freenode/ip.212.189.35.4] has quit [Quit:
Page closed]
15:22 -!- Paradox924X [~Paradox92@c-68-35-229-34.hsd1.fl.comcast.net] has quit
[Changing host]
15:22 -!- Paradox924X [~Paradox92@vaserv/irc/founder] has joined #go-nuts
15:27 -!- SoniaKeys [Alliebloom@c-24-91-112-191.hsd1.ma.comcast.net] has joined
#go-nuts
15:28 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
15:37 -!- skejoe_ [~skejoe@188.114.142.162] has joined #go-nuts
15:38 -!- skejoe [~skejoe@188.114.142.162] has quit [Ping timeout: 240 seconds]
15:40 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
15:40 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
15:40 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
15:42 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
15:43 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Operation timed out]
15:43 -!- skejoe_ [~skejoe@188.114.142.162] has quit [Ping timeout: 260 seconds]
15:50 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
15:51 -!- Davidian1024 [~Davidian1@173.88.174.84] has joined #go-nuts
15:52 -!- niemeyer_ [~niemeyer@189.98.187.60] has joined #go-nuts
15:53 -!- niemeyer [~niemeyer@189.30.51.90] has quit [Ping timeout: 240 seconds]
15:57 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
15:58 -!- artefon [~thiago@dhcp16.usuarios.dcc.ufmg.br] has joined #go-nuts
15:59 -!- kanru [~kanru@118-160-160-172.dynamic.hinet.net] has quit [Ping timeout:
264 seconds]
16:00 -!- Davidian1024 [~Davidian1@173.88.174.84] has quit [Ping timeout: 255
seconds]
16:01 -!- Venom_X [~pjacobs@75.92.43.21] has joined #go-nuts
16:01 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
16:03 -!- iant [~iant@67.218.105.75] has quit [Quit: Leaving.]
16:07 -!- irjudson [~Adium@153.90.103.205] has joined #go-nuts
16:09 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
16:12 -!- iant [~iant@nat/google/x-hddzdzxezqebzwkt] has joined #go-nuts
16:12 -!- mode/#go-nuts [+v iant] by ChanServ
16:13 -!- femtoo [~femto@95-89-196-149-dynip.superkabel.de] has joined #go-nuts
16:16 -!- exch [~exch@h78233.upc-h.chello.nl] has quit [Read error: Connection
reset by peer]
16:17 -!- exch [~exch@h78233.upc-h.chello.nl] has joined #go-nuts
16:20 -!- bgentry_ [~bgentry@75.85.173.206] has joined #go-nuts
16:20 -!- shvntr [~shvntr@116.26.131.94] has quit [Ping timeout: 240 seconds]
16:22 -!- bgentry [~bgentry@75.85.173.206] has quit [Ping timeout: 240 seconds]
16:24 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
16:27 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
16:28 -!- unofficialmvp1 [~dev@94-62-164-227.b.ipv4ilink.net] has joined #go-nuts
16:31 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
16:31 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
16:33 -!- unofficialmvp1 [~dev@94-62-164-227.b.ipv4ilink.net] has left #go-nuts []
16:34 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
16:38 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
16:40 < Namegduf> Ranging over a nil slice: Legal or not?
16:41 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
16:41 < cbeck> legal
16:41 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
16:41 < cbeck> Last I tested it
16:41 < Namegduf> Thanks, that's useful.
16:45 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit:
Leaving.]
16:46 -!- artefon [~thiago@dhcp16.usuarios.dcc.ufmg.br] has quit [Quit: bye]
16:47 < Namegduf> Appending to a nil slice: Guaranteed to be safe?
16:47 < SoniaKeys> yes
16:48 < exch> A nil slice is a valid slice in every sense of the word.  It
just has 0 length and 0 capacity
16:48 < Namegduf> Okay, that simplifies this further.
16:49 * Namegduf knew it worked now but wasn't sure it was guaranteed to do so-
although the wording of the spec suggests it should.
16:50 -!- niemeyer [~niemeyer@189.98.187.60] has quit [Quit: Leaving]
16:50 -!- niemeyer [~niemeyer@189.98.187.60] has joined #go-nuts
16:50 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Read error: Operation timed out]
16:51 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
16:52 < Namegduf> Nil maps- iterable?
16:52 < Namegduf> (I know they aren't much anything else)
16:52 <+iant> sure
16:53 < Namegduf> Okay, thanks.
16:53 <+iant> the range clause has no exception for nil values, so they
should work
16:53 <+iant> I mean, the spec for the range clause has no exception for nil
values
16:59 -!- illya77 [~illya77@72-5-133-95.pool.ukrtel.net] has quit [Read error:
Connection reset by peer]
17:00 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
17:00 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
17:01 -!- tvw [~tv@212.79.9.150] has quit [Read error: Connection reset by peer]
17:11 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 276 seconds]
17:11 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
17:17 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
17:20 -!- ildorn [~ildorn@p5B2FD3CA.dip.t-dialin.net] has joined #go-nuts
17:20 -!- ildorn [~ildorn@p5B2FD3CA.dip.t-dialin.net] has quit [Client Quit]
17:21 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 255 seconds]
17:22 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
17:23 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
joined #go-nuts
17:25 < KBme> hm..my app uses more memory on ipv6 than on ipv4
17:25 < KBme> weird
17:25 < aiju> unsurprising
17:25 < aiju> ipv6 is bigger :P
17:25 < KBme> no, actually, sorry, heh
17:25 < KBme> other way around
17:25 < aiju> oh lol
17:25 < KBme> which is surprising
17:26 < KBme> //msg go-irc-ch,_go-irc-c memusage
17:26 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
quit [Quit: leaving]
17:28 -!- gr0gmint [~quassel@87.60.23.38] has joined #go-nuts
17:28 < KBme> I'm guessing it could be because I gave it directly the ipv6
adress while the ipv4 I gave it a host name, so it needed to resolve it
17:28 -!- gr0gmint [~quassel@87.60.23.38] has quit [Read error: Connection reset
by peer]
17:28 -!- gr0gmint [~quassel@87.60.23.38] has joined #go-nuts
17:29 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-182-244.clienti.tiscali.it] has
joined #go-nuts
17:32 -!- Project_2501 [~Marvin@82.84.72.49] has quit [Read error: Operation timed
out]
17:32 -!- sacho [~sacho@95-42-68-160.btc-net.bg] has quit [Ping timeout: 255
seconds]
17:34 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
17:38 -!- bgentry_ [~bgentry@75.85.173.206] has joined #go-nuts
17:38 -!- daharon [~daharon@173-11-102-86-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
17:41 -!- bgentry [~bgentry@75.85.173.206] has quit [Ping timeout: 260 seconds]
17:42 -!- foocraft [~dsc@78.100.229.200] has quit [Quit: Leaving]
17:42 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 276 seconds]
17:42 -!- foocraft [~dsc@78.100.229.200] has joined #go-nuts
17:42 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
17:42 -!- nettok [~quassel@200.119.155.180] has joined #go-nuts
17:45 -!- sacho [~sacho@95-42-68-160.btc-net.bg] has joined #go-nuts
17:48 -!- jumzi [~jumzi@c-89-233-234-125.cust.bredband2.com] has quit [Read error:
Operation timed out]
17:53 -!- artefon [~thiago@187.58.5.34] has joined #go-nuts
18:03 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 255 seconds]
18:03 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
18:10 < Eko> KBme: it's probably just a fluke
18:11 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
18:11 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
18:11 < Eko> KBme: though having runtime memory stats like that is probably
a good idea for my IRCd....  lol.
18:15 -!- deso_ [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
18:18 -!- keithcascio [~keithcasc@nat/google/x-erddwxenualjtrgl] has joined
#go-nuts
18:26 -!- gr0gmint [~quassel@87.60.23.38] has quit [Remote host closed the
connection]
18:26 < Venom_X> Eko: have you had any time to look into getting xcode's gui
debugger to work with go programs?
18:27 < skelterjohn> ! is that even remotely possible?
18:27 < skelterjohn> that would be so useful to me
18:28 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
18:29 < Venom_X> I've gotten gdb 7.2 to debug go programs, but I'm trying to
get xcode's debugger to work with it.  I've managed to make an "external build"
project with go code included, building properly with a Makefile, but for some
reason I can't set breakpoints..
18:29 < Eko> Venom_X: yep, that's the same issue I had.
18:30 < Eko> the other issue I ran into was, even with making xcode use
GDB7.2, it wouldn't load the program anymore.
18:30 < Venom_X> mine loads the program just fine
18:30 < Eko> for some reason it seems that the built-in gdb that xcode uses
has some alternate way of knowing what file to load than via the command-line
18:30 < Eko> my xcode uses /Developer/usr/local/bin/gdb or something like
that instead of the normal GDB.
18:30 < Venom_X> I just replaced /usr/bin/gdb with /usr/local/bin/gdb (7.2)
18:30 < Venom_X> oh
18:31 < Namegduf> Eko: Did you implement multiple users being joined in the
same join event?
18:31 -!- sauerbraten [~sauerbrat@p508CF541.dip.t-dialin.net] has quit [Remote
host closed the connection]
18:31 < Eko> Namegduf: I haven't gotten server linking yet
18:31 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
18:32 < Eko> and at present, a single user joining N channels is still N
messages through the core.
18:32 < Namegduf> That's the same for me, but I'm not sure it's heavy enough
usage that I want to optimise it.
18:33 < Namegduf> I switched to a single message for N users joining one
channel, though, for my benchmarking, and the speed improvement was dramatic.
18:34 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
18:35 -!- wrtp [~rog@92.17.67.140] has quit [Ping timeout: 265 seconds]
18:36 < Venom_X> Eko: I got this: /Developer/usr/bin/gdb: unrecognized
option `--arch=x86_64'
18:40 < Venom_X> hmm..  looks like apple gdb vs.  fsf gdb..
18:40 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
18:40 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
18:41 -!- wrtp [~rog@92.17.67.140] has joined #go-nuts
18:45 < Venom_X> looks like xcode 4 preview 5 has gdb 7.2
18:45 < Venom_X> I'm going to try that out
18:51 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
18:51 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
18:55 -!- noone2 [~chatzilla@161.45.214.31] has joined #go-nuts
18:56 -!- bgentry [~bgentry@75.85.173.206] has quit [Quit: bgentry]
18:57 -!- Soultake1 [~Soultaker@hell.student.utwente.nl] has joined #go-nuts
18:57 -!- Soultake1 [~Soultaker@hell.student.utwente.nl] has quit [Client Quit]
19:00 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
19:00 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
19:01 -!- noone2 [~chatzilla@161.45.214.31] has left #go-nuts []
19:02 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
19:03 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
19:03 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Client Quit]
19:03 -!- photron_ [~photron@port-92-201-35-99.dynamic.qsc.de] has joined #go-nuts
19:08 < Eko> Venom_X: /Developer/usr/bin/gdb is actually a script
19:08 < Eko> ah, that might work better, let me know how it works out
(developer preview)
19:13 -!- vinisterx [~ryan@74-129-202-71.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
19:13 -!- WonTu [~WonTu@p57B552D7.dip.t-dialin.net] has joined #go-nuts
19:14 -!- WonTu [~WonTu@p57B552D7.dip.t-dialin.net] has left #go-nuts []
19:14 -!- vinisterx [~ryan@74-129-202-71.dhcp.insightbb.com] has joined #go-nuts
19:14 -!- noone2 [~chatzilla@161.45.214.31] has joined #go-nuts
19:14 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
joined #go-nuts
19:17 < Venom_X> Eko: while I'm downloading xcode 4, I'm trying out ddd with
pretty good results.  It's definitely not as nice as xcode's gui debugger would
be, but far better than gdb in the console
19:21 -!- noone2 [~chatzilla@161.45.214.31] has left #go-nuts []
19:25 -!- tvw [~tv@e176004247.adsl.alicedsl.de] has joined #go-nuts
19:26 -!- noone2 [~chatzilla@161.45.214.31] has joined #go-nuts
19:29 -!- vinisterx [~ryan@74-129-202-71.dhcp.insightbb.com] has quit [Read error:
Connection reset by peer]
19:30 -!- noone2 [~chatzilla@161.45.214.31] has left #go-nuts []
19:30 -!- vinisterx [~ryan@74-129-202-71.dhcp.insightbb.com] has joined #go-nuts
19:40 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 264 seconds]
19:41 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
19:42 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:43 < Venom_X> Eko: I got 7.2 working by editing the
/Developer/usr/bin/gdb script (changed line 336 to: exec $translate_binary "$gdb"
"$@"), and replacing the /Developer/usr/libexec/gdb/gdb-i386-apple-darwin binary
from my 7.2 version.
19:44 < Venom_X> however, still no breakpoints..
19:46 < KBme> Namegduf: you hacking on an ircd too?
19:46 -!- jacek [2e812986@gateway/web/freenode/ip.46.129.41.134] has joined
#go-nuts
19:47 < Namegduf> KBme: Yeah.
19:47 < KBme> Namegduf: is the code available?
19:48 < Namegduf> https://github.com/namegduf/OddComm
19:48 < KBme> oh yay
19:48 < KBme> thanks
19:48 < jacek> Is it a known issue that "hg clpatch" doesn't work under
windows?
19:49 < jacek> I get a message "hgpatch: exceptions.ValueError: close_fds is
not supported on Windows platforms if you redirect stdin/stdout/stderr"
19:49 < jacek> And that's the second Windows I'm trying
19:50 < KirkMcDonald> jacek: That's not really a Python question as such.
19:50 < KirkMcDonald> jacek: However, that will indeed not work on Windows.
19:50 < jacek> So there is no way to work-around it?
19:50 < KirkMcDonald> jacek: See the description of the close_fds option:
http://docs.python.org/library/subprocess#subprocess.Popen
19:51 < KirkMcDonald> On Windows it should suffice to use close_fds=False.
19:51 < jacek> Let me try..
19:51 < KirkMcDonald> Of course, there can always be other reasons that code
won't work on Windows.
19:51 -!- niemeyer [~niemeyer@189.98.187.60] has quit [Quit: Leaving]
19:51 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
19:52 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
19:53 < jacek> Then I get an error just after, at the next os.fork():
AttributeError: 'module' object has no attribute 'fork'
19:53 < KBme> :)
19:53 < KBme> so...python is...portable?
19:53 < KirkMcDonald> jacek: Oh, that code is explicitly calling fork()?
19:53 < KirkMcDonald> jacek: Then you're basically boned.  :-)
19:54 < jacek> :-) OK, so this basically answers my question: clpatch does
not work under Windows
19:54 < jacek> Is there any way to download and apply a CL "manually"?
19:55 < KirkMcDonald> bundle/unbundle?
19:56 < jacek> how to use it?
19:57 < KirkMcDonald> "hg help bundle" is relatively clear.
19:58 < Eko> jacek: you could also download the CL's patch from codereview
and use the patch command :P
19:59 < jacek> Eko: patch doesn't seem to work properly under windows,
neither.  Plus I was dreaming about re-comiting my modified CL later on
19:59 < Eko> if patch doesn't work on windows, then you're REALLY boned.
19:59 < Eko> however, I don't really believe that.
19:59 < jacek> KirkMcDonald: I dont see how I should specify the id if the
CL I want?
20:01 < KirkMcDonald> jacek: Its normal behavior is to bundle all changesets
which exist in one repository and not another.
20:01 -!- femtooo [~femto@95-89-196-149-dynip.superkabel.de] has joined #go-nuts
20:04 < jacek> KirkMcDonald: And if I dont have changesets because I cannot
download it..?
20:05 -!- femtoo [~femto@95-89-196-149-dynip.superkabel.de] has quit [Ping
timeout: 264 seconds]
20:05 < KirkMcDonald> I'm not sure I understand the question.
20:05 < GilJ_> What is the integer argument that Read() from the Connection
interface returns?
20:05 < jacek> CL is a changeset - right?
20:06 < KirkMcDonald> GilJ_: The number of bytes read, I expect.
20:06 < GilJ_> KirkMcDonald: Ok, thanks
20:08 < jacek> Sorry, I dont really know what you mean by "changeset" and
"repository"
20:09 < jacek> I was guessing that reoisitory is a local copy of the sources
(made by hg clone) and a changeset is a CL - a patch sent by someone, but not yet
commited
20:10 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
20:12 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
20:15 -!- l00t [~i-i3id3r_@189.105.2.99] has quit [Quit: Leaving]
20:18 < homa_rano> in the rand package, why are sources based on 63 bits of
data at a time?  this seems 1 bit off from being useful...
20:20 < KBme> useful?  why?
20:20 < homa_rano> I'm tring to get a random []byte, and it's very hard to
be efficient with the randomness when it's in 63 bit chunks
20:21 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
20:21 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
20:21 < KBme> func (*Rand) Uint32
20:22 < homa_rano> yes, that uses the bottom 32 bits of the 63
20:22 < homa_rano> I don't know why there's 63 bits and not 64 in a
rand.Source
20:24 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
20:24 < KBme> isn't the last bit used for signedness?
20:26 < Eko> yes.
20:27 < Eko> if you want completely random bytes, you'll have to use the
random 32 bits.
20:27 < Eko> You're welcome to write a full 64-bit random source and use
that, but the one they use (rand/rng.go) is very efficient.
20:28 < Eko> I think it comes down to the fact that to get a 64th random
bit, you have to be doing math with more than 64 bits of precision.
20:28 < KBme> what about crypt/rand though?
20:29 < Eko> good point.
20:29 < Eko> I always forget about that one.
20:29 < Eko> of course, that uses /dev/urandom, so ymmv.
20:30 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 250 seconds]
20:30 < KBme> what does ymmv mean again?  /me googles
20:30 < Eko> your mileage may vary.
20:30 < KBme> ah, yes
20:32 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
20:32 -!- zeh_ [~zeh@189.100.6.157] has joined #go-nuts
20:33 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
20:34 -!- snearch [~snearch@f053005138.adsl.alicedsl.de] has joined #go-nuts
20:35 -!- artefon [~thiago@187.58.5.34] has quit [Read error: Connection reset by
peer]
20:37 -!- plainhao [~plainhao@208.75.85.237] has quit [Quit: plainhao]
20:58 -!- jacek [2e812986@gateway/web/freenode/ip.46.129.41.134] has quit [Quit:
Page closed]
20:58 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
20:59 -!- deso_ [~deso@x0561a.wh30.tu-dresden.de] has quit [Read error: Connection
reset by peer]
21:00 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
21:00 -!- codelurker [~codelurke@66.71.230.222] has joined #go-nuts
21:00 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
21:01 -!- femtoo [~femto@95-89-196-149-dynip.superkabel.de] has joined #go-nuts
21:04 -!- femtooo [~femto@95-89-196-149-dynip.superkabel.de] has quit [Ping
timeout: 240 seconds]
21:07 -!- irjudson [~Adium@153.90.103.205] has quit [Quit: Leaving.]
21:11 < GilJ_> What's the easiest way to add the carriage return and line
feed characters at the end of a string?  Their ascii values are 13 and 10
21:14 <+iant> "string\r\n"
21:14 <+iant> s += "\r\n"
21:14 <+iant> depending
21:14 < GilJ_> >_< I fail :(
21:14 < GilJ_> Anyway, thanks iant
21:15 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
joined #go-nuts
21:16 -!- codelurker [~codelurke@66.71.230.222] has quit [Quit: Leaving]
21:18 -!- rbraley [~rbraley@ip72-222-134-229.ph.ph.cox.net] has joined #go-nuts
21:20 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
21:20 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
21:20 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has joined
#go-nuts
21:34 -!- coldturnip [~COLDTURNI@118-166-65-19.dynamic.hinet.net] has joined
#go-nuts
21:35 -!- coldturnip1 [~COLDTURNI@118-166-67-145.dynamic.hinet.net] has quit [Ping
timeout: 246 seconds]
21:35 -!- nettok [~quassel@200.119.155.180] has quit [Read error: Connection reset
by peer]
21:36 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
21:41 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
21:41 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
21:41 -!- wrtp [~rog@92.17.67.140] has quit [Read error: Connection reset by peer]
21:41 -!- wrtp [~rog@92.17.67.140] has joined #go-nuts
21:42 -!- DarthShrine [~angus@58-6-93-222.dyn.iinet.net.au] has joined #go-nuts
21:42 -!- DarthShrine [~angus@58-6-93-222.dyn.iinet.net.au] has quit [Changing
host]
21:42 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has joined
#go-nuts
21:45 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
joined #go-nuts
21:47 -!- cafesofie [~cafesofie@rnwifi-164-107-92-27.resnet.ohio-state.edu] has
quit [Read error: Connection reset by peer]
21:49 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Read error: Operation timed out]
21:49 -!- bmizerany [~bmizerany@208.66.27.62] has joined #go-nuts
21:49 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
22:02 -!- femtooo [~femto@95-89-196-149-dynip.superkabel.de] has joined #go-nuts
22:03 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
22:04 -!- Natch [~natch@c-2bcfe155.25-4-64736c10.cust.bredbandsbolaget.se] has
joined #go-nuts
22:04 -!- Natch| [~natch@c-2bcfe155.25-4-64736c10.cust.bredbandsbolaget.se] has
quit [Read error: Operation timed out]
22:05 -!- femtoo [~femto@95-89-196-149-dynip.superkabel.de] has quit [Ping
timeout: 240 seconds]
22:06 -!- niemeyer [~niemeyer@201-40-141-234.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
22:08 -!- sauerbraten [~sauerbrat@p508CF541.dip.t-dialin.net] has joined #go-nuts
22:11 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 260 seconds]
22:11 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
22:11 -!- virtualsue [~chatzilla@nat/cisco/x-zmpiqavsirntieqt] has quit [Ping
timeout: 240 seconds]
22:20 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
22:23 < KBme> ah, so total memory usage is Alloc+HeapAlloc?
22:27 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-182-244.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
22:28 -!- tvw [~tv@e176004247.adsl.alicedsl.de] has quit [Remote host closed the
connection]
22:31 -!- femtooo [~femto@95-89-196-149-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
22:32 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
22:36 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
22:43 -!- wrtp [~rog@92.17.67.140] has quit [Quit: wrtp]
22:43 -!- wrtp [~rog@92.17.67.140] has joined #go-nuts
22:49 -!- napsy [~luka@88.200.96.18] has quit [Quit: leaving]
22:52 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 264 seconds]
22:52 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
22:58 -!- vpit3833 [~user@203.111.33.203] has joined #go-nuts
22:59 -!- Venom_X [~pjacobs@75.92.43.21] has quit [Ping timeout: 265 seconds]
23:00 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
23:02 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 246 seconds]
23:03 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
23:07 -!- wrtp [~rog@92.17.67.140] has quit [Quit: wrtp]
23:10 -!- zeh_ [~zeh@189.100.6.157] has quit [Read error: Operation timed out]
23:13 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Ping timeout: 265 seconds]
23:13 < Eko> KBme: I think the total memory is Alloc, but I could be wrong.
23:13 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
23:16 -!- Kashia [~Kashia@port-92-200-5-186.dynamic.qsc.de] has joined #go-nuts
23:20 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has quit
[Ping timeout: 240 seconds]
23:20 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has joined
#go-nuts
23:22 -!- ildorn [~ildorn@p5B2FD3CA.dip.t-dialin.net] has joined #go-nuts
23:22 -!- ildorn [~ildorn@p5B2FD3CA.dip.t-dialin.net] has quit [Client Quit]
23:27 -!- photron_ [~photron@port-92-201-35-99.dynamic.qsc.de] has quit [Ping
timeout: 240 seconds]
23:31 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
23:39 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts
23:41 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has quit [Quit:
DarthShrine]
23:44 -!- artefon [~thiago@187.58.5.34] has joined #go-nuts
23:46 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has left #go-nuts
[]
23:47 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
23:47 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Bye!]
23:49 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
23:49 -!- Davidian1024 [~Davidian1@cpe-173-88-174-84.neo.res.rr.com] has quit
[Read error: Operation timed out]
23:49 -!- Davidian1024 [~Davidian1@cpe-173-88-163-203.neo.res.rr.com] has joined
#go-nuts
23:49 -!- niemeyer [~niemeyer@201-40-141-234.pltce701.dsl.brasiltelecom.net.br]
has quit [Ping timeout: 240 seconds]
23:51 -!- niemeyer [~niemeyer@201-40-141-234.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
23:54 -!- ryanu [~ryan_@c-98-200-189-134.hsd1.tx.comcast.net] has joined #go-nuts
23:56 -!- nettok [~quassel@200.119.155.180] has joined #go-nuts
23:58 < GilJ> How do I move a file?  I tried using the os.Rename method, but
that won't let me move a file to another directory (I can rename the file though)
--- Log closed Thu Jan 06 00:00:01 2011