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

--- Log opened Fri Mar 12 00:00:25 2010
00:04 -!- ak2 [~ak2@64.168.229.50] has joined #go-nuts
00:07 -!- ak2_ [~ak2@64.168.229.50] has joined #go-nuts
00:08 -!- eliteSchaf [~sinz@88-117-31-221.adsl.highway.telekom.at] has quit [Quit:
Ex-Chat]
00:10 -!- prip [~foo@host203-129-dynamic.35-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 252 seconds]
00:10 -!- wuehlmaus [~wuehlmaus@p4FCC7FA1.dip.t-dialin.net] has joined #go-nuts
00:10 -!- ak2 [~ak2@64.168.229.50] has quit [Ping timeout: 265 seconds]
00:10 -!- ak2 [~ak2@64.168.229.50] has joined #go-nuts
00:12 -!- Null-A [~Null-A@129-97-224-151.uwaterloo.ca] has joined #go-nuts
00:13 -!- ak2_ [~ak2@64.168.229.50] has quit [Ping timeout: 264 seconds]
00:13 -!- prip [~foo@host203-129-dynamic.35-79-r.retail.telecomitalia.it] has
joined #go-nuts
00:18 -!- ak2 [~ak2@64.168.229.50] has quit [Quit: ak2]
00:20 -!- hstimer [~hstimer@ppp-71-139-20-1.dsl.snfc21.pacbell.net] has quit
[Quit: hstimer]
00:21 -!- nettok [~netto@proxy.galileo.edu] has joined #go-nuts
00:22 -!- mattikus [~mattikus@ip68-227-143-68.br.br.cox.net] has quit [Remote host
closed the connection]
00:22 -!- fwiffo [~c9564bcf@gateway/web/freenode/x-tnblaxlcqzzzwrez] has quit
[Ping timeout: 252 seconds]
00:36 -!- kizzo [~kizzo@67.188.70.105] has quit [Ping timeout: 264 seconds]
00:40 -!- Null-A [~Null-A@129-97-224-151.uwaterloo.ca] has quit [Quit: Null-A]
00:40 -!- mikespook [~mikespook@219.135.216.122] has joined #go-nuts
00:40 -!- nutate [~rseymour@cacsag4.usc.edu] has quit [Quit: I'm outta heee-eere]
00:48 -!- kota1111 [~kota1111@gw2.kbmj.jp] has joined #go-nuts
00:49 < plexdev> http://is.gd/agTzC by [Robert Griesemer] in 2 subdirs of
go/src/pkg/ -- math, path: minor comment fixes
00:49 < plexdev> http://is.gd/agTAd by [Robert Griesemer] in 3 subdirs of
go/src/ -- godoc: fix formatting of -src output
00:54 -!- kizzo [~kizzo@67.188.70.105] has joined #go-nuts
00:57 -!- nocturnal [~nocturnal@83.209.24.174] has quit [Ping timeout: 246
seconds]
00:58 -!- nocturnal [~nocturnal@83.209.24.174] has joined #go-nuts
01:02 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has quit [Ping
timeout: 276 seconds]
01:03 -!- kizzo [~kizzo@67.188.70.105] has quit [Quit: leaving]
01:03 -!- Wiz126 [~Wiz126@24.115.240.60.res-cmts.sm.ptd.net] has joined #go-nuts
01:06 -!- triplez [~triplez@cm230.kappa1.maxonline.com.sg] has quit [Quit:
triplez]
01:07 -!- sudi [~chatzilla@dslb-084-056-015-010.pools.arcor-ip.net] has quit
[Remote host closed the connection]
01:13 -!- ptolomy2 [~consalus@216.239.45.130] has quit [Quit: leaving]
01:14 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has joined
#go-nuts
01:16 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined
#go-nuts
01:18 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping
timeout: 276 seconds]
01:21 -!- manveru [~manveru@b08s28ur.corenetworks.net] has joined #go-nuts
01:22 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Read error:
Connection reset by peer]
01:28 -!- triplez [~triplez@bb116-14-34-31.singnet.com.sg] has joined #go-nuts
01:31 -!- kssreeram [~kssreeram@122.174.71.75] has quit [Ping timeout: 246
seconds]
01:34 -!- nettok [~netto@proxy.galileo.edu] has quit [Quit: Ex-Chat]
01:36 < plexdev> http://is.gd/ahaZv by [Robert Griesemer] in
go/src/pkg/go/ast/ -- ast/filter.go: missing nil-check causes crash
01:40 -!- yatoo [~marcus@host86-156-158-180.range86-156.btcentralplus.com] has
quit [Ping timeout: 260 seconds]
01:41 -!- kssreeram [~kssreeram@122.174.70.88] has joined #go-nuts
01:51 -!- homiziado [~ernestofr@62.169.116.73.rev.optimus.pt] has quit [Quit:
homiziado]
01:56 -!- difekta [~clays@c-24-5-65-40.hsd1.ca.comcast.net] has left #go-nuts []
02:00 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts
02:03 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
02:08 -!- diordna [~diordna@c-68-34-223-189.hsd1.tn.comcast.net] has joined
#go-nuts
02:10 < diordna> I'm trying to split a uint64 into 8 bytes, but go won't let
me do "(bigInt >> 56) && 0xFF", what am I doing wrong?
02:11 < diordna> er, I'm an idiot.  && -> &
02:11 -!- kssreeram [~kssreeram@122.174.70.88] has quit [Ping timeout: 265
seconds]
02:19 -!- nighty__ [~nighty@197.214.32.202.bf.2iij.net] has joined #go-nuts
02:19 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has quit [Ping
timeout: 276 seconds]
02:20 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Quit: leaving]
02:20 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts
02:20 -!- tav [~tav@92.29.43.26] has quit [Quit: Hakuna Matata]
02:21 -!- b00m_chef [~watr@128.189.73.22] has joined #go-nuts
02:21 -!- diordna [~diordna@c-68-34-223-189.hsd1.tn.comcast.net] has left #go-nuts
[]
02:31 -!- b00m_chef [~watr@128.189.73.22] has quit [Read error: Connection reset
by peer]
02:31 -!- nighty__ [~nighty@197.214.32.202.bf.2iij.net] has quit [Ping timeout:
245 seconds]
02:39 -!- diordna [~diordna@c-68-34-223-189.hsd1.tn.comcast.net] has joined
#go-nuts
02:48 -!- Emzzzz [~Emzzzz@pa58-109-217-87.pa.vic.optusnet.com.au] has joined
#go-nuts
02:48 -!- Emzzzz [~Emzzzz@pa58-109-217-87.pa.vic.optusnet.com.au] has left
#go-nuts []
02:53 -!- tav [~tav@92.29.43.26] has joined #go-nuts
02:57 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has joined
#go-nuts
02:58 -!- \toothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has joined
#go-nuts
02:58 -!- htoothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has quit [Ping
timeout: 259 seconds]
03:00 -!- \toothrot [~mux@71-11-228-206.dhcp.ftwo.tx.charter.com] has quit [Read
error: Connection reset by peer]
03:01 -!- nettok [~netto@200.119.153.17] has joined #go-nuts
03:04 -!- ratmice__ [bosshog@nightfall.forlorn.net] has quit [Read error:
Connection timed out]
03:04 -!- ratmice__ [bosshog@nightfall.forlorn.net] has joined #go-nuts
03:05 -!- diordna [~diordna@c-68-34-223-189.hsd1.tn.comcast.net] has quit [Quit:
diordna]
03:07 -!- nettok_ [~netto@200.119.153.17] has joined #go-nuts
03:10 -!- nettok [~netto@200.119.153.17] has quit [Ping timeout: 256 seconds]
03:16 -!- mssm [~mssm@ip-95-221-127-32.bb.netbynet.ru] has quit [Ping timeout: 258
seconds]
03:19 -!- pjm0616 [~user@61.250.113.98] has quit [Ping timeout: 240 seconds]
03:32 -!- luoyi [~chatzilla@121.0.29.237] has joined #go-nuts
03:32 -!- Ycros [~ycros@gnaw.yi.org] has quit [Quit: No Ping reply in 180
seconds.]
03:33 -!- carllerche [~carllerch@208.87.61.160] has joined #go-nuts
03:33 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
03:34 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has quit [Ping timeout: 246
seconds]
03:34 -!- jessta [~jessta@li7-205.members.linode.com] has quit [Remote host closed
the connection]
03:34 -!- skyfive [~skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
03:35 -!- carllerche [~carllerch@208.87.61.160] has quit [Client Quit]
03:36 -!- m-takagi_ [~m-takagi@linode.m-takagi.jp] has quit [Ping timeout: 245
seconds]
03:36 -!- kuroneko [~chris@yayoi.xware.cx] has quit [Ping timeout: 276 seconds]
03:39 -!- nocturnal [~nocturnal@83.209.24.174] has quit [Ping timeout: 276
seconds]
03:40 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has joined #go-nuts
03:45 -!- nettok_ [~netto@200.119.153.17] has quit [Quit: Ex-Chat]
03:46 -!- pjm0616 [~user@61.250.113.98] has joined #go-nuts
03:46 -!- jessta [~jessta@li7-205.members.linode.com] has joined #go-nuts
03:46 -!- m-takagi_ [~m-takagi@linode.m-takagi.jp] has joined #go-nuts
03:46 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has joined #go-nuts
03:50 -!- Ycros [~ycros@gnaw.yi.org] has joined #go-nuts
03:54 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Quit: Lost terminal]
03:55 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts
04:01 -!- smw_ [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
04:06 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
04:09 < hstimer> I thought slices were created automagically when you pass
in array to something that wants a slice, but apparently there are some rules
around that?
04:10 < kmeyer> don't think so
04:18 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has joined #go-nuts
04:27 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 276
seconds]
04:40 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode]
04:52 -!- Chryson [~Chryson@c-71-60-250-12.hsd1.pa.comcast.net] has joined
#go-nuts
04:52 -!- ledrug [~huang@fomblin.physics.brown.edu] has joined #go-nuts
04:56 < hstimer> how do I cast a Buffer to an io.Writer?  or what adapter do
I need in between?
04:59 < nf> hstimer: you mean bufio ?
04:59 < nf> or bytes.Buffer ?
05:00 < nf> hstimer: an io.Writer is any type that implements Write(p
[]byte) (n int, err os.Error)
05:00 < nf> hstimer: which bytes.Buffer does
05:00 -!- jesusaurus [jesusaur@firefly.cat.pdx.edu] has quit [Read error:
Connection reset by peer]
05:01 < nf> hstimer: so you don't need to cast it, you just use it where an
io.Writer is expected
05:01 < hstimer> bytes.Buffer
05:01 -!- jesusaurus [jesusaur@firefly.cat.pdx.edu] has joined #go-nuts
05:01 -!- skelterjohn [~jasmuth@c-76-124-23-95.hsd1.nj.comcast.net] has quit
[Quit: skelterjohn]
05:02 < nf> hstimer: does that make sense to you?
05:02 < hstimer> yes.
05:02 < hstimer> it works.  thank you
05:02 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
05:03 < hstimer> so the function signatures is all that matters for
matching; not the interface types
05:05 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
05:05 < nf> a type satisfies an interface by implementing its functions
05:05 < nf> that's it
05:06 < nf> it's remarkably simple :)
05:06 < hstimer> cool.  somehow I thought I needed to coerce the type into
the interface type.....
05:06 < nf> AFAIK you can't have an instance of an interface
05:07 < hstimer> true
05:07 < nf> i understand why you thought so, though.  :)
05:07 < nf> the process is something like "this language explicitly requires
conversion in most places, so i suppose it must here, also"
05:10 -!- kuroneko [~chris@yayoi.xware.cx] has joined #go-nuts
05:12 < anticw> nf: you can have an instance of an interface in a sense
05:12 < anticw> os.Error is one that's commonly used
05:13 -!- pdusen [~pdusen@crob4-55.flint.umich.edu] has quit [Ping timeout: 265
seconds]
05:14 < hstimer> so when a byte.Buffer is passed into a function, how does
it track down the io.Writer function?  is a new on the fly "vtable" created and
passed into the function?
05:16 < anticw> an interface contains a pointer to something that describes
the interface and the 'data' itself
05:18 < hstimer> yes, but somehow dispatch has to happen which means you
have to find the right function.  is it done by name lookup at the point of call?
or are the lookups done when the interface is passed in?
05:19 -!- nocturnal [~nocturnal@83.209.24.174] has joined #go-nuts
05:19 < hstimer> is it name lookup or something, hopefully, much more
efficient ?
05:20 < hstimer> is the dispatch info cached somehow, or is there repeated
lookups?
05:20 -!- nf [~nf@124-168-158-182.dyn.iinet.net.au] has quit [Ping timeout: 240
seconds]
05:21 -!- cyonyx [~chatzilla@c-76-126-250-10.hsd1.ca.comcast.net] has joined
#go-nuts
05:21 -!- nf [~nf@124.171.57.144] has joined #go-nuts
05:24 -!- Chryson [~Chryson@c-71-60-250-12.hsd1.pa.comcast.net] has quit [Ping
timeout: 265 seconds]
05:28 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
05:32 -!- cyonyx [~chatzilla@c-76-126-250-10.hsd1.ca.comcast.net] has quit [Quit:
ChatZilla 0.9.86 [Firefox 3.5.8/20100202165920]]
05:36 < luoyi> is there any way if I want to dynamic load a go package ?
05:36 < anticw> hstimer: afaict the caller sets this up to match ther users
expectation of where things are for the interface
05:36 < anticw> luoyi: not really
05:38 < hstimer> got it.  thanks
05:38 -!- droid001 [~g1@p4FDC92C2.dip.t-dialin.net] has quit [Ping timeout: 264
seconds]
05:39 -!- Chryson [~Chryson@c-71-60-250-12.hsd1.pa.comcast.net] has joined
#go-nuts
05:40 < nf> anticw: os.Error is a type
05:41 < nf> hstimer: the interface check happens at compile time
05:41 < nf> anticw: sorry i am confused, you are correct
05:42 < anticw> os.Error is an interface type
05:42 < nf> anticw: but it's always a specific instance of a type that
satisfies os.Error
05:42 < nf> anticw: the simplest being ErrorString
05:42 < anticw> if you have CustomerType that implements String (what
os.Error requires) and you pass it to something using os.Error
05:42 < anticw> the caller does some work to make sure the callee has what
it expects
05:42 -!- ledrug [~huang@fomblin.physics.brown.edu] has quit [Quit: leaving]
05:42 < nf> does the caller do the work?  or does the compiler just check?
05:43 < anticw> which is what i thought hstimer was asking ...
05:43 < anticw> both
05:43 < anticw> the compiler checks an interface is satisfied
05:43 < nf> really?  i wasn't aware there were runtime type checks
05:43 < anticw> it's not a check
05:43 < anticw> i'm talking about runtime·ifaceT2I
05:53 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Ping
timeout: 240 seconds]
05:54 -!- TR2N [email@89.180.178.15] has left #go-nuts []
05:57 < hstimer> how do you convert []uint8 to string?
06:01 < anticw> string(...)
06:02 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
06:03 < hstimer> cannot convert b (type [1024]uint8) to type string in
conversion
06:03 < hstimer> string(b)
06:04 < hstimer> ah!  the slice thang
06:04 < hstimer> string(b[0:]) works
06:04 < anticw> right
06:04 < anticw> becaues you maek a slice from an array ...  which you can
convert
06:04 < anticw> there is an open issue on whether that should be necessary
or not
06:13 -!- skyfive [~skyfive@75-149-45-221-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
06:15 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined
#go-nuts
06:18 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 246 seconds]
06:31 -!- Xeon [~chatzilla@118.126.12.54] has quit [Ping timeout: 246 seconds]
06:33 -!- Xeon [~chatzilla@118.126.12.54] has joined #go-nuts
06:44 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 260
seconds]
06:48 -!- carllerche [~carllerch@208.87.61.160] has joined #go-nuts
06:50 -!- ikaros [~ikaros@f052081064.adsl.alicedsl.de] has joined #go-nuts
06:53 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
06:53 -!- TMKCodes [~toni@88-148-243-167.bb.dnainternet.fi] has joined #go-nuts
06:54 -!- TMKCodes [~toni@88-148-243-167.bb.dnainternet.fi] has quit [Client Quit]
06:58 -!- OpenSpace [~ja@93.86.105.100] has joined #go-nuts
06:58 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts
06:59 < Bombe> Good morning.
07:03 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
07:13 -!- nighty__ [~nighty@210.188.173.245] has joined #go-nuts
07:16 < kevinwatt> Good afternoon...
07:23 -!- jwillia3_ [~jwillia3@71.23.157.238] has joined #go-nuts
07:25 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 240 seconds]
07:26 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Read error: Connection reset by peer]
07:27 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined
#go-nuts
07:27 -!- asmo [~asmo@c-f6c5e055.1155-1-64736c11.cust.bredbandsbolaget.se] has
quit [Remote host closed the connection]
07:31 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-162-119.netcologne.de] has joined
#go-nuts
07:33 -!- luoyi [~chatzilla@121.0.29.237] has quit [Remote host closed the
connection]
07:34 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
07:34 -!- nighty__ [~nighty@210.188.173.245] has quit [Quit: Disappears in a puff
of smoke]
07:35 -!- carllerche [~carllerch@208.87.61.160] has quit [Quit: carllerche]
07:40 -!- brian_ [~brian@pool-71-106-181-104.lsanca.dsl-w.verizon.net] has joined
#go-nuts
07:42 < Bombe> Can someone take a look at http://pastebin.com/pmfHDzy3 and
tell me if they can see any obvious threading errors?
07:43 < Bombe> The highlighted lines are places where goroutines are stuck,
waiting for input.  The whole thing crashes after a random amount of files have
been output.
07:44 -!- OpenSpace [~ja@93.86.105.100] has quit [Quit: Leaving]
07:46 -!- ikaros [~ikaros@f052081064.adsl.alicedsl.de] has quit [Quit: Leave the
magic to Houdini]
07:46 -!- prip [~foo@host203-129-dynamic.35-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 252 seconds]
07:49 -!- trickie [~trickie@94.100.112.225] has joined #go-nuts
07:50 -!- prip [~foo@host203-129-dynamic.35-79-r.retail.telecomitalia.it] has
joined #go-nuts
07:51 -!- wuehlmaus [~wuehlmaus@p4FCC7FA1.dip.t-dialin.net] has quit [Remote host
closed the connection]
07:59 -!- asmo [~asmo@c83-248-32-75.bredband.comhem.se] has joined #go-nuts
07:59 < nf> Bombe: at what point do you subSubChannel <- "" ?
08:01 < Bombe> That would be in line 38.
08:01 -!- wrtp [~rog@89.240.68.57] has joined #go-nuts
08:02 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
08:02 < Bombe> The subChannel that receives the "" in line 38 is in fact the
subSubChannel from the previous invocation of scanDirectory.
08:03 < anticw> Bombe: you know about path.Walk right?
08:04 < Bombe> anticw, I didn’t until know but that program is still a part
of toying around with Go to see how it does things.
08:04 < Bombe> So I currently don’t care about path.Walk.  :)
08:04 < anticw> for file := <-fileChannel; file != ""; file =
<-fileChannel
08:04 < anticw> why not do
08:04 < anticw> for file := range fileChannel ?
08:04 < anticw> that will read all values until the channel is closed
08:04 < Bombe> Hmm, closing a channel.  That might be worth a try.
08:06 < anticw> using path.Walk would be easier really ...  and having the
file visitor feed a channel in the struct/type you pass
08:06 < anticw> i do that here in places
08:07 < Bombe> I do believe that but that’s simply not the point here.  :)
08:07 < anticw> true
08:08 < cbeck> I'm having issues with invoking gofmt from emacs, if gofmt
fails the buffer's contents are replaced with gofmt's stderr.  I see a ticket from
a few months ago saying this was fixed, but I'm still seeing it with a fresh
pull/build.  Any ideas?
08:08 < anticw> but what you have is more complex than it needs to be even
w/o path.Walk
08:08 -!- brian_ [~brian@pool-71-106-181-104.lsanca.dsl-w.verizon.net] has quit
[Remote host closed the connection]
08:08 < anticw> cbeck: gofmt errors should be put into another buffer
08:08 -!- robot12 [~robot12@robot12.kgts.ru] has joined #go-nuts
08:08 < anticw> cbeck: emacs vc mode and similar do this for example
08:08 -!- robot12 [~robot12@robot12.kgts.ru] has left #go-nuts []
08:09 < cbeck> anticw: I agree that's the expected operation, does it do
that for you?
08:09 < Bombe> anticw, also true.  I wouldn’t use goroutines to scan every
single directory if this were production code.  ;)
08:10 < anticw> no, it's busted
08:10 < anticw> im too lazy to fix it
08:10 < cbeck> anticw: Fair enough
08:10 < anticw> there are various other quirks too, it needs a lot of work
08:10 < anticw> Bombe: actually ....  i do have something a bit like what
you have
08:10 < anticw> Bombe: basically i read dirs and feed the dirs by inode into
a heap
08:11 < anticw> then i have n workers that take things from the tip of the
heap and walk those dirs and feed any dirs they find back in
08:11 -!- [Pete_27] [~noname@115-64-1-61.static.tpgi.com.au] has quit [Ping
timeout: 276 seconds]
08:11 < anticw> the point of all that is i can walk tens of millions of
files and reduce seeking ...  because i read as much as possible by inode order
08:11 < anticw> (the OS elevator helps here clearly)
08:12 < anticw> cbeck: when it happens you can ^G then and get your buffer
back
08:12 < anticw> oops
08:12 < anticw> emacs key presses in irssi does weirdness
08:15 -!- asmo_ [~asmo@c83-248-32-75.bredband.comhem.se] has joined #go-nuts
08:16 -!- asmo [~asmo@c83-248-32-75.bredband.comhem.se] has quit [Ping timeout:
264 seconds]
08:17 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-162-119.netcologne.de] has quit [Quit:
m1ndwarp]
08:18 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]]
08:21 < Bombe> anticw, http://pastebin.com/JwNiWExQ - I simplified it a bit.
Now it doesn’t crash anymore but still gives wildly varying results.
08:23 -!- sw4 [~sw@193.126.212.28] has quit [Remote host closed the connection]
08:26 -!- duoduofather1 [~yuliu@219.142.18.218] has joined #go-nuts
08:26 -!- duoduofather1 [~yuliu@219.142.18.218] has left #go-nuts []
08:27 < Bombe> Hmm.  It clearly skips directories.
08:29 < anticw> this can only work for cwd btw
08:30 < anticw> for any other root when you enter scan dir you won't know
where you are
08:30 < anticw> i really think you should pass in a path not os.File
08:30 < Bombe> Ah, damn, I think I’m running out of file handles.  :)
08:31 < anticw> it's working here
08:31 < anticw> yeah, that could be it
08:33 -!- c0nfl|ct [~tiago@83.240.134.68] has joined #go-nuts
08:33 < anticw> Bombe: you really should check for EOF and errors
08:33 < anticw> not != nil { ...  }
08:34 < Bombe> anticw, I really should, and as soon as I'm ready to do some
real coding with Go I will.  :)
08:34 < anticw> subDirectory, err := os.Open(entryName, os.O_RDONLY, 0)
08:34 < anticw> if err != nil {
08:34 < anticw> then you continue
08:36 -!- kaigan|work
[~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has joined #go-nuts
08:39 < Bombe> What exactly does os.Open return for err if there is no
error?
08:41 < anticw> that code is fine, i'm havine 1am issues :)
08:42 < Bombe> Hehe...
08:42 < anticw> so i'm going to bed, nn
08:42 < Bombe> Have a good night, and thanks for the help.  :)
08:43 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has joined #go-nuts
08:59 -!- ak2 [~ak2@63.228.117.211] has joined #go-nuts
08:59 -!- OpenSpace [~ja@93.86.226.250] has joined #go-nuts
09:00 -!- path[l] [~path@122.182.0.38] has joined #go-nuts
09:09 -!- ct529 [~quassel@77-44-78-159.xdsl.murphx.net] has quit [Remote host
closed the connection]
09:12 -!- asmo_ [~asmo@c83-248-32-75.bredband.comhem.se] has quit [Read error:
Connection reset by peer]
09:18 -!- Garen [~garen.p@cpe-75-87-255-36.natnow.res.rr.com] has quit [Read
error: Connection reset by peer]
09:20 -!- [Pete_27] [~noname@115-64-1-61.static.tpgi.com.au] has joined #go-nuts
09:24 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping
timeout: 265 seconds]
09:35 -!- Chryson [~Chryson@c-71-60-250-12.hsd1.pa.comcast.net] has quit [Quit:
Leaving]
09:41 -!- cantor [~quassel@129.123.245.105] has joined #go-nuts
09:41 -!- g0bl1n [~anonymous@a213-22-200-76.cpe.netcabo.pt] has joined #go-nuts
09:42 -!- cantor [~quassel@129.123.245.105] has left #go-nuts []
09:42 -!- mssm [~mssm@ip-95-221-127-32.bb.netbynet.ru] has joined #go-nuts
09:54 -!- hurtonm [~hurtonm@adsl-dyn247.78-99-199.t-com.sk] has joined #go-nuts
10:01 -!- mikespook [~mikespook@219.135.216.122] has quit [Quit: Leaving.]
10:02 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 260 seconds]
10:08 -!- ak2 [~ak2@63.228.117.211] has quit [Quit: ak2]
10:14 -!- adu [~ajr@pool-74-96-89-29.washdc.fios.verizon.net] has quit [Quit: adu]
10:16 -!- triplez [~triplez@bb116-14-34-31.singnet.com.sg] has quit [Quit:
triplez]
10:16 -!- erus` [~chatzilla@mailgate.ips-international.com] has joined #go-nuts
10:23 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Quit: Lost terminal]
10:27 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-162-119.netcologne.de] has joined
#go-nuts
10:29 -!- scoeri_ [~jdekoste@soft.vub.ac.be] has left #go-nuts []
10:29 -!- scoeri [~jdekoste@soft.vub.ac.be] has joined #go-nuts
10:32 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-162-119.netcologne.de] has quit [Quit:
m1ndwarp]
10:34 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-162-119.netcologne.de] has joined
#go-nuts
10:34 -!- m1ndwarp [~m1ndwarp@xdsl-78-35-162-119.netcologne.de] has quit [Remote
host closed the connection]
10:34 -!- sim2409_ [~sim2409@109.250.247.245] has joined #go-nuts
10:36 -!- mssm [~mssm@ip-95-221-127-32.bb.netbynet.ru] has quit [Quit: WeeChat
0.3.0]
10:39 -!- triplez [~triplez@cm230.kappa1.maxonline.com.sg] has joined #go-nuts
10:51 -!- sim2409_ [~sim2409@109.250.247.245] has quit [Quit: Verlassend]
10:57 -!- NoPyGod2 [~no@222-154-187-184.jetstream.xtra.co.nz] has joined #go-nuts
10:59 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has quit [Ping
timeout: 276 seconds]
11:06 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts
11:09 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
11:15 -!- Project_2501 [~Marvin@82.84.69.99] has joined #go-nuts
11:17 -!- Kashia [~Kashia@port-92-200-101-16.dynamic.qsc.de] has quit [Quit: This
computer has gone to sleep]
11:28 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat
0.3.1.1]
11:29 -!- mkn [~7c7cdbfa@gateway/web/freenode/x-yenjqlwfoeukevmr] has joined
#go-nuts
11:33 -!- awidegreen_ [~quassel@p5B063549.dip.t-dialin.net] has quit [Remote host
closed the connection]
11:44 -!- yatoo [~marcus@host86-156-158-180.range86-156.btcentralplus.com] has
joined #go-nuts
11:47 -!- NoPyGod2 [~no@222-154-187-184.jetstream.xtra.co.nz] has quit [Ping
timeout: 265 seconds]
12:01 -!- afurlan [~afurlan@scorpion.mps.com.br] has joined #go-nuts
12:11 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
12:18 -!- nf [~nf@124.171.57.144] has quit [Read error: Connection reset by peer]
12:18 -!- nf [~nf@124-171-30-154.dyn.iinet.net.au] has joined #go-nuts
12:20 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has
joined #go-nuts
12:21 -!- erus` [~chatzilla@mailgate.ips-international.com] has quit [Ping
timeout: 240 seconds]
12:23 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 265 seconds]
12:24 -!- gisikw [~gisikw@137.28.186.120] has joined #go-nuts
12:28 -!- mkn [~7c7cdbfa@gateway/web/freenode/x-yenjqlwfoeukevmr] has quit [Quit:
Page closed]
12:34 -!- erus` [~chatzilla@mailgate.ips-international.com] has joined #go-nuts
12:40 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has joined #go-nuts
12:42 -!- kota1111 [~kota1111@gw2.kbmj.jp] has quit [Quit: Leaving...]
13:00 -!- Kyle|Mr_K_13 [~Kyle@122-148-63-115.static.dsl.dodo.com.au] has quit
[Ping timeout: 240 seconds]
13:18 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
13:23 -!- tibshoot [~tibshoot@linagora-230-146.pr0.nerim.net] has joined #go-nuts
13:24 -!- Kyle|Mr_K_13 [~Kyle@122-148-63-115.static.dsl.dodo.com.au] has joined
#go-nuts
13:30 -!- alkavan__ [~alkavan@IGLD-84-228-154-79.inter.net.il] has joined #go-nuts
13:34 -!- hurtonm [~hurtonm@adsl-dyn247.78-99-199.t-com.sk] has left #go-nuts []
13:43 -!- tibshoot [~tibshoot@linagora-230-146.pr0.nerim.net] has quit [Ping
timeout: 245 seconds]
13:43 -!- c0nfl|ct [~tiago@83.240.134.68] has quit [Ping timeout: 264 seconds]
13:57 -!- Eridius [~kevin@unaffiliated/eridius] has quit [Ping timeout: 264
seconds]
13:59 -!- tibshoot [~tibshoot@linagora-230-146.pr0.nerim.net] has joined #go-nuts
14:10 -!- chrelad [~chrisd@76.164.12.11] has joined #go-nuts
14:19 -!- tibshoot [~tibshoot@linagora-230-146.pr0.nerim.net] has quit [Ping
timeout: 245 seconds]
14:23 -!- MikeSeth [~me@unaffiliated/mikeseth] has joined #go-nuts
14:24 < MikeSeth> hey any packages to interface with sql yet?
14:25 < taruti> yes
14:26 < MikeSeth> care to throw a name?  googling is extremely hard on this
one
14:27 < taruti> MikeSeth: http://go-lang.cat-v.org/
14:27 -!- hevalbaranov [~hevalbara@88.243.184.119] has joined #go-nuts
14:28 < MikeSeth> great, thanks
14:30 < MikeSeth> and by great I mean HELL YES!
14:54 -!- alkavan__ [~alkavan@IGLD-84-228-154-79.inter.net.il] has quit [Read
error: Connection reset by peer]
14:54 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
14:54 -!- alkavan__ [~alkavan@IGLD-84-228-154-79.inter.net.il] has joined #go-nuts
14:55 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Quit: Lost terminal]
15:00 -!- noam [~k4jd095b@87.70.183.61] has quit [Read error: Connection reset by
peer]
15:03 -!- sim2409 [~sim2409@82.113.121.222] has joined #go-nuts
15:03 -!- kssreeram [~kssreeram@122.174.138.255] has joined #go-nuts
15:03 -!- Fraeon [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
15:04 -!- samitheberber [~saada@melkinpaasi.cs.helsinki.fi] has quit [Quit: Server
change]
15:08 -!- hevalbaranov [~hevalbara@88.243.184.119] has quit [Quit: WeeChat
0.2.6.3]
15:08 -!- tibshoot [~tibshoot@linagora-230-146.pr0.nerim.net] has joined #go-nuts
15:09 -!- samitheberber [~saada@melkinpaasi.cs.helsinki.fi] has joined #go-nuts
15:10 -!- mssm [~mssm@ip-95-221-127-32.bb.netbynet.ru] has joined #go-nuts
15:11 -!- ericvh [~ericvh@32.97.110.63] has joined #go-nuts
15:15 -!- sim2409 [~sim2409@82.113.121.222] has quit [Quit: Verlassend]
15:16 -!- g0bl1n [~anonymous@a213-22-200-76.cpe.netcabo.pt] has quit [Quit:
g0bl1n]
15:23 -!- gisikw [~gisikw@137.28.186.120] has quit [Quit: gisikw]
15:23 -!- gisikw [~gisikw@137.28.186.120] has joined #go-nuts
15:23 -!- gisikw [~gisikw@137.28.186.120] has quit [Client Quit]
15:26 -!- gisikw [~gisikw@137.28.186.120] has joined #go-nuts
15:36 -!- g0bl1n [~anonymous@a213-22-200-76.cpe.netcabo.pt] has joined #go-nuts
15:51 -!- chrelad [~chrisd@76.164.12.11] has quit [Quit: chrelad has no reason]
15:53 -!- Fraeon [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [Quit:
Fraeon]
15:55 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has quit [Quit:
hstimer]
15:58 -!- erus` [~chatzilla@mailgate.ips-international.com] has quit [Remote host
closed the connection]
15:59 -!- Fraeon [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
16:01 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts
16:07 -!- Venom_X [~pjacobs@adsl-99-3-159-249.dsl.hstntx.sbcglobal.net] has joined
#go-nuts
16:09 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
16:11 -!- skyfive [~skyfive@75-149-45-221-SFBA.hfc.comcastbusiness.net] has quit
[Remote host closed the connection]
16:18 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Quit: Leaving.]
16:20 -!- ak2 [~ak2@12.46.53.130] has joined #go-nuts
16:21 -!- trickie [~trickie@94.100.112.225] has quit [Quit: outty]
16:22 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 264 seconds]
16:27 < uriel> MikeSeth: you are welcome ;P
16:31 -!- kaigan|work
[~kaigan@c-8290e255.1411-10-64736c14.cust.bredbandsbolaget.se] has quit [Quit:
kaigan|work]
16:36 -!- ak2 [~ak2@12.46.53.130] has quit [Quit: ak2]
16:36 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has joined #go-nuts
16:38 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
16:38 -!- hstimer [~hstimer@2002:465a:aa25:0:226:bbff:fe05:dd9b] has joined
#go-nuts
16:50 -!- kssreeram [~kssreeram@122.174.138.255] has quit [Quit: kssreeram]
16:51 -!- deso [~deso@77-21-80-251-dynip.superkabel.de] has joined #go-nuts
16:53 -!- kssreeram [~kssreeram@122.174.138.255] has joined #go-nuts
17:00 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit
[Ping timeout: 246 seconds]
17:01 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has joined
#go-nuts
17:10 -!- carllerche [~carllerch@208.87.61.160] has joined #go-nuts
17:14 -!- tibshoot [~tibshoot@linagora-230-146.pr0.nerim.net] has quit [Quit:
Quitte]
17:16 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts
17:19 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Quit: Lost terminal]
17:21 -!- Project_2502 [~Marvin@82.84.69.99] has quit [Quit: E se abbasso questa
leva che succ...]
17:24 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 240 seconds]
17:25 -!- path[l] [~path@122.182.0.38] has quit [Quit: path[l]]
17:25 -!- kssreeram [~kssreeram@122.174.138.255] has quit [Quit: kssreeram]
17:27 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts
17:29 -!- alkavan__ [~alkavan@IGLD-84-228-154-79.inter.net.il] has quit [Read
error: Connection reset by peer]
17:30 -!- alkavan__ [~alkavan@IGLD-84-228-154-79.inter.net.il] has joined #go-nuts
17:31 -!- araujo_ [~araujo@61.173.97.222] has joined #go-nuts
17:32 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 240
seconds]
17:32 -!- araujo_ [~araujo@61.173.97.222] has quit [Client Quit]
17:33 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
17:33 -!- skyfive [~skyfive@adsl-69-106-234-22.dsl.pltn13.pacbell.net] has joined
#go-nuts
17:35 -!- Kashia [~Kashia@port-92-200-101-16.dynamic.qsc.de] has joined #go-nuts
17:40 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
17:42 -!- alkavan__ [~alkavan@IGLD-84-228-154-79.inter.net.il] has quit [Read
error: Connection reset by peer]
17:42 < nocturnal> as the documentation still is rather bare bones i was
wondering if there is a package with a function that could dump the nature of a
variable?  like Data::Dumper in perl for example.  might be much to ask from a
compiled language but i thought it was worth asking about
17:43 -!- alkavan__ [~alkavan@IGLD-84-228-154-79.inter.net.il] has joined #go-nuts
17:43 < nocturnal> because i often find myself wondering what is returned
17:43 < nocturnal> from various functions
17:43 < dagle> Could you explain more?
17:43 < dagle> You mean the nature of the type?
17:44 < dagle> nocturnal: You want to know what a type contains in runtime?
17:44 < nocturnal> for example, i return from NewLogger a log.Logger and i
run dump(foo) to find out what is contained within the variable and what type it
is
17:44 < dagle> nocturnal: Ah. There is a reflection package for that.
17:44 < nocturnal> oh really, cool
17:45 < dagle> Or fmt.Printf("%T %v", var, var)
17:45 < nocturnal> oh that %T was new to me
17:45 < dagle> That prints the type and value of var.
17:45 < nocturnal> thanks for the great info
17:45 < dagle> np.
17:46 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
17:46 < dagle> The reflection package not as simple as dumper but you should
be able to implement something like dumper in it.  (Not knowing what dumper really
does)
17:47 < nocturnal> just from reading the description it sounds like what i'd
want
17:47 < nocturnal> but i expected Printf to be just like c sprintf, i better
read up on that too
17:47 < nocturnal> the %T and %v were real nice
17:48 < nocturnal> not something i'm used to
17:48 -!- carllerche [~carllerch@208.87.61.160] has quit [Quit: carllerche]
17:49 < nocturnal> heh i'm actually reading all the documentation on
localhost using godoc over http.  =) real nice feature
17:49 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
17:49 < exch> %v 's output can be made more verbose by using %+v and %#v
17:49 < nocturnal> interesting
17:50 < dagle> Mmm.
17:50 < nocturnal> yeah it's right there at the top of the fmt manual
17:50 < nocturnal> very nice features
17:58 -!- Venom_X [~pjacobs@adsl-99-3-159-249.dsl.hstntx.sbcglobal.net] has quit
[Ping timeout: 276 seconds]
17:58 < KirkMcDonald> So will Go be getting an interface to or port of RE2?
:-)
17:59 < dagle> :)
18:00 < dagle> Isn't the regex engine in golang written by Cox?
18:00 < KirkMcDonald> This is a fact which did not escape my notice.
18:03 -!- Venom_X [~pjacobs@66.54.185.131] has joined #go-nuts
18:09 -!- carllerche [~carllerch@enginey-9.border1.sfo002.pnap.net] has joined
#go-nuts
18:14 -!- tettsyun [~tettsyun@p23241-ipngn1101hodogaya.kanagawa.ocn.ne.jp] has
joined #go-nuts
18:15 -!- General1337 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has joined
#go-nuts
18:16 -!- tettsyun [~tettsyun@p23241-ipngn1101hodogaya.kanagawa.ocn.ne.jp] has
quit [Client Quit]
18:17 -!- tettsyun [~tettsyun@p23241-ipngn1101hodogaya.kanagawa.ocn.ne.jp] has
joined #go-nuts
18:19 -!- tettsyun [~tettsyun@p23241-ipngn1101hodogaya.kanagawa.ocn.ne.jp] has
quit [Client Quit]
18:19 -!- General13372 [~support@71-84-247-187.dhcp.gldl.ca.charter.com] has quit
[Ping timeout: 265 seconds]
18:30 -!- wrtp [~rog@89.240.68.57] has quit [Quit: wrtp]
18:35 -!- niekie [~niek@CAcert/Assurer/niekie] has quit [Read error: Operation
timed out]
18:39 -!- diabolix [~jsoyke@206.210.81.55] has joined #go-nuts
18:49 -!- skyfive [~skyfive@adsl-69-106-234-22.dsl.pltn13.pacbell.net] has quit
[Remote host closed the connection]
18:50 -!- skyfive [~skyfive@adsl-69-106-234-22.dsl.pltn13.pacbell.net] has joined
#go-nuts
18:55 -!- skyfive [~skyfive@adsl-69-106-234-22.dsl.pltn13.pacbell.net] has quit
[Ping timeout: 265 seconds]
19:02 -!- alkavan__ [~alkavan@IGLD-84-228-154-79.inter.net.il] has quit [Quit:
Leaving]
19:04 -!- lmoura [~lauromour@189.2.128.130] has joined #go-nuts
19:04 -!- Xurix [~Luixsia@AToulouse-254-1-47-189.w81-250.abo.wanadoo.fr] has quit
[Quit: Leaving]
19:13 -!- Beoran [~beoran@ip-81-11-185-208.dsl.scarlet.be] has joined #go-nuts
19:13 < Beoran> I think I found a bug in godefs..  it doesn't understand the
sizeof() an enum member in a struct
19:13 < Beoran> for SDL this is a big problem :p
19:15 < Beoran> it has a SDL_keysym { Uint8, SDLKey, SDLMod, Uint16 } type,
but godefs thinks that SDLKey and SDLMod are only a char wide :p
19:16 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Ping timeout: 276
seconds]
19:17 < senneth> Beoran: what is telling you that it must be wider?
19:17 -!- Adys [~Adys@unaffiliated/adys] has quit [Quit: I ♥ Unicode]
19:18 * KirkMcDonald looks at quit message.
19:18 < Beoran> senneth, I'm checking by compiling a C program
19:18 < KirkMcDonald> Yes, well, I � Unicode.
19:18 < Beoran> and also, the keyboard handling doesn't work :p
19:18 -!- syd_ [~sydcogs@180.92.192.92] has quit [Ping timeout: 245 seconds]
19:19 < Beoran> I'm currently writing Fungo, a 2d game programming library
for Go based on SDL
19:19 < Beoran> music, sound, drawing, ect all work well
19:19 < KirkMcDonald> s/ect/etc/
19:19 < Beoran> KirkMcDonald, your speed astounds me :)
19:20 < Beoran> anyway, in C, enum size is "implementation defined" which is
bad news
19:20 < senneth> yep
19:20 < Beoran> the good news is that it's usualy sizeof(int)
19:20 < Beoran> since godefs is a c program, it could check that , I feel
19:21 < Beoran> anyway, now I'm looking for a workaround that will work on
several architectures
19:21 -!- hevalbaranov [~hevalbara@88.243.184.119] has joined #go-nuts
19:23 < Beoran> oh, there is already a bug report
http://code.google.com/p/go/issues/detail?id=432&q=godefs&colspec=ID%20Priority%20Status%20Owner%20Reporter%20Summary
19:23 < Beoran> Looks like I have to use straight CGO, not godesf
19:23 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
19:23 < Beoran> godefs I mean :p
19:38 -!- nettok [~netto@proxy.galileo.edu] has joined #go-nuts
19:41 < rsaarelm> I'm still having problems with the same nested SDL struct
even when using plain cgo.
19:41 < rsaarelm> It re-emerged when I changed to 64-bit os.
19:41 -!- rrr [debian-tor@gateway/tor-sasl/rrr] has joined #go-nuts
19:42 < rsaarelm> http://code.google.com/p/go/issues/detail?id=609
19:44 -!- hevalbaranov [~hevalbara@88.243.184.119] has quit [Ping timeout: 245
seconds]
19:44 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]]
19:44 -!- skyfive [~skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has joined
#go-nuts
19:45 -!- path[l] [UPP@120.138.102.34] has joined #go-nuts
19:46 < Beoran> what's ment by an "implicit assignment" in an implicit
assignment error?
19:52 -!- rrr [debian-tor@gateway/tor-sasl/rrr] has quit []
19:53 < Beoran> I see why it's not allowed, but it's a royal pain in my
case.  It measn I'll have to define tons of accessors.  :p
19:54 < rsaarelm> What are you trying to do?
19:54 -!- nettok [~netto@proxy.galileo.edu] has quit [Quit: Ex-Chat]
19:55 -!- illya77 [~illya77@210-44-95-178.pool.ukrtel.net] has joined #go-nuts
19:55 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Remote host closed the
connection]
20:02 -!- nettok [~netto@proxy.galileo.edu] has joined #go-nuts
20:03 -!- blackmagik [~blackmagi@unaffiliated/blackmagik] has joined #go-nuts
20:04 -!- jwillia3_ [~jwillia3@71.23.157.238] has joined #go-nuts
20:08 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 265 seconds]
20:17 -!- nutate [~rseymour@cacsag4.usc.edu] has joined #go-nuts
20:17 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
20:19 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has quit [Quit: Leaving]
20:22 -!- Adys [~Adys@unaffiliated/adys] has quit [Remote host closed the
connection]
20:24 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has joined #go-nuts
20:25 < Beoran> rsaarelm, I'm also wrapping SDL.  The whole lot of it.
20:25 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
20:28 -!- ak2 [~ak2@198.134.98.12] has joined #go-nuts
20:28 < Beoran> rsaarelm, I guess the only workaround is to define
KeyboardEvent and Keysym directly in cgo, and then mess around with unsafe.Pointer
casts until if works.
20:28 < Beoran> s/if/it
20:29 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has quit [Ping
timeout: 276 seconds]
20:30 < Beoran> probably have to define a KeyboardEvent64, etc to make that
work
20:30 < Beoran> and a whole lot of accessors and wrappers
20:31 < Beoran> I've got 1435 lines of wrapper functions only
20:31 < Beoran> excluding the events and the music, sound
20:32 < Beoran> I also had problems with GoString not working, so I
implemented that myself in Go, calling to C.calloc
20:32 < Beoran> no, I mean, CString
20:33 < Beoran> rsaarelm, I'm also using unsafe pointer and uintptr a lot
for putpixel, etc drawing
20:33 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has joined #go-nuts
20:34 < Beoran> I'm gad we have unsafe, it would be impossible to wrap C
without it.
20:34 < Beoran> s/ga/glad
20:36 -!- fwiffo [~fwiffo@unaffiliated/fwiffo] has quit [Quit: Lost terminal]
20:40 < Beoran> by the way, is there any way to see what platform (32 bits,
64 bits) your go program is currently running on?
20:42 -!- ak2 [~ak2@198.134.98.12] has quit [Ping timeout: 264 seconds]
20:44 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
20:45 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit
[Client Quit]
20:46 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
20:46 -!- illya77 [~illya77@210-44-95-178.pool.ukrtel.net] has quit [Quit:
illya77]
20:49 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit
[Client Quit]
20:50 -!- Snert [~achowe@2a01:e35:2f2e:e00:bc10:27e7:578f:20ee] has joined
#go-nuts
20:53 -!- afurlan [~afurlan@scorpion.mps.com.br] has quit [Remote host closed the
connection]
20:54 -!- Snert [~achowe@2a01:e35:2f2e:e00:bc10:27e7:578f:20ee] has quit [Client
Quit]
20:58 -!- Demp [~Demp@bzq-79-176-67-80.red.bezeqint.net] has joined #go-nuts
20:59 -!- lmoura [~lauromour@189.2.128.130] has quit [Ping timeout: 245 seconds]
20:59 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 258 seconds]
21:00 < dagle> Beoran: You could check some system variable?
21:04 < Beoran> dagle, the environment?  hmmm...  that may work, albeit
unreliable.  you'd probbaly need to wrap the program in a startup script
21:08 < dagle> Beoran: Might be a better way.  But that might work atm?
21:08 < Beoran> dagle, probably
21:08 < Beoran> although it gets rather complicated...  they should realy
fix CGO
21:09 < Beoran> I feel that GO would be an ideal game programing language,
if only it was a bit easier to lin to the existing C game libs (SDL, Opengl,
OpenAL, ...)
21:10 -!- Garen [~garen.p@75.87.255.36] has joined #go-nuts
21:10 < dagle> Beoran: Go is a young language.
21:11 < Beoran> True.  We'll need a port to windows, Xbox, PS3,Gamecube,
DSi, ...  :)
21:11 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has joined #go-nuts
21:11 < anticw> windows isn't that far off
21:11 < Beoran> imagine, PS3 has 6 cores available on the CPU
21:11 < anticw> no it doesn't
21:11 < araujo> hi Beoran
21:11 < anticw> SPUs are not really useful cores
21:12 < araujo> Beoran, working on game development in go?
21:12 < Beoran> araujo, exactly
21:12 < araujo> nice
21:12 < Beoran> I'm wrapping all of SDL
21:12 < araujo> any link?  :)
21:12 < Beoran> almost done really
21:12 < araujo> cool
21:12 < Beoran> http://github.com/beoran/fungo
21:12 < Beoran> also have working line drawing,
21:12 < Beoran> etc
21:13 < araujo> very cool
21:13 < Beoran> I don't know it it all works in 64 bits mode, though or on
non-linux OS
21:13 < Beoran> I4m using unsafe.Pointer a whole lot, no thanks to the
current state of cgo, I'm afraid
21:13 < Beoran> so if you wana test that would be nice :)
21:14 < Beoran> I'm also trying to port Chipmunk for 2D physics, but that's
a bit harder
21:15 < Beoran> it's in a different repository :
http://github.com/beoran/tamias
21:15 * araujo thinks Go would be nice game development option too
21:15 * Beoran agrees
21:15 < anticw> someone @ work talked about web-games w/ html5 canvas ...
the other night it did some Web Socket testing
21:15 < araujo> Beoran, will try it in a couple of hours (after my work
hours) :)
21:16 < Beoran> I started programmming games in C, then C++, both wrere a
hassle.  So then I used Ruby, which is a lot of fn, but a bit sluggish.  You have
to drop down to C quite a bit.
21:16 < anticw> i was pleased to see the RTT latency (Go server) and chrome
(client) is actually really decent
21:16 < anticw> being able to have chatter between the server and chrome in
low msecs means you could do an in-browser FPS almost
21:16 < Beoran> anticw, sure, Ive played Wolfenstein orginal in a browser :)
21:17 -!- gisikw [~gisikw@137.28.186.120] has quit [Quit: Leaving]
21:17 < anticw> Beoran: it's not the rendering ...  it's the network back
forth
21:17 < anticw> ajax/etc are too slow
21:17 < Beoran> but flash dominates the casual game market on PC anyay, I
feel
21:17 < anticw> we're talking 100ms or more and polling
21:17 < anticw> the websocket test i did has 2.4ms RTT and half of that is
wifi suck
21:18 < Beoran> exactly
21:18 < Beoran> I still think that you need a real application for a
intensive game, not a web app.
21:18 < anticw> anyhow, someone wants to do an in-browser html5/canvas game
...  so we'll see
21:18 < anticw> won't be fps though, prob some 2d co-operative game
21:18 < anticw> i really need help with all the html5/canvas javascript
stuff, i stumbled through to get that stuff i have now working
21:19 < Beoran> anticw, I was writing javascript games a long time ago
already
21:19 < Beoran> puzzle games mostly, though
21:20 < Beoran> I don't know canvas well, but it can probably do line
drawing, tile blitting, etc?
21:20 < anticw> you can
21:20 < anticw> that's been done
21:20 < anticw> there is nothing new there ...  what is interesting are
Chrome Web Sockets ...
21:20 < Beoran> then it's mostly similar to what you'd do in another
language
21:21 < anticw> i did the server in Go because it has "websocket" a pkg and
it was easy
21:21 < anticw> i could have done it in something else
21:22 < Beoran> anticw, why am I not surproised that Go can cater to chrome
? :)
21:23 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
21:24 < franksalim> I believe the author of the websocket package was also
involved in developing WebSocket in Chrome
21:24 < franksalim> Fumitoshi Ukai
21:26 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit
[Client Quit]
21:31 < Beoran> makes sense
21:33 -!- Sapient [~patrickp@wesnoth/developer/sapient] has joined #go-nuts
21:34 -!- nettok [~netto@proxy.galileo.edu] has quit [Quit: Ex-Chat]
21:42 -!- Chryson [~Chryson@c-71-60-250-12.hsd1.pa.comcast.net] has joined
#go-nuts
21:45 -!- gnuvince [~vince@220.1-ppp.3menatwork.com] has quit [Quit: What the
fruit is goin' on here!?]
21:47 -!- niekie [quasselcor@CAcert/Assurer/niekie] has joined #go-nuts
21:48 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
21:51 -!- niekie [quasselcor@CAcert/Assurer/niekie] has quit [Read error:
Connection reset by peer]
21:56 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
21:58 -!- TMKCodes [~toni@bbwirelessgw2-fee1dc00-62.dhcp.inet.fi] has quit [Read
error: Operation timed out]
22:03 < plexdev> http://is.gd/aoB0a by [Robert Griesemer] in 2 subdirs of
go/src/pkg/go/printer/ -- go/printer: fix a couple of hidden crashes that become
22:04 -!- tty [~tty@194.219.194.171.dsl.dyn.forthnet.gr] has joined #go-nuts
22:04 -!- tty [~tty@194.219.194.171.dsl.dyn.forthnet.gr] has left #go-nuts []
22:08 -!- OpenSpace [~ja@93.86.226.250] has quit [Remote host closed the
connection]
22:09 -!- skelterjohn [~jasmuth@lawn-net168-in.rutgers.edu] has quit [Quit:
skelterjohn]
22:14 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 276 seconds]
22:15 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Quit: Leaving]
22:16 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has quit [Ping timeout:
264 seconds]
22:18 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has joined #go-nuts
22:19 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has quit
[Quit: rhelmer]
22:21 -!- scm [justme@c162101.adsl.hansenet.de] has quit [Ping timeout: 265
seconds]
22:23 -!- scm [justme@c162059.adsl.hansenet.de] has joined #go-nuts
22:26 -!- hstimer [~hstimer@2002:465a:aa25:0:226:bbff:fe05:dd9b] has quit [Quit:
hstimer]
22:28 -!- rhelmer [~rhelmer@adsl-69-107-75-165.dsl.pltn13.pacbell.net] has joined
#go-nuts
22:30 -!- Beoran [~beoran@ip-81-11-185-208.dsl.scarlet.be] has left #go-nuts
["Leaving"]
22:37 -!- diabolix [~jsoyke@206.210.81.55] has quit [Quit: Leaving]
22:38 -!- franksalim [~frank@adsl-75-61-84-181.dsl.pltn13.sbcglobal.net] has quit
[Quit: Ex-Chat]
22:42 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:42 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
22:45 -!- niekie [quasselcor@CAcert/Assurer/niekie] has joined #go-nuts
22:46 -!- skyfive [~skyfive@173-11-110-86-SFBA.hfc.comcastbusiness.net] has quit
[Quit: Leaving...]
22:47 < exch> html5 canvas is funky.  It could do with a 3D context though
22:47 < exch> or at least hardware accelerated 2d
22:47 < exch> still.  it can do a respectable 30 fps with a considerable
amount of stuff going on
22:47 < exch> prolly faster in chrome
22:48 -!- dju [dju@89-158-203-183.rev.dartybox.com] has joined #go-nuts
22:48 < anticw> i dont want 3d fps in a browser, why aim for that
22:48 < anticw> the 3d fps bar is insanely high
22:48 < anticw> i just want decent enough 2d for now
22:49 < exch> FPS games are not on my todo list tbh :p much overrated
22:49 < exch> but 'fake 2D' allows for better alpha transparency, rotation
etc
22:49 < exch> shaders
22:49 < plexdev> http://is.gd/aoRp8 by [Robert Griesemer] in 2 subdirs of
go/src/pkg/go/printer/ -- gofmt: make sure there is a newline after
22:50 -!- jwillia3_ [~jwillia3@71.23.157.238] has joined #go-nuts
22:52 -!- noam [~k4jd095b@87.70.183.61] has joined #go-nuts
22:52 -!- TR2N [email@89.180.167.168] has joined #go-nuts
22:52 < anticw> exch: someone did a js NES emulator that works very well ...
i was impressed with that
22:53 -!- dju [dju@89-158-203-183.rev.dartybox.com] has quit [Ping timeout: 268
seconds]
22:53 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 240 seconds]
22:54 < exch> yea i've seen some impressive canvas things
22:55 < exch> http://www.chromeexperiments.com/ this has a few nice ones
22:55 < exch> I particularly enjoy wasting some time with 'Harmony'.
22:59 -!- blackmagik [~blackmagi@unaffiliated/blackmagik] has left #go-nuts
["Leaving"]
22:59 -!- alkavan__ [~alkavan@77.124.239.212] has joined #go-nuts
23:00 -!- tristram [~tristram@rps513.ovh.net] has quit [Read error: Operation
timed out]
23:01 -!- ericvh [~ericvh@32.97.110.63] has quit [Read error: Operation timed out]
23:02 -!- Fraeon_ [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has joined
#go-nuts
23:03 -!- Fraeon [~kzer-za@e212-246-65-153.elisa-laajakaista.fi] has quit [Ping
timeout: 245 seconds]
23:04 -!- nanoo [~nano@95-89-189-46-dynip.superkabel.de] has quit [Quit: Leaving]
23:05 -!- kanru [~kanru@61-228-155-139.dynamic.hinet.net] has joined #go-nuts
23:06 -!- dju [dju@89-158-203-183.rev.dartybox.com] has joined #go-nuts
23:07 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
23:09 -!- tristram [~tristram@rps513.ovh.net] has joined #go-nuts
23:13 -!- mbarkhau [~koloss@dslb-084-059-161-165.pools.arcor-ip.net] has joined
#go-nuts
23:14 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
23:16 -!- hstimer [~hstimer@2002:62ea:197d:0:226:bbff:fe05:dd9b] has joined
#go-nuts
23:16 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 265 seconds]
23:17 < KirkMcDonald> I am curious as to the meaning of
runtime.MemStats.BySize.
23:18 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
23:18 -!- mbarkhau [~koloss@dslb-084-059-161-165.pools.arcor-ip.net] has quit
[Client Quit]
23:23 -!- gisikw [~gisikw@137.28.186.120] has joined #go-nuts
23:28 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has quit
[Ping timeout: 265 seconds]
23:34 -!- NoPyGod [~no@222-154-187-184.jetstream.xtra.co.nz] has joined #go-nuts
23:35 -!- zab [~zab@60-240-60-119.tpgi.com.au] has joined #go-nuts
23:35 -!- pdelgallego [~pdelgalle@42.Red-217-125-2.staticIP.rima-tde.net] has
joined #go-nuts
23:36 -!- alkavan__ [~alkavan@77.124.239.212] has quit [Ping timeout: 264 seconds]
23:37 -!- alkavan__ [~alkavan@77.126.142.151] has joined #go-nuts
23:37 -!- jwillia3_ [~jwillia3@71.23.157.238] has joined #go-nuts
23:38 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 264 seconds]
23:40 -!- Venom_X [~pjacobs@66.54.185.131] has quit [Quit: Venom_X]
23:40 -!- deso [~deso@77-21-80-251-dynip.superkabel.de] has quit [Read error:
Connection reset by peer]
23:42 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 260 seconds]
23:44 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
23:46 -!- Damn3d [damn3d@unaffiliated/morpheus/x-0931003] has joined #go-nuts
23:48 -!- gnuvince [~vince@72.0.219.106] has joined #go-nuts
23:53 -!- jwillia3 [~jwillia3@71.23.157.238] has quit [Ping timeout: 240 seconds]
23:53 -!- jwillia3 [~jwillia3@71.23.157.238] has joined #go-nuts
--- Log closed Sat Mar 13 00:00:24 2010