From: Martin <martin@thedowies.com>
Subject: Re: example of machine generated Ada ?
Date: Sat, 5 Oct 2013 08:46:40 -0700 (PDT)
Date: 2013-10-05T08:46:40-07:00 [thread overview]
Message-ID: <0bda50e3-0620-4765-ac3d-11d2d1780dff@googlegroups.com> (raw)
In-Reply-To: <bb4gaaF4ifnU1@mid.individual.net>
On Thursday, October 3, 2013 7:14:33 AM UTC+1, Niklas Holsti wrote:
> On 13-10-03 07:10 , Robert Love wrote:
>
> > On 2013-10-02 17:37:04 +0000, Patrick said:
>
> >
>
> >> Hi Everyone
>
> >>
>
> >> I am just daydreaming about generating Ada from another language.
>
> >>
>
> >> Several languages use C as an intermediate language but hand written C
>
> >> is hard to read and machine generated is even more painful. Ada might
>
> >> make for reliable, readable machine generated code.
>
> >>
>
> >> Thanks-Patrick
>
> >
>
> > There was a product in the 90s called Matrixx, it let you draw flow
>
> > charts and type in algorithms and drag connections between components
>
> > your created graphically. You pushed the button and out popped some of
>
> > the ugliest Ada you can imagine. My point is you can have code
>
> > generators but there is no guarantee of the quality, readablity or
>
> > maintainablity.
>
>
>
> If I remember correctly, the motivation for including a goto statement
>
> in Ada was that automatic code generators might need it. This perhaps
>
> shows what kind of code was expected from such generators...
GOTOs in auto-generated code are not usual...in the late 80's Jackson Structured Programming (JSP) diagrams -> COBOL often used GOTOs...but that was fine...it allowed implementation of the "Backtracking" technique in the JSP method and also, "who cares" what the auto-generated code looks like - you're supposed to be only looking at the diagrams.
It's the same reason we don't care about the 'gotos' in the assembler from your-favourite-Ada-compiler :-)
-- Martin
next prev parent reply other threads:[~2013-10-05 15:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-02 17:37 example of machine generated Ada ? Patrick
2013-10-03 5:10 ` Robert Love
2013-10-03 6:14 ` Niklas Holsti
2013-10-05 15:46 ` Martin [this message]
2013-10-03 5:40 ` Simon Wright
2013-10-05 2:49 ` Randy Brukardt
2013-10-05 7:22 ` Simon Wright
2013-10-03 9:01 ` gautier_niouzes
2013-10-03 11:38 ` Marius Amado-Alves
2013-10-03 13:12 ` Patrick
2015-01-09 21:33 ` Paul Rubin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox