Wednesday, February 12, 2014

Déjà vu: SMIL-2.0 vs Algol-68

SMIL-2.0: The example assume video and audio media that are recorded to be in exact sync with one another:

<par dur="indefinite">
  <img id="foo" end="click" .../>
  <video id="bar" begin="foo.endEvent" .../>
  <audio id="copy" begin="foo.end" .../>
</par>

Algol-68: An example of a parallel-clause which synchronizes eating and speaking:

PROC VOID eat, speak; SEMA mouth = LEVEL 1;
   PAR BEGIN
       DO
           DOWN mouth;
           eat;
           UP mouth
       OD, 
       DO
           DOWN mouth;
           speak;
           UP mouth
       OD
   END.
 
...