Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Nat #6422

Merged
merged 84 commits into from
Feb 20, 2024
Merged

Remove Nat #6422

merged 84 commits into from
Feb 20, 2024

Conversation

rtfeldman
Copy link
Contributor

@rtfeldman rtfeldman commented Jan 24, 2024

Now everything in public APIs that was Nat is U64 instead.

(In-memory data structures are the same as before; we cast to/from usize behind the scenes.)

This also removes some builtin functions:

  • Str.fromUtf8Range because seamless slices make it unnecessary (can now do List.sublist followed by Str.fromUtf8 to get the same functionality).
  • Num.bytesToU16 and friends - now that we have seamless slices, these shouldn't be part of builtins anymore. Explicit endianness is needed, at which point these can be done in userspace just fine.

Copy link
Collaborator

@Anton-4 Anton-4 left a comment

Choose a reason for hiding this comment

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

Looks good :)

@rtfeldman rtfeldman merged commit 3b3a330 into main Feb 20, 2024
17 checks passed
@rtfeldman rtfeldman deleted the remove-nat branch February 20, 2024 14:45
@skyqrose skyqrose mentioned this pull request Nov 3, 2024
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