From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7b5615402713dcbb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.216.234.135 with SMTP id s7mr934546weq.8.1346145360365; Tue, 28 Aug 2012 02:16:00 -0700 (PDT) Path: q11ni347274145wiw.1!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Ada and Java/C++ Date: Tue, 28 Aug 2012 12:15:58 +0300 Organization: Tidorum Ltd Message-ID: References: <8bfbf709-18ac-43cd-b037-ce47adde96c2@googlegroups.com> Mime-Version: 1.0 X-Trace: individual.net qS1XsHayCkLhlKHlebPM0AR3cw0eXKfmY2z2gUK/BkfKPPw3Qs2JbtsviRfPM7Vao0 Cancel-Lock: sha1:AxjIo3pMZwKAvRzfARoy19ryhHM= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2012-08-28T12:15:58+03:00 List-Id: 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 . @ .