wasmtime icon indicating copy to clipboard operation
wasmtime copied to clipboard

Cranelift language bindings

Open gregorni opened this issue 1 year ago • 1 comments

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.

gregorni avatar Oct 19 '24 21:10 gregorni

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

bjorn3 avatar Oct 19 '24 22:10 bjorn3

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

GunpowderGuy avatar Oct 29 '24 23:10 GunpowderGuy