Related reading
Size-Specialized Memory Allocation
Go 1.27 adds a set of span‑class‑specific malloc functions for allocations ≤ 80 bytes. By generating a tiny, constant‑size allocator per span class the runtime can inline size‑dependent work (e.g. zero‑clear) and skip span‑class lookup, yielding 20‑30 % faster small allocations and ~1 % overall speed‑up for allocation‑heavy programs. The implementation is generated automatically via an AST inline…
The Go Bloggo.dev7 minHN315Article: Your Next DSL Author Is a Language Model
Typed Domain Grounding (TDG) embeds a DSL inside a mainstream language the LLM already knows (e.g., Kotlin) and uses the host compiler as an oracle. The author describes five building blocks—embedding, choosing a host language with high training‑data frequency, compiler‑driven type safety, a generate‑compile‑repair loop, and an on‑demand teaching tool—and shows measured results from kUML, a Kotli…
InfoQinfoq.com18 minBuilding a Linux GPU Driver for the M4 Mac Mini in One Month
Built a clean‑room OpenGL ES 3.0 Linux driver for Apple‑silicon M4/A18 Pro GPUs in ~4 weeks, covering reverse‑engineered firmware ABI, a Rust kernel driver, a custom IR/shader compiler, and user‑space Metal translation; achieved 200 fps Minecraft and WebGL demos, with heavy LLM assistance for debugging and code generation.
Hacker News front pagecodyho.dev15 minHN416281Vectorized and performance-portable Quicksort (2022)
Google’s Highway library now includes a fully portable SIMD‑vectorized quicksort that runs 9‑19× faster than C++ std::sort. By using compress‑store (or permute‑based emulation) for partitioning, the same C++ code targets AVX2, AVX‑512, NEON, SVE and RISC‑V V. Benchmarks show 0.5 GB/s on an Apple M1 and >1 GB/s on a 3 GHz Skylake, beating prior architecture‑specific sorts. The implementation and a…
Hacker News front pagegoogleblog.com3 minHN460142What Go Taught Us About Java Garbage Collection
ParparVM’s GC was tuned by lowering the allocation‑trigger floor, adding configurable thresholds, parallel marking, mutator assistance, and proper weak/soft reference handling. These changes cut RSS from 98 MB to 38 MB, reduced worst‑case GC pauses from seconds to sub‑second, and improved cache hit rates with a recency‑based eviction policy.
CodeName Onecodenameone.com7 min

