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

Stable internal memory representation #8

Open
nvzqz opened this issue Jun 12, 2020 · 0 comments
Open

Stable internal memory representation #8

nvzqz opened this issue Jun 12, 2020 · 0 comments
Milestone

Comments

@nvzqz
Copy link
Owner

nvzqz commented Jun 12, 2020

Motivation

There are currently no guarantees about ByteSet's internal memory representation. Each byte should always map to a specific bit across compatible versions when targeting the same architecture.

This would enable the library to be ported to other languages (e.g. C, C++, D, Swift) and have the same instance be sent directly across each language.

Target-specific behavior

Properties that are allowed to change the representation are:

  • Endianness
  • Pointer width

This allows for various optimizations while still being consistent.

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

No branches or pull requests

1 participant