Skip to content
@avin-lang

Avin

The Avin Programming Language

Avin

A natively compiled, garbage-collected language with a light, indentation-based syntax.

data Shape
    Circle(radius: real)
    Rect(width: real, height: real)

area(shape: Shape) -> real = shape match
    Circle(r) -> 3.14159 * r * r
    Rect(w, h) -> w * h

main() = print([Circle(1.0), Rect(2.0, 3.0)].map(area).sum())

The AVIN philosophy

AVIN stands for Abstraction, Versatility, Intuition and Naturalness: four principles that guide the design of the language. Avin is designed to make sophisticated programming techniques accessible through a simple, expressive and coherent language, in the belief that powerful software should be possible to write without unnecessary complexity.

  • Abstraction — express complex ideas simply. Classes, traits, generics, higher-order functions and pattern matching, in service of programs that are easier to understand. Powerful abstractions should simplify code, not complicate it.
  • Versatility — one language, many possibilities. Object-oriented, functional, imperative and generic programming coexist, compiled to native code, from command-line utilities to desktop software. The language should adapt to the problem, not the other way around.
  • Intuition — code should behave as you expect. A coherent type system, straightforward semantics, helpful inference and few surprises. The obvious way to express something should usually be the correct way.
  • Naturalness — code that flows naturally. Concise syntax without needless punctuation, repetition or boilerplate. Writing code should feel like expressing an idea, not negotiating with a compiler.

Abstraction provides expressive power, versatility freedom of approach, intuition predictability, and naturalness elegance: together, a powerful, expressive programming language in which sophisticated ideas can be expressed simply and naturally.

Repositories

  • avin — the compiler, runtime, standard library, specification and editor support
  • Documentation

Avin is young: the specification is the design, and the compiler is being built to it.

Popular repositories Loading

  1. tui tui Public

    A terminal UI library written in Avin

    1

  2. avin avin Public

    A natively compiled, garbage-collected application language with a light, indentation-based syntax

    C

  3. .github .github Public

    The avin-lang organization's profile

  4. avin-intellij avin-intellij Public

    IntelliJ plugin for Avin: highlighting and the Avin language server through LSP4IJ

    Kotlin

  5. homebrew-tap homebrew-tap Public

    Homebrew tap for Avin: brew install avin-lang/tap/avin

    Ruby

  6. parsing parsing Public

    Parser combinators for Avin: grammars written as Avin expressions over small parsers

Repositories

Showing 10 of 18 repositories

Top languages

Loading…

Most used topics

Loading…