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

> ... allow you to specify that an input string/blob should be smaller than 10MB and refuse to deserialize it if it is longer ...

why ? are there no cases where serializing even larger file is valid ?



sure, a lot of cases, I suspect that S3 upload limits are different from imgur.


and feel free to do that in _your_ application. don’t shackle others with the limitations of your domain.

mechanism vs policy and all that.


I believe I have already justified why it might be useful at the protocol/schema level in ways that cannot be replicated at the application level: to eagerly fail on expensive (eg memory) deserialization.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: