[Announce] libgccjit bindings for Rust

Sean Gillespie sean.william.g@gmail.com
Thu Jan 1 00:00:00 GMT 2015


Hello all,

I am excited to show my pet hack for the past week or so, bindings for
libgccjit for Rust: https://github.com/swgillespie/gccjit.rs. The bindings
themselves are quite similar in spirit to the C++ bindings, but it
leverages Rust's type system to enforce the lifetime requirements of
objects and the Context object at compile-time, including child contexts.
The full API documentation is here:
http://swgillespie.github.io/gccjit.rs/gccjit/

I've been able to put together several running examples in pure Rust that
utilize libgccjit, the most complete of which being a BrainF JIT/AOT
compiler.

As always, feedback and patches are very welcome! I've had a lot of fun
tinkering with this. Thanks for all of the work on libgccjit!

Thanks,
Sean Gillespie



More information about the Jit mailing list