The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] Unix taste (Re: terminal - just for fun)
@ 2014-08-03  0:48 Noel Chiappa
  2014-08-02 21:18 ` Noel Chiappa
  2014-08-03  8:00 ` [TUHS] Unix taste (Re: terminal - just for fun) A. P. Garcia
  0 siblings, 2 replies; 5+ messages in thread
From: Noel Chiappa @ 2014-08-03  0:48 UTC (permalink / raw)


    > From: "A. P. Garcia" <a.phillip.garcia at gmail.com>

    > Being so small, I expected the editor to lack a scripting language.

Well, there is a companion 'compiler' which converts extension source into
the intermediate form (byte-code) which is interpreted by the editor. But
it's even smaller (67KB!) and as fast as the editor itself.

    > I was pleasantly surprised that it does have one, and that it's a c
    > derivative ... "Extensible and modifiable" doesn't always mean the same
    > thing to everyone, and well, you're a kernel hacker.

Take a quick look at a source file, e.g. one of mine:

  http://ana-3.lcs.mit.edu/~jnc/tech/cmd.e

and you'll see i) what it's like (except for a few new editing-specific
keywords, such as 'on <key>' in function definitions, it's pretty much C),
and ii) it will give you a sense of the kind of things one writes in it, and
how easy it is to do so.

The underlying run-time basically just provides buffer, display, etc
primitives, and pretty much all the actual editor commands are written in the
'extension' languge, even simple things like 'forward character' (^F), etc.
The complete manual is available online, the run-time system is described
here:

  http://www.lugaru.com/man/Primitives.and.EEL.Subroutines.html

Epsilon comes (as of a few versions back, I haven't bothered to upgrade) with
about 22K lines of source, which is the bulk of the actual editor; that turns
into about 190KB of intermediate code.

	Noel




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

end of thread, other threads:[~2014-08-03  8:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-03  0:48 [TUHS] Unix taste (Re: terminal - just for fun) Noel Chiappa
2014-08-02 21:18 ` Noel Chiappa
2014-08-02 23:44   ` A. P. Garcia
2014-08-03  2:18   ` [TUHS] EMACS clones (was: Unix taste (Re: terminal - just for fun)) Greg 'groggy' Lehey
2014-08-03  8:00 ` [TUHS] Unix taste (Re: terminal - just for fun) A. P. Garcia

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