logoalt Hacker News

grodestoday at 5:28 PM3 repliesview on HN

How is wasm better than C bindings?


Replies

gavinraytoday at 5:32 PM

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.

bluejekylltoday at 5:33 PM

WASM is platform independent.

What do you mean by C bindings? C bindings to what?

show 1 reply
coldteatoday at 6:40 PM

C bindings are not platform independent, nor do they come with a runtime and a sandbox, among other things. Apples to oranges.