Tech News
← Back to articles

Show HN: The Aria Programming Language

read original related products more articles

The Aria Programming Language

Aria is a modern, dynamic scripting language. It is meant to be a "sweet spot" language, easy to pick-up and enjoyable to use.

It provides a familiar C-style syntax, with a feature set inspired by well-beloved languages such as Python and Rust. It comes with little ceremony and a focus on getting stuff done.

The standard library, while simple, has enough basic features to get you started on interesting problems.

Aria is currently only supported on Linux. Contributions for other operating systems are welcome and encouraged!

A Taste of Aria

Aria is easy to learn. Here's a quick example that fetches data from a web API and prints the result.

# github_user.aria import Request from aria.network.request; import JsonValue from aria.json.parser; val whoami = "egranata"; func main() { val request = Request.new("https://api.github.com/users/{0}".format(whoami)); request.headers["User-Agent"] = "AriaLang/1.0"; val response = request.get(); if response.status_code == 200 { val user_data = JsonValue.parse(response.content).flatten(); println("User {1} has {0} public repositories.".format(user_data["public_repos"], whoami)); } else { println("Failed to fetch user data. Status: {0}".format(response.status_code)); } }

Running this is as simple as:

$ aria github_user.aria User egranata has 5 public repositories.

... continue reading