Hacker News new | ask | show | jobs
by nmhancoc 1064 days ago
I start out with a trained ML model, transform it into equivalent C code, then compile that C code targeting WASM.

Then I have a HTTP server in Go, which loads the wasm module on startup, just like dlopen but with a small ~10% performance overhead, rips the HTTP payload out, and calls the WASM function with the arguments filled in.