-
Notifications
You must be signed in to change notification settings - Fork 140
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
Clarification of Continuous Time #155
Comments
The cell for current time (called sys.time) is Using map, lift and snapshot, you can easily construct a new cell that is a function of time and it will have the same conceptual continuousness. To make it a true behavior in the FRP sense, Operational.updates() and Operational.value() have to be illegal. |
The C# 2.0 implementation (which I believe has been ported to some other languages now) has both the Behavior and Cell types. Behavior can be continuous as it does not have the Updates or Values methods. Cell is by definition a discrete Behavior. |
Thanks! @the-real-blackh - it seems to me that your point about
I'm also wondering if the implementation choice of splitting Behavior and Cell should be mentioned in the semantics itself? E.g. there's more than only Cell, and Stream- there's also Behavior? |
Yes, it should be mentioned in the semantics. I'll do it all when I can find the time. |
That is not what I understand as being continuous. From Wikipedia:
In other words, a continuous function changes infinitely often. Consider the following two functions. Both of these have a value for any
Not necessarily. Hareactive supports |
As my teenage daughter would say, OH MY GOD!!!! You're right. I didn't state my assumption that T was continuous.
That's possibly reasonable, although isn't one of the reasons for having a Behaviour type so that these things come up as compile-time errors? |
I was chatting with @paldepind, who's also developing a Typescript FRP framework (https://github.com/funkia/hareactive) and he had some questions about the Semantics
I hope I get this right (if not feel free to correct), but I believe his concern was that a Cell does not allow continuous time since
C a = (a, [(T, a)])
is discrete.Might be helpful for everyone researching this space to have some clarification of this - how do we see from the semantics that a Cell is indeed continuous?
The text was updated successfully, but these errors were encountered: