Philipp Kunz

Results 25 comments of Philipp Kunz

How about then allowing expressing functions as string? It would leave up serialization to the user and even would allow fetching code to execute from remote sources in a very...

The more I think about this, it would actually be dope to have a static Worker.createFromFunctionString method available. I imagine doing all sorts of dynamic things with async database FaaS...

But then again I feel like threads has a really specific usecase: **Enabling crossplatform multithreading**, which is basically covered feature complete by what is implemented as of now imho.

I find it kind of ununsual to not call Callback with new, since you are constructing something here.

So does that mean `await worker("http://fetch.this/then/filter", () => { console.log('hey there') })` would also work? Or why not use a spiced up Object called a class instead of a Function...

I just feel capitalizing anything else than a class or maybe an interface is something I'd stumble over.

Also I assume Callback is not stringified for the worker since its executed on the mainthread? or did I get something wrong here?

@brandonros That actually makes a lot of sense!

This issue is now being addressed here: https://github.com/microsoft/monaco-editor/issues/3017 You should change the implementation here to use shadow dom as well, when the above issue is fixed.

Hi, I made a really simple package running puppeteer with the required settings in regards to the environment: https://gitlab.com/pushrocks/smartpuppeteer It also works in wsl 1.