~/talk

Lucky 7 - Designing Text Encodings for C++

Talkat Pure Virtual C++ 2020 · on Monday, 2020-05-04· [c-and-cpp, web-platform]
links:none on file
slides:none on file

Proposes a minimal encoding object with exactly seven elements — lucky seven — (code_point, code_unit, state, max_code_points, max_code_units, encode_one/decode_one, plus result types) and shows it composes whole APIs: streaming ranges, validation, counting, and transcoding by a simple decode-then-encode loop. Demonstrates real numbers: UTF‑8 expands up to max code units 4, EBCDIC example uses max 6, and std::text helpers (encode/validate/transcode) implement the loop safely with error handling.

AI-written summary · about

  1. 0:00Start
  2. 0:48PREVIOUS WORK
  3. 14:05EXAMPLE ENCODING (RESULT TYPES)
  4. 15:46EXAMPLE ENCODING (ERROR HANDLERS)
  5. 18:44EXAMPLE ENCODING - COMMON
  6. 22:40STANDARD ENCODINGS FOR C++23
  7. 27:57TRANSCODE IMPLEMENTATION...
  8. 33:27LOOP AND CHECK
  9. 45:35QUESTIONS?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.