Skip to content

Releases: noir-lang/noir

nightly-2024-10-05

05 Oct 02:27
999071b
Compare
Choose a tag to compare
nightly-2024-10-05 Pre-release
Pre-release
feat(perf): Follow array sets backwards in array set from get optimiz…

v0.35.0

03 Oct 00:41
2a0d211
Compare
Choose a tag to compare

0.35.0 (2024-10-03)

⚠ BREAKING CHANGES

Features

Read more

nightly-2024-10-04: fix: add missing visibility for auto-import names (#6205)

04 Oct 02:28
c3cb38a
Compare
Choose a tag to compare
# Description

## Problem

Even though we started tracking visibility for many items, this
visibility wasn't registered for auto-import.

## Summary

## Additional Context

I was thinking that maybe registering things for auto-import isn't
necessary. We could traverse all types and all functions in all modules
and check if they match... but maybe that'll be much slower (right now
we group all items by name so maybe iterating that is faster). In any
case we could explore that other option later on.

## Documentation

Check one:
- [x] No documentation needed.
- [ ] 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.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.

nightly-2024-10-03: chore: Release Noir(0.35.0) (#6030)

03 Oct 00:45
2a0d211
Compare
Choose a tag to compare
:robot: I have created a release *beep* *boop*
---


<details><summary>0.35.0</summary>

## [0.35.0](https://github.com/noir-lang/noir/compare/v0.34.0...v0.35.0)
(2024-10-03)


### ⚠ BREAKING CHANGES

* Syncing TypeVariableKind with Kind
([#6094](https://github.com/noir-lang/noir/issues/6094))
* remove sha256 opcode
(https://github.com/AztecProtocol/aztec-packages/pull/4571)
* add support for u1 in the avm, ToRadix's radix arg is a memory addr
(https://github.com/AztecProtocol/aztec-packages/pull/8570)
* Infer globals to be u32 when used in a type
([#6083](https://github.com/noir-lang/noir/issues/6083))
* removing implicit numeric generics
([#5837](https://github.com/noir-lang/noir/issues/5837))

### Features

* (LSP) if in runtime code, always suggest functions that return Quoted
as macro calls ([#6098](https://github.com/noir-lang/noir/issues/6098))
([4a160cb](https://github.com/noir-lang/noir/commit/4a160cb99cbd9928c034a7009f398974fc6fdb11))
* (LSP) remove unused imports
([#6129](https://github.com/noir-lang/noir/issues/6129))
([98bc460](https://github.com/noir-lang/noir/commit/98bc46002cdd8daff1baf0756ecc60dbdf420fd9))
* (LSP) show global value on hover
([#6097](https://github.com/noir-lang/noir/issues/6097))
([3d9d072](https://github.com/noir-lang/noir/commit/3d9d07210544c9d27051eb5e629585760f48cd1c))
* (LSP) suggest $vars inside `quote { ... }`
([#6114](https://github.com/noir-lang/noir/issues/6114))
([73245b3](https://github.com/noir-lang/noir/commit/73245b3aae0c65780a102ac6842f06df65e5fc35))
* Add `Expr::as_constructor`
([#5980](https://github.com/noir-lang/noir/issues/5980))
([76dea7b](https://github.com/noir-lang/noir/commit/76dea7b409baa98236f6433f17c2ce9206dd4ba3))
* Add `Expr::as_for` and `Expr::as_for_range`
([#6039](https://github.com/noir-lang/noir/issues/6039))
([abcae75](https://github.com/noir-lang/noir/commit/abcae750f022dd7c49cee616edddd7b1cc93f3b8))
* Add `Expr::as_lambda`
([#6048](https://github.com/noir-lang/noir/issues/6048))
([31130dc](https://github.com/noir-lang/noir/commit/31130dc7aec24a7a7b9f342df94b14f295eb2103))
* Add a `comptime` string type for string handling at compile-time
([#6026](https://github.com/noir-lang/noir/issues/6026))
([5d2984f](https://github.com/noir-lang/noir/commit/5d2984fce4f55e43cb418e40462d430227b71768))
* Add support for u1 in the avm, ToRadix's radix arg is a memory addr
(https://github.com/AztecProtocol/aztec-packages/pull/8570)
([e8bbce7](https://github.com/noir-lang/noir/commit/e8bbce71fde3fc7af410c30920c2a547389d8248))
* Allow silencing an unused variable defined via `let`
([#6149](https://github.com/noir-lang/noir/issues/6149))
([a2bc059](https://github.com/noir-lang/noir/commit/a2bc059f993d3e9ca06a2fe4857ef1c522c97286))
* Allow visibility modifiers in struct definitions
([#6054](https://github.com/noir-lang/noir/issues/6054))
([199be58](https://github.com/noir-lang/noir/commit/199be584a36d20660ada49473050c5191251d6c5))
* Check unconstrained trait impl method matches
([#6057](https://github.com/noir-lang/noir/issues/6057))
([aedc983](https://github.com/noir-lang/noir/commit/aedc9832240e55473c504fa2e6e3b3af618bda08))
* Default to outputting witness with file named after package
([#6031](https://github.com/noir-lang/noir/issues/6031))
([e74b4ae](https://github.com/noir-lang/noir/commit/e74b4ae3ebcf301eedc5d0059bcebd5dced75d72))
* Detect unconstructed structs
([#6061](https://github.com/noir-lang/noir/issues/6061))
([bcb438b](https://github.com/noir-lang/noir/commit/bcb438b0816fbe08344535545612d32b4730af79))
* Do not double error on import with error
([#6131](https://github.com/noir-lang/noir/issues/6131))
([9b26650](https://github.com/noir-lang/noir/commit/9b26650f4a45c220484fc187500c7307af9c88d7))
* Expose `derived_generators` and `pedersen_commitment_with_separator`
from the stdlib ([#6154](https://github.com/noir-lang/noir/issues/6154))
([877b806](https://github.com/noir-lang/noir/commit/877b806ee02cb640472c6bb2b1ed7bc76b861a9b))
* Faster LSP by caching file managers
([#6047](https://github.com/noir-lang/noir/issues/6047))
([c48a4f8](https://github.com/noir-lang/noir/commit/c48a4f83063ff55574d5b4a6277950a9edbc6317))
* Hoist constant allocation outside of loops
([#6158](https://github.com/noir-lang/noir/issues/6158))
([180bfc9](https://github.com/noir-lang/noir/commit/180bfc99944cd42b3f44048213458d1399687cef))
* Implement `to_be_radix` in the comptime interpreter
([#6043](https://github.com/noir-lang/noir/issues/6043))
([1550278](https://github.com/noir-lang/noir/commit/1550278f1e96392967b477b9b12be3bb0eea8fd6))
* Implement solver for mov_registers_to_registers
([#6089](https://github.com/noir-lang/noir/issues/6089))
([4170c55](https://github.com/noir-lang/noir/commit/4170c55019bd27fd51be8a46637514dfe86de53c))
* Implement type paths
([#6093](https://github.com/noir-lang/noir/issues/6093))
([2174ffb](https://github.com/noir-lang/noir/commit/2174ffb92b5d88e7e0926c91f42bc7f849e8ddc1))
* Let `Module::functions` and `Module::structs` return them in
definition order
([#6178](https://github.com/noir-lang/noir/issues/6178))
([dec9874](https://github.com/noir-lang/noir/commit/dec98747197442f6c2a15e6543c5d453dff4b967))
* Let LSP suggest macro calls too
([#6090](https://github.com/noir-lang/noir/issues/6090))
([26d275b](https://github.com/noir-lang/noir/commit/26d275b65fa339d877c90d5c6c13ac8ef47189e1))
* Let LSP suggest trait impl methods as you are typing them
([#6029](https://github.com/noir-lang/noir/issues/6029))
([dfed81b](https://github.com/noir-lang/noir/commit/dfed81b4b39b2f783d6e81a78ee27fba7032e01c))
* LSP autocompletion for `TypePath`
([#6117](https://github.com/noir-lang/noir/issues/6117))
([3f79d8f](https://github.com/noir-lang/noir/commit/3f79d8f04c5f90c6b21359a3d0960446ebf84b2d))
* **metaprogramming:** Add `#[use_callers_scope]`
([#6050](https://github.com/noir-lang/noir/issues/6050))
([8c34046](https://github.com/noir-lang/noir/commit/8c340461c3f7054839009c4b1ed5ac8a0dd55e09))
* Optimize allocating immediate amounts of memory
(https://github.com/AztecProtocol/aztec-packages/pull/8579)
([e8bbce7](https://github.com/noir-lang/noir/commit/e8bbce71fde3fc7af410c30920c2a547389d8248))
* Optimize constraints in sha256
([#6145](https://github.com/noir-lang/noir/issues/6145))
([164d29e](https://github.com/noir-lang/noir/commit/164d29e4d1960d16fdeafe2cc8ea8144a769f7b2))
* **perf:** Allow array set last uses optimization in return block of
Brillig functions
([#6119](https://github.com/noir-lang/noir/issues/6119))
([5598059](https://github.com/noir-lang/noir/commit/5598059576c6cbc72474aff4b18bc5e4bb9f08e1))
* **perf:** Handle array set optimization across blocks for Brillig
functions ([#6153](https://github.com/noir-lang/noir/issues/6153))
([12cb80a](https://github.com/noir-lang/noir/commit/12cb80a214fd81eb7619413a6d0663369be38512))
* **perf:** Optimize array set from get
([#6207](https://github.com/noir-lang/noir/issues/6207))
([dfeb1c5](https://github.com/noir-lang/noir/commit/dfeb1c51c564ec345978a9a0efef3e4e96ab638a))
* **perf:** Remove inc_rc instructions for arrays which are never
mutably borrowed
([#6168](https://github.com/noir-lang/noir/issues/6168))
([a195442](https://github.com/noir-lang/noir/commit/a19544247fffaf5d2fe0d6d45013f833576f7c61))
* **perf:** Remove redundant inc rc without instructions between
([#6183](https://github.com/noir-lang/noir/issues/6183))
([be9dcfe](https://github.com/noir-lang/noir/commit/be9dcfe56d808b1bd5ef552d41274705b2df7062))
* **perf:** Remove unused loads in mem2reg and last stores per function
([#5925](https://github.com/noir-lang/noir/issues/5925))
([19eef30](https://github.com/noir-lang/noir/commit/19eef30cdbd8a3a4671aabbbe66b5481a5dec3f7))
* **perf:** Remove useless paired RC instructions within a block during
DIE ([#6160](https://github.com/noir-lang/noir/issues/6160))
([59c4118](https://github.com/noir-lang/noir/commit/59c41182faa19d1cb8c9be5c11d50636fc17dad7))
* **perf:** Simplify the cfg after DIE
([#6184](https://github.com/noir-lang/noir/issues/6184))
([a1b5046](https://github.com/noir-lang/noir/commit/a1b50466bfd8c44d50440e00ecb50e29425471e5))
* Pretty print Quoted token stream
([#6111](https://github.com/noir-lang/noir/issues/6111))
([cd81f85](https://github.com/noir-lang/noir/commit/cd81f85856a477e208533ebd0915b5901c1bb184))
* Refactor SSA passes to run on individual functions
([#6072](https://github.com/noir-lang/noir/issues/6072))
([85c502c](https://github.com/noir-lang/noir/commit/85c502c9fa69b151fdff1a97b5a97ad78cb599ab))
* Remove aztec macros
([#6087](https://github.com/noir-lang/noir/issues/6087))
([9d96207](https://github.com/noir-lang/noir/commit/9d962077630131840f0cb7c211f462b579b0b577))
* Remove orphaned blocks from cfg to improve `simplify_cfg` pass.
([#6198](https://github.com/noir-lang/noir/issues/6198))
([b4712c5](https://github.com/noir-lang/noir/commit/b4712c5ba50ef38789978522afcd251ffbcf8780))
* Remove sha256 opcode
(https://github.com/AztecProtocol/aztec-packages/pull/4571)
([e8bbce7](https://github.com/noir-lang/noir/commit/e8bbce71fde3fc7af410c30920c2a547389d8248))
* Remove unnecessary branching in keccak impl
([#6133](https://github.com/noir-lang/noir/issues/6133))
([9c69dce](https://github.com/noir-lang/noir/commit/9c69dce2250b6fc656af8d9c06d7fac34b35c73a))
* Represent assertions more similarly to function calls
([#6103](https://github.com/noir-lang/noir/issues/6103))
([3ecd0e2](https://github.com/noir-lang/noir/commit/3ecd0e29441d27bc77c49993495209a70be0d86e))
* Show test output when running via LSP
([#6049](https://github.com/noir-lang/noir/issues/6049))
([9fb010e](https://github.com/noir-lang/noir/commit/9fb010ef8a93cf25e4d361ee42aa8969e5a46bab))
* Simplify sha256 implementation
([#6142](https://github.com/noir-lang/noir/issues/6142))
([acdfbbc](https://github.com/noir-lang/noir/commit/acdfbbc4ecc9d213dc885a12952e29e188420dff))
* Skip `remove_enable_side_effects` pass on brillig functions
([#6199](https://github.com/noir-lang/noir/issues/6199))
([2303615](https://github.com/noir-lang/noir/commit/2303615815a2a60de8ac3dd53349f85201660917))
* **ssa:** Simplify signed casts
([#6166](https://github.com/noir-lang/noir/issues/6166))
([eec3a61](https://github.com/noir-lang/noir/commit/eec3a6152493e56866ec5338ff52f823c530778e))
* Swap endianness in-place in keccak implementation
([#6128](https://github.com/noir-lang/noir/issues/6128))
([e3cdebe](https://github.com/noir-lang/noir/commit/e3cdebe515e4dc4ee6e16e01bd8af25135939798))
* Syncing TypeVariableKind with Kind
([#6094](https://github.com/noir-lang/noir/issues/6094))
([6440e18](https://github.com/noir-lang/noir/commit/6440e183085160d77563b4e735ccaaf199e21693))
* Visibility for globals
([#6161](https://github.com/noir-lang/noir/issues/6161))
([103b54d](https://github.com/noir-lang/noir/commit/103b54db8a5a81ecf76381fe99320c1e1f606898))
* Visibility for modules
([#6165](https://github.com/noir-lang/noir/issues/6165))
([fcdbcb9](https://github.com/noir-lang/noir/commit/fcdbcb91afb18771cbb5ee48628e171845f22f5f))
* Visibility for traits
([#6056](https://github.com/noir-lang/noir/issues/6056))
([5bbd9ba](https://github.com/noir-lang/noir/commit/5bbd9ba9a6d6494fd16813b44036b78c871f6613))
* Visibility for type aliases
([#6058](https://github.com/noir-lang/noir/issues/6058))
([66d2a07](https://github.com/noir-lang/noir/commit/66d2a07f0fedb04422c218cbe8d6fb080efac994))


### Bug Fixes

* (LSP) make goto and hover work well for attributes
([#6152](https://github.com/noir-lang/noir/issues/6152))
([c679bc6](https://github.com/noir-lang/noir/commit/c679bc6bbd291b6264820dd497b37279116a1cd2))
* Allow macros to change types on each iteration of a comptime loop
([#6105](https://github.com/noir-lang/noir/issues/6105))
([0864e7c](https://github.com/noir-lang/noir/commit/0864e7c945089cc06f8cc9e5c7d933c465d8c892))
* Allow providing default implementations of unconstrained trait methods
([#6138](https://github.com/noir-lang/noir/issues/6138))
([7679bbc](https://github.com/noir-lang/noir/commit/7679bbc10cb2fa480489fe1aad83fe77ec2af7e8))
* Always parse all tokens from quoted token streams
([#6064](https://github.com/noir-lang/noir/issues/6064))
([23ed74b](https://github.com/noir-lang/noir/commit/23ed74bc94ec4da8dbd35da0ae39b26c7ef601e5))
* Be more lenient with semicolons on interned expressions
([#6062](https://github.com/noir-lang/noir/issues/6062))
([052c4fe](https://github.com/noir-lang/noir/commit/052c4fe52a4df9d6492f9b0d6b449151b87b18d5))
* Consider constants as used values to keep their rc ops
([#6122](https://github.com/noir-lang/noir/issues/6122))
([1217005](https://github.com/noir-lang/noir/commit/12170056102ea15698aacc820876fee0bb7d0c68))
* Correct stack trace order in comptime assertion failures
([#6066](https://github.com/noir-lang/noir/issues/6066))
([04f1636](https://github.com/noir-lang/noir/commit/04f1636ca0ccd741c72fa98d6c26227ea9835b0c))
* Databus panic for fns with empty params
(https://github.com/AztecProtocol/aztec-packages/pull/8847)
([d252748](https://github.com/noir-lang/noir/commit/d2527482dafef694be2f389e5b4dbc813234da71))
* Decode databus return values
([#6095](https://github.com/noir-lang/noir/issues/6095))
([c40eb1f](https://github.com/noir-lang/noir/commit/c40eb1fd8a0ba63b2d122e42b47dfa9dca5bf7b0))
* Disable side-effects for no_predicates functions
([#6027](https://github.com/noir-lang/noir/issues/6027))
([fc74c55](https://github.com/noir-lang/noir/commit/fc74c55ffed892962413c6fe15af62e1d2e7b785))
* Disambiguate field or int static trait method call
([#6112](https://github.com/noir-lang/noir/issues/6112))
([5b27ea4](https://github.com/noir-lang/noir/commit/5b27ea4d8031318723cc2b97f76758d401a565a0))
* Do not duplicate constant arrays in brillig
([#6155](https://github.com/noir-lang/noir/issues/6155))
([68f3022](https://github.com/noir-lang/noir/commit/68f3022fcdaab6e379e43091b3242e6ea51cff26))
* **docs:** Rename recursion.md to recursion.mdx
([#6195](https://github.com/noir-lang/noir/issues/6195))
([054e48b](https://github.com/noir-lang/noir/commit/054e48b76e7b083feb500d30c54912f9db57c565))
* Don't crash on untyped global used as array length
([#6076](https://github.com/noir-lang/noir/issues/6076))
([426f295](https://github.com/noir-lang/noir/commit/426f2955cbe4f086581d05eea7d06c47e0491195))
* Ensure to_bytes returns the canonical decomposition
([#6084](https://github.com/noir-lang/noir/issues/6084))
([b280a79](https://github.com/noir-lang/noir/commit/b280a79cf8a4fd2a97200e5436e0ec7cb7134711))
* Error on `&mut x` when `x` is not mutable
([#6037](https://github.com/noir-lang/noir/issues/6037))
([57afc7d](https://github.com/noir-lang/noir/commit/57afc7ddd424220106af7b9c6e0715007f6ea8b8))
* Fix canonicalization bug
([#6033](https://github.com/noir-lang/noir/issues/6033))
([7397772](https://github.com/noir-lang/noir/commit/739777214863de4088162711953f26ca992b356e))
* Fix comptime type formatting
([#6079](https://github.com/noir-lang/noir/issues/6079))
([e678091](https://github.com/noir-lang/noir/commit/e67809165c277423e25110c3f1f8eff6e8daa0e4))
* Handle multi-byte utf8 characters in formatter
([#6118](https://github.com/noir-lang/noir/issues/6118))
([b1d0619](https://github.com/noir-lang/noir/commit/b1d061926376965805ef3ece3e32d94df81462a6))
* Handle parenthesized expressions in array length
([#6132](https://github.com/noir-lang/noir/issues/6132))
([9f0b397](https://github.com/noir-lang/noir/commit/9f0b3971ee41e78241cbea4e3f81bac4edd5897d))
* Ignore compression of blocks after msg.len in sha256_var
([#6206](https://github.com/noir-lang/noir/issues/6206))
([76eec71](https://github.com/noir-lang/noir/commit/76eec710ff73e5e45fdddcd41ae2cd74e879cfa5))
* Infer globals to be u32 when used in a type
([#6083](https://github.com/noir-lang/noir/issues/6083))
([78262c9](https://github.com/noir-lang/noir/commit/78262c96d5b116c77e50653f9059da60824db812))
* Initialise databus using return values
([#6074](https://github.com/noir-lang/noir/issues/6074))
([e17dfa5](https://github.com/noir-lang/noir/commit/e17dfa55719f0cfb1080dd25eeda7b70ed44b60d))
* Let LSP suggest fields and methods in LValue chains
([#6051](https://github.com/noir-lang/noir/issues/6051))
([5bf6567](https://github.com/noir-lang/noir/commit/5bf6567320629835ef6fa7765ca87e9b38ae4c9a))
* Let token pretty printer handle `+=` and similar token sequences
([#6135](https://github.com/noir-lang/noir/issues/6135))
([684b6cc](https://github.com/noir-lang/noir/commit/684b6cc7deb3ed7ecbb2cea4663e8e9a3ae075f0))
* **mem2reg:** Remove possibility of underflow
([#6107](https://github.com/noir-lang/noir/issues/6107))
([aea5cc7](https://github.com/noir-lang/noir/commit/aea5cc789ccf4a4d16b1d238d99474f37920b37e))
* Parse a statement as an expression
([#6040](https://github.com/noir-lang/noir/issues/6040))
([ab203e4](https://github.com/noir-lang/noir/commit/ab203e4ee902b9137519f9a4261ec368d22f0a25))
* Pass radix directly to the blackbox
([#6164](https://github.com/noir-lang/noir/issues/6164))
([82b89c4](https://github.com/noir-lang/noir/commit/82b89c421da80b719922416d574c1bbaa73d55b4))
* Preserve generic kind on trait methods
([#6099](https://github.com/noir-lang/noir/issues/6099))
([1df102a](https://github.com/noir-lang/noir/commit/1df102a1ee0eb39dcbada50e10b226c7f7be0f26))
* Prevent check_can_mutate crashing on undefined variable
([#6044](https://github.com/noir-lang/noir/issues/6044))
([b3accfc](https://github.com/noir-lang/noir/commit/b3accfc99249ccd198051ecb98cf7962af64a629))
* Revert mistaken stack size change
([#6212](https://github.com/noir-lang/noir/issues/6212))
([a37117a](https://github.com/noir-lang/noir/commit/a37117aca3340447d807c1cf3ca79ba573ceaf8b))
* **ssa:** Check if result of array set is used in value of another
array set ([#6197](https://github.com/noir-lang/noir/issues/6197))
([594ec91](https://github.com/noir-lang/noir/commit/594ec91de55c4cf191d7cdc94a00bb16711cd430))
* **ssa:** RC correctness issue
([#6134](https://github.com/noir-lang/noir/issues/6134))
([5b1c896](https://github.com/noir-lang/noir/commit/5b1c896c605ed1047fc17a437e0b58792a778e2d))
* Type variables by default should have Any kind
([#6203](https://github.com/noir-lang/noir/issues/6203))
([268f2a0](https://github.com/noir-lang/noir/commit/268f2a0240c507646c65c932748d1bdf062d00b1))
* Unify macro result type with actual type
([#6086](https://github.com/noir-lang/noir/issues/6086))
([af52873](https://github.com/noir-lang/noir/commit/af52873dbec9ab980d17d9ba4336181c006a9a53))
* Update databus in flattening
([#6063](https://github.com/noir-lang/noir/issues/6063))
([e993da1](https://github.com/noir-lang/noir/commit/e993da1b01aa98deed2af7b5cba2da216fb036a0))


### Miscellaneous Chores

* Removing implicit numeric generics
([#5837](https://github.com/noir-lang/noir/issues/5837))
([eda9043](https://github.com/noir-lang/noir/commit/eda904328b269b5926f8a82ab82e52a485903bbe))
</details>

<details><summary>0.51.0</summary>

## [0.51.0](https://github.com/noir-lang/noir/compare/v0.50.0...v0.51.0)
(2024-10-03)


### ⚠ BREAKING CHANGES

* remove sha256 opcode
(https://github.com/AztecProtocol/aztec-packages/pull/4571)
* add support for u1 in the avm, ToRadix's radix arg is a memory addr
(https://github.com/AztecProtocol/aztec-packages/pull/8570)
* Add Not instruction in brillig
(https://github.com/AztecProtocol/aztec-packages/pull/8488)
* **avm:** variants for SET opcode
(https://github.com/AztecProtocol/aztec-packages/pull/8441)
* **avm/brillig:** take addresses in calldatacopy
(https://github.com/AztecProtocol/aztec-packages/pull/8388)
* constant inputs for blackbox
(https://github.com/AztecProtocol/aztec-packages/pull/7222)

### Features

* (bb) 128-bit challenges
(https://github.com/AztecProtocol/aztec-packages/pull/8406)
([3c3ed1e](https://github.com/noir-lang/noir/commit/3c3ed1e3d28946a02071c524dd128afe131bc3da))
* **acir_gen:** Width aware ACIR gen addition
([#5493](https://github.com/noir-lang/noir/issues/5493))
([85fa592](https://github.com/noir-lang/noir/commit/85fa592fdef3b8589ce03b232e1b51565837b540))
* Add assertions for ACVM `FunctionInput` `bit_size`
([#5864](https://github.com/noir-lang/noir/issues/5864))
([8712f4c](https://github.com/noir-lang/noir/commit/8712f4c20d23f3809bcfb03f2e3ba0e5ace20a1d))
* Add Not instruction in brillig
(https://github.com/AztecProtocol/aztec-packages/pull/8488)
([95e19ab](https://github.com/noir-lang/noir/commit/95e19ab9486ad054241b6e53e40e55bdba9dc7e5))
* Add recursive aggregation object to proving/verification keys
(https://github.com/AztecProtocol/aztec-packages/pull/6770)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Add reusable procedures to brillig generation
(https://github.com/AztecProtocol/aztec-packages/pull/7981)
([5c4f19f](https://github.com/noir-lang/noir/commit/5c4f19f097dd3704522996330c961bf0a2db8d99))
* Add support for u1 in the avm, ToRadix's radix arg is a memory addr
(https://github.com/AztecProtocol/aztec-packages/pull/8570)
([e8bbce7](https://github.com/noir-lang/noir/commit/e8bbce71fde3fc7af410c30920c2a547389d8248))
* Added indirect const instruction
(https://github.com/AztecProtocol/aztec-packages/pull/8065)
([5c4f19f](https://github.com/noir-lang/noir/commit/5c4f19f097dd3704522996330c961bf0a2db8d99))
* Adding aggregation to honk and rollup
(https://github.com/AztecProtocol/aztec-packages/pull/7466)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Automate verify_honk_proof input generation
(https://github.com/AztecProtocol/aztec-packages/pull/8092)
([5c4f19f](https://github.com/noir-lang/noir/commit/5c4f19f097dd3704522996330c961bf0a2db8d99))
* **avm/brillig:** Take addresses in calldatacopy
(https://github.com/AztecProtocol/aztec-packages/pull/8388)
([3c3ed1e](https://github.com/noir-lang/noir/commit/3c3ed1e3d28946a02071c524dd128afe131bc3da))
* **avm:** Variants for SET opcode
(https://github.com/AztecProtocol/aztec-packages/pull/8441)
([3c3ed1e](https://github.com/noir-lang/noir/commit/3c3ed1e3d28946a02071c524dd128afe131bc3da))
* Avoid heap allocs when going to/from field
(https://github.com/AztecProtocol/aztec-packages/pull/7547)
([daad75c](https://github.com/noir-lang/noir/commit/daad75c26d19ae707b90a7424b77dab9937e8575))
* Change the layout of arrays and vectors to be a single pointer
(https://github.com/AztecProtocol/aztec-packages/pull/8448)
([d4832ec](https://github.com/noir-lang/noir/commit/d4832ece9d3ad16544afea49cc7caf40501a2cc3))
* Constant inputs for blackbox
(https://github.com/AztecProtocol/aztec-packages/pull/7222)
([fb97bb9](https://github.com/noir-lang/noir/commit/fb97bb9b795c9d7af395b82fd6f0ea8111d59c11))
* Hook up secondary calldata column in dsl
(https://github.com/AztecProtocol/aztec-packages/pull/7759)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Integrate new proving systems in e2e
(https://github.com/AztecProtocol/aztec-packages/pull/6971)
([daad75c](https://github.com/noir-lang/noir/commit/daad75c26d19ae707b90a7424b77dab9937e8575))
* Make Brillig do integer arithmetic operations using u128 instead of
Bigint (https://github.com/AztecProtocol/aztec-packages/pull/7518)
([daad75c](https://github.com/noir-lang/noir/commit/daad75c26d19ae707b90a7424b77dab9937e8575))
* Make token transfer be recursive
(https://github.com/AztecProtocol/aztec-packages/pull/7730)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* New test programs for wasm benchmarking
(https://github.com/AztecProtocol/aztec-packages/pull/8389)
([95e19ab](https://github.com/noir-lang/noir/commit/95e19ab9486ad054241b6e53e40e55bdba9dc7e5))
* Note hashes as points
(https://github.com/AztecProtocol/aztec-packages/pull/7618)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Optimize allocating immediate amounts of memory
(https://github.com/AztecProtocol/aztec-packages/pull/8579)
([e8bbce7](https://github.com/noir-lang/noir/commit/e8bbce71fde3fc7af410c30920c2a547389d8248))
* Optimize constant array handling in brillig_gen
(https://github.com/AztecProtocol/aztec-packages/pull/7661)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Optimize to_radix
(https://github.com/AztecProtocol/aztec-packages/pull/8073)
([5c4f19f](https://github.com/noir-lang/noir/commit/5c4f19f097dd3704522996330c961bf0a2db8d99))
* Pass calldata ids to the backend
(https://github.com/AztecProtocol/aztec-packages/pull/7875)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Poseidon2 gates for Ultra arithmetisation
(https://github.com/AztecProtocol/aztec-packages/pull/7494)
([5c4f19f](https://github.com/noir-lang/noir/commit/5c4f19f097dd3704522996330c961bf0a2db8d99))
* **profiler:** Add support for brillig functions in opcodes-flamegraph
(https://github.com/AztecProtocol/aztec-packages/pull/7698)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Remove sha256 opcode
(https://github.com/AztecProtocol/aztec-packages/pull/4571)
([e8bbce7](https://github.com/noir-lang/noir/commit/e8bbce71fde3fc7af410c30920c2a547389d8248))
* Removing superfluous call to MSM
(https://github.com/AztecProtocol/aztec-packages/pull/7708)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Report gates and VKs of private protocol circuits with megahonk
(https://github.com/AztecProtocol/aztec-packages/pull/7722)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Simplify constant calls to `poseidon2_permutation`, `schnorr_verify`
and `embedded_curve_add`
([#5140](https://github.com/noir-lang/noir/issues/5140))
([2823ba7](https://github.com/noir-lang/noir/commit/2823ba7242db788ca1d7f6e7a48be2f1de62f278))
* Small optimization in toradix
(https://github.com/AztecProtocol/aztec-packages/pull/8040)
([5c4f19f](https://github.com/noir-lang/noir/commit/5c4f19f097dd3704522996330c961bf0a2db8d99))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7392)
([fb97bb9](https://github.com/noir-lang/noir/commit/fb97bb9b795c9d7af395b82fd6f0ea8111d59c11))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7400)
([fb97bb9](https://github.com/noir-lang/noir/commit/fb97bb9b795c9d7af395b82fd6f0ea8111d59c11))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7432)
([daad75c](https://github.com/noir-lang/noir/commit/daad75c26d19ae707b90a7424b77dab9937e8575))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7444)
([daad75c](https://github.com/noir-lang/noir/commit/daad75c26d19ae707b90a7424b77dab9937e8575))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7454)
([daad75c](https://github.com/noir-lang/noir/commit/daad75c26d19ae707b90a7424b77dab9937e8575))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7512)
([daad75c](https://github.com/noir-lang/noir/commit/daad75c26d19ae707b90a7424b77dab9937e8575))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7577)
([daad75c](https://github.com/noir-lang/noir/commit/daad75c26d19ae707b90a7424b77dab9937e8575))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7583)
([daad75c](https://github.com/noir-lang/noir/commit/daad75c26d19ae707b90a7424b77dab9937e8575))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7743)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7862)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7945)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7958)
([5c4f19f](https://github.com/noir-lang/noir/commit/5c4f19f097dd3704522996330c961bf0a2db8d99))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/8008)
([5c4f19f](https://github.com/noir-lang/noir/commit/5c4f19f097dd3704522996330c961bf0a2db8d99))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/8093)
([5c4f19f](https://github.com/noir-lang/noir/commit/5c4f19f097dd3704522996330c961bf0a2db8d99))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/8125)
([f0c2686](https://github.com/noir-lang/noir/commit/f0c268606a71381ab4504396695a0adb9b3258b6))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/8237)
([f0c2686](https://github.com/noir-lang/noir/commit/f0c268606a71381ab4504396695a0adb9b3258b6))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/8423)
([3c3ed1e](https://github.com/noir-lang/noir/commit/3c3ed1e3d28946a02071c524dd128afe131bc3da))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/8435)
([3c3ed1e](https://github.com/noir-lang/noir/commit/3c3ed1e3d28946a02071c524dd128afe131bc3da))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/8466)
([3c3ed1e](https://github.com/noir-lang/noir/commit/3c3ed1e3d28946a02071c524dd128afe131bc3da))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/8482)
([d4832ec](https://github.com/noir-lang/noir/commit/d4832ece9d3ad16544afea49cc7caf40501a2cc3))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/8512)
([95e19ab](https://github.com/noir-lang/noir/commit/95e19ab9486ad054241b6e53e40e55bdba9dc7e5))
* Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/8526)
([95e19ab](https://github.com/noir-lang/noir/commit/95e19ab9486ad054241b6e53e40e55bdba9dc7e5))
* TXE nr deployments, dependency cleanup for CLI
(https://github.com/AztecProtocol/aztec-packages/pull/7548)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Typing return values of embedded_curve_ops
(https://github.com/AztecProtocol/aztec-packages/pull/7413)
([daad75c](https://github.com/noir-lang/noir/commit/daad75c26d19ae707b90a7424b77dab9937e8575))
* Unify all acir recursion constraints based on RecursionConstraint and
proof_type (https://github.com/AztecProtocol/aztec-packages/pull/7993)
([5c4f19f](https://github.com/noir-lang/noir/commit/5c4f19f097dd3704522996330c961bf0a2db8d99))


### Bug Fixes

* Add trailing extra arguments for backend in gates_flamegraph
(https://github.com/AztecProtocol/aztec-packages/pull/7472)
([daad75c](https://github.com/noir-lang/noir/commit/daad75c26d19ae707b90a7424b77dab9937e8575))
* **debugger:** Update the debugger to handle the new Brillig debug
metadata format ([#5706](https://github.com/noir-lang/noir/issues/5706))
([a31f82e](https://github.com/noir-lang/noir/commit/a31f82e598def60d00c65b79b8c5411f8aa832aa))
* Deflatten databus visibilities
(https://github.com/AztecProtocol/aztec-packages/pull/7761)
([4ea25db](https://github.com/noir-lang/noir/commit/4ea25dbde87488e758139619a3ce4edf93c6ebd6))
* Do not duplicate redundant Brillig debug metadata
([#5696](https://github.com/noir-lang/noir/issues/5696))
([e4f7dbe](https://github.com/noir-lang/noir/commit/e4f7dbe63b55807b3ff0b4d6f47a8b7f847299fb))
* Export brillig names in contract functions
(https://github.com/AztecProtocol/aztec-packages/pull/8212)
([f0c2686](https://github.com/noir-lang/noir/commit/f0c268606a71381ab4504396695a0adb9b3258b6))
* Handle multiple entry points for Brillig call stack resolution after
metadata deduplication
([#5788](https://github.com/noir-lang/noir/issues/5788))
([38fe9dd](https://github.com/noir-lang/noir/commit/38fe9dda111952fdb894df90a319c087382edfc9))
* Move BigInt modulus checks to runtime in brillig
([#5374](https://github.com/noir-lang/noir/issues/5374))
([741d339](https://github.com/noir-lang/noir/commit/741d33991f8e2918bf092c354ca56047e0274533))
* Restrict keccak256_injective test input to 8 bits
([#5977](https://github.com/noir-lang/noir/issues/5977))
([a1b1346](https://github.com/noir-lang/noir/commit/a1b1346bf7525c508fd390393c307475cc2345d7))
* Revert "feat: Sync from noir
(https://github.com/AztecProtocol/aztec-packages/pull/7512)"
(https://github.com/AztecProtocol/aztec-packages/pull/7558)
([daad75c](https://github.com/noir-lang/noir/commit/daad75c26d19ae707b90a7424b77dab9937e8575))
* Runtime brillig bigint id assignment
([#5369](https://github.com/noir-lang/noir/issues/5369))
([a8928dd](https://github.com/noir-lang/noir/commit/a8928ddcffcae15babf7aa5aff0e462e4549552e))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

nightly-2024-10-02: feat!: Syncing TypeVariableKind with Kind (#6094)

02 Oct 02:28
6440e18
Compare
Choose a tag to compare
# Description

## Problem\*

Resolves https://github.com/noir-lang/noir/issues/6067

## Summary\*

- Combines `TypeVariableKind` and `Kind` (now only `Kind`)
- Adds `Kind` arguments where needed
- Adds more `Kind` checks

## Additional Context



## Documentation\*

Check one:
- [x] No documentation needed.
- [ ] 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.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.

---------

Co-authored-by: Tom French <[email protected]>
Co-authored-by: Maxim Vezenov <[email protected]>

nightly-2024-10-01: feat(perf): Remove redundant inc rc without instructions between (#6183)

01 Oct 02:32
be9dcfe
Compare
Choose a tag to compare
# Description

## Problem\*

Part of general effort to reduce Brillig bytecode sizes. 

## Summary\*

We often have patterns like such (example from
`brillig_rc_regression_6123`):
```
brillig fn main f0 {
  b0():
    inc_rc [Field 0, Field 0]
    inc_rc [Field 0, Field 0]
    inc_rc [Field 0, Field 0]
    inc_rc [Field 0, Field 0]
    inc_rc [Field 0, Field 0]
    v4 = allocate
    store [Field 0, Field 0] at v4
    v5 = allocate
    store u32 0 at v5
    inc_rc [Field 0, Field 0]
    v7 = allocate
    store [Field 0, Field 0] at v7
    inc_rc [Field 0, Field 0]
    inc_rc [Field 0, Field 0]
    jmp b1(u32 0)
```
It is usually due to each impl method that mutably borrows self placing
inc RCs on the internal arrays of the struct for which it is
implementing the method. Without any instructions in between these
`inc_rc` instructions, we can safely collapse the inc_rcs into a single
one.

The SSA was `brillig_rc_regression_6123` now looks like such:
```
brillig fn main f0 {
  b0():
    inc_rc [Field 0, Field 0]
    v4 = allocate
    store [Field 0, Field 0] at v4
    v5 = allocate
    store u32 0 at v5
    inc_rc [Field 0, Field 0]
    v7 = allocate
    store [Field 0, Field 0] at v7
    inc_rc [Field 0, Field 0]
    jmp b1(u32 0)
```

This PR does a slight refactor as the `track_inc_rcs_to_remove` was
starting to take a lot of parameters. I made a new `RcTracker` struct.
Its state is simply updated per instruction as previously and then the
instructions it marks for removal are including at the end of performing
DIE on a block.

## Additional Context

## Documentation\*

Check one:
- [X] No documentation needed.
- [ ] 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.
- [X] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.

nightly-2024-09-30: feat(ssa): Simplify signed casts (#6166)

30 Sep 02:31
eec3a61
Compare
Choose a tag to compare
# Description

## Problem\*

Resolves <!-- Link to GitHub Issue -->

Small optimization I noticed while working on other tasks.

## Summary\*

We currently simplify when casting to a field or an unsigned type. We
can also simplify when casting to a signed type. This is an initial
version that is quite conservative in the simplification. If we we have
a constant that is below `2^(bit_size-1)` when casting to a signed type
we return the constant with the new signed type. I also added the case
of signed -> field as this can be the same as going unsigned -> field.

## Additional Context



## Documentation\*

Check one:
- [X] No documentation needed.
- [ ] 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.
- [X] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.

nightly-2024-09-29: feat(ssa): Simplify signed casts (#6166)

29 Sep 02:30
eec3a61
Compare
Choose a tag to compare
# Description

## Problem\*

Resolves <!-- Link to GitHub Issue -->

Small optimization I noticed while working on other tasks.

## Summary\*

We currently simplify when casting to a field or an unsigned type. We
can also simplify when casting to a signed type. This is an initial
version that is quite conservative in the simplification. If we we have
a constant that is below `2^(bit_size-1)` when casting to a signed type
we return the constant with the new signed type. I also added the case
of signed -> field as this can be the same as going unsigned -> field.

## Additional Context



## Documentation\*

Check one:
- [X] No documentation needed.
- [ ] 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.
- [X] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.

nightly-2024-09-28: feat(ssa): Simplify signed casts (#6166)

28 Sep 02:27
eec3a61
Compare
Choose a tag to compare
# Description

## Problem\*

Resolves <!-- Link to GitHub Issue -->

Small optimization I noticed while working on other tasks.

## Summary\*

We currently simplify when casting to a field or an unsigned type. We
can also simplify when casting to a signed type. This is an initial
version that is quite conservative in the simplification. If we we have
a constant that is below `2^(bit_size-1)` when casting to a signed type
we return the constant with the new signed type. I also added the case
of signed -> field as this can be the same as going unsigned -> field.

## Additional Context



## Documentation\*

Check one:
- [X] No documentation needed.
- [ ] 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.
- [X] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.

nightly-2024-09-27: chore: enable tests on aztec-nr and contracts (#6162)

27 Sep 02:28
fd03ea0
Compare
Choose a tag to compare
# Description

## Problem\*

Resolves <!-- Link to GitHub Issue -->

## Summary\*

Testing these again now that aztec-nr doesn't have 40k warnings.

## Additional Context



## Documentation\*

Check one:
- [ ] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.

# PR Checklist\*

- [ ] I have tested the changes locally.
- [ ] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.