The V Programming Language

@vlang
Simple, fast, safe, compiled language for developing maintainable software.
364 Posts · View all posts

V 0.4 is out!

V 0.4 is out!

2160 commits pushed to master, 1205 bugs closed since V 0.3.

4 165 files changed, 329 174 insertions(+), 42 434 deletions(-)

The changelog is huge! It has 370 items:

V 0.4

*1 Jul

...

Getting Started With V

getting-started-with-v

Introduction

V is a simple, fast, safe, compiled general purpose programming language for developing maintainable software. There are several compelling reasons for us

...

Setting Up GitHub Actions for V

The Article Series

  1. The Complete Beginner’s Guide to CLI Apps in V
  2. Elevate Your V Project With Unit Tests
  3. Setting Up GitHub Actions for V (You are here)

What is CI/CD, DevOps,

...

Elevate Your V Project With Unit Tests

The Article Series

  1. The Complete Beginner’s Guide to CLI Apps in V
  2. Elevate Your V Project With Unit Tests (You are here)
  3. Setting Up GitHub Actions for V

Previous Article

This article p

...

The Complete Beginner Guide to CLI Apps in V

The Article Series

  1. The Complete Beginner’s Guide to CLI Apps in V (You are here)
  2. Elevate Your V Project With Unit Tests
  3. Setting Up GitHub Actions for V

Goal

Our goal is to make a simple CLI

...

On the benefits of using C as a language backend

V uses C as the primary backend.

Many people find this choice strange, and one of the most common comments/suggestions is "Why not use LLVM?"

  1. Using a C backend is a completely valid strategy (for example, the first C++ compiler Cfront did exactly this). C can be viewed as a modern cross-platfo

...

V now compiles itself in 0.09s

V now compiles itself in a stunning 0.09 seconds:

wget https://github.com/vlang/v/releases/download/0.1.21/v_linux.zip
unzip v_linux.zip && cd v
./v -o ./v2 v.v # warm up
time ./v -fast -o ./v2 v.v
0.06s user 0.03s system 97% cpu 0.094 total
./v2 -o v3 v.v # make sure that V can still buil

...