Skip to content
프로젝트

소개

✨ Onyx 컴파일러 및 개발자 도구 체인

프로그래밍 언어 및 런타임

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Onyx Logo
An efficient, procedural, and pragmatic programming language


Workflow License

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.

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.

관련 프로젝트 살펴보기

불러오는 중…