GithubHelp home page GithubHelp logo

sahwar / v Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vlang/v

0.0 1.0 0.0 423 KB

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

License: MIT License

Go 100.00%

v's Introduction

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.

v's People

Contributors

medvednikov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.