A starter project for Troupe, an actor-based programming language with dynamic information flow control.
- Docker
- VS Code with the Dev Containers extension
-
Clone this repository.
-
Open the folder in VS Code.
-
When prompted, click Reopen in Container (or press
F1and run Dev Containers: Reopen in Container). -
Once the container is running, open a terminal and try:
local.sh examples/helloworld.trp
-
Try the actor example:
local.sh examples/actors.trp
The container includes the Troupe Notebook, an interactive environment for writing and running Troupe programs in your browser.
notebook.shThen open http://localhost:8888 (the port is forwarded automatically by the dev container).
Example notebooks are available inside the container at /Troupe/examples/userguide-tpnb/.
| Command | Description |
|---|---|
local.sh <file.trp> |
Compile and run locally (no networking) |
network.sh <file.trp> |
Compile and run with P2P networking |
notebook.sh |
Start the Troupe Notebook server |
The Troupe installation has an integrate user guide for the basic language referene and the information flow. To check it out,
invoke the script $TROUPE/notebook/tools/import-userguide.sh.
Note that the online Troupe user guide still refers to Troupe V1; so you should use the integrated one above.