fmt

⁇ fmt ⁇ is an open-source text formatting library developed as an alternative to C stdio and C++ iostreams libraries. It aims to prevent memory errors with its type security-enhancing structure and compile-time error control. Supporting C++20 and C++23 standards, the library offers a high-performance and portable structure.

FM

fmt

100

fmtlib · Desktop & Cross-Platform

STARS25.9K
FORKS3.1K
COMMITS8.0K
CONTRIBUTORS436
VERSION12.2.0
UPDATEDtoday
C++Metin BiçimlendirmeLibraryPerformanceMIT
What can it do?
  • You can do text formatting with Python-like syntax.
  • You can get customized output by including user-defined data types in the library.
  • You can use secure printf applications that include POSIX extensions in their projects.
User reviews
  • • NeutralHacker News

    Honey, I shrunk {fmt}: bringing binary size to 14k and ditching the C++ runtime

    “> strings are ~4 instructions (test for null terminator, output character, branch back two). that's C strings. You also need to handle (size, data) strings like std::string_view For the record, here's what fmt allows (from the docs): fmt::print(fmt::emphasis::bold |…”

  • • NeutralHacker News

    Honey, I shrunk {fmt}: bringing binary size to 14k and ditching the C++ runtime

    “Template specialization means more generated code, which, again, must fit in 2kb. On very old archs (16bits, 8bits), there was no OO, because the code could not be complex enough to warrant it. It could not be complex because there wasn't room enough. That being said, there are…”

Verified against README · Oct 26, 2026 · source

My note

More in: Desktop & Cross-Platform