[#70843] Re: [ruby-cvs:58952] hsbt:r51801 (trunk): * lib/rubygems: Update to RubyGems HEAD(fe61e4c112). — Eric Wong <normalperson@...>
hsbt@ruby-lang.org wrote:
3 messages
2015/09/17
[ruby-core:70896] Re: [Ruby trunk - Feature #11539] [Open] Support explicit declaration of volatile instance variables
From:
Eric Wong <normalperson@...>
Date:
2015-09-24 02:27:22 UTC
List:
ruby-core #70896
What about the case where you have two distinct classes of threads: 1) needs up-to-date data 2) tolerates stale data, just wants to read as fast as possible without blocking itself or other readers/writers ? I consider supporting 2) important for scalability. I'd rather have specialized methods for this: atomic_set, atomic_read, etc... But on the other hand, maybe an ultra-high-level language like Ruby shouldn't rely on a shared memory model at all and favor message-passing for safety instead.