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

Pure functions for thunks with constant scalar values #1591

Open
raviqqe opened this issue Nov 3, 2022 · 0 comments
Open

Pure functions for thunks with constant scalar values #1591

raviqqe opened this issue Nov 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@raviqqe
Copy link
Contributor

raviqqe commented Nov 3, 2022

Problem

  • Global thunks cannot be inlined because they are stateful and requires synchronization.
  • This prevents later optimization, such as SCCP.

Solution

  • Make global thunks that return constant scalar values pure functions.
  • Scalar values include boolean, none, number, and string.
@raviqqe raviqqe added the enhancement New feature or request label Nov 3, 2022
@raviqqe raviqqe changed the title Thunks to pure functions for functions with constant scalar results Pure functions for thunks with constant scalar results Nov 3, 2022
@raviqqe raviqqe added this to main Nov 3, 2022
@raviqqe raviqqe moved this to Todo in main Nov 3, 2022
@raviqqe raviqqe changed the title Pure functions for thunks with constant scalar results Pure functions for thunks with constant scalar values Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant