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
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • wasm-api-hs

    Discontinued High-level Haskell bindings to Wasm C API.

  • Check out https://github.com/dfinity/wasm-api-hs, 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.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • 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