-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a new IR and execution engine as a stack machine
This commit changes the internal intermediate representation used to run Pine programs, introducing a new compiler for that IR and a corresponding execution engine. One immediate benefit was an improvement in runtime efficiency: In workloads parsing Elm module syntax, I saw a more than 30 percent reduction in response times for larger files. Another benefit is improved performance profiling. The count of instructions performed is now a better proxy for runtime expenses than the previous interpreter, where each instruction could contain a subexpression tree of arbitrary size. This switch to an IR with flat/atomic instructions makes it easier to further compile to IRs like WebAssembly or .NET CIL.
- Loading branch information
Showing
7 changed files
with
2,192 additions
and
643 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.