r/programming • u/Cyberthere • 1d ago
r/programming • u/ssalbdivad • 2d ago
ArkType 3.0: set-theoretic precompilation for TypeScript validation
arktype.iolibrary 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)switchwithout 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 withoxcinside standard bundler plugins (Vite, esbuild, webpack, Rolldown, Turbopack, Bun, Node) sotsgoand 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 kBvs25.1 kBgz on Valibot's login form — smaller than Valibot's1.56 kBtoo), 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/mttd • 2d ago
Proof-Oriented Programming in Verus vs. Lean
willcrichton.netr/programming • u/GeneralSEOD • 3d ago
JetBrains at 26: Our Priorities
blog.jetbrains.comr/programming • u/BrewedDoritos • 2d ago
Getting to Go: The Journey of Go's Garbage Collector - The Go Programming Language
go.devr/programming • u/Creepy_Sherbert_1179 • 1d ago
How a GameBoy Color emulator written in pure Python survives its double speed mode
github.comr/programming • u/DataBaeBee • 2d ago
Using Constraint Solvers to Solve Sudoku Puzzles in Python
leetarxiv.substack.comr/programming • u/blambeau • 3d ago
What is a specification ? What KAOS teaches spec-driven development.
enspirit.devr/programming • u/StreamHPC • 3d ago
Advent of Kernel Optimization
streamhpc.comToday 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/dumindunuwan • 2d ago
Learn how to write an API in Rust without Laravel Rust
learning-rust.github.ior/programming • u/mister_mort • 4d ago
Advent of Code 2026 starts today
adventofcode.comStart time is midnight EST (UTC-5), ~6H from the time this post is written.
r/programming • u/Fantastic_Wave1982 • 4d ago
Data Replication In Distributed Systems | Implement Raft From Scratch
sushantdhiman.devr/programming • u/HappyAngrySquid • 4d ago
Roc version 0.1.0, eight years in the making
rtfeldman.comr/programming • u/ingressstatue • 4d ago
Pattern Matching for C++29 (proposal)
mpark.github.ior/programming • u/self • 5d ago
Post-quantum cryptography is breaking government censors
xetera.devr/programming • u/Browhair3834 • 4d ago
Remote procedure calls for interactive applications
willybrauner.comI 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/mgyk1024 • 4d ago
Build Your Own FinOps Tool for Cloud Cost Allocation by Team
mooracle.ior/programming • u/aartaka • 4d ago
Why You(r Company) Should Use Brainfuck
aartaka.meChallenge 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/mitchellvitez • 5d ago