Replies: 1 comment
-
|
Thank you so much for posting this! I only just noticed this now as I forgot I made the discussions tab and didn't check it. I will have to look into some of those projects, they seem quite interesting and useful, it definitely does help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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