-
Notifications
You must be signed in to change notification settings - Fork 54
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
base: master
Are you sure you want to change the base?
Rd-gen docs #481
Conversation
- 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. |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
- sources (the signalling side of a signal): `source("name", signalValueType)` | ||
- sinks (the receiving side of a signal): `sink("name", signalValueType)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct? Check.
Enough is enough.
I propose to merge this as-is (after verifying it's correct) and fill up the remaining parts later.