Skip to content

chore: use core instead of base#3

Closed
ggreif wants to merge 4 commits intoNatLabs:mainfrom
ggreif:core
Closed

chore: use core instead of base#3
ggreif wants to merge 4 commits intoNatLabs:mainfrom
ggreif:core

Conversation

@ggreif
Copy link
Copy Markdown
Contributor

@ggreif ggreif commented Mar 11, 2026

No description provided.

ggreif and others added 2 commits January 26, 2026 11:12
- Replace all mo:base@0.14.13/* imports with mo:core/* equivalents
- Add ListBuffer<A> class backed by mo:core/List as Buffer replacement
- Replace B.Buffer<N>(cap) with ListBuffer<N>(), B.toArray with .toArray()
- Replace BInterface.fromDeprecatedBuffer(b) with { write = b.add }
- Replace Debug.trap with Runtime.trap (mo:core/Debug has no trap)
- Replace Iter.range (inclusive) with Nat.range (exclusive upper bound)
- Fix Int64.maximumValue -> Int64.maxValue for mo:core API
- Update mops.toml: remove base/buffer deps, add core, bump moc to 1.3.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
mops.toml Outdated
[dependencies]
'base@0.14.13' = "0.14.13"
'xtended-numbers@2.0.0' = "2.0.0"
core = "2.1.0"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this may need a bump, IIRC 2.2.0 is out

@ggreif ggreif marked this pull request as ready for review March 20, 2026 19:34
@tomijaga
Copy link
Copy Markdown
Member

tomijaga commented Apr 1, 2026

Hey @ggreif, thanks for the changes to replace the base lib with core.
I made a few changes to update the benchmark and test files to use core as well.

I'm merging both in this new PR - #4

@tomijaga
Copy link
Copy Markdown
Member

tomijaga commented Apr 1, 2026

Merged and bumped version to 0.2.0 -> https://mops.one/byte-utils/versions

@tomijaga tomijaga closed this Apr 1, 2026
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.

2 participants