9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: ron minnich <rminnich@lanl.gov>
To: 9fans <9fans@cse.psu.edu>
Subject: Re: [9fans] don't shoot me
Date: Fri, 18 Jul 2003 13:34:21 -0600	[thread overview]
Message-ID: <Pine.LNX.4.44.0307181317190.27466-100000@maxroach.lanl.gov> (raw)
In-Reply-To: <20030718191559.28581.qmail@g.bio.cse.psu.edu>

On Fri, 18 Jul 2003, Scott Schwartz wrote:

> | I like XML as an information exchange language for diverse platforms.
> | Being as vast as it is, it no doubt will be abused more often than
> | properly employed.  But I am not aware of any preferable alternative
> | (ASN.1?).
>
> S-expressions.
>

yep. see: http://www.acl.lanl.gov/supermon/ for our monitoring tools that
are all SEXP based, and have a self-describing data format. The data
streams are composable, since they are S-expressions, so combining data
from 1024 streams to one stream is pretty easy. They include a kernel
monitor that produces Linux /proc type information in S-expression format,
with the difference that our module accomodates lots more data and lots
more information than Linux provides normally.

For a small, fast, embeddable library that we wrote here
see:http://sexpr.sourceforge.net/. This has found non-Supermon uses all
over the place, including in a telescope somewhere. There is also a "Why
not XML" section on that page.

In the limit, and I know this sounds nuts, I kind of wish everything in
/proc (and /dev/*/whatever) produced SEXP. While Plan 9 is nowhere near as
inconsistent as Linux in the /proc area, the structure is still pretty
inconsistent. Some things are lists, others are ordered pairs, and others
are tables. If it were all SEXP it could be self-describing and uniformly
parseable with the small, fast library. But maybe I am nuts.

ron
p.s. Betcha this mail gets filtered due to the SEXP content. But that's
what they're called by old-time lisp dudes.

p.p.s. OH well, I'll quote Matt:

"Why not XML?
The goal of any project should be to solve a problem in an elegant, well
designed manner. Buzzword compliance rarely achieves this, other than
allowing a lowly programmer or software engineer to appease higher-ups who
read that "XML is the latest great thing!" XML suffers from certain flaws
that make it worthless in an environment where speed and efficiency
(memory and time complexity) are key requirements. Compare the
performance, footprint, and developer complexity of Xerces and this
s-expression library, and you'll see that for hierarchical data
representation, one is significantly simpler than the other without losing
the ability to do its job (represent data!). After working with XML for a
while (~3-4 years) on multiple projects, I find that since starting to use
s-expressions again as a data format has allowed me to spend less time
debugging my data representation code and more time on problems that
matter. XML sucks, enough said."



  reply	other threads:[~2003-07-18 19:34 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-18 15:12 pac
2003-07-18 15:17 ` Lucio De Re
2003-07-18 19:15   ` Scott Schwartz
2003-07-18 19:34     ` ron minnich [this message]
2003-07-18 20:34       ` Dan Cross
2003-07-18 21:10         ` boyd, rounin
2003-07-18 21:51           ` Skip Tavakkolian
2003-07-18 21:58             ` boyd, rounin
2003-07-21  8:28           ` Douglas A. Gwyn
2003-07-21  8:50             ` boyd, rounin
2003-07-21 15:09             ` Dan Cross
2003-07-18 21:13         ` boyd, rounin
2003-07-18 22:06       ` [9fans] Supermon boyd, rounin
2003-07-18 15:17 ` [9fans] don't shoot me ron minnich
2003-07-18 15:23 ` Fco.J.Ballesteros
2003-07-18 15:50   ` Dave Lukes
2003-07-18 17:43     ` boyd, rounin
2003-07-19  3:12     ` Geoff Collyer
2003-07-19  3:45       ` Dan Cross
2003-07-19  3:48         ` boyd, rounin
2003-07-19  4:11           ` Dan Cross
2003-07-19  4:15             ` boyd, rounin
2003-07-21  8:28           ` Anthony Mandic
2003-07-21  8:57             ` boyd, rounin
2003-07-19  4:18         ` boyd, rounin
2003-07-19  4:20         ` Geoff Collyer
2003-07-19  4:26           ` boyd, rounin
2003-08-12 16:09       ` jared jennings
2003-07-18 16:55 ` David Presotto
2003-07-18 17:02   ` ron minnich
2003-07-18 18:22     ` Nigel Roles
2003-07-21  8:27     ` Anthony Mandic
2003-07-18 17:37   ` diacritics (was: Re: [9fans] don't shoot me) andrey mirtchovski
2003-07-18 19:39     ` Scott Schwartz
2003-07-18 21:11       ` boyd, rounin
2003-07-18 22:17         ` northern snowfall
2003-07-18 21:25           ` boyd, rounin
2003-07-18 22:32             ` northern snowfall
2003-07-21  8:28             ` Anthony Mandic
2003-07-21  8:55               ` boyd, rounin
2003-08-11 14:33     ` Latchesar Ionkov
2003-08-11 18:05       ` rob pike, esq.
2003-08-11 23:49         ` Latchesar Ionkov
2003-08-12  0:32           ` boyd, rounin
2003-08-12  1:27             ` Latchesar Ionkov
2003-08-12  2:04             ` David Presotto
2003-08-12 18:44         ` Chris Hollis-Locke
2003-08-12 19:06           ` Latchesar Ionkov
2003-08-12 21:37             ` Chris Hollis-Locke
2003-08-12 22:02               ` Charles Forsyth
2003-08-13  1:49               ` boyd, rounin
2003-08-13 10:08                 ` chris
2003-08-13 10:25                   ` boyd, rounin
2003-07-18 17:10 ` [9fans] don't shoot me matt
2003-07-19  6:45 ` Taj Khattra
2003-07-19  6:51   ` boyd, rounin
2003-07-19 11:19     ` Bruce Ellis
2003-07-19 11:41       ` boyd, rounin
2003-07-18 15:45 Trickey, Howard W (Howard)
     [not found] <1627809308@snellwilcox.com>
2003-07-18 17:00 ` steve.simon
2003-07-21 15:40 Stephen Parker

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

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

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0307181317190.27466-100000@maxroach.lanl.gov \
    --to=rminnich@lanl.gov \
    --cc=9fans@cse.psu.edu \
    /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.
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 NNTP newsgroup(s).