<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Vx</title>
  <subtitle>Notes on building Vx, a heterogeneous-systems programming language.</subtitle>
  <link href="https://vxlang.org/blog/feed.xml" rel="self"/>
  <link href="https://vxlang.org/blog/"/>
  <id>https://vxlang.org/blog/</id>
  <updated>2026-11-17T18:00:00Z</updated>
  <author><name>Aditya Kumar</name></author>

  <entry>
    <title>An escape hatch the size of one fact</title>
    <link href="https://vxlang.org/blog/an-escape-hatch-the-size-of-one-fact.html"/>
    <id>https://vxlang.org/blog/an-escape-hatch-the-size-of-one-fact.html</id>
    <updated>2026-11-17T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>The kernel of one expert in a mixture-of-experts layer writes its results to the rows of its tokens, y[idx[b]]. The Vx compiler refused it, because it could not prove that two blocks never write the same row. No analysis can: the rows are data at run time. Iteration domains, the base of polyhedral compilation, prove that loops with linear indices can run in parallel, and stop at an index loaded from memory. Vx's new type Distinct lets the programmer state the one missing fact, that no two elements of idx are equal. Distinct::check makes one after a sort on the CPU, and unsafe makes one with no check. It is read only, it lives in the signature, and the compiler checks every other access as before. C's restrict states that pointers do not overlap and cannot state this fact. clang refused to vectorize the same scatter-add with every pointer restrict, and with the assume_safety pragma it vectorized the loop and printed 2 where the answer was 4.</summary>
  </entry>

  <entry>
    <title>Vx meets Postgres</title>
    <link href="https://vxlang.org/blog/vx-meets-postgres.html"/>
    <id>https://vxlang.org/blog/vx-meets-postgres.html</id>
    <updated>2026-11-15T18:00:00Z</updated>
    <author><name>Minzy Fox</name></author>
    <summary>VxVector is a PostgreSQL extension whose core is written in Vx. One SQL call samples a table of vectors, trains k-means centroids in Vx, and hands them to VectorChord to build a vector-search index. The same Vx source trains on the CPU and on an Apple GPU, and now builds for an NVIDIA A100. On an M2 Pro, GPU training is 24 to 28 times faster than the single-threaded CPU kernel, with the same bits for L2 and inner product. Building the extension beside the compiler found six prover bugs that are now fixed upstream, more that are open, and language questions about the boundary between Vx, C and the GPU: waiting before C reads GPU memory through a function pointer, pure library functions in across loops, linking two Vx objects, and calling C functions that the linking program defines.</summary>
  </entry>

  <entry>
    <title>Plain loops at the speed of CUDA</title>
    <link href="https://vxlang.org/blog/plain-loops-at-the-speed-of-cuda.html"/>
    <id>https://vxlang.org/blog/plain-loops-at-the-speed-of-cuda.html</id>
    <updated>2026-11-13T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>In Vx, a GPU kernel is two nested for loops, one across blocks and one across lanes. On an NVIDIA A100, a loop that scales a 4096 by 16384 grid ran in 0.343 ms, and the same loop in CUDA took 0.388 ms. Three kernels from llm.c, written as across loops, came within 5% of llm.c's own CUDA, and the softmax was faster. Two changes were in the programs: lanes::sum in place of a serial loop, and fast_tanh and fast_exp in place of the exact functions, which compute in f64. One was in the compiler: it now writes the block size into the GPU code, and every kernel got 4% to 10% faster. We also read the GPU code that nvc++ makes from the same loops in OpenMP, OpenACC and C++ parallel algorithms. OpenACC can come close to Vx in the right form, OpenMP built kernels of over a thousand instructions, and none of them refused a loop with a race. The post says how each number was measured, and where the methods differ.</summary>
  </entry>

  <entry>
    <title>What compiling against z3 taught us about trusting provers</title>
    <link href="https://vxlang.org/blog/what-compiling-against-z3-taught-us-about-trusting-provers.html"/>
    <id>https://vxlang.org/blog/what-compiling-against-z3-taught-us-about-trusting-provers.html</id>
    <updated>2026-11-13T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Since June, the Vx compiler asks the z3 solver to prove contracts while it compiles. It writes each question as SMT-LIB text and sends it to a new z3 process. In five months we found no wrong answer from z3, and every bug was on our side of the pipe. For ten weeks a machine without z3 passed every proof, until a missing solver began to stop the build. Every name was declared as an integer, so z3 skipped each fact that used a bool, in about 23,000 of 26,000 queries, and the tests still passed. Facts that outlived their variables let z3 prove false contracts, and the programs printed wrong answers. And a function with 64 writes through a raw pointer asked z3 16,128 questions, one process each, and a file of GPU kernels did not compile in six hours. The fix asks 492 for that function.</summary>
  </entry>

  <entry>
    <title>The promise of Vx</title>
    <link href="https://vxlang.org/blog/the-promise-of-vx.html"/>
    <id>https://vxlang.org/blog/the-promise-of-vx.html</id>
    <updated>2026-11-09T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>The computer on your desk has many cores, memory in banks and a GPU. The apps you download use little of it, because most of them were written for one core, long before LLMs could help anyone write code. The promise of Vx is that you write the small app you need, and the compiler spreads it over the machine you have: its cores, its memories and its GPU. Three small programs show how: two tasks that share the work with no locks, a blur that runs on the Apple GPU through Metal and on an NVIDIA GPU as PTX, and tensors placed on the NUMA node of the cores that read them. A table says what works today: a Mac and Linux with an NVIDIA GPU work, and AMD, Intel and Windows do not yet.</summary>
  </entry>

  <entry>
    <title>Checking the deadlock watcher</title>
    <link href="https://vxlang.org/blog/checking-the-deadlock-watcher.html"/>
    <id>https://vxlang.org/blog/checking-the-deadlock-watcher.html</id>
    <updated>2026-11-03T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>When each task of a Vx program waits and nothing can wake one, a watcher thread in the runtime stops the program and names each wait. It reports only when two looks in a row see every fiber parked, every thread asleep, no deadline pending and no progress. Its four reads are not atomic, so we wrote a TLA+ model of the wait protocol and the watcher, and TLC checked every order of the steps. Sixteen mistakes put into the model, two of them bugs fixed earlier, each break the claim they should. The first run found a new bug: the timer thread took a deadline off its heap and woke the word only after it let go of the lock, so in that gap the watcher could see no pending deadline and no progress, and report a deadlock that did not exist. A flag now covers the deadline until its wake ends. The watcher made the model ten times larger, so only models with one fiber and one thread turn it on. A Lean proof also showed that select could pass over a channel forever, and select now starts after its last choice.</summary>
  </entry>

  <entry>
    <title>Stack coloring enabled by lifetime markers</title>
    <link href="https://vxlang.org/blog/two-tensors-one-stack-slot.html"/>
    <id>https://vxlang.org/blog/two-tensors-one-stack-slot.html</id>
    <updated>2026-11-02T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>A function needs one stack slot for each local array. Two arrays can share a slot only when the compiler knows that they are not in use at the same time. LLVM's StackColoring pass merges two slots when lifetime markers show that their lifetimes do not overlap. Clang and rustc end each lifetime at the end of a scope, so two arrays in one scope never share a slot. Clang also emits no markers at -O0, or for a variable when a jump enters its scope after its declaration. Vx frees a tensor after its last use, and since #2507 the lifetime of each tensor ends there too. For the same function, C++ and Rust use 8 KB of stack, and Vx uses 4 KB. A task in Vx runs on a stack of fixed size, so this keeps each frame small.</summary>
  </entry>

  <entry>
    <title>Design visibility, builds and versions together</title>
    <link href="https://vxlang.org/blog/design-visibility-builds-and-versions-together.html"/>
    <id>https://vxlang.org/blog/design-visibility-builds-and-versions-together.html</id>
    <updated>2026-10-27T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Three tools in a programming language depend on the public interface of a package: the visibility rules, the build system and the package manager. When a language designs them separately, they disagree. In C++, a private field makes other files rebuild. In Rust, splitting a slow crate makes private items public, and the package manager must then version them. Swift added a package keyword nine years after 1.0 to match its package manager. The idea is to define the interface once and let all three tools read it. That needs a signature that holds the whole interface, and visibility levels that match the units of the build system and the package manager. In Vx, the planned levels private, pkg, ws and pub each answer three questions: who can call this, what rebuilds when it changes, and which version bump the change needs. Today vxc writes interface files and vx-api diff computes the version bump, but pkg and ws do not exist yet, so vx-api treats every item as public.</summary>
  </entry>

  <entry>
    <title>Two bugs the H100 did not show</title>
    <link href="https://vxlang.org/blog/two-bugs-the-h100-did-not-show.html"/>
    <id>https://vxlang.org/blog/two-bugs-the-h100-did-not-show.html</id>
    <updated>2026-10-27T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Vx's memory model forbids load buffering with relaxed atomics, as RC11 does, so that no value comes out of thin air. herd7, memalloy and Lean check the model, but nothing checked the GPU code that vxc generates. Five of the model's litmus tests, written as Vx programs, ran 11 times each on an H100, with 100,000 rounds per run and a stress version of each. Every run printed 0, also the two controls whose result the model allows, so this setup showed no weak result at all. Reading the PTX found two bugs. vxc generated ld.relaxed then st.relaxed, which the PTX model may reorder, so vxc now makes each relaxed atomic read an acquire read, unless a program asks for -fweak-relaxed-atomics. And LLVM 22's NVPTX back end gave every atomicrmw the same relaxed atom, whatever its order. vxc now puts the order in fences around a relaxed atom, as NVIDIA's mapping for C++ allows. LLVM fixed this upstream in LLVM 23. We have not measured the cost of either fix on a GPU yet.</summary>
  </entry>

  <entry>
    <title>GLM on an A100, in Vx</title>
    <link href="https://vxlang.org/blog/glm-on-an-a100.html"/>
    <id>https://vxlang.org/blog/glm-on-an-a100.html</id>
    <updated>2026-10-20T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>The decoder of GLM-5, a mixture-of-experts model of about 750 billion parameters with sparse attention and 256 experts per layer, runs on an NVIDIA A100 through 28 GPU kernels written in Vx and compiled to PTX through LLVM. No small trained GLM-5 exists, so every check uses random weights in the model's real shapes against the unmodified Hugging Face implementation: logits agree to within 1e-5 at every stage of every layer, up to 78 layers deep and 2,300 tokens long, with no sparse-attention selection differing, and 16 greedy tokens are identical. A decode path that keeps the weights on the GPU is bit-identical at full width, 10.8 ms per token for 4 layers against 29 s when weights are re-sent each token, and runs INT4, FP8 and BF16 weights as stored: FP8 and BF16 bit-identical to float32, INT4 top-1 equal. The GPU runs found a race that CPU tests could not: a kernel launched after an upload could read stale memory when several processes shared the GPU. The trained model has not run yet; the next step is a hybrid with experts in host memory.</summary>
  </entry>

  <entry>
    <title>Optimizing for the common case, in language design</title>
    <link href="https://vxlang.org/blog/optimizing-for-the-common-case.html"/>
    <id>https://vxlang.org/blog/optimizing-for-the-common-case.html</id>
    <updated>2026-10-20T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Hardware designers make the common case fast. A language can make the common case need no extra words. The most common parallel loop starts one task per index. Go, C# and JavaScript first made that loop a trap, and later changed their loops so that each iteration gets its own variable. Rust makes it correct with move, which takes every variable at once, so shared data needs let v = &amp;v; first. In Vx, a task takes each variable the way it uses it (borrow, copy or move) with no move keyword, and a copy can never go stale: the code around a task may not write a variable that the task copied, until the join. The loop needs nothing extra, the stop flag that a silent copy gets wrong is a compile error with a hint, and each rare case needs one line. Closures get the same rule next.</summary>
  </entry>

  <entry>
    <title>Breaking the borrow checker on purpose</title>
    <link href="https://vxlang.org/blog/breaking-the-borrow-checker-on-purpose.html"/>
    <id>https://vxlang.org/blog/breaking-the-borrow-checker-on-purpose.html</id>
    <updated>2026-10-15T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>In five days, Vx's borrow checker had twelve fixes for programs it accepted and should have refused, and five for correct programs it refused. Then we tested the tests: each part of the checker was broken on purpose, behind a switch, and the tests ran once per break, 108 times. They caught 93. Of the 15 they missed, 11 were rules no test checked, and those tests are now added; three changed code that no Vx program reaches today; and one led to a real bug. A borrow given to a variable declared outside an if, match, unsafe, while or for block was forgotten when the block ended, and a program read freed memory. This method cannot find a rule that was never written, so we then translated 78 of Rust's borrow checker bug reports into Vx. Vx was right on 38, could not express 15, refused 13 correct programs, and accepted programs it should refuse for 12, which led to 14 new issues. Two correct programs that rustc 1.95 still refuses compile in Vx.</summary>
  </entry>

  <entry>
    <title>What the borrow checker let through</title>
    <link href="https://vxlang.org/blog/what-the-borrow-checker-let-through.html"/>
    <id>https://vxlang.org/blog/what-the-borrow-checker-let-through.html</id>
    <updated>2026-10-14T20:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>A review of Vx's borrow checker found eleven programs that compiled and then did something they should not, and all are now fixed. Two of them get most of the post. One gave 2 without optimization and 1 with it, because two &amp;mut to one variable inside an if arm were not checked against each other, and LLVM trusted the noalias marking. The other, sent by a reader, changed a variable not declared mut, because the checker let the inside of a &amp;mut change type the way the inside of a &amp; may; &amp;mut T must be invariant in T. Both are fixed. Rust's checker has open bugs of the same two kinds: rust-lang/rust#164250, reported on 13 October and eleven years old, gets past a struct's lifetime bounds by assigning to a field, and three 2026 bugs put a borrow where the checker seldom looks. Vx had a bug of the same shape as #164250, with a different cause, fixed on 14 October. A reference into a value with no name, which Rust refuses as E0716, read freed memory in Vx until the same day.</summary>
  </entry>

  <entry>
    <title>When the build order changes the program</title>
    <link href="https://vxlang.org/blog/build-order-should-not-change-a-program.html"/>
    <id>https://vxlang.org/blog/build-order-should-not-change-a-program.html</id>
    <updated>2026-10-09T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>C++ generates a class's copy assignment, or a template's code, only in the files that use it, and each file makes its own copy; the linker keeps one. If the copies differ, the link order decides which one runs, and the standard requires no diagnostic. A short example prints three different results from three builds of the same files. Swift's retroactive conformances and Haskell's orphan instances have the same shape. Rust rules it out with one implementation per type and trait, derived code, and generic code checked once. Vx builds the same program at any thread count and never picks between two implementations silently, but it reports a duplicate implementation only where it is used.</summary>
  </entry>

  <entry>
    <title>Programming a GPU fleet as one program</title>
    <link href="https://vxlang.org/blog/programming-a-gpu-fleet.html"/>
    <id>https://vxlang.org/blog/programming-a-gpu-fleet.html</id>
    <updated>2026-10-08T21:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>In Vx the machine is part of the program: its memories, their capacities and the links between them are declarations the compiler reads. A serving plan for a 70B model sharded 2 ways is refused on an 8-GPU node when it is compiled, with the 111.7 GB it needs against 80 GiB per GPU, while the same plan sharded 8 ways is accepted. Every move between GPUs and machines is priced from the declared link rates before anything runs, one program text is checked against every machine type by changing one flag, and the fleet itself is a graph in the same language. The post ends with what the models cannot express yet.</summary>
  </entry>

  <entry>
    <title>Can a library describe the memory hierarchy?</title>
    <link href="https://vxlang.org/blog/cant-a-library-do-this.html"/>
    <id>https://vxlang.org/blog/cant-a-library-do-this.html</id>
    <updated>2026-10-08T20:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Why make memory placement part of the language, when a library can encode it? Part of it can: a Rust library with one marker type per memory space and const generic shapes makes the Rust compiler reject a host read of GPU memory and a matmul of the wrong shapes. What it cannot do is the rest of the hierarchy. Shape arithmetic such as concat needs an unstable feature, the memory a call path uses cannot be added up by the type checker, and device code lives in a separate crate the host's types do not reach. The post shows the Rust version and the Vx errors for each case.</summary>
  </entry>

  <entry>
    <title>Why void is a value in Vx</title>
    <link href="https://vxlang.org/blog/void-is-a-value.html"/>
    <id>https://vxlang.org/blog/void-is-a-value.html</id>
    <updated>2026-10-08T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>In Vx, void is an ordinary type with exactly one value. A function that returns nothing returns that value, as with () in Rust, and unlike void in C, which C++ has had to work around ever since. Generic code, such as spawn on with a block that returns nothing, then needs no special case. A bug treated a void value as something that could be moved, so using it twice was an error. The post explains the fix, and four gaps found while writing it: a user struct named void escapes the move rules, Result&lt;void, E&gt; is rejected, and two programs fail in code generation.</summary>
  </entry>

  <entry>
    <title>How Vx frees memory</title>
    <link href="https://vxlang.org/blog/how-vx-frees-memory.html"/>
    <id>https://vxlang.org/blog/how-vx-frees-memory.html</id>
    <updated>2026-10-07T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Vx frees memory in four ways, and the type checker decides almost all of it. The checker writes a drop for every tensor a function owns, right after its last use, which a liveness analysis finds. A value whose type implements Drop is dropped at the end of its block, in reverse order, and prints the same as the Rust version of the program. A tensor in GPU memory is freed through the plugin that allocated it, and raw memory from malloc is freed by hand. The post shows the drop points the compiler prints, the calls each drop becomes, and the gaps that are left, including a bug found while writing it.</summary>
  </entry>

  <entry>
    <title>Proving tensor indices at compile time</title>
    <link href="https://vxlang.org/blog/proving-tensor-indices.html"/>
    <id>https://vxlang.org/blog/proving-tensor-indices.html</id>
    <updated>2026-10-05T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>ML code is full of index arithmetic, and a wrong index rarely crashes. Vx hands that arithmetic to the z3 theorem prover while it compiles. In two examples, an offset into a Llama 2 KV cache and a copy of attention heads into GPU shared memory, the compiler proves every index stays inside its tensor for every input, and refuses a wrong stride or an index shifted by one. A larger model shows the limit: the proof held, and the program printed a negative offset, because z3's integers do not wrap and an i32 does. The post also lists what the prover cannot do yet.</summary>
  </entry>

  <entry>
    <title>Vx fully embraces {ML, IR, MLIR}</title>
    <link href="https://vxlang.org/blog/vx-fully-embraces-ml-ir-mlir.html"/>
    <id>https://vxlang.org/blog/vx-fully-embraces-ml-ir-mlir.html</id>
    <updated>2026-10-24T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Vx compiles tensor programs through its own intermediate representation and its own MLIR dialect. A GPU loop with across blocks, across lanes and lanes::sum goes through the vx dialect and the gpu dialect to a PTX kernel with shared memory and warp shuffles. Inside Vx source, mlir! blocks write the core library, its atomics and GPU instructions such as a warp ballot. Each block states what it writes, the race proof uses that, and the compiler checks it against the MLIR. Kernels run on no GPU in the test suite, and there are no tensor cores yet.</summary>
  </entry>

  <entry>
    <title>Can the borrow checker algorithm be auto-vectorized? The answer is yes!</title>
    <link href="https://vxlang.org/blog/can-the-borrow-checker-be-auto-vectorized.html"/>
    <id>https://vxlang.org/blog/can-the-borrow-checker-be-auto-vectorized.html</id>
    <updated>2026-10-01T20:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Vx's borrow checker packs up to four lifetimes into one 64-bit word, and checks that one lifetime may stand in for another with a loop that stops at the first failure. Rewritten without early exits, the check gives the same answers on every input tried, and LLVM vectorizes it without hand-written intrinsics: four slots in one NEON register for one check, eight per instruction for a batch. A batch then costs about 1 ns per check whatever the input, where the old loop takes 0.7 to 12 ns. The compiler now uses the new check, with the equality test kept first because identical words were faster with it.</summary>
  </entry>

  <entry>
    <title>What comptime can do in Vx</title>
    <link href="https://vxlang.org/blog/what-comptime-can-do.html"/>
    <id>https://vxlang.org/blog/what-comptime-can-do.html</id>
    <updated>2026-10-01T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>A comptime block in Vx is ordinary Vx code that the compiler runs while it compiles: loops, recursion, structs, arrays and helpers that take &amp;mut. Its value goes into the program as a constant. Examples include a program that folds to one number, a lookup table, a register machine run inside the compiler, a sort checked on every build, and a z3 proof that a tiled index stays inside its matrix for every input. A block the compiler cannot finish, or one that writes outside itself, is an error.</summary>
  </entry>

  <entry>
    <title>Premature de-optimization is the root of all evil</title>
    <link href="https://vxlang.org/blog/premature-de-optimization.html"/>
    <id>https://vxlang.org/blog/premature-de-optimization.html</id>
    <updated>2026-09-28T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Popular languages hide where memory is, hide the machine's topology, and lower to a low-level IR early. Each choice throws away something the programmer knew, so programs are slow before they are written, and tools such as perf, numactl and Nsight exist to win the speed back. C++ allocators help with NUMA and little else. Vx puts memory placement in the type, reads the machine from a declaration file, and keeps both until code generation.</summary>
  </entry>

  <entry>
    <title>Nonlinear Turing tape</title>
    <link href="https://vxlang.org/blog/many-short-tapes.html"/>
    <id>https://vxlang.org/blog/many-short-tapes.html</id>
    <updated>2026-09-23T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>C, C++, Rust, Java and Python define themselves against an abstract machine with one unbounded memory, which is Turing's tape. Real machines have many memories, each bounded, disaggregated, and addressable by some processors and not others. Vx describes the machine as a finite graph of memories and checks capacity and routing at compile time.</summary>
  </entry>

  <entry>
    <title>float * of C/C++/Rust Fails to Distinguish Host DRAM from GPU HBM</title>
    <link href="https://vxlang.org/blog/two-allocators-one-type.html"/>
    <id>https://vxlang.org/blog/two-allocators-one-type.html</id>
    <updated>2026-09-23T12:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>malloc and cudaMalloc return memory with different readers and different sizes, and C, C++ and Rust give both the same type. Libraries such as Thrust, SYCL and cudarc each built the missing type and lose it at every raw pointer. Vx makes the memory space part of the type, so device memory cannot be passed, assigned or read as host memory.</summary>
  </entry>

  <entry>
    <title>Reverse engineering trait implementation to fix the Vx's</title>
    <link href="https://vxlang.org/blog/asking-the-other-compiler.html"/>
    <id>https://vxlang.org/blog/asking-the-other-compiler.html</id>
    <updated>2026-09-22T17:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Two impls of one trait for one type collided on a single mangled name, and choosing between them looked like a language design decision. Compiling the same program in Rust showed that Rust decides nothing: it infers the argument's type first, and then exactly one impl applies. The untyped literal case it settles with a blunt fallback to i32, which Vx already had.</summary>
  </entry>

  <entry>
    <title>The library that only worked on the machine that built it</title>
    <link href="https://vxlang.org/blog/only-on-the-machine-that-built-it.html"/>
    <id>https://vxlang.org/blog/only-on-the-machine-that-built-it.html</id>
    <updated>2026-09-22T09:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Vx 0.0.1 shipped on 10 September and could not run hello-world on any machine except the one that built it. Both macOS libraries recorded the release runner's own directory as their identity, and the release smoke test passed because it ran on that runner. Three more bugs were hiding behind it.</summary>
  </entry>

  <entry>
    <title>Vx can model peak memory pressure at compile time</title>
    <link href="https://vxlang.org/blog/the-43-gigabytes-that-are-never-there.html"/>
    <id>https://vxlang.org/blog/the-43-gigabytes-that-are-never-there.html</id>
    <updated>2026-09-21T23:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Add up every tensor a Llama-2-7B prefill puts on the GPU and you get 58.93 GiB, which does not fit a 40 GiB A100. The tensors resident at the same time peak at 15.94 GiB, and the 42.99 GiB difference is larger than the card. Vx computes the peak from the program's block structure and a declared machine model, at compile time.</summary>
  </entry>

  <entry>
    <title>Tiles, without a tile type</title>
    <link href="https://vxlang.org/blog/tiles-without-a-tile-type.html"/>
    <id>https://vxlang.org/blog/tiles-without-a-tile-type.html</id>
    <updated>2026-09-21T21:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>Can Vx be used for tile-based GPU programming, the way NVIDIA's cuTile is? A block loop, a tensor in Memory::SMEM and two barriers already compile to PTX with shared storage and bar.sync. What Vx adds is that the tile's memory space is part of its type and its shared-memory budget is a compile error; what it lacks is everything that makes a tile a value.</summary>
  </entry>

  <entry>
    <title>The compiler bugs we found by writing Vx's core library</title>
    <link href="https://vxlang.org/blog/what-writing-core-taught-the-compiler.html"/>
    <id>https://vxlang.org/blog/what-writing-core-taught-the-compiler.html</id>
    <updated>2026-09-21T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>A week ago Vx had no core library. Now it has six modules of it, a random-number library, and the compiler fixes that writing them forced, a method that dispatched differently between runs among them. Every line is Vx, with no extern in it.</summary>
  </entry>

  <entry>
    <title>The NUMA that wasn't there</title>
    <link href="https://vxlang.org/blog/the-numa-that-wasnt-there.html"/>
    <id>https://vxlang.org/blog/the-numa-that-wasnt-there.html</id>
    <updated>2026-09-12T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>A CPU's NUMA domains are the same relation as two GPUs on a node, so modelling them needed no new machinery. The compiler predicted a remote access costs 2.26x a local one and the hardware said 2.35x — after a day of measurements taken on a machine that reports two NUMA nodes it does not have.</summary>
  </entry>

  <entry>
    <title>What a pointer forgets</title>
    <link href="https://vxlang.org/blog/what-a-pointer-forgets.html"/>
    <id>https://vxlang.org/blog/what-a-pointer-forgets.html</id>
    <updated>2026-09-10T18:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>A function stages a tensor to the GPU and returns it. In C++ the return type is float * and the fact is gone at the boundary. In Vx the memory space is part of the type, so the return type carries it.</summary>
  </entry>

  <entry>
    <title>Vx 0.0.1: placement in the type system</title>
    <link href="https://vxlang.org/blog/vx-0-0-1.html"/>
    <id>https://vxlang.org/blog/vx-0-0-1.html</id>
    <updated>2026-09-10T00:00:00Z</updated>
    <author><name>Aditya Kumar</name></author>
    <summary>The first Vx release. What the compiler checks, what it runs on, and the parts that are honestly not built yet.</summary>
  </entry>
</feed>
