On l�rdag, feb 22, 2003, at 03:25 Europe/Stockholm, Jim Bodwin wrote:
I would be happy to discuss how ithreads can be extended the need of 5.005 users, I think retrofitting the old 5.005 code is possible, but if you want to use the new features, it would require a lot of work. Way more work than it took to get ithreads working.
I've yet to see any new features of ithreads that are superior to 5.005 threads (well, except for the big one that ithreads actually work in a true MP environment). On the flip side, there are many restrictions that limit ithreads (just scan for things in util.c that start with a comment "Only the parent interpretor can.....".).
I will respond more in depth later, but I didn't mean new features of ithreads, I meant new features of perl after 5.005, none of the unicode code for example, are 5005threadsafe, otoh that doesn't matter since you aren't really using them as threads, more like coroutines that run at different times with their own stack.
Implementing a shared all, one thread runs at the time ought to be fairly trivial in the ithreads case.
Arthur
