graalvm

Shagun Agrawal 2025-04-23T17:16:44.237519Z

Saw a recent conf talk for compiling Java directly to a wasm image https://www.youtube.com/watch?v=Z2SWSIThHXY&t=1650s&ab_channel=WASMI%2FO I am able to compile my clojure application to a WASM and js file, but when I run the js / wasm files I don't get any return values as such. If I use println in my original clojure code, then I see the output, otherwise it just returns void ( Which I am guessing is due to the return type being void itself ). How should I go about capturing the return from my original clojure code ? I want to use this return value in a simple javascript app and show it in the browser ( This question is more about web assembly than graal vm, let me know if it's incorrect for this channel )

2025-04-25T02:45:03.831449Z

There's no return value for processes. If your current Clojure app was "returning a value", it probably is because you were launching it with something that enabled that.

2025-04-25T02:48:54.276569Z

At a shell for example, it will pipe the *out* of your process as the *in*of the other.

👍 1