Skip to content

Conversation

@rvanasa
Copy link
Collaborator

@rvanasa rvanasa commented Sep 29, 2025

Expands on #397.

@rvanasa rvanasa requested a review from a team as a code owner September 29, 2025 17:55
@github-actions
Copy link

github-actions bot commented Sep 29, 2025

No description provided.

Copy link
Contributor

@christoph-dfinity christoph-dfinity left a comment

Choose a reason for hiding this comment

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

I added comments to the two patterns that need changing I spotted. Thanks for doing this!

Co-authored-by: Christoph <christoph.hegemann@dfinity.org>
Co-authored-by: Claudio Russo <claudio@dfinity.org>
rvanasa and others added 2 commits September 29, 2025 12:35
Co-authored-by: Claudio Russo <claudio@dfinity.org>
rvanasa and others added 2 commits September 29, 2025 12:39
Co-authored-by: Claudio Russo <claudio@dfinity.org>
@rvanasa rvanasa changed the title More implicits Implicit pattern across entire core package Sep 29, 2025
@rvanasa
Copy link
Collaborator Author

rvanasa commented Sep 29, 2025

@christoph-dfinity, feel free to merge into #397. Claudio and I looked this over, and it should cover all of the compare, equal, and toText functions.

Copy link
Contributor

@christoph-dfinity christoph-dfinity left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for doing this

@christoph-dfinity christoph-dfinity merged commit a6ccbc0 into christoph/implicits Sep 29, 2025
7 of 8 checks passed
@christoph-dfinity christoph-dfinity deleted the ryan/implicits branch September 29, 2025 19:12
P4P5T123 pushed a commit that referenced this pull request Oct 9, 2025
* First pass

* Another pass

* Fix stragglers

* Fix more stragglers

* Apply suggestions from code review

Co-authored-by: Christoph <christoph.hegemann@dfinity.org>
Co-authored-by: Claudio Russo <claudio@dfinity.org>

* Apply suggestions from code review

Co-authored-by: Claudio Russo <claudio@dfinity.org>

* Various fixes

* Apply suggestions from code review

Co-authored-by: Claudio Russo <claudio@dfinity.org>

* Fix

* Update API lockfile

---------

Co-authored-by: Christoph <christoph.hegemann@dfinity.org>
Co-authored-by: Claudio Russo <claudio@dfinity.org>
christoph-dfinity added a commit that referenced this pull request Oct 13, 2025
* chore: updates matchers package to mops release (#394)

* makes comparison arguments to Map functions implicit

* use implicits in tests for Map

* make comparison arguments to Set functions implicit

* update Set tests to use implicits

* remove local bindings, now that we can disambiguate Nat and Int

* make equal arguments implicit

* rename internal Map and Set size to size_ to avoid clash with contextual dot

* Implicit pattern across entire `core` package (#398)

* First pass

* Another pass

* Fix stragglers

* Fix more stragglers

* Apply suggestions from code review

Co-authored-by: Christoph <christoph.hegemann@dfinity.org>
Co-authored-by: Claudio Russo <claudio@dfinity.org>

* Apply suggestions from code review

Co-authored-by: Claudio Russo <claudio@dfinity.org>

* Various fixes

* Apply suggestions from code review

Co-authored-by: Claudio Russo <claudio@dfinity.org>

* Fix

* Update API lockfile

---------

Co-authored-by: Christoph <christoph.hegemann@dfinity.org>
Co-authored-by: Claudio Russo <claudio@dfinity.org>

* rename .size on Queue

* add TODO comment

* I was using a stale compiler

* updates the toolchain to a pre-release

* updated mops to pull down draft branch and adjust tests (#399)

* feat: Add PriorityQueue (#392)

* Partial implementation.

* Fix bug and add peek.

* Started with tests, and more functions.

* Towards more tests, adding SetPriorityQueue.

* Completing first implementation, with tests.

* Add comments to PriorityQueue.mo

* Move set implementation and add benchmark.

* Better holes.

* Extra benchmark.

* More tests.

* .

* Comments.

* Optimization.

* Comments for SetWrapper.

* Move SetWrapper.

* Run format.

* .

* npm run validate

* Fix imports in docstrings.

* Add Changelog entry.

* Fix Changelog entry.

* Remove inefficient push and pop operations (and benchmarks for them).

* Move PriorityQueueSet.mo

* Fix validation.

* Update Changelog.

* Update implicits for RealTimeQueue

* Update implicits for PriorityQueue

* Update API lockfile

---------

Co-authored-by: Ryan Vandersmith <ryan.vandersmith@dfinity.org>
Co-authored-by: Claudio Russo <claudio@dfinity.org>
Co-authored-by: Andrei Constantinescu <andrei.constantinescu@dfinity.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants