talira

Simple, fast, safe, compiled. For developing maintainable software

open sourceMITfree

V is a statically typed compiled programming language for building maintainable software, similar to Go and influenced by Oberon, Rust, Swift, Kotlin and Python. Its compiler is written in V, compiles itself in about half a second and turns out roughly 100,000 to 700,000 lines a second depending on the backend; it emits human-readable C for GCC or Clang to optimise and is growing its own machine code backends. V adds safety over Go: bounds checking, no null or undefined values, immutable variables, structs and arguments by default, Option and Result types with mandatory error checks, sum types and generics. Memory is managed by a tracing garbage collector by default, with experimental autofree, manual management or arenas as options. It cross-compiles with one flag, reloads code live, translates C projects into V (DOOM among them), and has vpm, a central package manager, plus V UI for native GUIs. Vinix is an operating system written in V.

Libraries for V

Talira doesn't list any yet.

Problems it solves

  • a simple compiled language like Go but with no null and immutability by default
  • a language whose compiler builds my whole project in under a second
  • translate an old C codebase into a safer, simpler language
  • cross-compile a native GUI app for Windows and Linux from one machine
  • a small, fast language for command-line tools that ship as one dependency-free binary
  • change code while the program is running without losing its state

Features

  • static typing with generics and sum types
  • compiles about 100k to 700k lines a second; self-hosted compiler
  • emits human-readable C for GCC or Clang, plus native backends
  • no null, no undefined values, immutable by default
  • Option and Result types with mandatory error checks
  • tracing GC by default, with autofree, manual and arena options
  • cross-compilation with -os windows or -os linux
  • live code reloading
  • C to V translation
  • vpm package manager and V UI native GUI library

Limitations

  • Autofree memory management is still experimental and not production ready; it's planned for V 1.0.1

Alternatives

The same job

These do what V does.

  1. Go Build simple, secure, scalable systems with Go
  2. Zig A general-purpose programming language and toolchain for maintaining robust, optimal and reusable software
  3. Nim Efficient, expressive, elegant
  4. Haskell Enjoy long-term maintainable software you can rely on
  5. Hare A systems programming language designed to be simple, stable, and robust
  6. Gleam A friendly language for building type-safe systems that scale

Compare V with the top 3