GithubHelp home page GithubHelp logo

Comments (3)

lcswillems avatar lcswillems commented on June 26, 2024

I've just found this section in the README:

https://github.com/bytecodealliance/javy?tab=readme-ov-file#creating-and-using-dynamically-linked-modules

which already clarifies a lot.

In my case, I am curious if I could build my JS code to WASM and then use this WASM on the MultiversX blockchain, which executes the WASM code using WASMER.

https://github.com/multiversx/mx-chain-vm-go

Because I want to run the WASM on a blockchain and that deploying code on the blockchain is very costly, I want the WASM size to be as low as possible.

from javy.

jeffcharles avatar jeffcharles commented on June 26, 2024

I am curious if I could build my JS code to WASM and then use this WASM on the MultiversX blockchain

I'm not familiar with various blockchain execution environments. The environment you're attempting to execute your Wasm module in would need to make a set of Javy imports available to the dynamically linked module. The javy-quickjs_provider Wasm file exports functions to satisfy these imports but you would need whoever is managing the runtime you're deploying against to instantiate that module and make it available to link against. Wasmer out-of-the-box will not do that, it would have to be specially configured to do that by whoever is hosting the blockchain. My guess and assumption would be that they're not doing that so you would see a module instantiation failure because of unsatisfied imports.

from javy.

lcswillems avatar lcswillems commented on June 26, 2024

Thank you very much @jeffcharles for your explanation which clarifies a lot the situation for me 🙏 🙏

from javy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.