All Projects → UBC-NSS → Pgo

UBC-NSS / Pgo

PGo is a source to source compiler to compile PlusCal into Go lang

Programming Languages

java
68154 projects - #9 most used programming language
go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Pgo

Forkphorus
JavaScript compiler for Scratch 3, 2, and 1 projects.
Stars: ✭ 83 (-9.78%)
Mutual labels:  compiler
Uuid Random
Fastest UUID with cryptographic PRNG for JS
Stars: ✭ 87 (-5.43%)
Mutual labels:  distributed-systems
Enzyme.jl
Julia bindings for the Enzyme automatic differentiator
Stars: ✭ 90 (-2.17%)
Mutual labels:  compiler
Uniroll
Opinionated universal frontend bundler in browser
Stars: ✭ 84 (-8.7%)
Mutual labels:  compiler
Mrustc
Alternative rust compiler (re-implementation)
Stars: ✭ 1,263 (+1272.83%)
Mutual labels:  compiler
Ghdl
VHDL 2008/93/87 simulator
Stars: ✭ 1,285 (+1296.74%)
Mutual labels:  compiler
Spvgentwo
SpvGenTwo is a SPIR-V building and parsing library written in plain C++17 without any dependencies. No STL or other 3rd-Party library needed.
Stars: ✭ 74 (-19.57%)
Mutual labels:  compiler
Nats Server
High-Performance server for NATS.io, the cloud and edge native messaging system.
Stars: ✭ 10,223 (+11011.96%)
Mutual labels:  distributed-systems
Docker Superset
Repository for Docker Image of Apache-Superset. [Docker Image: https://hub.docker.com/r/abhioncbr/docker-superset]
Stars: ✭ 86 (-6.52%)
Mutual labels:  distributed-systems
Tractor
structured concurrent, Python parallelism
Stars: ✭ 88 (-4.35%)
Mutual labels:  distributed-systems
Dolphin
Distributed API Gateway
Stars: ✭ 84 (-8.7%)
Mutual labels:  distributed-systems
Disel
Distributed Separation Logic: a framework for compositional verification of distributed protocols and their implementations in Coq
Stars: ✭ 85 (-7.61%)
Mutual labels:  distributed-systems
Distbelief
Implementing Google's DistBelief paper
Stars: ✭ 88 (-4.35%)
Mutual labels:  distributed-systems
Zig
General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Stars: ✭ 11,555 (+12459.78%)
Mutual labels:  compiler
Gotree
Gotree is a vertically distributed framework. Gotree's goal is to easily develop distributed services and liberate the mental burden of developers.
Stars: ✭ 91 (-1.09%)
Mutual labels:  distributed-systems
Typhon
Snakes on rbx-head. A Python implementation for the Rubinius VM
Stars: ✭ 82 (-10.87%)
Mutual labels:  compiler
Storj
Ongoing Storj v3 development. Decentralized cloud object storage that is affordable, easy to use, private, and secure.
Stars: ✭ 1,278 (+1289.13%)
Mutual labels:  distributed-systems
C To Mips Compiler
C to MIPS Assembly Compiler
Stars: ✭ 91 (-1.09%)
Mutual labels:  compiler
Sbcl
Mirror of Steel Bank Common Lisp (SBCL)'s official repository
Stars: ✭ 1,305 (+1318.48%)
Mutual labels:  compiler
Feral
Feral programming language reference implementation
Stars: ✭ 89 (-3.26%)
Mutual labels:  compiler

PGo Build Status

PGo is a source to source compiler to compile PlusCal specifications into Go programs.

Purpose/motivation

PlusCal is a language for specifying/modeling concurrent systems. It was designed to make it easier to write TLA+. In particular, PlusCal can be compiled into TLA+, which can be checked against useful system properties (using the TLC model checker). For example, here is a repository of PlusCal formulations of solutions to the mutual exclusion problem.

Go is a C based language developed by Google for building distributed systems. It has built in support for concurrency with channels, and goroutines, which makes it great for developing distributed systems.

Currently there are no tools that correspond a PlusCal/TLA+ spec with an implementation of the spec. PGo is a tool that aims to connect the specification with the implementation by generating Go code based on a PlusCal specification. PGo enables the translation of a verified PlusCal specification of a distributed system algorithm into a semantically equivalent Go program.

Current status

Actively under development. PGo supports compilation of most uni-process and very simple multiprocess PlusCal algorithms into corresponding compilable and runnable Go code.

See manual.pdf in the repository for a snapshot of the latest version of the manual that details implemented features and several examples.

Usage

To learn how to use PGo, see the PGo usage page.

How it works

PGo is a source to source compiler written in Java. It compiles specifications written in an extension of PlusCal, called Modular PlusCal (see the Modular PlusCal page for more details), to Go programs.

How to install (for development)

Requirements: IntelliJ, Eclipse, or Ant 1.9

First download/clone the repository

Option 1: Import as an IntelliJ project.

Option 2: Import as an Eclipse project.

Option 3: Execute ant build to compile the project and then execute pgo.sh [options] pcalfile to compile pcalfile.

Dependencies:

PGo is tested using OpenJDK 1.8, and 1.9, and Go 1.8, 1.9, 1.10, and 1.11.

How to run (for development)

Use pgo.sh to invoke the compiler. Below are the options that the compiler accepts.

Usage: pgo [options] spec
  --version=<boolean>          - Version [default false]
  -h --help=<boolean>          - Print usage information [default false]
  -q --logLvlQuiet=<boolean>   - Reduce printing during execution [default false]
  -v --logLvlVerbose=<boolean> - Print detailed information during execution  [default false]
  -m --mpcalCompile=<boolean>  - Compile a Modular PlusCal spec to vanilla PlusCal [default false]
  -c --configFilePath=<string> - path to the configuration file, if any

Further notes for developers

If you use Eclipse, you should import the code style found in the pgo-code-style.epf file by clicking File -> Import... and selecting the file.

Furthermore, use the Unix text file line delimiter (especially important if you are using Windows) by going to Eclipse's preferences/options, and under General and Workspace set "New text file line delimiter" to be "Unix".

By default Eclipse does not enable assertions. Our projects assume that you have assertions enabled at all times. To globally enable assertions as a default for all projects, go to Window -> Preferences -> Java / Installed JREs. Select the JRE and click "Edit...".

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].