RayforceDB – a pure C analytics database with a Lisp-like syntax

sourdecor1 pts0 comments

Rayforce — Columnar Analytics and Graph Traversal in One Pipeline - Rayforce

Release<br>Rayforce — latest release

Download

Ask AI

Tutorials

Rayfall Language

Namespaces

Data & Types

Queries

Storage & IPC

Graph Engine

Guides

Architecture

C API

Reference

Open source · Pure C · Zero dependencies

Analytics and graphs.<br>One fast engine.

Rayforce fuses columnar analytics, graph traversal, and recursive queries into one embeddable execution pipeline—built for teams that measure latency in microseconds, not meetings.

Download Rayforce

CloudSoon

Docs

market_demo.rfl<br>real engine run

; 100,000 deterministic market rows<br>(select {from: trades<br>where: (> qty 100)<br>by: symbol<br>trades: (count qty)<br>notional: (sum (* price qty))})

Loading 100,000 rows<br>Replay ↻

Load100K rows

Optimizerewrite DAG

Filter60K match

Group4 symbols

symboltradesnotional

NVDA 15,0001,181,242,500

GOOG 15,0001,191,143,000

AAPL 15,0001,176,404,200

MSFT 15,0001,185,774,600

Recorded with ./rayforce -t 1<br>Run Rayforce live ↗

Join the community

GitHub<br>X / Twitter<br>Reddit<br>Zulip<br>Email

One execution model

Stop moving data<br>between engines.

Relational operators and graph traversals belong in the same plan. Rayforce sees the whole workload, rewrites it together, and keeps the hot path close to the metal.

Explore the execution pipeline ↗

01<br>Compose<br>Tables + graphs + rules

Lazy DAG

02<br>Optimize<br>Rewrite the whole plan

Multi-pass

03<br>Fuse<br>Remove intermediates

Bytecode

04<br>Execute<br>Stream cache-sized morsels

Parallel

16K lines of focused C

0 external dependencies

IPC client/server transport built in

MIT licensed and embeddable

Rayfall language

Ask complex questions.<br>Keep the syntax small.

Use Rayfall interactively, embed the C API, or connect through a growing set of client interfaces. Every surface reaches the same optimizer and execution core.

Rayfall<br>Python<br>C API<br>One engine, three surfaces

; Aggregate high-value flow, then traverse counterparties<br>(set flow<br>(select {from: trades<br>where: (> Notional 1000000)<br>by: Counterparty<br>Volume: (sum Notional)}))

(.graph.var-expand network flow 1 3)<br>import rayforce as rf

trades = rf.read_csv("trades.csv")<br>flow = (trades<br>.where(rf.col("Notional") > 1_000_000)<br>.group_by("Counterparty")<br>.agg(rf.col("Notional").sum()))

network.expand(flow, min_depth=1, max_depth=3)<br>ray_t *trades = ray_read_csv("trades.csv");<br>ray_graph_t *g = ray_graph_new(trades);

ray_op_t *amount = ray_scan(g, "Notional");<br>ray_op_t *limit = ray_const_i64(g, 1000000);<br>ray_op_t *hot = ray_gt(g, amount, limit);

ray_t *result = ray_execute(g, ray_filter(g, trades, hot));

EXAMPLE RESULT5 rows · optimized

CounterpartyDepthVolume

LYNX_02184.20M

ALPHA_17261.08M

NODE_08244.71M

FORT_04327.19M

EDGE_12312.42M

Built as one system

Small footprint.<br>Serious machinery.

Everything you need to move from raw columns to connected answers—without assembling a second platform around it.

01Columnar analytics<br>Vectorized filters, joins, groups, windows, pivots, and time-series primitives.

02Native graph engine<br>CSR traversal, shortest paths, centrality, communities, WCO joins, and HNSW.

03Recursive Datalog<br>Express reachability and recursive relationships as rules compiled into the same DAG.

04Storage that stays open<br>CSV, splayed and partitioned tables, memory maps, IPC, and block offloading.

Rayforce in the wild

Built for real work,<br>not synthetic demos.

Rayforce is already part of production systems and open-source projects spanning trading, market connectivity, investment analytics, and risk.

Usage confirmed by the Rayforce project. Consumer names link to their public sites.

PRODUCTION USER · TRADING TECHNOLOGY↗

LYNX<br>Infrastructure for fast-moving US equity markets.

Lynx Trading Technologies builds modular connectivity, routing, risk, compliance, and analytics systems for broker-dealers.

PRODUCTION USER · INVESTMENT TECHNOLOGY↗

FORTITUDO<br>Quantitative tools for investment decisions.

Fortitudo Technologies develops investment management software for portfolio analytics, risk, and research workflows.

OPEN-SOURCE CONSUMER · Q LANGUAGE↗

PEACH Q<br>An open implementation of q for everyone.

PeachQ is an MIT-licensed, community-built q implementation powered by Rayforce for vector operations, tables, and interactive analysis.

Rayforce Cloud Coming soon

The engine you can embed.<br>The platform you won’t have to operate.

We’re bringing Rayforce’s unified analytics and graph pipeline to a managed cloud experience—so teams can move from local prototype to production workload without rebuilding the data path.

Follow development ↗<br>No launch date announced yet.

RAYFORCE / CLOUDPREVIEW

Deployment<br>eu-west Ready

QUERY SERVICEPreview<br>ENGINEManaged

Open at the core

Read every line.<br>Own every workload.

One codebase. One public header. No external runtime. Clone Rayforce, compile it, embed it, and keep control of your data path.

View on GitHub

Read the docs ↗

— GitHub stars

— forks

Linux · macOS supported today

Back to top

rayforce trades analytics graph engine open

Related Articles