Giter Site home page Giter Site logo

Persistent interpreter instances about go HOT 2 CLOSED

guregu avatar guregu commented on May 24, 2024
Persistent interpreter instances

from go.

Comments (2)

guregu avatar guregu commented on May 24, 2024

This would be easy if this issue were fixed: wasmerio/wasmer-go#338
Seems like that issue is blocked by this... wasmerio/wasmer#2334 which could maybe be resolved by this wasmerio/wasmer#3032 (and of course needs to make its way to the Go lib).

Perhaps WasmEdge has better support? Not sure 🤔

One crazy trick I tried was using mkfifo and reading from inside WASM and it seems to work fine, so I'm thinking we can use FIFOs as a kind of temporary workaround. This won't work on Windows but neither does wasmer-go at the moment.

from go.

guregu avatar guregu commented on May 24, 2024

Played around with named pipes. I think it could probably work but it adds a lot of complexity, including filesystem stuff that I would rather avoid. At that point it's probably better to just execute tpl in a subprocess.

I think exposing a host function is the best option, probably. Not sure how to actually do this yet.

from go.

Related Issues (8)

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.