talira

The Data-Oriented Language for People Who Ship Software

open sourceZlibfree

Odin is a general-purpose programming language with distinct typing, built for high performance, modern systems and data-oriented programming, and meant as an alternative to C. It's an imperative, procedural language by design, with no methods and no automatic memory management: memory is freed explicitly, through custom allocators (arenas, pools, stacks) and an implicit context system for allocation, logging and thread data. It has array programming with swizzling and SIMD, bit sets, enumerated arrays, slices, dynamic arrays and maps, tagged unions, multiple return values, defer, explicit overloading, introspection on all types, fine control over memory layout and endianness, and inline assembly. Its compiler uses LLVM as its main backend. There's deliberately no package manager: dependencies are vendored by hand, and the compiler ships core and vendor library collections. Games on Steam and commercial tools such as JangaFX's EmberGen are written in it.

Libraries for Odin

Talira doesn't list any yet.

Problems it solves

  • a simpler alternative to C for high-performance systems and games
  • control memory layout and allocation explicitly with custom allocators
  • write data-oriented code for a game engine or real-time simulation
  • a compiled language with array programming and SIMD built in
  • a small language whose whole specification I can keep in my head

Features

  • distinct typing with type inference
  • custom allocators and an implicit context system
  • array programming, swizzling and SIMD
  • bit sets, enumerated arrays, slices, dynamic arrays and maps
  • tagged and untagged unions
  • multiple return values and defer
  • introspection on all types and control over memory layout
  • inline assembly
  • LLVM backend

Limitations

  • No official package manager, by design: dependencies are vendored manually.

Alternatives

The same job

These do what Odin does.

  1. Hare A systems programming language designed to be simple, stable, and robust
  2. Zig A general-purpose programming language and toolchain for maintaining robust, optimal and reusable software
  3. Nim Efficient, expressive, elegant
  4. C++ A general-purpose programming language with a bias towards systems programming

Compare Odin with the top 3