Hasty Briefsbeta

V Programming Language version 0.4.12 released

8 hours ago
  • #programming
  • #V-language
  • #update
  • Version 0.4.12 released on 19 Sep 2025 with significant improvements.
  • New JSON encoder implementation in json2, 70% faster than the old one and 110% faster than cJSON-based json.
  • Introduction of virtual C consts with custom types (e.g., const C.MY_CONST u8).
  • Support for -div-by-zero-is-zero flag, allowing x / 0 == 0 and x % 0 == x for integer types.
  • VLS mode added for the language server in pure V.
  • Support for @OS, @CCOMPILER, @BACKEND, and @PLATFORM macros.
  • Deprecation of gx in favor of gg, which now includes all gx functionalities.
  • Multiple checker improvements and fixes, including sizeof(T) in generic structs and comptime support for additional platforms.
  • Parser improvements, including support for -force-bounds-checking and fixes for syntax errors in loops and struct initializations.
  • Compiler internals enhancements, including better string interpolation handling and improved tracking of used closures.
  • Standard library updates, including new modules like curve25519, Ascon cryptographic module, and improvements to math.big and sync.
  • Web-related fixes, including HTTP multipart form parsing and Veb framework improvements.
  • ORM support for lowercase operators like 'like', 'in', and 'not in'.
  • Database driver modifications for MySQL, PostgreSQL, and SQLite to support connection pooling.
  • Native backend improvements, including support for comptime CPU architectures and ELF globals.
  • C backend fixes, including sumtype option unwrapping and static/volatile variable dereferencing.
  • JavaScript backend updates, including fixes for vfmt and support for 64-bit integers.
  • Tools improvements, including support for repo_branch in v.mod files and better CI job outputs.
  • Operating system support enhancements, including fixes for Windows memory leaks and OpenBSD compatibility.
  • Examples updates, including new sieve of Eratosthenes implementation in primes.v and fixes for doc comment examples.