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.
bjorn3 commented on issue #9488:
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: Nov 22 2024 at 17:03 UTC