Skip to content

sahwar/v

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The V Programming Language

V is going to be open-sourced in June 2019. Early access on April 15.

https://vlang.io

Documentation: https://vlang.io/docs

Twitter: https://twitter.com/v_language

 

Fast compilation

V compiles 1.5 million lines of code per second per CPU core.

Such speed is achieved by direct machine code generation.

wc -l doom3.v     # 458 713
time v doom3.v    # 0.5s

Compilation speed benchmark and comparison with other languages.

Safety

  • No global state
  • No null
  • No undefined values
  • Option types
  • Generics
  • Immutability by default
  • Partially pure functions

C/C++ translation

V can translate your entire C/C++ project and offer you the safety, simplicity, and up to 200x compilation speed up.

std::vector<std::string> s;
s.push_back("V is ");
s.push_back("awesome");
std::cout << s.size();
s := []string 
s << 'V is '
s << 'awesome'
println(s.len)

Read about translating Doom & Doom 3, LevelDB, SQLite (coming in April).

400 KB compiler with zero dependencies

The entire V language and its standard library is less than 400 KB. You can build V in 0.3 seconds.

Performance

  • As fast as C
  • Minimal amount of allocations
  • Built-in serialization without reflection

Hot code reloading

Get your changes instantly without recompiling!

Since you also don't have to waste time to get to the state you are working on after every compilation, this can save a lot of precious minutes of your development time.

Demonstration of hot code reloading.

Simple language for building maintainable programs

You can learn the entire language by going through the documentation in half an hour.

Despite being simple, it gives a lot of power to the developer. Anything you can do in other languages, you can do in V.

REPL

 v
 >> data := http.get('https://vlang.io/utc_now')? 
 >> data 
 '1551205308' 

Native cross platform UI library

Build native apps that look native. You no longer need to embed a browser to develop cross platform apps quickly.

Run everywhere

V can compile to (human readable) C, so you get the great platform support and optimization of gcc and Clang.

About

Simple, fast, safe, compiled language for creating maintainable software. Supports translation from C/C++.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%