Website | Github

What is Astro?

Astro is a fun programming language designed for safe high-performance applications. It is essentially a statically-typed systems language that

Why create yet another programming language?

The language creator had a set of requirements (listed above) not met by any language (Rust comes close). Although, the project started as an educational effort, it later shaped into a language designed to meet those requirements.

SIMD, threads and direct access to Web APIs are planned for WebAssembly. These and other proposals for GPU Compute will make the web a desirable HPC target in the near future. Astro is, for this reason, designed for high-performance apps that are expected to run on the server or in the browser.

In order to match up with the expressiveness and productivity of dynamic programming languages, Astro adds full type inference, structural typing, and some other high-level abstractions that reduce boilerplate code commonly associated with statically-typed languages. It feels like a scripting language for the most part.


def times(a, b):
    sum = a
    for i in range(b):
        sum += sum
    return sum


fun times(a, b) {
    var sum = a
    for i in range(b) {
        sum += sum
    return sum

Astro is supposed to be high-level enough to write python-like scripts but also low-level enough to write an operating system kernel. Therefore, it doesn't have a traditional garbage collector instead it relies on lifetime analysis at compile-time that free memory once they are no longer referenced.

Tags: language   native   wasm  

Last modified 06 April 2022