swirlc

Scientific Workflow Intermediate Representation Language

https://github.com/alpha-unito/swirlc

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.9%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Scientific Workflow Intermediate Representation Language

Basic Info
  • Host: GitHub
  • Owner: alpha-unito
  • License: lgpl-3.0
  • Language: Python
  • Default Branch: master
  • Size: 127 KB
Statistics
  • Stars: 5
  • Watchers: 4
  • Forks: 1
  • Open Issues: 13
  • Releases: 1
Created over 1 year ago · Last pushed 7 months ago
Metadata Files
Readme License Citation

README.md

SWIRL: Scientific Workflow Intermediate Representation Language

SWIRL is a low-level intermediate representation language for distributed scientific workflows. Unlike other product-agnostic workflow languages, SWIRL is not intended for human interaction but serves as a low-level compilation target for distributed workflow execution plans. It models the execution plan of a location-aware workflow graph as a distributed system with send/receive communication primitives. The optimised SWIRL representation can then be compiled into one or more self-contained executable bundles, making it adaptable to specific execution environments and embracing heterogeneity. This repository contains the reference SWIRL Compiler toolchain, called swirlc, written in Python 3 and relying on the ANTLR parser generator. if you want to cite SWIRL, please use the reference below:

bibtex @inproceedings{24:fm:swirl, title = {Introducing SWIRL: An Intermediate Representation Language for Scientific Workflows}, author = {Iacopo Colonnelli and Doriana Medi\'{c} and Alberto Mulone and Viviana Bono and Luca Padovani and Marco Aldinucci}, editor = {Andr\'{e} Platzer and Kristin Yvonne Rozier and Matteo Pradella and Matteo Rossi}, doi = {10.1007/978-3-031-71162-6_12}, year = {2024}, booktitle = {Formal Methods. FM 2024}, volume = {14933}, pages = {226–-244}, publisher = {Springer Nature Switzerland}, address = {Cham, Switzerland}, location = {Milan, Italy}, series = {Lecture Notes in Computer Science} }

Install

PyPI

The swirlc package is available on PyPi, so you can install it using pip.

bash pip install swirlc

Please note that the SWIRL compiler requires python >= 3.9. Then you can use it through the swirlc CLI.

Docker

The SWIRL Docker image is available on Docker Hub. The script below gives an example of swirlc CLI invocation in a Docker container

bash docker run \ --user $(id -u):$(id -g) \ --volume $(pwd):/data \ --workdir /data \ alphaunito/swirlc:latest \ swirlc \ COMMAND \ [OPTION]

Use SWIRL

The swirlc CLI offers two primary functionalities: translate and compile. The former translates a distributed workflow written in one of the supported high-level languages into a low-level SWIRL intermediate representation. The latter compiles a SWIRL representation into a target executable bundle.

Translate

The swirlc translate command can be used to translate an existing, high-level workflow representation into a SWIRL low-level intermediate representation, usually stored in a *.swirl file, and a *.yml file containing a set of metadata. As an example, the following command can be used to generate a SWIRL representation from a DAX workflow generated by the Pegasus WMS:

bash swirlc translate --language dax [DAX_DIRECTORY]

Note that the DAX_DIRECTORY must contain four files: replica.yml, sites.yml, transformations.yml and workflow.yml.

Compile

The swirlc compile command can be used to create executable traces in different programming languages from a SWIRL representation. The result of the command is an executable bundle ready to run on highly-distributed execution environments (e.g., HPC, Cloud, or Edge). As an example, the following command can be used to generate a Python-based executable bundle from a SWIRL_FILE and a METADATA_FILE:

bash swirlc compile [SWIRL_FILE] [METADATA_FILE]

Note that all the target locations need to have the Python interpreter installed.

Case studies

In this artifact, we describe how users can rely on swirlc to reproduce the 1000 Genomes workflow experiment.

SWIRL Team

Iacopo Colonnelli iacopo.colonnelli@unito.it (Designer and maintainer)
Doriana Medić doriana.medic@unito.it (Designer and maintainer)
Alberto Mulone alberto.mulone@unito.it (Maintainer)

Owner

  • Name: Parallel programming: Alpha group
  • Login: alpha-unito
  • Kind: organization
  • Location: Torino, IT

Parallel Computing research cluster, Department of Computer Science, University of Torino

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you want to cite SWIRL, please refer to the article below."
authors:
  - family-names: "Colonnelli"
    given-names: "Iacopo"
    orcid: "https://orcid.org/0000-0001-9290-2017"
  - family-names: "Mulone"
    given-names: "Alberto"
    orcid: "https://orcid.org/0009-0009-2600-613X"
title: "SWIRL"
version: 0.1
url: "https://github.com/alpha-unito/swirlc"
preferred-citation:
  type: conference-paper
  authors:
    - family-names: "Colonnelli"
      given-names: "Iacopo"
      orcid: "https://orcid.org/0000-0001-9290-2017"
    - family-names: "Medić"
      given-names: "Doriana"
      orcid: "https://orcid.org/0000-0002-7163-5375"
    - family-names: "Mulone"
      given-names: "Alberto"
      orcid: "https://orcid.org/0009-0009-2600-613X"
    - family-names: "Bono"
      given-names: "Viviana"
      orcid: "https://orcid.org/0000-0002-2533-0511"
    - family-names: "Padovani"
      given-names: "Luca"
      orcid: "https://orcid.org/0000-0001-9097-1297"
    - family-names: "Aldinucci"
      given-names: "Marco"
      orcid: "https://orcid.org/0000-0001-8788-0829"
  collection-title: "Formal Methods. FM 2024"
  collection-doi: 10.1007/978-3-031-71162-6
  conference:
    name: "Lecture Notes in Computer Science"
  doi: 10.1007/978-3-031-71162-6_12
  editors:
    - family-names: "Platzer"
      given-names: "André"
      orcid: "https://orcid.org/0000-0001-7238-5710"
    - family-names: "Rozier"
      given-names: "Kristin Yvonne"
      orcid: "https://orcid.org/0000-0002-6718-2828"
    - family-names: "Pradella"
      given-names: "Matteo"
      orcid: "https://orcid.org/0000-0003-3039-1084"
    - family-names: "Rossi"
      given-names: "Matteo"
      orcid: "https://orcid.org/000-0002-9193-9560"
  publisher:
    name: Springer Nature Switzerland
    city: Cham
    country: CH
  start: 226
  end: 244
  title: "Introducing SWIRL: An Intermediate Representation Language for Scientific Workflows"
  volume: 14933
  year: 2024

GitHub Events

Total
  • Watch event: 2
  • Delete event: 26
  • Issue comment event: 15
  • Push event: 20
  • Pull request review event: 3
  • Pull request review comment event: 2
  • Pull request event: 58
  • Fork event: 1
  • Create event: 34
Last Year
  • Watch event: 2
  • Delete event: 26
  • Issue comment event: 15
  • Push event: 20
  • Pull request review event: 3
  • Pull request review comment event: 2
  • Pull request event: 58
  • Fork event: 1
  • Create event: 34

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 29
  • Average time to close issues: N/A
  • Average time to close pull requests: about 1 month
  • Total issue authors: 0
  • Total pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.38
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 28
Past Year
  • Issues: 0
  • Pull requests: 29
  • Average time to close issues: N/A
  • Average time to close pull requests: about 1 month
  • Issue authors: 0
  • Pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.38
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 28
Top Authors
Issue Authors
  • dependabot[bot] (1)
Pull Request Authors
  • dependabot[bot] (46)
  • LanderOtto (9)
  • GlassOfWhiskey (3)
  • giuseppe998e (2)
Top Labels
Issue Labels
dependencies (1) python (1)
Pull Request Labels
dependencies (46) python (45) github_actions (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 10 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
pypi.org: swirlc

Scientific Workflow Intermediate Representation Language

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 10 Last month
Rankings
Dependent packages count: 10.7%
Average: 35.6%
Dependent repos count: 60.5%
Maintainers (1)
Last synced: 6 months ago

Dependencies

Dockerfile docker
  • python 3.12-alpine3.20 build
bandit-requirements.txt pypi
  • bandit ==1.7.5
lint-requirements.txt pypi
  • codespell ==2.2.5
  • flake8-bugbear ==23.7.10
  • pyupgrade ==3.10.1
pyproject.toml pypi
requirements.txt pypi
  • antlr4-python3-runtime ==4.13.1
  • black ==24.3.0
  • importlib_resources ==6.4.0
  • jsonschema ==4.21.1
  • referencing ==0.34.0
  • ruamel.yaml ==0.18.6
test-requirements.txt pypi
  • pytest ==8.0.2 test
  • pytest-cov ==4.1.0 test
  • pytest-xdist ==3.5.0 test
.github/workflows/ci-tests.yaml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • docker/build-push-action v6 composite
  • docker/setup-buildx-action v3 composite
  • docker/setup-qemu-action v3 composite
  • github/codeql-action/analyze v3 composite
  • github/codeql-action/init v3 composite
.github/workflows/release.yaml actions
  • actions/checkout v4 composite
  • actions/create-release v1 composite
  • actions/setup-python v5 composite
  • docker/build-push-action v6 composite
  • docker/login-action v3 composite
  • docker/setup-buildx-action v3 composite
  • docker/setup-qemu-action v3 composite
  • mukunku/tag-exists-action v1.6.0 composite
  • pypa/gh-action-pypi-publish release/v1 composite