Repository navigation
fix(runtime): support native erlang send calls - #99
Merged
Merged
Conversation
Direct calls and calls through apply now deliver to a process ID, a registered name, or a name and node pair. The two-argument call returns the message; the three-argument call follows BEAM’s option and return rules. With network distribution off, sending to another node drops the message and returns noconnect when requested.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Native Erlang programs could send with the ! operator, but the named send functions were missing.
What changed
Before and after
Before: Direct calls did not compile; calls through apply failed at runtime.
After: Nera and BEAM delivered the same four messages in order for each of the three supported destination forms.
The change affects message delivery in compiled programs, so the evidence is mailbox output rather than a picture.
Checked
Live validation: Demonstrated for this version. 2 of 2 scenarios driven live in the product.
How it was checked
Built the locked release runtime and compiler. The native allocator and stacktrace checks passed.
The workspace test run under a group-writable permissions mask reproduced an existing storage fixture failure. The full rerun with umask 0022 passed.
Compiled the send regression to macOS x86-64 and Linux arm64 objects; neither object was linked or run.
Risk
Risk above low: Blast radius, medium — The built-ins share the existing native message delivery path.
Full risk assessment
Not done
Distribution and process aliases remain unsupported. Cowboy server startup was not tested.