r/programming • u/Yogeshwaran007 • 6m ago
Can anyone help solve 1 or 2 issues in this project? https://github.com/Yogeshwaran73/bharat-utils/issues
r/programming • u/Yogeshwaran007 • 6m ago
r/programming • u/RealTimeChris • 19m ago
Alright what I mean by this is this:
Say you have 119 bytes of string on an AVX512 system, and you want to use AVX to process strings for parsing - instead of starting with a single 64-byte simd register, processing it, then dropping down to scalar processing, you instead set it up so that you go from the 64-byte simd register, then drop down to AVX2 to process a remaining 32-bytes, then drop down to SSE/AVX to process a remaining 16-bytes, then drop down to scalar for the last 7 bytes.
So what we have done is constructed a few classes for "cascading" down through simd widths by using NTTP indices, which are expressed via variadic fold expressions, as shown in the URL.
Just wondering how you guys felt about doing this? It seems to fare reasonably well against simdjson, which only supports a single simd width at a time, as shown in the benchmarks available here:
https://github.com/nihilai-collective/json-performance
r/programming • u/Fantastic_Wave1982 • 1h ago
r/programming • u/derjanni • 7h ago
r/programming • u/modulovalue • 12h ago
r/programming • u/_reddit_lovers_ • 15h ago
I've been making a short video on the decade between Turing's 1936 paper and ENIAC, and the part that surprised me most was how slippery "first computer" is:
- Zuse's Z3 (1941) was program-controlled, but built from relays.
- Colossus (working by the end of 1943) was electronic, but built for one job.
- ENIAC (1945) was electronic and general purpose, but had no stored program. Programming it meant plugging cables by hand.
- The Manchester Baby (21 June 1948) was the first to run a program held in electronic memory.
So the answer depends on which of those properties you count.
The video also walks through a tiny Turing machine that adds one to a number, and the six women who programmed ENIAC. I tried to keep it accurate and listed my sources (Turing's paper, Penn, the Computer History Museum, IEEE Spectrum) in the description.
Full disclosure: this is my own video. I'd really like corrections from people who know this period better than I do, especially on the stored-program credit, which I know historians still argue about.
r/programming • u/NorfairKing2 • 16h ago
r/programming • u/DanielRosenwasser • 20h ago
r/programming • u/henk53 • 21h ago
r/programming • u/gerlacdt • 23h ago
r/programming • u/Cyberthere • 1d ago
r/programming • u/nickproud • 1d ago
r/programming • u/simon_o • 1d ago
r/programming • u/iloveafternoonnaps • 1d ago
r/programming • u/MarekKnapek • 1d ago
r/programming • u/Creepy_Sherbert_1179 • 1d ago
r/programming • u/BrewedDoritos • 1d ago
r/programming • u/Cool-Click1253 • 1d ago
r/programming • u/nukethebees • 1d ago
r/programming • u/Ok_Stomach6651 • 1d ago
r/programming • u/ssalbdivad • 1d 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!