ikvm icon indicating copy to clipboard operation
ikvm copied to clipboard

Blazor Support

Open wasabii opened this issue 1 year ago • 4 comments

I'm convinced we can get SOMETHING working here.

https://learn.microsoft.com/en-us/aspnet/core/blazor/webassembly-native-dependencies?view=aspnetcore-9.0

There are various wasm libc implementations that do things. Like emscripten? Virtual file system.... maybe we can get /lib loading from there? Sure lots of stuff won't work. But basic Java libraries running? Probably.

wasabii avatar Dec 17 '24 17:12 wasabii

Great, this will be game changer not only for ikvm, but other native libraries to be made available for blazor

GeorgeS2019 avatar Jan 15 '25 09:01 GeorgeS2019

A Java platform on WebAssembly is quite interesting. The only other one I know of is CheerpJ (and I could be wrong but I believe that us actually Linux x86 Java on an optimized [i.e., designed to only run the one specific target] WebAssembly virtual x86 Linux sandbox). I am not sure if OpenJDK/HotSpot, OpenJ9 or GraalVM supports WebAssembly as a native target but that too would prove interesting.

Uzume avatar Mar 20 '25 09:03 Uzume

A Java platform on WebAssembly is quite interesting. The only other one I know of is CheerpJ (and I could be wrong but I believe that us actually Linux x86 Java on an optimized [i.e., designed to only run the one specific target] WebAssembly virtual x86 Linux sandbox). I am not sure if OpenJDK/HotSpot, OpenJ9 or GraalVM supports WebAssembly as a native target but that too would prove interesting.

there is also TeaVM's WASM GC backend which isn't a conventional JVM as its AOT

Hellscaped avatar Mar 25 '25 13:03 Hellscaped

there is also TeaVM's WASM GC backend which isn't a conventional JVM as its AOT

True but TeaVM seems stuck on Apache license unwilling to look at OpenJDK so their classlib is surely lacking. I am sure IKVM is also behind in some respects (certainly it does not support Java 24; the most recent Java as of now) but at least the project seems willing to look into such things (albeit slowly).

Uzume avatar Mar 25 '25 15:03 Uzume