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

--- Log opened Mon Dec 06 00:00:37 2010
00:01 < skelterjohn> i don't even have the ability to test on windows
00:01 < skelterjohn> so there's that.
00:02 < rhencke> you may find it interesting reading at the least
00:09 < skelterjohn> that's for the pointer
00:14 < skelterjohn> that's = thanks
00:14 < rhencke> no problem
00:15 < rhencke> throw: throw: throw: throw: throw: throw: throw:
malloc/free - deadlock is still the coolest go bug i've gotten in a while
00:17 -!- gnuvince [~vince@72.0.219.100] has quit [Quit: ""]
00:22 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
00:25 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has left
#go-nuts []
00:32 -!- rbraley [~rbraley@ip72-204-243-89.ph.ph.cox.net] has joined #go-nuts
00:58 < adg> rhencke: rsc was having that issue with some minimal test case,
he posted the error to internal buzz and said "guess that's Go's way of telling me
it's time to go to bed." ;-)
00:58 < rhencke> adg: lol
00:59 < rhencke> adg: i figured it was the compiler's way of giving me the
middle finger
01:00 < rhencke> but i like rsc's better
01:03 < rhencke> i was trying to read through the gc/6g source for it...
but it was way out of my league
01:08 < rhencke> anyone know if go has anything like strspn?
01:16 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
01:20 -!- alc [~arx@222.128.155.132] has joined #go-nuts
01:21 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
01:24 < dho> haha adg
01:27 -!- jeff2 [~sername@c-98-210-113-215.hsd1.ca.comcast.net] has joined
#go-nuts
01:28 < jeff2> is include $(GOROOT)/src/Make.$(GOARCH) still supported in
Makefiles?  I'm not seeing any Make.amd64 in my $(GOROOT)/src
01:28 < rhencke> jeff2: i think you just include make.inc now
01:29 < rhencke> jeff2: try $(GOROOT)/src/Make.inc
01:31 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts
01:33 < jeff2> rhencke: hm, that gets further, but now I'm calling the
linker wrong.  is there a good, up-to-date example of a go Makefile for a simple
application?
01:34 < jeff2> I've found many examples for packages but not regular apps
01:34 < rhencke> jeff2: are you using cgo?
01:34 < rhencke> you shouldn't really have to mess with the linker manually
01:35 < rhencke> jeff2: here's a sample makefile for a command.
http://golang.org/src/cmd/goinstall/Makefile
01:36 < rhencke> jeff2: where it has ../.., substitute $(GOROOT)/src
01:36 < rhencke> unless you're needing stuff from cgo, that should be about
all there is to it
01:37 < jeff2> rhencke: thanks, that Makefile is just what I was looking
for.  I found lots of bad examples that called the compiler and linker and defined
.6.go rules etc.  themselves but I knew there must have been a simpler way :)
01:38 < rhencke> jeff2: no problem, glad that worked.  :)
01:40 < TheSeeker> hrm.  possible issue with the default make.pkg ...  mkdir
behaves very differently on windows vs linux :/
01:40 < rhencke> maybe it's expecting mingw's mkdir?
01:41 < jeff2> rhencke: well, almost..  with my custom Makefile, I seem to
have built up a more complicated project structure with each .go file in its own
package.  is such an application easily compilable with the go Makefiles or would
I have to resort to something like the second answer on
<http://stackoverflow.com/questions/1766720/multi-package-makefile-example-for-go>?
01:41 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
01:42 < rhencke> jeff2: ah..  are you just putting each file in its own
package by convention?
01:42 < TheSeeker> mkdir is a built-in command of cmd.exe ...  I don't think
it checks for a version of it in the path ...  you'd have to call it with
mkdir.exe instead of mkdir I think :/
01:42 < rhencke> jeff2: if it's a small enough program, i'd just throw all
of them in package main
01:42 -!- nighty__ [~nighty@210.188.173.245] has joined #go-nuts
01:43 < rhencke> TheSeeker: that could be..  i haven't done much past simple
commands on the windows side, sorry :/
01:45 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has quit [Ping
timeout: 255 seconds]
01:46 < TheSeeker> I tried just removing the -p part, but it seems the exit
code isn't 0 on windows if the path already exists.  :|
01:46 < TheSeeker> it results in a 'name collision' result rather tha a
'success' like mkdir -p on linux does...
01:46 < rhencke> ow :/
01:47 < jeff2> rhencke: I suppose that would work..  but I kind of liked
having the separate packages to keep things organized.
01:47 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has joined #go-nuts
01:47 -!- kanru [~kanru@2001:c08:3700:ffff::26:fef4] has joined #go-nuts
01:47 < rhencke> jeff2: how many packages?
01:48 < jeff2> rhencke: four at the moment, but could grow to several dozen
later.  here's my current custom Makefile I'm using btw:
http://pastebin.com/9U1qRznb
01:50 < rhencke> jeff2: with the current Go Makefiles, it'll be happiest if
you split each package out to its own subdirectory
01:51 < rhencke> jeff2: you can take another approach.  i've used godag on
several pet projects.  it'd fit well with the way you want to do this, i think
01:52 < rhencke> jeff2: http://code.google.com/p/godag/
01:56 < jeff2> rhencke: godag looks awesome.  will try it
01:56 < TheSeeker> hmm, test -d foo <- looks like what is suppsoed to
make it skip doing mkdir if the dir already exists...
01:56 < rhencke> jeff2: i've had very good luck with it.  hope it works for
you
01:57 -!- ExtraSpice [~XtraSpice@88.118.33.48] has quit [Ping timeout: 240
seconds]
01:57 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Remote
host closed the connection]
02:06 -!- sjd [~sjd@204-195-89-40.wavecable.com] has quit [Quit: sjd]
02:07 < TheSeeker> ok, so the test -d foo && mkdir should be test -d foo ||
(true for both windows and linux)
02:07 < TheSeeker> you only want to mkdir if the target *doesn't* exist.
02:08 < TheSeeker> hmm, except that that's not what's being checked in the
make.pkg.  blah
02:10 < TheSeeker> it's seeing if $goroot\pkg exists before mkdir-ing
$(pkgdir) / $(pkgdir)/$(dir)
02:10 < TheSeeker> hmm.
02:10 -!- gnuvince [~vince@70.35.168.72] has joined #go-nuts
02:11 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
02:12 < rhencke> try kicking it
02:14 -!- gnuvince [~vince@70.35.168.72] has quit [Ping timeout: 240 seconds]
02:16 -!- gnuvince [~vince@70.35.166.95] has joined #go-nuts
02:19 < jeff2> rhencke: got it working.  one quirk in godag is that it
treats import("./foo") and package foo as different packages (as seen with gd
-dot), so it doesn't get the dependencies right on my project.  but removing ./
from all imports and building with `gd . -I.` does the trick
02:20 < rhencke> jeff2: awesome.  :) then just add -o yourExeName to get a
runnable program
02:20 < rhencke> if that works, just put the command in something like
build.sh, chmod a+x build.sh, and you're good to go
02:21 < skelterjohn> if only gb were good enough to suggest people use to do
anything other than test...
02:21 < skelterjohn> *shakes fist at time*
02:21 < rhencke> i usually don't have to specify gd . -I...  usually just gd
-o myprog works
02:21 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
02:22 < rhencke> skelterjohn: yeah, i know the feeling
02:22 < skelterjohn> well, i started making it yesterday
02:22 -!- powerje [~powerj@adsl-75-49-3-95.dsl.wotnoh.sbcglobal.net] has left
#go-nuts []
02:22 < skelterjohn> so that's just how it goes
02:22 < rhencke> what you need is a time machine
02:23 < skelterjohn> pair the finished gb with the public release of go
02:23 < skelterjohn> that would do it
02:23 < rhencke> lol
02:24 < rhencke> jeff2: i do like me some gd -dot
02:26 < sjohnson> is anyone worried that Go is going to be similar to PHP,
by including non-static stuff like crypto algorithms in the standard library
packages?
02:26 < TheSeeker> ok, so I've gotten make.pkg no longer causing issues with
mkdir ...  now it seems to be choking on utf8 file names :|
02:27 < rhencke> sjohnson: elaborate?
02:28 < sjohnson> well, it supports a few old ciphers.  and it would be a
difficult task changing the constant "standard" to put in new ones.  so it seems
like an incomplete standard that can't be helped.  whereas with something like C++
and Crypto++ libs, it's modular and isolated, and crypto++ crew worry about new
additions and ASM bugfixes, and C++ remains the same.
02:28 * TheSeeker shakes fist at 0xe2-0x9a-0x9b
02:29 < TheSeeker> ⚛perf.a is not a sensible file name :P
02:30 < jeff2> rhencke: it is pretty sweet.  and you're right, I can omit
-I.  if I get rid of all ./ imports.  so it looks like I'm all set.  thanks again
for your help.  this is going to make using gotest much easier, I imagine
02:30 < rhencke> jeff2: yes..  just gd -test :)
02:30 < rhencke> jeff2: glad i could hlep
02:31 < rhencke> sjohnson: well..  i think the crypto stuff is currently
fairly modular, but my bigger concern long-term would be static linking
02:32 < sjohnson> i dont really care either way, just noticed it.
02:32 < rhencke> its food for thought, certainly
02:33 < sjohnson> i'm thinking it might be sloppy for me if i wrote a
program in Go that used Go's blowfish and cast5, but becuase I wanted twofish and
serpent too, I'd have to have half stdlib stuff, and the other half 3rd party
stuff.
02:33 < sjohnson> of course, i could do the entire thing in a 3rd party go
library (provided it existed)
02:34 < rhencke> i wouldn't be opposed to go's standard library being leaner
than it currently is, and break stuff like crypto off into its own
02:35 < rhencke> there's some stuff in there that makes me scratch my head,
like net/dict
02:36 < vsmatck> dict is pretty well established.  I can imagine a lot of
applications that'd want to have an internet source for spell checking.
02:37 < vsmatck> Well, not a lot.  *shrug* I mean.  I dunno.
02:37 < rhencke> i guess if you hooked it up to urban dictionary
02:37 < rhencke> net/urbandict
02:38 -!- adu [~ajr@pool-173-66-11-168.washdc.fios.verizon.net] has joined
#go-nuts
02:38 < vsmatck> Does urbandictionary support dict?
02:38 < rhencke> i don't know, but that would be awesome
02:38 < vsmatck> yeah *looks it up*
02:40 < vsmatck> Hm. Looks like no support for it.
02:41 < rhencke> dang
02:44 < sjohnson> rhencke: i agree with you completely
02:44 -!- watr_ [~watr@66.183.100.58] has quit [Ping timeout: 240 seconds]
02:44 < sjohnson> as much as i love cryptography and ease of it being
available, i think it being in a standard library is a bad idea.  if it was an
official 3rd party Go package though from Google, that's fine
02:45 < rhencke> sjohnson: like the protobuf support
02:45 < sjohnson> or some 3rd party bundle like go-tools or some shit
03:03 < TheSeeker> since go was designed with client/server apps in mind, it
makes perfect sense to include crypto in the standard library...  you definately
don't want private customer data going in clear text over networks.
03:05 < Namegduf> sjohnson: You imply the core library can't be updated just
as easily as an addon library from the same source.
03:05 < Namegduf> That doesn't make sense.
03:05 < Namegduf> I don't think Go's stdlib is actually "standardised", so
there's no problem with a standard getting out of date, I think?
03:05 < sjohnson> Namegduf: doesn't a "Standard" library stay the same,
usually for a quite a years?
03:06 < Namegduf> Go's certainly hasn't so far and I don't see why it would
need to.
03:06 < sjohnson> well, that explains it then.
03:06 < vsmatck> It eventually needs to because people don't want their
programs broken.
03:06 < vsmatck> But it may not need to yet.
03:06 < rhencke> go is still young, but it will be something eventually
faced
03:07 < vsmatck> Imagine if someone just decided to change libc all of the
sudden.  heh
03:07 < Namegduf> People using the crypto library don't want their programs
broken, either.
03:07 < sjohnson> they might want ciphers that don't date back to 10 years
ago, though.
03:07 < Namegduf> In both cases they can add new things without affecting
backwards compatibility, and in both cases the time before removing deprecated
support is similar.
03:08 < Namegduf> Yes, they might, but you've failed to explain any reason
they couldn't be added to the standard distribution, or why the standard
distribution should be harder to update.
03:08 < TheSeeker> ciphers that last 10 years are probably extrememly strong
:)
03:09 < rhencke> ciphers get deprecated, essentially
03:10 < vsmatck> Even old stuff retains some useful properties.  RC4 is used
in bittorrent for example.
03:11 < skelterjohn> it wouldn't be horrible to have a distinction between
"core" libraries and "extra" libraries
03:11 < skelterjohn> perhaps, a package called "ext" or something
03:12 < vsmatck> Having something like the boost C++ libraries, but a go
version would be nice.
03:12 < vsmatck> Same concept I mean, not the exact same libraries.
03:12 < Namegduf> Isn't Boost's concept "eveything we feel the stdlib should
have"?
03:12 < skelterjohn> enough of us would have to get together for long enough
to cooperate
03:12 < skelterjohn> hard to manage
03:12 < vsmatck> heh
03:12 < Namegduf> It's kinda got anything and everything in it.
03:13 < rhencke> boost will make you breakfast and wash your clothes
03:13 < vsmatck> boost has been a staging area for stuff that may eventually
get added to the standard library.  It'd be nice to have something like that for
go.  Something between a random github project and a standard library.
03:14 < Namegduf> Why?
03:14 < Namegduf> Go's stdlib develops quickly enough that things are just
added to it when the devs want to.
03:14 < rhencke> vsmatck: they kinda have that..  the exp/ package
03:14 -!- boscop_ [~boscop@f055207086.adsl.alicedsl.de] has joined #go-nuts
03:14 < rhencke> but it's not as large as what you're thinking, i think
03:14 < skelterjohn> exp is for experimental stuff
03:15 < vsmatck> skelterjohn: ah!  I didn't know that's what that was.
03:15 < Namegduf> And keeping stuff people are proposing as separate
projects means you don't need to depend on a single huge ugly blob with no
specific single function
03:15 < skelterjohn> you also can't rely on their existence quite as well
03:16 < skelterjohn> also expanding the core means more work for the devs
when they update
03:16 < skelterjohn> presumably they wouldn't update if something in there
broke
03:16 < skelterjohn> they're allowed to update if it breaks 3rd party stuff
03:17 -!- boscop [~boscop@f055049217.adsl.alicedsl.de] has quit [Ping timeout: 245
seconds]
03:31 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has joined
#go-nuts
03:52 -!- allengeorge [~allengeor@bas1-brampton37-2925500154.dsl.bell.ca] has quit
[Quit: allengeorge]
03:54 < sjohnson> Namegduf: i did explain it.  i thought that the standard
library usually implies it is modular enough so that things don't need updating
often.  hence, why i think crypto package which would be regularily updated would
be a 3rd party thing.
04:08 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
04:13 -!- rspec22 [~rothspec@69.55.231.142] has joined #go-nuts
04:21 -!- lmoura_ [~lauromour@186.212.106.18] has joined #go-nuts
04:24 -!- lmoura [~lauromour@186.212.100.161] has quit [Ping timeout: 272 seconds]
04:25 -!- alc [~arx@222.128.155.132] has quit [Ping timeout: 255 seconds]
04:26 < TheSeeker> regularly updated?  how often are new crypto methods
introduced into wide usage, really?
04:29 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
04:31 < sjohnson> TheSeeker: i dunno, once every year or so?
04:32 < sjohnson> the only block 128-bit block cipher it supports is AES.
the rest are all the other 64-bit block ciphers from the 90's
04:32 < sjohnson> actually, once every year is not quite right.  once every
time a contest happens, like AES, and NESSIE happen, and SHA-3, then every couple
of years.
04:35 -!- markcol [~markcol@74.125.59.1] has quit [Quit: markcol]
04:43 < adu> what?
04:44 < adu> Namegduf: sounds poorly designed
04:45 -!- Xenith [~xenith@2001:470:1:9:8002::1] has quit [Ping timeout: 260
seconds]
04:46 -!- Xenith [~xenith@2001:470:1:9:8002::1] has joined #go-nuts
04:48 -!- kanru [~kanru@2001:c08:3700:ffff::26:fef4] has quit [Ping timeout: 260
seconds]
04:49 < cbeck1> Any ideas as to how one might easily determine the
endianness of the system you're running on?
04:50 -!- Evill [~Evill@58-7-252-130.dyn.iinet.net.au] has joined #go-nuts
04:50 < rhencke> what do you need the endianness for?
04:52 < rhencke> if you need to read or write data in a specific endianness,
you can use the binary package
04:52 < rhencke> but i don't think it'll tell you the endianness of your
system
04:54 < cbeck> Right, I'm using the binary package, one of the arguments to
binary.Read/Write is the endianness to expect
04:55 < rhencke> you are reading data?
04:56 < rhencke> if it's off a network, chances are it's big endian
04:56 < Namegduf> cbeck: You mean the endianness to read from/write to?
04:57 < Namegduf> Or does it actually want to know the system's own
endianness?
04:58 -!- alc [~arx@222.128.155.132] has joined #go-nuts
05:02 -!- kanru [~kanru@2001:c08:3700:ffff::27:a5b9] has joined #go-nuts
05:04 < cbeck> endianness to read/write to
05:05 -!- jeff2 [~sername@c-98-210-113-215.hsd1.ca.comcast.net] has quit [Quit:
This computer has gone to sleep]
05:05 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
05:05 -!- zozoR [~zozoR@56344bf6.rev.stofanet.dk] has joined #go-nuts
05:05 < Namegduf> Then you just need to know the format's endianness, not
the system's.
05:22 -!- rhencke [~rhencke@ppp-70-247-243-221.dsl.ltrkar.swbell.net] has quit
[Quit: rhencke]
05:35 -!- matti_____ [~mumboww@c-98-207-108-218.hsd1.ca.comcast.net] has joined
#go-nuts
05:35 -!- matti__ [~mumboww@c-98-207-108-218.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
05:47 -!- adu [~ajr@pool-173-66-11-168.washdc.fios.verizon.net] has quit [Quit:
adu]
05:48 -!- Cyprien__ [~Cyprien@36-143.78-83.cust.bluewin.ch] has quit [Ping
timeout: 240 seconds]
05:53 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 272 seconds]
06:04 -!- zozoR [~zozoR@56344bf6.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
06:06 -!- fabled [~fabled@mail.fi.jw.org] has joined #go-nuts
06:29 -!- floppy_legs [~Adium@c-24-6-100-37.hsd1.ca.comcast.net] has joined
#go-nuts
06:43 -!- noktoborus_ [debian-tor@gateway/tor-sasl/noktoborus] has joined #go-nuts
07:05 -!- abc_ [71fe95a1@gateway/web/freenode/ip.113.254.149.161] has joined
#go-nuts
07:07 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:14 -!- kfeng [~kfeng@114-32-57-164.HINET-IP.hinet.net] has joined #go-nuts
07:20 -!- watr_ [~watr@66.183.100.58] has joined #go-nuts
07:25 -!- floppy_legs [~Adium@c-24-6-100-37.hsd1.ca.comcast.net] has quit [Quit:
Leaving.]
07:29 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
07:31 -!- Cyprien__ [~Cyprien@pub1.heig-vd.ch] has joined #go-nuts
07:32 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 245 seconds]
07:35 -!- kanru [~kanru@2001:c08:3700:ffff::27:a5b9] has quit [Quit: WeeChat
0.3.2]
07:38 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
07:43 -!- kanru [~kanru@2001:c08:3700:ffff::27:c41f] has joined #go-nuts
07:54 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 264
seconds]
07:58 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it]
has joined #go-nuts
08:14 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 240 seconds]
08:16 -!- ExtraSpice [~XtraSpice@88.118.33.48] has joined #go-nuts
08:19 -!- ronnyy [~quassel@drsd-4db30e11.pool.mediaWays.net] has joined #go-nuts
08:19 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
08:30 -!- abc_ [71fe95a1@gateway/web/freenode/ip.113.254.149.161] has quit [Quit:
Page closed]
08:34 -!- watr_ [~watr@66.183.100.58] has quit [Ping timeout: 245 seconds]
08:35 -!- mankaev [5dbd9735@gateway/web/freenode/ip.93.189.151.53] has joined
#go-nuts
08:35 -!- mankaev [5dbd9735@gateway/web/freenode/ip.93.189.151.53] has quit
[Client Quit]
08:35 -!- ct529 [~quassel@envpc1758.york.ac.uk] has joined #go-nuts
08:54 -!- ct529 [~quassel@envpc1758.york.ac.uk] has quit [Remote host closed the
connection]
09:01 -!- nighty__ [~nighty@210.188.173.245] has quit [Quit: Disappears in a puff
of smoke]
09:04 -!- ct529 [~quassel@envpc1758.york.ac.uk] has joined #go-nuts
09:14 -!- photron [~photron@port-92-201-65-58.dynamic.qsc.de] has joined #go-nuts
09:28 -!- werdan7 [~w7@freenode/staff/wikimedia.werdan7] has joined #go-nuts
09:36 -!- ronnyy [~quassel@drsd-4db30e11.pool.mediaWays.net] has quit [Remote host
closed the connection]
10:00 -!- antonkovalyov [~antonkova@adsl-75-18-220-88.dsl.pltn13.sbcglobal.net]
has quit [Remote host closed the connection]
10:01 -!- piyushmishra [~piyushmis@117.200.226.229] has joined #go-nuts
10:09 -!- Kashia [~Kashia@port-92-200-8-147.dynamic.qsc.de] has quit [Quit: This
computer has gone to sleep]
10:10 -!- Project_2501 [~Marvin@82.84.79.101] has joined #go-nuts
10:24 -!- tvw [~tv@e176006136.adsl.alicedsl.de] has joined #go-nuts
10:34 -!- artefon [~thiago@189.59.159.218.dynamic.adsl.gvt.net.br] has joined
#go-nuts
10:42 -!- exch [~exch@h78233.upc-h.chello.nl] has quit [Read error: Connection
reset by peer]
10:42 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
10:42 -!- exch [~exch@h78233.upc-h.chello.nl] has joined #go-nuts
10:50 < GilJ> I was building a string and wasn't very sure if using the +=
operator to append to a string (like i did in http://pastie.org/1351773) is how
I'm supposed to do it, or are there better ways?
10:50 < nsf> GilJ: += isn't a very fast method
10:51 < nsf> if you don't care it's fine
10:51 -!- xash [~xash@d046091.adsl.hansenet.de] has joined #go-nuts
10:51 -!- virtualsue [~chatzilla@nat/cisco/x-zhanpuxgvvrhfpnk] has joined #go-nuts
10:52 < nsf> otherwise use bytes.Buffer, accumulate all the string data and
then convert it to string type
10:52 < GilJ> Ok thanks alot :)
10:53 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
11:04 -!- lmoura_ [~lauromour@186.212.106.18] has quit [Ping timeout: 245 seconds]
11:09 -!- lmoura_ [~lauromour@186.212.106.18] has joined #go-nuts
11:12 -!- piyushmishra [~piyushmis@117.200.226.229] has quit [Read error:
Connection reset by peer]
11:12 -!- lmoura_ [~lauromour@186.212.106.18] has quit [Client Quit]
11:13 -!- lmoura [~lauromour@186.212.106.18] has joined #go-nuts
11:14 -!- niemeyer [~niemeyer@189.73.142.213] has joined #go-nuts
11:16 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has quit [Ping timeout: 260
seconds]
11:18 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts
11:18 -!- lmoura_ [~lauromour@186.212.106.18] has joined #go-nuts
11:19 -!- lmoura [~lauromour@186.212.106.18] has quit [Read error: Connection
reset by peer]
11:21 -!- kanru [~kanru@2001:c08:3700:ffff::27:c41f] has quit [Ping timeout: 260
seconds]
11:23 -!- kfeng [~kfeng@114-32-57-164.HINET-IP.hinet.net] has quit [Quit: kfeng]
11:25 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has quit [Ping timeout: 240
seconds]
11:27 -!- l00t [~i-i3id3r_@187.127.196.159] has quit [Quit: Leaving]
11:33 -!- lmoura_ [~lauromour@186.212.106.18] has quit [Quit: Leaving]
11:33 -!- lmoura [~lauromour@186.212.106.18] has joined #go-nuts
11:33 -!- kanru [~kanru@2001:c08:3700:ffff::27:eb0b] has joined #go-nuts
11:35 -!- foocraft [~dsc@89.211.184.236] has joined #go-nuts
11:35 < foocraft> so guys, why is " if len allItems > 0 {" not an allowed
statement?
11:35 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has quit [Quit:
DarthShrine]
11:36 < GilJ> foocraft: len(allItems)?
11:36 < foocraft> D'oh sorry about that
11:37 < foocraft> it's the "if statement" kicking in the other stuff by
mistake
11:52 -!- gnuvince [~vince@70.35.166.95] has quit [Read error: Connection reset by
peer]
11:56 -!- tensorpudding [~user@99.148.202.191] has quit [Remote host closed the
connection]
11:59 -!- Nitro [~Nitro@modemcable105.5-82-70.mc.videotron.ca] has quit [Quit:
This computer has gone to sleep]
12:06 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts
12:11 -!- gnuvince [~vince@70.35.162.131] has joined #go-nuts
12:13 -!- ExtraSpice [~XtraSpice@88.118.33.48] has quit [Quit: Leaving]
12:19 -!- alc [~arx@222.128.155.132] has quit [Read error: Connection reset by
peer]
12:21 -!- xash [~xash@d046091.adsl.hansenet.de] has quit [Quit: Lost terminal]
12:23 -!- alc [~arx@222.128.155.132] has joined #go-nuts
12:26 -!- xash [~xash@d046091.adsl.hansenet.de] has joined #go-nuts
12:28 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Quit:
leaving]
12:30 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
12:32 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Client
Quit]
12:32 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
12:34 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Remote
host closed the connection]
12:44 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Quit:
leaving]
12:44 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
12:46 -!- ExtraSpice [~XtraSpice@88.118.33.48] has joined #go-nuts
13:06 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Quit:
leaving]
13:06 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
13:11 -!- ct529 [~quassel@envpc1758.york.ac.uk] has quit [Read error: Connection
reset by peer]
13:14 -!- sauerbraten [~sauerbrat@p508CADED.dip.t-dialin.net] has joined #go-nuts
13:20 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Remote
host closed the connection]
13:22 -!- Chopinn [~Chopin@ti0018a380-dhcp1590.bb.online.no] has quit [Quit:
Leaving]
13:22 -!- Maxdamantus [~Maxdamant@203.97.238.106] has quit [Ping timeout: 265
seconds]
13:27 -!- Nitro [~Nitro@142.137.216.20] has joined #go-nuts
13:34 -!- Maxdamantus [~Maxdamant@203.97.238.106] has joined #go-nuts
13:35 -!- prip [~foo@host196-135-dynamic.43-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 260 seconds]
13:39 -!- prip [~foo@host196-135-dynamic.43-79-r.retail.telecomitalia.it] has
joined #go-nuts
13:42 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
13:42 -!- noktoborus_ [debian-tor@gateway/tor-sasl/noktoborus] has quit [Ping
timeout: 245 seconds]
13:43 -!- pure_x01 [~pure@h-4-84.A155.priv.bahnhof.se] has joined #go-nuts
13:44 < pure_x01> I have problems compiling gccgo from the gcc trunk
../.././libgo/runtime/go-go.c: In function ‘__go_run_goroutine_gc’:
../.././libgo/runtime/go-go.c:355:1: error: bp cannot be used in asm here
13:51 -!- artefon [~thiago@189.59.159.218.dynamic.adsl.gvt.net.br] has quit [Quit:
bye]
13:55 -!- noam [noam@77.124.236.67] has quit [Read error: Connection reset by
peer]
13:55 -!- noam [noam@77.124.236.67] has joined #go-nuts
13:57 < pure_x01> 64 bit ubuntu 10.10 . ::: ./configure
--prefix=/home/pure/gcc-4.6-20101204 --disable-bootstrap CFLAGS="-g3 -O0"
--enable-languages=c,go,c++ --disable-multilib --program-suffix=-4.6
13:57 -!- toyoshim [~toyoshima@y168217.dynamic.ppp.asahi-net.or.jp] has joined
#go-nuts
13:58 -!- sauerbraten [~sauerbrat@p508CADED.dip.t-dialin.net] has quit [Remote
host closed the connection]
14:00 -!- Nitro [~Nitro@142.137.216.20] has quit [Quit: Leaving]
14:06 -!- FluffySauce [~FluffySau@wsip-72-214-40-186.dc.dc.cox.net] has joined
#go-nuts
14:06 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has joined #go-nuts
14:11 -!- DerHorst [~Horst@e176106240.adsl.alicedsl.de] has joined #go-nuts
14:16 -!- xash [~xash@d046091.adsl.hansenet.de] has quit [Ping timeout: 265
seconds]
14:17 -!- kanru [~kanru@2001:c08:3700:ffff::27:eb0b] has quit [Quit: WeeChat
0.3.2]
14:25 -!- foocraft [~dsc@89.211.184.236] has quit [Ping timeout: 250 seconds]
14:29 -!- nigelkerr [~nigelkerr@jstormichfw.jstor.org] has joined #go-nuts
14:33 -!- noktoborus_ [debian-tor@gateway/tor-sasl/noktoborus] has joined #go-nuts
14:47 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
14:48 -!- pure_x01 [~pure@h-4-84.A155.priv.bahnhof.se] has quit [Quit: Ex-Chat]
14:51 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
14:59 -!- drry_ [~drry@unaffiliated/drry] has quit [Ping timeout: 265 seconds]
15:06 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
15:07 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
15:09 -!- zozoR [~zozoR@56344bf6.rev.stofanet.dk] has joined #go-nuts
15:18 -!- mbohun [~user@ppp115-156.static.internode.on.net] has quit [Ping
timeout: 272 seconds]
15:21 -!- mbohun [~user@ppp115-156.static.internode.on.net] has joined #go-nuts
15:22 -!- mbohun [~user@ppp115-156.static.internode.on.net] has quit [Remote host
closed the connection]
15:22 -!- ymasory [~ymasory@c-76-99-55-224.hsd1.pa.comcast.net] has quit [Quit:
Leaving]
15:29 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
15:31 -!- kanru [~kanru@2001:c08:3700:ffff::28:b150] has joined #go-nuts
15:33 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts
15:37 -!- drry_ [~drry@unaffiliated/drry] has joined #go-nuts
15:41 -!- virtualsue [~chatzilla@nat/cisco/x-zhanpuxgvvrhfpnk] has quit [Ping
timeout: 276 seconds]
15:45 -!- ronnyy [~quassel@drsd-4db30e11.pool.mediaWays.net] has joined #go-nuts
15:50 -!- skelterjohn [~jasmuth@dsl092-234-022.phl1.dsl.speakeasy.net] has joined
#go-nuts
15:52 -!- ymasory [~ymasory@SEAS116.wlan.seas.upenn.edu] has joined #go-nuts
15:53 -!- ronnyy [~quassel@drsd-4db30e11.pool.mediaWays.net] has quit [Remote host
closed the connection]
15:56 -!- skelterjohn [~jasmuth@dsl092-234-022.phl1.dsl.speakeasy.net] has quit
[Quit: skelterjohn]
16:01 -!- DerHorst [~Horst@e176106240.adsl.alicedsl.de] has quit [Remote host
closed the connection]
16:02 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
16:09 -!- sauerbraten [~sauerbrat@p508CADED.dip.t-dialin.net] has joined #go-nuts
16:12 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
16:14 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
16:17 -!- devrim [~Adium@160.79.7.234] has joined #go-nuts
16:19 -!- noam [noam@77.124.236.67] has quit [Ping timeout: 245 seconds]
16:20 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Quit:
Leaving.]
16:21 -!- foocraft [~dsc@89.211.184.236] has joined #go-nuts
16:22 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has joined
#go-nuts
16:22 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
16:23 -!- artefon [~thiagon@150.164.2.20] has quit [Ping timeout: 255 seconds]
16:23 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Client
Quit]
16:24 -!- devrim [~Adium@160.79.7.234] has quit [Quit: Leaving.]
16:25 -!- devrim [~Adium@160.79.7.234] has joined #go-nuts
16:26 -!- piyushmishra [~piyushmis@117.200.227.120] has joined #go-nuts
16:26 -!- noam [noam@77.124.236.67] has joined #go-nuts
16:27 -!- Cyprien__ [~Cyprien@pub1.heig-vd.ch] has quit [Ping timeout: 265
seconds]
16:30 -!- terrex [~terrex@84.122.72.127.dyn.user.ono.com] has joined #go-nuts
16:32 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has quit [Quit:
leaving]
16:32 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has joined
#go-nuts
16:33 < mpl> uriel:
16:33 < mpl> uriel: you might want to discuss that (on reddit?) with ppl
interested in CSP: http://lambda-the-ultimate.org/node/4157
16:34 -!- ymasory [~ymasory@SEAS116.wlan.seas.upenn.edu] has quit [Ping timeout:
240 seconds]
16:38 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
16:40 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
16:41 < foocraft> does a slice allocate new memory or just create a new
pseudo array that is just a range of another previously created array?
16:43 < exch> make([]T, size, capacity) allocates new memory.  Taking a
slice of an existing slice/array doesn't allocate/ It's just a pointer into the
existing structure
16:46 < foocraft> so why not have all arrays though?
16:46 < exch> What do you mean?
16:46 < foocraft> why is a slice important now?  can't I just return a
pointer to somewhere within the array ( aka slice) ?
16:47 < exch> A slice is a lightweight form to access fixed arrays (chunks
of memory).  Almost everything in Go uses slices instead of arrays
16:50 -!- artefon [~thiagon@150.164.2.20] has quit [Quit: Leaving]
16:51 < foocraft> okay so how can I start iterating over a channel
16:52 -!- terrex [~terrex@84.122.72.127.dyn.user.ono.com] has quit [Quit:
Leaving.]
16:52 < exch> for v := range mychan { ..  }
16:52 < foocraft> a channel is only iterable one way, right?
16:55 -!- kanru [~kanru@2001:c08:3700:ffff::28:b150] has quit [Read error:
Operation timed out]
16:55 < rmmh> what would it mean to iterate it in reverse?
16:56 < exch> You can't
16:56 -!- devrim [~Adium@160.79.7.234] has quit [Ping timeout: 245 seconds]
16:56 < rmmh> (exactly what I'm trying to point out)
16:57 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
16:57 < foocraft> then why are there bidirectional chans...
16:57 < foocraft> oh got it
16:58 < foocraft> you can read and add to them at the same time
16:58 < foocraft> it would be nice if I can override how a chan orders its
elements, upon insertion
16:58 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has left #go-nuts
[]
16:59 < foocraft> (then I get a PQ! :p)
17:00 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
17:01 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
17:02 -!- devrim [~Adium@160.79.7.234] has joined #go-nuts
17:03 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
17:03 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
17:03 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
17:07 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
17:11 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
17:16 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
17:19 -!- Fish [~Fish@coss6.exosec.net] has joined #go-nuts
17:19 -!- Fish [~Fish@coss6.exosec.net] has quit [Client Quit]
17:23 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
17:30 -!- watr_ [~watr@66.183.100.58] has joined #go-nuts
17:34 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
17:36 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Remote
host closed the connection]
17:46 -!- piyushmishra [~piyushmis@117.200.227.120] has quit [Quit: Leaving.]
17:52 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X]
17:52 -!- skelterjohn [~jasmuth@tvwna-ip-b-128.princeton.org] has joined #go-nuts
17:56 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 272 seconds]
17:56 -!- virtualsue [~chatzilla@nat/cisco/x-goynvpmndgeovbwn] has joined #go-nuts
17:56 -!- iant [~iant@216.239.45.130] has joined #go-nuts
17:56 -!- mode/#go-nuts [+v iant] by ChanServ
17:59 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
18:02 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 250 seconds]
18:05 -!- fabled [~fabled@mail.fi.jw.org] has quit [Ping timeout: 250 seconds]
18:21 -!- TheMue [~TheMue@p5DDF6341.dip.t-dialin.net] has joined #go-nuts
18:23 -!- sacho [~sacho@79-100-173-234.btc-net.bg] has quit [Read error:
Connection reset by peer]
18:24 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has joined #go-nuts
18:30 -!- ronnyy [~quassel@drsd-4db30e11.pool.mediaWays.net] has joined #go-nuts
18:30 -!- skelterjohn [~jasmuth@tvwna-ip-b-128.princeton.org] has quit [Quit:
skelterjohn]
18:36 -!- _nil [~aiden@c-24-147-65-44.hsd1.ma.comcast.net] has quit [Ping timeout:
272 seconds]
18:39 -!- ymasory [~ymasory@c-76-99-55-224.hsd1.pa.comcast.net] has joined
#go-nuts
18:41 -!- steevel [steevel@yahoe.se] has joined #go-nuts
18:41 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
18:44 -!- _nil [~aiden@c-24-147-65-44.hsd1.ma.comcast.net] has joined #go-nuts
18:47 < foocraft>
http://en.wikibooks.org/wiki/Go_Programming_Language_Cookbook awesome :p
18:50 -!- sacho [~sacho@79-100-173-234.btc-net.bg] has joined #go-nuts
18:50 < nsf> yeah, this is all you want to know about Go
18:50 < nsf> ;)
18:51 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
18:55 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
18:55 < exch> It's a bit barren :p
18:55 < exch> It could do with a tumbleweed imag
18:56 -!- noam [noam@77.124.236.67] has quit [Read error: Connection reset by
peer]
18:56 -!- noam [noam@77.124.236.67] has joined #go-nuts
18:58 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has quit [Ping
timeout: 255 seconds]
19:05 -!- hagna [~hagna@74-92-245-181-Utah.hfc.comcastbusiness.net] has joined
#go-nuts
19:07 -!- tdc [~santegoed@host86-156-182-103.range86-156.btcentralplus.com] has
joined #go-nuts
19:07 -!- tdc [~santegoed@host86-156-182-103.range86-156.btcentralplus.com] has
quit [Read error: Connection reset by peer]
19:07 -!- tdc [~santegoed@host86-156-182-103.range86-156.btcentralplus.com] has
joined #go-nuts
19:08 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has joined
#go-nuts
19:08 < plexdev> http://is.gd/iiJRx by [Roger Peppe] in go/src/pkg/bytes/ --
bytes: add Buffer.UnreadRune, Buffer.UnreadByte
19:11 -!- Cyprien_ [~Cyprien@24-183.78-83.cust.bluewin.ch] has joined #go-nuts
19:16 < uriel> mpl: interesting, feel free to post it anywhere relevant ;)
19:19 -!- ExtraSpice [~XtraSpice@88.118.33.48] has quit [Remote host closed the
connection]
19:19 -!- ronnyy [~quassel@drsd-4db30e11.pool.mediaWays.net] has quit [Remote host
closed the connection]
19:19 -!- keithcascio [~keithcasc@nat/google/x-equsrmpbklbzrsta] has joined
#go-nuts
19:25 -!- ExtraSpice [~XtraSpice@88.118.33.48] has joined #go-nuts
19:25 < plexdev> http://is.gd/iiMih by [Roger Peppe] in go/src/pkg/time/ --
time: make After use fewer goroutines and host processes.
19:25 < plexdev> http://is.gd/iiMit by [Rob Pike] in go/src/pkg/fmt/ -- fmt:
add %U format for standard Unicode representation of integer values.
19:26 < plexdev> http://is.gd/iiMjr by [Rob Pike] in go/src/pkg/flag/ --
flag: fix format error in boolean error report.  just use %q; the values are
strings.
19:26 < plexdev> http://is.gd/iiMjT by [Rob Pike] in go/src/pkg/netchan/ --
netchan: fix dumb locking bug introduced in recent editing.
19:32 -!- skelterjohn [~jasmuth@c-71-230-156-50.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
19:35 -!- tensorpudding [~user@99.148.202.191] has joined #go-nuts
19:39 -!- krutcha [~krutcha@remote.icron.com] has joined #go-nuts
19:42 -!- FluffySauce [~FluffySau@wsip-72-214-40-186.dc.dc.cox.net] has quit
[Quit: FluffySauce]
19:42 < plexdev> http://is.gd/iiOHQ by [Rob Pike] in 4 subdirs of go/src/ --
use the new %U format for runes
19:45 -!- ucasano [~ucasano@host153-182-static.227-95-b.business.telecomitalia.it]
has quit [Quit: ucasano]
19:51 -!- gr0gmint [~quassel@87.60.23.38] has joined #go-nuts
19:53 -!- lmoura [~lauromour@186.212.106.18] has quit [Write error: Connection
reset by peer]
19:54 -!- lmoura [~lauromour@186.212.103.21] has joined #go-nuts
19:57 -!- femtooo [~femto@95-89-197-196-dynip.superkabel.de] has joined #go-nuts
19:57 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed
the connection]
19:58 -!- pothos_ [~pothos@111-240-212-92.dynamic.hinet.net] has joined #go-nuts
20:00 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Ping
timeout: 245 seconds]
20:01 -!- pothos [~pothos@111-240-214-134.dynamic.hinet.net] has quit [Ping
timeout: 272 seconds]
20:10 -!- femtooo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
20:11 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Ping
timeout: 260 seconds]
20:18 -!- savio [~savio@67.18.186.81] has joined #go-nuts
20:19 -!- noam [noam@77.124.236.67] has quit [Read error: Connection reset by
peer]
20:20 -!- noam [noam@77.124.236.67] has joined #go-nuts
20:20 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
20:25 -!- DarthShrine [~angus@pdpc/supporter/student/DarthShrine] has joined
#go-nuts
20:30 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
20:38 -!- gr0gmint [~quassel@87.60.23.38] has quit [Remote host closed the
connection]
20:41 -!- Kashia [~Kashia@port-92-200-8-147.dynamic.qsc.de] has joined #go-nuts
20:45 -!- tdc [~santegoed@host86-156-182-103.range86-156.btcentralplus.com] has
quit [Quit: tdc]
20:46 -!- artefon [~thiago@189.59.159.218.dynamic.adsl.gvt.net.br] has joined
#go-nuts
20:48 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Ping
timeout: 260 seconds]
20:52 -!- slashus2 [~slashus2@74-141-107-118.dhcp.insightbb.com] has joined
#go-nuts
20:52 -!- xash [~xash@d025132.adsl.hansenet.de] has joined #go-nuts
20:58 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
20:58 -!- savio [~savio@67.18.186.81] has quit [Quit: bbl]
20:59 -!- sauerbraten [~sauerbrat@p508CADED.dip.t-dialin.net] has quit [Remote
host closed the connection]
21:04 -!- rbraley [~rbraley@ip72-204-243-89.ph.ph.cox.net] has quit [Ping timeout:
255 seconds]
21:04 -!- antonkovalyov [~antonkova@75-101-56-240.dsl.static.sonic.net] has joined
#go-nuts
21:05 -!- noam [noam@77.124.236.67] has quit [Read error: Connection reset by
peer]
21:05 -!- noam [noam@77.124.236.67] has joined #go-nuts
21:19 -!- slashus2 [~slashus2@74-141-107-118.dhcp.insightbb.com] has quit [Quit:
slashus2]
21:20 -!- ronnyy [~quassel@drsd-4dbda92c.pool.mediaWays.net] has joined #go-nuts
21:23 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Ping timeout: 276
seconds]
21:30 < plexdev> http://is.gd/ij4li by [Russ Cox] in go/src/pkg/time/ --
time: fix build
21:30 < plexdev> http://is.gd/ij4lv by [Eoghan Sherry] in go/src/pkg/math/
-- math: improve accuracy of Exp2
21:30 < plexdev> http://is.gd/ij4mA by [Russ Cox] in go/ -- LICENSE:
separate, change PATENTS text
21:35 -!- foocraft [~dsc@89.211.184.236] has quit [Ping timeout: 245 seconds]
21:40 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
21:41 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
21:43 -!- Fish [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
21:44 -!- TheMue [~TheMue@p5DDF6341.dip.t-dialin.net] has quit [Quit: TheMue]
21:45 -!- ymasory_ [~ymasory@SEAS223.wlan.seas.upenn.edu] has joined #go-nuts
21:46 < plexdev> http://is.gd/ij6O1 by [Yuval Pavel Zholkover] in 4 subdirs
of go/src/ -- 8l, runtime: fix Plan 9 386 build.
21:47 -!- foocraft [~dsc@89.211.184.236] has joined #go-nuts
21:47 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
21:48 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Read
error: Connection reset by peer]
21:48 < sl> !
21:48 < sl> sorry pavel, i didn't even get a chance to try it out yet.
21:51 -!- ymasory_ [~ymasory@SEAS223.wlan.seas.upenn.edu] has quit [Ping timeout:
264 seconds]
21:53 -!- ymasory_ [~ymasory@SEAS223.wlan.seas.upenn.edu] has joined #go-nuts
21:54 -!- tux21b [~christoph@trujillo.srv.pocoo.org] has quit [Quit: Terminated
with extreme prejudice - dircproxy 1.0.5]
21:55 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
21:56 -!- ronnyy [~quassel@drsd-4dbda92c.pool.mediaWays.net] has quit [Remote host
closed the connection]
21:56 -!- tux21b [~christoph@chello213047047175.3.graz.surfer.at] has joined
#go-nuts
21:59 -!- ymasory_ [~ymasory@SEAS223.wlan.seas.upenn.edu] has quit [Ping timeout:
265 seconds]
22:00 -!- watr_ [~watr@66.183.100.58] has quit [Ping timeout: 255 seconds]
22:01 -!- noam [noam@77.124.236.67] has quit [Read error: Connection reset by
peer]
22:02 -!- noam [noam@77.124.236.67] has joined #go-nuts
22:03 -!- rbraley [~rbraley@ip72-204-243-89.ph.ph.cox.net] has joined #go-nuts
22:10 -!- Wiz126 [Wiz@h62.126.232.68.ip.windstream.net] has quit [Ping timeout:
276 seconds]
22:10 -!- Wiz126 [Z@h62.126.232.68.ip.windstream.net] has joined #go-nuts
22:10 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: Quit]
22:14 -!- tux21b [~christoph@chello213047047175.3.graz.surfer.at] has quit [Read
error: Connection timed out]
22:17 -!- Adys [~Adys@cpc3-chap8-2-0-cust26.aztw.cable.virginmedia.com] has joined
#go-nuts
22:17 -!- Adys [~Adys@cpc3-chap8-2-0-cust26.aztw.cable.virginmedia.com] has quit
[Changing host]
22:17 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
22:17 -!- noam [noam@77.124.236.67] has quit [Read error: Connection reset by
peer]
22:18 -!- noam [noam@77.124.236.67] has joined #go-nuts
22:18 < plexdev> http://is.gd/ijbmq by [Russ Cox] in go/src/pkg/net/ -- net:
fix TestDialGoogle
22:18 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
22:19 -!- zozoR [~zozoR@56344bf6.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
22:22 -!- sav [~lsd@jagat.xored.org] has joined #go-nuts
22:25 -!- xash [~xash@d025132.adsl.hansenet.de] has quit [Read error: Connection
reset by peer]
22:27 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
22:29 -!- awidegreen [~quassel@c-eacae555.08-2-73746f39.cust.bredbandsbolaget.se]
has quit [Remote host closed the connection]
22:33 -!- photron [~photron@port-92-201-65-58.dynamic.qsc.de] has quit [Ping
timeout: 264 seconds]
22:35 < plexdev> http://is.gd/ijdyi by [Robert Griesemer] in 18 subdirs of
go/ -- go/ast: use token.Pos instead of token.Position; adjust all dependent code
22:55 -!- yebyen [~yebyen@irie-arch.rit.edu] has quit [Ping timeout: 250 seconds]
22:55 -!- virtualsue [~chatzilla@nat/cisco/x-goynvpmndgeovbwn] has quit [Ping
timeout: 255 seconds]
22:57 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
23:01 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
23:06 < foocraft> can I have a channel of functions?
23:09 < Tv> foocraft: should work just fine
23:10 < foocraft> heh and that's how you own sync in Go :)
23:12 < foocraft> so I'm stuck on this.  I'm trying to get the first arg to
my program
23:12 < foocraft> and I imported "flag" for that
23:12 < foocraft> but flag.Arg ( 1 ) isn't really the first argument
23:22 < Tv> "Arg returns the i'th command-line argument.  Arg(0) is the
first remaining argument after flags have been processed."
23:23 < TheSeeker> are you running flag.Parse() ?
23:23 < TheSeeker> before trying to get args?
23:25 < TheSeeker> func NArg() int
23:25 < TheSeeker> NArg is the number of arguments remaining after flags
have been processed.
23:25 < TheSeeker> func Parse()
23:25 < TheSeeker> Parse parses the command-line flags.  Must be called
after all flags are defined and before any are accessed by the program.
23:30 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
23:32 -!- emjayess [~emjayess@pix1.i29.net] has quit [Quit: Leaving]
23:37 < plexdev> http://is.gd/ijlWB by [Robert Griesemer] in
go/src/cmd/godoc/ -- godoc: don't call flush if position is not valid
23:41 -!- zarqu0n [4086c52e@gateway/web/freenode/ip.64.134.197.46] has joined
#go-nuts
23:42 < zarqu0n> if I am using gccgo, how do I call C code from go?
23:49 -!- cinghialino [~Marvin@82.84.79.101] has quit [Quit: E se abbasso questa
leva che succ...]
23:52 <+iant> zarqu0n:
http://golang.org/doc/gccgo_install.html#C_Interoperability
23:57 < zarqu0n> iant: thanks!  (and sorry for not RTFM).  If performance is
critical, what's the best bet to do Go bindings for a C library, and be agnostic
of gccgo and gc?
23:58 <+iant> hmm, good question; I don't think there is a good way at
present to be agnostic
23:58 < zarqu0n> SWIG might be an option, I guess.
23:58 <+iant> yeah, that would work
23:58 <+iant> some day cgo should learn about gccgo
--- Log closed Tue Dec 07 00:00:37 2010