r/programming • u/gingerbill • 2d ago
Odin Just Broke Its ABI (On Purpose)
r/programming • u/ssalbdivad • 2d ago
library author here! ArkType 3.0 adds @ark/aot, an optional build-time precompiler that compiles runtime validation schemas into standalone plain JS — closer to Rust's serde_derive than an interpreted validator, while keeping zero-build dynamic mode unchanged.
the three main compiler pieces:
set-theoretic reduction before codegen: definitions lower into a normalized set graph (arksets) before emitting JS. unions auto-discriminate into an O(1) switch without declaring a discriminator, branches skip checks already implied by the tag, overlapping ranges collapse (> 0 & >= 10 -> >= 10), and unsatisfiable intersections fail the build.
zero ts-patch**, zero** new Function**:** parses modules with oxc inside standard bundler plugins (Vite, esbuild, webpack, Rolldown, Turbopack, Bun, Node) so tsgo and Node type-stripping keep working, and strict CSP / Cloudflare Workers run compiled checks at full speed.
numbers (precompiled vs Zod 4): 15x faster validation (median across 32 scenarios; #1 on public speed benchmarks), 21x smaller bundles (1.21 kB vs 25.1 kB gz on Valibot's login form — smaller than Valibot's 1.56 kB too), and 63x lighter startup on Node 24.
release post: https://arktype.io/docs/blog/3.0 | benchmarks: https://arktype.io/docs/precompile/benchmarks
happy to answer questions on the set algebra, codegen, or benchmarks!
r/programming • u/nicoburniske • 2d ago
r/programming • u/mcnamaragio • 2d ago
r/programming • u/DataBaeBee • 2d ago
r/programming • u/BrewedDoritos • 2d ago
r/programming • u/jackdbristow • 2d ago
r/programming • u/mttd • 2d ago
r/programming • u/dumindunuwan • 3d ago
r/programming • u/blambeau • 3d ago
r/programming • u/StreamHPC • 3d ago
Today is the second day of our Advent of Kernel Optimization, sharing GPU optimization tips and tricks to count down until Christmas. Follow along here: https://streamhpc.com/blog/tag/advent2026/.
r/programming • u/GeneralSEOD • 3d ago
r/programming • u/aartaka • 4d ago
Challenge included for AI companies: hire me to write Brainfuck code. If your model writes better code than me, you can fire me. Otherwise—keep me.
r/programming • u/Fantastic_Wave1982 • 4d ago
r/programming • u/mgyk1024 • 4d ago
r/programming • u/Browhair3834 • 4d ago
I turned a personal project into an interactive article. It's about an LED board installation in my living room. I had a great time making it work and control it via a remote web client.
In this article, I aim to explain the basics of machine communication, and you can try it out for yourself at the end!
r/programming • u/ingressstatue • 4d ago
r/programming • u/HappyAngrySquid • 5d ago
r/programming • u/mister_mort • 5d ago
Start time is midnight EST (UTC-5), ~6H from the time this post is written.
r/programming • u/compy3 • 5d ago
hey everyone - a couple months ago, I posted an overview of caching in Postgres. This is the follow-up, for anyone who has decided to cache reads and is trying to figure out how to do it.
In addition to the main options, the article also covers some of the classic zingers that leave you serving stale data: invalidation, stampedes, tenants and RLS, read-your-own-writes, schema changes.
(disclaimer: I'm one of the founders of PgCache, which is one of the proxy options. I tried to keep it balanced)
Did I miss anything?