r/cpp • {fmt} • Jul 20 '26

Żmij 1.1 released with fixed notation support, up to 38% faster double-to-string conversion, SIMD-optimized float formatting, a smaller binary footprint and more

41 Upvotes

40 comments sorted by

View all comments

Show parent comment

6

u/pigeon768 Jul 21 '26

JavaScript does not have a integer type. All numbers are double precision floating points, that is the only type of number. JavaScript does not have binary serialization; the dominant form of passing data around is JSON. When your REST service written in node.js or TypeScript is talking to your web based service written in JavaScript, they will talk to each other by serializing their double precision floating point numbers into text, sending text over the wire, and then deserializing it back into double precision floating point.

Stuff like this library is super useful for people who live in ecosystems dominated by REST services, Electron apps, and data being sent around as serialized text.

These ecosystems are broken half measures, but they're the dominant ecosystems on the internet.

1

u/mapronV Jul 21 '26

Okay, I see, I probably in a wrong environment so my experience bias is far from that! If I had backender friend I probably would not ask. Thanks for the reply!