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

[RFC] Introduce bytecode compilation for Starlarky #148

Open
mahmoudimus opened this issue Jul 30, 2021 · 1 comment
Open

[RFC] Introduce bytecode compilation for Starlarky #148

mahmoudimus opened this issue Jul 30, 2021 · 1 comment
Labels
enhancement Enhance functionality in Starlarky triaged

Comments

@mahmoudimus
Copy link
Contributor

Problem or feature statement

There is demand for the introduction of a "compilation" phase for Larky. The following two features are the most requested:

  • Compilation of a Larky script to check for syntax errors without executing it.
  • Compilation of a Larky script for later invocation without re-interpreting it.

Advised solution

Ideally leverage the JVM's invokedynamic instruction to have fast dynamic dispatching via JVM bytecode. Or, introduce a Dalvik-like register-based VM built on top of the JVM.

Testing scenarios

TBD

@mahmoudimus mahmoudimus added the enhancement Enhance functionality in Starlarky label Jul 30, 2021
@aslepakurov
Copy link
Contributor

Already introduced in VGS implementation of Larky. Would be good to groom for Larky engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance functionality in Starlarky triaged
Projects
None yet
Development

No branches or pull requests

2 participants