GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

CAL Actor Language

CAL (the Cal Actor Language) is a high-level programming language for writing (dataflow) actors, which are stateful operators that transform input streams of data objects (tokens) into output streams. CAL has been compiled to a variety of target platforms, including single-core processors, multicore processors, and programmable hardware. It has been used in several application areas, including video and processing, compression and cryptography. The MPEG Reconfigurable Video Coding (RVC) working group has adopted CAL as part of their technical standards efforts. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

CAL (the Cal Actor Language) is a high-level programming language for writing (dataflow) actors, which are stateful operators that transform input streams of data objects (tokens) into output streams. CAL has been compiled to a variety of target platforms, including single-core processors, multicore processors, and programmable hardware. It has been used in several application areas, including video and processing, compression and cryptography. The MPEG Reconfigurable Video Coding (RVC) working group has adopted CAL as part of their technical standards efforts. ==Schedules== The IterSelect actor of the prior section illustrated the use of state to control the selection of actions. This is an extremely common thing to do in practice, and the CAL language provides special syntax for this purpose in the form of schedules. Conceptually, schedules can be viewed as codifying a particular pattern of using a state variable; they add nothing to the language in expressiveness. The rationale for using schedules is twofold: They are usually easier to use and less error prone than using any state variables, and many guards and assignments. Tools can use the information encoded in a schedule more easily, and thus recognize regularities in the actor that might help them produce more efficient code, or perform other analyses that help in implementation and design. Each state transition consists of three parts: the original state, a list of action tags, and the following state. Then, the number of actions has increased: instead of the original three, the new version with the schedule now has four actions. The reason is that an action can no longer directly assign the successor state, as it did in the original, where depending on the value of the token read state would be assigned either the value 1 or 2. In the version with a schedule, that state modification is implicit in the structure of the state machine, and it occurs depending on which action fires. Accordingly, the condition that checks the value of the token has moved from within the body of the action to the guards of the two actions tagged readT and readF. ==Priorities== As long as it has only input on one of its input ports, everything is unambiguous. But, as with NDMerge, as soon as input is available on both input ports, it could fire either of its two actions, and there is nothing in that actor specification which would predispose it to choose one over the other. None of the language constructs so far would allow us to do this. Unlike in this case of schedules, which could be regarded syntactic sugar because they could be reduced to extant elements of the language (state variables, guards, and assignments), this situation requires a true extension: action priorities. The basic idea is to add some inequalities that relate actions to their firing precedence. As in the case of schedules, action tags are used to identify actions to be referred to later on, but this time within the priority inequality. The priority block contains only one such inequality, relating the action tagged config to the one tagged process, giving the former priority over the latter. Even this version is still very timing-dependent. In this case, that need not be a problem, and is probably a requirement for this actor to perform its function. But in general, priorities, especially when used as in the prior example, must be well- understood to yield the correct results. Especially when information about timing of communication within a network is vague, it is probably best to view them as strong implementation directives. ==Statements== In some ways, statements in CAL are simply the opposite of expressions: they have no return value, but can change the values of variables. Changing the values of variables is the whole point of statements. Statements are executed in strict sequential order. Unless otherwise specified, the execution of statements proceeds in the order in which they appear in the program text. This means that any variable changes produced by a statement may affect the execution of subsequent statements.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"CAL Actor Language". 1774166571. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1344746657

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·