Re:EU sends Apple stark warning over USB-C charging on new i...
by taeric on Sunday May 07, 2023 @11:35AM
(#35852512)
This is more evidence that engineering for every complicated case will give you a complicated standard. And note that most of the complaints are often retread with arguable advances later.
JSON is still an odd one. 90% of that standard is "javascript, but only numbers and strings are allowed." With some extra shitty rules around comments and no real specification for what numbers do in the host language.
Re:EU sends Apple stark warning over USB-C charging on new i...
by yrro on Sunday May 07, 2023 @12:16PM
(#35852966)
ASN.1 is good though. What sucked was everyone implementing their own serde tooling. In another, better world we'd have consolidated around ASN.1 DER and not wasted all that time and energy with XML, JSON and so on.
Re:EU sends Apple stark warning over USB-C charging on new i...
by revelio on Sunday May 07, 2023 @01:59PM
(#35853909)
If it was really that good there'd be plenty of great open source implementations and tools by now, but in reality nobody wants to use it. Note that protobuf didn't have this issue.
Re:EU sends Apple stark warning over USB-C charging on new i...
by stephc_int13 on Sunday May 07, 2023 @05:30PM
(#35855792)
Have you heard about the ASN.1 implementation by Fabrice Bellard?
This is definitely not the case. As an example, the Official Standard way to encode data structures in the 90s was ASN.1 from the ITU. Problem is, ASN.1 kinda sucked and so nobody uses it anymore outside of cryptography. Then the Official Standard became XML. Eventually people decided that also wasn't that great and switched to JSON, which is a totally unofficial standard defined by one guy.
Your approach / the EU approach would mean REST APIs would all need to be encoded with ASN.1 or XML.