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

--- Log opened Tue May 18 00:00:06 2010
--- Day changed Tue May 18 2010
00:00 < Soultaker> I'm not too familiar with GCC internals, but there are
libraries like gnu pth that offer cooperative multithreading like goroutines,
right?
00:00 < Ginto8> but 8/6g can use multiple threads if you tell it to
00:00 < Ginto8> well idk I'm not familiar with it either, it was just on (I
believe) the go website
00:00 < Ginto8> but I'm not sure
00:02 < Soultaker> purely in theory I don't see why using GCC to generate
code would imply a different concurrency model, though I could understand if it's
a practical limitation of the current implementation
00:02 -!- tazjin [~tazjin@p5DC8190E.dip.t-dialin.net] has quit [Ping timeout: 265
seconds]
00:20 < kmeyer> did gccgo get garbage collection yet?
00:21 < kmeyer> last I'd heard it just leaked all memory
00:29 -!- path[l] [UPP@120.138.102.34] has quit [Quit: path[l]]
00:32 < Soultaker> maybe you could hook it up to that boehm gc?  not ideal
of course.
00:43 -!- Venom_X [~pjacobs@71.20.102.220] has joined #go-nuts
00:43 -!- Venom_X [~pjacobs@71.20.102.220] has quit [Client Quit]
00:47 -!- warthurton [~warthurto@pdpc/supporter/active/warthurton] has left
#go-nuts []
00:53 -!- dave_r5 [~d@adsl-75-55-127-140.dsl.sfldmi.sbcglobal.net] has joined
#go-nuts
01:02 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
01:02 -!- kota1111 [~kota1111@gw2.kbmj.jp] has joined #go-nuts
01:04 < jesusaurus> what does 'internal compiler error: subnode not addable'
mean?
01:07 < KirkMcDonald> "Internal compiler error" sounds an awful lot like a
bug in the compiler.
01:08 < jesusaurus> it sure does
01:12 < Abablabab> When I used to work with occam when you hit compiler
errors you'd get really nice errors like 'Compiler error: 10'
01:17 < jessta> jesusaurus: from a bit of grepping, it appears to come from
cplx.c and "addable" is short for "addressable"
01:18 < jessta> which makes me want to have my morning coffee
01:19 -!- gnuvince_ [~vince@70.35.162.12] has joined #go-nuts
01:33 < kmeyer> morning?  :P
01:33 < kmeyer> it's 18:30 here :P
01:35 < jesusaurus> jessta: thanks, i found the line in cplx.c throwing the
error, but i still have no idea whats going on
01:35 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
01:39 -!- hstimer [~hstimer@70.90.170.37] has quit [Quit: hstimer]
01:40 -!- hstimer [~hstimer@70.90.170.37] has joined #go-nuts
01:41 -!- hstimer [~hstimer@70.90.170.37] has quit [Client Quit]
01:43 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has quit
[Ping timeout: 265 seconds]
01:43 -!- hstimer [~hstimer@70.90.170.37] has joined #go-nuts
01:45 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
01:53 -!- Gracenotes [~person@wikipedia/Gracenotes] has quit [Ping timeout: 276
seconds]
01:54 < jesusaurus> does anyone understand cplx.c well enough to tell me
what subnode() is doing?
01:54 -!- Gracenotes [~person@wikipedia/Gracenotes] has joined #go-nuts
01:54 -!- plh [plh@gateway/shell/rootnode.net/x-zqhlbttrdyguakqd] has joined
#go-nuts
01:58 -!- hstimer_ [~hstimer@166.205.136.119] has joined #go-nuts
02:00 -!- hstimer [~hstimer@70.90.170.37] has quit [Ping timeout: 246 seconds]
02:02 < jessta> jesusaurus: got a small example of code that triggers the
error?
02:06 -!- hstimer_ [~hstimer@166.205.136.119] has quit [Quit: Leaving]
02:16 < jesusaurus> jessta: http://pastie.org/964837
02:17 < jesusaurus> line number 46 is giving me grief
02:18 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
02:18 -!- bmizerany [~bmizerany@231.sub-75-208-16.myvzw.com] has quit [Remote host
closed the connection]
02:19 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
02:20 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
02:20 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
02:26 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has joined #go-nuts
02:26 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Ping
timeout: 264 seconds]
02:26 -!- narsil [~Narsil@rke75-4-82-234-110-106.fbx.proxad.net] has quit [Ping
timeout: 265 seconds]
02:46 -!- jhawk28 [~jhawk28@72.40.31.201] has joined #go-nuts
02:47 -!- jhawk28 [~jhawk28@72.40.31.201] has quit [Remote host closed the
connection]
02:55 < MizardX> jesusaurus: I think that line 14 shoud be: var buff
[256]complex128
02:56 < MizardX> err...  that didn't solve it
03:11 -!- gospch [~gospch@unaffiliated/gospch] has joined #go-nuts
03:24 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
03:51 -!- ikke [~ikke@unaffiliated/ikkebr] has quit []
03:54 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts
03:57 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
04:02 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has quit [Ping timeout: 245
seconds]
04:04 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has joined #go-nuts
04:15 -!- eikenberry [~jae@mail.zhar.net] has quit [Ping timeout: 260 seconds]
04:21 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
04:27 -!- cco3 [~conley@c-69-181-138-209.hsd1.ca.comcast.net] has quit [Read
error: Operation timed out]
04:32 -!- rhelmer [~rhelmer@adsl-69-107-95-11.dsl.pltn13.pacbell.net] has joined
#go-nuts
04:43 < drevell> does anyone know what happens on heap exhaustion?  crash?
04:43 < drevell> i guess i should just test it
04:48 -!- tazjin [~tazjin@p5DC8151F.dip.t-dialin.net] has joined #go-nuts
04:49 < kmeyer> OOM-killer eventually kills the process, if you're lucky
04:56 -!- gospch [~gospch@unaffiliated/gospch] has quit [Read error: Connection
reset by peer]
04:57 < drevell> i'm thinking about responsible practices for a library, how
to detect and handle allocation failure
04:59 < kmeyer> it doesn't happen.
04:59 < kmeyer> realistically what happens nowadays is you'll keep getting
more and more heap or swap until the OOM killer kills your process, maybe.
05:02 -!- scm [justme@d019047.adsl.hansenet.de] has quit [Ping timeout: 264
seconds]
05:03 -!- scm [justme@d134085.adsl.hansenet.de] has joined #go-nuts
05:09 < drevell> that assumes oversubscribed memory and/or swap are enabled
though.  i know it's rare and quibbly but i'd like to do things "by the book"
05:09 < drevell> err overcommit, whatever it's called
05:11 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
05:18 < kmeyer> the go runtime makes such assumptions all over the place
05:18 < kmeyer> likely it'll fail before your code does in such a bizarre
scenario
05:28 -!- d_m [~d_m@207.245.124.125] has quit [Quit: leaving]
05:28 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
05:28 < drevell> hm that's good to know, thanks
05:29 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has joined #go-nuts
05:31 -!- Kashia [~Kashia@port-92-200-70-167.dynamic.qsc.de] has quit [Ping
timeout: 264 seconds]
05:33 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Read error:
Connection reset by peer]
05:35 < jessta> drevell: handling OOM properly is unlikely to actually ever
happen
05:35 < jessta> look at DBUS and how much code is has just for handling that
issue
05:37 < jessta> if you run out of memory it's probably because your program
is malfunctioning, or you're running it on a machines that doesn't meet it's
requirements
05:37 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
05:42 -!- tazjin [~tazjin@p5DC8151F.dip.t-dialin.net] has quit [Ping timeout: 258
seconds]
05:43 < taruti> kmeyer: what would you do on an out-of-memory condition?
05:44 < drevell> taruti: to speak for myself, the ideal thing to do (as a
library) would be to return an error code to the caller and give it some chance to
bail out cleanly
05:45 < taruti> the issue is that one cannot do error reporting (allocates
memory) or GC (the oom killer will reap you)
05:46 < taruti> paniccing is a fine way of going down.  (don't remember
whether it panics atm)
05:47 < kmeyer> taruti: die spectacularly
05:48 -!- rhelmer [~rhelmer@adsl-69-107-95-11.dsl.pltn13.pacbell.net] has quit
[Quit: rhelmer]
05:51 -!- marchdown [~marchdown@ppp79-139-171-114.pppoe.spdop.ru] has quit [Ping
timeout: 265 seconds]
05:52 < jessta> drevell: how do you handle running out of stack space?
05:53 < jessta> handling oom requires returning an error, bailing out
cleanly all while not allocating any more memory
05:54 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
05:55 < jessta> it's hard to do, and most people that do it actually do it
wrong
05:56 -!- marchdown [~marchdown@ppp79-139-170-103.pppoe.spdop.ru] has joined
#go-nuts
05:56 -!- Kashia [~Kashia@port-92-200-228-43.dynamic.qsc.de] has joined #go-nuts
05:57 < drevell> yeah, it's not something that i expect to be really viable.
but if there's a simple best practice that perhaps gives a fighting chance, i'd
use it.  but it's not really a big deal
05:57 -!- gospch [~gospch@unaffiliated/gospch] has joined #go-nuts
05:59 < jessta> and in terms of cleanly bailing out, what could you do other
than just quit with "out of memory"
06:01 < drevell> well i'm writing a library, that's up to the app.  if i was
writing an app (just for the sake of argument), i'd probably dellocate everything
i could (to hopefully give room for cleanup), flush files, then quit.
06:02 < jessta> de-allocation so often involves allocation
06:02 < drevell> how very lame
06:04 < jessta> and again, how do you handle running out of stack space?
06:04 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
06:04 < drevell> is that even handleable?  how would you know?
06:04 < jessta> it's not
06:04 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
06:04 < drevell> right, so forget that
06:04 < jessta> which is my point
06:05 -!- Adys [~Adys@unaffiliated/adys] has quit [Ping timeout: 240 seconds]
06:05 < drevell> my fault for the misunderstanding, when you said "stack"
above, i just read "heap" because i assumed you misspoke and i didn't want to be
pedantic
06:06 -!- pizza_ [pizza@ool-457e8bc8.dyn.optonline.net] has quit [Changing host]
06:06 -!- pizza_ [pizza@poipu/supporter/pizza-milkshake] has joined #go-nuts
06:06 < pizza_> well, couldn't you allocate the resources you'd need on
startup so they would be available in the case of resource exhaustion?
06:07 < drevell> how would that work for stack, though?  i can see it
working for heap
06:07 < jessta> pizza_: do you know at startup how much memory you require
for clean up?
06:07 < taruti> pizza_: the runtime may need to allocate memory.  also
applications are concurrent.
06:08 < jessta> drevell: you can't handle running out of stack space, how
programming langauge I've seen has a way to handle it
06:09 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
06:10 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
06:10 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping
timeout: 240 seconds]
06:10 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
06:11 < pizza_> jessta: for things like writing to a logfile i'd assume you
would
06:11 < drevell> jessta: right, i get that
06:13 -!- gisikw [~gisikw@137.28.246.34] has joined #go-nuts
06:13 -!- Adys [~Adys@unaffiliated/adys] has joined #go-nuts
06:15 < jessta> drevell: so what the point of handling the unlikely
situtation of running out of heap memory when you'll still get screwed by the
unlikely situation of running out of stack memory
06:15 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
06:15 < jessta> pizza_: as long as that memory wasn't currently swapped out
06:18 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
06:19 < pizza_> hmm looks like mlock isn't implemented :/
06:23 -!- rlab [~Miranda@91.200.158.34] has quit [Ping timeout: 246 seconds]
06:24 -!- viirya [~viirya@cml506-25.csie.ntu.edu.tw] has quit [Ping timeout: 240
seconds]
06:29 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
06:32 < wrtp> jesusaurus: you can get around your problem by creating a temp
variable.  e.g.  change line 46 to:x := buff[i]
06:32 < wrtp> t := real(x)
06:32 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
06:33 -!- gospch [~gospch@unaffiliated/gospch] has quit [Read error: Connection
reset by peer]
06:33 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
06:37 < wrtp> jesusaurus: and the compiler's getting it wrong in two ways -
a) the subnode *is* addressable and b) it shouldn't need to be addressable
anyway...
06:40 < jessta> wrtp: got a fix?  I was trying to find the problem but I
haven't read much of the compiler yet
06:44 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 246
seconds]
06:45 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
06:51 < wrtp> jessta: no - i haven't looked any further
06:55 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
07:02 -!- gisikw [~gisikw@137.28.246.34] has quit [Remote host closed the
connection]
07:04 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 246
seconds]
07:10 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
07:14 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 265 seconds]
07:14 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
07:15 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
07:23 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
07:24 -!- X-Scale [email@89-180-136-35.net.novis.pt] has left #go-nuts []
07:26 -!- tvw [~tv@e176002184.adsl.alicedsl.de] has joined #go-nuts
07:27 -!- tibshoot [~tibshoot@gw-puteaux.linagora.com] has joined #go-nuts
07:33 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
07:34 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
07:36 -!- samferry [sam@atheme/member/samferry] has quit [Write error: Broken
pipe]
07:37 -!- samferry [sam@atheme/member/samferry] has joined #go-nuts
07:41 -!- Kashia [~Kashia@port-92-200-228-43.dynamic.qsc.de] has quit [Quit: This
computer has gone to sleep]
07:45 -!- scm [justme@d134085.adsl.hansenet.de] has quit [Ping timeout: 252
seconds]
08:09 < jessta> wrtp: it seems like it's checking if the "INDEX' node is
addressable...which seems silly
08:10 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has joined #go-nuts
08:12 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
08:13 < wrtp> jessta: well, the index node is the lval
08:13 < wrtp> jessta: which becomes the nc argument to subnode
08:13 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
08:14 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:14 -!- crashR [~crasher@codextreme.pck.nerim.net] has joined #go-nuts
08:14 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
08:14 < wrtp> jessta: it's possible it's an entirely spurious test; or else
somewhere else in the compiler is supposed to make it addressable before calling
subnode
08:15 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
08:19 -!- ikaros [~ikaros@f050231191.adsl.alicedsl.de] has joined #go-nuts
08:26 -!- tvw [~tv@e176002184.adsl.alicedsl.de] has quit [Remote host closed the
connection]
08:29 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Read error: Connection reset by peer]
08:29 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
08:29 -!- scm [justme@d134085.adsl.hansenet.de] has joined #go-nuts
08:30 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Ping
timeout: 246 seconds]
08:32 -!- Archwyrm [~archwyrm@66.249.8.146] has quit [Ping timeout: 268 seconds]
08:32 -!- Archwyrm [~archwyrm@66.249.8.146] has joined #go-nuts
08:33 -!- rbn_ [~ruben@134.102.3.25] has quit [Ping timeout: 245 seconds]
08:34 -!- rbn [~ruben@134.102.3.25] has joined #go-nuts
08:35 -!- BrowserUk [~irc1_20_B@2.99.171.200] has joined #go-nuts
08:35 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Operation timed out]
08:36 -!- rhelmer [~rhelmer@adsl-69-107-95-11.dsl.pltn13.pacbell.net] has joined
#go-nuts
08:38 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
08:38 -!- barismetin [~barismeti@kde/developer/baris] has joined #go-nuts
08:41 -!- narsil [~Narsil@rke75-4-82-234-110-106.fbx.proxad.net] has joined
#go-nuts
08:44 -!- gisikw [~gisikw@137.28.246.34] has joined #go-nuts
08:46 -!- gisikw [~gisikw@137.28.246.34] has left #go-nuts []
08:46 -!- gisikw [~gisikw@137.28.246.34] has joined #go-nuts
08:48 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
08:51 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has joined
#go-nuts
08:53 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Ping
timeout: 240 seconds]
08:55 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
09:02 -!- OpenSpace [~ja@79.101.153.170] has quit [Ping timeout: 265 seconds]
09:04 -!- aho [~nya@f052211087.adsl.alicedsl.de] has joined #go-nuts
09:11 -!- ipv [~ipv@fqdn.me] has joined #go-nuts
09:15 -!- OpenSpace [~ja@109.92.224.219] has joined #go-nuts
09:23 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
09:24 -!- ct529 [~quassel@biolpc1758.york.ac.uk] has joined #go-nuts
09:29 -!- OpenSpace [~ja@109.92.224.219] has quit [Quit: Leaving]
09:32 -!- ct529 [~quassel@biolpc1758.york.ac.uk] has quit [Read error: Connection
reset by peer]
09:33 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
09:34 -!- marchdown [~marchdown@ppp79-139-170-103.pppoe.spdop.ru] has quit [Read
error: Connection reset by peer]
09:41 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has
joined #go-nuts
09:42 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
09:44 -!- marchdown [~marchdown@ppp79-139-171-167.pppoe.spdop.ru] has joined
#go-nuts
09:47 -!- narsil [~Narsil@rke75-4-82-234-110-106.fbx.proxad.net] has quit [Read
error: Operation timed out]
09:48 -!- narsil [~Narsil@rke75-4-82-234-110-106.fbx.proxad.net] has joined
#go-nuts
09:50 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
09:51 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
09:53 -!- OpenSpace [~ja@109.92.224.219] has joined #go-nuts
10:01 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
10:01 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has joined #go-nuts
10:03 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Ping timeout: 268
seconds]
10:03 -!- Agon [~marcel@HSI-KBW-109-192-058-176.hsi6.kabel-badenwuerttemberg.de]
has quit [Remote host closed the connection]
10:04 -!- cbeck [~cbeck@c-67-170-181-181.hsd1.or.comcast.net] has quit [Ping
timeout: 248 seconds]
10:04 < taruti> iant: my messages are again in the golang-dev spam queue
10:04 -!- cbeck [~cbeck@c-67-170-181-181.hsd1.or.comcast.net] has joined #go-nuts
10:04 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has joined #go-nuts
10:12 -!- path[l] [~path@59.162.86.164] has joined #go-nuts
10:14 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has quit [Read error: Operation
timed out]
10:20 -!- bortzmeyer [~bortzmeye@batilda.nic.fr] has joined #go-nuts
10:22 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Operation timed out]
10:23 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
10:24 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
10:25 -!- ShadowIce_ [pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
10:26 -!- ShadowIce [pyoro@unaffiliated/shadowice-x841044] has quit [Ping timeout:
265 seconds]
10:29 -!- ShadowIce` [pyoro@unaffiliated/shadowice-x841044] has quit [Ping
timeout: 268 seconds]
10:29 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
10:31 -!- Luixsia [~Luixsia@AToulouse-254-1-44-216.w81-250.abo.wanadoo.fr] has
joined #go-nuts
10:32 -!- An_Knight [~Luixsia@AToulouse-254-1-71-164.w81-49.abo.wanadoo.fr] has
joined #go-nuts
10:33 -!- Xurix [~Luixsia@AToulouse-254-1-44-216.w81-250.abo.wanadoo.fr] has quit
[Ping timeout: 240 seconds]
10:34 -!- tazjin [~tazjin@p5DC8151F.dip.t-dialin.net] has joined #go-nuts
10:35 -!- Luixsia [~Luixsia@AToulouse-254-1-44-216.w81-250.abo.wanadoo.fr] has
quit [Ping timeout: 240 seconds]
10:48 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has joined #go-nuts
11:00 -!- uriel [~uriel@li43-28.members.linode.com] has joined #go-nuts
11:04 -!- jeek [~jeek@pedobear.jeek.net] has quit [Ping timeout: 264 seconds]
11:08 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Read error:
Connection reset by peer]
11:11 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
11:12 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
11:15 -!- narsil [~Narsil@rke75-4-82-234-110-106.fbx.proxad.net] has quit [Ping
timeout: 240 seconds]
11:20 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 246
seconds]
11:27 -!- narsil [~Narsil@rke75-4-82-234-110-106.fbx.proxad.net] has joined
#go-nuts
11:32 -!- artefon [~thiago@189.107.189.251] has joined #go-nuts
11:33 < taruti> Is there a good tree implementation for Go?
11:34 -!- kanru [~kanru@61-30-10-70.static.tfn.net.tw] has quit [Quit: WeeChat
0.3.2]
11:36 < jessta> taruti: I don't think anyone has done it, probably due to
the lack of generics
11:42 < taruti> meh, surely people have needed them?
11:48 < taruti> found http://github.com/runningwild/go-btree :)
11:48 -!- aho [~nya@f052211087.adsl.alicedsl.de] has quit [Quit:
EXEC_over.METHOD_SUBLIMATION]
11:49 < pizza_> go source looks so clean
11:58 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Ping
timeout: 260 seconds]
11:59 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
12:02 < wrtp> pizza_: doesn't it just?  a breath of fresh air.
12:03 < wrtp> pizza_: mind you, the C written by the go authors looks pretty
clean too
12:03 < Abablabab> I've heard people call go ugly, i'd like to know what
they're smoking
12:03 < Abablabab> it's also probably quite helpful the compiler goes some
way to enforce style
12:04 -!- kota1111 [~kota1111@gw2.kbmj.jp] has quit [Quit: Leaving...]
12:05 < exch> that and the gofmt tool make reading other people's code a lot
less of a pain in the ass.  which is definitely nice
12:06 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
12:09 < jessta> exch: yeah, formating makes a big difference in terms of
readability
12:10 < jessta> people who write "char* a" instead of "char *a" confuse my
reading
12:11 -!- artefon [~thiago@189.107.189.251] has quit [Quit: bye]
12:11 < jessta> I'm always amazed at how much of a difference it makes
12:12 -!- xenplex [~xenplex@195.46.241.226] has joined #go-nuts
12:21 -!- sladegen [~nemo@unaffiliated/sladegen] has quit [Disconnected by
services]
12:21 -!- sladegen [~nemo@unaffiliated/sladegen] has joined #go-nuts
12:22 -!- i__ [~none@189.115.10.120] has joined #go-nuts
12:23 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
12:31 -!- gisikw [~gisikw@137.28.246.34] has left #go-nuts []
12:31 -!- narsil [~Narsil@rke75-4-82-234-110-106.fbx.proxad.net] has quit [Ping
timeout: 246 seconds]
12:31 -!- gisikw [~gisikw@137.28.246.34] has joined #go-nuts
12:32 -!- gisikw [~gisikw@137.28.246.34] has quit [Remote host closed the
connection]
12:39 -!- xenplex [~xenplex@195.46.241.226] has quit [Quit: xenplex]
12:39 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
12:40 -!- XniX23 [vegy@89-212-10-29.dynamic.dsl.t-2.net] has quit [Ping timeout:
240 seconds]
12:47 -!- path[l]_ [~path@59.162.86.164] has joined #go-nuts
12:47 -!- XniX23 [vegy@89-212-10-29.dynamic.dsl.t-2.net] has joined #go-nuts
12:48 -!- path[l]__ [~path@59.162.86.164] has joined #go-nuts
12:48 -!- path[l]_ [~path@59.162.86.164] has quit [Read error: Connection reset by
peer]
12:48 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
12:50 -!- tvw [~tv@212.79.9.150] has joined #go-nuts
12:51 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
12:51 -!- path[l] [~path@59.162.86.164] has quit [Ping timeout: 265 seconds]
12:52 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
12:55 -!- Kashia [~Kashia@nat.rz.uni-karlsruhe.de] has joined #go-nuts
12:59 -!- XniX23 [vegy@89-212-10-29.dynamic.dsl.t-2.net] has quit [Ping timeout:
264 seconds]
13:01 -!- i__ [~none@189.115.10.120] has quit [Quit: leaving]
13:01 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
13:02 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
13:07 -!- zozoR [~zozoR@0x5da69cf2.cpe.ge-0-1-0-1105.hsnqu1.customer.tele.dk] has
quit [Quit: Morten.  Desu~]
13:11 -!- tazjin [~tazjin@p5DC8151F.dip.t-dialin.net] has quit [Quit: Leaving...]
13:11 -!- i__ [~none@unaffiliated/i--/x-3618442] has joined #go-nuts
13:19 -!- braddunbar [~brad@rrcs-96-10-96-162.se.biz.rr.com] has joined #go-nuts
13:28 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
13:32 -!- iant [~iant@adsl-71-133-8-30.dsl.pltn13.pacbell.net] has quit [Ping
timeout: 248 seconds]
13:42 -!- alehorst [~alehorst@189.58.22.219.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 248 seconds]
13:48 -!- artefon [~thiago@usuarios164.dcc.ufmg.br] has joined #go-nuts
13:53 -!- eikenberry [~jae@mail.zhar.net] has joined #go-nuts
14:00 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
14:00 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
14:02 -!- iant [~iant@67.218.103.169] has joined #go-nuts
14:02 -!- mode/#go-nuts [+v iant] by ChanServ
14:10 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Remote
host closed the connection]
14:16 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
14:17 -!- noam [~noam@77.127.205.252] has joined #go-nuts
14:27 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
14:28 -!- terrex [~terrex@69.38.222.87.dynamic.jazztel.es] has joined #go-nuts
14:30 -!- awidegreen [~quassel@62.176.237.78] has joined #go-nuts
14:31 -!- artefon [~thiago@usuarios164.dcc.ufmg.br] has quit [Quit: bye]
14:43 -!- Svarthandske [~nn@dsl-tkubrasgw1-fe3cdc00-28.dhcp.inet.fi] has quit
[Quit: Svarthandske]
14:47 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
14:48 -!- lmoura [~lauromour@200.184.118.130] has quit [Quit: Leaving]
14:49 -!- jeek [~jeek@pedobear.jeek.net] has joined #go-nuts
14:55 -!- d_m [~d_m@207.245.124.125] has joined #go-nuts
14:56 -!- Venom_X [~pjacobs@71.20.102.220] has joined #go-nuts
15:03 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has joined
#go-nuts
15:09 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has quit [Quit: Coyote finally
caught me]
15:11 -!- iant [~iant@67.218.103.169] has quit [Ping timeout: 248 seconds]
15:18 -!- tumdum [~tumdum@atu54.neoplus.adsl.tpnet.pl] has joined #go-nuts
15:18 -!- tumdum [~tumdum@atu54.neoplus.adsl.tpnet.pl] has quit [Changing host]
15:18 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts
15:19 -!- tazjin [~tazjin@p5DC8151F.dip.t-dialin.net] has joined #go-nuts
15:22 -!- Agon-laptop
[~marcel@HSI-KBW-095-208-003-128.hsi5.kabel-badenwuerttemberg.de] has joined
#go-nuts
15:24 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Quit: tumdum]
15:24 * BrowserUk agrees with jessta.  Cleanly and consistently formatted source
code is such a joy to work with.  Regardless of the language.  But the cleanliness
of Go, plus the sane and consistent formatting enforcement is one of the strongest
draws for me.
15:25 * BrowserUk just wishes it ran a little better where I am constrained to
operating :(
15:26 < jessta> BrowserUk: yeah, I pretty much don't care what the formating
is as long as it's consistent
15:28 -!- ni|_ [~james@dontpanic.union.edu] has joined #go-nuts
15:29 -!- jvogel_ [~jonathan@friedpancakes.com] has joined #go-nuts
15:29 -!- Keltia_ [roberto@aran.keltia.net] has joined #go-nuts
15:30 -!- pizza_ [pizza@poipu/supporter/pizza-milkshake] has quit [Ping timeout:
246 seconds]
15:30 -!- ni| [~james@dontpanic.union.edu] has quit [Ping timeout: 246 seconds]
15:30 -!- stalled [~stalled@unaffiliated/stalled] has quit [Ping timeout: 246
seconds]
15:30 -!- Tonnerre [tonnerre@netbsd/developer/tonnerre] has quit [Ping timeout:
246 seconds]
15:30 -!- Keltia [roberto@aran.keltia.net] has quit [Ping timeout: 246 seconds]
15:30 -!- Pinkilla [~pinkilla@aether.hipocoon.be] has quit [Ping timeout: 246
seconds]
15:31 -!- tsung_ [~jon@112.104.53.151] has joined #go-nuts
15:31 -!- korfuri [~korfuri@eth0.korfuri.fr] has quit [Ping timeout: 246 seconds]
15:31 -!- clip9 [tj@12.81-166-62.customer.lyse.net] has quit [Ping timeout: 246
seconds]
15:31 -!- prip [~foo@host37-220-dynamic.45-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 246 seconds]
15:31 -!- jvogel [~jonathan@friedpancakes.com] has quit [Ping timeout: 246
seconds]
15:31 -!- tvw [~tv@212.79.9.150] has quit [Ping timeout: 246 seconds]
15:33 -!- pizza_ [pizza@ool-457e8bc8.dyn.optonline.net] has joined #go-nuts
15:33 -!- Tonnerre [tonnerre@netbsd/developer/tonnerre] has joined #go-nuts
15:33 -!- korfuri [~korfuri@eth0.korfuri.fr] has joined #go-nuts
15:33 -!- Pinkilla [~pinkilla@aether.hipocoon.be] has joined #go-nuts
15:35 -!- tsung [~jon@112.104.53.151] has quit [Ping timeout: 252 seconds]
15:35 -!- roto [~roto@64.79.202.154] has quit [Ping timeout: 252 seconds]
15:35 -!- roto [~roto@64.79.202.154] has joined #go-nuts
15:35 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Ping
timeout: 264 seconds]
15:36 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
15:39 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has joined #go-nuts
15:39 -!- stalled [~stalled@unaffiliated/stalled] has joined #go-nuts
15:39 -!- clip9 [tj@12.81-166-62.customer.lyse.net] has joined #go-nuts
15:39 -!- surma1 [~surma@brln-4dbc1524.pool.mediaWays.net] has joined #go-nuts
15:40 < BrowserUk> jessta: I'd make a slight proviso to that.  Consistently
bad doesn't cut it :) But yes.  I have my preferences, but so long as the
formatting is relatively sane and consistent, I can get used to it.
15:41 < jessta> bad can be very subjective
16:35 -!- uriel [~uriel@li43-28.members.linode.com] has joined #go-nuts
17:41 -!- uriel [~uriel@li43-28.members.linode.com] has joined #go-nuts
17:41 -!- dju [dju@fsf/member/dju] has joined #go-nuts
17:43 -!- ptrb [~peter@archimedes.bourgon.org] has joined #go-nuts
17:43 < BrowserUk> Well, you know it doesn't work out that way.
17:44 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-174-17.clienti.tiscali.it] has
joined #go-nuts
17:44 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
17:44 < Namegduf> Right, because the lines stay short, mostly, and the space
stays mostly wasted.
17:44 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
17:45 < BrowserUk> Most of my lines come in well under 72 chars, but I do
see some horrible messes created by people breaking lines up and reducing
indentation levels in order to comply with some long lost arbitrary limit.
17:45 < Namegduf> You keep introducing "long lost", but it clearly *isn't*
long lost.
17:45 < ampleyfly> I can't read too compact code, it needs some short lines
and spacing
17:46 < BrowserUk> It originates from 72 posityion puch cards...and they are
long lost/
17:46 < BrowserUk> *punch
17:46 < Namegduf> Yes, they are- but that doesn't really matter.
17:47 -!- alehorst [~alehorst@189.58.22.219.dynamic.adsl.gvt.net.br] has joined
#go-nuts
17:47 < BrowserUk> 'K.  Done.
17:52 -!- rhelmer [~rhelmer@64.134.224.216] has quit [Quit: rhelmer]
17:55 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Ping
timeout: 240 seconds]
17:57 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has joined
#go-nuts
18:01 -!- ptrb [~peter@archimedes.bourgon.org] has quit [Ping timeout: 240
seconds]
18:01 -!- ptrb [~peter@archimedes.bourgon.org] has joined #go-nuts
18:03 -!- anschelsc [~anschel@96.56.250.157] has joined #go-nuts
18:03 < anschelsc> why does len() return an int and not an uint?
18:04 < anschelsc> i really can't see the rationale for that
18:04 < anschelsc> anyone?
18:05 < ampleyfly> sounds like a good question to me, maybe uints just
aren't used so much
18:05 < jessta> there probably isn't a reason, but it doesn't really matter
18:06 <+iant> it's a tradeoff
18:06 <+iant> uint gives more range but has weird behaviour around zero
18:06 <+iant> int has predictable behaviour around zero but cuts the maximum
size of an object in half
18:06 < anschelsc> but when would you ever want negative len?
18:06 -!- path[l] [~path@59.162.86.164] has quit [Quit: path[l]]
18:07 <+iant> when you say if for i := 0; i < len(x) - 1; i++
18:07 <+iant> which is another readon for why len returns int in Go, because
there is no automatic type conversion
18:07 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
18:07 < braddunbar> iant: huh, not a bad use case...
18:07 -!- marsu [~marsu@93.15.203.200] has joined #go-nuts
18:08 < anschelsc> iant: that loop will never run though...
18:08 < anschelsc> oops
18:08 < anschelsc> yes it will, sorry
18:09 < exch> the -1 isn't needed though
18:09 -!- b00m_chef [~watr@d64-180-45-230.bchsia.telus.net] has quit [Ping
timeout: 240 seconds]
18:09 < exch> unless you want to skip the last element
18:09 <+iant> right, that is the case in question
18:10 <+iant> of course you can make it work when using uint, but you do
have to remember that there is weird behaviour around zero
18:10 <+iant> it's a tradeoff
18:11 < anschelsc> it just seems irrational to make a function which will
never return negative numbers return an int
18:11 < kmeyer> iant: great example and explanation, thanks :)
18:12 < kmeyer> anschelsc: is the difference between 2 billion and 4 billion
max elements that huge to you?
18:13 < ampleyfly> I think anschelsc is more concerned with it being an int
because it looks like it could return -1
18:13 < anschelsc> thank you ampleyfly
18:13 < kmeyer> Ah.
18:13 < anschelsc> it would seem that at least part of the point of uint is
as a sanity check
18:14 < anschelsc> i don't want my function to accept negative parameters
18:14 < anschelsc> because they are meaningless
18:14 < anschelsc> but I don't want to do lots of conversions either
18:15 <+iant> func (p mytype) Ulen() uint { return uint(len(p)) }
18:16 < exch> if they change len() to return uint, then every for loop we
write will need an explicit cast of i: for i := uint(0); ...  {} Which is less
desirable still I think
18:16 < anschelsc> perhaps exch
18:17 < anschelsc> iant: I can't make something like that to work on every
kind of slice tho can I?
18:18 <+iant> anschelsc: well, you would have to write that method for every
type you care about; I admit it's hardly convenient in general
18:21 < anschelsc> as long as I'm ranting, if len were a method then I could
use an interface for this...
18:23 -!- alehorst [~alehorst@189.58.22.219.dynamic.adsl.gvt.net.br] has quit
[Ping timeout: 248 seconds]
18:25 -!- anschelsc [~anschel@96.56.250.157] has quit [Quit: I have to leave...you
haven't heard the last of me]
18:33 -!- ikaros [~ikaros@f050231191.adsl.alicedsl.de] has joined #go-nuts
18:37 -!- Ginto8 [~Ginto8@pool-72-82-235-34.cmdnnj.fios.verizon.net] has joined
#go-nuts
18:37 -!- alehorst [~alehorst@187.112.130.127] has joined #go-nuts
18:38 -!- dho [~devon@onager.omniti.com] has joined #go-nuts
18:40 -!- mertimor [~mertimor@p4FE75D45.dip.t-dialin.net] has joined #go-nuts
18:47 -!- Xurix [~Luixsia@AToulouse-254-1-92-8.w86-207.abo.wanadoo.fr] has joined
#go-nuts
18:48 -!- An_Knight [~Luixsia@AToulouse-254-1-71-164.w81-49.abo.wanadoo.fr] has
quit [Ping timeout: 265 seconds]
18:52 -!- rhelmer [~rhelmer@adsl-71-139-219-78.dsl.snfc21.pacbell.net] has joined
#go-nuts
18:52 -!- alehorst [~alehorst@187.112.130.127] has quit [Ping timeout: 248
seconds]
18:55 -!- Eridius [~kevin@unaffiliated/eridius] has joined #go-nuts
19:06 -!- Venom_lnch [~pjacobs@71.20.102.220] has quit [Ping timeout: 248 seconds]
19:07 -!- alehorst [~alehorst@187.58.237.241] has joined #go-nuts
19:08 -!- tvw [~tv@e176002184.adsl.alicedsl.de] has joined #go-nuts
19:10 -!- General13372 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has joined
#go-nuts
19:14 -!- General1337 [~support@71-84-50-230.dhcp.mtpk.ca.charter.com] has quit
[Ping timeout: 276 seconds]
19:16 -!- aho [~nya@f051087042.adsl.alicedsl.de] has joined #go-nuts
19:19 -!- tvw [~tv@e176002184.adsl.alicedsl.de] has quit [Ping timeout: 246
seconds]
19:21 -!- ikke [~ikkibr@unaffiliated/ikkebr] has quit []
19:22 -!- wrtp [~rog@89.242.170.31] has quit [Quit: wrtp]
19:37 -!- Venom_X [~pjacobs@71.20.102.220] has joined #go-nuts
19:40 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has joined #go-nuts
19:46 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
19:47 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
19:47 -!- lmoura [~lauromour@200.184.118.130] has joined #go-nuts
19:49 -!- gzmask [~ray@corwin.cat.uregina.ca] has joined #go-nuts
19:50 -!- Agon-laptop
[~marcel@HSI-KBW-095-208-003-128.hsi5.kabel-badenwuerttemberg.de] has quit [Ping
timeout: 252 seconds]
19:55 -!- Agon-laptop
[~marcel@HSI-KBW-095-208-003-128.hsi5.kabel-badenwuerttemberg.de] has joined
#go-nuts
19:58 -!- mwarning [~mwarning@ip-78-94-222-65.unitymediagroup.de] has joined
#go-nuts
19:58 -!- mwarning [~mwarning@ip-78-94-222-65.unitymediagroup.de] has left
#go-nuts []
19:59 -!- Kashia [~Kashia@port-92-200-9-5.dynamic.qsc.de] has joined #go-nuts
20:03 -!- wrtp [~rog@89.242.170.31] has joined #go-nuts
20:05 -!- Kashia [~Kashia@port-92-200-9-5.dynamic.qsc.de] has quit [Ping timeout:
240 seconds]
20:05 -!- perdix [~perdix@sxemacs/devel/perdix] has joined #go-nuts
20:07 -!- i__ [~none@unaffiliated/i--/x-3618442] has quit [Quit: leaving]
20:08 -!- ikke [~ikke@unaffiliated/ikkebr] has joined #go-nuts
20:11 -!- path[l] [~path@120.138.102.34] has joined #go-nuts
20:15 -!- plexdev [~plexdev@arthur.espians.com] has joined #go-nuts
20:19 -!- Archwyrm [~archwyrm@66.249.8.146] has quit [Ping timeout: 276 seconds]
20:26 -!- perdix [~perdix@sxemacs/devel/perdix] has quit [Quit: A cow.  A
trampoline.  Together they fight crime!]
20:26 -!- perdix [~perdix@sxemacs/devel/perdix] has joined #go-nuts
20:27 -!- gospch [~gospch@unaffiliated/gospch] has joined #go-nuts
20:28 -!- terrex [~terrex@69.38.222.87.dynamic.jazztel.es] has quit [Quit:
Leaving.]
20:37 -!- smw_ [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has joined
#go-nuts
20:38 -!- smw [~stephen@pool-96-232-88-231.nycmny.fios.verizon.net] has quit [Read
error: Connection reset by peer]
20:40 -!- terrex [~terrex@69.38.222.87.dynamic.jazztel.es] has joined #go-nuts
20:41 -!- jA_cOp [~yakobu@unaffiliated/ja-cop/x-9478493] has quit [Read error:
Connection reset by peer]
20:42 -!- BrowserUk [~irc1_20_B@2.99.171.200] has quit [Ping timeout: 245 seconds]
20:46 -!- i__ [~gordolinu@unaffiliated/i--/x-3618442] has joined #go-nuts
20:52 -!- xenplex [~xenplex@195.46.241.226] has quit [Quit: xenplex]
20:53 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has joined
#go-nuts
20:55 -!- Discoloda [~vincent@adsl-75-37-71-165.dsl.frs2ca.sbcglobal.net] has quit
[Remote host closed the connection]
20:59 -!- Discoloda [~vincent@adsl-75-37-71-165.dsl.frs2ca.sbcglobal.net] has
joined #go-nuts
21:00 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Operation timed out]
21:01 -!- awidegreen [~quassel@62.176.237.78] has quit [Remote host closed the
connection]
21:01 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
21:06 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
21:06 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
21:07 -!- Abablaba1 [~Boggy-B|H@93-96-78-46.zone4.bethere.co.uk] has joined
#go-nuts
21:10 -!- Abablabab [~Boggy-B|H@93-96-78-46.zone4.bethere.co.uk] has quit [Ping
timeout: 260 seconds]
21:10 -!- ender2070
[~ender2070@CPE00222d6e3608-CM00222d6e3605.cpe.net.cable.rogers.com] has joined
#go-nuts
21:12 -!- noam [~noam@77.127.205.252] has quit [Read error: Connection reset by
peer]
21:12 -!- noam [~noam@77.127.205.252] has joined #go-nuts
21:15 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-174-17.clienti.tiscali.it] has
quit [Quit: E se abbasso questa leva che succ...]
21:18 -!- bmizerany [~bmizerany@dsl081-064-072.sfo1.dsl.speakeasy.net] has quit
[Remote host closed the connection]
21:21 -!- tvw [~tv@e176002184.adsl.alicedsl.de] has joined #go-nuts
21:22 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
21:24 -!- Freejack [~dimonax@75-48-217-250.lightspeed.gdrpmi.sbcglobal.net] has
joined #go-nuts
21:28 < Freejack> Learning about goroutines.  Are those strictly
Asynchronous or can they be used as Synchronous threads also(like in Esterel)?
21:30 -!- hcatlin [~hcatlin@pdpc/supporter/professional/hcatlin] has quit [Quit:
hcatlin]
21:31 < Discoloda> channels are the primary syncing mechanism
21:31 <+iant> there is no way to explicitly say that different goroutines
are synchronous, but you can use channels to effectively make them synchronous
21:32 * Freejack nods
21:32 < Ginto8> Buffered channels allow asynchronous goroutines though
21:33 < Ginto8> so if you want communication asynchronously, buffer your
channels
21:33 < Freejack> I'm thinking in terms of deterministic execution.  State
Machines, Reactive Threads, etc...
21:35 < Ginto8> yeah just use an unbuffered channel and it will wait until
something is sent
21:36 < Freejack> Gotcha.
21:38 -!- Agon-laptop
[~marcel@HSI-KBW-095-208-003-128.hsi5.kabel-badenwuerttemberg.de] has quit [Ping
timeout: 276 seconds]
21:38 < Ginto8> <-ch with a normal channel pretty much just hangs until
something arrives
21:38 < Freejack> Figuring out how to create a tree structure where each
node self sorts, without deadlocking.
21:38 < Ginto8> sounds tough
21:40 < Freejack> Previously I was doing everything Asynchronously.  Seems
like Synchronous execution might be the answer.
21:40 < Ginto8> yeah and you can also set up a "quit" channel (it can be
buffered or unbuffered)
21:40 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Read error: Connection
reset by peer]
21:40 < Ginto8> if it's unbuffered, you'd either do ok := <-quit or have
<-quit in a select statement
21:41 < Freejack> Hrrrmmm..a "quit" channel?  Sort of like a "bit bucket"
for the tree?
21:42 -!- bmizerany [~bmizerany@70-36-146-60.dsl.dynamic.sonic.net] has joined
#go-nuts
21:43 -!- Agon-laptop
[~marcel@HSI-KBW-095-208-003-128.hsi5.kabel-badenwuerttemberg.de] has joined
#go-nuts
21:43 < Ginto8> well if you send something on a certain goroutine's quit
channel, that goroutine will return
21:43 * Freejack nods
21:43 < Freejack> Gotcha.
21:45 -!- terrex [~terrex@69.38.222.87.dynamic.jazztel.es] has quit [Quit:
Leaving.]
21:45 < Ginto8> at least that's idiomatic ;)
21:46 < Freejack> I've got two approaches lined up so far.  The first is
where each node is an active "object" the second where the tree is subdivided into
active subtrees(probably the more conventional approach.).
21:46 < Ginto8> well subtrees spawning sub-goroutines should be ok
21:46 < Ginto8> actually
21:47 < Ginto8> you could have a goroutine spawn a goroutine that spawns
goroutines
21:47 < Ginto8> until everything is automatically sorting
21:47 < Ginto8> though you might want to have it sort on a certain time
period
21:47 < Ginto8> (like using a time.Ticker)
21:48 < Freejack> True.  But were not dealing with infinite resources.
There should be hard limit to how many threads should be active at any one time.
21:48 < Ginto8> well
21:48 < Ginto8> you could pause threads that you don't want running
21:48 * Freejack nods
21:48 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
21:49 < Ginto8> or like you said before, deterministic execution
21:49 < Ginto8> but you could do that based on a certain timeline
21:49 < Freejack> Good point.
21:49 < Ginto8> sort n nodes every x seconds
21:49 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
21:49 -!- MizardX [~MizardX@unaffiliated/mizardx] has quit [Ping timeout: 276
seconds]
21:49 < Ginto8> and time.Tickers are very useful for that
21:50 < Ginto8> For example, I am creating a graphics engine for a video
game, and I want it to render a certain amount of times per second, and no more
21:50 < Ginto8> I use a time.Ticker to keep it limited to that
21:50 < ender2070> Tonnerre - got a nasty email from a mono booster, lol
21:52 < Tonnerre> ender2070, huh?
21:54 < ender2070> he didnt like that i was going to try getting go into
fedora officially
21:54 < Tonnerre> Why not?  Because Mono is so much more lock-in?
21:54 < kmeyer> Anyone taken a look at Tonika yet?
21:54 < ender2070> chasing tailights :)
21:55 < Freejack> Grrr....cant get gccgo to compile.
21:56 < Ginto8> Freejack: just use 8/6g
21:56 < Freejack> Ginto8: I will when it supports shared libs.
21:56 < Ginto8> it has better concurrency, and creates code faster and
nearly as high-quality as gccgo
21:56 < Ginto8> why do you need shared libs?
21:57 <+iant> Freejack: which platform are you building gccgo for?
21:57 < Freejack> Ginto8: So that I'm not statically linking in Xlib.
OpenGL, etc...  and producing 100 megabyte executable.
21:57 < Ginto8> Freejack, any C libraries are dynamically linked via cgo
21:58 < Ginto8> it's just that go code can't be dynamically linked
21:58 < Ginto8> C code can be
21:59 < Ginto8> last time I built my app, which interfaces to SDL,
SDL_image, GL and GLU (not a small size total), it came out to 814 KB
22:00 < sladegen> and what does ldd say?
22:00 -!- cmarcelo [~cmarcelo@enlightenment/developer/cmarcelo] has quit [Remote
host closed the connection]
22:00 < Ginto8> and I also had a good amount of my own code in there, so C
libs don't create a size issue
22:00 < Freejack> Alright.  I'll take a look at it.
22:01 < Ginto8> sladegen: it's only saying that it's linked to the .so
created by cgo
22:01 < Ginto8> but that's because the .so links in the C libs
22:02 < Freejack> Also, am I stuck with the default garbage collector, or
can I turn that off and use Storage Pools instead?
22:02 < sladegen> oook...
22:03 < Freejack> You know, map a fixed size storage pool to ramfs or Posix
shared mem?
22:03 -!- ShadowIce_ [pyoro@unaffiliated/shadowice-x841044] has quit [Quit:
Verlassend]
22:04 < Freejack> No GC involved.
22:04 < sladegen> SOL
22:08 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Ping timeout: 264
seconds]
22:08 < Freejack> This is enough to get me started.  Got the 6g compiler
working fine.
22:08 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
22:08 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
22:08 -!- BrowserUk [~irc1_20_B@2.99.156.48] has joined #go-nuts
22:08 < Freejack> Time to go do some coding.  Laters.
22:08 -!- Freejack [~dimonax@75-48-217-250.lightspeed.gdrpmi.sbcglobal.net] has
quit [Quit: Leaving]
22:08 -!- dju [dju@fsf/member/dju] has quit [Quit: Quitte]
22:08 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
quit [Excess Flood]
22:12 -!- tvw [~tv@e176002184.adsl.alicedsl.de] has quit [Remote host closed the
connection]
22:13 -!- rlab [~Miranda@91.200.158.34] has quit [Read error: Connection reset by
peer]
22:17 -!- surma1 [~surma@brln-4dbc1524.pool.mediaWays.net] has quit [Quit:
Leaving.]
22:21 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
22:22 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has joined #go-nuts
22:22 -!- Agon-laptop
[~marcel@HSI-KBW-095-208-003-128.hsi5.kabel-badenwuerttemberg.de] has quit [Remote
host closed the connection]
22:26 -!- noam [~noam@77.127.205.252] has quit [Read error: Connection reset by
peer]
22:26 -!- noam [~noam@77.127.205.252] has joined #go-nuts
22:33 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
22:34 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
22:35 -!- gzmask [~ray@corwin.cat.uregina.ca] has quit [Quit: gzmask]
22:39 -!- nighty^ [~nighty@x122091.ppp.asahi-net.or.jp] has quit [Quit: Disappears
in a puff of smoke]
22:44 -!- braddunbar [~brad@rrcs-96-10-96-162.se.biz.rr.com] has quit [Ping
timeout: 264 seconds]
22:45 -!- mertimor [~mertimor@p4FE75D45.dip.t-dialin.net] has quit [Quit:
mertimor]
22:46 -!- gospch [~gospch@unaffiliated/gospch] has quit [Ping timeout: 240
seconds]
22:48 -!- Venom_X [~pjacobs@71.20.102.220] has quit [Quit: Venom_X]
22:50 -!- gospch_ [~gospch@unaffiliated/gospch] has joined #go-nuts
22:51 -!- rv2733 [~rv2733@c-98-242-168-49.hsd1.fl.comcast.net] has quit [Quit:
Leaving]
22:52 -!- path[l] [~path@120.138.102.34] has quit [Quit: path[l]]
22:53 -!- jeek [~jeek@pedobear.jeek.net] has joined #go-nuts
22:53 -!- gospch_ [~gospch@unaffiliated/gospch] has quit [Read error: Connection
reset by peer]
22:59 -!- tazjin [~tazjin@p5DC8151F.dip.t-dialin.net] has quit [Read error:
Connection reset by peer]
23:01 -!- gospch [~gospch@unaffiliated/gospch] has joined #go-nuts
23:06 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
23:06 -!- BrowserUk [~irc1_20_B@2.99.156.48] has left #go-nuts []
23:12 -!- qfire [~qfire@2002:425d:ad5:1::3] has joined #go-nuts
23:15 -!- kingfishr [~kingfishr@71-222-226-71.albq.qwest.net] has joined #go-nuts
23:19 -!- narsil [~Narsil@rke75-4-82-234-110-106.fbx.proxad.net] has joined
#go-nuts
23:20 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
23:21 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
23:23 -!- marsu [~marsu@93.15.203.200] has quit [Quit: Leaving]
23:24 -!- Xera^ [~brit@87-194-208-246.bethere.co.uk] has quit [Quit: (
www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )]
23:27 -!- iant [~iant@nat/google/x-dfmqrpooegxxkwjg] has quit [Ping timeout: 276
seconds]
23:38 < plexdev> http://is.gd/cfgQ2 by [Kyle Consalus] in
go/src/pkg/strconv/ -- Trivial optimization.
23:38 < plexdev> http://is.gd/cfgQ8 by [Robert Griesemer] in go/src/pkg/big/
-- big: bug fix for division
23:39 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
23:40 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
23:40 -!- perdix [~perdix@sxemacs/devel/perdix] has quit [Quit: A cow.  A
trampoline.  Together they fight crime!]
23:41 -!- braddunbar [~brad@rrcs-24-172-225-206.midsouth.biz.rr.com] has joined
#go-nuts
23:43 -!- mxweas [~max@client-235-129.events.shownets.net] has joined #go-nuts
23:44 < mxweas> anyone in here at I/O right now?
23:44 < mxweas> just saw this channel in his presentation lol
23:44 < jesusaurus> I/O?
23:44 < mxweas> Google I/O
23:45 < mxweas> Google developer conference in San Francisco
23:45 < jesusaurus> ah, cool, I wish I was there...
23:46 < Tonnerre> I'm not there :/
23:46 < Ginto8> I wish I was there too...
23:46 < Ginto8> I presume you are?
23:46 * mxweas feels like a buzz kill now :P
23:46 < mxweas> yeah
23:46 < mxweas> They're having preliminary presentations introducing new
things
23:47 < mxweas> I didnt get a pass, snuck into the Go programming language
session
23:47 < mxweas> looks cool.
23:47 < Namegduf> XD
23:47 < mxweas> Like a python version of c, with some functional programming
language concepts thrown in
23:47 < mxweas> c++ *
23:47 < Namegduf> You should go back to watching the presentation
23:47 < Ginto8> yep
23:47 < Ginto8> well more like C
23:47 < jesusaurus> its more like c than c++
23:47 < Ginto8> with methods
23:48 < Namegduf> It's not really got any C++ in it
23:48 < Tonnerre> "C with classes" :D
23:48 < mxweas> :P
23:48 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has quit [Read
error: Connection reset by peer]
23:48 < mxweas> Objective-C then?
23:48 < mxweas> lol
23:48 < Tonnerre> mxweas, nah
23:48 < Namegduf> No, Go does not have classes
23:48 < Ginto8> no it's C with better structs
23:48 < mxweas> with methods and instance variables split up
23:48 < mxweas> yeah
23:48 < Tonnerre> C with Classes was the old working name for C++
23:48 -!- Abablaba1 [~Boggy-B|H@93-96-78-46.zone4.bethere.co.uk] has left #go-nuts
[]
23:48 < Namegduf> It isn't OO-orientated or objective at all.  :P
23:48 < mxweas> yeah
23:48 < mxweas> it looks like you define structs, then functions that are
typed to the structs
23:48 -!- vsayer [~vivek@c-76-103-244-154.hsd1.ca.comcast.net] has joined #go-nuts
23:49 < Ginto8> Namegduf: not in the traditional sense, but you can simulate
a sorta-inheritance =P
23:49 < jesusaurus> well whats the difference between structs with methods
and classes?
23:49 < Namegduf> Ginto8: Not at all
23:49 < Ginto8> unnamed member vars
23:49 < mxweas> and then providing interfaces for functions that are
accessed the same yet have different implementations
23:49 < Namegduf> Ginto8: It isn't OO because it isn't designed for OO
design methods
23:49 < Ginto8> well yes
23:49 < mxweas> I like the concurrency stuff
23:50 < Ginto8> but it can do a number of things with similar functionality
23:50 < mxweas> that and some of the syntax / typing is what made me think
of haskell
23:50 < Ginto8> but the "OO design methods" mainly exist because of the
current languages that implement OO
23:50 -!- Abalabab [~Boggy-B|H@93-96-78-46.zone4.bethere.co.uk] has joined
#go-nuts
23:50 < Ginto8> Go could be seen simply as a very new look at how OO should
work
23:51 < mxweas> Anything I should ask the Go presenter?
23:51 -!- iant [~iant@67.218.110.158] has joined #go-nuts
23:51 -!- mode/#go-nuts [+v iant] by ChanServ
23:51 < jesusaurus> i think its the concept of channels that make go so
useful
23:51 < Ginto8> the concurrency is a major up-side
23:51 < mxweas> he covered that
23:52 < Namegduf> Ginto8: You could view it, also, as a bowl of fruit
23:52 < Ginto8> Namegduf, you have a point, but you'd have to be crazy
23:52 -!- Abalabab [~Boggy-B|H@93-96-78-46.zone4.bethere.co.uk] has left #go-nuts
[]
23:52 -!- mxweas [~max@client-235-129.events.shownets.net] has quit [Quit: Mac has
gone to sleep]
23:53 < Ginto8> I think our problem is asynchronous definitions of OO
23:53 < Namegduf> You mean "different" definitions
23:53 < Namegduf> asynchronous does not mean desynchronised
23:54 < Ginto8> damn my concurrency pun failed
23:54 < Namegduf> XD
23:54 < Ginto8> w/e
23:54 < Ginto8> we just have a little data corruption in the shared memory
23:55 -!- Abalabab [~Boggy-B|H@93-96-78-46.zone4.bethere.co.uk] has joined
#go-nuts
23:55 < Abalabab> Can i talk now?
23:55 < Abalabab> yey
23:55 < Abalabab> i got banned, or something?
23:55 < Namegduf> You can't speak if you are not logged into a registered
account.
23:55 < Abalabab> oh right
23:55 < Abalabab> sorry
23:56 < Abalabab> I was gonna say, i wish i were at google I/O, but i have
exams tomorrow, heh
23:56 < xorl> :)
23:57 < Abalabab> yet im programing and playing Reach, whoops :D
--- Log closed Wed May 19 00:00:58 2010