# MOL – A programming language where pipelines trace themselv…

Hi HN, I built MOL, a domain-specific language for AI pipelines. The main idea: the pipe operator |> automatically generates execution traces — showing timing, types, and data at each step. No logging, no print debugging. Example: let index be doc |> chunk(512) |> embed("model-v1") |> store("kb") T…

- **Page:** https://magpie.gallery/i/mol-a-programming-language-where-pipelines-trace-t-9cxw
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Tags:** language, pipelines, tracing, dsl, ai

## Source

Web · MouneshK: MOL – A programming language where pipelines trace themselves

- **Original:** https://news.ycombinator.com/item?id=46977967

> Hi HN, I built MOL, a domain-specific language for AI pipelines. The main idea: the pipe operator |> automatically generates execution traces — showing timing, types, and data at each step. No logging, no print debugging. Example: let index be doc |> chunk(512) |> embed("model-v1") |> store("kb") This auto-prints a trace table with each step's execution time and output type. Elixir and F# have |> but neither auto-traces. Other features: - 12 built-in domain types (Document, Chunk, Embedding, VectorStore, Thought, Memory, Node) - Guard assertions: `guard answer.confidence > 0.5 : "Too low"` - 90+ stdlib functions - Transpiles to Python and JavaScript - LALR parser using Lark The interpreter is written in Python (~3,500 lines). 68 tests passing. On PyPI: `pip install mol-lang`. Online playground (no install needed): http://135.235.138.217:8000 We're building this as part of IntraMind, a cognitive computing platform at CruxLabx. """ https://github.com/crux-ecosystem/mol-lang

## GitHub projects

- https://github.com/crux-ecosystem/mol-lang

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
