--- Log opened Fri Oct 08 00:00:10 2010
00:03 < nickaugust> i have a number of structs that have templates with
corrisponding names.  I want to make a common GetTemplates() method that will load
all the templates for that struct based on the name (type) of the struct.  I was
thinking an embeded struct with the method attached but if that cant accsess the
type of the outside struct it wont work
00:03 < nickaugust> if its an interface i'd have to write the methods for
each individual struct to satisfy it
00:04 <+iant> write a method for the embedded struct which takes an
interface argument, and pass the struct itself to the method
00:04 <+iant> then the method can get the type of the struct
00:06 < nickaugust> ah, nice.  thanks iant
00:10 -!- jhawk28 [~jhawk28@user-142gfrf.cable.mindspring.com] has joined #go-nuts
00:12 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has joined
#go-nuts
00:12 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has quit
[Changing host]
00:12 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has joined #go-nuts
00:14 < Tv> the all.bash compilation of go itself is suprisingly slow after
a trivial change :(
00:14 < Tv> makes me think go itself shouldn't use recursive make
00:16 < enferex> iant: Thanks for such a quick golang mailing list reply ;-)
00:16 < EthanG> all.bash cleans everything before it starts, doesn't it?
00:16 <+iant> you're welcome
00:18 < enferex> my identity revelaved (the horror the horror)
00:19 < Tv> EthanG: hmmm i do see too much being compiled..  do you what's
the right "just make" invocation?
00:19 < Tv> there's a few too many levels of shell scripts to be sure
00:20 < EthanG> I haven't a clue, sorry
00:20 * Tv notes all.bash explicitly has "--no-rebuild" in it
00:21 -!- scyth [~scyth@rots.in.rs] has joined #go-nuts
00:22 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has quit [Quit:
steveno]
00:22 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Remote host closed the connection]
00:23 < EthanG> aha
00:24 < enferex> iant: So I do have a my.a now.  And when I compile my main
package: 6g -L.  -I.  my_main.go Im still getting 'illegal NUL byte' errors
00:25 < enferex> I am using a middledot in my .c file
00:25 < enferex> int <middledot>My_Test_Func(void) { return 42; }
00:27 -!- jserver [~jserver@pool-71-167-243-229.nycmny.east.verizon.net] has
joined #go-nuts
00:28 -!- jserver [~jserver@pool-71-167-243-229.nycmny.east.verizon.net] has left
#go-nuts []
00:33 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
00:38 -!- dionysiac [~dionysiac@S01060013102db8c7.cg.shawcable.net] has joined
#go-nuts
00:42 <+iant> enferex: the middledot is right; now I don't know what is
happening
00:42 < enferex> Yeah I do have it compiling
00:43 < enferex> but linking is giving me an undefined
my_test_pkg.My_Test_Func
00:43 < enferex> im looking into that now
00:43 < enferex> I think I might write this up for a blog post
00:43 <+iant> you put both .6 files into the .a file?
00:44 < enferex> iant: yup
00:44 <+iant> hmmm, sounds like it should work
00:48 < enferex> the NUL byte error can be corrected by naming the .a
library the same as the package name i declared in my_test_pkg.go
00:54 < enferex> gopack t my_test_pkg.a lists the 2 .6 files
00:55 -!- mikespook [~mikespook@219.137.255.136] has joined #go-nuts
00:56 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
00:59 -!- jcao219 [~Jimmy_Cao@pool-173-74-61-111.dllstx.fios.verizon.net] has
joined #go-nuts
00:59 -!- jcao219 [~Jimmy_Cao@pool-173-74-61-111.dllstx.fios.verizon.net] has left
#go-nuts []
01:00 -!- zyrg_ [~kirill@net089023002246.pskovline.ru] has quit [Remote host
closed the connection]
01:09 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
01:18 -!- kanru [~kanru@118-168-235-106.dynamic.hinet.net] has quit [Ping timeout:
276 seconds]
01:22 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
01:25 -!- Bombe [~droden@freenet/developer/Bombe] has quit [Excess Flood]
01:25 -!- Bombe [~droden@weltgehirnmaschine.de] has joined #go-nuts
01:37 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
01:38 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X]
01:38 -!- jhawk28 [~jhawk28@user-142gfrf.cable.mindspring.com] has quit [Remote
host closed the connection]
01:41 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has joined
#go-nuts
01:41 -!- steveno [~stevenoli@c-24-131-221-195.hsd1.pa.comcast.net] has quit
[Changing host]
01:41 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has joined #go-nuts
01:56 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
01:58 -!- scyth [~scyth@rots.in.rs] has quit [Quit: .]
02:16 -!- enherit [~enherit@71-83-188-75.dhcp.lnbh.ca.charter.com] has quit [Quit:
leaving]
02:17 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
02:24 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 260 seconds]
02:27 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
02:40 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
02:44 -!- dacc [~Adium@D-128-95-10-232.dhcp4.washington.edu] has quit [Quit:
Leaving.]
02:58 -!- steveno [~stevenoli@paludis/cheerleader/steveno] has quit [Quit:
steveno]
03:02 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
03:22 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
03:28 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
03:33 < enferex> Please please, ohh please, inform me of the name of the Go
Gopher.  Please tell me its Gocephus
03:38 < cbeck> Bahaha
03:39 -!- tav [~tav@92.7.155.13] has quit [Ping timeout: 276 seconds]
03:42 -!- iant [~iant@216.239.45.130] has quit [Ping timeout: 250 seconds]
03:45 -!- tav [~tav@92.7.91.5] has joined #go-nuts
03:50 -!- jwillia3 [jlwjr@c-76-16-159-139.hsd1.il.comcast.net] has joined #go-nuts
03:51 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
03:59 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has joined #go-nuts
03:59 -!- mode/#go-nuts [+v iant] by ChanServ
04:11 -!- b00m_chef [~watr@66.183.100.197] has joined #go-nuts
04:17 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Remote host closed the connection]
04:23 -!- markcol [~markcol@74.125.59.1] has left #go-nuts []
04:43 < anticw> iant: you can do the ...  unboxing change now :-)
04:43 -!- jwillia3 [jlwjr@c-76-16-159-139.hsd1.il.comcast.net] has quit [Ping
timeout: 245 seconds]
05:00 -!- scm [scm@d071058.adsl.hansenet.de] has quit [Ping timeout: 264 seconds]
05:01 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
05:02 -!- scm [scm@d057034.adsl.hansenet.de] has joined #go-nuts
05:07 -!- htoothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has quit [Ping
timeout: 240 seconds]
05:10 -!- htoothrot [~mux@71-8-117-228.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
05:23 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 250 seconds]
05:29 -!- Bombe [~droden@weltgehirnmaschine.de] has quit [Changing host]
05:29 -!- Bombe [~droden@freenet/developer/Bombe] has joined #go-nuts
05:39 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten.  Desu~]
05:44 -!- b00m_chef [~watr@66.183.100.197] has quit [Ping timeout: 265 seconds]
05:51 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 240
seconds]
06:01 -!- b00m_chef [~watr@66.183.100.197] has joined #go-nuts
06:17 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Quit:
leaving]
06:18 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
06:19 -!- b00m_chef [~watr@66.183.100.197] has quit [Ping timeout: 255 seconds]
06:21 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
06:38 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-190.clienti.tiscali.it] has
joined #go-nuts
06:46 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
06:51 -!- ikaros [~ikaros@188.107.214.200] has joined #go-nuts
07:00 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has quit [Remote
host closed the connection]
07:03 -!- ronnyy [~quassel@p4FF1DC3F.dip.t-dialin.net] has joined #go-nuts
07:04 -!- ikaros [~ikaros@188.107.214.200] has quit [Quit: Leave the magic to
Houdini]
07:05 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
07:05 -!- ikaros [~ikaros@188.107.214.200] has joined #go-nuts
07:06 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
07:16 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts
07:16 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 260 seconds]
07:19 -!- Fish9 [~Fish@86.65.182.207] has quit [Remote host closed the connection]
07:20 -!- Fish [~Fish@86.65.182.207] has joined #go-nuts
07:22 -!- napsy [~luka@193.2.66.101] has joined #go-nuts
07:33 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has quit [Read error:
Connection reset by peer]
07:34 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has joined #go-nuts
07:36 -!- res99 [~anonymous@201.237.130.70] has quit [Read error: Connection reset
by peer]
07:37 -!- res99 [~anonymous@201.237.130.70] has joined #go-nuts
07:45 -!- emmanueloga [~emmanuelo@190.244.15.163] has quit [Ping timeout: 240
seconds]
07:47 -!- [Pete_27] [~noname@110-174-103-31.static.tpgi.com.au] has joined
#go-nuts
07:49 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Quit: Ex-Chat]
07:50 -!- ikaros [~ikaros@188.107.214.200] has quit [Quit: Leave the magic to
Houdini]
07:51 -!- ikaros [~ikaros@188.107.214.200] has joined #go-nuts
08:01 < plexdev> http://is.gd/fQXNw by [Andrew Gerrand] in go/src/ -- build:
add GOHOSTOS and GOHOSTARCH environment variables.
08:08 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
08:12 <@adg> uriel: we actually had an internal talk along those lines
recently.  i'm scheduled to give a Go talk later this year at a conference in
Australia; It'll include details like that, and will probably be recorded.
08:17 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:18 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Ping timeout: 252
seconds]
08:30 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
08:42 -!- dju [dju@fsf/member/dju] has joined #go-nuts
08:45 -!- jmettraux [~jmettraux@211.19.55.177] has quit [Remote host closed the
connection]
08:46 -!- dju [dju@fsf/member/dju] has quit [Max SendQ exceeded]
08:47 -!- dju [dju@fsf/member/dju] has joined #go-nuts
08:47 -!- photron [~photron@port-92-201-30-121.dynamic.qsc.de] has joined #go-nuts
08:51 -!- HollyRain [~HollyRain@87.223.116.212] has joined #go-nuts
08:52 < HollyRain> a little doubt that I've: I've a function (with a
variables for it) that could be run several times (for each file passed from
command line)
08:53 < HollyRain> so.  does the variables of that function are calculated
every time that it's called?
08:54 < jnwhiteh> HollyRain: I'm not quite sure I understand your question.
You're talking about both variables and 'calculations' and its unclear what sort
of construct you're referring to.
08:54 < jnwhiteh> If you write a function, and then call that function
multiple times, then the calculations performed in that function are, yes, done
multiple times.
08:55 < HollyRain> instead of calculations I should say defined (they're
regular expression to be used by that function)
08:56 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
08:56 < HollyRain> your last sentence answers me, thanks
08:56 < jnwhiteh> you can compile the regular expressions before the
function
08:57 < jnwhiteh> and then use them, and in that case the compilation will
only happen once.
08:57 < HollyRain> yes, they would be global variables
09:03 -!- wrtp [~rog@92.17.67.123] has joined #go-nuts
09:13 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
09:25 -!- ikaros [~ikaros@188.107.214.200] has quit [Quit: Leave the magic to
Houdini]
09:25 -!- ikaros [~ikaros@188.107.214.200] has joined #go-nuts
09:29 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
09:33 -!- mikespook [~mikespook@219.137.255.136] has quit [Read error: Connection
reset by peer]
09:35 -!- dju [dju@fsf/member/dju] has quit [Quit: Quitte]
09:40 -!- ronnyy [~quassel@p4FF1DC3F.dip.t-dialin.net] has quit [Remote host
closed the connection]
09:42 -!- emmanueloga [~emmanuelo@190.244.15.163] has joined #go-nuts
09:49 -!- ikaros [~ikaros@188.107.214.200] has quit [Quit: Leave the magic to
Houdini]
09:49 -!- sacho [~sacho@79-100-50-200.btc-net.bg] has quit [Ping timeout: 245
seconds]
09:50 -!- virtualsue [~chatzilla@nat/cisco/x-zsdrokzcfeltqyby] has joined #go-nuts
09:55 -!- ikaros [~ikaros@188.107.214.200] has joined #go-nuts
09:59 -!- ProNihil1st
[~anathema@cpc4-cani1-0-0-cust597.14-2.cable.virginmedia.com] has joined #go-nuts
09:59 -!- ProNihilist
[~anathema@cpc4-cani1-0-0-cust597.14-2.cable.virginmedia.com] has quit [Ping
timeout: 252 seconds]
10:22 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
10:30 -!- nbjoerg [~joerg@netbsd/developer/joerg] has quit [Remote host closed the
connection]
10:30 < uriel> adg: cool, still, a yearly "State of the Gopher" tech-talk
(tech-talks are usually nicely recorded too) would be nice ;)
10:38 -!- Fish [~Fish@86.65.182.207] has quit [Ping timeout: 240 seconds]
10:38 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 265
seconds]
10:44 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection
reset by peer]
10:47 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
10:48 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the
connection]
10:49 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
10:49 < uriel> adg: I was thinking that maybe my point is (and I'm not sure
it is a great or even non-obvious point) that there are now enough people that
know (some) Go that maybe should be treated as a target audience for some talks
10:49 < uriel> adg: it is a bit annoying to go thought the same introductory
bits in every talk
10:50 -!- napsy [~luka@193.2.66.101] has quit [Quit: Lost terminal]
10:50 < nsf> agreed, I'm not watching Rob Pike's talks anymore, because they
are all the same
10:50 < uriel> so, another thing that would be nice is to have more
specialized/advanced talks on specific aspects of the language
10:51 < nsf> status reports are a good idea
10:51 < uriel> the CSP talk at OSCON (I think it was) was great, but dealt
with Go very little, and again it was mostly an introduction to the concept
10:51 < nsf> like once a year or so
10:51 < uriel> nsf: specially now that so much happens so fast, it is really
hard for people to keep up
10:52 < uriel> nsf: don't the perl folks have a "State of the Camel" or
something?  ;P
10:52 < nsf> a lot of projects have that kind of meetings
10:52 < uriel> and isn't like much happens in perl every year anymore
10:52 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
10:52 < nsf> uriel: have you seen perl6?
10:53 < nsf> it's like more complex than C++
10:53 < nsf> I'm sure something is happening in their community :)
10:53 < uriel> heh yea, but they have been working on it for more than ten
years ;P
10:53 < nsf> it's just too complex
10:54 < uriel> it seems like a very, very, very slow motion trainwreck,
taken from a marx brothers film (everything about perl is almost always so crazy
to be hilarious, this is its only redeeming quality, which makes it less evil than
C++, Java, Ruby, ...)
10:54 < nsf> :D
10:55 < uriel> larry probably has not heard of "second system syndrome", but
then, he seems to have had an accute enough "first system syndreome" too
10:56 < uriel> in any case, I agree with you nsf, it is a pain to watch
rob's talks just to find a handful of tiny nudgets of new info here and there
11:02 < HollyRain> I've a program that formats the source code (just like is
done by gomt).  Now well, if there is any error at formatting it, should be showed
the original text instead of the error given for it?
11:03 < HollyRain> I could add too a debug flag to show the original source
11:05 < uriel> silly question, but what is wrong with gofmt?
11:07 < HollyRain> uriel: nothing :) I'm finishing a translator from C
headers to Go
11:08 < HollyRain> at the end, I'll use the debug flag
11:13 -!- Fish [~Fish@86.65.182.207] has joined #go-nuts
11:15 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
11:25 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
11:42 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
12:02 -!- HollyRain [~HollyRain@87.223.116.212] has left #go-nuts []
12:02 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
12:06 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
12:14 < soul9> hi
12:15 < soul9> just made a markov chain generator, i would be interested in
what you guys have to say about it: http://dpaste.com/254970/
12:28 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Quit: Konversation
terminated!]
12:29 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
12:32 -!- virtualsue_ [~chatzilla@nat/cisco/x-jyxjimxrjovshvku] has joined
#go-nuts
12:33 -!- gnuvince_ [~vince@70.35.161.113] has quit [Ping timeout: 240 seconds]
12:34 -!- virtualsue [~chatzilla@nat/cisco/x-zsdrokzcfeltqyby] has quit [Ping
timeout: 255 seconds]
12:34 -!- dionysiac [~dionysiac@S01060013102db8c7.cg.shawcable.net] has quit [Ping
timeout: 264 seconds]
12:41 -!- gnuvince [~vince@70.35.161.113] has joined #go-nuts
12:45 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
12:46 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 276 seconds]
12:54 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
12:56 < nickaugust> 13 type MarkTab map[string]map[string]map[int]string
12:56 < nickaugust> soul9: looks good man.  i never thought of stringing
maps together like that.^^^
12:57 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
joined #go-nuts
12:58 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
12:58 < soul9> nickaugust: me either until i saw how markov was generated..
;)
12:58 < soul9> it's a pain in the ** too, if you see the populate func.
13:00 < soul9> also, i'm sure if you give it a corpus big enough it'll
explode your memory, i'd love to figure out a way to do it directly from the file
easily
13:05 -!- asdaQQ [~ircap8@217.217.80.197.dyn.user.ono.com] has joined #go-nuts
13:05 < asdaQQ> is FAKE ???  -->
http://tessatheslut.com/?id=7ve8h00h3wxnwgu1q8cqlwcp8stt4t
13:06 -!- asdaQQ [~ircap8@217.217.80.197.dyn.user.ono.com] has quit [Client Quit]
13:07 < nickaugust> hmmm.
13:07 -!- fabled [~fabled@83.145.235.193] has quit [Quit: Ex-Chat]
13:10 < soul9> is there a way somehow to reference the adress of a string in
a file?
13:10 < soul9> maybe i could just store coordinates and seek around i guess
13:18 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com]
has joined #go-nuts
13:23 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
13:24 < skelterjohn> keyword caught my interest...  why did the term
'markov' come up?
13:27 -!- gnuvince [~vince@70.35.161.113] has quit [Ping timeout: 272 seconds]
13:28 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has quit [Quit:
leaving]
13:28 -!- zyrg [~kirill@net089023009210.pskovline.ru] has joined #go-nuts
13:32 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
13:33 < nickaugust> soul9: not sure the best way.  i was doing some indexing
into a llrb tree that got too big for memory and i never figured out a good way to
port it to work off the disk
13:33 < soul9> skelterjohn: markov chains?  pseudo natural language
generator
13:34 < skelterjohn> cool
13:34 < skelterjohn> <- machine learningist
13:34 < soul9> nickaugust: augh..it would be nice to be able to reference
parts of a file, though i can imagin things would go pretty badly if the file was
modified
13:35 < soul9> skelterjohn: check it out, it's an interesting and fairly
simple algorithm.  implementation in go: http://dpaste.com/254970/
13:38 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has joined
#go-nuts
13:43 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com]
has quit [Remote host closed the connection]
13:43 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
13:48 -!- ficoos [~saggi@109-186-93-130.bb.netvision.net.il] has quit [Quit:
Konversation terminated!]
13:49 -!- ficoos [~saggi@109-186-93-130.bb.netvision.net.il] has joined #go-nuts
13:55 -!- ficoos [~saggi@109-186-93-130.bb.netvision.net.il] has quit [Read error:
Connection reset by peer]
13:55 -!- ficoos [~saggi@109-186-93-130.bb.netvision.net.il] has joined #go-nuts
13:56 -!- kanru [~kanru@61-228-158-59.dynamic.hinet.net] has joined #go-nuts
14:01 -!- artefon [~thiago@189.59.206.137] has joined #go-nuts
14:01 -!- artefon [~thiago@189.59.206.137] has quit [Read error: Connection reset
by peer]
14:02 -!- artefon [~thiago@189.59.206.137] has joined #go-nuts
14:02 -!- artefon [~thiago@189.59.206.137] has quit [Read error: Connection reset
by peer]
14:02 -!- jacekm [jacekm@parrot.dobremiasto.net] has quit [Ping timeout: 240
seconds]
14:05 -!- tvw [~tv@212.79.9.150] has quit [Remote host closed the connection]
14:07 -!- Fish [~Fish@86.65.182.207] has quit [Remote host closed the connection]
14:08 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
14:09 -!- virtualsue [~chatzilla@nat/cisco/x-jyxjimxrjovshvku] has quit [Ping
timeout: 252 seconds]
14:12 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving]
14:18 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
14:32 -!- evildho [~devon@onager.omniti.com] has quit [Quit: irc is dead, long
live irc]
14:34 -!- gnuvince [~vince@70.35.161.113] has joined #go-nuts
14:35 -!- Venom_X [~pjacobs@74.61.90.217] has joined #go-nuts
14:40 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
14:41 -!- gnuvince [~vince@70.35.161.113] has quit [Ping timeout: 264 seconds]
14:47 -!- zyrg [~kirill@net089023009210.pskovline.ru] has quit [Remote host closed
the connection]
14:59 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has joined #go-nuts
15:07 -!- arekzb [4632cb24@gateway/web/freenode/ip.70.50.203.36] has joined
#go-nuts
15:08 -!- femtoo [~femto@95-89-248-249-dynip.superkabel.de] has joined #go-nuts
15:14 < arekzb> hello, I'm using goinstall to install web.go package
15:15 < arekzb> It seems that goinstall is looking for a Make.386 inside
go/src/ directory and fails to find it
15:26 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 264 seconds]
15:26 -!- littlebobby [~bob@85.239.101.203] has joined #go-nuts
15:30 -!- wjlroe [~will@212.169.34.114] has joined #go-nuts
15:31 -!- jgh- [~jgh-@66.207.212.26] has joined #go-nuts
15:32 -!- tsykoduk [~tsykoduk@184.78.195.79] has quit [Ping timeout: 264 seconds]
15:33 < jgh-> So I'm trying to build Go off of the mercurial repository (as
per Google's how-to) and it's getting stuck at the http.TestClient /
http.TestClientHead / http.TestRedirect steps - it's failing these with this error
: Get http://www.google.com/robots.txt: dial tcp www.google.com:http: lookup
www.google.com.  on 192.168.43.1:53: no answer from server -- 192.168.43.1 doesn't
exist on my network, where is it getting this address from?
15:34 -!- dionysiac [~dionysiac@S01060013102db8c7.cg.shawcable.net] has joined
#go-nuts
15:34 -!- tsykoduk [~tsykoduk@184.78.195.79] has joined #go-nuts
15:34 < bortzmeyer> jgh: from /etc/resolv.conf
15:36 < jgh-> mm
15:37 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
15:37 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
15:37 -!- kanru [~kanru@61-228-158-59.dynamic.hinet.net] has quit [Ping timeout:
276 seconds]
15:39 < jgh-> well changing that to a valid DNS seemed to fix the problem,
thanks
15:44 -!- gnuvince [~vince@70.35.161.113] has joined #go-nuts
15:47 -!- plainhao [~plainhao@mail.xbiotica.com] has joined #go-nuts
15:53 -!- gnuvince [~vince@70.35.161.113] has quit [Ping timeout: 265 seconds]
15:56 -!- gnuvince [~vince@70.35.161.113] has joined #go-nuts
15:59 -!- napsy [~luka@88.200.96.18] has quit [Quit: Lost terminal]
16:00 -!- markcol [~markcol@74.125.59.1] has joined #go-nuts
16:01 -!- gnuvince [~vince@70.35.161.113] has quit [Ping timeout: 240 seconds]
16:03 -!- markcol [~markcol@74.125.59.1] has quit [Client Quit]
16:03 -!- markcol [~markcol@74.125.59.1] has joined #go-nuts
16:04 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has joined
#go-nuts
16:04 -!- ShadowIce
[~pyoro@HSI-KBW-109-193-120-162.hsi7.kabel-badenwuerttemberg.de] has quit
[Changing host]
16:04 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
16:15 -!- jwillia3 [jlwjr@c-76-16-159-139.hsd1.il.comcast.net] has joined #go-nuts
16:21 < Tv> netchan is greatly confusing me
16:22 < Tv> i could swear i see ImportNValues serializing a message with
payload {-1, Send}, and Exporter.run deserializing a message with payload {-1,
Recv}
16:23 -!- jwillia3 [jlwjr@c-76-16-159-139.hsd1.il.comcast.net] has left #go-nuts
["Leaving"]
16:23 < Tv> going to try to reproduce that in a minimal setup
16:25 -!- petrux [~petrux@host16-224-static.53-82-b.business.telecomitalia.it] has
quit [Quit: leaving]
16:30 -!- irc_ [~irc@209.17.191.58] has quit [Quit: leaving]
16:34 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
16:35 -!- gnuvince [~vince@70.35.161.113] has joined #go-nuts
16:39 -!- sacho [~sacho@82.137.66.134] has joined #go-nuts
16:42 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit:
Leaving.]
16:52 < wrtp> Tv: i've just fixed that bug
16:52 < Tv> wrtp: oh ;)
16:52 < wrtp> it's because gob doesn't overwrite fields with zero value
16:53 < wrtp> http://codereview.appspot.com/2337044/
16:53 -!- gnuvince [~vince@70.35.161.113] has quit [Ping timeout: 265 seconds]
16:55 < Tv> wrtp: looks good, recompiling
16:56 -!- markcol [~markcol@74.125.59.1] has quit [Quit: markcol]
17:00 < Tv> wrtp: yup, i'm clearly past my previous problem, thank you
17:01 -!- markcol [~markcol@74.125.59.1] has joined #go-nuts
17:03 < Tv> ok so how do people usually shutdown a netchan connection?
17:04 < Tv> i can't find much support for that
17:04 < skelterjohn> close()?
17:07 < nickaugust> godoc template throws:
17:07 < nickaugust> 2010/10/08 13:08:33 parser.parseDir:
/home/nick/src/go/src/pkg/template/template.go:188:42: expected ')', found '...'
(and 1 more errors)
17:07 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error:
Connection reset by peer]
17:07 < Tv> skelterjohn: i don't see any public api for that
17:07 < skelterjohn> isn't a netchan a type of chan?
17:08 < nickaugust> also, it looks like template.Template.Execute() wont
handle a reflect.StructValue is that correct?
17:08 < skelterjohn> i haven't ever used it
17:08 < wrtp> Tv: Drain is useful
17:08 < nickaugust> actually all my godocs are messed..  wtf..
17:08 < wrtp> netchan is fairly limited currently
17:09 < Tv> wrtp: yeah, i'm already using it, and have an extra channel to
notify other end to exit, but i don't see ways of closing the tcp socket etc
17:09 < wrtp> it's not easy/possible to establish a private conversation
between server and a client
17:09 < wrtp> do you wanna close server or client side?
17:10 < wrtp> i've got an idea to allow the sending of channels as part of
netchan values
17:11 < Tv> wrtp: right now my client is the importer, and it's in charge of
when to stop
17:11 < Tv> wrtp: i'm actually doing extra tricks, i'm using netchan via
things that are not tcp..
17:11 < Tv> s/via/over/
17:13 -!- gnuvince [~vince@70.35.161.113] has joined #go-nuts
17:13 < wrtp> netchan.Importer should have a Close method
17:14 < nickaugust> anyone else get parser errors from godoc after pull?
17:15 < nickaugust> it parses/prints some of the source files but gives an
error for others
17:22 -!- femtoo [~femto@95-89-248-249-dynip.superkabel.de] has quit [Quit:
Leaving]
17:23 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has joined #go-nuts
17:24 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
17:29 -!- markcol [~markcol@74.125.59.1] has quit [Quit: markcol]
17:29 -!- markcol [~markcol@74.125.59.1] has joined #go-nuts
17:32 -!- gnuvince [~vince@70.35.161.113] has quit [Ping timeout: 240 seconds]
17:35 -!- falconindy [~noclaf@unaffiliated/falconindy] has quit [Quit: Lost
terminal]
17:39 -!- falconindy [~noclaf@unaffiliated/falconindy] has joined #go-nuts
17:41 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error:
Connection reset by peer]
17:42 -!- falconindy [~noclaf@unaffiliated/falconindy] has quit [Client Quit]
17:43 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
17:45 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
17:46 < nickaugust> iant: you around?  its it correct that
template.Template.Execute() can not handle a reflect.StructValue?
17:46 <+iant> I'm around but I know nothing about the template package; I've
never tried to use it
17:47 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error:
Connection reset by peer]
17:49 < nickaugust> iant: ok thanks.  it doesnt seem to work...  ive been
converting the reflect.StructValue to a map dynamically and passing that but its
not a perfect solution.
17:49 -!- arekzb [4632cb24@gateway/web/freenode/ip.70.50.203.36] has quit [Quit:
Page closed]
17:53 < wrtp> nickaugust: i think it can handle a struct
17:54 -!- falconindy [~noclaf@unaffiliated/falconindy] has joined #go-nuts
17:56 < wrtp> definitely can.  look at godoc for an example
17:57 < wrtp> oh, instead of passing the reflect.StructValue itself, pass
the interface (i.e.  if v is the reflect.StructValue, pass v.Interface())
18:00 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Read error:
Connection reset by peer]
18:05 -!- gnuvince [~vince@70.35.161.113] has joined #go-nuts
18:13 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
18:18 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
18:23 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Ping timeout: 240 seconds]
18:24 -!- femtoo [~femto@95-89-248-249-dynip.superkabel.de] has joined #go-nuts
18:24 -!- leczb [~leczb@nat/google/x-gpnnzmclvtuvtuow] has quit [Remote host
closed the connection]
18:34 -!- alkavan [~alkavan@87.68.73.23.cable.012.net.il] has joined #go-nuts
18:41 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Ping timeout: 240
seconds]
18:46 < nsf> http://www.liblfds.org <- spotted on the D announce ML,
lock-free data structure library written in C
18:47 < nsf> although source code looks very weird
18:48 < EthanG> the website is horrifically badly done, lol
18:48 < nsf> yes, and that too
18:48 < nsf> first thing that "clicked" in my head is the download link
18:48 < nsf> filename with spaces, ugh..
18:48 < EthanG> hmm I'd expect something 'lock-free' to have odd-looking
source code, like coroutines do
18:49 < nsf> well, it's not that kind of odd (like in luajit for example,
where everything is a hack)
18:49 < nsf> but in its own way
18:50 < nsf> include files are in the "inc" directory
18:50 < EthanG> ah >_>
18:50 < nsf> 5 empty lines all over the source code as a separator
18:50 < nsf> I mean seriously..  weird
18:51 < EthanG> I give up.  They dont' even know what a wiki is.  "Wikipedia
and Documentation" indeed
18:51 -!- wjlroe [~will@212.169.34.114] has quit [Ping timeout: 276 seconds]
18:52 < nsf> anyway, who knows..  maybe it works very well
18:53 < EthanG> it's possible, but I think it more likely to be written by
someone very much out of touch with the current state of the art
18:54 < EthanG> or it could be written by someone who's been hunkered down
in a basement for the last 10 years focusing on just this one problem, and has
produced a beautiful solution.  :3
18:54 < nsf> indeed :D
18:59 < skelterjohn> Maybe they just don't care about web design
18:59 < skelterjohn> it looks kind of like a web site i'd make
19:00 < nsf>
http://groups.google.com/group/golang-nuts/browse_thread/thread/eb8049023bd17f6c
19:00 < nsf> hehehe
19:00 < nsf> now we will have built-in 'append'
19:00 < skelterjohn> i wish we'd just have generics instead
19:00 < skelterjohn> and not have this need to constantly expand the list of
built-ins
19:00 < nsf> or..  built-in vector
19:01 < skelterjohn> now that we have append, we have a built-in vector
19:01 -!- plainhao [~plainhao@mail.xbiotica.com] has quit [Quit: plainhao]
19:01 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
quit [Ping timeout: 240 seconds]
19:01 < nsf> skelterjohn: well, I understand their intention
19:01 < nsf> it's a good solution if you don't know what form of generics
you want to implement
19:02 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has joined #go-nuts
19:02 < nsf> also, for 80% of container needs, a vector and a map is
everything you need
19:03 < cbeck> I was just wishing for that.
19:03 < exch> generics involve a lot more than this function offers.  The
potential for nasty side effects is virtually 0 with this append() addition
19:04 < skelterjohn> i'm not saying that they're somehow equivalent
19:04 < nsf> also note the people's reaction
19:04 < nsf> like everyone wanted this for so long
19:04 < nsf> :D
19:04 < cbeck> joh
19:04 < cbeck> tp:
19:05 < skelterjohn> it's true - no one likes writing the same code eight
times
19:06 < skelterjohn> i think about how generics might be done for go,
sometimes
19:06 < skelterjohn> tell me if anyone has gone down this road:
19:06 < skelterjohn> generics as pointers.  regular types are easy - they're
just like interface{} except that they can be type-asserted without a runtime
check
19:06 < skelterjohn> slices are a bit harder
19:07 < skelterjohn> can't just turn the slice into an interface{}, because
the generic library wouldn't know how to deal with it
19:07 < skelterjohn> since elements in the slice are of strange distances
apart
19:07 < skelterjohn> but if the generic type had a pointer to the slice, but
also the size of the elements, that could be taken care of
19:08 < nsf> the main problem is that people want generics to be as fast as
manually written specialized code
19:08 < skelterjohn> then the next problem would be [][]X types
19:08 < nsf> otherwise why do we need them
19:08 < skelterjohn> nsf: and this would be, modulo dereferences
19:08 < skelterjohn> nsf: you know the answer to that question =p
19:09 < skelterjohn> with [][]X types, we can't just treat it the same as a
[]X, because we need the size of elements in both dimensions
19:09 < nsf> currently I guess compiler just knows few forms of generics
19:09 < nsf> like 'copy'
19:09 < skelterjohn> it gets a bit trickier here and i don't have it thought
through
19:09 < nsf> and simply generates code for you
19:09 < nsf> there is no way to specify custom templates for code generation
19:10 -!- emmanueloga [~emmanuelo@190.244.15.163] has quit [Quit: WeeChat
0.3.3-dev]
19:10 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
19:10 < nsf> skelterjohn: I just don't think that there is a point in making
generics just for type safety
19:10 < skelterjohn> what i am suggesting would be fast, keep memory
alignment, etc
19:11 < skelterjohn> just with some extra stuff indicating element sizes for
certain types
19:11 < skelterjohn> which is known at compile time when you invoke the
generic function
19:11 < skelterjohn> the size of the structure is the only thing that the
generic code really needs to know to work properly on the original data
19:12 < skelterjohn> assuming you don't do things like add the generic'd
types together
19:12 < skelterjohn> which only makes sense for certain kinds of types
19:12 < nsf> hehe, there are a lot of issues for generic generics system
19:12 < skelterjohn> then if you have all those types really be pointers,
you know how big the stacks need to be ahead of time, too
19:12 -!- emmanueloga [~emmanuelo@190.244.15.163] has joined #go-nuts
19:12 < skelterjohn> nsf: i don't think i parsed what you said right
19:13 < nsf> generic generics system
19:13 < nsf> templates are that kind of thing
19:13 < nsf> currently we have a non generic solution
19:14 < nsf> by simply adding everything common enough to the compiler
19:14 < skelterjohn> i still don't understand "generic generics system"
19:14 < nsf> well, 'generics' is something that works with different types,
right?
19:14 < nsf> and 'generic generics' is an ability to define 'generics'
19:14 < nsf> :)
19:15 < skelterjohn> :\
19:15 < nsf> ok, nevermind
19:15 < skelterjohn> heh
19:15 < nsf> that won't help you anyway
19:15 < skelterjohn> i suppose the only other thing i really want is the
ability to use whatever as a map key
19:15 < nsf> and a built-in 'sort'
19:15 < nsf> :P
19:16 < skelterjohn> that might be nice, too
19:16 < skelterjohn> but i have less personal use
19:16 < nsf> and of course
19:16 < nsf> binary search
19:16 < skelterjohn> but i feel like you should be able to have any type as
a map key - use the raw bits of the struct for a hash and equals method
19:16 < skelterjohn> convert it directly to []byte and use the string
version of the key
19:17 < skelterjohn> or i wonder if strings cache their hashcodes
19:17 < skelterjohn> would make sense, i guess
19:17 < nsf> skelterjohn: the only problem here
19:17 < nsf> that strings are immutable
19:17 < nsf> and I bet maps use that fact
19:18 < nsf> the simply store a reference to the key
19:18 < nsf> you can't use plain struct bits for that
19:18 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has joined #go-nuts
19:18 < nsf> because they are mutable
19:18 < skelterjohn> i'm saying do this under the hood
19:18 < nsf> you'll end up copying these bits to a string anyway
19:18 < skelterjohn> using an arbitrary struct as the key can be immutable
if you copy it
19:18 < skelterjohn> and copying the struct is reasonable if you specify it
as a key
19:19 < skelterjohn> same as you copy the struct if its the param to a
funciton
19:19 < skelterjohn> function
19:19 < nsf> but why can't you simply write a wrapper
19:19 < nsf> like:
19:20 < nsf> func structToString(mystruct *Struct) string
19:20 < nsf> and use 'unsafe' trickery inside
19:20 < skelterjohn> because i want go to do it for me :)
19:20 < nsf> which converts struct bytes to the string
19:20 < skelterjohn> i'm not saying we can't do this kind of thing by
writing enough code
19:20 < nsf> well, that the problem
19:20 < nsf> using custom structs as keys
19:21 < nsf> is not as common as 'append' for example
19:21 < nsf> why bother adding that to the go language?
19:21 -!- alkavan [~alkavan@87.68.73.23.cable.012.net.il] has quit [Quit: Leaving]
19:21 < nsf> function that converts struct bits to a string
19:21 < nsf> is a one liner
19:22 < nsf> let me show you
19:23 < skelterjohn> no, i understand how to do it :)
19:24 < Gertm> is there a way to check the contents of the buffer of a
channel?  or the length of the buffer?
19:24 < skelterjohn> doesn't cap(ch) give you the length of that buffer?
19:24 < skelterjohn> and len(ch) give you the number of things currently in
it?
19:24 < skelterjohn> actually peeking at the contents isn't very channel
like
19:25 < Gertm> ah, didn't find that in the docs
19:25 < Gertm> well I need to know if the buffer is full or not, that's all
19:26 < skelterjohn> you can use the non-blocking version of channel send
19:26 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
19:26 < Gertm> non-blocking version?
19:28 < nsf> skelterjohn: http://pastie.org/1208408
19:28 -!- femtoo [~femto@95-89-248-249-dynip.superkabel.de] has quit [Quit:
Leaving]
19:29 < nsf> unfortunately, the string cannot be printed, but hopefully it
will be hashed correctly
19:29 -!- irc [~irc@209.17.191.58] has joined #go-nuts
19:29 -!- tvw [~tv@e176001068.adsl.alicedsl.de] has joined #go-nuts
19:29 < skelterjohn> Gertm: "ok := ch <- val"
19:29 < skelterjohn> ok will be false if you couldn't put it in the buffer
right away
19:30 < nsf> func TestToString(t *Test) string { return
string((*(*[999]byte)(unsafe.Pointer(t)))[:unsafe.Sizeof(*t)]) }
19:30 < nsf> :D
19:30 < nsf> go hacks in action
19:32 < nsf> btw, should it be considered as a bug
19:33 < nsf> that Printf treats %s as null-terminated strings
19:33 < nsf> Go's strings aren't null-terminated
19:33 < nsf> afaik
19:33 < nsf> oh, wait
19:33 < nsf> maybe it prints all that stuff actually
19:34 < nsf> 1, 2 and 3 bytes aren't printable as well
19:34 < skelterjohn> how do you display a zero valued character
19:34 < nsf> yes, yes
19:34 < nsf> I was wrong about Printf, sorry
19:34 < nsf> :D
19:35 -!- sahid [~sahid@LNeuilly-152-21-22-10.w193-253.abo.wanadoo.fr] has quit
[Quit: Ex-Chat]
19:38 -!- wjlroe [~will@78-86-14-131.zone2.bethere.co.uk] has joined #go-nuts
19:41 * skelterjohn wishes xcode could refactor go code
19:48 -!- jtrag-AWAY [~jtrageser@c-174-55-74-243.hsd1.pa.comcast.net] has joined
#go-nuts
19:57 < skelterjohn> extra fun: when there is a panic about nil
dereferencing, and the line of code it points to is "return"
19:58 < nsf> it's easy
19:58 < nsf> return statement contains pointer deref then
19:59 < skelterjohn> it's just return by itself
20:00 < nsf> hehe
20:00 < skelterjohn> in fact it's the next line of actual code that has the
error
20:00 < nsf> fun, indeed
20:00 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit:
Leaving.]
20:07 -!- DerHorst [~Horst@e176097050.adsl.alicedsl.de] has joined #go-nuts
20:08 -!- markcol [~markcol@74.125.59.1] has quit [Quit: markcol]
20:12 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has quit
[Quit: Leaving.]
20:20 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
20:23 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has joined
#go-nuts
20:27 -!- gnuvince [~vince@70.35.161.113] has quit [Ping timeout: 240 seconds]
20:27 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has quit [Quit:
Leaving.]
20:36 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving]
20:37 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has quit [Ping timeout:
276 seconds]
20:37 -!- gnuvince [~vince@70.35.161.113] has joined #go-nuts
20:38 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has joined #go-nuts
20:43 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has quit [Ping timeout:
264 seconds]
20:44 -!- napsy [~luka@tm.213.143.73.175.lc.telemach.net] has joined #go-nuts
20:45 -!- wrtp [~rog@92.17.67.123] has quit [Quit: wrtp]
20:51 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-190.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
20:57 -!- gnuvince [~vince@70.35.161.113] has quit [Ping timeout: 276 seconds]
20:59 -!- Altercato [~Altercati@ogygia.ethanschoonover.com] has quit [Excess
Flood]
20:59 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has joined
#go-nuts
21:02 -!- gnuvince [~vince@70.35.161.113] has joined #go-nuts
21:05 -!- jtrag [~jtrageser@c-174-55-74-243.hsd1.pa.comcast.net] has quit [Excess
Flood]
21:08 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
21:11 -!- DerHorst [~Horst@e176097050.adsl.alicedsl.de] has quit [Remote host
closed the connection]
21:11 -!- gnuvince [~vince@70.35.161.113] has quit [Ping timeout: 260 seconds]
21:14 -!- skelterjohn [~jasmuth@lawn-gw.rutgers.edu] has quit [Quit: skelterjohn]
21:22 -!- mimustafa [~steve@92.62.125.249] has joined #go-nuts
21:23 -!- dacc [~Adium@D-128-95-10-232.dhcp4.washington.edu] has joined #go-nuts
21:23 -!- mimustafa [~steve@92.62.125.249] has left #go-nuts []
21:24 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
21:28 -!- Venom_X [~pjacobs@74.61.90.217] has quit [Quit: Venom_X]
21:43 -!- jgh- [~jgh-@66.207.212.26] has quit [Ping timeout: 255 seconds]
21:49 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
21:50 -!- ikaros [~ikaros@188.107.214.200] has quit [Quit: Leave the magic to
Houdini]
22:04 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
22:05 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has quit [Ping timeout: 252
seconds]
22:16 < nsf> :(
22:16 < nsf> fmt.Println(args...)
22:16 < nsf> new varargs stuff is not supported by the go/parser yet
22:17 <+iant> that seems odd, gofmt seems to be able to handle it
22:17 < nsf> maybe I haven't updated my Go tree for a long time, let me
check this
22:18 < nsf> ah, yes
22:18 < nsf> sorry
22:18 < nsf> I forgot to rebuild the gocode after the latest go release
update
22:18 < nsf> works just fine
22:24 -!- scyth [~scyth@rots.in.rs] has joined #go-nuts
22:26 -!- photron [~photron@port-92-201-30-121.dynamic.qsc.de] has quit [Read
error: Operation timed out]
22:28 -!- ExtraSpice [~XtraSpice@88.118.34.223] has quit [Ping timeout: 240
seconds]
22:33 -!- wjlroe_ [~will@78-86-14-131.zone2.bethere.co.uk] has joined #go-nuts
22:34 -!- wjlroe [~will@78-86-14-131.zone2.bethere.co.uk] has quit [Ping timeout:
264 seconds]
22:47 -!- tvw [~tv@e176001068.adsl.alicedsl.de] has quit [Read error: Connection
reset by peer]
22:51 -!- wjlroe_ [~will@78-86-14-131.zone2.bethere.co.uk] has quit [Quit:
Computer has gone to sleep]
22:55 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
23:06 -!- thomas_b [~thomasb@cm-84.215.47.51.getinternet.no] has joined #go-nuts
23:07 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
23:18 < nsf> omg, it's a disaster
23:19 < nsf> after rebuild gocode fails to autocomplete 17 out of 29 tests
23:19 < nsf> :\
23:19 < nsf> for no reason
23:26 < nsf> * go/scanner: treat EOF like a newline for purposes of
semicolon insertion.
23:26 < nsf> 1:3: expected 'EOF', found newline
23:26 < nsf> great..
23:26 < nsf> thank you Robert
23:26 < nsf> :\
23:26 < EthanG> lol ack
23:35 < nsf> well, it's not really funny for me
23:35 < nsf> because I can't figure out how to fix it
23:36 -!- dacc [~Adium@D-128-95-10-232.dhcp4.washington.edu] has quit [Quit:
Leaving.]
23:37 < skelterjohn> gofmt can probably do it
23:37 < nsf> and he didn't even test ParseExpr in his parser_test.go
23:38 < nsf> doesn't*
23:39 -!- kanru [~kanru@61-228-158-59.dynamic.hinet.net] has joined #go-nuts
23:39 < skelterjohn> submit a new test to codereview
23:43 < nsf> well, actually it's a bug
23:43 < nsf> the problem is, that ParseExpr function
23:43 < nsf> does this:
23:43 < nsf> return p.parseExpr(), p.parseEOF()
23:44 < nsf> but according to new scanner rules
23:44 < nsf> semicolon is being inserted at the EOF
23:44 < nsf> and p.parseEOF() returns an error
23:44 < nsf> always
23:44 < EthanG> so there's already a failing test
23:45 < nsf> I'll just submit the bug
23:46 < nsf> uhm..  wait
23:46 < nsf> but on the other hand
23:46 < nsf> semicolon should not be inserted
23:46 < nsf> here
23:46 < nsf> because flag is not set
23:51 < nsf> that's really weird
23:51 < nsf> semicolon should not be inserted here
23:53 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Quit: Leaving.]
23:54 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
23:54 < plexdev> http://is.gd/fSdqQ by [Ken Thompson] in 2 subdirs of
go/src/pkg/runtime/ -- bug in stack size in arm.
23:57 -!- kingfishr_ [~kingfishr@38.108.184.253] has joined #go-nuts
23:58 < kingfishr_> Why does File not have a readLine()?  Is there another
package with file I/O convenience methods?
23:59 < nsf> ah..  I see, scanner.InsertSemis is enabled by default
23:59 < nsf> which turns: 'fmtEOF' into 'fmt;EOF'
23:59 < nsf> and yes, it's a bug
23:59 < nsf> kingfishr_: File isn't buffered, there is a bufio reader and it
has that kind of method
23:59 < nsf> see 'bufio' package
--- Log closed Sat Oct 09 00:00:10 2010