News for hackers. Stuff that matters.
Re:Honey, I shrunk {fmt}: bringing binary size to 14k and di... by gobblegobble2 on Sunday September 01, 2024 @02:16PM (#41418978)
> Notably I thought the issue would be the throwing of `std::bad_alloc`, but the new version still implements std::allocator, and throws bad_alloc.

The new version uses `FMT_THROW` macro instead of a bare throw. The article says "One obvious problem is exceptions and those can be disabled via FMT_THROW, e.g. by defining it to abort". If you check the `g++` invocation, that's exactly what the author does.

Re:Honey, I shrunk {fmt}: bringing binary size to 14k and di... by masklinn on Monday September 02, 2024 @04:08AM (#41423522)
The author also compiles with `-fno-exceptions` which should already have the same behaviour.