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

Add thunks to CakeML to help PureCake #1090

Open
myreen opened this issue Nov 13, 2024 · 0 comments
Open

Add thunks to CakeML to help PureCake #1090

myreen opened this issue Nov 13, 2024 · 0 comments
Assignees
Labels
enhancement medium effort performance Runtime of a plausible real cakeml-generated binary student project can be done as a student project (at various levels)

Comments

@myreen
Copy link
Contributor

myreen commented Nov 13, 2024

This issue records our intent to add thunks to the CakeML semantics so that the PureCake compiler can generate thunks that CakeML's GC can be optimised for. The plan is to add thunks as stateful objects to the CakeML source semantics and all intermediate languages down to wordLang, where they will be realised as special form of mutable memory cells. The plan is allow already-evaluated thunks to be represented by their content directly and to have the CakeML GC do an on-the-fly inlining of the already-computed thunk values.

@myreen myreen added enhancement performance Runtime of a plausible real cakeml-generated binary medium effort student project can be done as a student project (at various levels) labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement medium effort performance Runtime of a plausible real cakeml-generated binary student project can be done as a student project (at various levels)
Projects
None yet
Development

No branches or pull requests

2 participants