| ▲ | grodes 5 hours ago | ||||||||||||||||
How is wasm better than C bindings? | |||||||||||||||||
| ▲ | gavinray 4 hours ago | parent | next [-] | ||||||||||||||||
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. | |||||||||||||||||
| ▲ | bluejekyll 4 hours ago | parent | prev | next [-] | ||||||||||||||||
WASM is platform independent. What do you mean by C bindings? C bindings to what? | |||||||||||||||||
| |||||||||||||||||
| ▲ | coldtea 3 hours ago | parent | prev [-] | ||||||||||||||||
C bindings are not platform independent, nor do they come with a runtime and a sandbox, among other things. Apples to oranges. | |||||||||||||||||