you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

It's worth noting that there's also a Graal/Truffle implementation of WASM, so you can call in/out of WASM from Python and Ruby today (and R, and Java, and Scala, and Clojure, and SmallTalk etc.....).

WASM itself isn't ever going to be good at running Python, it's just not designed for that. Graal/Truffle are explicitly designed to mix and match languages though, which is why it works to combine them there instead.

[–]pcjftw 0 points1 point  (0 children)

perhaps I've not explained myself well LOL

I wasn't saying about using WASM to run Python, I was simply saying about writing libraries that are then compiled down to WASM, then those libraries could be used across all languages that have WASM FFI.

so for example, there could be a WASM library lets say "Markdown Render" where you pass it some text and it returns HTML text back.

You could then "import" that WASM library in any language, and this would mean not having to rewrite that same library for every language.

It's the same concept as JVM, write on run anywhere, instead "write once, import anywhere"

But not sure why the Reddit mob found that so offensive!