From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luke Gorrie Newsgroups: gmane.emacs.devel Subject: Re: struct.el -- a package to encode/decode binary data Date: 19 Mar 2002 15:33:49 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: References: <5x1yehpj1w.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016548599 4717 127.0.0.1 (19 Mar 2002 14:36:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 19 Mar 2002 14:36:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16nKj8-0001Dz-00 for ; Tue, 19 Mar 2002 15:36:38 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16nKoS-0006f9-00 for ; Tue, 19 Mar 2002 15:42:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16nKiy-0006tH-00; Tue, 19 Mar 2002 09:36:28 -0500 Original-Received: from mail.bluetail.com ([195.149.129.26] helo=javagroup.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16nKgZ-0006eH-00 for ; Tue, 19 Mar 2002 09:33:59 -0500 Original-Received: (from luke@localhost) by javagroup.org (8.9.3/8.9.3) id PAA00646; Tue, 19 Mar 2002 15:33:51 +0100 X-Authentication-Warning: cockatoo.bluetail.com: luke set sender to luke@bluetail.com using -f Original-To: no-spam@cua.dk (Kim F. Storm) X-Sincerity: 14% (approx.) In-Reply-To: <5x1yehpj1w.fsf@kfs2.cua.dk> Original-Lines: 25 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:2042 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:2042 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