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

Introduce ports (local and external) #1365

Merged

Conversation

pguyot
Copy link
Collaborator

@pguyot pguyot commented Nov 10, 2024

Continuation of #1363

Native ports are now represented as ports, and can be encoded in binaries. External ports are also supported. String representation of ports matches OTP's.

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

@pguyot pguyot force-pushed the w45/encode_and_decode_ports branch 4 times, most recently from d271224 to 33e905f Compare November 25, 2024 21:59
@pguyot pguyot force-pushed the w45/encode_and_decode_ports branch 3 times, most recently from 60c5175 to ee1158f Compare December 23, 2024 20:22
@pguyot pguyot changed the base branch from main to feature/distributed-erlang December 23, 2024 20:24
@pguyot pguyot force-pushed the w45/encode_and_decode_ports branch 2 times, most recently from 9870c8b to a9eb5f2 Compare December 23, 2024 21:03
Also add bif erlang:is_port/1 which is called by code compiled with OTP-21
Later versions of the compiler use is_port opcode instead.

Signed-off-by: Paul Guyot <[email protected]>
@pguyot pguyot force-pushed the w45/encode_and_decode_ports branch from a9eb5f2 to 0870d0a Compare December 24, 2024 06:08
@pguyot pguyot marked this pull request as ready for review December 24, 2024 06:08
@bettio bettio merged commit bd67862 into atomvm:feature/distributed-erlang Dec 24, 2024
101 checks passed
@pguyot pguyot deleted the w45/encode_and_decode_ports branch December 25, 2024 06:25
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.

2 participants