Wasmer: Java Language Bindings Support

Created on 11 Nov 2019  路  19Comments  路  Source: wasmerio/wasmer

Motivation

Java is an ecosystem that would really benefit from a stable and mature web assembly runtime. My personal motivation is to use wasmer within the java ecosystem, and to develop a DSL to target webassembly as a sandboxed scripting environment.

Proposed solution

Write up wasmer bindings with JNI to support wasmer within the java ecosystem. This would allow it to be used by JVM-based languages (scala, kotlin, clojure). The solution would first support x86 and x86-64 until wasmer supports arm and arm64 in the future.

馃帀 enhancement

Most helpful comment

We are working on it :-).

All 19 comments

We are working on it :-).

@Hywan awesome news! Is there an issue somewhere we can use to track progress or maybe help you folks out?

Not yet, but I hope to make the repository public in a couple of weeks (depending of other projects). Let's keep this issue open for the moment. Feel free to ping me at anytime :-).

@zubivan we have started a private repo that we would open-source soon. Would you like to have access and help us on the bindings?

PS: invitation would be open for anyone that wants to help, if that's you... ping us and we will give you access before we make it public!

@syrusakbary, I would be interested in access. This gives me an excuse to learn some JNI. I would be willing to help with the documentation as well.

@syrusakbary
I might be able to help for Java side.
Also doing assessment of WASM runtimes on Java, so it would be great to be able to try it out as well.

@benzap @azam I just gave you access to the repo, you should have received a notification from Github.
Let me know if you are able to access it :)

@syrusakbary I've looked around, and I haven't received a notification for access to any of your repositories. Can you point me in the right direction? I'm excited to see how it's coming along!

@syrusakbary No notifications for me too :(

@benzap @azam you can review the invitation here:

https://github.com/wasmerio/java-ext-wasm/invitations

Let me know if you can access! :)

@syrusakbary Accepted and viewable now.
Will take a look in the morning.
Thanks!

Is there a reason the Java bindings aren鈥檛 open source? Even if they鈥檙e WIP

@gatesn No particular reason, it's just how we run experimentations. The Java binding is under heavy conception. Making it public right now is kind of useless for the users :-).

Will the bindings support Java 8?

@Hywan that makes sense. Would I be able to get an invite to have a look while you're experimenting?

cc @syrusakbary 鈽濓笍

@SimonWoodburyForget yes, Java 8 :-).

Apologizes for the delay, somehow I missed the mention.

@gatesn are you still interested in contributing? We are very close to the release, I can invite to our repo if you want to contribute or become a maintainer!

Very interesting project. How is it going? Are we close to open source?

We open sourced the java integration, but forgot to close this issue.

Here's the announcement: https://medium.com/wasmer/announcing-the-first-java-library-to-run-webassembly-wasmer-jni-89e319d2ac7c
Here's the Java integration: https://github.com/wasmerio/java-ext-wasm

Closing the issue now as it should be solved!

Was this page helpful?
0 / 5 - 0 ratings