Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate usage of bytecode interpreter #11328

Open
JaroslavTulach opened this issue Oct 15, 2024 · 1 comment
Open

Investigate usage of bytecode interpreter #11328

JaroslavTulach opened this issue Oct 15, 2024 · 1 comment
Assignees

Comments

@JaroslavTulach
Copy link
Member

JaroslavTulach commented Oct 15, 2024

Truffle is moving towards byte code interpreters. It would help Enso as well for example to:

  • eliminate deep stacktraces in the interpreter
  • have a standard format of .ir caches

Goal: Investigate what it would take to use bytecode interpreter in Enso.

Opportunity

Generating the bytecode is going to be something completely different than working with AST nodes. It is a great opportunity to remove the need of IR and (also) move towards incremental compilation. Let's generate the bytecode directly from Tree and avoid using IR all together. Of course, to make that happen we need to align the Tree and IR to have similar structure. @kazcw's work like:

is thus quite important in the bytecode interpreter effort.

@JaroslavTulach
Copy link
Member Author

oracle/graal#9556 is still opened. Once it gets integrated we should again some experience with the bytecode interpreters. To do so, I'd like to try implementing a bytecode interpreter for ECMA-55_1st_edition_january_1978.pdf - the Minimal BASIC specification from 1978.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

1 participant