Latest Version of V Programming Language Launched
After two months of development, the new version of a static programming language, V (vlang), has been published. The main goals in creating V were to prioritize simplicity of study and use, high readability, rapid compilation, increased safety, effective development, cross-platform use, improved interaction with the C language, better error processing, modern features, and more convenient program support. The project also continues to develop its graphic library and a package manager. The code of the compiler, libraries, and related tools are open under the MIT license. [source]
Highlights of the New Version
- Attributes are now translated using new syntax.
- For structures and associations, attributes “@[aligned]” and “@[aligned: 8]” are supported.
- Additional support has been added for expressions such as “$ if t is $ Array”, “$ if t is $ array_dynamic”, and “$ if t is $ array_fixed”.
- Assignment of the zero value to fields with links can now only be performed in Unsafe blocks.
- Flags “r” and “r” have been added for string reinforcement, enabling statements like “‘$ {” ABC “: 3r}’ == ‘AbcabCabc'”.
- An experimental version of the X.Vweb module has been prepared, which includes a simple but powerful web server with built-in routing, handling parameters, templates, and more. The standard language library now includes both a multi-threaded blocking web server (VWEB) and a single-process non-closing (X.Vweb) similar to node.js. [source]
- A library called vssh has been implemented for working with SSH. [source]
- A module for working with disposable passwords (Hotp and Potp) called votp has been added. [source]
- The development of a simple operating system written
/Reports, release notes, official announcements.