Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cranelift language bindings #9488

Open
gregorni opened this issue Oct 19, 2024 · 2 comments
Open

Cranelift language bindings #9488

gregorni opened this issue Oct 19, 2024 · 2 comments

Comments

@gregorni
Copy link

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
Copy link
Contributor

bjorn3 commented Oct 19, 2024

cc #1164

@GunpowderGuy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants