From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: Look for data serialisation format to implement communication between Emacs and external program. Date: Sun, 06 Jan 2013 23:46:21 +0100 Message-ID: <87k3rqudz6.fsf@zigzag.favinet> References: <87ehhyc7g1.fsf@gavenkoa.example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1357512322 24834 80.91.229.3 (6 Jan 2013 22:45:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jan 2013 22:45:22 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Oleksandr Gavenko Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 06 23:45:38 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TryyD-0004N1-Jb for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Jan 2013 23:45:33 +0100 Original-Received: from localhost ([::1]:56650 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tryxy-0002Gv-58 for geh-help-gnu-emacs@m.gmane.org; Sun, 06 Jan 2013 17:45:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tryxp-0002Gf-Nv for help-gnu-emacs@gnu.org; Sun, 06 Jan 2013 17:45:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tryxn-0008U1-BA for help-gnu-emacs@gnu.org; Sun, 06 Jan 2013 17:45:09 -0500 Original-Received: from smtp208.alice.it ([82.57.200.104]:38480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tryxn-0008SO-1d for help-gnu-emacs@gnu.org; Sun, 06 Jan 2013 17:45:07 -0500 Original-Received: from zigzag.favinet (79.25.136.181) by smtp208.alice.it (8.6.058.01) id 50913553097BB2EB; Sun, 6 Jan 2013 23:45:03 +0100 Original-Received: from ttn by zigzag.favinet with local (Exim 4.72) (envelope-from ) id 1TryzB-0004dt-Gs; Sun, 06 Jan 2013 23:46:33 +0100 In-Reply-To: <87ehhyc7g1.fsf@gavenkoa.example.com> (Oleksandr Gavenko's message of "Sun, 06 Jan 2013 23:44:46 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.104 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88486 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () Oleksandr Gavenko () Sun, 06 Jan 2013 23:44:46 +0200 Another formats like JSON or sexp also look nice but I don't know about Emacs support for this formats. Any advice is welcome! Go with sexp. If you must touch XML, at least dress it up as SXML, which, aside from being less ugly, extends interop to include Scheme. E.g., sexp + SXML is the approach IXIN uses. Latest announcement: . If you absolutely need a binary (non-text) format, then i would next recommend bindat.el (info "(elisp) Byte Packing") for the job. Perhaps ASN.1 can be layered on top of bindat.el, but that doesn't sound so fun. (But what do i know about ASN.1 and/or fun?) Lastly, on the other side of the pipe, why not consider Emacs itself, or Guile, or something that can =E2=80=98read=E2=80=99 a sexp? =2D-=20 Thien-Thi Nguyen ..................................... GPG key: 4C807502 . NB: ttn at glug dot org is not me . . (and has not been since 2007 or so) . . ACCEPT NO SUBSTITUTES . ........... please send technical questions to mailing lists ........... --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlDp/sEACgkQZwMiJEyAdQKcIACfQqhCGfACQMJwnGt5M+9vchK/ XwgAoKPrPrwLo5aNnrqdH8l9WLqVSW/N =gqce -----END PGP SIGNATURE----- --=-=-=--