Ravi is a dialect of Lua, featuring limited optional static typing, JIT and AOT compilers
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.
Parser and compiler for Ravi and Lua
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.
Truly a developer’s best friend. Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.
A lightweight JIT compiler based on MIR (Medium Internal Representation) and C11 JIT compiler and interpreter based on MIR
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.
How to learn compilers: LLVM Edition
6 projects | news.ycombinator.com | 5 Nov 2021
The first release of MIR project
1 project | news.ycombinator.com | 12 Aug 2021
The MIR C interpreter and Just-in-Time (JIT) compiler - Red Hat Developer
1 project | reddit.com/r/programming | 27 Apr 2021
are there any lisp like configuration languages out there?
5 projects | reddit.com/r/lisp | 4 Oct 2022
Working on a Lua to machine-code compiler
2 projects | reddit.com/r/Compilers | 16 Dec 2021