One thing that's not clear to me from reading the resources I've found and essential in many of the applications I have encountered in my career is measuring or processing the time an event occurred. Sometimes this is the same as the time the event was "measured" and sometimes the notice of the event could be delayed. For example, GPS receivers can take a significant amount of time to calculate the position solution, so when the data is received by the control program, the position information indicates where the receiver was X msec ago.
Concretely, how would the following scenarios be handled in Ceu?
- Pass a timestamp along with data in an event with ceu_sys_go? (My guess is tuple or struct to hold the stamp and data.)
- Get the wall clock time to add time stamp data to events.
- Application: Event Data(double 5.0) arrives at time t_1 of 1000 msec. Event Data(double 10.0) arrives at time t_2 of 2000 msec. Event Trigger arrives at t_3 of 3000 msec. How to correctly extrapolate the data of the Data event to a value of 15.0 at time t_3?
At least in control and sensor fusion applications, knowing when something happened is just as important as knowing what value it had at the time. If there isn't yet any language support for time keeping already, I think it would be a great feature to add because time has special significance compared to other kinds of data.
Is there any kind of Ceu standard library of organisms? If not (and assuming it's possible), would the organisms need to be parameterized on event types within their "with" clause initialization?
Also just FYI the Ceu Try webpage is broken for me on Firefox.
Thanks and very impressive work on Ceu.
Dan
--
---
You received this message because you are subscribed to the Google Groups "The Programming Language Céu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceu-lang+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "The Programming Language Céu" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ceu-lang/7tOL-wQSpxI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ceu-lang+u...@googlegroups.com.
I'm not sure exactly what a change would look like, but I have some ideas. Even something as simple as this below would be valuable.var u64 ts = (now)ms; // get the current Ceu clock time rounded to integer millisecondsvar r64 ts = (now)s; // get the current Ceu clock time in double precision number of seconds
On Wed, Feb 6, 2019 at 7:24 PM <daniel....@gmail.com> wrote:Hi. I discovered Ceu today and am very interested, so sorry if this is a deluge of questions.
Also just FYI the Ceu Try webpage is broken for me on Firefox.
In theory, the second trail should output (now+SOME_INPUT), but WCLOCK and SOME_INPUT have different "types" and cannot be added, so we just assume SOME_INPUT to be 0
only the keyword `now` in us, I didn't think about the units
Which OS/version are you using?
Just out of curiosity, how did you hear about it?
In theory, the second trail should output (now+SOME_INPUT), but WCLOCK and SOME_INPUT have different "types" and cannot be added, so we just assume SOME_INPUT to be 0Hi, Francisco. I don't understand this part. Why would the output be now+SOME_INPUT? Where is the addition operation coming from?
Could <y> and <z> ever be simultaneous considering a notion of `now`?
Simultaneous case: If there is no time update prior to event I, then when <z> executes, the wclock has not been advanced since <y>, so wclock = t2 = t1, so <z> is said to occur at the same time (literally same wclock time) as <y>, even though <y> occurred in a preceding reaction than <z>. If I understand correctly, this point seems intuitive.