GSAM compiler and execution engine
pip install gsamGSAM 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.
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
? use console material
$ console
? "log" node comes from "console"
- log
+ "Hello, GSAM!"
GSAM is built as a graph-native execution system with layered components:
Source code flows through:
- Parsing
- Intermediate Representation (IR)
- Graph construction
- Execution
- Execution Queue (node scheduling)
- Execution Clusters (parallel groups)
- Execution Stack (scoped runtime context)
- Memory Bank (runtime state storage)
- External modules defining execution behavior
- Plug-in style extensibility
- Core engine remains minimal and generic
- Data nodes (computation units)
- Execution units (runtime tasks)
- Memory structures (state persistence)
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
GSAM is under active development.
The architecture and APIs may evolve as the system matures.
- PyPI: https://pypi.org/project/gsam/
- GitHub: https://github.com/graphscript-labs/gsam
- License: https://github.com/graphscript-labs/gsam/tree/main/LICENSE
Made with <3 by AttAditya