Git Product home page Git Product logo

Comments (5)

jedisct1 avatar jedisct1 commented on July 21, 2024

Hi!

lucetc-wasi is the compiler. It cannot run code.

The resulting .so (or .dylib) file must be run with lucet-wasi, which is a different tool.

from lucet.

sergiizubchevskyy avatar sergiizubchevskyy commented on July 21, 2024

Wow! Thank you for such a fast answer! I'm reinstalling the Lucet so will try as soon as it is installed.

And what about the Wasmtime? Is there a way to pass compiled .so object or similar to avoid compilation by JIT compiler of Wasmtime?

from lucet.

sergiizubchevskyy avatar sergiizubchevskyy commented on July 21, 2024

You're correct, invoking the lucet-wasi tool solves the issue with errors.

From what I read in the meantime, I've got an impression that there is no way (at least for now) to use some sort of AOT with the Wasmtime, and I had am impression that Wasmtime is the runtime used by Lucet but after searching I think Wasmtime is used to provide some files for build support.

from lucet.

jedisct1 avatar jedisct1 commented on July 21, 2024

Wasmtime includes a cache: https://bytecodealliance.github.io/wasmtime/cli-cache.html - Once code has been cached, it doesn’t need to be recompiled any more.

from lucet.

sergiizubchevskyy avatar sergiizubchevskyy commented on July 21, 2024

Thank you!

I've done some tests and according to Valgrind Massif and got a bit surprised since consecutive executions with cache enabled still got almost 4MiB, when comparing with Wasmtime JIT (cache disabled) 4.4MiB... It is improvement, but not as much as I was expecting.

Check this out:
1st cache enabled execution:
image

2nd cache enabled execution:
image

3rd cache enabled execution:
image

And now Wasmtime, cache disabled:
image

But this is way beyond Lucet's responsibility!

Thank you again jedisct1! You really helped me a lot.

I think this issue can be closed, you prefer me to close it?

from lucet.

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.