Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Web Workers Library #6260

Open
alexgleason opened this issue Dec 12, 2024 · 0 comments
Open

Request: Web Workers Library #6260

alexgleason opened this issue Dec 12, 2024 · 0 comments

Comments

@alexgleason
Copy link

Is your feature request related to a problem? Please describe.

Web Workers are the main way to do parallel computing in Deno, but the API is very low-level. Libraries like Comlink exist, which I have been using in basically all my Deno projects, but I think an official solution from Deno would go a long way.

Describe the solution you'd like

I like @negrel's solution of first creating an RPC layer to handle the request-response pattern, and then building other stuff on top of that. If even just the RPC layer were added to std, it would be a good first step towards building a highly flexible system for dealing with web workers. It's still pretty low-level, but not so low-level that you need to build the RPC from scratch every time you want to use workers.

Describe alternatives you've considered

If left up to the community, I think people will just continue to complain forever that JavaScript is bad at parallelization. Which is true, but a lot can be done still to improve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant