Getting Started with V Programming : An End-To-end Guide to Adopting the V Language from Basic Variables and Modules to Advanced Concurrency.
Learn a new statically compiled programming language to build maintainable and fast software with the help of this comprehensive guide to V programming Key Features Explore the features of the V programming language step by step with this beginner's guide Gain strong foundational knowledge of c...
Autor Principal: | |
---|---|
Formato: | Licensed eBooks |
Idioma: | inglés |
Publicado: |
Birmingham :
Packt Publishing, Limited,
2021.
|
Acceso en liña: | https://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=3088639 |
Table of Contents:
- Cover
- Title Page
- Copyright and Credits
- Contributors
- Table of Contents
- Preface
- Section 1: Introduction to the V Programming Language
- Chapter 1: Introduction to V Programming
- The past, present, and future of V
- V is a statically typed and compiled programming language
- Simple and maintainable syntax
- Backward compatibility, stability, and easy to upgrade to future versions
- Features of V programming
- Performance
- Speed
- No null values
- No global variables
- No undefined values
- Error handling
- Powerful concurrency
- Easy cross-compilation
- V to JavaScript conversion
- Profiling
- V as a framework
- Memory management using the autofree engine
- Inbuilt ORM
- Built-in web server
- Native cross-platform GUI library
- Vinix
- an OS kernel written in V
- Operating systems V supports
- Summary
- Chapter 2: Installing V Programming
- Technical requirements
- Installing V on the Windows OS
- Approach 1
- installing V from portable binaries on the Windows OS
- Approach 2
- installing V from source on the Windows OS
- Adding V to the environment variables in the Windows OS
- Accessing V programming using a REPL
- Installing V on the Linux OS (Ubuntu)
- Using Symlink V to make V accessible globally in Ubuntu
- Summary
- Section 2: Basics of V Programming
- Chapter 3: Variables, Constants, and Code Comments
- Technical requirements
- Understanding variables in V
- The variable naming convention
- Variable assignment
- Features of variables in V
- The limitations of variables in V
- Working with constants in V
- Naming conventions for constants
- Defining constants
- Defining complex constants
- Best practices when working with constants
- Variables versus constants
- Adding code comments in V
- Single-line comments
- Multiline comments
- Summary
- Chapter 4: Primitive Data Types
- Technical requirements
- Introducing primitive data types
- The Boolean data type
- Logical operators
- Relational operators
- Numeric data types
- Signed and unsigned integers
- Floating-point types
- Promoting numeric types
- Operations on numeric data types
- Arithmetic operators
- Bitwise operators
- Shift operators
- The string data type
- Working with the string data type
- The rune data type
- Operations on the string data type
- String interpolation
- String manipulation techniques
- Summary
- Chapter 5: Arrays and Maps
- Technical references
- Arrays
- Different methods to declare arrays
- Working with the len and cap array properties
- Accessing array elements using the index
- Accessing array elements using slices
- Operators used with arrays
- Fixed-size arrays
- Multidimensional arrays
- Performing various operations on an array
- Maps
- The explicit initialization of a map
- The short syntax initialization of a map
- The count of key-value pairs in a map
- Retrieving a value given the key of a map