--- Log opened Sun Oct 03 00:00:09 2010
00:00 < kronoz> Archwyrm: that was it :)
00:00 < Archwyrm> Cool :)
00:01 -!- g0bl1n [~pr0kter@a213-22-18-58.cpe.netcabo.pt] has quit [Read error:
Operation timed out]
00:04 -!- nickaugust [~nick@li181-40.members.linode.com] has joined #go-nuts
00:04 < nickaugust> q
00:04 -!- nickaugust [~nick@li181-40.members.linode.com] has quit [Client Quit]
00:07 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping
timeout: 245 seconds]
00:13 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has joined #go-nuts
00:13 -!- k0re [k0re@we.will.never-be.afraid.org] has joined #go-nuts
00:15 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
00:20 -!- tvw [~tv@e176006166.adsl.alicedsl.de] has quit [Ping timeout: 252
seconds]
00:20 -!- nickaugust [~bot@199.228.121.70.cfl.res.rr.com] has joined #go-nuts
00:21 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Remote host closed the connection]
00:21 -!- drhodes [~none@207.3.149.84] has joined #go-nuts
00:23 -!- nickaugust [~bot@199.228.121.70.cfl.res.rr.com] has quit [Quit:
nickaugust]
00:35 -!- it_diver [~it_diver@dslb-084-059-152-253.pools.arcor-ip.net] has quit
[Ping timeout: 252 seconds]
00:38 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
00:39 < Tv> bah netchan is tempting but trying to use it for real just
brings out all the problems
00:39 < Tv> like, i can't differentiate between close-because-of-error and
close-because-exporter-said-so
00:42 -!- adu [~ajr@64.134.98.146] has joined #go-nuts
00:42 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
00:43 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
00:53 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 264 seconds]
01:15 < vsmatck> Why is the map a language feature instead of a library
feature?
01:17 < nbjoerg> vsmatck: because there is no support for generic types and
that makes it kind of hard to write as library
01:18 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection
reset by peer]
01:18 < vsmatck> Why would it be harder to write than a vector (which is a
library feature)?
01:20 < vsmatck> They are different.  I can have a map of string to string,
but I can't have a vector of strings.  A vector is just a vector and not
specialized to any type.
01:20 < vsmatck> But why not do map that way?
01:20 < vsmatck> It seems not as good.  But still do-able.
01:20 < nbjoerg> the vector interface is not that nice either
01:21 < vsmatck> I guess I'm not sure why map gets to sit on the front of
the bus.  :)
01:21 < nbjoerg> because it is a useful enough primitive to build stuff on
01:21 < nbjoerg> vector for example can be implemented on top of map or
arrays
01:22 < cbeck> Honestly, I wish slices had push/pop etc as builtins, but
I'll keep dreaming
01:22 < adu> i have a ?
01:22 < adu> how does Go handle constructors/destructors?
01:22 < cbeck> Go is garbage collected, so no destructors
01:23 < nf_> adu: it does not have them
01:23 < vsmatck> adu: It uses a idiom in place of constructors where you
write a function called "new<struct_name>".
01:23 < adu> so a constructor is just anything that returns that type
01:23 < vsmatck> That function does any setup the object needs.
01:27 < adu> sounds very DOMish
01:28 < vsmatck> Slices seem like a good primitive.  I don't like the idea
of push and pop as a language feature for slices tho.  Maps still seem like quite
a high level thing to me.
01:29 < nbjoerg> vsmatck: having a good hash table type builtin is extremely
useful
01:29 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
01:29 < adu> well, in Haskell maps are library, and its not always clear
which map is the right one to use, causing lots of confusion
01:30 < vsmatck> Hm, well I haven't made up my mind about it.  I'm a C++
programmer which is probably causing my angst about it.
01:31 < adu> i always wanted to add a new operator to Haskell, called
(+>) that would take care of specializations like IntMap and BitVector, etc...
01:32 < adu> functions and dictionaries should be language, not library
01:33 -!- kanru [~kanru@61-228-154-1.dynamic.hinet.net] has quit [Read error:
Operation timed out]
01:33 < vsmatck> I don't think map implies hash table.  A hash table and a
tree would have the same interface anyways.
01:33 < adu> and in my ideal language, they would have the same usage too (f
x) and (a k) not f(x) and a[k]
01:34 < vsmatck> adu: Does haskell have specializations like C++ where you
can change the implementation depending on the type you're specializing to?
01:34 -!- aho [~nya@fuld-4d00d097.pool.mediaWays.net] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
01:35 < adu> yes, its called typeclasses
01:35 < nbjoerg> vsmatck: no, they don't
01:35 < nbjoerg> vsmatck: a tree normally also provides an iteration
interface relative to some order
01:35 < adu> vsmatck: yes, they do
01:36 < vsmatck> nbjoerg: ah, I think about it more and I think you're
right.  Can't iterate through a hash table like you said.
01:37 < vsmatck> adu: I know in C++ people have gotten themselves in to
trouble with template specialization.  There is a specialization in the C++
standard library for vector<bool> which is broken.  Someone how it got by
the whole comitte.
01:38 < adu> iirc, the reason why vector<bool> is broken is because it
has extra features
01:38 < adu> those extra features shouldn't be there if its a specialization
01:39 < adu> .flip() iirc
01:39 < vsmatck> Haven't heard about the .flip problem.  One problem I am
aware of is that you can't use std::swap on std::vector<bool>.
01:40 < vsmatck> To swap elements.
01:41 -!- res99 [~anonymous@201.237.130.70] has quit [Read error: Connection reset
by peer]
01:41 < adu> anyways i'm cold
01:41 < adu> gtg
01:41 -!- adu [~ajr@64.134.98.146] has quit [Quit: adu]
01:41 -!- res99 [~anonymous@201.237.130.70] has joined #go-nuts
01:44 < vsmatck> Maybe I'm thinking about the map thing wrong.  I guess I'm
thinking it's not primitive because it's super complex to implement under the
hood.  I should probably only be thinking of the interface though.
01:44 < vsmatck> It does seem to have a simple interface.
01:45 < vsmatck> There would be too much overlap between slices and
container/vector to want to include a vector as a language feature.
01:46 < vsmatck> I guess language features really shouldn't have named
functions either.  A vector would certainly need named functions.
01:47 < vsmatck> If there were generics and a package like "bytes" for all
slice types it would pretty much obsolete "container/vector".
01:48 -!- res99 [~anonymous@201.237.130.70] has quit [Read error: Connection reset
by peer]
01:48 < vsmatck> It seems like if generics are ever added they'd make some
stuff redundant.
01:48 -!- res99 [~anonymous@201.237.130.70] has joined #go-nuts
01:51 < vsmatck> If the redunant stuff is left in when generics are added
then make way for Go++.  LOL
01:56 < vsmatck> I guess a language primitive should just be an idea that's
widely used which can be added to the language with a minimum of syntactic
overhead.  When I think of maps like this it makes perfect sense to put them in
the language.
01:58 < nbjoerg> there is enough precende for it
01:58 < nbjoerg> e.g.  Python, Perl, ...
01:58 < nbjoerg> Puby
01:58 < nbjoerg> just to name the usual P languages
01:59 < jcao219> yay python
02:00 < vsmatck> heh, I don't have much experience with P languages.  My
rant probably seemed very simple minded to you guys.
02:00 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
02:04 -!- mbdlsr [~mbdlsr@unaffiliated/mbdlsr] has joined #go-nuts
02:12 -!- DerHorst [~Horst@e176101194.adsl.alicedsl.de] has joined #go-nuts
02:16 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Remote host closed the connection]
02:20 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has quit
[Remote host closed the connection]
02:21 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
02:22 -!- kingfishr [~kingfishr@c-24-130-147-77.hsd1.ca.comcast.net] has joined
#go-nuts
02:24 -!- mbdlsr [~mbdlsr@unaffiliated/mbdlsr] has left #go-nuts []
02:26 -!- DerHorst [~Horst@e176101194.adsl.alicedsl.de] has quit [Remote host
closed the connection]
02:26 -!- asm [nop@asm.dj] has joined #go-nuts
02:27 < asm> does anyone know if the go playground on golang.org is open
source?
02:30 < exch> it's in the go source
02:30 < exch> So same license as go itself
02:31 -!- it_diver [~it_diver@dslb-084-059-168-057.pools.arcor-ip.net] has joined
#go-nuts
02:31 -!- it_diver [~it_diver@dslb-084-059-168-057.pools.arcor-ip.net] has quit
[Remote host closed the connection]
02:31 -!- it_diver [~it_diver@dslb-084-059-168-057.pools.arcor-ip.net] has joined
#go-nuts
02:32 < asm> oh excellent
02:32 < asm> thanks!
02:33 < asm> any hints on where?
02:35 < exch> $GOROOT/doc/playground.html and root.html seems to have some
references to it.  I'm sure you can figure it out from there :)
03:00 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
03:18 -!- crazy2be [~quassel@d205-206-130-118.abhsia.telus.net] has quit [Remote
host closed the connection]
03:19 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
03:29 < Tv> exch: well the js file definitely isn't there, and not much
matching *play* at all
03:29 < Tv> i wonder if it's NaCl
03:31 -!- jserver [~jserver@pool-71-167-243-229.nycmny.east.verizon.net] has
joined #go-nuts
03:32 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping
timeout: 240 seconds]
03:37 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has quit
[Ping timeout: 245 seconds]
03:57 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has joined
#go-nuts
04:19 < asm> exch thanks agian :)
04:22 -!- bmizeran_ [~bmizerany@153.sub-75-208-194.myvzw.com] has joined #go-nuts
04:22 -!- bmizerany [~bmizerany@c-76-21-40-207.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
04:25 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
04:28 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-190.clienti.tiscali.it] has
joined #go-nuts
05:01 -!- scm [scm@d056213.adsl.hansenet.de] has quit [Ping timeout: 276 seconds]
05:02 -!- scm [scm@d070054.adsl.hansenet.de] has joined #go-nuts
05:09 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
05:16 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
05:46 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
06:14 -!- tasosos [~tasosos@178.128.22.35.dsl.dyn.forthnet.gr] has joined #go-nuts
06:19 -!- bmizeran_ [~bmizerany@153.sub-75-208-194.myvzw.com] has quit [Remote
host closed the connection]
06:26 -!- tasosos [~tasosos@178.128.22.35.dsl.dyn.forthnet.gr] has quit [Remote
host closed the connection]
06:27 -!- tasosos [~tasosos@178.128.22.35.dsl.dyn.forthnet.gr] has joined #go-nuts
06:28 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
06:29 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
06:30 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Client
Quit]
06:30 -!- jhh [~jhh@f048101146.adsl.alicedsl.de] has joined #go-nuts
06:36 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
07:05 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
07:16 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
07:23 -!- ronny [~quassel@p4FF1DE94.dip.t-dialin.net] has joined #go-nuts
07:33 -!- jserver [~jserver@pool-71-167-243-229.nycmny.east.verizon.net] has left
#go-nuts []
07:35 < uriel> nf_: any chance we could get first-time-poster-moderation for
golang-dev?  the spam is becoming distracting
07:35 -!- kanru [~kanru@61-228-162-133.dynamic.hinet.net] has joined #go-nuts
07:51 -!- kronoz [~user@91.104.84.145] has quit [Ping timeout: 264 seconds]
08:00 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
08:14 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Read error: Operation
timed out]
08:16 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has joined #go-nuts
08:23 -!- k0re [k0re@we.will.never-be.afraid.org] has quit [Ping timeout: 265
seconds]
08:24 -!- lmoura__ [~lauromour@187.59.117.90] has joined #go-nuts
08:25 -!- photron [~photron@port-92-201-45-211.dynamic.qsc.de] has joined #go-nuts
08:25 -!- lmoura_ [~lauromour@187.59.119.213] has quit [Read error: Operation
timed out]
08:48 -!- ikaros [~ikaros@188.107.212.174] has joined #go-nuts
08:49 -!- droon [~droon@69-113.106-92.cust.bluewin.ch] has joined #go-nuts
08:51 -!- droon [~droon@69-113.106-92.cust.bluewin.ch] has left #go-nuts []
08:51 -!- droon [~droon@69-113.106-92.cust.bluewin.ch] has joined #go-nuts
09:03 -!- napsy [~luka@88.200.96.18] has quit [Read error: Operation timed out]
09:04 -!- droon [~droon@69-113.106-92.cust.bluewin.ch] has left #go-nuts []
09:05 -!- droon [~droon@69-113.106-92.cust.bluewin.ch] has joined #go-nuts
09:07 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit:
Leaving.]
09:16 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
09:20 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
09:23 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
09:30 -!- droon [~droon@69-113.106-92.cust.bluewin.ch] has quit [Remote host
closed the connection]
10:02 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
10:08 -!- k0re [k0re@we.will.never-be.afraid.org] has joined #go-nuts
10:08 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 245 seconds]
10:15 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Remote host closed the
connection]
10:15 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
10:18 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection
reset by peer]
10:21 -!- gabriel9 [~gabriel9@93.157.192.28] has joined #go-nuts
10:37 -!- ikaros [~ikaros@188.107.212.174] has quit [Quit: Leave the magic to
Houdini]
10:52 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
11:15 -!- DerHorst [~Horst@e176101194.adsl.alicedsl.de] has joined #go-nuts
11:16 -!- res99 [~anonymous@201.237.130.70] has quit [Ping timeout: 245 seconds]
11:23 -!- res99 [~anonymous@201.237.130.70] has joined #go-nuts
11:26 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
11:27 -!- napsy [~luka@88.200.96.18] has quit [Read error: Operation timed out]
11:40 -!- fabled [~fabled@xdsl-83-150-94-238.nebulazone.fi] has quit [Ping
timeout: 240 seconds]
12:02 -!- vdrab [~vdrab@EM114-51-234-183.pool.e-mobile.ne.jp] has joined #go-nuts
12:03 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
12:24 < nsf> day 2: my toy language knows how to make: loops, variables,
functions, if/else/assign/return statements (
http://ompldr.org/vNXBrbQ/forloop.png )
12:24 < nsf> :P
12:25 < nsf> ah..  I forgot, it can also call externally linked functions as
well
12:25 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
connection]
12:26 < nsf> I think it's enough to write a mandelbrot drawing thing using
SDL :)
12:27 < exch> rolling your own is always good fun :)
12:28 < nsf> yep, I was curious about this "compiler writing" thing
12:29 < nsf> LLVM is quite amazing
12:29 < exch> I went straight to the runtime/assembler and just used the
runtime's opcodes as the 'language' with a few tweaks :)
12:29 < nsf> well, I haven't tried its optimization passes yet
12:29 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
12:29 < nsf> hehe, for some reason I'm not really interested in assembly
12:30 < exch>
http://github.com/jteeuwen/gvm/blob/master/testdata/99bottles.gvm 'assembly' is a
big word in this context really
12:30 < exch> But it works :)
12:31 < nsf> looks more like a VM opcodes
12:31 < nsf> s/a//
12:31 < exch> yea, most of them are.  I tweaked em a little to make writing
the code a little saner
12:32 < nsf> well, assembly is VM opcodes too..  without 'V' part
12:32 < exch> the assembler/compiler resolves it all to proper opcodes
12:32 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
12:33 < nsf> i see
12:33 < exch> many of these commands are the same in postscript.  If they
can call it a language, so can I ;)
12:33 < nsf> i saw a web server in postscript :)
12:33 < exch> :o
12:33 < exch> that's pretty hardcore
12:34 < nsf> compile-time raytracer using C++ templates is hardcore
12:34 < exch> that code also betrays where I get my irc nickname btw
12:34 < exch> any raytracer is hardcore in my book :p I wouldnt even know
where to begin
12:35 < nsf> :)
12:37 < nsf> ok, I still have to finish "drawing mandelbrot using SDL" part
of my toy language experiment :D
12:37 * nsf back to work
12:37 < exch> have fun
12:37 < nsf> thx
12:37 < nsf> you too, hehe
12:37 < exch> thx :p
12:39 < exch> my current source of 'fun' is a UDP network library aimed at
multiplayer games.  Since I've never actually used UDP before, this is proving to
be a good source of learning experiences
12:40 < nsf> I wrote a networking multiplayer tetris game in the past
12:40 < nsf> but I was using enet library
12:41 < exch> ah.  I considered doing some bindings for an existing lib, but
I figured I wuoldn't learn anything useful that wya.  So I'll try to roll my own
12:41 < nsf> well, good luck :)
12:41 < nsf> sometimes network is hard to get right
12:41 < nsf> networking*
12:42 < exch> yes.  There's also only so much I can do in this lib.  Most of
it will be tailored to the individual games
12:43 < exch> this is just the basic stuff.  sending/receiving.
reliability/in-order receiving, encyption/compression, packet fragmentation
12:43 < nsf> enet has all of that..  or almost all of that
12:43 < nsf> I don't remember about encryption/compression
12:44 < nsf> and it's basically all it has :)
12:44 < exch> it doesnt really need much more :) Rest should be up to the
game developer
12:44 < nsf> also "channels" thing
12:44 < nsf> where you can mix reliable and unreliable streams
12:44 < nsf> over one connection
12:45 < exch> ah nice
12:45 < exch> oh.  I also got NAT client resolution
12:46 < nsf> nice
12:48 < uriel> why use sdl?  exp/draw is quite nice
12:48 < uriel> nf_: btw, that is not an 'external' package, but i find
exp/draw quite useful
12:49 < nsf> uriel: it's my own toy language, it can't interact with Go
12:49 < nsf> :)
12:49 < uriel> nsf: heh
12:49 < uriel> toy languages are fun!
12:50 < nsf> so, my apologies for the offtopic :)
12:50 < nsf> although it would be nice to have Go bindings for tools I use
12:50 < nsf> ragel, lemon, LLVM
12:50 < nsf> I saw ragel's author twitter, he received Go patch recently
12:51 < nsf> although it doesn't look like he will add it anytime soon :(
12:51 < nsf> lemon port is trivial and LLVM is just a lot of routine work
12:53 < uriel> what are ragel and lemon?
12:53 * uriel would rather stay away from llvm and its piles of C++
12:54 < nsf> ragel is a state machine generator for regular languages, just
google for it, has nice page with all the description and pictures
12:54 < uriel> found it
12:54 < nsf> lemon is a part of sqlite project, parser generator
12:54 < uriel> why won't the author admit the Go patch?  bleh
12:54 < nsf> much simpler than yacc
12:55 < nsf> uriel: see his twitter http://twitter.com/agedt
12:55 -!- fabled [~fabled@xdsl-83-150-94-238.nebulazone.fi] has joined #go-nuts
12:55 < nsf> he has problems installing Go compiler or something :)
12:56 < nsf> http://twitter.com/agedt/status/20645085488
12:56 < nsf> well, it's just a matter of time I guess
12:56 < nsf> and regarding LLVM, I don't like C++ also, but LLVM has C
bindings and as far as there is no need to touch its source code
12:57 < nsf> I'm fine with it :)
12:58 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
12:58 -!- falconindy [~noclaf@unaffiliated/falconindy] has quit [Quit: Lost
terminal]
13:12 -!- jhh [~jhh@f048101146.adsl.alicedsl.de] has quit [Remote host closed the
connection]
13:12 -!- jhh [~jhh@4-096.vpn.RWTH-Aachen.DE] has joined #go-nuts
13:13 -!- vdrab [~vdrab@EM114-51-234-183.pool.e-mobile.ne.jp] has quit [Quit:
vdrab]
13:16 -!- tvw [~tv@e176007064.adsl.alicedsl.de] has joined #go-nuts
13:23 -!- kronoz [~user@91.104.84.145] has joined #go-nuts
13:23 -!- kronoz [~user@91.104.84.145] has left #go-nuts []
13:24 -!- kronoz [~user@91.104.84.145] has joined #go-nuts
13:24 < kronoz> hey
13:24 < nf_> hi
13:24 < kronoz> does anybody know how to build go with optimisations turned
off?
13:24 < nf_> build the go compilers?  or go programs?
13:24 < kronoz> compilers
13:25 < kronoz> basically want to override the -O2 flag passed to quietgcc,
either remove it or set -O0
13:26 < nf_> there's HOST_CFLAGS in src/Make.inc
13:27 < kronoz> aha!  that might just do it
13:27 < nf_> yeah, src/cmd/6g/Makefile uses $HOST_CFLAGS
13:27 < kronoz> excellent that did it.
13:27 < kronoz> thanks
13:27 < nf_> np
13:27 < kronoz> sorry if I am asking stupid questions :) only just getting
used to the codebase.  I want to contribute.  Am working on an issue.
13:28 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
13:29 < nf_> not stupid questions at all
13:29 < nf_> which issue?
13:29 < kronoz> 1153
13:29 < nf_> ah
13:29 < nf_> the compiler bug?
13:29 < kronoz>
http://code.google.com/p/go/issues/detail?id=1153&colspec=ID%20Priority%20Status%20Owner%20Reporter%20Summary
13:29 < kronoz> yeah
13:29 < kronoz> I'm making progress.
13:29 < kronoz> I thought it'd be a good issue to start with.
13:30 < kronoz> unsurprisingly, it's not specific to the buffer type.
13:30 -!- opafan46 [~opafan46@213.144.157.75] has joined #go-nuts
13:30 < nf_> well russ (rsc) may be able to solve it quite quickly, but i
think he's travelling at the moment, so you might beat him to it :)
13:31 < nf_> it looks like it's related to the recent changes regarding ...T
parameters
13:31 < kronoz> lol I'm racing to work on it before someone else gets it
done!  :)
13:32 < kronoz> yeah it arises whenever you pass a var'd copy of a struct
with unexported members to a ...T parameter
13:33 < kronoz> I get the impression it should have been picked up before
mkdotargslice
13:33 < kronoz> because it's doing a type check then calling fatal() if any
additional errors occur during the type check
13:34 < kronoz> sorry, if the type is unassigned, which occurs in the
typecheck if additional errors have occurred
13:34 -!- opafan46 [~opafan46@213.144.157.75] has quit [Client Quit]
13:34 < kronoz> annnnyway :) am giving it a go :)
13:35 < kronoz> (no pun intended)
13:35 -!- alefnula [~alefnula@188.246.38.197] has joined #go-nuts
13:36 -!- aho [~nya@fuld-4d00d3c3.pool.mediaWays.net] has joined #go-nuts
13:36 < nf_> :)
13:36 < nf_> http://code.google.com/p/go/source/detail?r=12f8fce80b76 seen
this?
13:37 < kronoz> no...  hm!  Worth investigating as it is likely related to
the recent change
13:38 < skelterjohn> lol
13:38 < skelterjohn> last time i did that i got scolded
13:38 < kronoz> did what?
13:39 < skelterjohn> made a commit with a garbage message
13:39 < skelterjohn> ohhhh it means variable length arg changes
13:39 < skelterjohn> lol
13:39 < skelterjohn> i thought it was just a weird way of saying "yeah
something changed here"
13:40 < kronoz> lol
13:40 < kronoz> yeah the ellipses have an unfortunate natural language
overload :)
13:41 < kronoz> "// delicate little dance."
13:41 < kronoz> :) I like such comments.
13:42 < kronoz> so skelterjohn: nf_: are you contributors?
13:42 < skelterjohn> i haven't contributed to the go distribution
13:42 < skelterjohn> but i have contributed libraries that are easily
available
13:42 < kronoz> skelterjohn: cool.
13:43 * exch would like to, but is afraid his skill is a little sub-par.
Competing with the likes of rob and ken is a little over my head
13:43 < kronoz> skelterjohn: what is your environment
13:43 * kronoz knows his skills are sub-par but is going to try anyway :)
13:43 < skelterjohn> my environment?
13:43 < skelterjohn> like, what tools i use to write code?
13:43 < kronoz> yeah
13:43 < kronoz> I am using emacs quite happily.
13:44 < skelterjohn> i use xcode and the command line
13:44 < kronoz> ah cool.
13:44 < kronoz> just curious :)
13:44 < nf_> kronoz: i'm adg@golang
13:44 < kronoz> nf_: cool.  Googler?
13:44 < adg> ye
13:44 < adg> sydney-based
13:45 < kronoz> adg: a lot of the go guys are based out of oz aren't they?
13:45 < adg> there are 3.5 of us here, 4.5 in mountain view, and 1 in zurich
13:46 < kronoz> adg: it's quite a big codebase.  Guess it's going to take
some time to get used to it.  Wondered how open you guys were to a non-googler
contributing to core?
13:46 < kronoz> adg: err...  .5?  Lol
13:46 < exch> lol
13:46 < adg> (one travels)
13:46 < exch> one person was too valuable to limit to one location, so they
cut him in half :p
13:46 < adg> kronoz: it really depends what you want to contribute
13:46 < adg> kronoz: we're always looking for and appreciative of good code
13:47 < kronoz> adg: I just want to get involved in a nice project + help
out any way I can.  I want a project with high standards + code review + smart
people working on it
13:47 < adg> well you came to the right place
13:47 < kronoz> adg: plus I am fascinated with lang design/compilers.  So go
is a good pick I think :)
13:47 < adg> there are a lot of contributors who do great work
13:48 < nbjoerg> .oO(does that imply that there are contributors who don't
do great work)
13:48 < kronoz> adg: hey, I expect to have my code ripped to pieces but that
is how I want it.  It's an exercise in improving myself.  I work in a sucky
internal c# job and...  don't feel overly challenged/stretched :)
13:48 < skelterjohn> no
13:48 < skelterjohn> it does not imply that.  come on, we're computer
scientists here!
13:48 < adg> nbjoerg: two separate assertions.  there's a lot of them, and
they do great work.
13:49 < adg> kronoz: sounds good to me; just remember code reviews take
effort, so patience is a virtue :)
13:50 < kronoz> adg: :) *adopts zen stance*
13:50 < adg> there's also a lot of value in quality external libraries
13:50 < kronoz> adg: sure, and I am not limiting myself to any particular
aspect of go :)
13:51 < exch> I'm just gonna sit on the sidelines and study the Go source
until I feel comfortable that any commit I make isn't just going to waste
everyone's precious time :p
13:51 < adg> it's great when people with domain knowledge write good Go
libraries
13:51 -!- DerHorst [~Horst@e176101194.adsl.alicedsl.de] has quit [Remote host
closed the connection]
13:51 < adg> exch: the best way to start is to fix small things
13:51 < kronoz> adg: I'm not sure how much domain knowledge I can bring.
But I can of course acquire some :)
13:51 < kronoz> adg: my strategy entirely.
13:51 < kronoz> anyway, doing > talking so had better get back to looking
at this issue...
13:51 < kronoz> :)
13:51 < adg> kronoz: do you work as a programmer?  are there any gaps in the
libraries that would make your job easier?
13:52 < adg> ttyl :)
13:52 < kronoz> adg: yeah I am a c# dev in a cruddy internal job :'-(
13:52 -!- falconindy [~noclaf@unaffiliated/falconindy] has joined #go-nuts
13:52 < kronoz> lol well...  talk a little longer then...  tee hee
13:52 < kronoz> adg: but I like to play about with stuff.  I am a linux dude
at home.  and have been working on projects in go.
13:52 < kronoz> well a linux/darwin dude
13:54 < kronoz> adg: anyway.  Will lurk here while I go off and do :)
14:03 -!- |ntegra| [~dru5k1@118-92-22-247.dsl.dyn.ihug.co.nz] has joined #go-nuts
14:11 -!- |ntegra| [~dru5k1@118-92-22-247.dsl.dyn.ihug.co.nz] has left #go-nuts []
14:11 < soul9> hi
14:11 < soul9> anyone know if the statsRegister function is a special name?
14:17 < Namegduf> No, it isn't.
14:18 < soul9> weird, ok thanks.
14:21 < Namegduf> What's puzzling you?
14:22 < soul9> well, i'm trying to change a package because it doesn't
install with goinstall.  The thing is that some statsRegister function is declared
twice.  now i tried to change it's signature and it tells me it needs 0 arguments.
14:22 < soul9> oh well, i can do it in a different way
14:23 < Namegduf> You can't declare the same function twice with different
numbers of arguments in Go.
14:23 < Namegduf> If that's what you're trying to do.
14:23 < soul9> hmmm maybe that's it then
14:23 < soul9> thanks
14:25 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has quit [Ping
timeout: 240 seconds]
14:30 -!- wrtp [~rog@92.17.55.116] has joined #go-nuts
14:32 -!- alefnula [~alefnula@188.246.38.197] has quit [Quit: Ex-Chat]
14:34 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Ping timeout: 240
seconds]
14:45 < soul9> Namegduf: weird, i changed the signature in the other places
too to have one argument, it's still saying it expects a ) instead of an argument
in the function declaration..
14:46 < Namegduf> That suggests your syntax is wrong.
14:46 < Namegduf> Do you have the type and parameter name the wrong way
around?
14:46 < exch> is your code referring to a older version of the compiled
package perhaps?
14:47 < soul9> well the function is statsRegister(type string){..
14:47 < Namegduf> "type string"?
14:47 -!- kanru [~kanru@61-228-162-133.dynamic.hinet.net] has quit [Quit: WeeChat
0.3.2]
14:47 < Namegduf> "type" is a special word
14:47 < Namegduf> That'll be your problem.
14:48 < soul9> heh okay thanks
14:48 < soul9> yep should've thought of it dammit
14:49 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
14:50 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
14:50 -!- emmanueloga [~emmanuelo@host52.190-30-10.telecom.net.ar] has quit [Ping
timeout: 240 seconds]
14:51 < soul9> yay
14:51 -!- emmanueloga [~emmanuelo@host52.190-30-10.telecom.net.ar] has joined
#go-nuts
14:57 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
14:57 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Client Quit]
15:04 < exch> Is there any particular reason why time.NewTicker(ns int64)
takes a signed integer?  A negative interval seems a bit pointless here
15:09 < adg> exch: probably because time.Nanoseconds is also an int64
15:09 < exch> possibly.  That to seems a bit odd
15:09 < adg> you're never going to want a ticker that ticks every INT64_MAX
nanoseconds, let alone UINT64_MAX
15:10 < adg> doesn't seem odd to me
15:10 < nsf> hehe, my toy language draws gradient via SDL now :)
15:10 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has joined
#go-nuts
15:10 < nsf> and it's not fully compiled
15:11 < nsf> now*
15:11 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
15:11 -!- terrex [~terrex@84.122.67.111.dyn.user.ono.com] has quit [Quit:
Leaving.]
15:20 < nsf> http://github.com/nsf/ancient/blob/master/examples/grad.anc
15:20 < nsf> hehehe :D
15:23 < nsf> 1k lines of code and you have sort of a compiled language :D
15:30 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds]
15:32 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
15:42 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
15:43 -!- Guest62868 [~quassel@p4FF1DE94.dip.t-dialin.net] has quit [Remote host
closed the connection]
15:44 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has joined #go-nuts
15:44 -!- nickaugust [~nickaugus@li181-40.members.linode.com] has quit [Client
Quit]
15:46 < scyth> any ideas on when rpc package will support protobufs?
15:52 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
15:59 < plexdev> http://is.gd/fIC7J by [Russ Cox] in 2 subdirs of go/ -- gc:
various bugs
16:08 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
16:08 < kronoz> well gosh darn it :)
16:08 < kronoz> 1153 got fixed.
16:11 -!- kronoz [~user@91.104.84.145] has quit [Remote host closed the
connection]
16:12 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Ping timeout: 255
seconds]
16:12 -!- kronoz [~user@91.104.84.145] has joined #go-nuts
16:15 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
16:23 < kronoz> are you there rsc?  :)
16:25 < kronoz> ok maybe not lol
16:26 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
16:29 -!- kronoz [~user@91.104.84.145] has quit [Quit: ERC Version 5.3 (IRC client
for Emacs)]
16:30 -!- rutkowski [~adrian@078088207115.walbrzych.vectranet.pl] has quit [Quit:
WeeChat 0.3.3-dev]
16:34 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 265 seconds]
16:36 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
16:41 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Ping
timeout: 252 seconds]
16:50 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
16:52 -!- gmilleramilar [~gmiller@184-106-207-119.static.cloud-ips.com] has quit
[Ping timeout: 252 seconds]
16:54 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts
16:54 -!- gmilleramilar [~gmiller@184-106-207-119.static.cloud-ips.com] has joined
#go-nuts
16:56 -!- RobertLJ [~quassel@c-68-44-163-191.hsd1.nj.comcast.net] has joined
#go-nuts
17:01 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
17:03 -!- seromi [~seromi@cpe90-146-191-50.liwest.at] has joined #go-nuts
17:03 -!- seromi [~seromi@cpe90-146-191-50.liwest.at] has quit [Remote host closed
the connection]
17:03 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Client Quit]
17:07 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Ping
timeout: 276 seconds]
17:11 -!- gmilleramilar [~gmiller@184-106-207-119.static.cloud-ips.com] has quit
[Ping timeout: 255 seconds]
17:11 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
17:12 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
17:14 -!- ronnyy [~quassel@p4FF1DE94.dip.t-dialin.net] has joined #go-nuts
17:18 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Read error:
Connection reset by peer]
17:18 -!- res99 [~anonymous@201.237.130.70] has left #go-nuts []
17:19 -!- res99 [~anonymous@201.237.130.70] has joined #go-nuts
17:24 -!- tav [~tav@92.7.153.98] has quit [Ping timeout: 252 seconds]
17:29 -!- gmilleramilar [~gmiller@184-106-207-119.static.cloud-ips.com] has joined
#go-nuts
17:29 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:784d] has joined #go-nuts
17:30 -!- Surma [~surma@d069055.adsl.hansenet.de] has joined #go-nuts
17:31 < Surma> hey guys.  It seems like it is not possible to get a function
pointer of a receiver function.  Is that correct?
17:31 -!- samferry [sam@atheme/member/samferry] has joined #go-nuts
17:31 -!- samferry [sam@atheme/member/samferry] has quit [Client Quit]
17:31 < cbeck> That's correct as far as I know
17:32 < cbeck> If it's needed, you can make a wrapper
17:33 < Surma> Yeah, figures.  Okay thanks
17:33 < Surma> pity though, that would have been beautiful ;)
17:35 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
17:36 -!- tvw [~tv@e176007064.adsl.alicedsl.de] has quit [Remote host closed the
connection]
17:36 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
17:36 -!- jcao219 [~jcao219@pool-173-74-61-111.dllstx.fios.verizon.net] has joined
#go-nuts
17:41 -!- dametri [~psykoTRON@c-98-244-33-187.hsd1.ca.comcast.net] has joined
#go-nuts
17:44 -!- rup [~rupert@deathknight.net] has quit [Ping timeout: 240 seconds]
17:46 -!- rup [~rupert@deathknight.net] has joined #go-nuts
17:50 -!- devink [~devin@c-76-24-8-98.hsd1.ma.comcast.net] has joined #go-nuts
17:55 -!- falconindy [~noclaf@unaffiliated/falconindy] has quit [Ping timeout: 245
seconds]
17:56 -!- ikaros [~ikaros@188.107.212.174] has joined #go-nuts
17:56 -!- falconindy [~noclaf@unaffiliated/falconindy] has joined #go-nuts
18:07 -!- dametri [~psykoTRON@c-98-244-33-187.hsd1.ca.comcast.net] has left
#go-nuts []
18:14 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
connection]
18:21 -!- alefnula [~alefnula@188.246.38.197] has joined #go-nuts
18:24 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
18:30 -!- jserver [~jserver@pool-71-167-243-229.nycmny.east.verizon.net] has
joined #go-nuts
18:40 -!- tav_ [~tav@2001:0:53aa:64c:0:3ffa:fd9f:d7d4] has joined #go-nuts
18:42 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:a3f8:784d] has quit [Ping timeout: 272
seconds]
18:47 -!- HollyRain [~HollyRain@87.223.116.212] has joined #go-nuts
18:49 < HollyRain> how to match a line that starts by "include", or another
text?
18:49 < HollyRain> i tried: regexp.MustCompile(`^#(ifndef|endif|include) `)
18:49 < HollyRain> but it doesn't matches
18:54 < aho> fwiw that regex works fine in js
18:54 < Tv> fwiw apples aren't oranges
18:55 < Tv> that does look like the right syntax for go's regexp package,
though
18:56 < HollyRain> sorry, it works
18:56 < aho> ...  :>
18:56 < HollyRain> I had changed the line so it could not be matched
18:58 -!- ronnyy [~quassel@p4FF1DE94.dip.t-dialin.net] has quit [Remote host
closed the connection]
19:01 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Read error:
Connection reset by peer]
19:02 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
19:07 -!- ExtraSpice [~XtraSpice@88.118.34.223] has quit [Quit: Leaving]
19:10 -!- Rugxulo [~Rugxulo@adsl-065-013-115-246.sip.mob.bellsouth.net] has joined
#go-nuts
19:12 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
19:15 -!- ExtraSpice [~XtraSpice@88.118.34.223] has joined #go-nuts
19:19 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has joined #go-nuts
19:34 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 240 seconds]
19:41 -!- jhh [~jhh@4-096.vpn.RWTH-Aachen.DE] has quit [Quit: jhh]
19:41 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
19:42 -!- zozoR [~zozoR@4705ds1-ris.0.fullrate.dk] has quit [Quit: Morten.  Desu~]
19:52 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has joined
#go-nuts
19:54 -!- alefnula [~alefnula@188.246.38.197] has quit [Ping timeout: 252 seconds]
19:56 < HollyRain> to math and get the substrings I've made:
19:56 < HollyRain> l1 := "#define FIONREAD 0x541B"
19:56 < HollyRain> reDefine := regexp.MustCompile(`^(#define)[
\t]*([A-Za-z0-9]*)[ \t]*([.*])`)
19:56 < HollyRain> r1 := reDefine.FindStringSubmatch(l1)
19:56 < HollyRain> would be correct?  because it gives me nil
19:57 < HollyRain> I want to get the 3 columns
20:00 < HollyRain> yeah!  fixed
20:00 -!- virtualsue [~chatzilla@host81-139-118-252.in-addr.btopenworld.com] has
joined #go-nuts
20:00 < HollyRain> the last one was ([.]*)
20:02 < HollyRain> although the result is not I was expecting
20:05 -!- artefon [~thiago@189.59.162.141] has joined #go-nuts
20:06 < Rugxulo> dumb question, but is there a reason comments don't nest?
20:06 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has quit [Remote
host closed the connection]
20:06 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has joined
#go-nuts
20:09 < Rugxulo> also, I thought C's switch was considered too verbose
(explicit break), why copy that?  ...  oh well, just wondering to myself, thinking
outloud ;-)
20:11 < exch> Go's switch doesn't need a break
20:12 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
20:13 < exch> HollyRain: you can shorten the regexp a bit further:
`^(#define)[ \t]+([^ \t]+)[ \t]+(.+)`
20:13 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Quit:
Leaving.]
20:14 < HollyRain> exch: oh, thanks
20:17 < HollyRain> and it matches now :)
20:17 < MaksimBurnin> will not match "#define DEBUGER" for example
20:17 < Rugxulo> oops, you're right, but it still needs "case" a billion
times :-P
20:17 < MaksimBurnin> `^(#define)[\t ]+([A-Za-z0-9]+)[\t ]*(.*)`
20:17 < Tv> Rugxulo: on the other hand, a "case" color-highlighter by editor
makes the source easy to skim visually
20:18 < exch> The regexp engine is behaving a bit oddly.  I would expect
this to work as well: `^(#define)([ \t]+[^ \t]+)+`.  But it just skips the middle
name and just lists 'define' and '0x541B'
20:21 < exch> Rugxulo: Not sure what yuo mean, but in a regular switch
(non-type switch), you can combine cases: 'case a, b, c, d:'
20:21 < exch> For a type switch that doesn;t make any sense, so it's not
allowed
20:22 -!- DerHorst [~Horst@e176101194.adsl.alicedsl.de] has joined #go-nuts
20:22 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
20:22 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has quit [Remote
host closed the connection]
20:23 < Rugxulo> I just meant "case" seemed (almost?) unnecessary to type a
billion times
20:23 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has joined
#go-nuts
20:23 < Rugxulo> syntax-wise
20:23 < exch> ah like that
20:31 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving]
20:31 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
20:34 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has quit [Remote
host closed the connection]
20:34 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has joined
#go-nuts
20:37 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has quit [Remote
host closed the connection]
20:37 -!- DerHorst [~Horst@e176101194.adsl.alicedsl.de] has quit [Remote host
closed the connection]
20:44 -!- it_diver [~it_diver@dslb-084-059-168-057.pools.arcor-ip.net] has left
#go-nuts []
20:49 -!- emmanueloga [~emmanuelo@host52.190-30-10.telecom.net.ar] has quit [Ping
timeout: 276 seconds]
20:53 -!- Rugxulo [~Rugxulo@adsl-065-013-115-246.sip.mob.bellsouth.net] has left
#go-nuts []
21:02 < HollyRain> to match all until "/" would be ([^/]+)
21:02 < HollyRain> but, how to match all until "/*" ?
21:04 < MaksimBurnin> (.+)\/\*
21:04 < Tv> HollyRain: 1) perl-style regexps have non-greedy matches, those
would help; dunno if go regexp package does them 2) with basic regexps, you just
can't parse everything; maybe you can avoid trying to match "all"
21:04 < KirkMcDonald> (/[^*]|/$|[^/])+
21:05 < Tv> HollyRain: oh and just to be clear about this: trying to parse C
comments with regexps is very very likely to lead to disappointment
21:05 < KirkMcDonald> Oh, it's not that hard.
21:05 < KirkMcDonald> C-style comments don't nest.
21:06 < Tv> KirkMcDonald: sure but are you gonna handle char *foo = "i'm not
a /* comment";
21:07 < KirkMcDonald> Tv: If I were writing a C tokenizer, I'd mark that as
an error.
21:07 < Tv> KirkMcDonald: if you were writing a C tokenizer, you wouldn't
use regexps ;)
21:08 < KirkMcDonald> Tv: No, I probably would.
21:08 < KirkMcDonald> They'd be involved.
21:08 < Tv> sure as a scanner, not as the whole thing
21:08 < KirkMcDonald> Regexes are rather good at lexical analysis
21:08 < KirkMcDonald> Yes, naturally.
21:10 < MaksimBurnin> i think, HollyRain will need this
http://en.wikipedia.org/wiki/Finite-state_machine
21:10 -!- ProNihilist
[~anathema@cpc4-cani1-0-0-cust597.14-2.cable.virginmedia.com] has quit [Read
error: Connection reset by peer]
21:10 -!- napsy [~luka@88.200.96.18] has quit [Read error: Operation timed out]
21:11 -!- ProNihilist
[~anathema@cpc4-cani1-0-0-cust597.14-2.cable.virginmedia.com] has joined #go-nuts
21:13 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
21:13 < MaksimBurnin> i think its a kinda correct way to parse C code
21:13 -!- virtualsue [~chatzilla@host81-139-118-252.in-addr.btopenworld.com] has
quit [Read error: Connection reset by peer]
21:16 -!- wrtp [~rog@92.17.55.116] has quit [Quit: wrtp]
21:18 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has joined
#go-nuts
21:18 < exch> If it's just defines he needs, there's no need for a full
parser really.  Just make sure to do some sanity checking on the results a regex
gives you
21:20 < HollyRain> yes, it's only to convert defines and structs from C to
go
21:21 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has quit [Client
Quit]
21:21 < MaksimBurnin> agree.  but its seems like a c comiler ) first he asks
about ifdef;endif;include, then defines, now comments.  function definitions next
;)
21:21 < MaksimBurnin> oh i see sorry)
21:22 < HollyRain> those lines about " ifdef;endif;include" are going to be
commented
21:25 < MaksimBurnin> will we finally get winapi's headers converted to .go?
21:25 < skelterjohn> ick
21:25 < skelterjohn> MaksimBurnin: though, if you find it important enough,
maybe you should be the one to do it
21:26 -!- tasosos [~tasosos@178.128.22.35.dsl.dyn.forthnet.gr] has quit [Remote
host closed the connection]
21:26 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-177-190.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
21:26 < MaksimBurnin> ;) just kidding
21:33 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
21:34 -!- alefnula [~alefnula@188.246.38.197] has joined #go-nuts
21:36 -!- alefnula [~alefnula@188.246.38.197] has quit [Client Quit]
21:41 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
21:47 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
21:48 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
21:49 -!- virtualsue [~chatzilla@host81-139-118-252.in-addr.btopenworld.com] has
joined #go-nuts
22:03 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
22:13 -!- tav_ [~tav@2001:0:53aa:64c:0:3ffa:a3f8:9f72] has joined #go-nuts
22:14 -!- virtualsue [~chatzilla@host81-139-118-252.in-addr.btopenworld.com] has
quit [Ping timeout: 245 seconds]
22:14 -!- simeon [~simeon@p11811112.orange.net.il] has joined #go-nuts
22:14 -!- simeon [~simeon@p11811112.orange.net.il] has left #go-nuts []
22:14 -!- simeon [~simeon@p11811112.orange.net.il] has joined #go-nuts
22:15 -!- simeon [~simeon@p11811112.orange.net.il] has left #go-nuts []
22:16 -!- tav [~tav@2001:0:53aa:64c:0:3ffa:fd9f:d7d4] has quit [Ping timeout: 272
seconds]
22:19 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has joined
#go-nuts
22:19 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
22:20 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has quit [Remote
host closed the connection]
22:20 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has joined #go-nuts
22:25 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has quit [Quit: Ухожу
я от вас]
22:25 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has quit [Client Quit]
22:26 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
22:27 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has joined
#go-nuts
22:29 -!- Surma [~surma@d069055.adsl.hansenet.de] has left #go-nuts []
22:32 -!- noktoborus [~noktoboru@host-208-107.hosts.vtc.ru] has joined #go-nuts
22:41 -!- [Eko] [~eko@res-128-61-89-71.res.gatech.edu] has joined #go-nuts
22:43 -!- ikaros [~ikaros@188.107.212.174] has quit [Quit: Leave the magic to
Houdini]
22:43 -!- GoBIR [~gobir@res-128-61-89-71.res.gatech.edu] has quit [Ping timeout:
264 seconds]
22:44 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 245 seconds]
22:44 -!- Eko [~eko@res-128-61-89-71.res.gatech.edu] has quit [Ping timeout: 255
seconds]
22:44 < HollyRain> ReadString('\n') doesn't works good for me
22:45 < HollyRain> should it works with empty lines?
22:45 < HollyRain> because it's stopping into empty line
22:46 -!- willdye1 [~willdye@fern.dsndata.com] has joined #go-nuts
22:46 -!- GoBIR [~gobir@res-128-61-89-71.res.gatech.edu] has joined #go-nuts
22:46 -!- mat__ [~mat@prod2.absolight.net] has joined #go-nuts
22:46 -!- AngryParsley_ [~AngryPars@ec2-174-129-220-29.compute-1.amazonaws.com]
has joined #go-nuts
22:47 -!- photron [~photron@port-92-201-45-211.dynamic.qsc.de] has quit [Ping
timeout: 240 seconds]
22:48 -!- Soultake1 [~Soultaker@hell.student.utwente.nl] has joined #go-nuts
22:48 -!- MaybeSo_ [~jimr@lions.Stanford.EDU] has joined #go-nuts
22:48 -!- ExtraSpice [~XtraSpice@88.118.34.223] has quit [Ping timeout: 240
seconds]
22:48 -!- kevinwat1 [kevin@59-125-147-75.HINET-IP.hinet.net] has joined #go-nuts
22:48 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has quit [Ping
timeout: 240 seconds]
22:48 -!- nictuku [~nictuku@cetico.org] has quit [Ping timeout: 240 seconds]
22:48 -!- teop [~teop@78.138.171.130] has quit [Ping timeout: 240 seconds]
22:48 -!- AngryParsley [~AngryPars@unaffiliated/angryparsley] has quit [Ping
timeout: 240 seconds]
22:48 -!- MaybeSo [~jimr@lions.Stanford.EDU] has quit [Ping timeout: 240 seconds]
22:48 -!- kevinwatt [kevin@59-125-147-75.HINET-IP.hinet.net] has quit [Ping
timeout: 240 seconds]
22:48 -!- gnuvince [~vince@205.175-ppp.3menatwork.com] has quit [Ping timeout: 240
seconds]
22:48 -!- Fish9 [~Fish@86.65.182.207] has quit [Ping timeout: 240 seconds]
22:48 -!- Soultaker [~Soultaker@hell.student.utwente.nl] has quit [Ping timeout:
240 seconds]
22:48 -!- neurodamage [~neurodama@c-76-102-21-175.hsd1.ca.comcast.net] has quit
[Ping timeout: 240 seconds]
22:48 -!- willdye [~willdye@fern.dsndata.com] has quit [Ping timeout: 240 seconds]
22:48 -!- welterde [welterde@thinkbase.srv.welterde.de] has quit [Ping timeout:
240 seconds]
22:48 -!- Namegduf [~namegduf@eu.beshir.org] has quit [Ping timeout: 240 seconds]
22:48 -!- shawn [~shawn@208-78-98-92.slicehost.net] has quit [Ping timeout: 240
seconds]
22:48 -!- mat_ [~mat@prod2.absolight.net] has quit [Ping timeout: 240 seconds]
22:49 -!- neurodamage [~neurodama@c-76-102-21-175.hsd1.ca.comcast.net] has joined
#go-nuts
22:49 -!- gnuvince [~vince@205.175-ppp.3menatwork.com] has joined #go-nuts
22:49 -!- Namegduf [~namegduf@eu.beshir.org] has joined #go-nuts
22:49 -!- shawn [~shawn@208-78-98-92.slicehost.net] has joined #go-nuts
22:49 < HollyRain> with the same result removing *if err == os.EOF {break}*
22:50 -!- kingless [~kingless@adsl-242-215-95.rmo.bellsouth.net] has quit [Quit:
Colloquy for iPad - http://colloquy.mobi]
22:50 -!- vsmatck [~smack@64-142-40-6.dsl.static.sonic.net] has joined #go-nuts
22:53 -!- Soultake1 [~Soultaker@hell.student.utwente.nl] has left #go-nuts []
22:53 -!- Soultaker [~Soultaker@hell.student.utwente.nl] has joined #go-nuts
22:54 < Soultaker> (test)
22:59 -!- mafs [~maikeru@unaffiliated/maikeru/x-7708887] has quit [Ping timeout:
276 seconds]
22:59 -!- teop [~teop@78.138.171.130] has joined #go-nuts
23:02 -!- welterde [welterde@thinkbase.srv.welterde.de] has joined #go-nuts
23:06 -!- mafs [~maikeru@24-107-56-173.dhcp.stls.mo.charter.com] has joined
#go-nuts
23:06 -!- mafs [~maikeru@24-107-56-173.dhcp.stls.mo.charter.com] has quit
[Changing host]
23:06 -!- mafs [~maikeru@unaffiliated/maikeru/x-7708887] has joined #go-nuts
23:07 -!- jdp [PHUNK@24.238.32.162.res-cmts.segr.ptd.net] has joined #go-nuts
23:15 < HollyRain> fixed
23:19 -!- HollyRain [~HollyRain@87.223.116.212] has left #go-nuts []
23:23 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
23:27 -!- xb95 [~weechat@dreamwidth/staff/mark] has left #go-nuts ["Leaving
channel."]
23:28 -!- xb95 [~weechat@dreamwidth/staff/mark] has joined #go-nuts
23:28 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has joined #go-nuts
23:34 -!- AngryParsley_ [~AngryPars@ec2-174-129-220-29.compute-1.amazonaws.com]
has left #go-nuts []
23:37 -!- gnuvince_ [~vince@70.35.162.240] has joined #go-nuts
23:38 -!- gabriel9 [~gabriel9@93.157.192.28] has quit [Read error: Connection
reset by peer]
23:39 -!- artefon [~thiago@189.59.162.141] has quit [Read error: Connection reset
by peer]
23:52 -!- major_majors [~major_maj@173-10-44-57-Michigan.hfc.comcastbusiness.net]
has quit [Quit: major_majors]
23:54 -!- skelterjohn [~jasmuth@c-76-124-135-199.hsd1.nj.comcast.net] has joined
#go-nuts
23:55 < exch> Go's network bits are a bit obtuse.  Keeps giving me the
loopback address when I try to lookup the system's address list by hostname :<
23:57 < Rennex> usually the hostname is just an alias for 127.0.0.1
23:57 < Rennex> but i'm not actually sure what you're supposed to do to find
out the others :)
23:58 < exch> net.LookupHost returns a string slice of addresses for the
given hostname.  it suggests to me it should all of them, but it's just spitting
out loopback
23:58 < exch> s/should/should yield/
23:59 < exch> I'm beginning to fear I have to resort to syscall magic to get
at the actual interfaces
--- Log closed Mon Oct 04 00:00:00 2010