Home / Companies / Temporal / Blog / Post Details
Content Deep Dive

Getting started with small-step operational semantics

Blog post from Temporal

Post Details
Company
Date Published
Author
Dominik Tornow
Word Count
1,540
Language
English
Hacker News Points
-
Summary

In this blog post, the author introduces Small-Step Operational Semantics (SOS) and demonstrates its use in designing a tiny programming language called SagaLang for developing sagas. Sagas are long-running transactions that guarantee either exactly once or not at all execution. The author presents three iterations of SagaLang, each with different failure mitigation strategies: basic execution model, sagas with forward recovery, and sagas with backward recovery. While the language is minimalistic, it effectively illustrates the ideas behind SOS and its role in providing precise specifications for programming languages and systems.