talira

A systems programming language designed to be simple, stable, and robust

open sourceMPL-2.0 AND GPL-3.0-onlyfree

Hare is a systems programming language designed to be simple, stable and robust, with a static type system, manual memory management and a minimal runtime. It suits operating systems, system tools, compilers, networking software and other low-level, high-performance work. It's self-contained, with no dependency on libc, and small enough that one person can read and understand the whole compiler: its backend is qbe (about 15,000 lines of C) rather than LLVM, trading some run-time speed for a toolchain one programmer can understand and fast build times. It has a comprehensive language specification, a standard library, defer and built-in error handling, and no generics, garbage collector or package manager; once Hare 1.0 ships its syntax and semantics will freeze. It runs on Linux, FreeBSD, NetBSD, OpenBSD and DragonFlyBSD on x86_64, aarch64 and riscv64, and deliberately doesn't support Windows or macOS upstream.

Libraries for Hare

Talira doesn't list any yet.

Problems it solves

  • a simple C replacement for writing operating systems and system tools
  • a systems language small enough that I can understand the entire compiler
  • a language that will stay stable for decades once it reaches 1.0
  • write low-level networking software without libc
  • a systems language with fast build times and manual memory management

Features

  • static type system
  • manual memory management and a minimal runtime
  • self-contained, with no libc dependency
  • qbe backend and fast builds
  • comprehensive language specification
  • defer and built-in error handling
  • Linux and the BSDs on x86_64, aarch64 and riscv64

Limitations

  • No upstream support for Windows or macOS, by design (a third-party macOS port exists).
  • No generics and no package manager, by design.

Alternatives

The same job

These do what Hare does.

  1. Odin The Data-Oriented Language for People Who Ship Software
  2. Zig A general-purpose programming language and toolchain for maintaining robust, optimal and reusable software
  3. Nim Efficient, expressive, elegant
  4. V Simple, fast, safe, compiled. For developing maintainable software
  5. Gleam A friendly language for building type-safe systems that scale
  6. Go Build simple, secure, scalable systems with Go

Compare Hare with the top 3