Skip to content

Conversation

mjsir911
Copy link

@mjsir911 mjsir911 commented Sep 22, 2025

  • remove cast() for unsafely_create_subject call
  • figure out structure to not cause a recursive import with gleam/erlang/process
  • add error handling
  • find a more gleam-y representation to mirror feedback

Fixes #89

Fixes gleam-lang#89

port and process are still inextricably coupled, most of the complex
things I would want to do already require process' recieve/subject
tooling.

the recursive dependencies are really a bitch too, I would much rather
prefer `port` module define a lot of this stuff

This integrates a lot of the port stuff into process.gleam since
representing a port-based subject as PortSubject lets us do two things:

- Disallow send() on PortSubjects with a panic
- check subject_owner at runtime that the port subject is still the
  calling process
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.

add better support for ports: open_port, port_command, & others?
1 participant