Inner Loops: A Sourcebook for Fast 32-Bit Software Design by Rick Booth (1997)
Rick Booth's 1997 book Inner Loops focuses on designing fast 32-bit software. It provides techniques for optimizing low-level code and improving performance. (amazon.com)
An experimental Rust port of the TypeScript 7 compiler reproduces the Go-based tsc behavior, command line, language server and API while keeping Go's algorithms. It was built largely by large language models with heavy API spend (initial efforts totaled over $400k in tokens, later reduced to about $24k using different models); the maintainer states they never manually read the generated code. The port is pinned to a TypeScript 7.1.0-dev upstream revision, includes built-in Effect diagnostics (so Effect projects need no second pass), and is provided as an npm package (tsc-rs) and standalone binaries for Linux x64 and macOS arm64. It is released as an early build with warnings about being an early release, but claims full compatibility on every real-world project the maintainer tested.
Benchmarks and test results claim strong correctness and performance: 181,711 ported Go tests pass and diagnostics match Go on oracle test sets. On a T3 Code benchmark without Effect diagnostics bun check was fastest (4.07s), tsc-rs ran in 7.25s, tsc 7 in 16.10s and the older JS tsc 6 in 62.63s; with Effect diagnostics tsc-rs completed in 11.13s versus tsc 7 + Effect at 21.07s. Across six large open-source apps, tsc-rs is reported faster than the Go tsc (about 1.6× faster than tsc 7 by geometric mean) while bun check is faster still; differences include a small set of errors that align with the pinned TypeScript dev revision.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.
Rick Booth's 1997 book Inner Loops focuses on designing fast 32-bit software. It provides techniques for optimizing low-level code and improving performance. (amazon.com)
The push-ifs-up and fors-down idiom suggests moving conditional logic upward in code and deferring loops to optimize performance and clarity. This principle also applies to database queries and functional programming, improving efficiency by centralizing branching and batch processing. (debasishg.github.io)
Convkit is a command line tool that converts images, videos, documents, and audio files offline by wrapping tools like ffmpeg, ImageMagick, LibreOffice, and pandoc. It simplifies file conversion processes without requiring internet access. (github.com)
C lacks a built-in boolean type, relying on macros to define true and false, which differ from Rust's primitive booleans. It uses null-terminated strings instead of length-prefixed strings, requiring careful memory management to avoid errors. (bd103.dev)
ts-rust is an experimental project that ports the TypeScript 7 compiler to Rust. It aims to explore the benefits of rewriting the compiler in Rust for performance and safety. (github.com)
Spotifast is a lightweight, native Rust-based Spotify client available for Linux, macOS, and Windows, offering fast startup and low memory usage. It features a Winamp skin mode, visualizers, and supports Spotify Connect for seamless playback control. (spotifast.rocks)
Today's best Hacker News stories, summarized and screenshotted, one email a day.