tag:blogger.com,1999:blog-2707273230216261185.post8989137065448224325..comments2015-05-10T16:06:00.705-07:00Comments on pythonjs: automatic synchronous to async transformraptorhttp://www.blogger.com/profile/14287416587600419675noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-2707273230216261185.post-40815567667556197032014-06-08T00:54:52.005-07:002014-06-08T00:54:52.005-07:00I just read other articles from you and just saw t...I just read other articles from you and just saw that you're working on a webgl game using PythonJS. This is cool ! in fact I have a bigger interest in that subject than web development (even tough I still have to learn webgl). In this context I fully understand the necessity of webworkers !AMIGrAvehttps://www.blogger.com/profile/14242800953356521721noreply@blogger.comtag:blogger.com,1999:blog-2707273230216261185.post-67693601434846867352014-06-07T17:43:51.401-07:002014-06-07T17:43:51.401-07:00Your correct, Webworkers are not the best general ...Your correct, Webworkers are not the best general solution, it was just my starting point for this research. I am adapting the translator now to work with xmlhttprequests and rpc logic so that a webworker is not required.raptorhttps://www.blogger.com/profile/14287416587600419675noreply@blogger.comtag:blogger.com,1999:blog-2707273230216261185.post-58524218332402883212014-06-07T14:15:09.571-07:002014-06-07T14:15:09.571-07:00Interesting !
Great to see, that running a webwork...Interesting !<br />Great to see, that running a webworker task is as simple as this using PythonJS.<br />I'm also glad to see that you're working on a way to transpile PythonJS sync-like code to asynchronous javascript.<br /><br />That said, I'm not sure that using webworkers is a good idea to tackle the async problem. If I'm referring to client side development the most used async concept are xmlhttprequests for rpc to backend and settimeout for animations. Starting a web worker each time for an rpc call or an animation seems a bit heavy, and I can imagine the overhead of serialisation/deserialisation that would occur each time the webworker has to send the rpc response back as a message to the main thread.AMIGrAvehttps://www.blogger.com/profile/14242800953356521721noreply@blogger.com