As many of you who may know me are already aware, I have been working on a cooperative multitasking library. I hope to have the code posted on this site within the week. The basic idea about the library is that it allows a user to be able develop threadlets. A threadlet is a small python function that has been written as a generator. There is a scheduler object that goes though the different threadlets and runs them one at a time. The reason I decided to employ this technique is because of the simplicity of writing the threadlets. Now, this library isn’t really geared towards someone that needs a lot of complex code in a threadlet, that would probably best be served by using Python’s built in library. However, this has the potential to be very useful for highly concurrent applications. To that end, the scheduler has a pluggable communication interface. This allows the programmer to select the method of communication for his application that best supports the function of his program. I hope to release some code samples with the library, as well as developing a few full applications that use this library.
Some benifits of this library:
- Small size
- Threadlets are ≈ 1.5KB
- Pluggable communication between the threadlets
- Written in Python 3
Stay tune as more information is available.
-Mike