From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <541ac7952476f11c319d81a7b9f7d516@terzarima.net> To: 9fans@cse.psu.edu From: Charles Forsyth Date: Sat, 11 Feb 2006 14:29:19 +0000 In-Reply-To: <11d846ba1d1323cc1e956b2f67dfa6ec@plan9.bell-labs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] asn.1 alternatives Topicbox-Message-UUID: fbddb47a-ead0-11e9-9d60-3106f5b1d025 >> > What are the alternatives? My pick is ASN.1, any time. You can call >> > the ITU-T by as many ugly names as you like, but their standards are >> > considerably more firm than more recent publications. when i need to represent more than simple text or values, or attribute value pairs, which isn't all that often, more and more i use Rivest S-expressions, as i did on wednesday. they are unambiguous (unlike both ASN.1 and XML), easy to read and write, that can represent binary directly where that's appropriate, with an `advanced textual form' (like it!) that people can read without suffering eye strain, but with a well-defined canonical form (always helpful when comparing or signing things). i keep intending to try armstrong's ubf, but haven't, yet. it's perhaps more in the XML-RPC or ASN.1 realm. it has some good ideas, anyhow. simple text or values, or attribute value pairs are often adequate, require little code to read or write, and are often more efficient when all costs are taken into account. if you're lacking a `standard' for something you'd like to use, and you need that extra justification, just write an RFC, and then say ``i'm following an existing RFC''. on the other hand, if you're trying to talk certain existing protocols, you need some quantity of ASN.1; if you're trying to interpret certain existing data, you might need some XML. just remember, though, that no one needs `Web Services', the os/360 for the 21st century, and the upas tree of distributed systems. whenever it comes up, just hack round it, and even that is more than it deserves. also, in my experience, managers (pointy-head or not) are rarely overly caught up by the technical details. they just want such-and-such a problem to go away. they usually don't really care how you do it, especially if it works well and they never ever have to cut short a trip to the golf course because of it.