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 prop_GOV so that it runs again #4200

Merged
merged 2 commits into from Mar 20, 2024
Merged

Conversation

MaximilianAlgehed
Copy link
Collaborator

Description

This is kindof a big PR that uses the new Tree extension to constrained-generators to make sure prop_GOV ticks.

To make this work I had to make a bunch of performance improvements to constrained-generators that will hopefully be reflected in CI times going forward.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@MaximilianAlgehed MaximilianAlgehed marked this pull request as draft March 13, 2024 13:54
@MaximilianAlgehed MaximilianAlgehed force-pushed the PR-fix-prop_GOV branch 4 times, most recently from 92b8fbd to ae64883 Compare March 15, 2024 08:32
@MaximilianAlgehed MaximilianAlgehed marked this pull request as ready for review March 15, 2024 12:30
`HasSimpleRep` and using `caseOn`

- selector functions

- found and fixed bug in `conformsTo` for rose trees

- fixes to the common subexpression elimination, and a new test

- add benchmarks

- ignore profiling products in gitignore

- a 50x improvement in map generation performance

- fix issue with map generator not generating non-empty maps (weirdly enough!)

- Add extractFn to Member class to simplify matching on function symbols

- get rid of dead code + use uniqueness of vars more heavily

- better cost centers

- add listSumPair benchmark for the future

- prettyprinting fix

- Optimise the structure of `OneofL` to reduce the number of allocations

- get rid of some unecessary calls to `freeVars`

- export mkUnsafeProposals

- add hints to list generation
Copy link
Contributor

@TimSheard TimSheard left a comment

Choose a reason for hiding this comment

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

Every thing looks good. It would be nice to record in the comments of the PR what changes were made for performance, and what changes were made to do the Proposals. Also It would be nice to see what was the overall improvement in time , and how each improvement contributed.

@MaximilianAlgehed MaximilianAlgehed merged commit 5f227e8 into master Mar 20, 2024
14 checks passed
@neilmayhew neilmayhew deleted the PR-fix-prop_GOV branch March 28, 2024 02:21
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.

None yet

2 participants