unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Look for data serialisation format to implement communication between Emacs and external program.
@ 2013-01-06 21:44 Oleksandr Gavenko
  2013-01-06 22:46 ` Thien-Thi Nguyen
  0 siblings, 1 reply; 7+ messages in thread
From: Oleksandr Gavenko @ 2013-01-06 21:44 UTC (permalink / raw)
  To: help-gnu-emacs

I know that XML is BAD so avoid it.

My experience with 'expect' show me that simple string data communication is
good but some times data have same pattern as _prompt_ so I can't distinct
control data from regular data.

Prefixes like in 'diff' file format resolve this issue. But this move us to
TLV (table-length-value) format.

Standard TLV format described by ASN.1 BER coding schema.

Is that right to use ASN.1 BER as serialisation data format for communication
between Emacs and external program?

My external application is not jet written but I select Python as
implementation language. Seems 'python-pyasn1' library make work from Python
side:

  http://pyasn1.sourceforge.net/

How about Emacs? Is there any library for creating/parsing ASN.1 BER data?

I need only basic types, like structure of numbers and UTF-8 strings (blogging
software - pass command and data like article + title + list of tags)...

Another formats like JSON or sexp also look nice but I don't know about Emacs
support for this formats.

I didn't look yet to projects like pymacs, which solved such task.

Any advice is welcome!

-- 
Best regards!




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-08  9:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.16821.1357508702.855.help-gnu-emacs@gnu.org>
2013-01-07  7:53 ` Look for data serialisation format to implement communication between Emacs and external program Helmut Eller
2013-01-07 13:53   ` Oleksandr Gavenko
2013-01-06 21:44 Oleksandr Gavenko
2013-01-06 22:46 ` Thien-Thi Nguyen
2013-01-07 13:35   ` Oleksandr Gavenko
2013-01-08  9:44     ` Thien-Thi Nguyen
2013-01-07 21:57   ` Oleksandr Gavenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).