in reply to Re^3: what the history behind perl not having "real" threads
in thread what the history behind perl not having "real" threads
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: what the history behind perl not having "real" threads
by dave_the_m (Monsignor) on Feb 26, 2013 at 22:17 UTC | |
by perl-diddler (Chaplain) on Feb 27, 2013 at 20:54 UTC | |
by BrowserUk (Patriarch) on Feb 28, 2013 at 00:50 UTC |