-
Notifications
You must be signed in to change notification settings - Fork 226
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
feature: compare local pids #611
Conversation
I believe |
Welp, that is a bit silly from me. Before I "found" that I have two options. Note that So, if you would allow this, we could:
I believe (2) is a reasonable solution. What do you think? |
Yes, (2) would be an acceptable solution. I'd rather not have us change interfaces of wrapped functions, there is no guarantee that they won't actually require their parameters at some point. |
Looks good to me. We'll have to follow this up with a minor version bump on |
Thanks for the quick replies and the nice library! |
Just to be sure: do you want me to bump the version or will somebody else? |
It's a note for myself, I will do that after this one is merged :). Just waiting for another review from @evnu before merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
For a feature in a library we're writing we wanted to compare
LocalPid
s without encoding/decoding them intoTerm
s. For this I thought the process was simple:nif_compare_pids
torustler_sys
(by adding ab.func
under the appropriate version). See: enif_compare_pidsPartialEq
/Eq
/PartialOrd
/Ord
forLocalPid
However, when I'm running all the test suites (specifically the
rustler_tests
one by callingmix test
) I'm now running into:I know this implies it cannot find the symbol in the erlang libs, but I was unable to find the location where the libraries are included to figure out which specific symbol I should be including.
Hence two questions:
LocalPid
?Additional information:
master
branch (and clear all/target
,/_build
folders) I can run the tests without issues.