logoalt Hacker News

lpcvoidtoday at 9:17 AM2 repliesview on HN

Strong disagree. I like binary formats because I can just fopen(), fseek() and fread() stuff. I don't need json parser dependency, and don't need to deal with compression. Binary formats are simple, fast and I need a way smaller buffer to read/write them normally. I don't like wasting resources.


Replies

high_na_euvtoday at 9:31 AM

Binary formats are painful to deal with from user perspective

Sane for 3rd party devs

show 1 reply
taneqtoday at 12:33 PM

Binary formats (that you can just fopen(), fseek(), fread() etc.) are generally super platform dependent. You can read in an array of bytes and then manually deserialise it (and I’ve done this, for sure!) but that’s basically one step away from parsing anyway.