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

Rd-gen docs #481

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Rd-gen docs #481

wants to merge 7 commits into from

Conversation

ForNeVeR
Copy link
Collaborator

Enough is enough.

I propose to merge this as-is (after verifying it's correct) and fill up the remaining parts later.

- signals (sinks / signal sources): "fire and forget"
- calls, callbacks: it's possible to return a result

The protocol allows use for persistent models that have mutable members in memory, as well as in a RPC-like way without any persistence via signals and calls.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it would be better to use statful instead of persistent? Because persistent is associated with immutable collections or permanently stored on disk.

3. `interfacedef`: declares an interface that may be implemented by other types. Example:
```kotlin
val Interface = interfacedef {
call("foo", PredefinedType.void, PredefinedType.void)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure it works. Because we don't support fields for interfaces. How is call supposed to work with structures? I think it's a bug that we allow calls here.
As far as I know, we only support method here, but it's dark magic that we don't use it.

@ForNeVeR ForNeVeR assigned ForNeVeR and unassigned Iliya-usov Jul 17, 2024
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.

None yet

2 participants