29 Jan '13, 10pm

"Ruby Arrays aren't thread-safe, [...] MRI's threading implementation accidentally makes them thread-safe."

Just Another Victim of the Ambient Morality wrote: > Are all built-in objects thread safe? For example, if I have an array > and one thread is constant appending to it while another thread is shifting > elements off of it and there's no synchronization going on, can the array > object ever get corrupted? What about a similar scenario for hashes? These > are surely complicated objects with internal state that must be maintained. > Are they implemented to be thread safe? This is a *very* interesting question! And it is a question that can ultimately *only* be answered by a formal Ruby Specification or more specifically a formal Ruby Memory Model. Until we have such a specification, the C source code of MRI or YARV is considered to be the "specfication". However, there is a problem: that source code can actually be interpreted several different ways. If you look at the implem...

Full article: http://www.ruby-forum.com/topic/174086

Tweets

Ask LH: How Does Bitcoin Work And Is It Safe?

Ask LH: How Does Bitcoin Work And Is It Safe?

lifehacker.com.au 30 Jan '13, 2am

Dear Lifehacker, I have seen Bitcoin as a payment option on some websites recently. Can you please explain exactly what it...

We should never take our safe Singapore for granted. ;) love this show. #ahboystomen2 #movie #singapore…

We should never take our safe Singapore for gra...

instagram.com 04 Feb '13, 8am

We should never take our safe Singapore for granted. ;) love this show. #ahboystomen2 #movie #singapore #proudtobesingaporean

#OnThisDay in tech history, ‘Linux is obsolete’ thread is started, pitting Torvalds' Linux against Tanenbaum's Minix

#OnThisDay in tech history, ‘Linux is obsolete’...

edn.com 29 Jan '13, 3pm

When Minix creator Andy Tanenbaum posted the infamous “Linux is obsolete” thread on comp.os.minix on January 29, 1992, it ...

Over 50: That Is Where The Money Is - Another h...

cre8asiteforums.com 02 Feb '13, 7pm

Posted 31 January 2013 - 01:57 PM Of course, what I call the grandparent line, 40 to 50, is where the real 'jump' in discr...

Some Versions of Ruby on Rails Vulnerable to Ne...

threatpost.com 29 Jan '13, 6pm

A vulnerability exists in Ruby on Rails’ JavaScript Object Notation (JSON) code that could open the Web framework up to a ...

【初心者向け】Mac OSX10.8(Mountain Lion)で Ruby on Rail...

pplog.org 03 Feb '13, 5am

you have done something wrong. No, the computer is not wrong.