Description #
V is a statically typed, compiled programming language designed for building fast, safe, and maintainable software. With a syntax inspired by Go, Python, and Rust, V emphasizes simplicity, performance, and cross-platform support.
History #
V was created by Alexander Medvednikov in 2019 with the goal of offering a language that compiles lightning-fast, is easy to learn, and requires minimal boilerplate. It claims compilation speeds of over 1 million lines per second and produces small binaries with no dependencies. The language is still evolving, with a growing community contributing to tooling, documentation, and libraries.
Hello World Code #
fn main() {
println('Hello, World!')
}
How to Run #
Option 1: Online
- V Playground – Official browser-based compiler
Option 2: Local
Download V from vlang.io
Compile:
v run hello.v
Key Concepts #
- Extremely fast compilation (1M+ lines/sec)
- Safe by default (no null, no undefined behavior)
- C interop and hot code reloading
- Built-in concurrency
- Single binary output
- Simplicity over complexity
- Syntax similar to Go and Python
- Option/result types to handle errors
- Built-in formatter and code linter
- Cross-platform (Windows, Linux, macOS, WebAssembly, etc.)
Try It Online #
Fun Facts #
- V’s compiler is written in V and can compile itself in under a second.
- The language can translate C code into V for easier migration.
- Its creator also worked on the Serpent programming language for Ethereum.