What does HackerNews think of component-model?

Repository for design and specification of the Component Model

Language: Python

The Web Assembly Component Model (1) can't land soon enough.

(1) https://github.com/WebAssembly/component-model

This depends chiefly on the component-model work shipping. https://github.com/WebAssembly/component-model

At the heart is an longstanding wasm "interface types" idea (WIT), defined by a IDL, https://github.com/WebAssembly/component-model/blob/main/des...

Once we know how bits of wasm talk to each other we can have browsers expose web platform "host objects" via this standard inter-module means.

While an interesting topic to most app developers, this is pretty off-topic for language nerds. It will greatly level implementations when it becomes available, as opposed to those willing to pour in enormous effort writing their own serializing bridges... but it doesnt really alter what the language can do and how it will work in wasm. This talk is, to me, more about languages. WIT & host objects will be an enormous boom but they overall won't much affect language design.

They were standardizing a subset of POSIX, until they found out why POSIX is mostly legacy nowadays.

So, now the effort is being rebooted with WASM Components.

https://github.com/WebAssembly/component-model

Check out the component model proposal, which adds a stable ABI for rich types like strings, arrays, structs, etc.

https://github.com/WebAssembly/component-model

> or a better arbitrary runtime like WASM

> It's the component and security model itself.

WASI and the WASM component model proposal [1] are moving to a capability based system (enabled by unforgeable references aka `reftype`) and to isolation between different parts of your code, which would make isolating and restricting dependencies really easy.

Combined with interface types (essentially a universal cross-language ABI) the ecosystem has the building blocks for building very secure systems.

Sadly progress has been very slow, with no end in sight, but I remain hopeful.

[1] https://github.com/WebAssembly/component-model

The component model [1] with interface types will enable nicer tooling for things like linking and combining different languages, but it's been very slow moving and is still in flux.

[1] https://github.com/WebAssembly/component-model

No comment on the other points (I also prefer Wasmtime), but:

I believe the linking proposal is dead for now and replaced by the component model: https://github.com/WebAssembly/component-model

The wasmtime implementation is in progress.

The Interface Types and Module Linking proposals were recently superseded by the Component Model proposal, which unifies the two: https://github.com/WebAssembly/component-model