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

Implement the Wasm gc proposal #775

Open
Robbepop opened this issue Oct 14, 2023 · 6 comments
Open

Implement the Wasm gc proposal #775

Robbepop opened this issue Oct 14, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@Robbepop
Copy link
Member

This is about adding support for the gc (garbage collection) Wasm proposal.

The gc Wasm proposal has been recently moved to Phase 4 and thus stabilization can be expected to happen soon.

Having gc support in wasmi will be an enabler for use cases and languages that rely on the garbage collection such as Python, Java, Ruby, Javascript etc.

@Robbepop Robbepop added the enhancement New feature or request label Oct 18, 2023
@frankkienl
Copy link

Any progress on GC?
It's needed for running Kotlin.
(and probaly some other languages as well)
Thanks!

@Robbepop
Copy link
Member Author

Robbepop commented Oct 4, 2024

Hi @frankkienl , there are some blockers before we can start implementing the Wasm GC proposal. However, it is planned to be implemented sometime in the future eventually. Though, it is a rather large proposal, so will still take some time until we are there.

May I ask what you need to use it for exactly with Wasmi?

@orsinium
Copy link
Contributor

orsinium commented Oct 4, 2024

Frank is one of our early adopters of Firefly Zero. We're looking into supporting some scripting languages. Some, like Python and JS, have self-contained interpreters written in C that we can run. But quite a few, like JVM languages or C#, rely on WasmGC.

@Robbepop
Copy link
Member Author

Robbepop commented Oct 4, 2024

Thanks for the info, that's good to know. I wasn't aware that there is such a big interest in Wasm GC for Wasm interpreters such as Wasmi. The Wasm gc proposal will eventually be supported by Wasmi.

@Robbepop
Copy link
Member Author

Robbepop commented Oct 4, 2024

What needs to be done before we can start implementing the Wasm gc proposal for Wasmi:

@orsinium For Firefly-Zero, I think the new Wasm custom-page-sizes proposal might be of interest to you: #1197

@orsinium
Copy link
Contributor

orsinium commented Oct 4, 2024

I think the new Wasm custom-page-sizes proposal might be of interest to you

It might! We're keeping an eye on it at tinygo team. I had to hack around page sizes for mechanoid and gamgee. Luckily, Firefly Zero is not that constrained, we can fit 64 Kb pages without much problems.

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

No branches or pull requests

3 participants