How is wasm better than C bindings?
Many languages don't have ergonomic experiences for working with C ABI's without explicit wrapper code.
Hell, Node.js didn't even get this ability until LAST MONTH:
https://nodejs.org/en/blog/release/v26.1.0
You'd have to write a second library to interface the C ABI with Node via NAPI just to consume it.
WASM is platform independent.
What do you mean by C bindings? C bindings to what?
C bindings are not platform independent, nor do they come with a runtime and a sandbox, among other things. Apples to oranges.
Many languages don't have ergonomic experiences for working with C ABI's without explicit wrapper code.
Hell, Node.js didn't even get this ability until LAST MONTH:
https://nodejs.org/en/blog/release/v26.1.0
You'd have to write a second library to interface the C ABI with Node via NAPI just to consume it.