[zeromq-dev] Devices and config files
Pieter Hintjens
ph at imatix.com
Tue Aug 24 14:18:02 CEST 2010
On Tue, Aug 24, 2010 at 2:02 PM, gonzalo diethelm <gdiethelm at dcv.cl> wrote:
> Ok. Any pointers yet?
Here is a sketch. http://rfc.zeromq.org/spec:4
Basically it's stripped down to the minimum, and should be parsable
with simple code. With regexps, trivial. Without, a little more work
but nothing as complex as XML or JSON.
>> Sure. Do we actually have use cases for binary subscriptions or is
>> this theoretical?
>
> I have seen a couple on the mailing list. I seem to remember people
> explicitly including the terminating zero so that they were asking for a
> specific topic and NOT a prefix.
Sure, but IMO that's more about semantics than encoding. I.e.
"subscribe to this string" as compared to "subscribe to this prefix".
> I would think you want to specify the configuration (for a device,
> endpoint, whatever) as a string that can be parsed. This string could
> come from a config file, a database, a broker, memory in the running
> program, etc.
Yes, a string or stream of strings. I have this horrid feeling we'll
end up back with XML but having written hundreds of thousands of line
of XML over the last years, I'd really like to find a simpler language
that covers our needs. Not just about less reliance on external
parsers but also less verbosity. Anyhow, ZPL is a sketch.
-
Pieter Hintjens
iMatix - www.imatix.com
More information about the zeromq-dev
mailing list