Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Library:simdjson

From ReverseEngineering.wiki
Library
License Apache-2.0
Website https://github.com/simdjson/simdjson
On this wiki Facts · Code · Notes · Topics

simdjson is an Apache-2.0 C++ JSON parser using SIMD; it embeds an error-name table ("TAPE_ERROR: ...") and a SIMDJSON_VERSION string, and picks an implementation (haswell, westmere, icelake, arm64, fallback) at run time.

Identification

  • Error code table in src/internal/error_tables.cpp: strings of the form NAME: description, for example TAPE_ERROR: The JSON document has an improper structure..., CAPACITY: This parser can't support a document that big, INSUFFICIENT_PADDING: simdjson requires the input JSON string to have at least SIMDJSON_PADDING extra bytes.... See Fact:simdjson/string/Error code strings.
  • Version: SIMDJSON_VERSION "5.0.5" at the checked commit (simdjson_version.h; the major version has moved quickly, check the string you find).
  • Runtime dispatch: the library has per-CPU implementations (the haswell one is named haswell; others are westmere, icelake, arm64, ppc64, lsx, lasx, fallback, Unverified list) and honours the environment variable SIMDJSON_FORCE_IMPLEMENTATION (implementation.cpp). Hence code duplicates for each CPU target in one binary.
  • Behavior notes useful when reading code: input buffers need SIMDJSON_PADDING extra bytes; documents are parsed to a tape; the on-demand API is lazy.

Code & repositories

  • https://github.com/simdjson/simdjson (Apache-2.0)
  • https://github.com/simdjson/simdjson @ edb7016c62efbe6155226896cdba5736307190e3 · license: Apache-2.0
    Error code strings and version header.
    Tested on: source read, not run: source read · checked 2026-10-18; last activity 2026-10-17; Note: the latest release ships binaries; the wiki links only the source, never the binaries