comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Ada and Java/C++
Date: Tue, 28 Aug 2012 12:15:58 +0300
Date: 2012-08-28T12:15:58+03:00	[thread overview]
Message-ID: <aa3gieFh89U1@mid.individual.net> (raw)
In-Reply-To: <c442bdff-a297-488c-8c91-6d51ac6897d6@googlegroups.com>

On 12-08-28 11:31 , kalvin.news@gmail.com wrote:
> tiistai, 28. elokuuta 2012 9.57.40 UTC+3 Shark8 kirjoitti:
> 
>> But on a more serious note; it might be interesting to build a
>> [basically mufti-lingual] compiler that could, say, take a grammar
>> and a source and compile the source. {Yeah, that'd be kinda like
>> GCC, with all it's front-ends.} Then you could inexpensively try
>> out different grammars until you find your Ada/C hybrid.
> 
> This is an excellent suggestion. In that way one could prototype with
> the ideas and see what works and what doesn't.

Look up "metacompiler" or "compiler-compiler" or "compiler generator".
This area has been worked on for a long time, with some useful results,
but it is still not so easy to "try out a different grammar", except for
trivial (lexical) changes to the grammar, such as using curly brackets
instead of keywords.

Also, to see "what works", one would have to set up controlled
experiments involving many programmers using the various syntaxes for
various kinds of programs of non-trivial size. That becomes expensive,
unless you can interest teachers to force the experiments on students,
which, unfortunately, is not a realistic enviroment.

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
      .      @       .



  reply	other threads:[~2012-08-28  9:16 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-27 10:46 Ada and Java/C++ kalvin.news
2012-08-27 11:48 ` Dmitry A. Kazakov
2012-08-27 13:44   ` kalvin.news
2012-08-27 14:33     ` Dmitry A. Kazakov
2012-08-27 15:26     ` J-P. Rosen
2012-08-27 15:46       ` Georg Bauhaus
2012-08-27 16:08       ` kalvin.news
2012-08-27 23:16     ` Randy Brukardt
2012-08-28  2:14       ` Adam Beneschan
2012-08-28 10:50         ` Brian Drummond
2012-08-28 14:22           ` kalvin.news
     [not found]           ` <gcup38ldi4afrt9q2uj70qoe7l2lcn4rk1@invalid.netcom.com>
2012-08-28 23:00             ` Brian Drummond
     [not found]               ` <fouq38tqdp7fh86l2dp2pmr8jfdgi24i7j@invalid.netcom.com>
2012-08-29 10:39                 ` Brian Drummond
2012-08-27 14:35   ` Nomen Nescio
2012-08-27 21:23     ` gautier_niouzes
2012-08-27 14:09 ` Niklas Holsti
     [not found] ` <al1n38tdd0tq6p1os6p6angt91mginhoup@invalid.netcom.com>
2012-08-27 14:49   ` kalvin.news
2012-08-27 14:53   ` kalvin.news
2012-08-27 19:46     ` Shark8
2012-08-27 20:11     ` gautier_niouzes
2012-08-27 19:41 ` Shark8
2012-08-27 20:06 ` gautier_niouzes
2012-08-28  5:35 ` kalvin.news
2012-08-28  6:57   ` Shark8
2012-08-28  8:28     ` kalvin.news
2012-08-28 10:00       ` Niklas Holsti
2012-08-28  8:31     ` kalvin.news
2012-08-28  9:15       ` Niklas Holsti [this message]
2012-08-28  9:54   ` gautier_niouzes
2012-08-28 14:08     ` kalvin.news
2012-08-29 10:52 ` kalvin.news
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox