domenica 5 dicembre 2010

Yield or not to yield

One of the features of JavaScript 1.7, without a doubt the most interesting, is the introduction of the generators. As generators of the Python language, with version 1.7, introduces the javascript keyword "yield" and methods "next ()" and "send ()" just like in Python!   
If you want to see the documentation about Python generators here is a link 
Now, with such an instrument to create dynamic loops and iterators, you might well think about creating a javascript library to implement multi-threading ...Said and done! Neil Mix has already designed and created the script to do this!Unfortunately, the javascript version 1.7 is only supported by Mozilla Firefox, no other browser is currently available for this release. Then inspiration strikes, I decided to make this cross-browser, and ta-dan! the multi-threading is now available on all platforms.In a few days (time for some changes) will be the first release of the multi-threading library that compose the framework, fujon goes on!Stay tuned!

Nessun commento:

Posta un commento