Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Consider supporting WebAssembly in Shared Storage worklets more robustly #153

Open

Description

@pythagoraskitty

Currently, shared storage worklets support use of WebAssembly if the WASM bytes are passed in e.g. as an Uint8Array member of the data object in a worklet operation, of if they are hard-coded inside the worklet operation's definition. Fetching the bytes cannot take place within the worklet, nor can importing any files.

Similarly, any accompanying JavaScript glue code needed to run the WASM cannot be imported into the shared storage module in a traditional sense and so must either be written in the shared storage module itself or else passed in as a string member of the data object in a worklet operation, then evaluated inside the operation.

We understand that the current support for WebAssembly in Shared Storage may not be ideal, and would like to know if there would be interest in us implementing a more robust solution.

For instance, Protected Audience allows developers to provide a biddingWasmHelperURL pointing to a WebAssembly binary, and the browser takes care of the fetch and instantiation of a WebAssembly.Module that it then makes available to the bidding worklet's JavaScript.

Please let us know what you think. Thank you.

Activity

  1. dmdabbs commented on Jul 11, 2024

    @dmdabbs

    Passing bytes &c as described is awkward. This would be a useful improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions