V is an [[MIT License]] licensed [[Transpiled]] targeting [[C]] which is self-hosted (bootstrapped in [[C|C]]). - [Website](https://vlang.io/) - [Source](https://github.com/vlang/v) - [Documentation](https://github.com/vlang/v/blob/master/doc/docs.md) - [Package Registry](https://vpm.vlang.io/) - [Wikipedia](https://en.wikipedia.org/wiki/V_(programming_language)) > Despite being simple, **V** gives a lot of power to the developer and can be used in pretty much every field, including systems **programming**, webdev, gamedev, GUI, mobile, science, embedded, tooling, etc. # Notability It is a small, fast, low level programming language that compiles down to a very compatible set of C which (in theory) allows it to be used to write programs for nearly every piece of hardware or software to exist in the last 50 years. No semicolons required! Apparently was originally developed for [[Volt Instant Messenger]]. # Thoughts I started using V in 2021 or so, but was aware of it earlier. The primary developer has always been kind and helpful in the community as far as I've witnessed. Bugs are often directly handled by the founder themselves, and the list of open issues and pull requests remains reasonable because they stay on top of things. Its syntax and ergonomics are a relief. The edges of things are less sharp than in similar languages and (when it works) it is a joy to use. However, it is quite buggy. While the original compiler has only a few major issues, the in-development "`v3`" compiler has a great many holes. This would be understandable, except that `v3` is being pushed as the default, a standard `v up` update won't even build the old compiler, yet many programs will not work with the new one. The biggest issue for me is what a moving target it is. Tagged releases aren't made often and `v up` will actually pull the most recent *commit* from the repo. This means that no two users are likely to be on the same commit. What's more is that `HEAD` may be broken. Leaving you with a completely non-functional build environment. But yet you have to upgrade in order to get bugfixes. It's a lose-lose proposition. The compiler relies on files in the repo to build projects. The repo is actually several different repos, which must all be in sync for things to compile. So it's non-trivial to roll back to an earlier version. For example, at one point I tried using [[git]] `bisect` to find when a particular bug started occured only to realize that I would need to figure out the matching commit in the other repos for it to compile. I may yet find a workaround for this, but it is a huge impediment to debugging the (frequent) compiler issues. One of my older projects cannot be compiled with a newer compiler and, as a result of not being able to use `git bisect`, I don't know why. So had to rewrite it in another language entirely, much to my chagrin. I've started manually backing up the entire repo structure to keep track of known "good" configurations, but ultimately I struggle to see a future in this ecosystem due to the sad [[#Slop]] takeover. # Philosophy ## Slop The primary developer uses [[Codex Slop]][^13] ([[ChatGPT]]) and [[Claude Slop]]. Constantly for reviews[^10] and for commits[^23] to the V codebase[^3] but is more obvious about it in related projects. I've even seen the developer recommend [[ChatGPT]] to fledgling programmers, despite their misgivings. The [[Vinix]] [[Operating System]], started by the same developer, promotes that it supports [[Claude Slop]] and [[Codex Slop]]. There is the implication that increasingly large amounts of the commits across the many in-flight projects are "vibe coded" by [[LLM]]s. For someone who was a prolific coder before [[LLM]]s, this is incredibly sad. [[Markdown]] support was added to `veb` specifically to better support [[Generative AI|Slop]] ingestion[^5] of served content in late 2025.[^6] Likewise, `MCP` was also added to the standard library.[^9] In early [[2026]] contributor `spytheman` made a pull request[^8] itself generated by a [[Generative AI|Slop]] chatbot to add an `AGENTS.md`[^2] to the official V repo. It was accepted.[^7] The official V Discord moderators will silently delete any negative remarks about the use of slop, no matter how slight. It's starting to feel like the whole project is automated and spinning its wheels. Bugs get closed by bots who report them fixed, but real testing shows that the problem persists and the changes affected unrelated code. Frequently the build is broken, presumably due to chatbots spitting out broken code because they cannot "understand" the complex codebase. Even die-hards and mods have been morose about the dire situation with the buggy vibe-coded new compiler. It's like, why even report bugs when you know it'll be a chatbot that will be making changes that will only produce *more* bugs?? ## Development V's development is split among *many* different side projects, including an attempt at an office suite, a web browser (which is largely just a port of [[Ladybird Browser]], if I am understanding correctly), an [[Vinix|operating system]], a [[git]] forge, and many others - with more cropping up all the time. These are all valid test cases, but they are all buggy and wildly incomplete and split the development time of the main dev. If they were more self-contained or more functional then it would fell less weird. But as it stands, it feels like resume padding: just something to show off in screenshots. Yet the language itself is also buggy and constantly breaking, so to me, it seems irresonsible to split dev time this way until the core is stable. ## Influences > It's similar to Go and its design has also been influenced by Oberon, Rust, Swift, Kotlin, and Python. \- Official Documentation It really shows its [[Go]] influence, and could be viewed as a response to it, making significant improvement on [[Go]]'s common patterns. Error handling is theoretically similar, but due to a handful of minor tweaks, it is less disruptive and code is much cleaner. ## Pre-Release Controversy > Tons of people were saying the same thing before Volt was released. “It’s impossible to have a 200 KB Slack client. You are a scammer.” \- `medvednikov`, paraphrasing earlier critics (2019)[^18] It seems that the main reason that V got a lot of hate early is simply that it seemed to do things that were too good to be true. Yet, as far as I'm aware, it actually does (at least *most* of) the things it claimed. Some of them were a little buggy or incomplete when first released - but things usually are - and have since been fixed. Some people have claimed that the lead developer `amedvednikov` is allergic to criticism and has banned people for it. He does admit to deleting posts, and I have seen him (or his mod team) continue to do so in the years since. > I deleted 2 posts that were repeating the same points and contained misinformation. \- `medvednikov`, via GitHub issue comment (2019)[^17] [[Zig]]'s main developer (who I otherwise like) was pitching a fit on HackerNews that V's was making almost as much on [[Patreon]] as him despite V being a new language. That seemed to be the crux of his ire - simply that V made outrageous claims and was making money. Yet, those claims were *true* (or at least mostly true). Various [[Odin]] developers (`gingerBill`, `Kelimion`, `dotbmp`) also threw a fit on a Github issue, making wild accusations. An Odin dev later claimed that V's dev was "lashing out" and I think that is ridiculous. I think V's dev handled the intense attack really well. The lead V dev `volt_dev` *has* been "suspended" from Reddit entirely. What follows are some of the major complaints I saw. ### No Runtime Claim > V doesn't need runtime information to decode JSON, because it achieves it via codegen. All information about types is known at compilation time. \- `medvednikov`, via GitHub issue comment (2019) [^19] V does ship with a standard library. A lot of people have complained about this claim. But I think it is at least *partially* unfair. For most languages with a runtime library, there is a kind of *fixed* extra overhead, lots of functions, often dead code hanging off of the distributable. In the ideal case V only uses code in the place you ask for it and only if you need it by using simple techniques. This would be tedious to do by hand, but is entirely possible to do, and V frontloading it for you makes it easy. However, there are still some [issues](https://github.com/vlang/v/issues/20126) and small programs often end up with far more code than they need, even though the C compiler ends up optimizing most of it away to produce surprisingly small binaries. It can still be faster than using the standard libraries in C, even though that sounds impossible, because it never has to do all the extra work at runtime that C does, because it can optimize it in place at compile time. It's just a completely different way of thinking about programming languages than most other language designers are familiar with. But it is not impossible. It's just a different paradigm. For comparison, a decent-sized V program compiled with `-prod` will end up being a fraction of the size of a Go hello world program. ### No AST Other language devs also say this is impossible. It really isn't though. There's a lot of different ways to represent and transform code. Code doesn't need to be rendered into a traditional AST to accomplish those tasks. I've done it. But most books and classes teach it as the only way. The original v1 (when the claims were made) and 2026 `fastc` transpiler backends use direct codegen, while the v3 transpiler does use AST.[^22] ### Doom in Under a Second A great many people pointed out how "impossible" this was and ignored everything else. Yet, with an appropriate pipeline and pre-formatted code, it is. And V does it. > Clang compiles 200k lines of sqlite.c in 1 second. \- `vlang_dev` in response to early criticism[^4] The problem was that V's dev was talking about the results of an unreleased project at the time and since people couldn't replicate it, they were skeptical. Except that it wasn't impossible since other projects already accomplished that. It is a build with **no optimization** from the C backend ([[Tiny C Compiler]]), but *that isn't important*! Why not? Because during development you care about rapid compilation to test and iterate. The release build pipeline being slower doesn't really matter all that much. People were somehow inferring that "builds fast" meant "builds a fully optimized binary fast" and those are two very different claims. Yet [[Go]] was allowed to get away with claims like that because of the Google-centric marketing. For more on this see [[Go#Original Claims]]. ### Memory Management This is the one thing that critics have kinda right. V's dev thought that they were going to have solved the `autofree` problem pretty quickly, but it is still experimental years later. > Autofree is still WIP. Until it stabilises and becomes the default, please avoid using it. Right now allocations are handled by a minimal and well performing GC until V's autofree engine is production ready. \- official documentation[^21] > it can be enabled with `-autofree`. It takes care of most objects (~90-100%): the compiler inserts necessary free calls automatically during compilation. Remaining small percentage of objects is freed via GC. \- official home page[^20] The main thing that annoys me about the criticism is that other languages already made similar claims and there's been almost no pushback on them. [[Go]] made similarly outrageous claims about [[Garbage Collection]] (and many other capabilities of the language) and even silently changed their roadmap to remove references to embarrassing early claims, yet I hardly ever see anyone mention any of it. [[Swift]] also claimed that it didn't need GC because of an `autofree`-like system. It turned out it was just a standard reference counting GC with some compile-time hints. Despite this I never heard such a campaign of hate directed against it. Over time Swift removed references to its "fallback" GC, and retains unresolvable memory usage anomalies to this day. It's all marketing. To me, V having only a partial solution is not even slightly on the same level as [[Go]]'s complete lies. It's not that I think that V's dev being overly optimistic about solving this problem should not be taken into account when considering it, just that the amount of rage around it is disproportionate. ## Stability At one point, V promised stability and automatic upgrades. This never happened in practice. Older programs will *not* compile with newer versions of V. Not only with the `v3` compiler, but even with different iterations of the `v1` compiler. # Platform Support > CI tests runs on every commit/PR for each of these \- V's Build Documentation[^1] V ships binaries for only 5 targets: - Linux ([[AMD64]] & [[ARM64]]) - Mac ([[AMD64]] & [[ARM64]]) - Windows ([[AMD64]] only, with some stdlib features missing[^14]) ## Build Instructions The project's readme includes build instructions for [[FreeBSD]], [[OpenBSD]], and [[Termux]]. However these platforms do not enjoy the same degree of standard library support and breaking compatibility with these platforms is not a blocker to merging.[^16] ## Secondary Support V *claims* general support for dozens of other targets including most [[Operating System]]s and [[ISA]]s.[^15] This would make sense because it compiles down to [[C]], but is difficult to substantiate without build artifacts. Some of the interesting targets include [[Haiku]], [[Solaris]], and [[Plan 9]] as well as [[RISC-V]]. But these targets may have significant limitations compared to the ones with primary support. ## Other - [[Godot]] integration via https://github.com/rosshadden/gdext-v - [[Universal CTAGS]] supports V, so no special configuration is required # Features # Example ## Fibonacci Sequence ```c // This program displays the fibonacci sequence import os fn main() { // Check for user input if os.args.len != 2 { println('usage: fibonacci [rank]') return } // Parse first argument and cast it to int stop := os.args[1].int() // Can only calculate correctly until rank 92 if stop > 92 { println('rank must be 92 or less') return } // Three consecutive terms of the sequence mut a := i64(0) mut b := i64(0) mut c := i64(1) println(a + b + c) for _ in 0 .. stop { // Set a and b to the next term a = b b = c // Compute the new term c = a + b // Print the new term println(c) } } ``` # Tips ## Optimized Builds ```sh v -prod my_file.v ``` ### Tuning > Note: gcc versions > 12.0 often have issues with inlining, that manifest with `-prod`. To work around them, you can use `-prod -cflags -fno-inline-small-functions`. \- `v help build` documentation You can pass `-showcc` to see what compiler commands `v` is running during a build, this can help when you are tuning and debugging your optimized build. ## Prerequisites While `v` executables only build against the same libraries you might expect for your application, they also have an implicit dependency on the `addr2line` command[^12] usually supplied with `binutils` package. Without this command available, `v` will be unable to show stack traces during errors.[^11] Very weird! ## Force v3 Compiler The v3 compiler is the default now, but if something fails to compile it will automatically fall back to the old compiler, eating the errors. In order to reports errors, you must force-enable the v3 compiler to prevent it from falling back to the old one. ```sh v -new-compiler run file.v ``` ## Force v1 Compiler The original compiler may not be included in the distribution by default and you will need to build from source using `make` instead. ```sh v -old-compiler run file.v ``` ## Clone Struct While most data structures have a `clone()` method, structs do not. The only built-in way to copy a struct is to use the "update" (`...`) syntax: ```v fn register(u User) User { return User{ ...u is_registered: true } } ``` Despite being called "update" and having a confusing example in the documentation, this actually does copy the struct in memory, modifying as many or as few fields as you like in the process. ## Append Array ```v c = a << b d = arrays.append(a, b) c == d ``` # Resources - [Awesome V](https://github.com/vlang/awesome-v) - [Forum](https://github.com/vlang/v/discussions) - [Roadmap](https://github.com/vlang/v/blob/master/ROADMAP.md) - [[Aixt]] a V-like language for embedded use ## V Libraries See: [[V - Libraries]] - for [[Redict]] - https://github.com/einar-hjortdal/redict - run [[PostgreSQL]] in a single process - https://github.com/Ladybug-Memory/vpg (normal support is part of the stdlib as `db.pg`) # References - https://blog.siwei.dev/post/implementing-linked-lists-in-vlang/ - https://github.com/v-analyzer/v-analyzer ## Old Complaint Threads - https://www.reddit.com/r/vlang/comments/kyrs9h/how_does_v_compare_to_zig/ - https://www.reddit.com/r/programming/comments/atoq8e/v_is_a_new_language_touting_very_fast_compilation/ - https://www.reddit.com/r/rust/comments/b1ih91/v_language_new_programming_language_inspired_by/ - https://www.reddit.com/r/rust/comments/b1ih91/v_language_new_programming_language_inspired_by/ - https://github.com/vlang/v/issues/35 - https://news.ycombinator.com/item?id=21296855 - https://christine.website/blog/v-vaporware-2019-06-23/ - Some of the shit in this article is so absurd and unfair that my mind is blown - ''So the compiler with "zero dependencies" is a _dynamically linked binary_ with dependencies on libpthread and libc'' lol ## Footnotes [^1]: https://github.com/vlang/v/blob/54f7c36acac9b97da0c117251edd39000b8167e5/vlib/v/help/build/build-c.txt#L136 [^2]: https://github.com/vlang/v/blob/master/AGENTS.md [^3]: https://github.com/vlang/v/commit/a66e4dab6346e2c7afd5fb665da67d3b8144e799 [^4]: https://github.com/vlang/v/issues/35#issuecomment-476150957 [^5]: https://modules.vlang.io/veb.html [^6]: https://github.com/vlang/v/commit/416e5eeea81e7289e2b235378b162aed4b8a7ae0 [^7]: https://github.com/vlang/v/commit/22f42a414ab9540fea9f9292868c67a3595542a8 [^8]: https://github.com/vlang/v/pull/26502 [^9]: https://modules.vlang.io/mcp.html [^10]: https://github.com/vlang/v/blob/master/.github/workflows/claude_code_review.yml [^11]: https://github.com/vlang/v/issues/20768 [^12]: https://github.com/vlang/v/blob/6fd6cb037ba74638a3e8a6b4d1d7c489bc68d8f7/vlib/builtin/backtraces_nix.c.v#L152 [^13]: https://github.com/vlang/v/pull/28230#issuecomment-5453185320 [^14]: https://github.com/vlang/v/blob/master/examples/readline/readline.v [^15]: https://github.com/vlang/v/blob/weekly.2026.08/vlib/v/help/build/build-c.txt#L130 [^16]: https://github.com/vlang/v/blob/d5c606739459c28d8829b39b6cc83a550ba0d2eb/.github/workflows/README.md#ci-lanes [^17]: https://github.com/vlang/v/issues/35#issuecomment-474709357 [^18]: https://github.com/vlang/v/issues/35#issuecomment-475621057 [^19]: https://github.com/vlang/v/issues/35#issuecomment-476150957 [^20]: https://web.archive.org/web/20260820113038/https://vlang.io/#memory [^21]: https://docs.vlang.io/memory-management.html#control [^22]: excerpt from Discord: > V now has an experimental fastc backend, which also self hosts. It's 9 times faster than V1 and V3, and it uses 8x less RAM. 67 ms to self host, 192 MB of RAM It works like tcc. No AST, straight generation. Just experimenting with it for now. If it stays, it'll have to be developed in parallel with the AST backend, which is not an issue these days. link: https://discord.com/channels/592103645835821068/592320321995014154/1542346853000151080 [^23]: https://github.com/vlang/v/pull/28691