News for hackers. Stuff that matters.
Re:Making WebAssembly a first-class language on the Web by thezipcreator on Thursday March 12, 2026 @12:56AM (#47346639)
webassembly components use a borrow checking model[1], so I assume that would be used to manage DOM components?

I'm not exactly sure how this works when binding it to GC languages.

[1] https://component-model.bytecodealliance.org/design/wit.html...

Re:Making WebAssembly a first-class language on the Web by pjmlp on Thursday March 12, 2026 @04:21AM (#47347911)
Proving the point of how it is dominated by Rust folks.

Maybe they should have spent some time wondering how previous component models work, e.g. COM, CORBA, RMI, .NET Remoting,....

Re:Making WebAssembly a first-class language on the Web by davexunit on Thursday March 12, 2026 @07:25AM (#47349169)
This is my main confusion, too! I have an existing Wasm GC language implementation and I'm not sure how to reconcile it with the component model.
Re:Making WebAssembly a first-class language on the Web by thezipcreator on Thursday March 12, 2026 @03:08PM (#47355628)
I would think you could treat it as a normal GC reference and then just drop the resource when the GC collects the object.