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

[meta] Generate lazy function for function declaration #526

Open
arai-a opened this issue May 15, 2020 · 2 comments
Open

[meta] Generate lazy function for function declaration #526

arai-a opened this issue May 15, 2020 · 2 comments
Labels
MVP MVP Project Work - In Scope With A Commitment To Complete. P2 Project Work (MVP or Reserve) that is available for selection.

Comments

@arai-a
Copy link
Collaborator

arai-a commented May 15, 2020

The plan is the following:

  1. compile all functions as lazy function (still disabled)
    * so that the enclosing script can pass compilation, while developing
  2. implement closed over bindings and environment object
    * almost ready. needs some accessor/trait
  3. implement lexical scope with environment object
    * EnvironmentObject/PushLexicalEnv/PopLexicalEnv
    * this can be a preparation for:
    • closed over bindings
    • direct eval (not for this issue)
    • with (not for this issue)
  4. enable lazy function compilation
    • so that the enclosing script is fully compiled
  5. implement delazification, including:
    • API between jsparagus and smoosh
    • bytecode compilation of function parameter and body
  6. implement eager compilation of functions
    • use the helper structs created in step 5
@arai-a arai-a added MVP MVP Project Work - In Scope With A Commitment To Complete. P2 Project Work (MVP or Reserve) that is available for selection. labels May 15, 2020
@arai-a arai-a changed the title Generate lazy function [meta] Generate lazy function May 15, 2020
@arai-a
Copy link
Collaborator Author

arai-a commented May 18, 2020

dependency:

@arai-a arai-a changed the title [meta] Generate lazy function [meta] Generate lazy function for function declaration Jun 5, 2020
@arai-a
Copy link
Collaborator Author

arai-a commented Jun 19, 2020

The next step is to map jsparagus stencil to m-c stencil, for functions, in smoosh side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MVP MVP Project Work - In Scope With A Commitment To Complete. P2 Project Work (MVP or Reserve) that is available for selection.
Development

No branches or pull requests

1 participant