[Opensim-dev] what to use for serializing structures? LLSD? XmlSerializer? JSON?

Stefan Andersson stefan at tribalmedia.se
Wed May 14 07:06:06 UTC 2008


Ok, next time, I'll half the dose of that cough syrup.
 
Aaanyway : I still think it's a REALLY bad idea to put forward as a 'standard region API' something that is more application-and-environment specific (JSON) when there is something that is less application-and-environment specific (XML)Is there a concrete win with Json over Xml that I'm missing?
Everything else aside, I'm for us standardizing on _one_ text protocol and _one_ binary protocol (if needed); otherwise we're sinking deeper into our own little version of UDP-XmlRpc-CAPS-LLSD-Whatevercomesnextmonth mayhem.
 
And, it would be great if the api was formulated as a set of abstract classes, interfaces and event hooks, so however you decide to implement the protocol layer, somebody else could implement it differently. (SOAP, anybody?)
 
That would ROCK. :D
/Stefan


From: stefan at tribalmedia.seTo: opensim-dev at lists.berlios.deDate: Wed, 14 May 2008 08:55:21 +0200Subject: Re: [Opensim-dev] what to use for serializing structures? LLSD? XmlSerializer? JSON?




> Date: Wed, 14 May 2008 08:18:42 +0200> From: DrScofield at xyzzyxyzzy.net> To: opensim-dev at lists.berlios.de> Subject: Re: [Opensim-dev] what to use for serializing structures? LLSD? XmlSerializer? JSON?> > Stefan Andersson wrote:> > * LLSD is just awful - a hodgepodge compromise between doing the old > > thing and doing the right thing. Let's _please_ stay well clear of that.> > * JSON is really really cool for browser-oriented apps, but is there a > > schema for it?> there is at least a grammar for it: www.json.org, right on the front page.> > * XML is XML. Industry standard, well proven, and actually has stuff > > like XML Schema, which is what you'd use to add type information to > > data; schema or not, the serializer infers type from the serialized class.> true.> >> > We at Tribal are using a Serialized Command Object approach, where we > > POST XmlSerialized "Command Objects", which can reference any other > > serializable type. Kind of an Ultralight Web Service. Easy as pie to > > produce output, and a pice of cake to parse it. Not any more wordy > > than what's needed to have human-readable datagrams with extensible > > semantics.> > > > Works like a charm.> > > > I believe this approach is part of what MW talked about in his posts > > on services from a while back.> ok. will have to look that up then.> > considering that we are looking into this from a REST angle for external > control applications, i'm still leaning towards JSON: easy to do AJAX > interface, easy to use from python (and other scripting languages).> > but let's see what else we'll get regarding opinions. so far i've > collected 5 votes on > http://xyzzyxyzzy.net/2008/05/14/serialization-format-for-opensim-rest-services/ > ;-)> > cheers,> dr scofield> > -- > dr dirk husemann, mathmatics and computer science, ibm zurich research lab> SL: dr scofield ---- drscofield at xyzzyxyzzy.net ---- http://xyzzyxyzzy.net/> RL: hud at zurich.ibm.com - +41 44 724 8573 - http://www.zurich.ibm.com/~hud/> > _______________________________________________> Opensim-dev mailing list> Opensim-dev at lists.berlios.de> https://lists.berlios.de/mailman/listinfo/opensim-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080514/9781413e/attachment-0001.html>


More information about the Opensim-dev mailing list