Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



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.


Sure I do. The integration looks like this:

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: