SkillAgentSearch skills...

Onyx

✨ The compiler and developer toolchain for Onyx

Install / Use

/learn @onyx-lang/Onyx
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<p align="center"> <img src="docs/logos/logo-new-256.png" alt="Onyx Logo" width="20%"> <br> <strong>An efficient, procedural, and pragmatic programming language</strong> <br> <br> <a href="https://github.com/onyx-lang/onyx/releases/latest"> <img src="https://img.shields.io/github/release/onyx-lang/onyx.svg"> </a> <a href="https://onyxlang.io/docs"> <img src="https://img.shields.io/badge/learn-read_the_docs-blue"> </a> <a href="https://try.onyxlang.io"> <img src="https://img.shields.io/badge/demo-try_onyx_online-blue"> </a> <br/> <a href="https://discord.com/invite/bhuN36dqj7"> <img src="https://img.shields.io/discord/1180961614984388683?logo=discord"> </a> <a href="https://github.com/onyx-lang/onyx/actions"> <img src="https://github.com/onyx-lang/onyx/workflows/Build%20and%20Test/badge.svg" alt="Workflow"> </a> <a href="https://opensource.org/licenses/BSD-2-Clause"> <img src="https://img.shields.io/badge/License-BSD%202--Clause-orange.svg" alt="License"> </a> </p>

The Onyx Programming Language

Onyx is a general purpose, efficient, procedural and pragmatic programming language for application development. Onyx compiles solely to WebAssembly through a custom backend, leading to blazingly-fast build times.

<!-- Once Onyx is able to be added to the GitHub syntax repo, this can be changed -->
use core {*}

Person :: struct { age: i32; name: str }

main :: () {
    // Generate a list of 30 random people
    people := Iterator.from(0 .. 30)
        |> Iterator.map(_ => Person.{
            random.between(1, 10)
            random.string(10, alpha_numeric=true)
        })
        |> Iterator.collect()

    // Sort them by age
    Slice.sort(people, (a, b) => a.age - b.age)

    // Group them by age
    group_iter := Iterator.from(people)
        |> Iterator.group_by((a, b) => a.age == b.age)

    // Print the groups of people
    for group in group_iter {
        printf("People of age {}:\n", group.first.age)

        for v in group.second {
            printf("    {}\n", v.name)
        }
    }
}

Resources

Onyx Installation

Install Onyx on your Linux, MacOS, or Windows system.

Onyx Documentation

Learn about the various aspects of Onyx, from the language semantics and syntax, to the core and third-party packages.

Onyx Book

The official source of language syntax and semantics documentation.

Onyx Playground

Try Onyx online without installing anything

Onyx Discord

Discuss with others about Onyx and get quick feedback and help on your Onyx projects.

Disclaimer

Onyx is still under active development, and some features are subject to change.

Onyx is primarily developed for Linux and MacOS. Windows support exists, but the development experience on Windows is not as refined as the Linux and MacOS development experience.

View on GitHub
GitHub Stars681
CategoryDevelopment
Updated8h ago
Forks28

Languages

C

Security Score

100/100

Audited on Apr 1, 2026

No findings