Greenlet – Move an async function into its own thread in the browser
1–10 of 46 posts
Re: Greenlet – Move an async function into its own thread in the browser
#2Re: Greenlet – Move an async function into its own thread in the browser
#3greenlet is a bit like "workerize-lite" in the sense that it allows you to move individual functions to their own thread.
Also relevant: a discussion with Jason yesterday about when it's worth moving functions to a web worker: https://twitter.com/mxstbr/status/957312201987063808
Re: Greenlet – Move an async function into its own thread in the browser
#4Worth mentioning: workerize[0], which Jason released a couple weeks ago, allows you to move entire modules to a web worker. greenlet is a bit like "workerize-lite" in the sense that it allows you to move individual functions to their own thread. Also relevant: a discussion with Jason yesterday about when it's worth moving functions to a web worker: https://twitter.com/mxstbr/status/957312201987063808 https://github.c…
Does anyone know of write-ups documenting performance of the various methods of pushing data to and from WW across different browsers?
Re: Greenlet – Move an async function into its own thread in the browser
#5> The name is somewhat of a poor choice, but it was available on npm.
npm has supported scoped packages [0] for years now, and it's a fantastic solution to this problem, as well as solving many others (like typosquatting in many cases).
I know this package is already named, but I really urge people to use scoped packages more.
Re: Greenlet – Move an async function into its own thread in the browser
#6https://github.com/developit/greenlet/blob/master/greenlet.j...
Re: Greenlet – Move an async function into its own thread in the browser
#7The code could use some work. I have no idea what's going on L18. https://github.com/developit/greenlet/blob/master/greenlet.j...
Re: Greenlet – Move an async function into its own thread in the browser
#8The code could use some work. I have no idea what's going on L18. https://github.com/developit/greenlet/blob/master/greenlet.j...
Re: Greenlet – Move an async function into its own thread in the browser
#9Re: Greenlet – Move an async function into its own thread in the browser
#10JS, browser only (uses Web Worker).