Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upAdded `sec[bool]` and `sec[f64]` #375
Conversation
bvssvni
added some commits
Sep 12, 2016
bvssvni
merged commit 2dcfb2e
into
PistonDevelopers:master
Sep 14, 2016
bvssvni
deleted the
bvssvni:sec
branch
Sep 14, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
bvssvni commentedSep 12, 2016
•
edited
Closes #367, fixes a bug in the lifetime checker #374
This PR adds
sec[bool]andsec[f64]types, which improves type safety for secrets and makes it easier to generate efficient Rust code from Dyon in the future.What is a secret?
A secret is a "hidden" array that is associated with a
boolorf64. It is used to make problem solving easier by integrating this with mathematical loops in Dyon.For example, to look up where a maximum value comes from:
Dyon uses index notation for mathematical loops, such that the argument of
any/all/min/maxcompositions of loops can be propagated as a secret.