Repository navigation
Add interpreter, portable AOT, and tiered native JIT engines - #21
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds a first native JIT tier to the production Go bytecode VM while preserving the current interpreter as the compatibility path and the existing
.tbcbuild as portable AOT bytecode.Three execution paths
tell buildcompiles the supported source subset to the portabletell-bytecode-v1artifact. It is not a standalone native executable.--engine jitcompiles eligible typed numeric functions to native Linux/amd64 machine code on first call.--engine autointerprets hot functions during warm-up (default threshold 24), then compiles eligible functions and caches the machine code.JIT scope and safety
number/decimalfunctions using numeric constants, parameter loads, unary plus/minus, addition, subtraction, multiplication, and return.--engine jitreports the platform limitation.CLI
tell --engine interp program.telltell --engine jit program.telltell --engine auto --jit-threshold 24 --jit-stats program.tell.tbcartifacts.Validation and benchmark
Initial Ubuntu 24.04 / Go 1.23.x CI benchmark (warmed-up calls):
This is a synthetic compute-heavy function benchmark, not a guarantee for all Tell programs. The benchmark excludes the JIT's one-time compilation cost and does not measure whole-program startup or I/O.
This is an initial JIT backend, not an LLVM ORC integration, whole-program optimizer, or native machine-code AOT compiler.
tell buildremains AOT to portable VM bytecode.