what's the current state of the art to solve syscall problems?
In browser it is solved with help of JS, outside with wasi. The first approach is quite good and stable (you can check emcscripten), the second also could be used, but doesn't contain some things like networking and async