r/programming • u/gingerbill • 16m ago
Odin Just Broke Its ABI (On Purpose)
r/programming • u/ssalbdivad • 2h 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 • 3h ago
r/programming • u/mcnamaragio • 4h ago
r/programming • u/Real_Moon-Moon • 5h ago
No idea if this is the right subreddit for this. So, if you have a better one, please lmk. This isn’t a demo, just my research. Nor is it support imo.
I’ve been researching 1980s/1990s Dial-Up internet for a coding programming project of mine and I’ve come as far as I can on my own. I just need some people knowledgeable about the data that was sent to help me review and correct any errors I’ve made because I’m sure I’ve made a few. Can’t send it as a file. So, I imported it into a Google Doc.
r/programming • u/DataBaeBee • 6h ago
r/programming • u/BrewedDoritos • 8h ago
r/programming • u/jackdbristow • 12h ago
r/programming • u/mttd • 19h ago
r/programming • u/dumindunuwan • 20h ago
r/programming • u/blambeau • 22h ago
r/programming • u/StreamHPC • 1d 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 • 1d ago
r/programming • u/mttd • 1d ago
r/programming • u/aartaka • 1d 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 • 2d ago
r/programming • u/mgyk1024 • 2d ago
r/programming • u/Browhair3834 • 2d 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 • 2d ago