Ushering out strlcpy()
Ushering out strlcpy()
Posted Aug 29, 2022 14:11 UTC (Mon) by mpr22 (subscriber, #60784)In reply to: Ushering out strlcpy() by Wol
Parent article: Ushering out strlcpy()
*hollow mathematical laughter*
Once you put it in your digital computer, it's a digital computer number.
The mathematics of the many kinds of digital computer number are their own distinctive branches of mathematics, which diverge from the "natural" rules of "everyday" arithmetic in a variety of ways.
When you are operating in contexts such as, say, frivolous Javascript programs for the entertainment of the idle, where enormous performance costs are routinely accepted (if they weren't, you wouldn't be using Javascript in the first place) and correctness is an afterthought, "ffs it's a number!" is an unremarkable stance.
(Javascript has two native numeric types. "number" is IEEE 754 double precision floating point (but you are allowed to use bitwise ops on its purported integer value!), and "bigint" is an "arbitrary-precision" computer integer type for holding integer values outside the precise integer range of IEEE 754 double precision floating point.)
When you are operating in the contexts that C or Rust are intended for, where correctness, speed of execution, runtime memory footprint, etc. all matter, it is not.
