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

Support MessagePack for Keys & Values (just a comparison function) #115

Open
erthink opened this issue Sep 6, 2020 · 2 comments
Open

Support MessagePack for Keys & Values (just a comparison function) #115

erthink opened this issue Sep 6, 2020 · 2 comments

Comments

@erthink
Copy link
Owner

@erthink erthink commented Sep 6, 2020

Actually only a comparison function for arbitrary msgpack messages is required.

@plq
Copy link
Contributor

@plq plq commented Sep 15, 2020

Why doesn't memcmp() work? What exactly do you need?

@erthink
Copy link
Owner Author

@erthink erthink commented Sep 15, 2020

Why doesn't memcmp() work?
What exactly do you need?

MsgPack is (mostly) self-described data format.
Therefore, the comparison function for arbitrary msgpack messages allows you to compare many data types with due account it's semantics, including tuples.

For example, this allows you to order set of values of different types: boolean, double, int32, uint64, float, and so on, by the single comparison function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.