News for hackers. Stuff that matters.
Re:Ruby 2.2.0 Released by current_call on Thursday December 25, 2014 @06:40AM (#8796062)
It's a bit weird that symbols are garbage collected. I wouldn't think it could delete them without making the same symbols unequal some of the time.
Re:Ruby 2.2.0 Released by Argorak on Thursday December 25, 2014 @07:05AM (#8796086)
They are only garbage collected if they were introduced at runtime and there is no reference to them anymore. (detailed explanations can be found in the presentation linked in the announcement)

This allows you to symbolize external hash keys without fear of a DOS attack.

Re:Ruby 2.2.0 Released by al2o3cr on Thursday December 25, 2014 @11:51AM (#8796586)
They're only going to get GCed if there aren't any references to them (like everything else) - so the comparison you're talking about is impossible. If you can still compare the symbol to something, it hasn't been GCed...