3 ms·
It sucks that there is no way to use cranelift from outside of rust to create your own toy language. I would have loved to use cranelift in a toy compiler, but
by rishav_sharan 3y ago
It sucks that there is no way to use cranelift from outside of rust to create your own toy language. I would have loved to use cranelift in a toy compiler, but I am not ready to pay the Rust price of complexity.
- sigsev_251 3y agoThere is always qbe if you need something simpler
- kibwen 3y agoAs far as I know, you should be able to generate textual CLIF files and feed them to Cranelift: https://github.com/bytecodealliance/wasmtime/blob/main/cranelift/docs/ir.md https://github.com/bytecodealliance/wasmtime/blob/main/crane...
- littlestymaar 3y agoWould using cranelift frontend[1] with PyO3[2] be an option for you? [1]: https://docs.rs/cranelift-frontend/0.105.3/cranelift_frontend/index.html https://docs.rs/cranelift-frontend/0.105.3/cranelift_fronten... [2]: https://pyo3.rs/v0.15.1/ https://pyo3.rs/v0.15.1/