Hacker News new | ask | show | jobs
by pipe2devnull 26 days ago
Wow that’s a bit harsh. You can’t think of any examples where you may need to send a string to something but want to do it quickly?
1 comments

Yeah maybe a bit harsh. But the point is if you are looking for that kind of performance, I don't see why you wouldn't send binary data and then unpack it as needed.
If you control both ends of the pipe, then sure. But for better or worse, large chunks of infrastructure expect to send or receive JSON.
csv/tsv are alive & well for interorg data pipelines
But JSON uses floats, not integers.
Does it really? I assumed it used strings.
javascript uses floats as its own default numeric data type; but other languages do have integers, and might want to convert those integers into a JSON (string) representation
Because maybe the choice of serialization format isn't under your control?