Stream: general

Topic: multhi thread gc


view this post on Zulip Diego Antonio Rosario Palomino (Nov 05 2024 at 13:22):

Does wasmtime plan to support multhi threading with wasm gc in the near future? I gather such a feature hasnt been standarized yet, but i would be willing to use it even if its an experimental wasmtime only implementation.

If that is not the case, could the gc used by this project support multhi threading at the cranelift level?
As i said, i am working on a whole program optimizer for functional language compilers ( such as idris2 or haskell GHC ) and i would like to to target cranelift

view this post on Zulip David Lloyd (Nov 05 2024 at 13:28):

is there even a proposed spec update covering interaction between gc and threads? e.g. atomics for gc object field access etc.?

view this post on Zulip Diego Antonio Rosario Palomino (Nov 05 2024 at 13:52):

not sure, if there is, it must be brand new

view this post on Zulip Alex Crichton (Nov 05 2024 at 15:21):

Wasmtime doesn't currently implement shared-everything-threads for gc at this time, no, and I don't believe we have folks lined up to implement it yet

view this post on Zulip Diego Antonio Rosario Palomino (Nov 05 2024 at 16:08):

does any wasm runtime have any sort of paralelism with gc ?

view this post on Zulip David Lloyd (Nov 05 2024 at 16:32):

I was working on a rough prototype of doing it with a WASM-on-JVM runtime

view this post on Zulip David Lloyd (Nov 05 2024 at 16:33):

the JVM has very advanced GC capabilities, and it's pretty easy to wire it up for WASM GC

view this post on Zulip David Lloyd (Nov 05 2024 at 16:33):

atomicity seems doable, but my thought was to do it via a function API instead of instructions until/unless some spec comes along

view this post on Zulip Diego Antonio Rosario Palomino (Nov 05 2024 at 16:49):

Would th jvm impose any performance contraints for my project?
What implementation do you wish to use?

view this post on Zulip David Lloyd (Nov 05 2024 at 17:02):

it's still early stages, but I think it should perform well

view this post on Zulip Diego Antonio Rosario Palomino (Nov 06 2024 at 00:03):

What do you mean do it by a function api instead of instructions?

view this post on Zulip Diego Antonio Rosario Palomino (Nov 08 2024 at 19:55):

@David Lloyd please could You explain your project further


Last updated: Dec 23 2024 at 12:05 UTC