You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know whether you are aware of the following projects. Therefore I just send you the links. They indirectly do something very similar to what you are doing. So, maybe there is something you can learn or even borrow from them.
Chicory is actually a runtime for WebAssembly completely written in Java. They have something they call a build-time-compiler which transpiles the WASM code into Java class files. Compiling Rust to WASM is already very well supported. So, basically they are just using a different intermediate format but the result is the same.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know whether you are aware of the following projects. Therefore I just send you the links. They indirectly do something very similar to what you are doing. So, maybe there is something you can learn or even borrow from them.
https://chicory.dev/docs/usage/build-time-compiler
https://github.com/dylibso/chicory
Chicory is actually a runtime for WebAssembly completely written in Java. They have something they call a build-time-compiler which transpiles the WASM code into Java class files. Compiling Rust to WASM is already very well supported. So, basically they are just using a different intermediate format but the result is the same.
wasi-emscripten-host: Kotlin Multiplatform Implementation of WASI Preview 1 and Emscripten host functions
https://github.com/illarionov/wasi-emscripten-host
wasm2class-gradle-plugin: Compiles .wasm into .class for running on the JVM
https://github.com/illarionov/wasm2class-gradle-plugin
This might give you a few ideas and maybe even some code to implement the Rust core and std functionality.
I don't know whether this helps but I just wanted to let you know about it so that you can decide yourself.
Beta Was this translation helpful? Give feedback.
All reactions