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

Recursion unrolling for functions #1912

Merged
merged 5 commits into from
Mar 24, 2023
Merged

Conversation

lukaszcz
Copy link
Collaborator

@lukaszcz lukaszcz commented Mar 22, 2023

For now, the recursion is always unrolled to a fixed depth (140). In the future, we want to add a global option to override this depth, as well as a mechanism to specify it on a per-function basis. In a more distant future, we might want to try deriving the unrolling depth heuristically for each function.

@lukaszcz lukaszcz added core Related to JuvixCore translation:core-to-geb labels Mar 22, 2023
@lukaszcz lukaszcz added this to the 0.4 - Geb integration milestone Mar 22, 2023
@lukaszcz lukaszcz self-assigned this Mar 22, 2023
@lukaszcz lukaszcz force-pushed the recursion-unrolling-for-functions branch 2 times, most recently from b81fdd9 to 1f2fa5c Compare March 23, 2023 13:44
Copy link
Collaborator

@janmasrovira janmasrovira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

src/Juvix/Compiler/Core/Data/InfoTable.hs Outdated Show resolved Hide resolved
test/Core/Transformation/Unrolling.hs Outdated Show resolved Hide resolved
src/Juvix/Compiler/Core/Transformation/UnrollRecursion.hs Outdated Show resolved Hide resolved
src/Juvix/Compiler/Core/Transformation/UnrollRecursion.hs Outdated Show resolved Hide resolved
src/Juvix/Compiler/Core/Transformation/UnrollRecursion.hs Outdated Show resolved Hide resolved
src/Juvix/Compiler/Core/Transformation/UnrollRecursion.hs Outdated Show resolved Hide resolved
@lukaszcz lukaszcz force-pushed the recursion-unrolling-for-functions branch from 1f2fa5c to d7b43af Compare March 24, 2023 11:13
@lukaszcz lukaszcz temporarily deployed to github-pages March 24, 2023 11:20 — with GitHub Actions Inactive
@lukaszcz lukaszcz force-pushed the recursion-unrolling-for-functions branch from d7b43af to da9a9b4 Compare March 24, 2023 11:55
@lukaszcz lukaszcz temporarily deployed to github-pages March 24, 2023 12:02 — with GitHub Actions Inactive
@lukaszcz lukaszcz temporarily deployed to github-pages March 24, 2023 12:54 — with GitHub Actions Inactive
@paulcadman paulcadman force-pushed the recursion-unrolling-for-functions branch from ab931c1 to 89216d5 Compare March 24, 2023 13:16
@paulcadman paulcadman temporarily deployed to github-pages March 24, 2023 13:25 — with GitHub Actions Inactive
@lukaszcz lukaszcz modified the milestones: 0.4 - Geb integration, 0.3.1 Mar 24, 2023
@lukaszcz lukaszcz merged commit 55374ec into main Mar 24, 2023
@lukaszcz lukaszcz deleted the recursion-unrolling-for-functions branch March 24, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support recursive functions in the GEB backend
3 participants