Skip to main content

Compiler toolchain for the GSAM language.

Project description

GSAM

GSAM compiler and execution engine

PyPI GitHub

Installation

pip install gsam

About

GSAM is a compiler and execution engine built around a graph-based computation model. It is designed for extensibility, where external “Materials” define behavior and execution logic in a modular way.

Instead of traditional linear execution, GSAM represents programs as graphs of nodes, enabling flexible control flow, parallel execution patterns, and pluggable runtime behavior.

Syntax Overview

Refer to the Semantics Example for detailed syntax descriptions and usage.

? comment block (multi-line via indentation)
  lines starting with indentation are treated as part of the comment

- parent node
  = variable assignment
  @ keyword_argument
    + value
  + positional_argument
  > next node option

Example

Hello World

? use console material
$ console

? "log" node comes from "console"
- log
  + "Hello, GSAM!"

Architecture

GSAM is built as a graph-native execution system with layered components:

Pipeline

Source code flows through:

  • Parsing
  • Intermediate Representation (IR)
  • Graph construction
  • Execution

Execution Engine

  • Execution Queue (node scheduling)
  • Execution Clusters (parallel groups)
  • Execution Stack (scoped runtime context)
  • Memory Bank (runtime state storage)

Materials System

  • External modules defining execution behavior
  • Plug-in style extensibility
  • Core engine remains minimal and generic

Core Artifacts

  • Data nodes (computation units)
  • Execution units (runtime tasks)
  • Memory structures (state persistence)

Design Philosophy

GSAM follows a minimal and explicit design approach:

  • Graph-native execution model
  • Extensible through external modules called “Materials”
  • Minimal assumptions in the core engine
  • Clear separation between syntax, execution, and behavior

Status

GSAM is under active development.
The architecture and APIs may evolve as the system matures.

Links


Made with <3 by AttAditya

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gsam-0.1.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gsam-0.1.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file gsam-0.1.1.tar.gz.

File metadata

  • Download URL: gsam-0.1.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for gsam-0.1.1.tar.gz
Algorithm Hash digest
SHA256 352e8cd0864d3677a74bc79692c841f41c869e13f500ad108ecf586cb41cf9d6
MD5 4f5db33fef93f6703bac589eb4d9a862
BLAKE2b-256 0593e37231fad5f9baff5f9241b4e3e916571bd6e8e241fba1476dc0c1fd626e

See more details on using hashes here.

File details

Details for the file gsam-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gsam-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for gsam-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eec533a292b4bb579e0dd44d485591b45cc4e9db8baeabf3b7d20787dadc79d3
MD5 a1ecb133ed7763604c06c7cdbc6a9159
BLAKE2b-256 39ed5459d7fd6a64c477f360bed8892fea88629d5a3fee825fee542c1f092af4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page