|
|
| Just another Perl shrine | |
| PerlMonks |
Re^4: what the history behind perl not having "real" threadsby perl-diddler (Friar) |
| on Feb 26, 2013 at 15:57 UTC ( #1020714=note: print w/ replies, xml ) | Need Help?? |
|
Dave m wrote: There's nothing in the language that precludes a 5.0005-style threading implementation. So that print "$x", currently does modify $x to be a string, that might safely be called an implementation detail that wouldn't need to be kept for compatibility reasons. I think it's a shame that they gave up on the 5.0005 style threading. The linux kernel didn't become SMP safe or capable overnight. It started out with no SMP, and for a long time, lived with the 'big lock model', where user-land code could be multi-threaded, but by-and-large, the kernel was not. Going from 2.0->2.2-2.4 were long steps...and it took alot of developer education to go from 1 big lock to many smaller locks, and in many cases, non-locking models to reduce bus contention and going higher ordered algorithms to ones that approach O(1). As near as I can tell, it's an ongoing process. Certainly a redesign of the language could make the process easier, but I have no idea if there was a brick wall, or if some people were too risk aversive to live with something that was in constant evolution. From an end user-perspective, I never heard about user-level programs needing complete rewrites due to language changes, but at the driver level things were less stable -- not exactly chaotic, but certainly requiring ongoing work.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||