Skip to content
arxlangPublic

About

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

1 watching

Forks

ArxLang

ArxLang is an experimental compiler ecosystem for statically typed, data-oriented programming. Arx source is parsed into ASTx, analyzed and lowered by IRx, and compiled to native code through LLVM.

Apache Arrow is a native part of the runtime architecture. IRx uses Arrow C++ for arrays, tensors, tables, column views, and RecordBatch IPC instead of encoding those containers directly in LLVM IR.

Project status: the ecosystem is functional but pre-production. The supported surface is tested, while APIs and language semantics may still change between releases.

Ecosystem

Directory Distribution / import Responsibility Current state
packages/arx arxlang / arx Arx lexer, parser, CLI, and language frontend Prototype compiler with native build/run support
packages/astx astx / astx Language-agnostic AST node model Functional and broadly modeled; still evolving
packages/irx pyirx / irx Semantic analysis, LLVM lowering, and native runtime Functional experimental backend with Arrow C++ support
packages/arxpy arxpy / arxpy Python-facing Arx compiler API API foundation: diagnostics and error hierarchy only
packages/arxjit arxjit / arxjit Numba-style Python decorator path Frontend foundations; calls still use the Python fallback
packages/aix airx / aix Toy symbolic-language experiment For fun; no stability or product commitment

See the ecosystem status for the exact implemented and deferred scope of every package.

Native Apache Arrow support

IRx provides an on-demand native runtime backed by Arrow C++:

  • primitive Arrow arrays with Arrow C Data import/export
  • homogeneous N-dimensional arrow::Tensor values
  • Arx DataFrames backed by arrow::Table
  • Series views backed by arrow::ChunkedArray
  • RecordBatch construction and Arrow IPC file/buffer streaming
  • interoperability tests against PyArrow

The RecordBatch layer currently supports signed and unsigned integers, float32, float64, booleans, UTF-8 and large UTF-8 strings, dates, timestamps, times, and nullable fields. The higher-level Arx DataFrame surface supports static nullable, string, temporal and rich schemas, with checked RecordBatch conversion for runtime schemas. Scalar Series expressions remain limited to supported numeric and Boolean types; storing a rich Arrow type does not imply scalar arithmetic support.

Read Apache Arrow in ArxLang for the architecture, supported types, and current limitations.

Arx example

```
title: Native Arrow-backed collections
```

fn main() -> i32:
  grid: tensor[i32, 2, 2] = [[1, 2], [3, 4]]
  rows: dataframe[id: i32, score: f64] = dataframe({
    id: [1, 2, 3],
    score: [0.5, 0.8, 1.0],
  })
  print(rows.nrows())
  return grid[1, 0]
arx --show-llvm-ir program.x
arx --run program.x

Installation

Install the language compiler from PyPI:

pip install arxlang

Native executable generation requires a working LLVM/Clang-compatible toolchain. Arrow-backed features also require a C++ compiler; IRx obtains Arrow C++ build metadata from its installed pyarrow and arx-arrowcpp-sources dependencies.

For development:

git clone https://github.com/arxlang/arx.git
cd arx
mamba env create --file conda/dev.yaml
conda activate arx
poetry install

Common checks:

makim all.ci
makim docs.build

The root Poetry environment wires every package to its local source directory. Published package dependencies continue to use the released distribution names and lockstep versions.

Documentation map

Support & Acknowledgments

Help build the next generation of open compiler tools

ArxLang brings language design, compiler infrastructure, and native Apache Arrow support into one open ecosystem. Advancing a compiler is long-term engineering work: every improvement needs careful testing, documentation, and attention to the libraries and platforms it depends on. Financial contributions help sustain that work, improve developer tooling, and make it easier for new contributors to participate.

Support ArxLang development on Open Collective. Whether you give once or every month, your support helps make continued progress possible.

Built with the community

ArxLang is a community-led, community-governed open-source project. Development and maintenance work is carried out through SciStitch in collaboration with the wider ArxLang community; this credit does not change the project's governance. We thank Open Science Labs (OSL) for its institutional support, and all contributors and users for their code, reviews, testing, ideas, and feedback.

SciStitch    Open Science Labs

About

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages