Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #366

Re: Looking for volunteers for XL

From "BartC" <bc@freeuk.com>
Newsgroups comp.compilers
Subject Re: Looking for volunteers for XL
Date 2011-11-28 10:23 +0000
Organization A noiseless patient Spider
Message-ID <11-11-064@comp.compilers> (permalink)
References <11-11-048@comp.compilers> <11-11-053@comp.compilers> <11-11-054@comp.compilers> <11-11-061@comp.compilers>

Show all headers | View raw


"Kaz Kylheku" <kaz@kylheku.com> wrote in message
> On 2011-11-26, BartC <bc@freeuk.com> wrote:

>> However, if the design of X2 isn't going to change, you might as well
>> just write a compiler directly for X2; it's not necessary to make
>> available, to the programmer of X2, all those untidy language-building
>> features (for an example, see C++).

> You're trying to fit extensible languages into the traditional model,
> in which a lone guru (or small group of such) working atop a mountain
> carves a programming language onto stone tablets, which then descend
> down to the masses.

You've put that well, that's exactly what I think!

Take the well-known language C, which has a crude mechanism to extend
it in the form of its pre-processing macro language.

Most enhancements you might want to make to the language, can be
achieved by some clunky, ugly macro. But the real problem is that your
code now consists of a private, ad-hoc collection of macros which
no-one else understands. You can't upload a simple piece of code (for
example a problem-solving algorithm) without dragging this macro
library with it.

And even then, someone else has to integrate this code with his own,
where the same language issue has been solved in a slightly different
way, or in a way that clashes.

Wouldn't it be much better standardising these enhancements so everyone
writes them the same way?

(Of course macros can work well for application-related tasks; I'm talking
about language enhancements.)

> Under an extensible language culture, the lone guru working in
> isolation produces not a new language, but some new extension. These
> can be released as code for people to try. Then when the bug reports
> pour in and it's all hammered out, a formal spec can be written.  The
> guru deosn't get to ask everyone to ditch their language, only to add
> something to it.

That's fine. There's just one guru; only he needs the tools to create the
extensions. The problem is when everyone can potentially be a guru because
every has the tools (and a much bigger, more confusing toolbox with lots of
intriguing-looking tools for the programmer to express himself with!).

--
Bartc
[Anyone ever look at the code for the Bourne shell, written in faux
Algol-68 using C preprocessor macros. Yow. -John]

Back to comp.compilers | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Looking for volunteers for XL Christophe de Dinechin <christophe@taodyne.com> - 2011-11-22 21:03 -0800
  Re: Looking for volunteers for XL Kaz Kylheku <kaz@kylheku.com> - 2011-11-26 05:43 +0000
  Re: Looking for volunteers for XL Christophe de Dinechin <christophe@taodyne.com> - 2011-11-26 12:38 -0800
    Re: Looking for volunteers for XL "BartC" <bc@freeuk.com> - 2011-11-26 23:19 +0000
      Re: Looking for volunteers for XL Christophe de Dinechin <christophe@taodyne.com> - 2011-11-27 12:34 -0800
        Re: Looking for volunteers for XL "BartC" <bc@freeuk.com> - 2011-11-27 22:24 +0000
          Re: Looking for volunteers for XL Christophe de Dinechin <christophe@taodyne.com> - 2011-11-28 14:12 -0800
            Re: Looking for volunteers for XL ardjussi <jussi.santti@ard.fi> - 2011-11-30 13:16 -0800
              Re: Looking for volunteers for XL Kaz Kylheku <kaz@kylheku.com> - 2011-12-01 05:44 +0000
                Re: overloading, was Looking for volunteers for XL glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2011-12-02 05:36 +0000
          Re: Looking for volunteers for XL tm <thomas.mertes@gmx.at> - 2012-01-03 09:28 -0800
      Re: Looking for volunteers for XL Kaz Kylheku <kaz@kylheku.com> - 2011-11-28 04:45 +0000
        Re: Looking for volunteers for XL Timothy Knox <tdk@thelbane.com> - 2011-11-27 22:50 -0800
          Re: Looking for volunteers for XL Alex McDonald <blog@rivadpm.com> - 2011-12-01 12:11 -0800
        Re: Looking for volunteers for XL "BartC" <bc@freeuk.com> - 2011-11-28 10:23 +0000
          Re: Looking for volunteers for XL glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2011-11-29 07:37 +0000
            Re: macros, Looking for volunteers for XL Gene Wirchenko <genew@ocis.net> - 2011-12-03 17:36 -0800
              Re: macros, Looking for volunteers for XL glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2011-12-05 04:24 +0000
          Re: Looking for volunteers for XL Kaz Kylheku <kaz@kylheku.com> - 2011-12-01 05:35 +0000
            Re: designing language extensions, was Looking for volunteers for XL Marco van de Voort <marcov@toad.stack.nl> - 2011-12-03 13:02 +0000
            Re: Looking for volunteers for XL jgk@panix.com (Joe keane) - 2011-12-13 00:08 +0000
              Re: macros, was Looking for volunteers for XL Kaz Kylheku <kaz@kylheku.com> - 2011-12-13 01:39 +0000
                Re: macros, was Looking for volunteers for XL Kaz Kylheku <kaz@kylheku.com> - 2011-12-14 19:00 +0000
                Re: macros, was Looking for volunteers for XL jgk@panix.com (Joe keane) - 2011-12-15 15:40 +0000
                Re: macros, was Looking for volunteers for XL Kaz Kylheku <kaz@kylheku.com> - 2011-12-16 17:48 +0000
        Re: Looking for volunteers for XL glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2011-11-28 10:26 +0000

csiph-web