v
V programming language compiler
TLDR
Compile file
SYNOPSIS
v [run] [-prod] [options] file
DESCRIPTION
v is the compiler for the V programming language, a statically typed systems language designed for simplicity and fast compilation. It compiles V source code to native machine code via C, achieving near-instant build times even for large projects.
The compiler includes a built-in code formatter, test runner, REPL, and package manager. V emphasizes memory safety through features like no null pointers, immutable variables by default, and optional garbage collection. It provides seamless C interoperability, allowing direct calls to C libraries without bindings.
Production builds with the -prod flag enable additional optimizations. The compiler can also generate C source code for portability to platforms without a V compiler available.
PARAMETERS
run
Compile and run.-prod
Production build.fmt
Format code.repl
Interactive mode.test
Run tests.-o FILE
Output name.
CAVEATS
Young language. Ecosystem growing. V-specific.
HISTORY
V was created by Alexander Medvednikov as a simple, fast, and safe systems programming language.
