News for hackers. Stuff that matters.
Re:Always Bet on Text by bccdee on Saturday December 27, 2025 @09:13AM (#46401978)
> For the negligible added CPU cost of deserialization, you completely lose human readability.

You could turn that around & say that, for the negligible human cost of using a tool to read the messages, your entire system becomes slower.

After all, as soon as you gzip your JSON, it ceases to be human-readable. Now you have to un-gzip it first. Piping a message through a command to read it is not actually such a big deal.

Re:Always Bet on Text by naniwaduni on Saturday December 27, 2025 @09:48AM (#46402222)
The human cost becomes negligible once the tooling is already integrated. You don't get to call it negligible until after the integration has been done.
Re:Always Bet on Text by bccdee on Saturday December 27, 2025 @02:49PM (#46404629)
Sure I do. The integration looks like this:

  jmsg, _ := protojson.Marshal(msg)
  fmt.Println(jmsg)
That's negligible.