Skip to content

Conversation

@unbalancedparentheses
Copy link

@unbalancedparentheses unbalancedparentheses commented Jan 9, 2026

Summary

Rename GenServer terminology to Actor for better accessibility to developers unfamiliar with Erlang/OTP:

  • GenServerActor
  • GenServerHandleActorRef
  • CallResponseRequestResult
  • CastResponseMessageResult
  • InfoResponseInfoResult
  • GenServerErrorActorError
  • handle_callhandle_request
  • handle_casthandle_message
  • CallMsgRequest
  • CastMsgMessage
  • OutMsgReply
  • File renames: gen_server.rsactor.rs

This is the first PR in a series of 7 that will bring comprehensive improvements to the crate.

Test plan

  • All 79 existing tests pass
  • Clippy passes with no warnings
  • All examples compile and work correctly

🤖 Generated with Claude Code

unbalancedparentheses and others added 8 commits January 8, 2026 02:23
Rename types from Erlang-style names to more accessible, universal terminology
as specified in ROADMAP.md.

Type renames:
- GenServer → Actor
- GenServerHandle<G> → ActorRef<A>
- CallMsg → Request
- CastMsg → Message
- OutMsg → Reply
- CallResponse → RequestResult
- CastResponse → MessageResult
- InfoResponse → InfoResult
- GenServerError → ActorError
- GenServerInMsg → ActorInMsg

Method renames:
- handle_call → handle_request
- handle_cast → handle_message

Error variant renames:
- CallMsgUnused → RequestUnused
- CastMsgUnused → MessageUnused
- CallTimeout → RequestTimeout

File renames:
- gen_server.rs → actor.rs (in both tasks/ and threads/ modules)

This is a breaking change that affects the public API but makes the library
more accessible to developers unfamiliar with Erlang/OTP terminology.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@unbalancedparentheses unbalancedparentheses changed the title [1/23] refactor: rename GenServer to Actor for accessibility refactor: rename GenServer to Actor [1/7] Jan 9, 2026
@unbalancedparentheses
Copy link
Author

Closing: This PR was based on a diverged fork. The changes have been reorganized into PRs #102 and #103 for proper sequencing.

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.

1 participant