Skip to content
프로젝트

소개

Interactive playground for exploring and sharing TLA+ specifications in the browser.

데이터 및 분석

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+2
in 15 days
+3
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Spectacle

Spectacle is an interactive, web-based tool for exploring, visualizing, and sharing formal specifications written in the TLA+ specification language. The motivation is to have a better way to quickly interact with a formal specification and easily share results. For example, it provides a way to share protocol behaviors and counterexample traces in a convenient, portable, and repeatable manner.

The tool implements a full TLA+ interpreter in Javascript, building on top of the TLA+ tree-sitter grammar for parsing specifications. This allows for interactive exploration of specs natively in the browser, without reliance on an external language server. A live version is hosted here, and below are some example specifications to try out:

You can also explore some interesting (and infamous) traces of different protocols:

You can also see a live demo of the tool and its features in this presentation, which also gives a very high level overview of the tool architecture and implementation details.

Running Locally

If you would like to run Spectacle locally and offline, you can do so by cloning the repo and running

python3 serve.py [--local_dir /path/to/local/specs/dir]

from the root directory. This will start up a local server for the app at 127.0.0.1:8000.

The local_dir argument is optional and allows you to use Spectacle to explore a local specification that you may be editing (e.g. in a local IDE). Any *.tla files located in the directory specified by the argument will automatically be detected. You can then load one of these specs from within the "Load" tab under the "From local server" section, where they should be automatically listed. This allows Spectacle to load the specification from your local system and have it be updated as you edit your spec file locally.

Animations

Spectacle provides an easy way to create animated visualizations of your specifications by defining them in an SVG-based format right in a specification. See here for more details on how to define these animations.

Testing

Currently, nearly all testing of the tool is done via conformance testing against TLC. That is, for a given specification, we generate its reachable state graph using TLC and compare this for equivalence against the reachable state graph generated by the Javascript interpreter. You can see the result of all current tests that are run on this page, and the underlying test specs here.

관련 프로젝트 살펴보기

불러오는 중…