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

--- Log opened Wed Jan 26 00:00:05 2011
00:00 < niemeyer> jnwhiteh: Aha, ok
00:00 -!- Scorchin [~Scorchin@host86-135-215-158.range86-135.btcentralplus.com]
has joined #go-nuts
00:00 < niemeyer> jnwhiteh: What kind of symbol?
00:00 < jnwhiteh> http://paste.pocoo.org/show/326939/ is the results of
compilation and http://paste.pocoo.org/show/326915/ is the test program in
question
00:00 < niemeyer> jnwhiteh: Hmmmm
00:01 < niemeyer> jnwhiteh: What Lua version are you using?
00:01 < jnwhiteh> that's stock 5.1.4, freshly downloaded and in the repo =)
00:02 < jnwhiteh> https://github.com/jnwhiteh/cgo-lua-test is what I'm
working on
00:02 -!- iant [~iant@nat/google/x-qkniehjudjdimsar] has quit [Quit: Leaving.]
00:05 < niemeyer> Ok, yeah, let me check that out
00:05 -!- jesusaurus [jesusaur@firefly.cat.pdx.edu] has left #go-nuts ["WeeChat
0.3.2"]
00:14 -!- boscop [~boscop@f055200066.adsl.alicedsl.de] has quit [Ping timeout: 240
seconds]
00:19 -!- iant [~iant@nat/google/x-flepnhvgpfxypcob] has joined #go-nuts
00:19 -!- mode/#go-nuts [+v iant] by ChanServ
00:20 -!- iant [~iant@nat/google/x-flepnhvgpfxypcob] has quit [Client Quit]
00:20 -!- iant [~iant@nat/google/x-kplxygfolcodgeeu] has joined #go-nuts
00:20 -!- mode/#go-nuts [+v iant] by ChanServ
00:20 -!- tvw [~tv@e176003154.adsl.alicedsl.de] has quit [Remote host closed the
connection]
00:21 < uriel> 23:50 < KBme> seemed logical that it would only work
with gccgo but ah well, my logic is probably flawed
00:22 < uriel> KBme: it is flawed, gccgo doesn't need and can't use cgo
(AFAIK)
00:23 < uriel> jnwhiteh: do you have problems building other bindings?
00:23 < jnwhiteh> uriel: I've never tried, to be honest
00:23 < jnwhiteh> I can try to build the stdio bindings real quick, one sec
00:24 < jnwhiteh> the stdio/hello example works properly
00:24 -!- camnaes [~cm@c-69-255-143-16.hsd1.md.comcast.net] has joined #go-nuts
00:25 < uriel> ok, that is good to know then
00:25 < niemeyer> jnwhiteh: I see..
00:26 < niemeyer> jnwhiteh: Yeah, that's not going to work like that
00:26 < jnwhiteh> can you point me in the right direction?  =)
00:27 < jnwhiteh> then I can avoid mailing the entire list for what is (as
expected) my mistake :P
00:27 < niemeyer> jnwhiteh: Yes, you can link against the shared library, or
you can include the raw .o files so that they get packed together
00:27 < jnwhiteh> I've done both of those
00:28 < jnwhiteh> one sec and I'll show you
00:28 < niemeyer> make[1]: Leaving directory
`/home/niemeyer/src/tmp/cgo-lua-test/lua-5.1.4'
00:28 < niemeyer> cp _obj/golua.a
"/home/niemeyer/src/go/pkg/linux_amd64/golua.a"
00:28 < niemeyer> 6g basic.go
00:28 < niemeyer> 6l -o basic basic.6
00:30 < jnwhiteh> niemeyer: http://paste.pocoo.org/show/326949/
00:30 < niemeyer> jnwhiteh: See above
00:30 < jnwhiteh> you can see there that I'm linking against the individual
.o
00:31 -!- iant [~iant@nat/google/x-kplxygfolcodgeeu] has quit [Read error:
Operation timed out]
00:32 < jnwhiteh> niemeyer: I get the same issue regardless of what I do
00:32 < jnwhiteh> so I'm clearly missing something =)
00:34 < niemeyer> Hmm
00:35 -!- iant [~iant@nat/google/x-wixlfrjgdhpmsdjz] has joined #go-nuts
00:35 -!- mode/#go-nuts [+v iant] by ChanServ
00:35 -!- iant1 [~iant@67.218.105.75] has joined #go-nuts
00:36 < jnwhiteh> niemeyer: I've tried to link against -llua, the .o files
themselves and ensured that the package was being installed after each time.  What
changes did you end up making that let it build?
00:38 < niemeyer> jnwhiteh: I just built it as usual for linking with a
shared library
00:38 < jnwhiteh> which is how?  =)
00:38 < niemeyer> jnwhiteh: CGO_LDFLAGS=-llua5.1
00:39 < niemeyer> jnwhiteh: and -lm
00:39 -!- iant [~iant@nat/google/x-wixlfrjgdhpmsdjz] has quit [Ping timeout: 255
seconds]
00:40 < jnwhiteh> perhaps it has something to do with the way lua has been
installed on my system
00:40 < jnwhiteh> let me check that out quick
00:42 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
00:43 < jnwhiteh> so I removed Lua from my system (it was installed using
homebrew).  I then compiled Lua from clean source, and installed it to /usr/local.
I've then built the library using make install and tried to manually 6g/6l
basic.go/6 and I'm getting the same results.
00:43 < jnwhiteh> It's odd that you encountered the same problem but then
were able to fix it
00:45 < niemeyer> jnwhiteh: Still investigating here..  I think there is
something catchy there
00:45 < niemeyer> jnwhiteh: The static linking isn't working as I'd expect
either
00:46 < jnwhiteh> testing on a mac as well or experiencing the issue
elsewhere?
00:46 < jnwhiteh> I previously had issues with Homebrew stripping symbols
from the libraries, but that got fixed when we got luarocks installing alongside
it
00:47 -!- xash [~xash@d073042.adsl.hansenet.de] has quit [Ping timeout: 246
seconds]
00:47 < niemeyer> jnwhiteh: No, Linux
00:47 < jnwhiteh> ah, okay
00:47 < jnwhiteh> they both use the same defines at the toplevel in 5.1.4,
so that should be fine
00:48 < niemeyer> jnwhiteh: Ah, man..
00:48 < niemeyer> DUh
00:48 < niemeyer> Let me confirm something
00:50 -!- iant [~iant@67.218.105.75] has joined #go-nuts
00:50 -!- mode/#go-nuts [+v iant] by ChanServ
00:50 -!- iant1 [~iant@67.218.105.75] has quit [Quit: Leaving.]
00:51 -!- krakensden [~krakensde@c-67-166-147-17.hsd1.ca.comcast.net] has joined
#go-nuts
00:53 -!- iant [~iant@67.218.105.75] has quit [Client Quit]
00:53 -!- iant [~iant@67.218.105.75] has joined #go-nuts
00:53 -!- mode/#go-nuts [+v iant] by ChanServ
00:54 < niemeyer> jnwhiteh: Nope..  recompiled lua with proper flags (-fPIC,
etc)..  no game still
00:55 < krakensden> hey, I've been trying to compile of C library wrappers,
and I have the same problem with each of them.  8g makes a _cgo_defun.c file it
can't compile, most of the errors look like so: 'function args not checked:
cgocall'
00:55 < jnwhiteh> Blah, okay.  I've posted to the mailing list, perhaps
someone there will see what I can't
00:57 < niemeyer> jnwhiteh: Yeah, I'll have to dig in into the compiler to
see what's up
00:57 < niemeyer> jnwhiteh: Russ will know for sure, either way
00:57 < jnwhiteh> no problem.  I'm always here so feel free to ping me and
I'll get back to you in the morning..  or respond to the email thread I suppose so
the whole world can see =)
00:58 < jnwhiteh>
http://groups.google.com/group/golang-nuts/browse_thread/thread/c535d0118e4c2322
00:58 < jnwhiteh> and thank you for your help!
00:59 < niemeyer> jnwhiteh: No problem, sorry I couldn't solve the actual
issue
01:00 < niemeyer> yet :-)
01:00 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
01:00 -!- gabriel9 [~gabriel9@93.157.192.28] has left #go-nuts []
01:02 < niemeyer> jnwhiteh: Btw, I think the email you sent will likely
yield a more trivial answer
01:02 < niemeyer> jnwhiteh: You're building a .o using a static library..
the symbol simply won't be there
01:03 < niemeyer> jnwhiteh: If you open up golua.a, there will be no trace
of liblua
01:03 < niemeyer> jnwhiteh: The more interesting case is why including the
objects themselves crash with undefined symbols, even though they *are* there
01:15 -!- saturnfive [~saturnfiv@210.74.155.131] has joined #go-nuts
01:26 -!- m4dh4tt3r
[~Adium@75.144.24.109-BusName-walnutcreek.ca.hfc.comcastbusiness.net] has quit
[Quit: Leaving.]
01:31 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Remote
host closed the connection]
01:34 -!- enherit [~enherit@cpe-98-149-170-48.socal.res.rr.com] has quit [Quit:
leaving]
01:38 -!- m4dh4tt3r [~Adium@112.sub-75-208-134.myvzw.com] has joined #go-nuts
01:47 -!- Scorchin [~Scorchin@host86-135-215-158.range86-135.btcentralplus.com]
has quit [Quit: Scorchin]
02:03 -!- iant [~iant@67.218.105.75] has quit [Quit: Leaving.]
02:19 -!- l00t [~i-i3id3r_@189.105.21.59] has quit [Quit: Leaving]
02:20 -!- binarypie [~binarypie@adsl-99-185-244-154.dsl.pltn13.sbcglobal.net] has
quit [Remote host closed the connection]
02:28 -!- m4dh4tt3r [~Adium@112.sub-75-208-134.myvzw.com] has quit [Ping timeout:
250 seconds]
02:42 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
02:45 -!- niemeyer [~niemeyer@189.74.207.121] has quit [Ping timeout: 240 seconds]
02:52 -!- krakensden [~krakensde@c-67-166-147-17.hsd1.ca.comcast.net] has quit
[Quit: leaving]
02:58 -!- Tv1 [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
03:02 -!- j3parker [j3parker@artificial-flavours.csclub.uwaterloo.ca] has joined
#go-nuts
03:31 -!- cafesofie [~cafesofie@rnwifi-164-107-92-100.resnet.ohio-state.edu] has
joined #go-nuts
03:32 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Remote host closed the
connection]
03:33 -!- moderation [185a9dbc@gateway/web/freenode/ip.24.90.157.188] has joined
#go-nuts
03:38 -!- mosva [~mosva@unaffiliated/mosva] has joined #go-nuts
03:39 < moderation> Newbie question - I have an int64 slice comprised of
approx 200 Twitter 'friend' Id values.  Is there a way similar to strings.Index or
bytes.Index for me to lookup the slice to find specific Id's?
03:43 < Ina> Trying ./all.bash on windows now.  :)
03:45 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
03:53 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined
#go-nuts
04:18 < anticw> moderation: no, use a map if you need that bahavior
04:18 < anticw> Ina: does cross-compilation work for that?
04:20 < Ina> anticw, right now, it's not working at all, go itself compiled,
but mingw is giving me build errors for the pkg part
04:21 < moderation> anticw: makes sense re: maps.  Thanks
04:21 < anticw> Ina: i guess ./make.bash is what i mean anyhow
04:22 < anticw> all does tests which won't work when crossed
04:22 < anticw> Ina: what arch?
04:25 -!- camnaes [~cm@c-69-255-143-16.hsd1.md.comcast.net] has quit [Quit: ]
04:25 < anticw> Ina: i tried here and it's pulling in unistd.h ...  that
seems odd
04:25 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
04:25 < Ina> anticw, 386
04:32 < anticw> Ina: what local changes do you have there?
04:33 < Ina> As of yet, trying for a plain install using mingw
04:33 < anticw> oh, this is windows on windows?
04:33 < anticw> not a cross?
04:33 < Ina> yeah
04:35 < Ina> It's runtime\windows\386\sys.s that seems to be failing, syntax
errors
04:35 -!- moderation [185a9dbc@gateway/web/freenode/ip.24.90.157.188] has left
#go-nuts []
04:38 < Ina> aha, a google search suggests this is related to gawk.
Apparently you need nawk to build this thing on windows.
04:40 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 276
seconds]
04:40 < Ina> replaced gawk with nawk, retrying
04:41 < Ina> the adventures of trying to build go on windows.  :)
04:44 < anticw> ok, i got a cross mostly built
04:44 < anticw> won't run though
04:44 < anticw> i had to stub some things out in ugly ways
04:44 < anticw> but every encouraging it's close
04:44 < anticw> Ina: do you have a windos.h that was autogenerated?
04:46 < Ina> anticw, where should it be located?
04:46 < anticw> im not sure if it's generated or expected to be supplied
04:46 < anticw> do you have find from cygwin?
04:47 < Ina> No, I'm running MSYS/MinGW, not cygwin
04:48 < anticw> mingw probably has windows.h
04:48 < Ina> Should probably have it, yes.
04:49 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
04:49 -!- mode/#go-nuts [+v iant] by ChanServ
04:49 < Ina> But I'm getting the exact same error someone else did, and that
one was apparently an awk error.
04:50 < anticw> LocalAlloc is a macro?
04:51 < anticw> wow.  it built entirely with very little stubbed out
04:52 < anticw> that's quite impressive, if i will in those gaps i wonder if
it would even work
04:55 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
04:56 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has quit [Client
Quit]
05:02 -!- nettok [~quassel@200.119.188.130] has joined #go-nuts
05:05 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Ping
timeout: 255 seconds]
05:06 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts
05:06 < plexdev> http://is.gd/uGXCiU by [Andrew Gerrand] in 2 subdirs of go/
-- doc/codelab/wiki: update to work with template changes, add to run.bash
05:08 -!- jodaro [~user@70-36-136-156.dsl.dynamic.sonic.net] has joined #go-nuts
05:11 -!- keithcascio [~keithcasc@nat/google/x-ubtcyzbctpogablm] has quit [Quit:
Leaving]
05:46 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
06:18 -!- Kashia [~Kashia@port-92-200-30-31.dynamic.qsc.de] has quit [Quit: This
computer has gone to sleep]
06:40 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has joined #go-nuts
06:44 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has joined
#go-nuts
07:10 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has joined
#go-nuts
07:17 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has joined #go-nuts
07:20 -!- gid [~gid@220.253-197-230.VIC.netspace.net.au] has quit [Quit: Leaving.]
07:25 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
07:25 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
07:25 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
07:35 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
07:38 -!- cafesofie [~cafesofie@rnwifi-164-107-92-100.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
07:39 < plexdev> http://is.gd/Z109Gt by [Andrew Gerrand] in
go/doc/codelab/wiki/ -- doc/codelab/wiki: rename textarea name from Body to body
07:40 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-152-178.clienti.tiscali.it] has
joined #go-nuts
07:44 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:cc24:fc16:afbd:c8ff] has joined
#go-nuts
07:46 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts
07:46 -!- boscop [~boscop@f055150179.adsl.alicedsl.de] has joined #go-nuts
07:48 -!- krakensden [~krakensde@li221-186.members.linode.com] has joined #go-nuts
07:49 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has joined #go-nuts
07:56 -!- CrazyThinker [~san@unaffiliated/mosva] has joined #go-nuts
08:15 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has quit [Quit:
adu]
08:16 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
08:16 -!- decaf [~mehmet@85.110.237.34] has joined #go-nuts
08:19 -!- ExtraSpice [~XtraSpice@88.118.33.48] has joined #go-nuts
08:42 -!- TheSeeker2 [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has
joined #go-nuts
08:43 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has quit
[Ping timeout: 240 seconds]
08:45 -!- Belg [~kim@gw-gbg.ilait.se] has quit [Remote host closed the connection]
08:59 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has quit [Read error:
Operation timed out]
08:59 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has joined #go-nuts
09:01 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
09:04 -!- wrtp [~rog@92.17.43.14] has joined #go-nuts
09:10 -!- nettok [~quassel@200.119.188.130] has quit [Ping timeout: 240 seconds]
09:17 -!- decaf [~mehmet@85.110.237.34] has quit [Quit: Leaving.]
09:23 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
09:26 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Quit: Ex-Chat]
09:26 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
09:39 -!- gid [~gid@220.253-197-230.VIC.netspace.net.au] has joined #go-nuts
09:43 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
joined #go-nuts
09:46 -!- snearch [~snearch@f053007087.adsl.alicedsl.de] has joined #go-nuts
09:46 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
09:49 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Ping timeout: 260 seconds]
09:52 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
09:59 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
10:03 -!- mafs [~maikeru@unaffiliated/maikeru/x-7708887] has quit [Read error:
Operation timed out]
10:04 -!- mafs [~maikeru@unaffiliated/maikeru/x-7708887] has joined #go-nuts
10:07 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 265
seconds]
10:15 -!- Scorchin [~Scorchin@host86-148-179-0.range86-148.btcentralplus.com] has
joined #go-nuts
10:20 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
10:29 -!- saturnfive [~saturnfiv@210.74.155.131] has quit [Read error: Connection
reset by peer]
10:31 -!- bortzmeyer [~stephane@2a01:e35:8bd9:8bb0:cc24:fc16:afbd:c8ff] has quit
[Quit: Leaving.]
10:36 -!- Kashia [~Kashia@port-92-200-30-31.dynamic.qsc.de] has joined #go-nuts
10:44 -!- artefon [~thiago@189.59.130.103.dynamic.adsl.gvt.net.br] has joined
#go-nuts
10:48 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has quit
[Quit: JusticeFries]
10:48 -!- cafesofie [~cafesofie@rnwifi-164-107-92-100.resnet.ohio-state.edu] has
joined #go-nuts
10:58 -!- xash [~xash@d046158.adsl.hansenet.de] has joined #go-nuts
10:59 < CrazyThinker> Hi
11:05 -!- tensorpudding [~user@99.23.127.179] has quit [Remote host closed the
connection]
11:11 -!- vpit3833 [~user@203.111.33.203] has quit [Read error: Connection reset
by peer]
11:11 -!- vpit3833 [~user@203.111.33.203] has joined #go-nuts
11:13 -!- artefon [~thiago@189.59.130.103.dynamic.adsl.gvt.net.br] has quit [Read
error: Connection reset by peer]
11:26 -!- niemeyer [~niemeyer@189.74.207.121] has joined #go-nuts
11:35 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
11:42 -!- decaf [~mehmet@85.110.237.34] has joined #go-nuts
11:44 -!- clip9 [~clip9@er.en.svarteper.com] has quit [Ping timeout: 240 seconds]
11:48 < jnwhiteh> niemeyer_biab: I'm not trying to be difficult, I just
honestly am trying to put together all the pieces.  This is the problem with doing
a PhD..  all you do while you're researching is losing your broader skill-set =)
11:50 -!- saturnfive [~saturnfiv@222.90.141.150] has joined #go-nuts
11:57 -!- shvntr [~shvntr@113.84.150.33] has joined #go-nuts
11:58 < jnwhiteh> niemeyer_biab: responded via email, but I'm around here as
well now.
12:01 -!- millergarym [~chatzilla@203-219-89-242.static.tpgi.com.au] has quit
[Read error: Connection reset by peer]
12:01 -!- millergarym [~chatzilla@203-219-89-242.static.tpgi.com.au] has joined
#go-nuts
12:07 -!- saturnfive [~saturnfiv@222.90.141.150] has left #go-nuts []
12:08 -!- niemeyer_biab [~niemeyer@189.74.207.121] has quit [Ping timeout: 240
seconds]
12:16 -!- lmoura_ [~lauromour@187.59.113.223] has quit [Read error: Connection
reset by peer]
12:18 -!- lmoura_ [~lauromour@189.115.168.112.dynamic.adsl.gvt.net.br] has joined
#go-nuts
12:21 -!- xash [~xash@d046158.adsl.hansenet.de] has quit [Ping timeout: 255
seconds]
12:22 -!- Project-2501 [~Marvin@82.84.75.181] has joined #go-nuts
12:23 -!- virtualsue [~chatzilla@nat/cisco/x-cjcdikzwzcgzdjss] has joined #go-nuts
12:24 -!- niemeyer [~niemeyer@187.91.66.253] has joined #go-nuts
12:25 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
12:25 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-152-178.clienti.tiscali.it] has
quit [Ping timeout: 264 seconds]
12:31 -!- lmoura [~lauromour@189.115.168.112.dynamic.adsl.gvt.net.br] has joined
#go-nuts
12:31 -!- lmoura_ [~lauromour@189.115.168.112.dynamic.adsl.gvt.net.br] has quit
[Read error: No route to host]
12:36 -!- virtualsue_ [~chatzilla@nat/cisco/x-kgcfyjiauwwgnrjv] has joined
#go-nuts
12:37 -!- clip9 [clip9@er.en.svarteper.com] has joined #go-nuts
12:39 -!- virtualsue [~chatzilla@nat/cisco/x-cjcdikzwzcgzdjss] has quit [Ping
timeout: 260 seconds]
12:47 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Ping
timeout: 250 seconds]
12:47 -!- decaf [~mehmet@85.110.237.34] has quit [Ping timeout: 240 seconds]
12:49 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
13:02 -!- decaf [~mehmet@95.15.18.7] has joined #go-nuts
13:06 -!- xash [~xash@d046158.adsl.hansenet.de] has joined #go-nuts
13:21 -!- niemeyer [~niemeyer@187.91.66.253] has quit [Ping timeout: 240 seconds]
13:27 -!- Sgeo_ [~Sgeo@ool-18bf618a.dyn.optonline.net] has joined #go-nuts
13:29 -!- mosva [~mosva@unaffiliated/mosva] has quit [Ping timeout: 240 seconds]
13:29 -!- mosva [~mosva@unaffiliated/mosva] has joined #go-nuts
13:29 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
13:30 -!- Sgeo [~Sgeo@ool-18bf618a.dyn.optonline.net] has quit [Ping timeout: 240
seconds]
13:30 -!- idr [~idr@g225066194.adsl.alicedsl.de] has joined #go-nuts
13:42 < plexdev> http://is.gd/TENCLj by [Russ Cox] in 4 subdirs of
go/src/pkg/runtime/ -- runtime: remove tiny
13:43 -!- niemeyer [~niemeyer@189-10-208-149.pltce701.dsl.brasiltelecom.net.br]
has joined #go-nuts
13:46 < niemeyer> jnwhiteh: Please see the last reply
13:46 < niemeyer> jnwhiteh: Just patch Go for now..  I'll propose a proper
fix for this once I have a moment
13:47 < niemeyer> jnwhiteh: Which may even be the patch I sent you by
itself, but I need to think more about the consequences of applying it
13:47 < jnwhiteh> okay, I'll check it out.
13:47 < niemeyer> jnwhiteh: Either way, it won't be a problem for you..  it
may just be allowing linkage with things which it shouldn't, which won't be an
issue in your case.
13:48 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has joined
#go-nuts
13:50 -!- cafesofie [~cafesofie@rnwifi-164-107-92-100.resnet.ohio-state.edu] has
quit [Remote host closed the connection]
13:51 -!- Xurix [~Luixsia@5ad86381.bb.sky.com] has joined #go-nuts
13:51 -!- Xurix [~Luixsia@5ad86381.bb.sky.com] has left #go-nuts []
13:52 -!- JusticeFries [~JusticeFr@c-24-9-171-36.hsd1.co.comcast.net] has quit
[Client Quit]
14:02 < jnwhiteh> niemeyer: I've reverted my changes to luaconf.h and
applied the patch to src/cmd/ld.  I've recompiled the entire source tree and
confirmed that I'm using the 6l I just compiled, and I continue to get the
"unexpected GOT reloc for non-dynamic symbol luaO_nilobject_" error.
14:02 < niemeyer> jnwhiteh: Have you run make clean within your project?
14:03 < niemeyer> jnwhiteh: and also rebuilt the lua library with the new
flags?
14:08 < jnwhiteh> yes, I've done a make pristine (restores to github state)
and then run make on the cgo library, which is building the Lua source itself due
to CGO_OFILES
14:09 < jnwhiteh> http://paste.pocoo.org/show/327192/
14:10 < jnwhiteh> http://paste.pocoo.org/show/rqej4lvwwDQ4fWQyWr1B/ has the
same without my mid-stream input
14:11 < niemeyer> jnwhiteh: Ok, please push your changes
14:11 < jnwhiteh> they're already pushed
14:11 < niemeyer> jnwhiteh: Thanks, checking
14:11 < jnwhiteh> it was just the revert of the luaconf.h changes
14:13 < jnwhiteh> on another note, the test dial for google is failing when
building the source tree, which is sad and unfortunate =)
14:15 -!- Project-2501 [~Marvin@82.84.75.181] has quit [Quit: E se abbasso questa
leva che succ...]
14:20 -!- dRbiG [drbig@insomniac.pl] has quit [Ping timeout: 264 seconds]
14:22 -!- cafesofie [~cafesofie@dhcp-140-254-202-183.osuwireless.ohio-state.edu]
has joined #go-nuts
14:24 -!- idr [~idr@g225066194.adsl.alicedsl.de] has quit [Remote host closed the
connection]
14:26 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Quit:
Leaving.]
14:30 -!- virtualsue [~chatzilla@nat/cisco/x-kgcfyjiauwwgnrjv] has quit [Ping
timeout: 240 seconds]
14:32 -!- decaf [~mehmet@95.15.18.7] has left #go-nuts []
14:32 < niemeyer> jnwhiteh: Your branch works for me..  git clone + make +
make basic
14:32 < jnwhiteh> hrm
14:34 < jnwhiteh> it still doesn't for me.  Is it due to the difference in
platform?  I know these GOT reloc statements are in a few different branches based
on the commits from mid-december
14:34 < jnwhiteh> There was a more recent one relating to Mach
14:37 -!- virtualsue [~chatzilla@nat/cisco/x-ogeyabfsgkgxlevx] has joined #go-nuts
14:38 < jnwhiteh>
http://groups.google.com/group/golang-checkins/browse_thread/thread/3d81450113d77090
is the thread I'm thinking of, but I'm not terribly familiar with the
compiler/linker
14:39 < niemeyer> jnwhiteh: Not sure..  the change introduced in ld is
common
14:40 < niemeyer> Off for lunch..  back soon
14:40 < jnwhiteh> yep, links just fine on my fedora/intel machine
14:41 -!- iant [~iant@67.218.105.75] has joined #go-nuts
14:41 -!- mode/#go-nuts [+v iant] by ChanServ
14:42 < jnwhiteh> Interesting that is fails to link on one platform and
works fine on the other.
14:43 -!- adu [~ajr@pool-72-83-254-159.washdc.fios.verizon.net] has joined
#go-nuts
14:43 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
14:43 < KBme> uriel: typo on this page:
http://go-lang.cat-v.org/text-editors/gedit/
14:44 < KBme> Download: [go-al.lang)(go-al.lang)
14:54 -!- virtualsue [~chatzilla@nat/cisco/x-ogeyabfsgkgxlevx] has quit [Ping
timeout: 240 seconds]
14:55 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
14:56 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has joined #go-nuts
14:58 < niemeyer> jnwhiteh: Could be the flags from luaconf.h
14:59 < niemeyer> jnwhiteh: Try preprocessing it on both platforms to see
what is really happening there
15:05 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-cngvhzwwpphejosk]
has quit [Ping timeout: 265 seconds]
15:07 -!- artefon [~thiagon@150.164.2.20] has joined #go-nuts
15:07 -!- idr [~idr@g230125222.adsl.alicedsl.de] has joined #go-nuts
15:08 < gmilleramilar> ls
15:09 < niemeyer> file not found
15:09 < gmilleramilar> man this system is slow
15:10 < mpl> No manual entry for this system is slow
15:12 < niemeyer> ROTFL
15:13 < mpl> ;)
15:14 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-xlwbsnnpypbrvbqy]
has joined #go-nuts
15:15 < plexdev> http://is.gd/4aSA3o by [Brad Fitzpatrick] in
go/src/pkg/encoding/line/ -- encoding/line: make it an io.Reader too
15:15 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
15:18 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-xlwbsnnpypbrvbqy]
has quit [Ping timeout: 255 seconds]
15:19 -!- ampleyfly [ampleyfly@gateway/shell/blinkenshell.org/x-vwttvdghqwsozmwa]
has joined #go-nuts
15:22 -!- virtualsue [~chatzilla@nat/cisco/x-zhlzbqvvjzwaehjk] has joined #go-nuts
15:24 < uriel> KBme: thanks, fixed
15:25 < jnwhiteh> niemeyer: I'm not sure I know how to do that and in both
cases I'm using the posix target, so the only conditional stuff should be the GCC
stuff with LUAI_FUNC and LUAI_DATA (that's all I see in luaconf.h)
15:26 < niemeyer> jnwhiteh: gcc -E
15:26 -!- shvntr [~shvntr@113.84.150.33] has quit [Ping timeout: 240 seconds]
15:29 < jnwhiteh> I don't see anything jumping out at me either way
http://paste.pocoo.org/show/jBF9VdN2R3H6baJLjlc6/ and
http://paste.pocoo.org/show/ssyT63z4776tQzkPNaBU/
15:29 -!- krig [kegie@honecker.acc.umu.se] has quit [Quit: Lost terminal]
15:30 < TheSeeker> go fukung http://fuk.ly/5Be
15:33 < niemeyer> jnwhiteh: Reading
15:35 < niemeyer> jnwhiteh: Uh, it's completely empty?
15:35 < jnwhiteh> that's the output of gcc -E luaconf.h
15:40 < niemeyer> jnwhiteh: Hmm, yeah, that actually makes sense..  we're
just not able to see the definitions..
15:40 < niemeyer> jnwhiteh: Try gcc -E -dM
15:41 < niemeyer> jnwhiteh: Try gcc -E -dM luaconf.h | grep LUAI
15:41 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
15:41 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Remote host closed the connection]
15:42 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
15:42 -!- emjayess [~emjayess@pix1.i29.net] has joined #go-nuts
15:43 < jnwhiteh> if we're looking at DATA and FLAGS, on the linux machine
LUAI_FUNC is set to __attribute__(visibility("hidden"))) extern, whereas on the
mac machine they are both extern
15:44 < jnwhiteh> so its the missing __ELF__ define that's causing the issue
15:44 < jnwhiteh> or at least, that's whats causing that attribute to not be
set when compiling on macos
15:50 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
15:50 < jnwhiteh> and those are the only differences on all LUAI macros
15:56 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
16:04 -!- DerHorst [~Horst@e176119044.adsl.alicedsl.de] has joined #go-nuts
16:05 -!- dRbiG [drbig@unhallowed.pl] has joined #go-nuts
16:07 -!- jodaro [~user@70-36-136-156.dsl.dynamic.sonic.net] has quit [Ping
timeout: 264 seconds]
16:08 -!- iant [~iant@67.218.105.75] has quit [Ping timeout: 240 seconds]
16:08 -!- mattn_jp [~mattn@112-68-78-132f1.hyg1.eonet.ne.jp] has joined #go-nuts
16:09 -!- jnwhiteh [~jnwhiteh@WoWUIDev/WoWI/Featured/Dongle/cladhaire] has quit
[Excess Flood]
16:09 -!- jnwhiteh [~jnwhiteh@WoWUIDev/WoWI/Featured/Dongle/cladhaire] has joined
#go-nuts
16:11 < jnwhiteh> gah, connection issues are no fun.  I missed anything you
said since I last responses (which may have been nothing)
16:11 < Namegduf> Wasn't anything.
16:11 < jnwhiteh> thanks =)
16:12 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 240 seconds]
16:12 < niemeyer> jnwhiteh: Yeah, no nick mentioned no highlighting :)
16:13 < niemeyer> jnwhiteh: Yes, that may be related to the problem
16:13 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
16:13 < jnwhiteh> the main difference I see between the two of these is that
one is MachO and one is Elf..  but I run into a brick wall of knowledge there =)
16:13 < aiju> wow
16:13 < aiju> what ugly things are you talking about?
16:14 < jnwhiteh> the same thing we were talking about last night..
16:14 < aiju> Go doesn't have __attribute__ :P
16:14 < aiju> #define __asshole__ __attribute__ is appropriate
16:15 < jnwhiteh> It's a macro defined for the C source that is being
compiled to ensure that functions and data types that don't need to be exported
aren't.
16:16 -!- iant [~iant@nat/google/x-hhcrnmkakhopbdhd] has joined #go-nuts
16:16 -!- mode/#go-nuts [+v iant] by ChanServ
16:16 < niemeyer> jnwhiteh: I get a similar error if I define both as extern
16:16 < jnwhiteh> so perhaps we need to find the MachO way of hiding
16:16 < niemeyer> jnwhiteh: I'll dig further tonight
16:17 < jnwhiteh> thanks
16:17 < jnwhiteh> I'll play around a bit as well
16:17 < niemeyer> jnwhiteh: Nah, I think this is a bug in the Go linker
still
16:17 -!- snearch [~snearch@f053007087.adsl.alicedsl.de] has quit [Quit:
Verlassend]
16:17 < jnwhiteh> alright
16:18 < aiju> 14:44 < plexdev> http://is.gd/TENCLj by [Russ Cox] in 4
subdirs of go/src/pkg/runtime/ -- runtime: remove tiny
16:18 < aiju> WHAT
16:18 < jnwhiteh> niemeyer: hiding it on mac fixes the problem
16:19 < jnwhiteh> just FYI :P
16:19 < aiju> what's this hiding stuff about?  dynamic linking bureaucracy?
16:20 < niemeyer> jnwhiteh: That's awesome, thanks
16:20 < jnwhiteh> for non-exported functions and data types there's a macro
LUAI_FUNC and LUAI_DATA.  On gcc/elf these are extern but 'hidden' by the
attribute I posted earlier.  If they are extern'd and not hidden then there are
errors when 6l attempts to link a program against the cgo library.
16:20 < niemeyer> jnwhiteh: It doesn't make much sense from a linker
standpoint I believe, but it's good you got it working
16:21 < jnwhiteh> niemeyer: *nod* perhaps we can figuer out something that
makes more sense :P
16:21 < niemeyer> Hmm
16:21 * niemeyer tries something real quick
16:21 < niemeyer> (I was really supposed to be doing something else now..
:)
16:23 < jnwhiteh> then go do it =)
16:24 < jnwhiteh> this is just a hobby project
16:27 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
16:28 < jnwhiteh> and with that change I can get golua compiling properly
against an embedded version of the Lua source rather than requiring it be
installed.
16:28 < niemeyer> jnwhiteh: I know, it's just too interesting to resist
16:31 < niemeyer> Even more now that I have a reproducer
16:33 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
16:33 < jnwhiteh> sorry it took so long to get to a reproducable condition
:P
16:34 -!- devrim [~Adium@160.79.7.234] has joined #go-nuts
16:39 -!- idr [~idr@g230125222.adsl.alicedsl.de] has quit [Remote host closed the
connection]
16:40 -!- piranha [~piranha@5ED42E59.cm-7-5a.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
16:43 < niemeyer> jnwhiteh: Hmm, I think I've already figured the proper fix
for the hidden flag itself
16:43 < niemeyer> jnwhiteh: Doesn't fix the extern issue yet
16:44 < jnwhiteh> well it was worth a quick try =)
16:44 < jnwhiteh> I'll be buried in benchmarking for the next day or two so
I wont' be doing much Go coding in the meantime, but I'll be around if I can
assist in any way =)
16:44 -!- ExtraSpice [~XtraSpice@88.118.33.48] has quit [Quit: Leaving]
16:46 < niemeyer> jnwhiteh: Awesome, thanks
16:46 -!- devrim [~Adium@160.79.7.234] has quit [Ping timeout: 240 seconds]
16:47 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
16:51 -!- Project_2501 [~Marvin@82.84.75.181] has joined #go-nuts
16:51 -!- idr [~idr@g230125222.adsl.alicedsl.de] has joined #go-nuts
16:52 -!- devrim [~Adium@160.79.7.234] has joined #go-nuts
17:01 -!- nettok [~quassel@200.119.190.14] has joined #go-nuts
17:01 -!- Venom_X [~pjacobs@75.92.43.21] has joined #go-nuts
17:11 -!- saschpe [~quassel@opensuse/member/saschpe] has joined #go-nuts
17:20 -!- itrekkie [~itrekkie@ip72-211-129-122.tc.ph.cox.net] has joined #go-nuts
17:20 -!- photron [~photron@port-92-201-219-82.dynamic.qsc.de] has joined #go-nuts
17:22 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has joined #go-nuts
17:22 -!- jcdny [~davis@mailrelay1.pbclients.com] has quit [Remote host closed the
connection]
17:22 -!- cafesofie [~cafesofie@dhcp-140-254-202-183.osuwireless.ohio-state.edu]
has quit [Remote host closed the connection]
17:34 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has joined #go-nuts
17:35 < wrtp> anyone know how to give a project a name on the Go Dashboard?
17:41 -!- cafesofie [~cafesofie@rnwifi-164-107-92-100.resnet.ohio-state.edu] has
joined #go-nuts
17:46 -!- jodaro [~user@poquito.divinia.com] has joined #go-nuts
17:46 < jodaro> go-nuts
17:46 < jodaro> hi
17:46 < skelterjohn> hi
17:47 -!- mattn_jp [~mattn@112-68-78-132f1.hyg1.eonet.ne.jp] has quit [Ping
timeout: 240 seconds]
17:47 < plexdev> http://is.gd/HBw4SQ by [Russ Cox] in go/src/pkg/net/ --
net: fix build
17:47 -!- mattn_jp [~mattn@112-68-78-132f1.hyg1.eonet.ne.jp] has joined #go-nuts
17:51 -!- quantumelixir [~chillu@203.110.240.41] has joined #go-nuts
17:54 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-177-164.clienti.tiscali.it] has
joined #go-nuts
17:57 -!- Project_2501 [~Marvin@82.84.75.181] has quit [Ping timeout: 246 seconds]
18:01 -!- eikenberry [~jae@ivanova.zhar.net] has joined #go-nuts
18:03 -!- JusticeFries_
[~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net] has joined #go-nuts
18:04 < plexdev> http://is.gd/ErPnRG by [Russ Cox] in go/doc/codelab/wiki/
-- codelab/wiki: fix build
18:04 < plexdev> http://is.gd/X8K10C by [Russ Cox] in go/doc/codelab/wiki/
-- codelab/wiki: fix freebsd build
18:06 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Ping timeout: 240 seconds]
18:07 -!- mattn_jp [~mattn@112-68-78-132f1.hyg1.eonet.ne.jp] has quit [Quit:
Ex-Chat]
18:08 -!- camnaes [~cm@c-69-255-143-16.hsd1.md.comcast.net] has joined #go-nuts
18:09 -!- ildorn [~ildorn@dslb-188-105-116-027.pools.arcor-ip.net] has joined
#go-nuts
18:10 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has quit [Quit:
leaving]
18:11 -!- mattn_jp [~mattn@112-68-78-132f1.hyg1.eonet.ne.jp] has joined #go-nuts
18:13 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Remote host closed the connection]
18:14 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has joined #go-nuts
18:18 -!- jodaro [~user@poquito.divinia.com] has left #go-nuts ["ERC Version 5.3
(IRC client for Emacs)"]
18:19 -!- jodaro` [~user@poquito.divinia.com] has joined #go-nuts
18:22 -!- snearch [~snearch@f053007087.adsl.alicedsl.de] has joined #go-nuts
18:30 -!- femtoo [~femto@95-89-198-16-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
18:34 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has joined #go-nuts
18:35 -!- brett [~brett@rdnzl.net] has joined #go-nuts
18:35 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
18:38 -!- mattn_jp [~mattn@112-68-78-132f1.hyg1.eonet.ne.jp] has quit [Quit:
leaving]
18:41 -!- decaf [~mehmet@95.15.18.7] has joined #go-nuts
18:44 < aiju> hm why are go builds so slow suddenly
18:45 -!- idr [~idr@g230125222.adsl.alicedsl.de] has quit [Disconnected by
services]
18:45 -!- idr0 [~idr@g230125222.adsl.alicedsl.de] has joined #go-nuts
18:49 -!- wrtp [~rog@92.17.43.14] has quit [Quit: wrtp]
18:49 -!- saschpe [~quassel@opensuse/member/saschpe] has quit [Remote host closed
the connection]
18:50 -!- JusticeFries [~JusticeFr@173-8-247-218-Colorado.hfc.comcastbusiness.net]
has quit [Read error: Connection reset by peer]
18:50 < plexdev> http://is.gd/GKpQjD by [Rob Pike] in go/doc/ -- faq: fix
minor errors in programs reported by Wojciech Mikanik
18:52 -!- keithcascio [~keithcasc@nat/google/x-qfxpxiurtesaqvos] has joined
#go-nuts
18:55 < niemeyer> aiju: Are they slow or is it locked down running network
tests?
18:59 < aiju> no, the builds themselves seem slower than usual …
19:00 < KBme> anyone know where the kate syntax highlighting file goes?
19:03 -!- Fish- [~Fish@9fans.fr] has joined #go-nuts
19:04 -!- lmoura [~lauromour@189.115.168.112.dynamic.adsl.gvt.net.br] has quit
[Read error: Connection reset by peer]
19:08 <+iant> KBme: misc/kate
19:08 < aiju> /dev/null
19:09 -!- skejoe [~skejoe@188.114.142.162] has joined #go-nuts
19:09 -!- lmoura [~lauromour@186.212.153.8] has joined #go-nuts
19:11 < KBme> iant: yeah, i mean where i have to copy it
19:11 < KBme> aiju: thanks
19:11 < aiju> :D
19:12 < aiju> to quote uriel, "text is text and not a rainbow" :P
19:12 <+iant> KBme: oh, sorry, don't know
19:12 < taruti> aiju: btw do you use acme?
19:12 < aiju> not on laptops
19:12 * taruti would like to have a rainbow-acme on desktop
19:12 < aiju> it's too awkward without a proper mouse
19:13 < taruti> yes
19:13 < KBme> aiju: i have been using acme for quite a while now too, but
every once in a while i check at where the other editors are
19:14 < KBme> (nowhere imo :)
19:14 < aiju> i don't use syntax highlighting in any other editor either
19:15 < adu> lol
19:15 < KBme> oh really?  care to elaborate on your reasons to not use
syntax highlighting?  please!  we're really interested!
19:15 < aiju> i'm not using crayons to colour the verbs in books i read
either
19:16 < KBme> aha!  very interesting!
19:16 < KBme> tell us moar!
19:16 < aiju> and wrong syntax highlighting slightly irritates me
19:16 < aiju> most syntax highlighting is wrong
19:16 < adu> aiju: I think most syntax highlighting is faulty, because of
badly written regexes, although even proper parsers can get things wrong, like JS
in HTML or SQL in strings
19:17 < adu> aiju: are you saying that even 100% correct syntax highlighting
is somehow bad for the soul?
19:17 < aiju> and i don't consider it too much of a help
19:17 < aiju> it's not bad
19:17 < aiju> it's just … unnecessary
19:18 < adu> aiju: I think that there are 2 things that in-editor parsers
are good for: completion and making comments gray, everything else, i would agree
is somewhat unnecessary
19:18 < aiju> i don't think completion is necessary and i can recognize
comments myself
19:18 < adu> no, end-tag completion while writing XML by hand _is_ necessary
19:18 -!- skelterjohn [~jasmuth@c-68-45-238-234.hsd1.nj.comcast.net] has joined
#go-nuts
19:19 < KBme> +1
19:19 < aiju> 20:20 < aiju> but yeah, marking comments is the best use
of syntax highlighting i can think of
19:19 < aiju> 20:20 < aiju> adu: bad tools for bad tasks …
19:20 < aiju> 20:20 < aiju> i don't write XML :P
19:20 * KBme solves that by not writing xml
19:20 < aiju> (got reconnected)
19:20 < aiju> "IDE features are language smells"
19:20 < adu> perhaps 1-2 line comments, but for 1000-line comments it's a
bit trickier
19:20 < aiju> who writes 1000 line comments
19:20 < aiju> i call those "text files"
19:22 < skelterjohn> people who want the comment to show up in godoc?
19:22 < plexdev> http://is.gd/QXUzLq by [Rob Pike] in go/src/pkg/fmt/ --
fmt/doc: define width and precision for strings.
19:22 < plexdev> http://is.gd/CPpDXe by [Robert Griesemer] in go/doc/ -- go
spec: clarify address operators.
19:23 < aiju> if the code contains text, it's easily recognizable
19:23 < aiju> eh
19:23 < aiju> the comment
19:23 < aiju> if it's code, it can be moved to /dev/null
19:23 < adu> what I really don't like is the red comment themes, I usually
try to make the comments as light as possible so they're less distracting
19:23 < aiju> yeah, and while you're wondering which comment colour matches
the curtains, i get cracking :P
19:24 < adu> lol
19:24 < adu> well, do what you want
19:25 < adu> just don't make anti-bikeshedding your new bikeshed
19:26 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
quit [Quit: leaving]
19:26 < skelterjohn> does that even mean anything?
19:26 < adu> skelterjohn: yes, it's meta
19:27 < Namegduf> I think we should anti-bikeshed only when they want to
paint it bad colours.
19:27 < skelterjohn> well then.
19:27 < Namegduf> </meta>
19:28 < aiju> amd64 allows the CS to be loaded with the null selector
19:28 < aiju> really, wtf
19:28 -!- virtualsue [~chatzilla@nat/cisco/x-zhlzbqvvjzwaehjk] has quit [Ping
timeout: 250 seconds]
19:33 < skelterjohn> what's a CS
19:33 < aiju> code selector
19:33 -!- mosva [~mosva@unaffiliated/mosva] has quit [Quit: mosva]
19:34 < skelterjohn> what's bad about it being loaded with the null sector?
19:34 < aiju> null selector, which is invalid
19:34 <+iant> you can't execute any code
19:35 < aiju> iant: the weird thing is, you can
19:35 <+iant> wow, cool
19:35 < aiju> but if it is checked eventually, it will crash
19:35 <+iant> do you go into real mode or something?
19:35 < aiju> no
19:35 <+iant> bizarre
19:36 < aiju> amd64 is often quite bizarre
19:36 -!- m4dh4tt3r [~Adium@70-36-245-216.dsl.static.sonic.net] has joined
#go-nuts
19:41 < jumzi> bizarre, intressting...  it's all good
19:41 < jumzi> keeps one bussy
19:41 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:43 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
19:53 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 265 seconds]
19:53 -!- clip9 [clip9@er.en.svarteper.com] has quit [Remote host closed the
connection]
19:59 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
20:05 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has quit
[Ping timeout: 240 seconds]
20:14 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has joined
#go-nuts
20:18 -!- decaf [~mehmet@95.15.18.7] has quit [Quit: Leaving.]
20:18 < aiju> i still have to get used to {} after EVERY if
20:21 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 240 seconds]
20:22 -!- bmizerany [~bmizerany@204.14.152.118] has quit [Ping timeout: 264
seconds]
20:25 -!- bmizerany [~bmizerany@204.14.152.118] has joined #go-nuts
20:26 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
20:30 < taruti> someone had taken the old dns code as a library, any link to
that?
20:36 -!- staar2 [~risto@84-50-15-218-dsl.jhv.estpak.ee] has joined #go-nuts
20:40 -!- gobeginner [~nwood@84.92.0.53] has joined #go-nuts
20:49 -!- gobeginner1 [~nwood@cpc2-lee23-0-0-cust152.7-1.cable.virginmedia.com]
has joined #go-nuts
20:50 -!- Venom_X [~pjacobs@75.92.43.21] has quit [Quit: Venom_X]
20:52 -!- gobeginner [~nwood@84.92.0.53] has quit [Ping timeout: 255 seconds]
20:54 < plexdev> http://is.gd/uuNwKn by [Russ Cox] in go/src/pkg/net/ --
net: fix build on old Linux kernels
20:57 -!- staar2 [~risto@84-50-15-218-dsl.jhv.estpak.ee] has quit [Ping timeout:
240 seconds]
21:02 < jodaro`> i've got a question about some of the bson stuff in
gomongo, if anyone happens to be reasonably familiar with it ...
21:03 < jodaro`> trying to figure out if/how i can append binary data, i.e.
equivalent to what i'd get from the C++ BSONBuilders appendBinData method
21:03 < dario_> New doesnt work as member function
21:06 -!- tdc [~santegoed@host86-143-115-73.range86-143.btcentralplus.com] has
joined #go-nuts
21:10 < jodaro`> hmm, actually ...
21:11 < jodaro`> maybe its not implemented yet
21:12 -!- piranha [~piranha@5ED4B890.cm-7-5c.dynamic.ziggo.nl] has quit [Quit:
Computer has gone to sleep.]
21:12 -!- erus` [~tommo@host86-164-115-97.range86-164.btcentralplus.com] has
joined #go-nuts
21:18 -!- tensorpudding [~user@99.23.127.179] has joined #go-nuts
21:18 -!- skejoe [~skejoe@188.114.142.162] has quit [Quit: Lost terminal]
21:20 < gobeginner1> Does anybody recognise the cause of this error?
21:20 < gobeginner1> "bash >6cov ./helloworld
21:20 < gobeginner1> 6cov: cannot read pc: can't translate address 90"
21:21 < aiju> what's 6cov supposed to do after all
21:21 < gobeginner1> I'm just trying the tools, 6prov work fine on the
binary but 6cov errors
21:22 < gobeginner1> from reading the docs I thin it prints the line number
of the source files executed during the run
21:22 < gobeginner1> I thin== I think
21:22 < aiju> it doesn't work here either
21:22 < aiju> are you on x86 or amd64?
21:24 < gobeginner1> intel core2 duo
21:25 < aiju> well 32 or 64 bit?
21:25 < gobeginner1> 64
21:30 < erus`> Is there a guide to making packages?
21:31 < aiju> just read an example
21:32 -!- TheSeeker2 [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has
joined #go-nuts
21:32 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has quit
[Ping timeout: 259 seconds]
21:32 < aiju> log is quite simple
21:33 < skelterjohn> erus`: what is the part that has you hung up?  the
coding or the building?
21:34 < erus`> got my code i want to package
21:34 < erus`> how do i set up the makefile
21:34 < aiju> erus`: read log
21:34 < aiju> damnit
21:34 < skelterjohn> two ways
21:34 < skelterjohn> you can take a look at another makefile that is in
another package and copy it
21:34 < skelterjohn> replacing its source list with your own
21:35 < skelterjohn> or you can use one of the available 3rd party build
tools (eg http://go-gb.googlecode.com)
21:35 < aiju> you can also write a shellscript called "run" with the build
commands
21:36 < aiju> and see old UNIX folks smile
21:37 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has quit [Quit: Skola]
21:38 < erus`> mine complains about no main function...
21:38 < skelterjohn> i like the doc for gopack:
http://golang.org/cmd/gopack/
21:38 < skelterjohn> erus`: then you took the makefile from a cmd rather
htan a package
21:38 < skelterjohn> the only difference is you include Make.pkg instead of
Make.cmd
21:38 -!- virtualsue [~chatzilla@nat/cisco/x-ptrogvzwhorecloh] has joined #go-nuts
21:39 < skelterjohn> you can probably edit the makefile
21:39 < skelterjohn> but your life will be easier if you use gb (the tool i
mentioned earlier) O:-)
21:40 < erus`> ok builds now
21:40 < erus`> is it worth putting each type in its own package
21:41 < skelterjohn> not even a little bit
21:41 < skelterjohn> don't try to write java using go
21:41 < erus`> so i can have my Simple 3D Math package s3dm.  With s3dm.V3
and s3dm.Mat4
21:41 < erus`> thats good practise?
21:41 < skelterjohn> that'd be appropriate, yes
21:41 < erus`> super
21:42 < skelterjohn> btw there is an existing matrix library
21:42 < erus`> mines for games
21:42 < skelterjohn> though yours might be optimized for graphics stuff
21:42 < erus`> Rotations and forward vectors etc
21:42 < skelterjohn> i don't know what a forward vector is, so i'll take
your word for it
21:43 < erus`> ok can i use this package without putting it in my
GOROOT/pkg?
21:43 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 265
seconds]
21:43 < skelterjohn> depends
21:43 < erus`> because its messy at the mo
21:43 < skelterjohn> there are two ways to do it without installing
21:43 < skelterjohn> one is you can just build it there and then you'd
import "./s3dm" from somewhere else
21:43 < skelterjohn> another is you can use gb and it will take care of
everything for you
21:44 < aiju> just do make install
21:44 < aiju> it will install the pac - oh wait
21:44 < aiju> sorry, i thought you meant GOROOT/src/pkg
21:45 < skelterjohn> the problem with just using makefiles and local imports
("./s3dm", etc) is that it's a pain to do incremental building
21:45 < aiju> erus`: what's wrong with putting it in GOROOT/pkg?
21:45 < erus`> maybe I will
21:45 < erus`> its not finished yet
21:46 < aiju> you don't need to manually put it there
21:46 < aiju> just do make install
21:46 < skelterjohn> i don't know about erus` use-case specifically, but i
have libraries that have stable versions (gomatrix) that i might want to work on,
and have something else import the worked on version, while something else would
use the stable version
21:46 < skelterjohn> if you do make install you could break some other stuff
21:46 < skelterjohn> also general GOROOT pollution
21:46 < aiju> what are you worried about?  EPA?
21:46 -!- gobeginner1 [~nwood@cpc2-lee23-0-0-cust152.7-1.cable.virginmedia.com]
has left #go-nuts []
21:47 < erus`> will further gomake installs over right the old crap?
21:47 < skelterjohn> funny, but the first thing i said is what i'm worried
about
21:47 < skelterjohn> erus`: yes
21:47 < aiju> you said "general GOROOT pollution"
21:47 < skelterjohn> oh - tons of crap in goroot
21:47 < aiju> anything beyond the stable/dev thing?
21:47 < skelterjohn> it's ugle
21:47 < skelterjohn> ugly
21:48 < skelterjohn> i shouldn't have said "also", that was misleading
21:50 < skelterjohn> is gomake a clone of make written in go, done so that
you can build go without having make installed?
21:50 < aiju> no
21:50 < skelterjohn> or is there something extra about it
21:50 < aiju> afaik gomake is a shellscript setting GOROOT
21:50 < skelterjohn> ah interesting
21:50 < aiju> export GOROOT=${GOROOT:-/home/aiju/go}
21:50 < aiju> exec make "$@"
21:50 < aiju> in my case
21:51 < aiju> i set GOROOT in my .bashrc and don't use gomake thus
21:51 < skelterjohn> me too
21:52 < aiju> it's annoying that those makefile templates check GOOS
21:52 < aiju> else one could build gofy without changing anything in the
goroot (except for "general GOROOT pollution" in pkg/ :P)
21:53 < skelterjohn> well...  without knowing GOOS, how would they know
which Xg to use?
21:55 < erus`> can I do something like from s3dm import V3 like in python
21:55 < skelterjohn> you would do: import "s3dm"
21:55 < skelterjohn> and then you can use s3dm.V3
21:56 < skelterjohn> erus`: what do you intend to use for drawing?
21:57 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
21:57 < erus`> I am using banthar/opengl for my game and the image/png
package for my raytracer
21:57 -!- ildorn [~ildorn@dslb-188-105-116-027.pools.arcor-ip.net] has quit [Ping
timeout: 245 seconds]
22:01 -!- DerHorst [~Horst@e176119044.adsl.alicedsl.de] has quit [Remote host
closed the connection]
22:04 -!- qjcg [~qjcg@208.88.110.46] has joined #go-nuts
22:04 < aiju> skelterjohn: eh
22:04 < aiju> skelterjohn: you're mixing things up
22:04 < aiju> skelterjohn: GOOS is not GOARCH
22:04 < skelterjohn> ah right
22:05 < aiju> GOOS just chooses the runtime
22:06 < erus`> Oh no somethings not working like on windows
22:06 < aiju> erus`: usually a good sign
22:07 -!- photron [~photron@port-92-201-219-82.dynamic.qsc.de] has quit [Ping
timeout: 240 seconds]
22:08 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has quit
[Ping timeout: 264 seconds]
22:10 -!- Fish- [~Fish@9fans.fr] has quit [Quit: So Long, and Thanks for All the
Fish]
22:11 < erus`> is there an os.Open() example because what i have doesnt work
on linux.  I suspect its a permissions issue
22:12 < skelterjohn> http://code.google.com/p/go-gb/source/browse/gb/pkg.go
line 129
22:12 < aiju> os.Open("file", os.O_RDONLY, 0)
22:12 < erus`> aiju: i need to create and write to (not append) a file
22:12 < aiju> os.Open("file", os.WRONLY, 0666)
22:12 < skelterjohn> just a note - 0666 is not the same as 666
22:13 < skelterjohn> 0666 is is octodecimal
22:13 < skelterjohn> err
22:13 < aiju> octal
22:13 < skelterjohn> octal
22:13 < skelterjohn> thanks hah
22:13 < erus`> myfile, err := os.Open("tracer.png", os.O_CREATE, 0666)
worked on windows
22:13 < aiju> kids these days don't know octal anymore
22:13 < aiju> erus`: you also need to specify os.O_WRONLY
22:13 < skelterjohn> os.O_CREATE | os.O_WRONLY
22:14 < erus`> thanks skelterjohn, was about to ask
22:14 < skelterjohn> they're bit-flags - same as with C
22:14 -!- zozoR [~zozoR@56346ed3.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
22:15 < erus`> hurrah I can raytrace a sphere in linux too
22:15 < erus`> using my new package :)
22:18 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has joined
#go-nuts
22:18 -!- Project-2501 [~Marvin@dynamic-adsl-94-36-177-164.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
22:20 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
22:23 -!- tdc [~santegoed@host86-143-115-73.range86-143.btcentralplus.com] has
left #go-nuts []
22:34 -!- ildorn [~ildorn@dslb-188-105-116-027.pools.arcor-ip.net] has joined
#go-nuts
22:34 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has quit
[Ping timeout: 240 seconds]
22:39 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has joined
#go-nuts
22:41 -!- wrtp [~rog@92.17.43.14] has joined #go-nuts
22:43 -!- qjcg [~qjcg@208.88.110.46] has quit [Quit: qjcg]
22:44 -!- snearch [~snearch@f053007087.adsl.alicedsl.de] has quit [Quit:
Verlassend]
22:46 -!- idr0 [~idr@g230125222.adsl.alicedsl.de] has quit [Remote host closed the
connection]
22:47 < erus`> my packaged package, if anyone's interested:
https://github.com/tm1rbrt/s3dm
22:48 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
22:48 -!- idr0 [~idr@g230125222.adsl.alicedsl.de] has joined #go-nuts
23:02 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts
23:07 < rm445> heh, I was about to say isn't it O_CREAT, but I see Go has a
helpful synonym for it :-)
23:07 < aiju> they once asked thompson what he would have made different if
he could redo unix
23:08 < aiju> "i would spell creat() with an e"
23:08 < mpl> http://en.wikiquote.org/wiki/Kenneth_Thompson
23:08 < rm445> yeah, I was about to say, it's nice he finally gets to fix
his biggest regret :-)
23:09 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has joined #go-nuts
23:11 -!- Skola [~ik@5352A3FB.cm-6-3c.dynamic.ziggo.nl] has quit [Client Quit]
23:14 -!- ildorn [~ildorn@dslb-188-105-116-027.pools.arcor-ip.net] has quit [Ping
timeout: 276 seconds]
23:27 -!- xash [~xash@d046158.adsl.hansenet.de] has quit [Ping timeout: 265
seconds]
23:28 -!- boscop [~boscop@f055150179.adsl.alicedsl.de] has quit [Ping timeout: 240
seconds]
23:28 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has quit [Quit:
Computer has gone to sleep.]
23:34 -!- ildorn [~ildorn@dslb-188-105-116-027.pools.arcor-ip.net] has joined
#go-nuts
23:37 -!- emjayess [~emjayess@pix1.i29.net] has quit [Quit: Leaving]
23:40 -!- ildorn [~ildorn@dslb-188-105-116-027.pools.arcor-ip.net] has quit [Ping
timeout: 272 seconds]
23:41 -!- wrtp [~rog@92.17.43.14] has quit [Quit: wrtp]
23:42 -!- Tuller [~tuller@c-69-143-52-174.hsd1.va.comcast.net] has joined #go-nuts
23:45 -!- idr0 [~idr@g230125222.adsl.alicedsl.de] has quit [Remote host closed the
connection]
23:45 -!- virtualsue [~chatzilla@nat/cisco/x-ptrogvzwhorecloh] has quit [Ping
timeout: 250 seconds]
23:45 < erus`> anyone using OpenGL?
23:46 < erus`> gl.TexImage2D has been replaced
23:46 < erus`> im trying to use TexSubImage2D in its place but its not
loading
23:47 -!- idr [~idr@g230125222.adsl.alicedsl.de] has joined #go-nuts
23:53 -!- ildorn [~ildorn@vpnclient-241-246.extern.uni-ulm.de] has joined #go-nuts
23:57 < plexdev> http://is.gd/lph7be by [Ian Lance Taylor] in
go/src/pkg/netchan/ -- netchan: Avoid race condition in test.
23:59 -!- erus` [~tommo@host86-164-115-97.range86-164.btcentralplus.com] has quit
[Ping timeout: 240 seconds]
--- Log closed Thu Jan 27 00:00:05 2011