# Nekrolm/ubbook

C++ programmer's guide to undefined behavior

Repository: https://github.com/Nekrolm/ubbook
Canonical: https://ross.abutalabs.com/products/ubbook
License Family: other
Topics: cpp-programming, rust-programming, undefined-behavior
Last push: 2026-01-24T08:27:26+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 64, release rhythm 35, longevity 100
- inputs: {"age_days": 2089, "days_push": 221, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1631, forks 91 (observed 2026-08-28T04:05:14.088335+00:00)

## What it is
An open-source book (in Russian and English) that is a C++ programmer's guide to undefined behavior, collecting real-world examples of UB pitfalls in the language and standard library. It is aimed at developers already familiar with C++ rather than beginners.

## Use cases
- learn how undefined behavior manifests in C++ programs
- find tools and techniques for detecting UB in C++ code
- understand signed integer overflow and narrowing conversion pitfalls
- avoid common C++ traps when writing portable code
- study how compiler optimizations exploit undefined behavior
- review subtle but specified C++ behaviors that surprise developers

## When to choose
- you already know C++ and want a deep reference on undefined behavior
- you are debugging mysterious crashes or miscompilations in C++ code
- you want curated real-world examples of UB with explanations
- you are preparing for C++ code review or teaching safe C++ practices

## When to avoid
- you are a complete beginner looking for a C++ tutorial
- you need a formal specification or standards document
- you need a runnable tool rather than written material
- you need content in a language other than Russian or English

## Facets
- artifact type: learning-resource
- maturity: active
- function: documentation
- domain: programming-languages, developer-tools, tutorials
- platform: cross-platform
- tags: cpp, undefined-behavior, book, c-plus-plus, compiler-optimizations, safety

## Member repositories
- Nekrolm/ubbook (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:14.088335+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:47:49.176752+00:00, confidence not recorded.
  - readme: https://github.com/Nekrolm/ubbook (fetched 2026-08-28T04:05:14.088335+00:00, sha 45b4d28e81ed)
- Data as of 2026-08-30T08:39:29.467469+00:00.
