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

Move process implementation to csp package #109

Merged
merged 2 commits into from
Apr 16, 2023

Conversation

lthibault
Copy link
Collaborator

This PR moves the process implementation from pkg/process to pkg/csp, along side the channel implementation. There are no functional changes.

@mikelsr The rationale is that Wetware logically bundles processes and channels together in the "communicating sequential processe" (CSP) model of concurrency-control. The API assumes that processes and channels go together in the same way that Go associates goroutines and channels, so it makes sense that they would live in the same package. Plus,csp.Proc and csp.Chan is nice and terse 😄

This will simplify the package structure when we start to add the low-level imports & exports needed for our cluster syscall API.

@lthibault lthibault added the cleanup Code-quality improvements label Apr 13, 2023
@lthibault lthibault requested a review from mikelsr April 13, 2023 21:41
@lthibault lthibault self-assigned this Apr 13, 2023
@lthibault lthibault merged commit 64ba4e2 into master Apr 16, 2023
@lthibault lthibault deleted the cleanup/move-proc-to-csp branch April 16, 2023 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code-quality improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants