hsbt_away changed the topic of #ruby-core to: check the latest release candidate for 1.9.1 release ftp.ruby-lang.org:/home/yugui/ruby-1.9.1-r26021+1.tar.bz2
idkazuma has joined #ruby-core
idkazuma has quit [Remote host closed the connection]
nagachika has quit [Remote host closed the connection]
nagachika has joined #ruby-core
nagachika has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
hsbt has quit [Ping timeout: 256 seconds]
headius has quit [Quit: headius]
hsbt has joined #ruby-core
headius has joined #ruby-core
headius has quit [Client Quit]
hsbt is now known as hsbt_away
headius has joined #ruby-core
hsbt_away is now known as hsbt
headius has quit [Client Quit]
ZachBeta has quit [Quit: Computer has gone to sleep.]
nghialv2607 has quit [Remote host closed the connection]
ZachBeta has joined #ruby-core
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<tmahoney>
If I define a class using rb_define_class, should I need to register the variable with the GC using rb_gc_register_address? Or will classes not get garbage collected?
kosaki2 has joined #ruby-core
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
hsbt has quit [Ping timeout: 256 seconds]
kosaki2 has quit [Remote host closed the connection]
kosaki2 has joined #ruby-core
hsbt has joined #ruby-core
ZachBeta has quit [Quit: Computer has gone to sleep.]
marcandre has quit [Remote host closed the connection]
knu has quit [*.net *.split]
hsbt has quit [Ping timeout: 264 seconds]
knu has joined #ruby-core
hsbt has joined #ruby-core
hsbt has quit [Ping timeout: 256 seconds]
hsbt has joined #ruby-core
kosaki2 has joined #ruby-core
headius has quit [Quit: headius]
hsbt has quit [Ping timeout: 246 seconds]
hsbt has joined #ruby-core
headius has joined #ruby-core
hsbt has quit [Ping timeout: 256 seconds]
johnnymuggs has joined #ruby-core
hsbt has joined #ruby-core
<drbrain>
tmahoney: rb_define_class registers the address with the GC
<drbrain>
tmahoney: to allow it to be garbage collected use remove_const
<tmahoney>
drbrain: Thanks. I see that it's added to the class table, which is marked before GC.
<tmahoney>
I found the problem I was having (one of them, at least).
<drbrain>
\o/
<tmahoney>
Haha yeah.
<tmahoney>
I just need to be really careful to register everything.
ZachBeta has quit [Quit: Computer has gone to sleep.]
<drbrain>
I had a similar moment of \o/ yesterday working on my libpcap wrapper
adamjleonard has joined #ruby-core
<drbrain>
linux's malloc was complaining about a double-free in fclose() because both ruby and libpcap were calling it, but I fixed it by calling fdopen on a separate fd for pcap to have all to itself
<drbrain>
I suppose BSD and OS X fclose() ignores being called twice on the same stream
<tmahoney>
Ah the wonders of everything complex.
<tmahoney>
Doing anything cool with pcap?
<drbrain>
I wrote drbdump with it so I can watch druby messages fly around the network
blazes816 has joined #ruby-core
blazes816 has quit [Remote host closed the connection]
<tmahoney>
Crazy, I didn't even know something like DRb existed.
<tmahoney>
So you're watching all the inter-process calls?
<drbrain>
yes
<drbrain>
I found a minor bug in the protocol, even!
tylersmith has joined #ruby-core
<drbrain>
when a connection closes the other end tries to send back a connection closed exception
<drbrain>
the result is three harmless packets followed by three harmless RST replies
ZachBeta has joined #ruby-core
Z_Mass has joined #ruby-core
tylersmith has quit [Client Quit]
<tmahoney>
Well, at least they're harmless!
tylersmith has joined #ruby-core
hsbt has quit [Ping timeout: 264 seconds]
<shevy>
evil traffic hogs!
adamjleonard has quit [Read error: Connection reset by peer]
adamjleonard has joined #ruby-core
adamjleonard has quit [Read error: Connection reset by peer]
adamjleonard has joined #ruby-core
hsbt has joined #ruby-core
headius has quit [Quit: headius]
hsbt has quit [Ping timeout: 264 seconds]
hsbt has joined #ruby-core
judofyr has quit [Remote host closed the connection]
adamjleonard has quit [Read error: Connection reset by peer]
adamjleonard has joined #ruby-core
hsbt has quit [Ping timeout: 260 seconds]
hsbt has joined #ruby-core
johnnymuggs is now known as johnnymugs-afk
hsbt has quit [Ping timeout: 252 seconds]
hsbt has joined #ruby-core
marcandre has joined #ruby-core
hsbt has quit [Ping timeout: 255 seconds]
hsbt has joined #ruby-core
tmahoney has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
ZachBeta has joined #ruby-core
adamjleonard has quit [Quit: Leaving...]
ZachBeta has quit [Quit: Computer has gone to sleep.]
enebo has quit [Quit: enebo]
idkazuma has joined #ruby-core
nari_ has joined #ruby-core
idkazuma has quit [Remote host closed the connection]