Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
mir
A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR
Hi, I have been working on a new compiler for Ravi - which is a dialect of Lua 5.3 with some support for static types, and supports JIT compilation. The new compiler I am writing will compile input Lua/Ravi code to C, and the generated C code can be compiled into a shared library, and loaded at runtime.
The compiler is work in progress but can handle a large subset of Ravi code at the moment. Full details are available at the Github project.
The compiler is written in C, and translates input code to an Abstract Syntax Tree. This is then transformed to a linear IR, which is finally translated to C code. The generated C code can be JIT compiled using the MIR backend or compiled ahead-of-time into shared library.