hmac / kite

A Haskell-like language for scripting and web apps
BSD 3-Clause "New" or "Revised" License
13 stars 0 forks source link

GRIN backend #2

Closed hmac closed 2 years ago

hmac commented 4 years ago

GRIN is an ideal backend for Lam, as it's designed for functional languages that utilise graph reduction. Lam is strict rather than lazy, but we should still get a massive benefit from this.

What we need to do (at a high level):

Open questions

hmac commented 2 years ago

Instead of GRIN, the approach we're aiming for at the moment is to compile Kite to a custom instruction set for the Kite VM, which will interpret it. This instruction set is quite low level, and includes reference counting operations. It should be possible to compile it to LLVM bytecode or webassembly in the future. Work on this is in the branch kitecore.