Home›Daniel Lemire›Article

simdjson 5.0 is out

Daniel Lemire · Sep 28, 2026

AI summary AI-generated, may contain mistakes

The simdjson C++ JSON library has released version 5.0, making C++26 static reflection an officially supported feature and introducing key selectors that allow extracting fields from JSON objects in a single pass using compile-time perfect hashes. The release also adds annotations for automated serialization/deserialization, new stream formats (RFC 7464 sequences, newline-delimited, and slice_at for parallel parsing), big integer handling, and many smaller features like NaN/infinity support and narrow type accessors. Version 5.0 delivers notable performance gains, especially on number-heavy files (8-25% faster) and escaped Unicode content (nearly twice as fast), with faster serialization achieved by replacing Grisu2 with Dragonbox.

The simdjson library is a C++ library to parse and generate JSON. It is used in Node.js, ClickHouse, Meta Velox, StarRocks, Apache Doris, the Ladybird browser and many other systems. We released version 4.0 a year ago, in September 2025. Its headline feature was C++26 static reflection: you could turn a C++ structure into JSON, and back, without writing any glue code.

Today we are releasing version 5.0.

Static reflection is no longer guarded and is an officially supported feature. When your compiler has reflection enabled (e.g., g++ -std=c++26 -freflection with GCC 16), simdjson detects it by itself and the reflection-based functions become available.

Keep reading

Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.

More from Daniel Lemire

Writing a paper is no longer a signal

AI summaryA journal editor argues that AI agents can now generate entire research papers—with plots, tables, and discussion—so easily that writing a paper, even a serious-looking one or a PhD thesis, no longer signals high ability and will lose its prestige. The author contends that academic publishing has already been irreversibly disrupted, even if societal norms take time to adjust. Academics should therefore focus on solving actual problems, since while writing about curing cancer is now trivial, curing cancer itself remains a genuine challenge.

Our textbook on machine learning and artificial intelligence is out

AI summaryRobert Godin and the author have released a new 741-page textbook, 'Introduction to Machine Learning and Artificial Intelligence with Python,' available in paperback and Kindle editions. The book is aimed at college students taking a first course or Python programmers wanting to learn machine learning, covering NumPy, Pandas, linear regression, decision trees, building a neural network from scratch, and then moving to PyTorch, transformers, model libraries, language models, reinforcement learning, and deploying a model in a container. Each chapter includes runnable examples and exercises with solutions.

Don’t be Andy Bernard

AI summaryThe article argues that prestige—reputation by association with elite institutions or signals—is not the same as genuine reputation, which is earned slowly through reliable work and can be lost quickly. Prestige is noisy, gamified, and time-delayed, and relying on it too long becomes a negative signal, as illustrated by Andy Bernard from The Office constantly touting his Cornell degree. The author's advice is to skip the shortcuts and build real reputation by doing good work.

Command-line JSON filtering at 20 GB/s

AI summarysjq is a new command-line tool that implements the jq filter language on top of the simdjson parser, filtering NDJSON at 3.5 GB/s on a single thread (about 37 times faster than jq) and up to 20 GB/s with multiple threads. It is highly compatible with jq, passing 728 of jq's 781 tests and supporting most of its features, while adding extras like the --fractured option for readable, table-like JSON output. sjq can be installed on Linux, macOS, and Windows via an install script, Homebrew, or Scoop.

Cheaters are Innovators

AI summaryThe article argues that true innovation comes from those willing to bypass or 'cheat' rigid systems rather than seeking approval within them. Instead of convincing established institutions to change, innovators build alternatives—like starting their own platforms or founding companies such as SpaceX—that render the old system unnecessary. The author encourages readers to test ideas independently and find ways to work around existing rules rather than waiting for permission.