-
Notifications
You must be signed in to change notification settings - Fork 21
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
Big renames #45
Comments
I'm not sure this belongs here, but should |
Yes, that sounds right. |
The step clock (where |
But, generally, yes, it seems somewhat related to clock sync, reference clocks and minor/major ticks. I'll think about this. EDIT: Changed phrasing not to assume something's better/worse. |
Should we maybe rename |
I don't see the name clash. Where is it? |
There is a type class called |
When this happens to me, I usually add a suffix to the class. I suggest F or T for the type function, or C for the class. Otherwise, and maybe I'm overcomplicating this (or the paper) but, to me, it seems like We require that we can measure the difference between them? And what else? What do we assume about that difference? |
When this happens to me, I usually add a suffix to one. You can
use F or T for the type function, or C for the class.
I'm not sure I like that. I find TimeDomainOf still better than that
option.
Otherwise, and maybe I'm overcomplicating this (or the paper),
but, to me, it seems like TimeDomain itself (the class) means
something that can easily be expressed in more general
(algebraic or category-theoretical) terms. If so, then maybe it
would be best to name it something else?
We require that we can measure the difference between them? And
what else? What do we assume about that difference?
It definitely can, and there has been a proposal by Alan Jeffrey,
deriving FRP from those axioms. There are some insights to be
learned. But it's not too clear to me and I don't want to do the
research right now.
|
You should check what happened with this answer and that there is no confidential info leaked. |
Sure. I don't think I've seen the use of 'Of' in type functions much, so it's a-typical, but that does not make it wrong. The reason why I opt for the other approach is that you can use it always. So, no ad-hoc decisions to be made for each case. We can always revisit this when we know better. EDIT: Better order of sentences. |
The freshly added |
Logical clocks are more general than a specific type-level step-based clock with a starting point, and they are an established concept in distributed systems. Unless you are trying to claim that, for some reason, this is the way of implementing logical clocks in Rhine, which I would argue against, because I can think of others. And there are kinds/parts of logical clocks that this does not implement. By the way, is it also possible to say something like |
If implemented for general lists, I would call this ListClock. If implemented for a starting point and a delta, I would call these step clocks or fixed-step clocks (these are just my terms, nothing I've read in any literature). |
Right, logical clocks are something different from what I thought. |
I can't get |
I thought maybe that could be called
I'd argue against it. The names are too similar. It will be confusing both in speech and in thinking. |
Makes sense. Good to know. |
Won't rename |
Also, I'll leave |
|
On second thoughts, names shouldn't be too long. I'll add a note about fixed step length in the docs rather than changing the whole name. |
Which name is too long here? |
|
In general, and especially at the beginning, opting for longer names is better than opting for short names. Longer names facilitate understanding, and the worst that can happen is that you'll need a search and replace, and an explanation in the paper/doc. Shorter names make understanding harder. Search and replace is still possible, although it's generally harder to know what to replace it with because the name is not intuitively descriptive. |
Yes, actually you're right. |
Renames
renames we would like to have:
TimeDomainOf
->Time
SyncSF
->ClSF
SF
->SN
("signal network")td
->time
arrMSync_ :: m a -> SyncSF m cl arbitrary a
toconstMSync
, and then toconstMCl
Renames we have to think about once more:
Step
->FixedStep
?CycleClock
->Periodic
?theTag :: SyncSF m cl a (Tag cl)
->tagS
?sinceStart
->sinceInit
? And:startClock
->initClock
startSchedule
->initSchedule
sinceSimStart
-> ? (Rename sinceSimStart? #30 )Won't rename
KeepLast
->ZeroOrderHold
ResamplingBuffer.put
->ResamplingBuffer.input
ResamplingBuffer.get
->ResamplingBuffer.output
Aliases to add
ResBuf
ParClock
SeqClock
absoluteS = timeInfoOf absolute
,sinceStartS = timeInfoOf sinceStart
,sinceTickS = timeInfoOf sinceTick
ToDo
Consistency checks
Changes in other places (immediate)
Changes in other places (whenever they update to rhine-0.5)
The text was updated successfully, but these errors were encountered: