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

Fix issue in functors with more than one argument (which are curried): emit nested function always. #7273

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cristianoc
Copy link
Collaborator

See #7245

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Syntax Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.05.

Benchmark suite Current: d47e432 Previous: e1b7fb7 Ratio
Parse RedBlackTree.res - time/run 1.3674560733333332 ms 1.2123143266666667 ms 1.13
Parse Napkinscript.res - time/run 42.69906948 ms 39.28006235333333 ms 1.09
Parse HeroGraphic.res - time/run 5.75563878 ms 5.13472718 ms 1.12

This comment was automatically generated by workflow using github-action-benchmark.

…port

Simplify functor translation and remove merged functors support

- Remove Conflicting_inline_attributes error type and related checks
- Simplify apply_coercion_result to handle single parameters instead of lists
- Replace recursive merge_functors with get_functor_params for single-level handling
- Streamline compile_functor to process individual functor parameters directly
- Remove obsolete code for handling merged functors and inline attribute merging

These changes simplify the functor translation logic by eliminating support
for merged functors and associated complex coercion handling, focusing on
single-level functor processing instead.
@cristianoc
Copy link
Collaborator Author

I think we can go ahead with this, unless there's some functor-heavy repository (with multiple args) to test this on.
The fact that this has not surfaced earlier indicates that there are not many.

@cristianoc cristianoc changed the title Experiment with emitting functors as 1 arg at a time Fix issue in functors with more than one argument (which are curried): emit nested function always. Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant