Re: [HTCondor-devel] idle thoughts: json as classads


Date: Tue, 25 Jun 2013 13:33:55 -0500
From: Erik Paulson <epaulson@xxxxxxxxxxx>
Subject: Re: [HTCondor-devel] idle thoughts: json as classads
C++ is a pain in the ass to use in many environments (for example, the browser)

-Erik 

On Tue, Jun 25, 2013 at 1:25 PM, Brian Bockelman <bbockelm@xxxxxxxxxxx> wrote:
- You'd also need to map null to something in classads.
- ClassAds would still be a superset of JSON.
- There would be natural guidance for a binary encoding of ClassAds.
- You could probably update the ClassAds language to have multiple representations - classical new ClassAds, JSON ClassAds, binary ClassAds, and XML ClassAds.  As all would use a different first character, you could have a single parser/lexer for all representations.

What's the benefit though - versus just having different converters written in C++?

Brian

On Jun 25, 2013, at 1:19 PM, Erik Paulson <epaulson@xxxxxxxxxxx> wrote:


If we flipped the meaning of '[]' and '{}' in ClassAds, and allowed colons as an assignment operator*, and maybe checked the different string escapes, would every JSON object automatically be a ClassAd?

It'd be kind of slick if ClassAds and JSON were a little more interoperable, and we could get some cool stuff somewhat for free. 

We could go a little farther, and work out a full syntax for ClassAds in JSON, maybe by looking at some of the JSON Referencing ideas:

This could all be first-steps towards easier interactions with HTCondor in other languages and environments. 

-Erik

*which I swore I thought Ye Olde ClassAds could do, but maybe it was just the config files
_______________________________________________
HTCondor-devel mailing list
HTCondor-devel@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-devel


[← Prev in Thread] Current Thread [Next in Thread→]