V is a compiled programming language aimed at simplicity, fast builds, and C-like runtime performance. It can target native code, C, and JavaScript backends.
Overview
V is a general-purpose compiled language for building maintainable software. The compiler is designed for short edit-compile cycles, including a mode where the toolchain rebuilds itself in under a second during development.
The language emphasizes safety-oriented defaults such as no null pointers, no global variables by default, and immutability unless opted out. It supports hot code reloading, optional arena allocation and autofree, a REPL, a built-in ORM, a built-in web framework, built-in graphics, and cross-compilation.
Syntax changes before a planned 1.0 release are often handled automatically via vfmt. After 1.0 the project intends to enter a feature-freeze mode similar to Go, focusing on bug fixes and performance rather than breaking language changes.
Official container images are published for Debian, Alpine, Nix, and static variants, with linux/amd64 and linux/arm64 builds. The toolchain can be built on Linux, macOS, Windows, BSD-family systems, Solaris, WSL, Termux on Android, and FreeBSD with noted package prerequisites.
Key features
- Fast compilation with multiple backends
- Compiles to readable C via main backend
- Built-in ORM and web framework
- Hot code reloading support
- Cross-compilation support
- Optional arena allocation and autofree
- C and JavaScript compilation backends
- Docker images for multiple Linux bases
Use cases
- Systems and application development in V
- Cross-platform CLI and native utilities
- Projects needing C-speed native binaries
- Learning a compact compiled language