Coder Social home page Coder Social logo

Compile minihaskell output to WASM about juvix HOT 1 CLOSED

anoma avatar anoma commented on August 16, 2024
Compile minihaskell output to WASM

from juvix.

Comments (1)

paulcadman avatar paulcadman commented on August 16, 2024

We tried using the asterius Haskell to WebAssembly compiler.

A validity predicate must be made available to the WASM runtime as a top-level function with a particular type-signature. So we need to be able to export Haskell functions via FFI using Asteruius.

We tried using foreign export javascript as described in tweag blog and in the Asterius test case. But this did not make the exported symbol available in the WASM output.

There's an open issue from 2020 for the same issue with exporting Haskell symbols that has not been looked at by maintainers of Asterius.

It seems like Asterius is not maintained. For example the project roadmap has not been updated since Q3 2021.

In summary we didn't find a way to get the FFI to work and so we can't use Asterius to compile validity predicates for use on the Anoma ledger.

from juvix.

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.