Stream: git-wasmtime

Topic: wasmtime / issue #9488 Cranelift language bindings


view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2024 at 21:10):

gregorni opened issue #9488:

Feature

Language bindings to the Cranelift library that allow the library to be used outside Rust.

Benefit

Developers of languages other than Rust could make use of the library, increasing adoption of the project.

Implementation

One could use the UniFFI library, which is what matrix-rust-sdk uses.

Alternatively, one could manually write bindings for every target language using its native FFI capabilities.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2024 at 22:03):

bjorn3 commented on issue #9488:

cc https://github.com/bytecodealliance/wasmtime/issues/1164

view this post on Zulip Wasmtime GitHub notifications bot (Oct 29 2024 at 23:34):

GunpowderGuy commented on issue #9488:

I am eventually going to write a new backend for the GRIN whole program compiler, since i am dissatisfied with llvm. If i target cranelift i was thinking of just creating an ADT for the IR in haskell or idris2 ( another language GRIN will be written on ) and pretty print my program representation to feed into cranelift. Such use cases dont even need bindings


Last updated: Dec 23 2024 at 13:07 UTC