unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luke Gorrie <luke@bluetail.com>
Cc: emacs-devel@gnu.org
Subject: Re: struct.el -- a package to encode/decode binary data
Date: 19 Mar 2002 15:33:49 +0100	[thread overview]
Message-ID: <lhr8mgsk36.fsf@cockatoo.bluetail.com> (raw)
In-Reply-To: <5x1yehpj1w.fsf@kfs2.cua.dk>

no-spam@cua.dk (Kim F. Storm) writes:

> I'd like to hear if something like this already exists, or if others
> find it should be added to emacs (with more complete documentation of
> course).  [Also, the struct-pack function doesn't work with nested
> data, but I'll fix that if there is an interest in this package].

I often write code like this and would be very keen on a nice generic
library.

e.g. I have a decoding/encoding module for a sexp-like binary format
at http://www.bluetail.com/~luke/misc/erlext.el - it's not generalised
and takes a different approach, but it's the same sort of code.

On a similar note, I've recently written a small framework for network
state machines in order non-blockingly support non-trivial protocols,
with trace/debug convenience and so on. A work in progress that uses
it is at http://www.bluetail.com/~luke/misc/distel.tar.gz if you're
interested. net-fsm.el is the state machine code, also downloadable by
itself at http://www.bluetail.com/~luke/misc/net-fsm.el (it includes
yet another small ad hoc binary encoding API).

Cheers,
Luke


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


  parent reply	other threads:[~2002-03-19 14:33 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-18 23:12 struct.el -- a package to encode/decode binary data Kim F. Storm
2002-03-19  0:25 ` Miles Bader
2002-03-19  1:38 ` Re[1]: " Eric M. Ludlam
2002-03-19 12:56   ` Kim F. Storm
2002-03-19 13:26     ` Re[3]: " Eric M. Ludlam
2002-03-19  7:02 ` Eli Zaretskii
2002-03-19 12:34   ` Stefan Monnier
2002-03-19 14:38     ` Eli Zaretskii
2002-03-19 14:33 ` Luke Gorrie [this message]
     [not found] <Pine.SUN.3.91.1020319133840.17982G-100000@is>
2002-03-19 14:34 ` Kim F. Storm
2002-03-19 21:27   ` Thien-Thi Nguyen
2002-03-21  9:04   ` Richard Stallman
2002-03-21 11:15     ` Eli Zaretskii
2002-03-21 13:31       ` Kim F. Storm
2002-03-21 14:56         ` Eli Zaretskii
2002-03-21 15:36           ` Kim F. Storm
2002-03-21 16:58             ` Stefan Monnier
2002-03-21 19:45               ` Eli Zaretskii
2002-03-22  1:05                 ` Stefan Monnier
2002-03-22 11:04                   ` Eli Zaretskii
2002-03-22  0:37           ` Miles Bader
2002-03-23  2:35           ` Richard Stallman
2002-03-21 16:53         ` Stefan Monnier
2002-03-23  2:36       ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2002-03-22  1:25 Kenichi Handa
2002-03-22  1:27 ` Stefan Monnier
2002-03-22  1:30 Kenichi Handa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=lhr8mgsk36.fsf@cockatoo.bluetail.com \
    --to=luke@bluetail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).