Giter Site home page Giter Site logo

Comments (2)

udoprog avatar udoprog commented on August 23, 2024 1

Hi,

I would say no, from what I can intuit of your definition of "lightweight". But it really depends.

Since Rune will always be a virtual machine running on top of webassembly in contrast to Rust, which targets webassembly (code written in Rust directly becomes webassembly instructions) it will never have that low of an overhead. I.e. Rune won't take your scripts and convert them into native webassembly modules.

Rune also requires the use of an allocator. The memory for the virtual machine is allocated explicitly through the system allocator.

I found #662 so it appears that Rune can work with WebAssembly, but it wasn't clear to me what the code example was doing - so I thought I'd ask directly:

The code example linked in 662 is a webassembly module which defines a function that takes a string. This string is then compiled as a unit for the rune virtual machine which is compiled for webassembly to execute.

from rune.

sanity avatar sanity commented on August 23, 2024

Thank you for the reply.

I understand that the Rune VM running on the wasm VM will not be as lightweight as Rust code compiled to wasm directly - my question is more whether the Rune compiler and VM can run on webassembly. I think it can based on the example I found.

Thanks again.

from rune.

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.