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 warning messages, tracing and a debug mode to the rewriter #181

Open
Kieranoski702 opened this issue Feb 7, 2024 · 0 comments
Open
Assignees
Labels
area::conjure-oxide Related to conjure_oxide. good first issue Good for newcomers

Comments

@Kieranoski702
Copy link
Contributor

The rewriter is currently very hard to debug. Some features that have been suggested that would help with debugging are:

  • A warning that detects if applying a rule is outputting the same expression that was used as an input. This would go into a debug mode as this will affect performance
  • A warning which detects cycles i.e. keep a history of all the models on each step, if models repeat then there must be a cycle. This would go into a debug mode as this will affect performance
  • A trace that prints out the model at every step (possibly to stderr?). This could have two modes, one where it just shows a sub-expression changing to a different sub-expression and another which shows the full models at each step. This should be separate from the debug mode as this should not affect performance as much but it should still be an optional argument
@Kieranoski702 Kieranoski702 added good first issue Good for newcomers area::conjure-oxide Related to conjure_oxide. labels Feb 7, 2024
@Kieranoski702 Kieranoski702 self-assigned this Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area::conjure-oxide Related to conjure_oxide. good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant