are there any libraries to interop with WASM?

This page summarizes the projects mentioned and recommended in the original post on /r/haskell

Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Mergify - Updating dependencies is time-consuming.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • wasm-api-hs

    High-level Haskell bindings to Wasm C API.

    Check out, it is a Haskell binding for the official, general-purpose Wasm C API, and so should work with multiple Wasm engines.

  • winter

    Haskell port of the WebAssembly OCaml reference interpreter (by dfinity-side-projects)

    There's winter by dfinity, which ports the wasm spec interpreter originally written in OCaml. There aren't quick examples around so it'll take a while before you get familiar with its internals.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • inline-js

    Call JavaScript from Haskell, and vice versa!

    Another way to do this would be using inline-js to load and run the wasm stuff via node. inline-js already supports exporting Haskell functions as sync functions on the JS side, so they can be used as wasm import functions. I've always wanted to write a blog post about using inline-js as a wasm runner but unsure if there's real interest out there..

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts