Giter Site home page Giter Site logo

Interface Types Status ? about wasmex HOT 5 CLOSED

sleipnir avatar sleipnir commented on May 31, 2024 1
Interface Types Status ?

from wasmex.

Comments (5)

tessi avatar tessi commented on May 31, 2024 1

closing this for now in an attempt to clean up old issues. feel free to (re-) open an issue if things change

from wasmex.

tessi avatar tessi commented on May 31, 2024

Hey @sleipnir wasmex currently has no special code to support interface types. It's theoretically possible to support interface types, since wasmer seems to have (dated?) support for it 👉 https://github.com/wasmerio/interface-types

It's not clear at this moment how an elixir-facing API would look like. I personally never played with interface types before, so I don't come with experience here :)

from wasmex.

sleipnir avatar sleipnir commented on May 31, 2024

I don't have that experience either, but it would definitely be more intuitive to deal with a high-level typed interface rather than just raw bytes

from wasmex.

tessi avatar tessi commented on May 31, 2024

I just visited the interface types RFC and it says:

This proposal is currently inactive, with work having moved on to the component-model repo

However, the Component Model RFC, so I guess we have to look there :)

I also looked over the fence at what wasmtime is doing, and they don't have interface type support too (although they used to have some suport), see their tracking GH issue.

It seems wit-bindgen is something we could look at for code generation. Maybe eventually fulfilling the dream of automatically generating Elixir typespecs and behaviours for WASM APIs from a .wtix file. 🤔 We have some way to go to be near that, but it's certainly something I'd love to see for wasmex.

from wasmex.

sleipnir avatar sleipnir commented on May 31, 2024

Wasmtime removed its support for interface types as I recall.
Generating the elixir type and behavior specs would be a big thing to see.

from wasmex.

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.