@evanphx @yukihiro_matz @headius I strongly agree! However the problem is legacy code which uses thread locals, e.g. ActiveRecord
-
-
Replying to @bascule
@bascule@yukihiro_matz@headius Is it because Thread#[] respects Fibers?1 reply 0 retweets 0 likes -
Replying to @evanphx
@evanphx@yukihiro_matz@headius it's one reason yes. I'd like for thread locals to be "actor locals" inside actors1 reply 0 retweets 0 likes -
Replying to @bascule
@bascule@yukihiro_matz@headius So add Actor#[]. I am sad there is no way to access the non-Fiber aware locals.1 reply 0 retweets 0 likes -
Replying to @evanphx
@evanphx@yukihiro_matz@headius how do I deal with e.g. ActiveRecord that already uses Thread#[]?1 reply 0 retweets 0 likes -
Replying to @bascule
@bascule@yukihiro_matz@headius I'd rather you monkey patch AR.2 replies 0 retweets 0 likes -
Replying to @evanphx
@evanphx@yukihiro_matz@headius well, I've at least been talking to@tenderlove about fixing AR so it doesn't need thread locals1 reply 0 retweets 0 likes -
Replying to @bascule
@bascule@headius@evanphx@yukihiro_matz not sure we can ever get completely away from thread locals. e.g. http://thierryroussel.free.fr/java/books/martinfowler/www.martinfowler.com/isa/registry.html …2 replies 0 retweets 1 like -
Replying to @tenderlove
@tenderlove@headius@evanphx@yukihiro_matz why can't you check out and return connections on demand from a connection manager singleton?1 reply 0 retweets 0 likes -
Replying to @bascule
@bascule@headius@evanphx@yukihiro_matz and look up by current thread object id?3 replies 0 retweets 0 likes
@tenderlove @headius @evanphx @yukihiro_matz that would obviate the need for any thread-based lookup, but might be too slow?
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.