[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Ravi 1.0 Beta5 release
- From: Dibyendu Majumdar <mobile@...>
- Date: Tue, 5 Jan 2021 19:31:48 +0000
Hi,
On Tue, 5 Jan 2021 at 18:40, Russell Haley <russ.haley@gmail.com> wrote:
> - Did you re-use any Lua.org code? Can you guess on a percentage? (just out of curiosity)
Of course - depends on the component we are talking about. There is a
new compiler that is largely being written from the ground up, but
even there the lexer is pretty much a hacked version from Lua, and
there are other bits and pieces that are borrowed too.
> - Were you forced to write any MIR text? What was the interface with MIR like? Or is it just standard C?
Fortunately MIR provides a C front-end, so you can feed in C code and
let MIR convert it. I like this because:
a) Much less effort to maintain it. I had written up the LLVM backend
by hand, using the LLVM api, and it made it very difficult to maintain
and change it. (So I am glad to see the end of the LLVM backend!)
b) It is relatively straight-forward to also support AOT compilation
when you have C output.
Regards