Examples
tlsd
Examples | tlsd | |
---|---|---|
7 | 2 | |
1,224 | 12 | |
1.4% | - | |
8.5 | 0.0 | |
10 days ago | about 1 year ago | |
TLA | Python | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Examples
-
Suggestions for model checking?
I need to write a small case study using TLA+. Where can I find some distributed/concurrent algorithm or system that is not too complex and hasn't been specified yet? There are so many examples already covered in the official repository alone that I'm out of ideas.
-
Formal definitions of "events" and "messages" in distributed systems?
However, for example, Lesslie Lamport elegantly modeled distributed transactions without introducing the concepts of events or messages, focusing only on the state of the participants.
-
Beginner Question on Model Checking
I am very new to TLA+ and I am trying to learn it through the book Specifying Systems by Leslie Lamport. I am currently working on the InnerFIFO example from Chapter 4. I attempted to use the TLC model checker on this example. So, I created a new model and specified the following value to the constant Message - {"hello", "world"}. Upon running the model checker I get the following error -
-
Why is the IDE telling me my actions will never be enabled? How should a mutable array of booleans be represented?
I did not use Pluscal. I did have to EXTENDS TLC to use the Print function, based on this example: https://github.com/tlaplus/Examples/blob/master/specifications/SpecifyingSystems/AsynchronousInterface/PrintValues.tla
-
Generate (message) sequence diagrams from TLA+ state traces
Adding a vector clock is relatively straightforward (see e.g. https://github.com/tlaplus/Examples/commit/ee10c6ed1c65f1002c8ad402edceeffcf1a833e). For PlusCal, the vector clock can be computed from the PC variable: https://github.com/tlaplus/CommunityModules/blob/master/modules/ShiViz.tla
-
Where do I find examples of informal specs (RFCs) AND their formal versions (in TLA+ ideally) ?
The TLA+ github has several examples.
-
Model Check Constant Functions
I found this here as well: https://github.com/tlaplus/Examples/tree/master/specifications/SpecifyingSystems/CachingMemory
tlsd
-
If you deal in state machines, you might enjoy StateSmith. It compiles diagrams to C or C++ with zero dependencies. Free & opensource.
I've previously written this tool to generate sequence diagrams from TLA+ models (by having tlc first generate state transition graphs). It visualizes clearly how it actually takes time for a message to end up from the sender to the client.
- Generate (message) sequence diagrams from TLA+ state traces
What are some alternatives?
pgo - PGo is a source to source compiler from Modular PlusCal specs into Go programs.
CommunityModules - TLA+ snippets, operators, and modules contributed and curated by the TLA+ community
StateSmith - A state machine code generation tool suitable for bare metal, embedded and more.
BlockingQueue - Tutorial "Weeks of debugging can save you hours of TLA+". Each git commit introduces a new concept => check the git history!
pytm - A Pythonic framework for threat modeling
DrTLAPlus - Dr. TLA+ series - learn an algorithm and protocol, study a specification
timewinder - Temporal Logic of Actions in Rust via Starlark
ewd998 - Distributed termination detection on a ring, due to Shmuel Safra:
modelator-py - Utilities for the TLA+ ecoystem and model-based testing using TLA+.