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

C backend for Catala : the closure conversion strikes back #364

Merged
merged 17 commits into from
Mar 28, 2023

Conversation

denismerigoux
Copy link
Contributor

Follow up on #204.

Changelog

  • Have a very simple example working
  • Debug re-typechecking of Lcalc
  • Debug compiling without exception pass
  • Hoist closures

@denismerigoux denismerigoux added ✨ enhancement New feature or request 🔧 compiler Issue concerns the compiler labels Dec 6, 2022
@denismerigoux denismerigoux self-assigned this Dec 6, 2022
@denismerigoux
Copy link
Contributor Author

Merging this now because @adelaett depends on some of this code.

@denismerigoux denismerigoux marked this pull request as ready for review March 21, 2023 12:33
@denismerigoux
Copy link
Contributor Author

@AltGr do you think you can review tomorrow to unblock Alain?

Copy link
Contributor

@AltGr AltGr left a comment

Choose a reason for hiding this comment

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

LGTM! I haven't reviewed the new Closure_conversion code itself thoroughly, but this all looks pretty nice.

compiler/shared_ast/typing.ml Show resolved Hide resolved
compiler/shared_ast/scope.mli Show resolved Hide resolved
if not options.avoid_exceptions then
Errors.raise_error
"Option --avoid_exceptions must be enabled for \
--closure_conversion";
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be worth having --avoid_exceptions automatically be turned on in this case then ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since --avoid_exceptions and --closure_conversion are experimental these days I want the CLI to force users to actively activate both and not have them activated silently.

compiler/driver.ml Outdated Show resolved Hide resolved
@denismerigoux denismerigoux merged commit 44d8c32 into master Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 compiler Issue concerns the compiler ✨ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants