-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experiment compiling ORT to WASM #5011
Comments
To add to the craziness one can use https://github.com/WebAssembly/wabt/tree/main/wasm2c to compile WASM file to C and then compile the C file to native binaries (exe, dmg, so) ;-) |
If the goal is to create a native binary, I wonder whether instead of going through
the better / less fragile approach is to go
see #4982. It seems the only blocker is oracle/graal#4265. |
Compiling to native not my plan - like we now compile to JARs for JVM we would compile WASM files for WebAssembly VM which could run on a server or in a web browser. Some folks don't like to run JVM so with WebAssembly we would offer them an alternative which is likely more lightweight and possibly faster. |
@sschuberth oracle/graal/issues/4265 was closed does it mean we could now release native ORT binaries? |
We can build ORT native image since quite a while already (I had applied a work-around for oracle/graal#4265), but running it currently crashes (IIRC due to some unconfigured reflection use). But I believe that's something that could be addressed. |
FYI, starting with Kotlin 1.8.20 beta, there's a new backend to compile Kotlin directly to WASM. |
Compile ORT to WASM using one of the Java to WASM compilers.
Possible benefits:
The text was updated successfully, but these errors were encountered: