Skip to content

Conversation

@AriPerkkio
Copy link
Member

@AriPerkkio AriPerkkio commented Jun 23, 2024

Refactors internal runtime APIs. Preparation for making runtime APIs public for custom runtimes, e.g. Vitest browser mode runtime.

Codebase of piscina is really complex. 😢

@Aslemammad
Copy link
Member

excited for this one, it means tinypool browser support soon?

@AriPerkkio
Copy link
Member Author

AriPerkkio commented Jun 24, 2024

This (and the next PR that actually opens custom runtime API) does expand Tinypool's usage to such use cases. But for Vitest browser mode, @sheremet-va has a bit different idea. Tinypool would be used as orchestrator, and Vitest itself would provide the runtime layer that would use web sockets to communicate with browser entrypoint.

These changes also make it possible to add generic browser support into Tinypool. Pool itself has to run on Node though.

Copy link
Member Author

@AriPerkkio AriPerkkio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not planned.

@AriPerkkio AriPerkkio closed this Dec 5, 2025
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

Successfully merging this pull request may close these issues.

2 participants