Skip to main content

Arx is a compiler built with llvm

Project description

ArxLang

Arx is a multi-purpose compiler that aims to provide Apache Arrow datatypes as native datatypes. It uses the power of LLVM to provide multi-architecture machine target code generation.

The language syntax is influenced by Python, C++, and YAML, featuring significant whitespace, static typing (planned), and a focus on data-oriented computing.

Quick Example

```
title: Quick average example
summary: Demonstrates a function with module and function docstrings.
```
fn average(x: f32, y: f32) -> f32:
  ```
  title: average
  summary: Returns the arithmetic mean of x and y.
  ```
  return (x + y) * 0.5
arx --show-llvm-ir examples/average.x

See the Getting Started guide for installation and more examples. For language details, see the Library Reference.

Key Features

  • LLVM-powered -- compiles to native machine code via LLVM
  • Python-like syntax -- indentation-based blocks, familiar keywords
  • Apache Arrow datatypes -- native Arrow type support (planned)
  • Multiple output modes -- inspect tokens, AST, LLVM IR, or compile to object files

Project Status

Arx is currently a prototype built on the Kaleidoscope tutorial compiler. It supports functions, control flow (if/else, for), variables, and extern declarations. See the Roadmap for what's planned next.

Arx Enhancement Proposals

Any change to the language syntax should be done using an Enhancement Proposal via the arx-proposals repository.

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

arxlang-0.3.4.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

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

arxlang-0.3.4-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file arxlang-0.3.4.tar.gz.

File metadata

  • Download URL: arxlang-0.3.4.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.10.20 Linux/6.17.0-1008-azure

File hashes

Hashes for arxlang-0.3.4.tar.gz
Algorithm Hash digest
SHA256 07f7aa8ad216379cd1556917b01cc153f76b02558f3d45539a337001b68e74e6
MD5 a8aa2d6a78bc2ab35dbfe2f1679bc494
BLAKE2b-256 040dded2bb82c7f8745f4e0362d3653c5094ca0e4736d440b559f6d90b9202a2

See more details on using hashes here.

File details

Details for the file arxlang-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: arxlang-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.10.20 Linux/6.17.0-1008-azure

File hashes

Hashes for arxlang-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c02f08730df446a01c431448c4e6e4a698d54df94b7e0f0932a46df86641d770
MD5 7ab7e66e5ae2a9ca4e0aec847bb48238
BLAKE2b-256 fc9b2939f9ce51575b9b738a1aeb4636f3e5f0270c97391f65437d6609d85bf2

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