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

Mostly graphical improvements to the explain plugin #733

Merged
merged 7 commits into from
Oct 31, 2024
Merged

Mostly graphical improvements to the explain plugin #733

merged 7 commits into from
Oct 31, 2024

Conversation

AltGr
Copy link
Contributor

@AltGr AltGr commented Oct 28, 2024

No description provided.

Copy link
Contributor

@denismerigoux denismerigoux left a comment

Choose a reason for hiding this comment

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

Amazing!

Comment on lines +1443 to +1444
(* `Ratio (`Float 0.8); *)
(* `Concentrate true; *)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these be toggable with an option?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm I was playing around trying to improve the layout, but from my tests they don't really provide meaningful improvements ; I certainly should cleanup all these comments though.

@@ -863,7 +863,7 @@ let translate_program
match states with
| D.WholeVar -> WholeVar (ScopeVar.fresh (var_name, var_pos))
| States states ->
let var_prefix = var_name ^ "_" in
let var_prefix = var_name ^ "#" in
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure this gets correctly changed back to _ in the C or Python backends?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that would otherwise be a bug!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Re: indeed, there was a bug where this would appear in the backend language (but it was a symptom of a wider bug where we would cleanup unicode characters but not non-ident characters that were part of ASCII like é).
The latest patch fixes that for all backends (just fixing the normalisation functions used by the Renaming module).

if < 1.0 and on either side of a multiplication (don't display `foo + 10%` as
that could be misinterpreted)
@AltGr AltGr merged commit 4dc049f into master Oct 31, 2024
5 checks passed
@AltGr AltGr deleted the explain branch October 31, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants