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

--- Log opened Thu Apr 14 00:00:50 2011
00:00 -!- skelterjohn_ [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
00:01 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
00:02 -!- scyth [~scyth@rots.in.rs] has quit [Ping timeout: 240 seconds]
00:02 -!- scyth [~scyth@rots.in.rs] has joined #go-nuts
00:04 -!- Scorchin [~Scorchin@host109-156-218-26.range109-156.btcentralplus.com]
has quit [Quit: Scorchin]
00:08 -!- m4dh4tt3r [~Adium@] has quit [Quit: Leaving.]
00:12 -!- bugQ [~bug@c-71-195-207-98.hsd1.ut.comcast.net] has joined #go-nuts
00:16 -!- coolaj86 [~coolaj86@] has quit [Ping timeout: 276 seconds]
00:18 -!- meanburrito920 [~john@] has joined #go-nuts
00:18 -!- meanburrito920 [~john@] has quit [Changing host]
00:18 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has joined #go-nuts
00:18 -!- meanburrito920 [~john@unaffiliated/meanburrito920] has quit [Client
00:23 -!- drhodes [~none@drhodes.xen.prgmr.com] has quit [Read error: Operation
timed out]
00:23 -!- adg [~nf@2001:470:21:20::4444:61d9] has quit [Read error: Operation
timed out]
00:24 -!- btipling [~btipling@unaffiliated/sk/x-5968384] has quit [Ping timeout:
276 seconds]
00:24 -!- rphillips [~rphillips@unaffiliated/rphillips] has quit [Ping timeout:
248 seconds]
00:28 < plexdev> http://is.gd/PGcbty by [Andrew Gerrand] in go/doc/ --
doc/install.html: document use of libc6-dev-i386
00:37 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
00:37 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
00:39 -!- matti__ [~mumboww@c-24-6-22-101.hsd1.ca.comcast.net] has joined #go-nuts
00:41 -!- franksalim [~franksali@99-123-6-19.lightspeed.sntcca.sbcglobal.net] has
quit [Read error: Connection reset by peer]
00:41 -!- JusticeFries [~JusticeFr@65.sub-75-220-125.myvzw.com] has joined
00:41 -!- franksalim [~franksali@99-123-6-19.lightspeed.sntcca.sbcglobal.net] has
joined #go-nuts
00:43 -!- nettok [~quassel@] has joined #go-nuts
00:44 -!- niemeyer [~niemeyer@189-10-155-52.pltce701.dsl.brasiltelecom.net.br] has
joined #go-nuts
00:45 -!- coolaj86 [~coolaj86@] has joined #go-nuts
00:45 -!- JusticeFries_ [~JusticeFr@] has joined #go-nuts
00:45 < plexdev> http://is.gd/m9lYOF by [Corey Thomasson] in go/src/pkg/net/
-- net: sort records returned by LookupMX
00:48 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-pelrswglirupwpwd]
has quit [Ping timeout: 252 seconds]
00:48 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-oinnehrlklcwmyqc]
has joined #go-nuts
00:48 < matti__> i have a weird issue
00:49 < matti__> when i am constructing a map using the usual composite
literal syntax
00:49 -!- JusticeFries [~JusticeFr@65.sub-75-220-125.myvzw.com] has quit [Ping
timeout: 246 seconds]
00:49 < matti__> it gives me an error when i have the key-value pairs on
separate lines
00:49 < matti__> but if i have all of the key-value pairs on the same line,
it works
00:49 < matti__> anyone know what might be going on?
00:52 < dfc> do you have a trailing comma after every line
00:52 < dfc> ?
00:52 < matti__> yep i do
00:52 < matti__> except for the last key value pair
00:52 < dfc> if you use the multi line syntax
00:52 < dfc> every line needs a comma
00:53 < matti__> oh wow
00:53 < matti__> you are right
00:53 < matti__> doh
00:53 < skelterjohn> otherwise a semi-colon is inserted
00:53 -!- iant [~iant@] has quit [Quit: Leaving.]
00:53 -!- mikespook [~mikespook@] has joined #go-nuts
00:53 < matti__> oh thank you guys
00:53 < dfc> no worries
00:54 < skelterjohn> pretend that if a line ends with an identifier or
literal, that there is a semicolon immediately following
00:54 < skelterjohn> and then pretend you remember what the go syntax was
before semicolons were removed :)
00:54 -!- coolaj86 [~coolaj86@] has quit [Quit: coolaj86]
00:54 < matti__> thank you for the help :)
00:58 < skelterjohn> pleasure
01:00 -!- btipling [~btipling@unaffiliated/sk/x-5968384] has joined #go-nuts
01:04 -!- drhodes_ [~none@drhodes.xen.prgmr.com] has joined #go-nuts
01:10 -!- saturnfive [~saturnfiv@] has joined #go-nuts
01:14 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has quit [Read error:
Operation timed out]
01:17 < skelterjohn> i always find it a bit unsettling when i write a bunch
of code, compile and get no errors
01:18 < bugQ> skelterjohn: me too, but somehow for all these cheesy little
embedded projects we're doing for class that's happening a lot for me
01:19 < bugQ> although I'm sure getting your brain to obey compiler rules is
easier than "correctness"
01:24 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
01:24 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
01:27 -!- vinisterx [~ryan@74-129-201-27.dhcp.insightbb.com] has joined #go-nuts
01:28 -!- hachiya [~hachiya@encyclical.net] has quit [Read error: Operation timed
01:29 -!- hachiya [~hachiya@encyclical.net] has joined #go-nuts
01:30 -!- rphillips [~rphillips@unaffiliated/rphillips] has joined #go-nuts
01:33 -!- adg [~nf@2001:470:21:20::4444:61d9] has joined #go-nuts
01:33 -!- mode/#go-nuts [+o adg] by ChanServ
01:48 -!- bvcom [~bvcom@] has joined #go-nuts
01:48 -!- bvcom [~bvcom@] has quit [Client Quit]
01:49 -!- Border [~Border@] has joined #go-nuts
01:49 < dfc> bugQ: i'm amazed at how much I can hammer out in vim and it
compiles first go
01:49 < dfc> coming from a Java IDE weenie, i feel rather proud
01:49 < bugQ> heheh
01:55 -!- jgonzalez [~jgonzalez@173-14-137-134-NewEngland.hfc.comcastbusiness.net]
has quit [Ping timeout: 240 seconds]
02:02 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-oinnehrlklcwmyqc]
has quit [Ping timeout: 240 seconds]
02:02 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-edzucopqsgfnefbf]
has joined #go-nuts
02:07 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
02:07 -!- crodjer [~rohanjain@] has joined #go-nuts
02:09 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
02:09 -!- Border [~Border@] has quit [Quit: 离开]
02:09 -!- Border [~Border@] has joined #go-nuts
02:21 -!- bugQ [~bug@c-71-195-207-98.hsd1.ut.comcast.net] has quit [Read error:
Operation timed out]
02:27 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has quit [Read
error: Connection reset by peer]
02:28 -!- bugQ [~bug@c-71-195-207-98.hsd1.ut.comcast.net] has joined #go-nuts
02:28 -!- skelterjohn [~jasmuth@c-24-0-2-70.hsd1.nj.comcast.net] has joined
02:29 < skelterjohn> is there an easy way to make a verbatim code block
(preserving newlines, indentation) in html?
02:29 -!- eikenberry [~jae@] has joined #go-nuts
02:29 < dfc> <pre> ?
02:29 < dfc> you still need to html escape it
02:30 < skelterjohn> sure
02:30 < skelterjohn> thanks
02:32 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has
joined #go-nuts
02:32 -!- Border [~Border@] has quit [Quit: 离开]
02:33 -!- B0rder [~B0rder@] has joined #go-nuts
02:37 -!- B0rder_ [~B0rder@] has joined #go-nuts
02:39 -!- B0rder_ [~B0rder@] has quit [Client Quit]
02:39 -!- B0rder [~B0rder@] has quit [Ping timeout: 248 seconds]
02:43 -!- B0rder [~B0rder@] has joined #go-nuts
02:51 -!- m4dh4tt3r [~Adium@adsl-75-36-195-73.dsl.pltn13.sbcglobal.net] has joined
02:51 < plexdev> http://is.gd/zNmqtj by [Russ Cox] in 2 subdirs of go/ --
gc: fix func syntax error
02:55 < uriel> dfc: the simplicity and clarity of Go's syntax and semantics
helps a lot writting code that compiles and runs right away
02:56 < uriel> as rob points out, this days with msot languages you feel
like you are in an endless battle with the compiler
02:56 < skelterjohn> that is not a recent phenomenon...
02:59 < uriel> it isn't new, but it has been getting worse
03:04 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
03:13 -!- bugQ [~bug@c-71-195-207-98.hsd1.ut.comcast.net] has quit [Ping timeout:
264 seconds]
03:20 -!- bugQ [~bug@c-71-195-207-98.hsd1.ut.comcast.net] has joined #go-nuts
03:21 -!- m4dh4tt3r1 [~Adium@58.sub-75-208-29.myvzw.com] has joined #go-nuts
03:22 -!- keithcascio [~keithcasc@nat/google/x-jggoiynzoyfovrez] has quit [Quit:
03:23 -!- cenuij [~cenuij@] has joined #go-nuts
03:23 -!- cenuij [~cenuij@] has quit [Changing host]
03:23 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
03:23 -!- m4dh4tt3r [~Adium@adsl-75-36-195-73.dsl.pltn13.sbcglobal.net] has quit
[Ping timeout: 240 seconds]
03:26 -!- nettok [~quassel@] has quit [Ping timeout: 276 seconds]
03:28 -!- coolaj86 [~coolaj86@] has joined #go-nuts
03:29 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
03:29 -!- mode/#go-nuts [+v iant] by ChanServ
03:33 -!- TheColon1al [~oj@115-64-213-55.static.tpgi.com.au] has joined #go-nuts
03:33 -!- TheColon1al [~oj@115-64-213-55.static.tpgi.com.au] has left #go-nuts []
03:38 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 250 seconds]
03:39 -!- iant [~iant@] has joined #go-nuts
03:39 -!- mode/#go-nuts [+v iant] by ChanServ
03:40 < plexdev> http://is.gd/Ebxjiy by [Russ Cox] in 5 subdirs of
go/src/pkg/ -- pkg: manual cleanup of some gofixed code
03:41 -!- niemeyer [~niemeyer@189-10-155-52.pltce701.dsl.brasiltelecom.net.br] has
quit [Ping timeout: 240 seconds]
03:54 -!- coolaj86 [~coolaj86@] has quit [Quit: coolaj86]
03:56 -!- bugQ [~bug@c-71-195-207-98.hsd1.ut.comcast.net] has quit [Remote host
closed the connection]
03:56 < plexdev> http://is.gd/LD7gne by [Russ Cox] in 3 subdirs of go/ --
runtime: drop chan circular linked list in favor of circular buffer
04:09 -!- crodjer [~rohanjain@] has quit [Remote host closed the
04:11 -!- itrekkie [~itrekkie@ip72-200-105-157.tc.ph.cox.net] has joined #go-nuts
04:15 -!- zozoR [~Morten@56344b27.rev.stofanet.dk] has joined #go-nuts
04:17 -!- JusticeFries [~JusticeFr@] has quit [Quit: JusticeFries]
04:22 -!- dj2 [~dj2@CPE001f5b35feb4-CM0014048e0344.cpe.net.cable.rogers.com] has
quit [Remote host closed the connection]
04:29 < plexdev> http://is.gd/oJlQcQ by [Andrew Gerrand] in 2 subdirs of go/
-- weekly.2011-04-13
04:29 < plexdev> http://is.gd/6EM1DA by [Andrew Gerrand] in go/ -- tag
04:29 < plexdev> http://is.gd/Rc2mw3 by [Andrew Gerrand] in go/ -- tag
04:29 < plexdev> http://is.gd/Kxk9SZ by [Rob Pike] in 37 subdirs of go/ --
os: New Open API.
04:29 < plexdev> http://is.gd/gy6fLM by [Rob Pike] in go/src/pkg/os/ -- os:
fix windows build
04:29 < plexdev> http://is.gd/ILVCjr by [Yasuhiro Matsumoto] in
go/src/pkg/crypto/des/ -- crypto/des: new package providing implementations of DES
and TDEA
04:29 < plexdev> http://is.gd/Sp5eig by [Russ Cox] in 4 subdirs of go/ --
gofix: don't rewrite O_APPEND opens
04:29 < plexdev> http://is.gd/5IImv7 by [Rob Pike] in go/doc/ -- spec: add
parens missing from "protect" example.
04:29 < plexdev> http://is.gd/wPC7dF by [Peter Mundy] in go/src/cmd/gotest/
-- gotest: fixes for [^.]_test file pattern
04:29 < plexdev> http://is.gd/sCBxnG by [Adam Langley] in 2 subdirs of
go/src/pkg/ -- crypto/block: remove deprecated package.
04:29 < plexdev> http://is.gd/bo7UYf by [Adam Langley] in 2 subdirs of
go/src/pkg/ -- crypto/des: cleanups
04:29 < plexdev> http://is.gd/cM6QtA by [Rob Pike] in go/src/cmd/gotest/ --
gotest: fix a bug in error handling.
04:29 < plexdev> http://is.gd/kd7wLc by [Rob Pike] in go/doc/devel/ --
roadmap: add sections on tools, packages.
04:29 < plexdev> http://is.gd/RSNlUe by [Rob Pike] in go/src/cmd/gotest/ --
gotest: fix windows build.
04:29 < plexdev> http://is.gd/HiyUR6 by [Russ Cox] in go/ -- A+C: Dmitry
Chestnykh (individual CLA)
04:29 < plexdev> http://is.gd/epHNQE by [Dmitry Chestnykh] in 2 subdirs of
go/src/pkg/crypto/ -- crypto/ecdsa, crypto/rsa: use io.ReadFull to read from
random source.
04:30 < plexdev> http://is.gd/ziNdWt by [Adam Langley] in 2 subdirs of
go/src/pkg/crypto/ -- crypto/rsa: add support for precomputing CRT values.
04:30 < plexdev> http://is.gd/vIGS1C by [Andrew Gerrand] in go/src/pkg/http/
-- http: allow override of Content-Type for ServeFile
04:30 < plexdev> http://is.gd/lZuUWU by [Alex Brainman] in go/src/pkg/ --
pkg/path: enable tests on Windows
04:30 < zozoR> multi kill!
04:30 < plexdev> http://is.gd/eKT8jl by [Adam Langley] in
go/src/pkg/crypto/rsa/ -- crypto/rsa: flip the CRT code over so that it matches
04:30 < plexdev> http://is.gd/TTWVO5 by [Adam Langley] in
go/src/pkg/crypto/rsa/ -- crypto/rsa: add 3-prime support.
04:30 < plexdev> http://is.gd/nm1Zyo by [Rob Pike] in go/src/pkg/log/ --
log: generalize getting and setting flags and prefix.
04:30 < plexdev> http://is.gd/vc0Q0p by [Russ Cox] in 2 subdirs of go/src/
-- src/pkg/Makefile: trim per-directory make output except on failure
04:30 < plexdev> http://is.gd/RKexYZ by [Russ Cox] in go/src/pkg/ -- fix
build (sorry)
04:30 < plexdev> http://is.gd/lL6Tkq by [Rob Pike] in go/src/pkg/exec/ --
exec: add a little package commentary explaining its
04:30 < plexdev> http://is.gd/Xp3qM7 by [Russ Cox] in 2 subdirs of
go/src/pkg/ -- os, syscall: refactor Unix directory parsing
04:30 < plexdev> http://is.gd/pCFjly by [Albert Strasheim] in
go/src/pkg/syscall/ -- syscall: Add DT_* and MADV_* constants on Linux.
04:30 < plexdev> http://is.gd/0H3GvF by [Russ Cox] in 2 subdirs of go/ --
syscall: add Mmap, Munmap on Linux, FreeBSD, OS X
04:30 < plexdev> http://is.gd/URvvb4 by [Russ Cox] in go/lib/codereview/ --
codereview: recognize code URL without trailing slash
04:31 < plexdev> http://is.gd/6zT1lP by [Dave Cheney] in go/src/pkg/syscall/
-- syscall: fix typo in mmap comment
04:31 < plexdev> http://is.gd/e5fPeU by [Russ Cox] in go/lib/codereview/ --
codereview: drop Author: line on self-clpatch
04:31 < plexdev> http://is.gd/Y0ugNK by [Russ Cox] in go/lib/codereview/ --
codereview: fix clpatch
04:31 < plexdev> http://is.gd/LqOd6J by [Mikkel Krautz] in go/src/cmd/ld/ --
ld: fix Mach-O bss bug
04:31 < plexdev> http://is.gd/uzuCbi by [Mikkel Krautz] in go/src/cmd/ld/ --
ld: fix Mach-O X86_64_RELOC_SIGNED relocations
04:31 < plexdev> http://is.gd/ym8aUR by [Mikio Hara] in go/src/pkg/syscall/
-- syscall: fix build
04:31 < plexdev> http://is.gd/s07GZf by [Russ Cox] in go/src/pkg/syscall/ --
syscall: freebsd/386 Syscall9 (fix build)
04:31 < plexdev> http://is.gd/BHwhtk by [Russ Cox] in go/src/pkg/syscall/ --
syscall: fix freebsd/386 again
04:31 < plexdev> http://is.gd/vUkxva by [Russ Cox] in 2 subdirs of go/ --
gc: bug327
04:31 < plexdev> http://is.gd/nQ9ixv by [Alex Brainman] in
go/src/pkg/syscall/ -- syscall: fix Windows Signalled
04:31 < plexdev> http://is.gd/Mzhye2 by [Alex Brainman] in go/src/ --
misc/cgo/life: enable build and test on Windows
04:31 < plexdev> http://is.gd/GQJNXr by [Alex Brainman] in 2 subdirs of go/
-- test/bench: enable build and test on Windows
04:31 < plexdev> http://is.gd/pvT3XY by [John DeNero] in go/doc/codewalk/ --
A codewalk through a simple program that illustrates several aspects of Go
functions: function objects, higher-order functions, variadic functions, tail
recursion, etc.  The example program simulates the game of Pig, a dice game with
simple rules but a nontrivial solution.
04:31 < plexdev> http://is.gd/MVi8DL by [Robert Griesemer] in
go/src/pkg/scanner/ -- scanner: better TokenString output
04:31 < plexdev> http://is.gd/z6Dm60 by [Robert Griesemer] in 4 subdirs of
go/src/pkg/ -- go/types: New Go type hierarchy implementation for AST.
04:32 < plexdev> http://is.gd/BtmSbc by [Robert Griesemer] in
go/src/cmd/gotype/ -- gotype: use go/types GcImporter
04:32 < plexdev> http://is.gd/ZZm427 by [Robert Griesemer] in
go/src/pkg/go/types/ -- go/types: fix build: use the right compiler to compile
test case
04:32 < plexdev> http://is.gd/BfZaP7 by [Alex Brainman] in
go/src/cmd/gotest/ -- gotest: handle \r\n returned by gomake on Windows (fixes
04:32 < plexdev> http://is.gd/TbchY8 by [Russ Cox] in go/src/cmd/gofix/ --
gofix: be more conservative about rewrite to os.Create
04:32 < plexdev> http://is.gd/OghlZ5 by [Russ Cox] in go/src/pkg/reflect/ --
reflect: new Type and Value definitions
04:32 < plexdev> http://is.gd/bQhk44 by [Russ Cox] in go/src/cmd/gofix/ --
gofix: add -diff, various fixes and helpers
04:32 < plexdev> http://is.gd/8UMSRz by [Russ Cox] in 2 subdirs of
go/src/cmd/gofix/ -- gofix: reflect changes
04:32 < plexdev> http://is.gd/Cc4tcl by [Russ Cox] in 22 subdirs of go/ --
update go tree for reflect changes
04:32 < plexdev> http://is.gd/1CgeRR by [Rob Pike] in go/src/cmd/gotest/ --
gotest: Fix fix for \r\n on windows.
04:32 < plexdev> http://is.gd/DQV6b4 by [Russ Cox] in go/lib/codereview/ --
codereview: automatically port old diffs forward
04:32 < plexdev> http://is.gd/Ff5XZh by [Russ Cox] in go/src/pkg/http/ --
http: do not listen on during test
04:32 < plexdev> http://is.gd/Vvrwcs by [Russ Cox] in go/src/cmd/ld/ -- ld:
fix arm build
04:32 < plexdev> http://is.gd/Fcjqx4 by [Russ Cox] in go/test/fixedbugs/ --
bug327: document what's being tested
04:32 < plexdev> http://is.gd/zyOnC6 by [Robert Hencke] in go/src/pkg/io/ --
io: fixes for Read with n > 0, os.EOF
04:33 < plexdev> http://is.gd/WvHIPV by [Russ Cox] in go/src/cmd/gc/ -- gc:
fix weird error message
04:33 < plexdev> http://is.gd/mX6v8b by [Russ Cox] in go/src/cmd/8g/ -- 8g:
optimize byte mov
04:33 < plexdev> http://is.gd/GZjAwQ by [Adam Langley] in go/src/pkg/big/ --
big: don't crash when printing nil ints
04:33 < plexdev> http://is.gd/7JIF57 by [Robert Griesemer] in 2 subdirs of
go/src/pkg/go/printer/ -- go/printer, gofmt: use blank to separate import rename
from import path
04:33 < plexdev> http://is.gd/JfXgvO by [Russ Cox] in 8 subdirs of
go/src/cmd/ -- ld: 25% faster
04:33 < plexdev> http://is.gd/WR36tM by [Dmitry Chestnykh] in
go/src/pkg/archive/zip/ -- archive/zip: add new type ReadCloser, make OpenReader
return it.
04:33 < plexdev> http://is.gd/UXaiuD by [David Symonds] in
go/misc/vim/syntax/ -- misc/vim: update type highlighting for new reflect package
04:33 < plexdev> http://is.gd/b97tMb by [Dave Cheney] in go/src/pkg/net/ --
net: disable multicast tests by default.
04:33 < plexdev> http://is.gd/P8Z1PD by [Russ Cox] in go/ -- A+C: Luit van
Drongelen (individual CLA)
04:33 < plexdev> http://is.gd/RxuMUP by [Luit van Drongelen] in
go/src/pkg/asn1/ -- asn1: Implement correct marshalling of length octets
04:33 < plexdev> http://is.gd/ZOTw6L by [Mikkel Krautz] in
go/src/pkg/crypto/x509/ -- crypto/x509: expose complete DER data
04:33 < plexdev> http://is.gd/fjpOYl by [Fazlul Shahriar] in
go/src/pkg/syscall/ -- syscall: fix StartProcess in Plan 9
04:33 < plexdev> http://is.gd/Dkm6N7 by [Robert Hencke] in go/src/pkg/http/
-- http: fix incorrect prints found by govet
04:33 < plexdev> http://is.gd/AscBO9 by [Luuk van Dijk] in go/src/cmd/ld/ --
ld: fix dwarf decoding of strings for struct's fieldnames
04:34 < plexdev> http://is.gd/RUBtyv by [Nigel Tao] in go/src/pkg/net/ --
net: fix laddr typo in test code.
04:34 < plexdev> http://is.gd/qxNGlE by [Nigel Tao] in 2 subdirs of
go/src/pkg/ -- image/ycbcr: new package.
04:34 < plexdev> http://is.gd/UeZ48q by [Gustavo Niemeyer] in
go/src/pkg/crypto/openpgp/armor/ -- openpgp: Fix improper := shadowing
04:34 < plexdev> http://is.gd/hnnwtj by [Brad Fitzpatrick] in
go/src/pkg/http/ -- http: client gzip support
04:34 < plexdev> http://is.gd/Ito9UB by [Rob Pike] in go/ -- C+A: Add Lucio
De Re
04:34 < plexdev> http://is.gd/7TXFe0 by [Lucio De Re] in go/src/cmd/ld/ --
ld: ELF header function declarations.
04:34 < plexdev> http://is.gd/RpGvSm by [Rob Pike] in go/src/pkg/fmt/ --
fmt: allow %U for unsigned integers.
04:34 < plexdev> http://is.gd/ICfuu8 by [Lucio De Re] in go/src/cmd/8l/ --
8l: correct Plan 9 compiler warnings
04:34 < plexdev> http://is.gd/KOJoi3 by [Fazlul Shahriar] in go/src/pkg/os/
-- os: fix Readdir in Plan 9
04:34 < plexdev> http://is.gd/SjWXfi by [Gustavo Niemeyer] in
go/misc/dashboard/godashboard/ -- godashboard: Show packages at launchpad.net
04:34 < plexdev> http://is.gd/H5DWlF by [David Symonds] in
go/src/pkg/archive/tar/ -- archive/tar: fix example's handling of os.EOF.
04:34 < plexdev> http://is.gd/4j2Kgm by [Dmitry Chestnykh] in
go/misc/vim/ftplugin/go/ -- misc/vim: add plugin with Fmt command.
04:34 < plexdev> http://is.gd/wU9cy1 by [Andrew Gerrand] in
go/misc/dashboard/builder/ -- builder: fix documentation
04:34 < plexdev> http://is.gd/6YDFwY by [Robert Griesemer] in
go/src/pkg/go/ast/ -- go/ast: fixed bug in NotNilFilter, added test
04:35 < plexdev> http://is.gd/JzciVE by [Robert Griesemer] in
go/src/cmd/gofmt/ -- gofmt: avoid endless loops
04:35 < plexdev> http://is.gd/VkUgiq by [Brad Fitzpatrick] in go/src/pkg/io/
-- io: clarify that ReadAt shouldn't move the seek offset
04:35 < plexdev> http://is.gd/bHqlrN by [Adam Langley] in 3 subdirs of
go/src/pkg/ -- bufio: add ReadLine
04:35 < plexdev> http://is.gd/LzYEz0 by [Russ Cox] in go/src/pkg/os/inotify/
-- os/inotify: use _test for test files, not _obj
04:35 < plexdev> http://is.gd/MSxn9z by [Russ Cox] in 4 subdirs of go/src/
-- build: use gcc -Werror
04:35 < plexdev> http://is.gd/gJMqOF by [Russ Cox] in 3 subdirs of go/ --
build: tidy intermediate files during build
04:35 < plexdev> http://is.gd/OiBzDh by [Russ Cox] in go/src/libmach/ --
libmach: fix freebsd compiler errors
04:35 < plexdev> http://is.gd/tALb3s by [Rob Pike] in go/src/cmd/gofix/ --
gofix: fix embarrassing typo in osopen.go
04:35 < plexdev> http://is.gd/5JdiFb by [Russ Cox] in go/src/pkg/reflect/ --
reflect: inline method implementations
04:35 < plexdev> http://is.gd/YOjnYm by [Robert Griesemer] in
go/src/cmd/gofmt/ -- gofmt: minor refactor to permit easy testing
04:35 < plexdev> http://is.gd/HorB82 by [Robert Griesemer] in 2 subdirs of
go/src/cmd/gofmt/ -- gofmt: add test framework in Go
04:35 < plexdev> http://is.gd/xseX59 by [Brad Fitzpatrick] in
go/src/pkg/http/ -- http: flesh out server Expect handling + tests
04:35 < plexdev> http://is.gd/JL8phD by [Robert Griesemer] in 3 subdirs of
go/src/ -- fix build: disable gofmt test script, enable gotest testing instead
04:35 < plexdev> http://is.gd/XGJCpE by [Rob Pike] in go/src/libmach/ --
libmach: fix the windows build.
04:36 < plexdev> http://is.gd/yWecqG by [Robert Griesemer] in 8 subdirs of
go/src/ -- gofmt: gofmt -s -w src misc
04:36 < plexdev> http://is.gd/RmeyE1 by [Nigel Tao] in go/src/pkg/image/ --
image: allow "?" wildcards when registering image formats.
04:36 < plexdev> http://is.gd/0cRzSA by [Rob Pike] in 3 subdirs of
go/src/cmd/ -- govet: make name-matching for printf etc.  case-insensitive.
04:36 < plexdev> http://is.gd/PGcbty by [Andrew Gerrand] in go/doc/ --
doc/install.html: document use of libc6-dev-i386
04:36 < plexdev> http://is.gd/m9lYOF by [Corey Thomasson] in go/src/pkg/net/
-- net: sort records returned by LookupMX
04:36 < plexdev> http://is.gd/zNmqtj by [Russ Cox] in 2 subdirs of go/ --
gc: fix func syntax error
04:36 < plexdev> http://is.gd/Ebxjiy by [Russ Cox] in 5 subdirs of
go/src/pkg/ -- pkg: manual cleanup of some gofixed code
04:36 < plexdev> http://is.gd/LD7gne by [Russ Cox] in 3 subdirs of go/ --
runtime: drop chan circular linked list in favor of circular buffer
04:36 < plexdev> http://is.gd/oJlQcQ by [Andrew Gerrand] in 2 subdirs of go/
-- weekly.2011-04-13
04:36 -!- waqas [~waqas@jaim.at] has joined #go-nuts
04:38 < kevlar> dang, are r, rsc, gri, and adg having a party or something?
04:38 * venk thought it was a torrential rain in this channel...
04:38 < kevlar> or are these the changes for I/O?
04:39 < dfc> this happens whenever the weekly or release tag is updated
04:39 < kevlar> oic
04:39 < dfc> it probably shouldn't happen
04:39 < dfc> who runs that bot ?
04:40 < kevlar> gasp, it doesn't respond to VERSION
04:40 < kevlar> bad bot form.
04:40 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 276 seconds]
04:40 < kevlar> that's like, rule #2 for IRC bots, lol.
04:40 < kevlar> (#1 is don't piss off the opers)
04:46 -!- Project_2501 [~Marvin@] has joined #go-nuts
04:49 < zozoR> is it all the commits since last update?
04:55 -!- tteras_ [~fabled@] has joined #go-nuts
04:58 -!- fabled [~fabled@] has quit [Ping timeout: 246 seconds]
05:00 -!- zozoR [~Morten@56344b27.rev.stofanet.dk] has quit [Remote host closed
the connection]
05:01 -!- Glasswlkr
[~Glasswalk@CPE002369b3cd1a-CM00222d53f155.cpe.net.cable.rogers.com] has joined
05:01 -!- kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has quit [Read
error: Operation timed out]
05:01 <@adg> tav: fix your bot!
05:02 -!- Glasswalker
[~Glasswalk@CPE002369b3cd1a-CM00222d53f155.cpe.net.cable.rogers.com] has quit
[Ping timeout: 260 seconds]
05:03 -!- ExtraSpice [XtraSpice@] has joined #go-nuts
05:03 -!- kanru [~kanru@kanru-1-pt.tunnel.tserv15.lax1.ipv6.he.net] has joined
05:09 -!- firwen [~firwen@gex01-1-78-234-55-225.fbx.proxad.net] has joined
05:10 -!- edsrzf [~chickench@122-61-221-144.jetstream.xtra.co.nz] has joined
05:15 -!- hopso [576c168c@gateway/web/freenode/ip.] has joined
05:18 -!- saturnfive1 [~saturnfiv@] has joined #go-nuts
05:18 -!- saturnfive [~saturnfiv@] has quit [Ping timeout: 252
05:21 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has joined
05:32 -!- creack [~charme_g@] has joined #go-nuts
05:34 -!- krolaw [~krolaw@] has joined #go-nuts
05:34 -!- benjack [~benjack@bb220-255-241-76.singnet.com.sg] has joined #go-nuts
05:41 -!- cafesofie [~cafesofie@ool-4a5a6ee5.dyn.optonline.net] has quit [Remote
host closed the connection]
05:45 -!- Project-2501 [~Marvin@] has joined #go-nuts
05:48 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
05:49 -!- Project_2501 [~Marvin@] has quit [Ping timeout: 276 seconds]
05:49 -!- cenuij [~cenuij@] has joined #go-nuts
05:49 -!- cenuij [~cenuij@] has quit [Changing host]
05:49 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
05:56 -!- waqas [~waqas@jaim.at] has left #go-nuts []
05:58 -!- sebastian [~sebastian@] has joined #go-nuts
06:03 -!- firwen [~firwen@gex01-1-78-234-55-225.fbx.proxad.net] has quit [Remote
host closed the connection]
06:05 -!- Project-2501 [~Marvin@] has quit [Read error: Connection
reset by peer]
06:09 < tav> adg: hmz
06:11 < plexdev> http://is.gd/geiSDu by [Rob Pike] in go/src/lib9/ --
lib9/create.c: delete unused variable
06:12 < tav> i guess this happens on every weekly tag release ?
06:19 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has quit
[Quit: JusticeFries]
06:19 -!- plexdev [~plexdev@arthur.espians.com] has quit [Remote host closed the
06:20 <@adg> tav: seems to be, yeah
06:21 -!- plexdev [~plexdev@arthur.espians.com] has joined #go-nuts
06:21 -!- sebastian [~sebastian@] has quit [Quit: Lost terminal]
06:22 -!- plexdev [~plexdev@arthur.espians.com] has quit [Remote host closed the
06:23 -!- plexdev [~plexdev@arthur.espians.com] has joined #go-nuts
06:23 < tav> adg: alright, i've made some changes to the bot that should
hopefully detect pre-existing commits
06:23 <@adg> well it got that last one fine
06:24 < tav> it's the weekly tagging that causes the problem
06:25 <@adg> strange.  why should it be different to the old 'release' tag?
06:25 < tav> sadly i don't control what github sends, so can't test — but
hopefully, the bot will only announce distinctly new commits
06:26 < tav> adg: no idea =(
06:27 < tav> i'd have expected the same issue to have existed before
06:27 < tav> but sadly haven't been paying attention enough to tell
06:27 <@adg> i've only noticed it since the weeklies
06:28 < tav> hmz
06:29 < tav> btw, someone should flag up the O_CREAT -> O_CREATE change
06:35 -!- sebastian [~sebastian@] has joined #go-nuts
06:35 <@adg> hmm?  what change?
06:36 <@adg> O_CREAT == O_CREATE
06:37 -!- saturnfive1 [~saturnfiv@] has quit [Ping timeout: 276
06:37 -!- randfur [~androirc@] has joined #go-nuts
06:41 < tav> adg: not any more
06:41 < tav> os.O_CREAT got deprecated with the new Open API changes
06:42 < tav> it's now os.O_CREATE
06:42 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
06:43 <@adg> hah, cool.  didn't notice that
06:43 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts
06:44 <@adg> yeah i should mention it
06:45 < tav> cheers
06:46 -!- saturnfive [~saturnfiv@] has joined #go-nuts
06:49 -!- joelkronander [~joelkrona@] has joined #go-nuts
06:51 -!- hopso [576c168c@gateway/web/freenode/ip.] has quit [Ping
timeout: 252 seconds]
06:53 -!- saturnfive [~saturnfiv@] has quit [Read error: Connection
reset by peer]
06:54 -!- saturnfive [~saturnfiv@] has joined #go-nuts
06:55 -!- rlab [~Miranda@] has joined #go-nuts
06:58 -!- piranha [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
06:58 -!- randfur [~androirc@] has quit [Quit: AndroIRC]
07:01 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
07:03 -!- m4dh4tt3r1 [~Adium@58.sub-75-208-29.myvzw.com] has quit [Ping timeout:
264 seconds]
07:04 -!- crodjer [~rohanjain@] has joined #go-nuts
07:05 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
07:10 -!- piranha [~piranha@D57D1AB3.static.ziggozakelijk.nl] has joined #go-nuts
07:20 -!- crodjer [~rohanjain@] has quit [Remote host closed the
07:24 < dfc> adg: do you know what atom symbol is referring to when he says
patches to .c files aren't being accepted ?
07:26 <@adg> he refuses to sign the CLA, which is required of all go
07:26 < dfc> ahh right
07:26 -!- rlab [~Miranda@] has quit [Read error: Connection reset by
07:27 < dfc> i kinda thought that would be the reason
07:30 < dfc> following Russ' lead i've got a CL brewing to remove more
07:30 < dfc> i'm not sure what the history of it is, but i'd like to remove
quitegcc completely
07:32 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 246 seconds]
07:34 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:38 -!- crodjer [~rohanjain@] has joined #go-nuts
07:44 < nsf> gofix rocks
07:46 -!- dave [~dfc@eth59-167-133-99.static.internode.on.net] has joined #go-nuts
07:46 -!- Guest17916 [~dfc@eth59-167-133-99.static.internode.on.net] has quit
[Read error: Connection reset by peer]
07:49 -!- crodjer [~rohanjain@] has quit [Remote host closed the
07:50 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has quit [Ping
timeout: 246 seconds]
07:50 -!- crodjer [~rohanjain@] has joined #go-nuts
07:54 -!- Glasswlkr
[~Glasswalk@CPE002369b3cd1a-CM00222d53f155.cpe.net.cable.rogers.com] has quit []
07:59 -!- aho [~nya@fuld-590c63c0.pool.mediaWays.net] has joined #go-nuts
08:00 < kevlar> I feel like I've seen this in the doc but can't remember.
If I have two goroutines blocking on the same unbuffered channel, is the receiver
guaranteed to receive in the same order as the sends were attempted?
08:02 < kevlar> having looked at the code at one point or another, I think
that's the way it works in the gc runtime (not sure about gccgo), but I don't want
to depend on the feature unless it's documented.  Of course, I could remember
wrong too.
08:03 -!- ww [~ww@river.styx.org] has quit [Read error: Connection reset by peer]
08:04 -!- arvindht_ [c2ed8e11@gateway/web/freenode/ip.] has joined
08:06 -!- rbraley_ [~rbraley@] has joined #go-nuts
08:09 -!- rbraley [~rbraley@] has quit [Ping timeout: 260 seconds]
08:12 -!- virtualsue [~chatzilla@nat/cisco/x-nlwtvgdcrwefhmwx] has joined #go-nuts
08:22 -!- benjack [~benjack@bb220-255-241-76.singnet.com.sg] has quit [Quit:
08:22 -!- hopso [~hopso@] has joined #go-nuts
08:23 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
08:23 -!- crodjer [~rohanjain@] has quit [Quit: Leaving]
08:30 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
08:37 -!- xyproto1 [~alexander@] has quit [Quit: WeeChat 0.3.4]
08:37 -!- itrekkie [~itrekkie@ip72-200-105-157.tc.ph.cox.net] has quit [Quit:
08:43 -!- xyproto [~alexander@] has joined #go-nuts
08:51 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has joined #go-nuts
08:51 < fmoo> anyone have any idea what weekly i should be using of go in
order to use gomake?
09:02 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts
09:09 -!- wrtp [~rog@] has joined #go-nuts
09:11 -!- B0rder [~B0rder@] has quit [Quit: 离开]
09:15 -!- snearch [~snearch@f053009203.adsl.alicedsl.de] has joined #go-nuts
09:17 < xyproto> fmoo: which mercurial revision?
09:17 -!- benjack [~benjack@bb220-255-241-76.singnet.com.sg] has joined #go-nuts
09:18 < fmoo> fmoo: I've tried tip and release of go
09:18 < fmoo> errm xyproto ^^
09:19 < xyproto> fmoo: as I understand, gomake is currently in a state of
flux, and is trying to take the position as the one and only "make"
09:19 < fmoo> xyproto: hrm, well the current state of flux doesn't compile
on tip or release without a bunch of changes :/
09:20 < xyproto> fmoo: so, if it's hard to get to work, it's probably
because it's currently under heavy development
09:20 < xyproto> fmoo: I would have to check the hg logs to be sure, though
09:20 < xyproto> fmoo: yeah.  I use regular make, for now.  There are also
alternative build-systems that should work fine (but, eventually, will be replaced
by gomake, as I understand)
09:20 < fmoo> xyproto: aye; I believe it.  I was hoping someone knew of a
magic revision of go I could roll against and the world would be all unicorns and
09:21 < xyproto> fmoo: I see.  We all long for unicorns and butterflies.
09:21 < fmoo> i was trying to check out doozer, which builds using gomake
09:21 < xyproto> fmoo: If you have a way to test it, I can see if it works
here.  If it does, I can give you my revision number.
09:21 -!- aconran_ [~aconran-o@] has quit [Ping timeout: 252
09:22 < xyproto> fmoo: check out and compile doozer?
09:22 < fmoo> xyproto: yes, what revision of go are you using?
09:22 -!- aconran [~aconran-o@] has joined #go-nuts
09:23 < xyproto> fmoo: currently, 8042
09:23 < mpl> fmoo: ponies.  unicorns, butterflies, and ponies.  never forget
the ponies.
09:23 < fmoo> xyproto: actually, I have no way to test; i was just hoping to
build it :)
09:23 < xyproto> fmoo: I'll try building it myself.  I read about doozer
this morning, and it sounds interesting.
09:24 < xyproto> mpl: Truer words have seldom been said.  Never forget the
09:24 < xyproto> And rainbows.  Especially double rainbows.
09:25 < str1ngs> I need to check of a string is a int or not.  actually byte
would be better.  is there a easier way then using strconv?
09:26 < xyproto> str1ngs: can the string representation of the byte be in
hex, or is it always decimal?  (max 3 characters)
09:26 < fmoo> bah, gomake just hates me
09:27 < str1ngs> xyproto: its aways one char
09:27 < str1ngs> xyproto: if _,err := strconv.Atof32(string(b)); err == nil
09:27 < str1ngs> is what I'm using now
09:28 < xyproto> str1ngs: and b is a byte, of course?
09:28 < str1ngs> yes
09:28 < str1ngs> I'm not use to using bytes but I'm trying to get in the
habit :P
09:29 < edsrzf> if '0' < b && b < '9' {
09:29 < str1ngs> ah thats what I was think
09:29 < xyproto> fmoo: I got "undefined: reflect.StructType" and also
reflect.PtrType.  I guess my version of go is too old or too new.  (I ran all.sh)
09:29 < str1ngs> edsrzf: let me try that thank you
09:30 < edsrzf> xyproto: too new, I think
09:30 < xyproto> fmoo: did you git clone doozer from here?
09:30 < xyproto> fmoo: ah, one way would be to check the date of the latest
checkin of a go-related file in doozer, then find the date of the corresponding
revision for go (or a short period of time before that) :)
09:31 < fmoo> xyproto: i'm cloning from https://github.com/ha/doozer, but I
don't have gomake installed, so I can't even start trying to compile it?
09:31 < xyproto> fmoo: February 05, 2011
09:32 < str1ngs> edsrzf: hmm so '' will do a char conversion?  this works
09:32 < xyproto> fmoo: how about this mercurial tag for go?
09:32 < xyproto> fmoo: bet that revision works :)
09:32 < edsrzf> str1ngs: not sure what you mean
09:33 < edsrzf> '0' and '9' are numeric literals
09:33 < str1ngs> edsrzf: ie '0' < 9 will do a char comparison
09:33 < xyproto> str1ngs: the edsrzf method seems sane to me
09:33 < str1ngs> xyproto: it is.  just trying to understand it better
09:34 < xyproto> str1ngs: '0' (as opposed to "0"), is a number
09:34 < xyproto> str1ngs: so is 'a' (as opposed to "a")
09:34 < str1ngs> ahs soe it converts it to a int
09:34 < edsrzf> '0' < 9 is comparing the Unicode code point '0', which
happens to be 48, to the number 9.
09:35 -!- mikespook [~mikespook@] has quit [Quit: Leaving.]
09:35 < hopso> b - '0' would result the actual value of the character,
09:35 < edsrzf> Yes
09:36 < str1ngs> ok thanks you for your patients this make more sense.
enough I can play and understand it more
09:36 < edsrzf> Oh, just realized I made a mistake above, though
09:36 < edsrzf> Should've been if '0' <= b && b <= '9' {
09:37 < edsrzf> Otherwise 0 and 9 wouldn't be considered numbers.  :)
09:37 < str1ngs> hehe
09:37 < hopso> I love all the small mistakes in quickly written example
09:38 < str1ngs> I'll test that ot
09:38 < str1ngs> to*
09:38 < str1ngs> I dont expect examples to be perfect.  this is way better
then what I was using before :P
09:38 < edsrzf> What, you want me to compile it and write unit tests before
I send it?  ;)
09:38 < str1ngs> hehe
09:40 < hopso> The small mistakes force the person to read and understand
the code.  :D
09:40 -!- wrtp [~rog@] has quit [Quit: wrtp]
09:40 -!- aho [~nya@fuld-590c63c0.pool.mediaWays.net] has quit [Quit:
09:42 -!- wrtp [~rog@] has joined #go-nuts
09:43 < str1ngs> now I'm getting greedy and trying to work it into my switch
that removes ( ' > = lol
09:44 < xyproto> str1ngs: I created two tiny functions.  I'm sure they can
be improved upon: http://go.pastie.org/1794486
09:44 < str1ngs> parsing bash is fun
09:46 < str1ngs> xyproto: this is for my aur helper btw its being used to
parse the PKGBUILD and get the depends
09:48 < hopso> What kind of web apps are suitable for Go?
09:48 < str1ngs> server apps?
09:48 < str1ngs> either way client and server http are pretty easy to create
in go.  from what I have used
09:49 < str1ngs> http package has everything you need.
09:49 < hopso> I've noticed that too.  I just have to wrap my head around
09:50 < str1ngs> there are other implimentions of templates.  but so far I
find I learn more if I use the stdlib
09:50 < hopso> I like the parts of stdlib I've used so far.
09:51 < hopso> bytes, strings, net, http, log, os and io for example.
09:51 < xyproto> hopso: judging from the design of the language, I would say
it's suitable for large apps, without having exponential compilation times, while
having some built-in strictness to make it possible to separate various parts of
the code
09:51 < edsrzf> The template package is kinda strange IMO.
09:51 < hopso> I got really annoyed when I had hard time changing the
09:51 < edsrzf> I'd go for something like mustache.go, although it looks
like it hasn't been updated in a while.  Might need a few changes.
09:52 < hopso> JavaScript in the template = confusion
09:53 -!- bse [~bob@95-88-48-166-dynip.superkabel.de] has joined #go-nuts
09:54 < bse> hi, i just started out with go.  i was wondering: how can i
marshal an array of strings, without marshaling every string on its own?  like,
var bla []string
09:54 -!- benjack [~benjack@bb220-255-241-76.singnet.com.sg] has quit [Quit:
09:54 < edsrzf> What exactly do you mean when you say marshal?
09:55 < bse> have a byte array to store the contents, and later be able to
unmarshal it back to an array of strings
09:55 < str1ngs> bse: json might be the easiest
09:57 < edsrzf> gob is also an option
09:57 < str1ngs> yep really depends on what you need to marshal to
09:57 < str1ngs> ie network or disk w/e
09:58 < bse> i want to save it to kyoto db
09:58 < bse> what would you recommend for that purpose?
10:00 < str1ngs> there is a kyoto package
10:00 < str1ngs> https://bitbucket.org/ww/cabinet/src
10:00 -!- shvntr [~shvntr@] has joined #go-nuts
10:00 < bse> thanks.
10:05 -!- katakuna [~pie@kjal.demon.co.uk] has joined #go-nuts
10:06 -!- snearch [~snearch@f053009203.adsl.alicedsl.de] has quit [Quit:
10:14 < hopso> Is there a page on Google Code that shows all my code
10:14 -!- wrtp [~rog@] has quit [Quit: wrtp]
10:14 < kevlar> should it be possible to have a string that panics when I
try to print it?
10:25 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
10:30 < edsrzf> kevlar: no, I don't think that's possible.  There must be
more to the story.
10:30 -!- saturnfive [~saturnfiv@] has quit [Read error: Connection
reset by peer]
10:30 -!- crodjer [~rohanjain@] has joined #go-nuts
10:32 -!- cenuij [~cenuij@] has joined #go-nuts
10:32 -!- cenuij [~cenuij@] has quit [Changing host]
10:32 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
10:35 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
10:37 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
10:38 < fmoo> awesome, got it all figured out
10:38 < fmoo> thanks xyproto
10:40 < xyproto> fmoo: yey :)
10:46 -!- edsrzf [~chickench@122-61-221-144.jetstream.xtra.co.nz] has quit [Remote
host closed the connection]
10:51 < nsf> half of gocode issues on github are: "I have a wrong version of
the go compiler, why Go fails to compile gocode"
10:51 < nsf> :(
10:52 < nsf> am I doing something wrong?
10:57 -!- niemeyer [~niemeyer@189-10-155-52.pltce701.dsl.brasiltelecom.net.br] has
joined #go-nuts
11:00 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
11:01 < str1ngs> not if your master branch matches hg top
11:01 < str1ngs> tip*
11:01 < str1ngs> actually I would have your master branch match hg release
11:01 < nsf> it doesn't matter
11:01 < nsf> I see complains in both direction
11:01 < str1ngs> I know what you are saying
11:01 < nsf> some use tip when they shouldn't
11:01 < nsf> some use older version
11:02 < str1ngs> yep
11:02 < nsf> versions*
11:02 < str1ngs> so something like master = release and weekly = weekly
11:02 < nsf> I guess people just don't know how to use mercurial
11:02 < nsf> str1ngs: if people can't get the right version of the compiler
11:02 < nsf> imagine how much confusion there will be
11:03 < nsf> if getting the right version of gocode will be as complicated
11:03 < str1ngs> thats why I would make a stand release
11:03 < str1ngs> and weekly.  make sure those those match and have them use
one or the other
11:03 < str1ngs> or.....
11:03 < nsf> I use tags now: compatible-with-go-weekly.2011-04-13
11:04 < nsf> if you see such tag in "git log --decorate"
11:04 < str1ngs> have tav's go as a submodule
11:04 < nsf> everything starting from that tag is compatible with that
11:04 < nsf> but that's not the problem
11:04 < nsf> my problem is that people are lazy bastards
11:04 < str1ngs> well thats there fault :P
11:04 < nsf> it easier to open an issue than to figure out all by themselves
11:05 < str1ngs> maybe create a README or FAQ
11:05 < nsf> I have README
11:05 < str1ngs> I know you have a README but do you have instructions on
matching to go?
11:05 < nsf> in the end, yes
11:05 < nsf> maybe it's bad or maybe I should change a place for it
11:06 < str1ngs> I know part of the problem is I know git better then hg.
but what I do is just use tav's mirror
11:06 -!- saturnfive [~saturnfiv@] has joined #go-nuts
11:06 < nsf> I don't know hg at all
11:06 < nsf> but I've managed to learn two commands
11:06 < nsf> hg pull
11:06 < nsf> hg update -r weekly
11:06 < nsf> :)
11:06 < str1ngs> I agree lazy
11:06 -!- vpit3833 [~user@CPE-58-160-37-24.phzl1.ken.bigpond.net.au] has joined
11:07 < nsf> it actually possible to combine these
11:07 < nsf> afaik
11:07 < str1ngs> if would help I could start using gocode again and help
with issues
11:08 < nsf> str1ngs: no, it's not a big deal for me, just as a project
manager I'm interested in finding a way to solve that issue
11:08 < str1ngs> imo big dumb README
11:08 < str1ngs> only way
11:08 < nsf> could you take a look at my README, maybe I should tweak it
11:08 < str1ngs> put it first
11:08 < str1ngs> I will
11:08 < nsf> you mean Go version matching guidE?
11:08 < str1ngs> yes
11:08 < nsf> yeah, I guess I should do that
11:08 < str1ngs> make sure its first big disclaimer
11:09 < nsf> indeed :)
11:09 < nsf> I will
11:09 < str1ngs> inorder to use gocode you must be using go release or else!
11:09 < nsf> yeah
11:09 < str1ngs> target master = release . and then branch/tag weekly
11:09 < str1ngs> releaase is better less updating for you
11:09 < nsf> no, I have a simple tags system
11:10 < str1ngs> thats fine
11:10 < nsf> if you want to use a release version you'll have to use older
version of gocode
11:10 < nsf> I think I should just explain that properly in the right place
11:10 < nsf> giving commands like hg pull & hg update -r weekly as well
11:10 < str1ngs> the other option is use goinstall..  but that wont work you
have other stuff that needs to be done
11:10 < str1ngs> ah!
11:10 < nsf> doesn't work for Go
11:10 < nsf> for gocode I mean
11:10 < str1ngs> have gocode handle that othere stuff
11:11 < str1ngs> and just treat gocode as a cmd package
11:11 < nsf> btw, it's an interesting idea
11:11 < str1ngs> gocode setup
11:11 < str1ngs> does all the vim emacs work
11:11 < str1ngs> that ./Install.sh iirc does
11:11 < nsf> put a small shell scripts that checks Go version for
11:11 < nsf> :)
11:11 < str1ngs> thats an idea
11:12 < str1ngs> ideally goinstall is the best way since it does release
match already
11:12 < nsf> anyway, I'll start with small steps
11:12 < str1ngs> or weekly
11:12 < nsf> should update README first
11:12 < nsf> and see how it works
11:12 < str1ngs> ok when you are done I'll follow the README then give some
11:12 < nsf> thanks :)
11:14 < str1ngs> part of the proble is go is a moving target still.  not
that thats a bad thing just how it is
11:14 < str1ngs> gc is not so bad.  gcc-go is even harder to keep in sync
11:15 < nsf> yeah, but for me it's like an experiment in project management
as well
11:15 < nsf> like is it possible to do that (have a fast moving target and
still make users happy)
11:15 < str1ngs> only provided they do there part and keep go upto date.
which they should be doing anyways.
11:16 < str1ngs> what version of go do you run release?
11:16 < nsf> what do you mean, which version I use to develop gocode?
11:16 < str1ngs> when you code with go.  do you use release, weekly or tip?
11:16 < nsf> weekly
11:17 < str1ngs> seems thats what most people use.
11:17 < nsf> well, yeah
11:17 < str1ngs> so maybe make master = weekly.  not sure about gocode users
11:17 < nsf> because having two release "types" is not the best idea ever
11:17 < str1ngs> I'm not sure why they added weekly actually
11:18 < nsf> str1ngs: well my master is updates with weekly
11:18 < str1ngs> I'm sure they have there reasons
11:18 < nsf> but I also use tags to mark commits
11:18 < nsf> str1ngs: google pays money, they have to do something :D
11:18 < str1ngs> hehe
11:19 < str1ngs> well eventually release will be the defacto
11:19 < nsf> like in russia there is a saying: you give us the visibility of
paying, we give you the visibility of working
11:19 < str1ngs> but I kinda like how they dont mind breaking stuff to make
improvements . id os.Open
11:19 < nsf> :D
11:20 < str1ngs> hehe
11:20 < nsf> gofix helps a lot
11:20 < nsf> for example that reflect package change
11:20 -!- cenuij [~cenuij@] has joined #go-nuts
11:20 -!- cenuij [~cenuij@] has quit [Changing host]
11:20 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
11:20 < nsf> I was using it hardly in config part of the gocode
11:20 < nsf> gofix helped a lot
11:20 < str1ngs> yes I used for os.Open was great
11:21 < kimelto> what happened to Open()?
11:21 < nsf> it has changed semantics
11:22 < str1ngs> os.Open became a generic read only open.  and the old
os.Open changed to os.OpenFile
11:22 < nsf> and also there is a new Create
11:22 < str1ngs> which it great, lowers the boiler plate for things
11:22 < nsf> for write/truncate/create
11:22 -!- boscop [~boscop@g225225255.adsl.alicedsl.de] has quit [Ping timeout: 250
11:22 -!- boscop_ [~boscop@g225225255.adsl.alicedsl.de] has joined #go-nuts
11:22 < str1ngs> os.O_CREATE was a good change to
11:23 < nsf> but it was there before
11:23 < nsf> simply O_CREAT was removed
11:23 < kimelto> I kinda like it without the E :)
11:23 < nsf> as far as I understand
11:23 < str1ngs> yes but confused with O_CREAT
11:23 < str1ngs> O_CREAT is more syscall like isnt it?
11:24 < nsf> I don't understand why it's still there
11:24 < str1ngs> anyways one is better then two
11:24 < str1ngs> really hmm let me check
11:24 < nsf> it was in unix for so many years
11:24 < nsf> I mean it's easy to change it
11:24 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
11:24 < nsf> all you need to do is to search & replace all the source code
in the world
11:24 < nsf> :D
11:24 < nsf> it will take few months, a year maybe
11:25 < str1ngs> I want to hack godoc and add color
11:25 < str1ngs> for func etc
11:27 < str1ngs> nsf: I'm adding a gcc-go-snapshot to aur when its done.
should make useing gcc-go with release code easier
11:27 < str1ngs> atleast on arch
11:28 < nsf> is it in a source form?
11:28 < nsf> if it is, I won't use it
11:29 < str1ngs> I could make a repo if it helps
11:29 < nsf> it would be nice
11:29 < str1ngs> its only 22meg.  and can run along side existing gcc's
11:29 < nsf> because building gccgo is pain
11:29 < str1ngs> I just need to add a ld.config.d/ for it
11:30 < str1ngs> I'll use github as the repo lol
11:30 < nsf> uhm, but can't you add ld.so.conf.d config to a package?
11:30 < str1ngs> right I just need to add it.  and the package is done
11:31 < nsf> I would use a binary gccgo package, it would be really nice
11:31 < str1ngs> there is one in testing now.  but it doesnt use update go
11:31 < str1ngs> reason I made this
11:31 < str1ngs> invocation works with gccgo-4.7
11:32 < str1ngs> so it runs along side any existting gcc or gcc-go
11:32 < nsf> I see, nice
11:32 < nsf> yeah, having outdated gcc-go isn't really useful
11:32 < nsf> but it will be useful for me though
11:33 < str1ngs> yes but I'm sure other distro's do not even have gcc-go yet
11:33 < str1ngs> never mind one that ie remotely close to go release
11:33 < nsf> I use gccgo and gc mostly for extracting error messages :D
11:34 < nsf> since I'm busy with my compiler
11:34 < nsf> and some testing as well, hopefully I'll have my own testing
framework soon
11:35 -!- saturnfive [~saturnfiv@] has left #go-nuts []
11:35 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has left #go-nuts []
11:35 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has joined #go-nuts
11:35 < nsf> str1ngs: also the problem with gccgo
11:35 < nsf> is that it doesn't have all the bindings
11:36 < nsf> is cgo compatible with gccgo?
11:36 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Quit:
11:40 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has quit [Quit:
11:41 < str1ngs> C code as far as I know works different
11:41 < str1ngs> there is no C import.  it more C like
11:41 < str1ngs> you declare C functions then reuse then
11:41 < str1ngs> them*
11:42 < str1ngs> http://golang.org/doc/gccgo_install.html#Function_names
11:43 < str1ngs> is an example of calling C from gcc-go
11:43 < nsf> str1ngs: but cgo is a glue generator
11:44 < nsf> it is possible to make it work with gccgo
11:44 < str1ngs> as far as I know no.  but would be nice if it could
11:48 -!- boscop_ [~boscop@g225225255.adsl.alicedsl.de] has quit [Ping timeout:
246 seconds]
11:49 -!- boscop_ [~boscop@g225225255.adsl.alicedsl.de] has joined #go-nuts
11:50 -!- artefon [~thiago@dhcp10.usuarios.dcc.ufmg.br] has joined #go-nuts
11:53 < str1ngs> ldconfig:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/libstdc++.so.6.0.15-gdb.py is not an
ELF file
11:53 < str1ngs> really?  lol
11:54 < nsf> libstdc++.so.6.0.15-gdb.py
11:54 < nsf> looks like python script to me
11:54 < str1ngs> I know thats why I'm laugin
11:54 < nsf> for gdb )
11:54 < nsf> hehe
11:54 < str1ngs> wonder if I can just remove it
11:55 < str1ngs> odds of someone wanting to debug c++ with this probably
pretty slim
11:55 -!- gregschlom [~quassel@] has joined #go-nuts
11:55 < exch> O.o wasn't net.Dial()'s signature changed in the last weekly?
to remove the laddr param that is
11:56 < nsf> not so many programmers know how to use debugger
11:56 < exch> yesterday's has put it back
11:56 < nsf> I don't for example
11:56 < nsf> I use it to get backtraces :)
11:56 < nsf> aka stack traces
11:56 < nsf> 'bt' is the command I know
11:56 < nsf> lol
11:56 < nsf> 'run' and 'bt'
11:56 < nsf> :D
11:57 < nsf> other problem is a lack of good GUIs for gdb
11:57 < nsf> does anyone know one?
11:57 < str1ngs> apparently gdb is the best thing to use when you are
learning.  atleast the MIT open course I've been reading suggest that
11:57 < nsf> str1ngs: it's the only thing you can use, lol
11:57 < nsf> there are no other open debuggers?  :)
11:57 < nsf> lldb is coming though
11:58 < nsf> what I like about lldb, it allows you to execute all language
constructs, not just expressions
11:58 < exch> gofix seems to have undone most of the changes to releases
prior to 2011/4/13 O.o
11:59 < str1ngs> nsf: aur/cgdb is not bad
11:59 < nsf> str1ngs: yeah, I used it for some time I think
12:00 < str1ngs> nsf: sorry what I meant was they suggest you run all code
through gdb
12:00 < nsf> but I think it's possible to do better
12:00 < str1ngs> not just for debugging
12:00 < str1ngs> kgdb if you like bloat.  which I doubt you do
12:00 < nsf> take a look at windbg for example
12:01 < nsf> kgdb, no thanks
12:01 < str1ngs> lol
12:05 -!- boscop__ [~boscop@g225225255.adsl.alicedsl.de] has joined #go-nuts
12:05 -!- boscop_ [~boscop@g225225255.adsl.alicedsl.de] has quit [Ping timeout:
250 seconds]
12:06 -!- sebastianskejoe [~sebastian@] has quit [Quit: Lost
12:09 -!- vpit3833 [~user@CPE-58-160-37-24.phzl1.ken.bigpond.net.au] has quit
[Quit: ERC Version 5.3 (IRC client for Emacs)]
12:14 -!- foocraft [~dsc@] has joined #go-nuts
12:15 -!- boscop__ [~boscop@g225225255.adsl.alicedsl.de] has quit [Ping timeout:
246 seconds]
12:15 -!- boscop [~boscop@g225225255.adsl.alicedsl.de] has joined #go-nuts
12:15 < plexdev> http://is.gd/gOGucW by [Dave Cheney] in go/src/pkg/runtime/
-- runtime: fix set and not used in chan.c
12:18 -!- boscop [~boscop@g225225255.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
12:18 -!- boscop [~boscop@g225225255.adsl.alicedsl.de] has joined #go-nuts
12:19 -!- ww [~ww@river.styx.org] has joined #go-nuts
12:21 -!- nixness [~dsc@] has joined #go-nuts
12:21 -!- boscop [~boscop@g225225255.adsl.alicedsl.de] has quit [Excess Flood]
12:21 -!- kimelto [~kimelto@sd-13453.dedibox.fr] has quit [Ping timeout: 248
12:22 < nsf> str1ngs: oh, btw, one more thing I like about windows debuggers
12:22 < nsf> they use separate file for symbols
12:22 < nsf> so, you can basically always compile your app with debug
12:22 < ww> speaking of debugging...  anyone have gdb working on osx with
12:22 < nsf> and end user if he has troubles can send you all the coredumps,
12:22 < nsf> and you can easily use them :)
12:23 -!- boscop [~boscop@g225225255.adsl.alicedsl.de] has joined #go-nuts
12:23 < nsf> not sure whether it's possible with gdb or not
12:23 < ww> i just built 7.2 from source last night, and the debugger
crashes with a segfault when trying to run a go program under it...
12:24 < str1ngs> nsf: hmm I think you can do that.  I've seen distro's with
debugging symbols in other packages
12:24 -!- foocraft [~dsc@] has quit [Ping timeout: 264 seconds]
12:24 < str1ngs> ww: 7.2 of gcc?
12:25 < ww> str1ngs: 7.2 of gdb
12:25 < str1ngs> ah ok that makes more sense
12:25 < ww> e.g.  latest stable on ftp.gnu.org
12:25 < str1ngs> I have 7.2 on linux let me try a go binary
12:26 < str1ngs> works fine
12:26 < ww> hmmm...  that's odd...
12:26 < str1ngs> I blame Mac :P
12:26 < ww> wait - do you have a go binary that has something that uses cgo
12:26 < exch> same here.  7.2 works ok
12:26 < exch> with plain Go and with cgo
12:26 < str1ngs> ww: ah no but I can try and make one
12:27 < ww> exch: hmmm...  i wonder what's wrong then
12:27 -!- jgonzalez [~jgonzalez@173-14-137-134-NewEngland.hfc.comcastbusiness.net]
has joined #go-nuts
12:28 < str1ngs> exch: runs fine with cgo to
12:28 -!- boscop [~boscop@g225225255.adsl.alicedsl.de] has quit [Ping timeout: 246
12:28 < exch> ya
12:28 < ww> yeah...  see my program uses goraptor which is a binding for the
raptor c library...
12:28 < str1ngs> do you build gdb by hand?
12:28 < ww> and i get:
12:28 < ww> warning: can't find section '.const' in OSO file
12:28 < ww> Debugger segmentation fault
12:28 -!- hopso [~hopso@] has quit [Quit: hopso]
12:28 < ww> (a few other similar messages before the segfault)
12:29 < ww> obviously that raptor_unicode.o is actually part of the raptor
shared library...
12:29 < ww> program runs fine normally, apart from the bug that i'm trying
to use gdb to find :P
12:29 -!- Scorchin [~Scorchin@host109-156-12-87.range109-156.btcentralplus.com]
has joined #go-nuts
12:30 < str1ngs> does it do that when you run by hand without gdb?
12:31 < ww> str1ngs: no, as i said, it runs just fine by hand, modulo the
bug i'm tracking down which is not related to library loading
12:32 < str1ngs> wonder if you need to build raptor with debu sysmbols.  but
still strang shouldnt seg because of that.
12:32 < ww> in fact it runs just fine entirely on freebsd but will
occasionally panic with a nil pointer dereference on osx which is what i'm trying
to debug
12:34 < ww> it is built with -g
12:34 -!- scyth_ [~scyth@] has joined #go-nuts
12:36 < ww> if i use the system gdb (too old to understand go) it works
fine, and can see symbols in libraptor, but of course doesn't understand the go
12:39 < str1ngs> let me see how homebrew handle's gdb
12:40 < ww> str1ngs: i just built it directly from source...  homebrew
wasn't being helpful...
12:40 < ww> and then had to jump through some hoops with codesign to allow
it to run
12:40 * ww is wishing more and more that freebsd or linux had proper support for
his laptop...
12:41 < str1ngs> hmm homebrew doesnt even have gdb
12:42 < str1ngs> what support are you missing?  just mac related?
12:42 < ww> str1ngs: yes, that's what i meant by being unhelpful...
12:42 < str1ngs> ie I run linux on my macmini np
12:42 -!- zozoR [~Morten@56344b27.rev.stofanet.dk] has joined #go-nuts
12:42 < ww> str1ngs: yeah a newish macbook air
12:42 < str1ngs> but I use archlinux as always
12:42 < str1ngs> I even boot with grub efi :P
12:43 < str1ngs> actually you could dual boot
12:43 < str1ngs> if you use bootcamp
12:44 < str1ngs> but thats not going to fix this Mac issue
12:45 < ww> yeah, anyways, i don't really have time for yak shaving about
what os my workstation is running right now :P
12:45 < str1ngs> ya I agree why I added that last bit
12:46 < ww> :)
12:46 -!- nixness [~dsc@] has quit [Ping timeout: 240 seconds]
12:47 < ww> it's an odd one...  the actual segfault seems to happen inside
12:47 < ww> but if i put a log.Print before the call in question, the
segfault goes away...
12:48 < ww> so even though we're dealing entirely with non-gc-managed
pointers at this stage, i suspect a gc-related issue
12:49 < str1ngs> ah could be your binding then
12:49 < str1ngs> I know there are times you need to handle things in your
cgo bindings like you would in C
12:50 < str1ngs> but it really boils down to the binding you are dealing
with.  and how much they memory manage
12:50 < ww> str1ngs: the offending part is here:
12:51 < ww> now this function is called with a lock protecting global_world
(which isn't thread-safe) always
12:51 < ww> and C.raptor_new_term_from_counted_uri_string copies its input
(ustr) so it is safe, and expected to free it after
12:53 < str1ngs> ok
12:53 < str1ngs> (*C.uchar)(unsafe.Pointer(C.CString(uri))) but why this?
12:54 < str1ngs> or is that the only way you can get a C.uchar?
12:54 < ww> because raptor's arguments are expected to be unsigned char *
12:54 < ww> and C.CString gives a char *
12:54 < ww> and go's type checking complains
12:54 < str1ngs> ok what I thought
12:54 < str1ngs> also why the pointer to uri?  or is Uri string always a
12:55 < str1ngs> I have not used custom types like that.  normaly I just use
a string
12:55 < ww> that part could/should be refactored possibly...
12:56 < bse> is go not capable of marshalling container.list on its own?
12:56 < ww> right now it's always a pointer, but that can be a bit
cumbersome at times - i did that before i properly understood the implications in
terms of go-convenience
12:57 -!- powerman-asdf1 [~powerman-@135-116-179-94.pool.ukrtel.net] has joined
12:58 < ww> otoh, strings not being reference types, having them copied
around all the time gets expensive...  especially since this datatype is a
fundamental atom in terms of rdf, out of which statements are made (contain four
of them) and there can easily be thousands or millions of statements flying around
on channels
12:58 < str1ngs> ww: ok that makes more sense
12:59 < str1ngs> ww: honestly you have a better grasp on the C type and
pointers then I do.  I would maybe post this snippet to the ML then
12:59 < str1ngs> ww: what I do is really avoid using Ctype.  and I always
just wrap them in go struct
12:59 < str1ngs> but the effect is the same really
13:00 < ww> that's essentially what's happening here, goraptor.Uri is really
a go string and it only gets tuned into the raptor type when needed
13:01 < str1ngs> right
13:01 < ww> the reason for this is the raptor types need to be freed, and go
has no destructors...
13:01 < ww> otherwise i'd just embed them in a struct
13:01 < str1ngs> either way I dont think thats the problem here
13:03 < ww> agreed.  i actually think the problem *may* be in libraptor, but
it's a pain to debug if i can't hook the higher level logic in go with gdb and
step through the call
13:03 < ww> which is where we started :)
13:04 < powerman-asdf1> hi guys.  I'm new to Go, few days ago made a patch
to use Go on Hardened Gentoo (and any other Linux with kernel with PaX), and start
learning it.  I've noticed changes in core modules API - like os.Open() or
reflect.* - happens in last ~week - between "release" and "tip".  And I wonder -
is it usual to do such incompatible changes in Go world, even 1.5 years after
initial public release?  Or such changed is rare, and I was just unluc
13:05 < str1ngs> ww: as what I do is write a subset in C. which is probably
easier for you.  then debug it that way
13:05 < str1ngs> ww: basically get it to do that section but in a C main
13:06 < str1ngs> powerman-asdf1: the idea that with gofmt etc.  the go teams
would like to change things for the better where needed.
13:07 < nsf> powerman-asdf1: as far as I can say, such changes are quite
common, but hopefully (we all hope, I'm sure) right solution for concrete problems
will be chosen sooner than later.
13:07 < nsf> last changes for os.Open and reflect really make sense
13:07 < nsf> and they are painful, yes, sometimes
13:07 < nsf> although for now most likely it's enough to run gofix app on
your source base
13:08 < str1ngs> gofix is the answer basicallyl
13:08 < nsf> it's not an answer
13:08 < nsf> there is no excuse for frequent changes to base libraries
13:08 < str1ngs> not but it can justify making changes this early in the
13:08 < ww> powerman-asdf1: i think 1.5 years is very young for a
programming language...  it is still stabilising...
13:08 < nsf> but it has to be done from time to time
13:08 < nsf> :)
13:09 < nsf> and Go tries to do it right
13:09 < str1ngs> yep
13:09 < exch> gofix doesn't turn os.Open(file, os.O_RDONLY, 0) into
os.OpenFile(file), so you'll have to do that manually
13:09 < nsf> exch: it's a lie
13:09 < str1ngs> exch: think you have it backwards
13:09 < exch> no.  I just had to do it myself
13:09 < nsf>
13:10 < str1ngs> wait I never used os.OpenFile was that there before?
13:10 < nsf> proof
13:10 < nsf> - if file, err = os.Open(fname, os.O_RDONLY, 0); err != nil {
13:10 < nsf> 256
13:10 < nsf> + if file, err = os.Open(fname); err != nil {
13:10 < nsf> I did it with gofix
13:10 < nsf> maybe it doesn't work in all cases
13:10 < nsf> but then it's a bug :D
13:10 < exch> yea.  I ran gofix.  but had tho change all those instances in
my repos manually
13:10 < nsf> worked for me :\
13:10 < nsf> I mean gofix did all the job
13:10 < str1ngs> I had some issues but I was doing it wrong
13:11 < str1ngs> now I just do gotfix *.go
13:11 < exch> minor effort, so it's not a problem
13:11 < str1ngs> gofix even
13:11 < xyproto> powerman-asdf1: does gofix solve your problem?
13:11 < exch> Im rather glad Go does use the backwards incompatible changes.
Otherwise we'll just get stuck with dodgy legacy code that came from quesitonable
decisions at the time of writing
13:11 < ww> aha...  a new weekly yesterday (a week in go is 9 days?)
13:12 < str1ngs> is now :P
13:12 * ww updates to that before going any further trying to debug the weird
13:12 < nsf> ww: Go doesn't use strict schedule for releases
13:12 < skelterjohn> morning
13:12 * ww has no problem with 9 day weeks :)
13:12 < nsf> like if it was scheduled for today then it will happen today
13:12 < str1ngs> ww: try the C main program seemed to really help me
13:12 < nsf> delays are possible
13:13 < nsf> what I don't like about Go
13:13 < nsf> is the lack of notification for weekly
13:13 < nsf> at least in go-announce ML
13:13 < nsf> I don't even ask for changelogs
13:13 < nsf> simply a notification would be nice :D
13:13 < str1ngs> is there not one in go-nuts ?
13:13 < skelterjohn> really?  that's what you don't like about go?
13:13 < nsf> str1ngs: I don't read go-nuts and go-dev
13:13 < ww> str1ngs: yes, i might resort to that but the go program is big
enough that there are too many degrees of freedom to know how to write the C
13:13 < skelterjohn> just don't hg up weekly
13:14 < skelterjohn> i didn't even know there was a go-announce ML
13:14 < str1ngs> ww: ah I thought that might be the case with this
13:14 < nsf> skelterjohn: I don't like that go-announce was create and isn't
used properly :)
13:14 < ww> an the obvious route would be covered just by running the tests
from 4store or libraptor itself that exercise that codepath...  and they run fine
13:14 < skelterjohn> can you link go-announce?
13:15 < ww> argh...  yes, just have been newly bitten
13:15 < ww> write.go:24: undefined: os.O_CREAT
13:15 < nsf> http://groups.google.com/group/golang-announce
13:15 < str1ngs> I to am shock thats all nsf dislikes about go :P
13:15 < nsf> it's golang-announce, sorry
13:15 < ww> not in my code even...
13:15 < str1ngs> gofix will fix that loll
13:15 < nsf> str1ngs: no, it's not all, I won't talk about other things
13:15 < nsf> enough has been said already
13:15 < str1ngs> nsf: I know I'm just giving you a hard time
13:15 < nsf> :D
13:16 < ww> str1ngs: yeah, sure, but i want to have a repeatable build that
involves things like goinstall...
13:16 -!- arvindht_ [c2ed8e11@gateway/web/freenode/ip.] has quit
[Quit: Page closed]
13:16 < ww> unless goinstall runs gofix now
13:16 < str1ngs> and this is bad.  did we even help the guy that had the
orignal issue?
13:16 < skelterjohn> nsf: no topics available
13:16 < nsf> skelterjohn: sadly!
13:16 < str1ngs> ww: no gofix needs to be run against the upstream code
13:17 < str1ngs> ww: goinstall wont touch could unless its package name's
13:17 < skelterjohn> did you make this list?  o_O
13:17 < nsf> nope
13:17 < str1ngs> code*
13:17 < nsf> I think Andrew did
13:17 < nsf> I asked him
13:17 < powerman-asdf1> xyproto: I've tried to compile 3rd-party "msgpack"
pkg which use reflect.* a lot, and it's hard to believe this can be fixed with any
automatic conversion, but I'll try it, thanks.  Btw, I didn't see gofix command,
probably it wasn't exist in "release" and was added in last ~month.
13:17 < nsf> and he announced it iirc
13:17 < skelterjohn> str1ngs: goinstall won't overwrite existing code that's
already in your $GOROOT/src
13:17 < skelterjohn> unless you -u
13:17 * ww hopes kless/goconfig is maintained...  else will be forced to fork it
13:18 < ww> (not for the first time with goconfig aiui)
13:18 < str1ngs> kless has some handy stuff
13:18 < skelterjohn> does gofix fix for the new reflect api?  i sort of
doubt it
13:18 < skelterjohn> i mean, it removes types
13:18 < nsf> skelterjohn:
13:18 < skelterjohn> but it's easy for a human to fix
13:18 < nsf> proof
13:18 < nsf> it does
13:18 < nsf> I was surprised as well
13:19 < skelterjohn> wow
13:19 < skelterjohn> cool
13:19 < str1ngs> ww: thats a fork btw
13:19 -!- dj2 [~dj2@] has joined #go-nuts
13:19 < str1ngs> ww: did you try https://github.com/msbranco/goconfig
13:19 < nsf> I use my own goconfig, lol
13:19 < nsf> maintaining it as well :D
13:19 < nsf> well, not my own
13:19 < nsf> someone's else
13:19 < nsf> but I'm pretty much maintaining it :D
13:20 < nsf>
13:20 < str1ngs> I write my configs in config.go lol
13:20 -!- JusticeFries [~JusticeFr@242.sub-69-98-164.myvzw.com] has joined
13:20 < ww> str1ngs: i think at the time i looked through all of the various
13:20 < nsf> after gofix, I've noticed it's so old, that it has semicolons!
13:20 < ww> can't remember why i settled on the kless one...
13:20 < str1ngs> what format does goconfig use ini?
13:21 < nsf> sort of
13:21 < nsf> certainly ini-like
13:21 < ww> yeah, we discussed it in here...  i wanted something with curly
braces like nginx or bind...
13:21 < str1ngs> json :P
13:21 < ww> but have more interesting things to do than write config file
13:21 < nsf> yaml
13:21 < nsf> no curly braces though
13:21 < str1ngs> no good go yaml pasers though
13:21 < nsf> but hierarchical
13:21 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
13:22 < ww> and windows 3.1 style ini files are good enough for now
13:22 < gregschlom> Hey guys.  Not sure if this question is appropriate here
(if not, sorry) Anyone using Go for real web applications here?  What are your
impressions so far?  Do you like it?  Are there enough libraries for your needs?
13:23 < gregschlom> I'm a C++ dev, and I want to learn something new for a
side project.  I'm considering python, ruby, and go
13:23 < skelterjohn> this is certainly the right place for that question
13:23 < skelterjohn> personally i don't do a lot of web app stuff
13:23 < skelterjohn> but others here do, i bet
13:23 -!- djcapelis [~djc@blender/coder/DJCapelis] has quit [Ping timeout: 240
13:23 < str1ngs> gregschlom: http package has all you would need
13:23 < str1ngs> so the answer is yes
13:23 < nsf> gregschlom: learning everything is a good idea
13:23 -!- joshbaptiste [~joshbapti@] has quit [Ping timeout: 246
13:24 < skelterjohn> that didn't answer his question at all str1ngs :)
13:24 < nsf> because if you haven't seen django, ruby on rails
13:24 < nsf> you won't be able to compare Go with them
13:24 < nsf> learn everything :)
13:24 < str1ngs> skelterjohn: yes it did.  http packages has everthing you
need to write a web app along with the stdlib
13:24 < skelterjohn> that's not what he asked
13:24 < skelterjohn> he did ask if it was possible
13:24 < gregschlom> nsf: a little bi impractical :)
13:24 -!- joshbaptiste [~joshbapti@] has joined #go-nuts
13:24 < skelterjohn> did -> didn't
13:25 < gregschlom> Ok, so let's add some more information
13:25 < nsf> but I don't do web apps, so I can't really say is Go worth it
or not
13:25 < str1ngs> "are there enough libraries for your needs"
13:25 < nsf> I've seen ruby on rails and django though :D
13:25 < skelterjohn> ok i missed that bit
13:25 < nsf> seems complete
13:25 < skelterjohn> but he asked a lot more than that :)
13:25 -!- djcapelis [~djc@capelis.dj] has joined #go-nuts
13:25 -!- djcapelis [~djc@capelis.dj] has quit [Changing host]
13:25 -!- djcapelis [~djc@blender/coder/DJCapelis] has joined #go-nuts
13:25 < gregschlom> One of my concerns for example is that it seems that a
lot of stuff is being developped by Michael Hoisie.  I mean, it's great, but one
man making web.go, mustache.go, redis.go, etc
13:25 < gregschlom> It raises a concern about the breadth of the libraries
13:26 < skelterjohn> he's not the only one
13:26 < nsf> gregschlom: Go libs aren't as solid as ruby on rails for
13:26 < nsf> that's for sure
13:26 < str1ngs> gregschlom: those packages just build ontop of http
13:26 < str1ngs> there is also twister
13:26 < skelterjohn> also, many people contribute to web.go
13:26 < str1ngs> but imo if you want to learn go.  just http only
13:26 < skelterjohn> if you look at the commit list
13:27 < nsf> Go is still a baby, but already walks, lol
13:27 < ww> go compares unfavourably in terms of size of developer-base and
quantity of libraries to languages like python and ruby - that's just because it's
far newer
13:27 < exch> that should not be a reason to not use it though
13:27 < str1ngs> go has some stuff those other languages dont.  have you
seen the crypto package?
13:27 < ww> in other terms, benefits of type checking on the development
cycle, resource consumption, speed it compares very favourably
13:27 -!- kimelto_ [~kimelto@sd-13453.dedibox.fr] has joined #go-nuts
13:27 < str1ngs> or compress and archive packages.
13:27 < mpl> gregschlom: besides, you don't need to use hoisie's stuff to do
webapps, it's pretty easy to roll your own stuff.
13:28 < gregschlom> Thanks everybody for those answers
13:28 < mpl> gregschlom: here's an example
13:28 < gregschlom> Actually, I think I'm going to give Go a try, because I
love bleeding edge stuff
13:28 < nsf> gregschlom: and Go would be nice for you as a C++ developer
13:28 < skelterjohn> perhaps a good answer is: go is mature enough so that
people can easily develop stable web apps, so the only question is if you like the
language itself
13:29 < skelterjohn> and for that, you'll have to try it out
13:29 < gregschlom> make sense
13:29 * ww agrees w/ skelterjohn
13:29 -!- kimelto_ [~kimelto@sd-13453.dedibox.fr] has quit [Client Quit]
13:29 < mpl> gregschlom: also, consider that brad fitzpatrick is now
committed a lot into the http server side.  :)
13:29 < gregschlom> Who's him?
13:29 < nsf> gregschlom: creator of LiveJournal
13:29 < mpl> google him ;) author of memcache among other things.
13:30 < gregschlom> Indeed, I was seeing that on his wikipedia page
13:30 < gregschlom> Cool, I'll go with Go, then :)
13:30 * ww hopes for solid support in http client and server for persistent
13:30 < gregschlom> Expect to see a few questions from me here, in the
coming days
13:30 < exch> SPDY implementation would be cool
13:30 < ww> my program does a lot of http get/put/post to the same place and
connection setup and tear-down for each one is silly
13:30 -!- kimelto [~kimelto@sd-13453.dedibox.fr] has joined #go-nuts
13:30 < mpl> exch: afaiu, it's pretty close to being done, isn't it?
13:31 < str1ngs> exch: were you thinking about doing some stuff with spdy .
it kinda got me intrested
13:31 < str1ngs> exch: spdy client would be awesome
13:31 < exch> possibly.  I really haven't done any investigation into the
protocol yet though
13:31 < str1ngs> I did abit
13:31 < exch> I'm working on some other unrelated stuff atm
13:31 < str1ngs> but I by no means skilled enough for it
13:32 -!- angasule [~angasule@] has joined #go-nuts
13:32 < str1ngs> what would also be nice is go app engine . which I heard
rumours of
13:32 < exch> There was a mailing list post about someone working on a SPDY
implementation though.  Yesterday I believe
13:33 < str1ngs> ah I'll check the ML then
13:33 < mpl> yep, he said he's almost done on the client side.
13:33 < exch> cool
13:33 -!- krolaw [~krolaw@] has quit [Quit: krolaw]
13:33 < str1ngs> nice
13:33 < plexdev> http://is.gd/MYueN1 by [Luuk van Dijk] in 2 subdirs of
go/src/ -- runtime: fix gdb support for channels.
13:33 < plexdev> http://is.gd/Tbck2T by [Russ Cox] in go/src/cmd/gc/ -- gc:
fix use of typekind array in error messages
13:36 < ww> interesting re: speedy...
13:37 < ww> i wonder how the politics will play out...  will this get
blessed by the w3c?  will the web server and client software vendors all work to
support it?
13:37 < powerman-asdf1> I also noticed Go's json Decode() is 3-4 times
slower than Perl's JSON::XS (implemented in C). I understood reasons why Go's
regex or math can be n times slower than C, but isn't things like simple json
parsing should have speed similar to C?
13:38 < ww> proper third-party is made significantly easier by a blessing
from a neutral organisation like the w3c...
13:38 < ww> s/third-party/third-party software support/
13:38 -!- foocraft [~dsc@] has joined #go-nuts
13:39 < str1ngs> powerman-asdf1: its is slow I noticed also.  but have not
looked into why.  something in go are not optimized for speed yet
13:39 < str1ngs> even though something are naturally faster then say ruby
13:40 < powerman-asdf1> str1ngs: you think it's Go itself needs to be
optimized for fix this, or it's just json package should be optimized?
13:40 < str1ngs> powerman-asdf1: its something in the json package
13:41 < str1ngs> powerman-asdf1: small queries are not bad but large ones
seem to be slower.  but not by leaps and bounds.  I was comparing against yajl
13:42 < powerman-asdf1> and, talking about slow regex in Go, why Go doesn't
use Russ Cox's re2 library?
13:42 < aiju> probably because no one implemented it
13:43 < powerman-asdf1> aiju: keeping in mind Russ Cox develop both Re2 and
Go, I suppose there may be some other problem with this :)
13:43 < ww> these types of optimisations are good SoC projets.  give to
student, say "optimise the json package"
13:44 < str1ngs> powerman-asdf1: but russ works on alot of things so he's
re2 library might not be a priority
13:45 -!- JusticeFries [~JusticeFr@242.sub-69-98-164.myvzw.com] has quit [Quit:
13:46 < nsf> powerman-asdf1: it's like iant works in Go team and Go has
fairly slow linker, when gold created by iant is the fastest open source linker
13:46 < nsf> :D
13:46 < nsf> strange things happen
13:46 < powerman-asdf1> str1ngs: yeah.  just wonder.  I've developed wrapper
for Re2 for Inferno/Limbo, and looking at switching Perl's default regex engine to
Re2 (thank God someone else already made CPAN module for this so I don't have to
do this myself :)).  It's really good library.
13:46 < aiju> gold is written in C++
13:46 < nsf> aiju: and?
13:47 < aiju> it doesn't make much sense to force people to install C++
compilers just for the frigging linkers
13:47 < aiju> -s
13:47 < str1ngs> powerman-asdf1: but if you are really good with this sort
of thing.  maybe look at the json package.  possibly you can find the issue faster
then I can.
13:47 < nsf> most people use gcc anyway
13:47 < aiju> gcc is modular
13:47 < nsf> aiju: so, your gcc can't compile C++?  :)
13:47 < aiju> i have machines with no C++ compiler
13:47 < nsf> cool :D
13:48 < str1ngs> powerman-asdf1: other the that though.  most things are
pretty peppy.  but I'm use to more scripted languages.  C++ would be another story
13:48 < nsf> is it a plan9 machine?  :)
13:48 < powerman-asdf1> str1ngs: I may try it later, but I'm still unsure in
switching to Go right now, so I probably begin with rewriting Limbo's json in C as
Inferno driver module first.
13:48 < aiju> haha no
13:48 < str1ngs> powerman-asdf1: at the mistake of sound like a fan boi.  go
is about the most fun I've had in a long time.  imo its worth checking out
13:50 < aiju> nsf: of course, my plan 9 machines don't have C++ compilers
13:51 -!- crodjer [~rohanjain@] has quit [Remote host closed the
13:51 < powerman-asdf1> str1ngs: Limbo, comparing to Go, is less compact
language, BUT.  It's much simpler.  And it's runtime environment is Inferno, not
Linux, which made it even much more simple - no signals, no non-blocking i/o, etc
etc.  So developing in Limbo is simpler than even in Go. Only downside is needs in
install overall OS Inferno together with my Limbo app to be able to run it.  :)
13:52 < str1ngs> powerman-asdf1: aye.  where I find with go its not so
dependant on runtime.
13:52 < str1ngs> powerman-asdf1: its only really dependant on build time.
13:52 < str1ngs> it varies if you use cgo though but not by much
13:53 < powerman-asdf1> and, Go probably faster.  should be, at least.  But
my json benchmark results are 2.8 sec Limbo vs 1.6 sec Go vs 0.4 sec Perl (XS)
13:53 < str1ngs> ffs does github really use a flash uploader?
13:54 < str1ngs> powerman-asdf1: I really think thats the json package.  its
the only thing I've found slow.  in fact I'll post something to the ML abou tit
13:55 < str1ngs> nsf: are you using x86_64?
13:55 < nsf> str1ngs: no
13:55 < str1ngs> grap
13:55 < str1ngs> no fear I have a i686 machine :P
13:56 < nsf> and I've deleted my x86_64 virtual arch installation
13:56 < nsf> using it on qemu is painfully slow
13:56 < nsf> when I actually have a 64 bit cpu
13:56 < str1ngs> np I'll build a i686 version to
13:57 < str1ngs> I wont make a repo for now just away to download from
13:58 < nsf> well, I don't want it asap, it would be nice no matter when :)
13:58 < str1ngs> oh ya what I figured
13:59 < str1ngs> as its stands this snapshot runs tip code so it should be
good for awhile
13:59 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
13:59 < str1ngs> nsf: https://github.com/str1ngs/gcc-go
14:00 < nsf> nice, but I won't build it :D
14:00 < nsf> at least not now
14:00 < str1ngs> nsf: I uploaded the x86_64 package.  and when the i686 is
down I'll upload that
14:00 < str1ngs> see downloads
14:00 < nsf> ah, nice
14:00 < nsf> thanks :)
14:00 < str1ngs> np
14:05 < str1ngs> I really need a i7 :P
14:06 -!- thiago__ [~thiago@bananal.lbd.dcc.ufmg.br] has joined #go-nuts
14:06 < aiju> or just stop using g++
14:06 < str1ngs> or more people that write stuff in go
14:06 -!- artefon [~thiago@dhcp10.usuarios.dcc.ufmg.br] has quit [Ping timeout:
260 seconds]
14:06 < aiju> or stop running gentoo
14:06 < str1ngs> I dont use gento
14:06 < str1ngs> gentoo*
14:06 < nsf> yeah, g++ is the problem
14:06 < nsf> clang++ doesn't help much
14:06 < nsf> at least it has better error messages :)
14:07 < aiju> that's not difficult
14:07 < aiju> foo.c:34 ? would be better than any g++ error message
14:07 < nsf> lol
14:07 < nsf> maybe :)
14:07 < aiju> hell, it doesn't point to 20 different places
14:07 < aiju> which might or might not be related to the problem
14:07 < nsf> yeah, I had a sessions of fixing these recently :D
14:07 < nsf> session*
14:08 -!- zimsim [~simon@] has joined #go-nuts
14:08 < nsf> of course one can blame me that I don't use vim's ability to
extract errors locations
14:09 < nsf> but anyway, thank god clang 2.9 went out and it works fine with
gcc's (4.5) lib
14:09 < nsf> clang 2.8 had problems with tr1 stuff
14:09 -!- zerosanity [~josh@] has joined #go-nuts
14:12 -!- JusticeFries [~JusticeFr@252.sub-69-98-163.myvzw.com] has joined
14:12 -!- gregschlom [~quassel@] has quit [Ping timeout: 240
14:14 < str1ngs> nsf: are you running testing?
14:14 < nsf> no
14:14 < gmilleramilar> hey nsf, who would be the best person to ask about a
problem with the emacs gocode stuff?
14:14 < str1ngs> nsf: ok might have to wait till isl hits core then
14:14 < nsf> gmilleramilar: no one supports it sadly, so it is me
14:14 < nsf> str1ngs: not a problem :)
14:15 < nsf> gmilleramilar: what's the problem?
14:15 < str1ngs> nsf: mean time I'll cherry pick isl and test on my i686 and
when isl hits core upload the package
14:15 < nsf> str1ngs: ok :)
14:15 < str1ngs> it will hit core probably when gcc does
14:15 < nsf> good
14:15 -!- powerman-asdf1 [~powerman-@135-116-179-94.pool.ukrtel.net] has left
#go-nuts ["Leaving."]
14:15 < gmilleramilar> nsf: I just have some configuration problem, because
if I load up a .go file, I get no "AC" in the mode specifier, however if I
evaluate (auto-complete-mode 1), everything works fine.  I think I may have some
things in the wrong order in my .emacs
14:16 < str1ngs> which is probably for the better it will be more stable
this way
14:16 < nsf> gmilleramilar: it's an integration problem, I'm not a big
specialist in emacs stuff, but let's see maybe I can help
14:17 < nsf> gocode emacs script uses go-mode-hook
14:17 < nsf> to init auto-complete-mode
14:17 < nsf> but I think there is some issue with that around, one moment
14:17 < nsf> (require 'go-autocomplete)
14:17 < nsf> (require 'auto-complete-config)
14:17 < nsf> do you have these?
14:18 < nsf> in your .emacs
14:18 < nsf> in the same order
14:18 < gmilleramilar> yes.
14:18 < str1ngs> actually I should figure out why gcc even needs isl
14:18 < nsf> hm..
14:18 < gmilleramilar> what about (ac-config-default)/
14:18 < gmilleramilar> (no slash)
14:18 < gmilleramilar> I have that in there too.
14:18 < nsf> it can be a problem
14:18 < nsf> maybe
14:19 < nsf> because I have it commented out
14:19 < nsf> in my .emacs
14:19 < nsf> for some reason :)
14:19 < nsf> try that :D
14:19 -!- shvntr [~shvntr@] has quit [Ping timeout: 240 seconds]
14:20 -!- nixness [~dsc@] has joined #go-nuts
14:21 < nsf> gmilleramilar: yeah
14:21 < nsf> if I have it uncommented
14:21 < nsf> go file starts with Go mode only
14:21 < nsf> if I have it commented out
14:21 < nsf> go file starts with Go AC mode
14:22 < nsf> so, read auto-complete-mode page, it should have an explanation
for that or something
14:22 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 246 seconds]
14:23 < gmilleramilar> ok, I'll try it.  thanks.
14:23 -!- foocraft [~dsc@] has quit [Ping timeout: 250 seconds]
14:23 < nsf> np :)
14:25 -!- fabled [~fabled@] has quit [Quit: Ex-Chat]
14:26 -!- boscop [~boscop@g230091093.adsl.alicedsl.de] has joined #go-nuts
14:26 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has joined #go-nuts
14:27 < gmilleramilar> yeah, I think that works.  I had broken some other
stuff for a minute, but now I get an "AC"
14:27 < gmilleramilar> thanks.
14:27 < nsf> np
14:28 -!- boscop [~boscop@g230091093.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
14:28 -!- boscop_ [~boscop@g230091093.adsl.alicedsl.de] has joined #go-nuts
14:30 -!- boscop_ [~boscop@g230091093.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
14:31 -!- fabled [~fabled@] has joined #go-nuts
14:32 -!- boscop [~boscop@g230091093.adsl.alicedsl.de] has joined #go-nuts
14:32 -!- JusticeFries [~JusticeFr@252.sub-69-98-163.myvzw.com] has quit [Ping
timeout: 240 seconds]
14:38 -!- pharris [~Adium@rhgw.opentext.com] has quit [Ping timeout: 246 seconds]
14:39 -!- boscop [~boscop@g230091093.adsl.alicedsl.de] has quit [Ping timeout: 240
14:42 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
14:46 -!- eumel [~eumel_s@kons-5f7100cf.pool.mediaWays.net] has joined #go-nuts
14:47 -!- pharris [~Adium@rhgw.opentext.com] has joined #go-nuts
14:50 -!- wrtp [~rog@] has joined #go-nuts
14:50 < plexdev> http://is.gd/6zwFv4 by [Russ Cox] in
go/src/pkg/compress/flate/ -- compress/flate: dictionary support
14:50 < plexdev> http://is.gd/1dR6Zg by [Russ Cox] in 4 subdirs of
go/src/cmd/ -- ld: defend against some broken object files
14:51 -!- reds [~reds@pool-74-101-147-57.nycmny.fios.verizon.net] has joined
14:51 < ww> fscking heisenbug...
14:51 < ww> made a bunch of completely unrelated changes to another part of
the code and...well the mysterious panic is gone
14:52 < str1ngs> hehe
14:53 < str1ngs> were those changes to goroutines?
14:53 < ww> yes...
14:53 < str1ngs> need I say more?
14:53 < ww> started a few extra new ones...
14:53 < aiju> ww: i had LOTS of those in kernel code
14:54 < aiju> where adding code - even if it was never executed - led to
14:55 * ww is just happy its gone...  but this is a bit vaguely worrisome about
predictability of go programs running :)
14:55 < Namegduf> I've not run into it
14:55 < Namegduf> Are you sure you're not accessing some piece of data from
multiple goroutines at once?
14:56 < str1ngs> ^ this is wold cause what you were seeing
14:57 < ww> the goroutines only get started after all data they need has
been written, and they only read...  so that shoudl be fine...
14:57 < ww> and all global state in the cgo part is protected by mutex...
14:58 < ww> always possible i've missed something though
15:00 -!- nixness [~dsc@] has quit [Ping timeout: 250 seconds]
15:07 -!- simply_b [~simply_b@66-189-220-223.dhcp.knwc.wa.charter.com] has quit
[Read error: Connection reset by peer]
15:07 < plexdev> http://is.gd/VHhJvr by [Russ Cox] in go/src/cmd/gotest/ --
gotest: add timing, respect $GOARCH
15:16 -!- foocraft [~dsc@] has joined #go-nuts
15:18 -!- cafesofie [~cafesofie@ool-4a5a6ee5.dyn.optonline.net] has joined
15:19 -!- rlab [~Miranda@] has joined #go-nuts
15:25 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has
joined #go-nuts
15:30 -!- joelkronander [~joelkrona@] has quit [Quit:
15:31 < str1ngs> nsf: https://github.com/str1ngs/gcc-go/downloads turns out
it didnt need isl.  post any bugs if you find any.  I did a quick build some some
of my projects so it builds atleast.  just dont forget to use gccgo-4.7
15:32 < nsf> good
15:32 < nsf> trying it now
15:33 -!- napsy [~luka@] has joined #go-nuts
15:34 < str1ngs> I need to add a sed to change CHOST in the ld.conf file and
minor CHOST change for the PKGBUILD for i686
15:34 < str1ngs> doing that now before I forget
15:34 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
15:37 < nsf> omg it has all the C++ in it as well
15:37 < nsf> you should remove it
15:37 < nsf> sometime
15:39 < nsf> nice, 18kb hello world :)
15:39 < nsf> works fine
15:39 < aiju> what compiler?
15:39 < str1ngs> I know sorry.  I will decouple where I can but I'm not sure
if I can yet
15:39 < nsf> gccgo
15:39 < aiju> dynamically linked i suppose
15:40 < nsf> of course
15:40 < str1ngs> dont forget to strip now :P
15:40 < str1ngs> sstrip if you are hard core
15:40 < aiju> V6 C had 1 KB hello world
15:40 < nsf> libgo 7 megs
15:40 < aiju> statically linked
15:40 -!- GeertJohan [~Squarc@] has joined #go-nuts
15:41 < angasule> str1ngs: are you Ian T?
15:41 < aiju> no
15:41 < str1ngs> nsf: I"ll see if I can translate this into a libgo package
when I have time
15:41 < aiju> iant is iant
15:41 < str1ngs> angasule: no
15:41 < str1ngs> angasule: if I gave that impression it was not intended at
15:43 < angasule> str1ngs: nah, just wondering 'cause you posted a link to
what appears to be a dev version of gccgo :)
15:43 < angasule> I used it a lil' bit to see how to do go->C and
C->go calls
15:43 -!- scyth_ [~scyth@] has quit [Quit: Leaving]
15:43 < str1ngs> ah ok that is a archlinux gcc 4.7 snapshot build of gccgo
to clarify
15:44 < str1ngs> which I'm using currently but I built encase it would be
useful for othere.
15:45 -!- eumel [~eumel_s@kons-5f7100cf.pool.mediaWays.net] has left #go-nuts []
15:45 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
15:46 < angasule> oh, I'm using 4.6 on debian, I have a "hello, world"(C),
"bye"(go) and "fix it"(go) binary in 17KB (stripped)
15:48 < str1ngs> angasule: 4.6 gcc go should be fine however it lags behind
the stdlibs abit.  the official method is to use svn.  but svn is slow and I find
the snapshots easier to work with
15:48 -!- bse [~bob@95-88-48-166-dynip.superkabel.de] has quit [Quit: Bye!]
15:49 < Namegduf> Using fmt.Printf will add to the size of Go's stuff a lot,
because of Unicode stuff
15:49 < Namegduf> It's a static cost you only pay once.
15:50 < angasule> str1ngs: I know, but I like the convenience of a package
15:50 < str1ngs> angasule: dont we all but someone has to do the packing :P
15:50 -!- gregschlom [~quassel@] has joined #go-nuts
15:50 -!- reds [~reds@pool-74-101-147-57.nycmny.fios.verizon.net] has quit [Remote
host closed the connection]
15:50 < angasule> str1ngs: I know, I've packaged a bit for debian, and if I
do any gccgo bindings I'll package them for sure
15:51 < str1ngs> angasule: this is still not perfect since technically libgo
should be its own package.  but right now I dont see it as an issue
15:51 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Quit: JusticeFries]
15:52 < angasule> str1ngs: yeap, right now just having a package is nice :-)
15:52 < str1ngs> angasule: pretty much the idea
15:52 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
15:52 -!- rlab [~Miranda@] has quit [Ping timeout: 241 seconds]
15:54 -!- piranha [~piranha@D57D1AB3.static.ziggozakelijk.nl] has quit [Quit:
Computer has gone to sleep.]
15:58 -!- aho [~nya@fuld-590c6070.pool.mediaWays.net] has joined #go-nuts
16:00 -!- wrtp [~rog@] has quit [Quit: wrtp]
16:01 -!- coolaj86 [~coolaj86@] has joined #go-nuts
16:03 -!- aconran_ [~aconran-o@] has joined #go-nuts
16:04 < gmilleramilar> nsf: one other thought re: gocode.  Could you provide
tags that indicate compatibility with the release versions of go (I'll typically
be using them from here on out).  Currently I'm using
ed2fc5f48477f092755570ca19626a858219d462 which seems to be compatible with r56
16:04 < nsf> they are here
16:04 < nsf> git log --decorate
16:04 < nsf> will show them
16:05 < nsf> I've inroduced them 4 commits after the one you're using
16:05 < gmilleramilar> I see weekly tags.
16:05 < gmilleramilar> oh
16:05 < gmilleramilar> ok
16:05 -!- gregschlom [~quassel@] has quit [Ping timeout: 248
16:05 < nsf> well, release was more than a month ago I think
16:05 < gmilleramilar> yes
16:06 < nsf> I'll have a proper tag for the next one
16:06 < gmilleramilar> ok cool
16:06 -!- aconran [~aconran-o@] has quit [Ping timeout: 248 seconds]
16:07 -!- awidegreen [~quassel@c-cfc5e555.08-2-73746f39.cust.bredbandsbolaget.se]
has joined #go-nuts
16:09 < str1ngs> nsf: ok this will have to do for now.  I'll do my best to
split C and g++ and libgo away.  but it will take sometime
16:09 < nsf> str1ngs: :)
16:09 < plexdev> http://is.gd/5NnGfo by [Brad Fitzpatrick] in
go/src/pkg/http/ -- http: fix race in transport_test
16:11 < str1ngs> actually the gcc-go should be easy its the libgo I'm
worried about
16:11 < str1ngs> anyways you get gcc-4.7 for free :P
16:20 -!- rlab [~Miranda@] has joined #go-nuts
16:25 -!- boscop [~boscop@g230091093.adsl.alicedsl.de] has joined #go-nuts
16:26 -!- gregschlom [~quassel@] has joined #go-nuts
16:28 -!- boscop [~boscop@g230091093.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
16:28 -!- boscop [~boscop@g230091093.adsl.alicedsl.de] has joined #go-nuts
16:28 -!- napsy [~luka@] has quit [Ping timeout: 276 seconds]
16:30 < angasule> str1ngs: debian has a libgo, you might find it useful to
check there?  I don't know a thing about arch packaging :)
16:32 < str1ngs> angasule: thanks I'll take a look at it.  this package
though works though even if another version of gcc is installed
16:32 -!- boscop [~boscop@g230091093.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
16:32 < str1ngs> grr even if I should have said
16:32 -!- boscop [~boscop@g230091093.adsl.alicedsl.de] has joined #go-nuts
16:33 < str1ngs> but will look at how debian handles libgo
16:33 < angasule> str1ngs: same with debian, I have three versions installed
16:34 < str1ngs> however the official gcc-go doesnt work that way
16:34 < str1ngs> well offcial for archlinux I mean
16:34 -!- boscop [~boscop@g230091093.adsl.alicedsl.de] has quit [Read error:
Connection reset by peer]
16:35 < angasule> a single compiler is allowed?  :/ I can see that causing
some trouble
16:36 -!- piranha_ [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has joined
16:36 < str1ngs> not really
16:36 < str1ngs> arch is a rolling release.  if they supported to many
compilers it would get messy
16:37 < str1ngs> same with the idea of derivatives
16:39 < angasule> debian testing is an almost rolling release, and there is
talk of a fully rolling version :)
16:39 -!- boscop [~boscop@g230091093.adsl.alicedsl.de] has joined #go-nuts
16:39 < ww> i really don't like having parallel versions of the same
software installed...
16:39 < ww> that's one of the things that bothers me about osx...
16:39 < str1ngs> I'd rather not do to much comparison I respect all distro's
16:40 * ww goes back to wrangling protovis
16:41 < str1ngs> angasule: also to be fail archlinux has one guy that
maintains the toolchain.  debian I would imagine has alot more man power then
16:41 < str1ngs> fair*
16:43 < angasule> str1ngs: yeap
16:44 < aiju> i respect all distros but debian
16:44 < angasule> ww: it can be useful, specially when it comes to compilers
16:44 -!- boscop [~boscop@g230091093.adsl.alicedsl.de] has quit [Ping timeout: 240
16:44 < gmilleramilar> anyone know what the grand plan is for the work in
16:45 < angasule> ww: I'm not very familiar with OS X, maybe in a couple of
weeks I'll develop for the iphone for a while and learn the nuts and bolts of OS X
and iOS :)
16:45 < ww> angasule: i don't deny there is a use case...  just that for me
that use case is rare...
16:45 < aiju> angasule: objective c ..
16:45 < ww> i don't need three or four versions each of gcc, python, java,
16:45 -!- wrtp [~rog@] has joined #go-nuts
16:46 < aiju> the stupid thing is, i do need two versions of gcc and python
16:46 < aiju> gcc 3/4 and python 2/3
16:46 < aiju> although i have had no use for gcc 3 for some time now ...
16:47 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-154-90.clienti.tiscali.it] has
joined #go-nuts
16:48 < angasule> aiju: not a big fan of that
16:48 < angasule> Objective-C, I mean
16:48 < aiju> angasule: all i can say about OS X that pretty much everything
i heard about its internals frightened me quite a bit
16:49 < aiju> i think there is XML even in the file system or something
16:50 < exch> I posit that 'XML' is an ancient latin term for 'satan'
16:50 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
16:51 < aiju> exch: no, i don't think so ...  satan is at least effective
16:51 < angasule> heh
16:52 < angasule> I think XML strikes the perfect balance between difficult
to parse for a computer and difficult to read for a human being
16:52 < angasule> still, I like to know how things work, even if it's the
devil's spawn
16:53 < aiju> haha
16:56 < krutcha> I think non-compliant pseudo-XML is useful lol, and easy to
16:56 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:59 -!- gregschlom [~quassel@] has quit [Ping timeout: 276
17:00 < aiju> krutcha: attributes are a pain in the ass
17:00 < aiju> so are namespaces
17:00 < aiju> basically every XML feature
17:00 < aiju> so just use S-Expr
17:00 < krutcha> agreed, but I see what people 'call' XML all over the place
in application specific uses, minus most of those features.
17:01 < str1ngs> angasule: are you using squeeze?
17:01 < exch> S-expressions are pretty cool
17:01 < exch> super versatile
17:02 -!- tvw [~tv@e176006125.adsl.alicedsl.de] has joined #go-nuts
17:03 < aiju> krutcha: most people seem to use XML because it's
17:03 < aiju> i don't really know what sort of brain worm leads people to
believe that similar looking data can be treated equally
17:04 < str1ngs> err I guess wheezy is the new squeeze
17:06 < angasule> str1ngs: no, testing, which is currently wheezy
17:07 < str1ngs> angasule: saw that thanks
17:07 < angasule> str1ngs: sorry, I'm only halfway here :)
17:08 < str1ngs> angasule: is multilib default on debian?
17:08 < angasule> str1ngs: hmm, they are both available, let me check the
17:08 < str1ngs> what arch are you on?
17:08 < str1ngs> i386 or x86_64?
17:09 < angasule> I guess non-multilib, I'm on x86_64
17:10 < str1ngs> can you pastebin dpkg -F libgo assuming libgo is the
package name.
17:10 < str1ngs> pretty sure thats the right dpkg syntax
17:11 < str1ngs> sorry its -L
17:14 < angasule> yeah, one sec
17:14 < str1ngs> angasule: actually no worries I'll just debootstrap wheezy
17:14 < str1ngs> then I can look at the deb src's
17:14 < str1ngs> hopefully its not a bunch of install's
17:15 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:b54a:e0ab:3c1d:67df] has joined
17:15 < angasule> http://pastebin.com/F35Rj5NX
17:15 < str1ngs> ah thanks
17:15 < angasule> you're welcome :)
17:16 < str1ngs> ah thats what I was hopeing it would look like
17:19 < mpl> is there any requirement goinstall to work with something one
puts on github/bitbucket/whatever?
17:19 < mpl> is a standard go makefile enough?
17:19 < skelterjohn> all package source goes in the same directory
17:20 < skelterjohn> it ignores your makefile
17:20 < mpl> oh.
17:20 < mpl> so all I need is my go files to be there?
17:20 < skelterjohn> yes
17:20 < mpl> cool.
17:20 < skelterjohn> (and no extra go files)
17:20 < mpl> thx
17:20 < mpl> ah good point
17:20 < mpl> how about the test ones?
17:20 < skelterjohn> those are fine
17:20 < mpl> k
17:21 < skelterjohn> it will download your makefile into
17:21 < skelterjohn> but it won't execute it to build
17:21 -!- Boney [~paul@124-168-103-51.dyn.iinet.net.au] has quit [Ping timeout:
240 seconds]
17:22 < mpl> so there's no way to have something automatically build and
install in the packages the tree?
17:22 < mpl> *packages of the tree
17:22 < mpl> sorry, tired.
17:22 < str1ngs> mpl: locally yes.  with make install
17:23 -!- Boney [~paul@124-168-103-51.dyn.iinet.net.au] has joined #go-nuts
17:23 < str1ngs> provided you use a Makefile template
17:23 < mpl> well, that's not automatic.
17:23 < str1ngs> then goinstall
17:23 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-165-250.clienti.tiscali.it] has
joined #go-nuts
17:23 < str1ngs> not sure if that will work locally though
17:23 < mpl> wait, I'm confused.  will goinstall download, build, and
install, or just download?
17:24 < str1ngs> all three
17:24 < mpl> oh, skelterjohn was speaking of the makefile itself, read too
17:24 -!- thiago__ [~thiago@bananal.lbd.dcc.ufmg.br] has quit [Quit: bye]
17:24 < mpl> ok then.
17:24 < str1ngs> but imo you should provide a Makefile not all people use
goinstall.  and they are pretty trivial
17:24 < skelterjohn> goinstall works locally
17:24 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has joined #go-nuts
17:24 < mpl> str1ngs: I already have a makefil..
17:25 < skelterjohn> if you "goinstall X" and there is $GOROOT/src/pkg/X
17:25 < aiju> or just use fucking makefiles, jesus
17:25 < skelterjohn> it will not try to download anything - just build the
source in src/pkg/X (with an automatically generated temporary makefile)
17:25 < mpl> aiju: I already do.
17:25 < str1ngs> aiju: I agree not sure what the issue is with Makefiles
17:26 < skelterjohn> the issue is goinstall doesn't use them, so if you want
your package to work with goinstall it can't do something fancy in the makefile
17:26 -!- artefon [~thiago@bananal.lbd.dcc.ufmg.br] has quit [Client Quit]
17:26 < mpl> well, it's a pain when you pull the go tree to have to remake
my hand all the external packages you also use.
17:26 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-154-90.clienti.tiscali.it] has
quit [Ping timeout: 252 seconds]
17:26 < skelterjohn> i don't use any external packages that aren't
goinstalled :)
17:26 < skelterjohn> so i can just do "goinstall -a -clean" when i update go
17:26 < mpl> skelterjohn: exactly.
17:27 < mpl> hence my questions to know if goinstall would help me, which is
yes :)
17:27 < skelterjohn> it will be less of an issue when the new gomake is
17:27 < mpl> or yeah, I could stop being lazy and just make script that cds
into all the ones I need and make them.
17:27 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
17:28 < skelterjohn> sounds like a pain in the ass
17:28 < skelterjohn> gb can do it, too
17:28 < mpl> skelterjohn: less than doing it by hand over everytime I
17:28 < skelterjohn> but w/e
17:28 < str1ngs> mpl: I think goinstall -a -clean is what you are looking
17:28 < skelterjohn> str1ngs: he's talking about packages that he got by
means other than goinstall
17:29 < str1ngs> so make install
17:29 < skelterjohn> lol
17:29 < skelterjohn> oh, str1ngs
17:29 < mpl> skelterjohn: nevermind, they don't seem to read :)
17:29 < str1ngs> really is make that hard for people?
17:29 < str1ngs> not all people need hand holding
17:30 < mpl> and some ppl need to learn to read before repeating themselves
17:34 < str1ngs> mpl: speaking of reading all of this is listed under
goinstall -h and well documented in golang.org/cmd/goinstall
17:35 < mpl> yep, nothing beats rtfm :)
17:38 -!- TheMue [~TheMue@p5DDF6627.dip.t-dialin.net] has joined #go-nuts
17:41 -!- reds [~reds@pool-74-101-147-57.nycmny.fios.verizon.net] has joined
17:42 < plexdev> http://is.gd/kz1wgr by [Brad Fitzpatrick] in
go/src/pkg/http/ -- http: consume request bodies before replying
17:44 -!- rutkowski [~adrian@178235048012.walbrzych.vectranet.pl] has joined
17:47 -!- tensai_cirno [~cirno@] has joined #go-nuts
17:51 -!- TheMue [~TheMue@p5DDF6627.dip.t-dialin.net] has quit [Remote host closed
the connection]
17:51 -!- joelkronander
[~joelkrona@c-bf2fe253.617-1-64736c22.cust.bredbandsbolaget.se] has joined
17:52 -!- TheMue [~TheMue@p5DDF6627.dip.t-dialin.net] has joined #go-nuts
17:52 -!- zerosanity [~josh@] has quit [Remote host closed the
18:11 -!- sebastianskejoe [~sebastian@] has joined #go-nuts
18:15 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Read error: No
route to host]
18:17 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
18:17 -!- keithgcascio [~keithcasc@nat/google/x-rytjlsabchzjfjth] has joined
18:18 -!- rutkowski [~adrian@178235048012.walbrzych.vectranet.pl] has quit [Quit:
WeeChat 0.3.3-dev]
18:21 -!- kr [~kr@c-24-5-193-165.hsd1.ca.comcast.net] has joined #go-nuts
18:23 -!- matti__ [~mumboww@c-24-6-22-101.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
18:26 -!- boscop [~boscop@g227137029.adsl.alicedsl.de] has joined #go-nuts
18:30 -!- matti_ [~mumboww@c-24-6-22-101.hsd1.ca.comcast.net] has joined #go-nuts
18:31 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has joined
18:32 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has joined #go-nuts
18:35 -!- itrekkie [~itrekkie@ip72-200-105-157.tc.ph.cox.net] has joined #go-nuts
18:36 -!- kr [~kr@c-24-5-193-165.hsd1.ca.comcast.net] has quit [Ping timeout: 246
18:38 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
18:44 -!- matti_ [~mumboww@c-24-6-22-101.hsd1.ca.comcast.net] has quit [Ping
timeout: 246 seconds]
18:44 -!- GeertJohan [~Squarc@] has quit [Quit: Leaving.]
18:45 -!- arun_ [~arun@unaffiliated/sindian] has quit [Ping timeout: 246 seconds]
18:46 -!- ako [~nya@fuld-590c6635.pool.mediaWays.net] has joined #go-nuts
18:48 -!- aho [~nya@fuld-590c6070.pool.mediaWays.net] has quit [Ping timeout: 246
18:48 -!- photron [~photron@port-92-201-122-127.dynamic.qsc.de] has joined
18:48 -!- huin [~huin@] has joined #go-nuts
18:49 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Ping
timeout: 246 seconds]
18:50 -!- femtoo [~femto@95-89-249-242-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
18:54 -!- TheMue [~TheMue@p5DDF6627.dip.t-dialin.net] has quit [Quit: TheMue]
18:55 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
18:55 -!- TheMue [~TheMue@p5DDF6627.dip.t-dialin.net] has joined #go-nuts
18:57 -!- matti_ [~mumboww@c-24-6-22-101.hsd1.ca.comcast.net] has joined #go-nuts
19:00 < plexdev> http://is.gd/79SVxz by [Adam Langley] in
go/src/pkg/crypto/tls/ -- crypto/tls: add server-side OCSP stapling support.
19:00 < plexdev> http://is.gd/4Nwmfx by [Brad Fitzpatrick] in
go/src/cmd/gotest/ -- gotest: generate gofmt-compliant code
19:00 < plexdev> http://is.gd/9i5ybe by [Lucio De Re] in
go/src/pkg/runtime/plan9/ -- pkg/runtime/plan9: Warning remediation, for Plan 9
19:03 -!- espeed [~espeed@] has quit [Ping timeout: 246 seconds]
19:03 -!- zozoR [~Morten@56344b27.rev.stofanet.dk] has quit [Remote host closed
the connection]
19:05 -!- matti_ [~mumboww@c-24-6-22-101.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
19:12 -!- matti_ [~mumboww@c-24-6-22-101.hsd1.ca.comcast.net] has joined #go-nuts
19:15 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Remote
host closed the connection]
19:16 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has joined
19:24 -!- espeed [~espeed@] has joined #go-nuts
19:28 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Disconnected by
19:29 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts
19:31 -!- espeed [~espeed@] has quit [Ping timeout: 246 seconds]
19:32 -!- espeed [~espeed@] has joined #go-nuts
19:33 -!- fmoo [~Adium@c-76-102-41-101.hsd1.ca.comcast.net] has quit [Quit:
19:34 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-165-250.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
19:36 -!- matti_ [~mumboww@c-24-6-22-101.hsd1.ca.comcast.net] has quit [Ping
timeout: 252 seconds]
19:42 -!- matti_ [~mumboww@c-24-6-22-101.hsd1.ca.comcast.net] has joined #go-nuts
19:44 -!- espeed [~espeed@] has quit [Ping timeout: 246 seconds]
19:45 -!- tensai_cirno [~cirno@] has quit [Quit: WeeChat 0.3.3]
19:45 -!- espeed [~espeed@] has joined #go-nuts
19:46 < kamaji> oh....  we're supposed to name our result parameters?  :D
19:48 -!- dj2_ [~dj2@] has joined #go-nuts
19:49 < kamaji> Is it possible to specify a member in an interface?
19:49 < kamaji> like a float64?
19:49 < angasule> no
19:49 -!- dj2 [~dj2@] has quit [Ping timeout: 260 seconds]
19:49 < kamaji> ok, cheers
19:53 -!- sebastianskejoe [~sebastian@] has quit [Quit: Lost
19:53 -!- firwen [~firwen@gex01-1-78-234-55-225.fbx.proxad.net] has joined
19:58 -!- cafesofie [~cafesofie@ool-4a5a6ee5.dyn.optonline.net] has quit [Remote
host closed the connection]
19:58 < niemeyer> kamaji: We're not supposed to, we can though
19:59 -!- coolaj86 [~coolaj86@] has quit [Ping timeout: 246 seconds]
20:01 -!- fmoo [~Adium@] has joined #go-nuts
20:04 < kamaji> niemeyer: ooh.  I know stuff happens with type embedding
when you put an interface in an interface, what happens if you do it with a basic
20:04 < kamaji> can you use it like that type?  :D
20:04 < kamaji> (I've decided not to do this anyway, just curious~)
20:05 < niemeyer> kamaji: Not sure about what you mean..  what does "put an
interface in an interface" mean?
20:05 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Remote host closed the
20:05 < kamaji> I've not actually tried this so I might have the wrong end
of the stick
20:06 < kamaji> someone posted this http://pastebin.com/WN8evQCM a while ago
20:06 < nsf> kamaji: you can't do that with a basic type
20:06 < nsf> with struct types you can
20:06 < nsf> I mean basic type is like int, float, bool
20:06 < kamaji> yeah
20:06 < nsf> struct can do embedding as well
20:07 < nsf> all methods from one struct got moved to another
20:07 < kamaji> oh really?  I didn't realise that
20:07 < nsf> like with interfaces
20:07 < niemeyer> nsf: Can't do what?
20:07 < nsf> niemeyer: embedding
20:07 < kamaji> niemeyer: if you have type A inside type B, B gets A's
20:07 < nsf> type X struct { a, b, c int }
20:07 < niemeyer> nsf: Ahh, struct embedding, ok
20:07 < kamaji> as in B.methodInA()
20:07 < nsf> type Y struct { X }
20:08 < nsf> kamaji: yeah
20:08 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts
20:08 < nsf> and fields, but indirectly
20:08 < nsf> var y Y
20:08 < nsf> x.X.a = 1
20:08 < nsf> etc.
20:08 < nsf> it's an interesting feature allows you do different kinds of
20:09 < nsf> although I haven't seen an awesome example of use for that
20:09 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has joined
20:10 -!- arun_ [~arun@unaffiliated/sindian] has joined #go-nuts
20:11 < niemeyer> nsf: Mutex is probably the classical example
20:11 < nsf> and useless :)
20:11 < niemeyer> Hm?
20:11 < nsf> I mean it has only two methods
20:11 < nsf> why embedding it that way
20:11 < nsf> isn't a beautiful example
20:12 -!- cafesofie [~cafesofie@ool-4a5a6ee5.dyn.optonline.net] has joined
20:12 < niemeyer> nsf: I find it nice..  value.Lock() looks good
20:12 < nsf> ok, but it's not what I'm looking for :)
20:14 * niemeyer hugs nsf
20:14 < niemeyer> nsf: I'm sure you'll find your way
20:18 < nsf> :)
20:18 -!- angasule [~angasule@] has quit [Read error: Connection reset
by peer]
20:20 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Remote host closed the
20:21 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts
20:25 -!- reds [~reds@pool-74-101-147-57.nycmny.fios.verizon.net] has quit [Remote
host closed the connection]
20:32 -!- reds [~reds@pool-74-101-147-57.nycmny.fios.verizon.net] has joined
20:32 -!- photron [~photron@port-92-201-122-127.dynamic.qsc.de] has quit [Read
error: Operation timed out]
20:34 < plexdev> http://is.gd/bjIWQe by [Rob Pike] in 5 subdirs of go/src/
-- for GCC4.6: fix a bunch of set-and-not-used errors.
20:34 -!- dj2 [~dj2@] has joined #go-nuts
20:37 -!- dj2_ [~dj2@] has quit [Ping timeout: 260 seconds]
20:43 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed
the connection]
20:44 -!- TheMue [~TheMue@p5DDF6627.dip.t-dialin.net] has quit [Quit: TheMue]
20:48 -!- dreadlorde [~dreadlord@c-24-11-39-160.hsd1.mi.comcast.net] has quit
[Ping timeout: 252 seconds]
20:50 < plexdev> http://is.gd/fKO1sL by [Brad Fitzpatrick] in
go/src/pkg/http/ -- http: be clear when failing to connect to a proxy
20:50 -!- dj2 [~dj2@] has quit [Remote host closed the connection]
20:52 -!- coolaj86 [~coolaj86@] has joined #go-nuts
20:52 -!- pharris [~Adium@rhgw.opentext.com] has quit [Quit: Leaving.]
20:54 -!- sebastian [~sebastian@] has joined #go-nuts
20:54 -!- sebastian [~sebastian@] has quit [Quit: Changing server]
20:56 -!- fmoo [~Adium@] has quit [Quit: Leaving.]
20:59 -!- sebastian [~sebastian@] has joined #go-nuts
21:02 -!- fmoo [~Adium@] has joined #go-nuts
21:02 -!- sebastian [~sebastian@] has quit [Client Quit]
21:04 -!- itrekkie [~itrekkie@ip72-200-105-157.tc.ph.cox.net] has quit [Quit:
21:09 -!- sebastian [~sebastian@] has joined #go-nuts
21:13 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
21:14 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has quit [Client
21:14 -!- jhawk28 [~jhawk28@user-387c58d.cable.mindspring.com] has joined #go-nuts
21:14 -!- sebastian [~sebastian@] has quit [Quit: Lost terminal]
21:15 -!- sebastian [~sebastian@] has joined #go-nuts
21:15 -!- sebastian [~sebastian@] has quit [Client Quit]
21:17 -!- aho [~nya@fuld-590c6635.pool.mediaWays.net] has quit [Quit:
21:23 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:b54a:e0ab:3c1d:67df] has quit
[Quit: Leaving.]
21:24 -!- firwen [~firwen@gex01-1-78-234-55-225.fbx.proxad.net] has quit [Remote
host closed the connection]
21:25 -!- damikin11 [~damikin11@cpe-24-30-179-173.socal.res.rr.com] has joined
21:26 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
21:27 -!- kevmoo__ [~bojibob@] has joined #go-nuts
21:29 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
21:31 -!- awidegreen [~quassel@c-cfc5e555.08-2-73746f39.cust.bredbandsbolaget.se]
has quit [Remote host closed the connection]
21:36 -!- rlab [~Miranda@] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
21:37 < plexdev> http://is.gd/PRsZ8j by [Robert Griesemer] in 2 subdirs of
go/src/cmd/gofmt/ -- gofmt: don't crash when rewriting nil interfaces in AST.
21:39 -!- piranha_ [~piranha@5ED43A0B.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
21:39 -!- fmoo [~Adium@] has quit [Quit: Leaving.]
21:40 -!- huin [~huin@] has quit [Quit: -> bed]
21:46 -!- fmoo [~Adium@] has joined #go-nuts
21:49 -!- m4dh4tt3r [~Adium@c-69-181-223-245.hsd1.ca.comcast.net] has quit [Quit:
21:51 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.4]
21:54 -!- wrtp [~rog@] has quit [Quit: wrtp]
22:01 -!- kevmoo__ [~bojibob@] has quit [Quit: kevmoo__]
22:03 -!- fmoo [~Adium@] has quit [Quit: Leaving.]
22:09 -!- fmoo [~Adium@] has joined #go-nuts
22:10 < plexdev> http://is.gd/ZsqSyY by [Petar Maymounkov] in
go/src/pkg/http/ -- http: don't quote Set-Cookie Domain and Path
22:11 -!- hypertux [~hypertux@vps1.joelegasse.com] has quit [Ping timeout: 248
22:12 -!- prasmuss1n [pii@rasm.se] has quit [Ping timeout: 276 seconds]
22:12 -!- hypertux [~hypertux@vps1.joelegasse.com] has joined #go-nuts
22:12 -!- prasmussen [pii@rasm.se] has joined #go-nuts
22:12 -!- mdxi [~mdxi@li11-97.members.linode.com] has quit [Ping timeout: 276
22:13 -!- mdxi [~mdxi@li11-97.members.linode.com] has joined #go-nuts
22:28 -!- itrekkie [~itrekkie@ip72-200-105-157.tc.ph.cox.net] has joined #go-nuts
22:30 -!- m4dh4tt3r [~Adium@] has joined #go-nuts
22:31 -!- adg [~nf@2001:470:21:20::4444:61d9] has quit [Read error: Operation
timed out]
22:33 -!- Glasswalker
[~Glasswalk@CPE002369b3cd1a-CM00222d53f155.cpe.net.cable.rogers.com] has joined
22:33 < Glasswalker> Hey, so can anyone tell me what's wrong with this code:
22:34 < justinlilly> Glasswalker: it's typically helpful if you say what the
problem you're experiencing is.
22:34 < Glasswalker> it's a simplified test case which throws the same error
as my main code
22:34 < Glasswalker> Lines 57/59
22:34 < Glasswalker> can't do the type assertion
22:34 < Glasswalker> or use types in that way
22:35 < Glasswalker> getting 2 errors I can paste them in here but thought
they were a bit big
22:35 < Glasswalker> Basically it's saying can't do type assertion because
neither Packet or DummyPacket implement the iPacket interface
22:35 < Glasswalker> because they are missing the Add method
22:36 < Glasswalker> it extends the error later saying "Packet does not
implement iPacket (Add method requires pointer receiver)"
22:36 < Glasswalker> which I don't really understand :) lol
22:37 -!- cafesofie [~cafesofie@ool-4a5a6ee5.dyn.optonline.net] has quit [Read
error: Connection reset by peer]
22:37 -!- cafesofie [~cafesofie@ool-4a5a6ee5.dyn.optonline.net] has joined
22:38 < justinlilly> Glasswalker: I don't entirely understand why you're
converting from an iPacket to a DummyPacket
22:38 < justinlilly> they don't seem to have any fields in common.  Not sure
why that should work.
22:38 < justinlilly> or rather why you expect it to work (as it obviously
*doesn't* work)
22:39 -!- adg [~nf@2001:470:21:20::4444:61d9] has joined #go-nuts
22:39 -!- mode/#go-nuts [+o adg] by ChanServ
22:42 -!- reds [~reds@pool-74-101-147-57.nycmny.fios.verizon.net] has quit [Remote
host closed the connection]
22:43 < Glasswalker> justinlilly: in my actual app I will have tons of
things requiring doing processing on a DummyPacket
22:43 < Glasswalker> but all packets come in as a Packet
22:43 < Glasswalker> there will be several types of packets
22:43 < Glasswalker> DummyPacket is a simple example
22:44 < Glasswalker> they get decoded from a Packet
22:45 < Glasswalker> essentially I need a way to convert from a packet to
some other type of packet
22:45 < Glasswalker> and back again
22:45 < Glasswalker> trying to figure out how to do that with interfaces
22:45 < Glasswalker> and they do have fields in common
22:45 < Glasswalker> DummyPacket has all of Packet's fields
22:45 < Glasswalker> just not the other way around
22:46 < Glasswalker> but since DummyPacket's data is all derived from
Packets (in this example it's divided out of sum)
22:46 < Glasswalker> I can "decode" it
22:47 -!- artefon [~thiago@] has joined #go-nuts
22:48 < Glasswalker> I can show you the real code, but I can't find a way to
make it more succinct...
22:48 < Glasswalker> and it's big
22:50 -!- JusticeFries_
[~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net] has joined #go-nuts
22:52 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Ping timeout: 264 seconds]
22:56 -!- fmoo [~Adium@] has quit [Quit: Leaving.]
22:56 < JusticeFries> anyone using the new MBA for dev?
22:57 -!- Venom_X [~pjacobs@75-27-133-72.lightspeed.austtx.sbcglobal.net] has quit
[Read error: Connection reset by peer]
22:58 -!- fmoo [~Adium@] has joined #go-nuts
22:59 -!- boomtopper
[~boomtoppe@cpc12-nrte22-2-0-cust249.8-4.cable.virginmedia.com] has quit [Ping
timeout: 250 seconds]
23:00 < justinlilly> Glasswalker: The issue with the code you provided is
that you're trying to convert 2 types that aren't equivalent.
23:01 < justinlilly> Packet and DummyPacket are distinctly different.
23:01 < justinlilly> It looks like you may want to do something like: p :=
DummyPacket; p.Packet = pOrigin
23:02 < justinlilly> ...  unless I'm missing something?
23:03 -!- virtualsue [~chatzilla@nat/cisco/x-nlwtvgdcrwefhmwx] has quit [Ping
timeout: 240 seconds]
23:07 < justinlilly> Unless perhaps you mean for DummyPacket to extend
Packet and not struct?
23:07 -!- reds_ [~reds@pool-74-101-147-57.nycmny.fios.verizon.net] has joined
23:09 -!- damikin11 [~damikin11@cpe-24-30-179-173.socal.res.rr.com] has left
#go-nuts []
23:13 -!- dfc [~dfc@eth59-167-133-99.static.internode.on.net] has joined #go-nuts
23:16 -!- jgonzalez [~jgonzalez@173-14-137-134-NewEngland.hfc.comcastbusiness.net]
has quit [Ping timeout: 246 seconds]
23:20 -!- zimsim [~simon@] has quit [Remote host closed the
23:25 -!- krutcha [~krutcha@remote.icron.com] has quit [Quit: Leaving]
23:26 -!- ExtraSpice [XtraSpice@] has quit [Read error: Connection
reset by peer]
23:30 -!- grumpytoad [~niel@t1004.greatnet.de] has quit [Ping timeout: 276
23:31 -!- grumpytoad [~niel@t1004.greatnet.de] has joined #go-nuts
23:36 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Remote host closed the connection]
23:36 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
23:41 -!- coolaj86 [~coolaj86@] has quit [Quit: coolaj86]
23:41 -!- cenuij [~cenuij@] has joined #go-nuts
23:41 -!- cenuij [~cenuij@] has quit [Changing host]
23:41 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
23:43 < plexdev> http://is.gd/gUS7s7 by [Robert Griesemer] in
go/src/cmd/gofmt/ -- gofmt: gofmt test harness bug fix
23:47 -!- wchicken [~chicken@c-24-7-112-207.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
23:48 -!- krolaw [~krolaw@] has joined #go-nuts
23:50 -!- boscop_ [~boscop@f055241134.adsl.alicedsl.de] has joined #go-nuts
23:52 -!- boscop [~boscop@g227137029.adsl.alicedsl.de] has quit [Ping timeout: 246
23:57 -!- Scorchin [~Scorchin@host109-156-12-87.range109-156.btcentralplus.com]
has quit [Quit: Scorchin]
23:59 -!- wchicken [~chicken@c-98-248-194-46.hsd1.ca.comcast.net] has joined
--- Log closed Fri Apr 15 00:00:50 2011