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

Compiling to WebAssembly #69

Closed
erlend-sh opened this issue May 23, 2023 · 4 comments
Closed

Compiling to WebAssembly #69

erlend-sh opened this issue May 23, 2023 · 4 comments

Comments

@erlend-sh
Copy link

Is WASM-support within the longer term scope of this project?

It would make piccolo usable by WASM-scriptable game platforms such as Ambient and Gamercade.

https://github.com/WebAssembly/gc/blob/main/proposals/gc/MVP.md
https://github.com/dart-lang/sdk/blob/main/pkg/dart2wasm/README.md

@kyren
Copy link
Owner

kyren commented May 23, 2023

Yes, in fact I'm about to integrate this (vicariously through another project) into something with a working wasm build.

I haven't even gotten to the point of trying it yet, but I would be surprised if it didn't work as is?

@kyren
Copy link
Owner

kyren commented May 23, 2023

Oh.... also I'm very very stupid, this is already used by Ruffle which specifically targets wasm. It definitely already works in wasm, I can't even begin to figure out why that wasn't the first thing out of my mouth.

@dragazo
Copy link
Contributor

dragazo commented Jun 2, 2023

Yeah, I've definitely used this in a wasm project before, but that was an older version (the crates.io published version). I think the only change that might be good is adding wasm as a CI target to make sure it never breaks wasm support. Granted, no_std is a pretty strong indicator of wasm support as far as I've seen, and that's already tested in CI.

@kyren
Copy link
Owner

kyren commented Jan 13, 2024

Closing, since this has been supported since forever.

@kyren kyren closed this as completed Jan 13, 2024
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

3 participants