-
Notifications
You must be signed in to change notification settings - Fork 1
Description
The philosophy of BraneScript is and always will be an AOT optimized JIT compiled first language.
However there are many benefits to having an interpreter backend as long as we primarily use jit backends for production use cases.
-
Reference base case
When we're testing different backends and runtimes, tests can be run against the results of the interpreter. As it'll be a lot easier to visually verify that the interpreter is performing the correct operations, rather then decompiling asm. -
Reference for the intended behavior of the runtime. When new backends are being created, if docs fail the interpreter code can be referenced
-
The interpreter could potentially be used for step-through debugging, possibly even while using a jit backend by manipulating the function table.