You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to avoid mutating arrays at unknown (until runtime) indices as this turns ROM into RAM which is more expensive. In this case it's best to construct the final output in an unconstrained function and then assert that it's correct.
Unconstrained gud, so also useful in non-array settings if you can prove the result cheaply once you know it.
Bitwise operations are bad and should be avoided if possible (notable as devs tend to use bitwise ops in an attempt to optimise their code)
We do as much compile-time execution as we can so calling "expensive" functions with constant arguments isn't a major concern and developers shouldn't feel the need to create hardcoded constants.
The text was updated successfully, but these errors were encountered:
This ticket is about bringing general insights for developing Noir into the Noir docs. The draft hackmd consolidates and communicates key points from several Aztec devs.
# Description
## Problem\*
ResolvesAztecProtocol/dev-rel#300
## Summary\*
Documents Noir considerations vs regular procedural programming. Some
considerations specifically for Rust syntax conversion.
## Additional Context
## Documentation\*
Check one:
- [ ] No documentation needed.
- [x] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.
# PR Checklist\*
- [x] I have tested the changes locally.
- [ ] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
---------
Co-authored-by: josh crites <jc@joshcrites.com>
Co-authored-by: Savio <72797635+Savio-Sou@users.noreply.github.com>
From tom on slack:
The text was updated successfully, but these errors were encountered: