comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: ada without ada libraries?
Date: Thu, 09 Feb 2012 14:42:02 +0100
Date: 2012-02-09T14:42:02+01:00	[thread overview]
Message-ID: <op.v9ey0cppule2fv@douda-yannick> (raw)
In-Reply-To: 1o71uiwmoiunb.bkjz8c54rcbl.dlg@40tude.net

Le Thu, 09 Feb 2012 11:45:31 +0100, Dmitry A. Kazakov  
<mailbox@dmitry-kazakov.de> a écrit:
>> No language at all,
>> not even Ada, could be an universal model for everything.
>
> Since when a language became a model?

Always been for me. I see Ada as a language providing a set of low level  
models. All languages comes with their own model, even natural language  
(people are just not aware of that fact).

> If you want to be serious in pushing your argument, you have to show how
> and why the domain's specific fails to fit into a strongly typed,
> imperative, OO framework.

First is readability. A DSL provide a specific set of vocabulary and a  
syntax which, if well designed, emphase things where needed. Using Ada for  
some things, would be like using assembly instead of Ada. With Ada you  
don't have to care about setting‑up stack frame and cleaning it on return  
nor you have to care about register vs memory allocation. The same way,  
some domain don't have to care about private/public, limited/non‑limited,  
local/library‑level. You could provide some package holding the  
functionnalities of a DSL, a attempt to right what a DSL do in a simple  
Ada program, but you will miss conciness and specifically designed context  
which come with a DSL and help to focus on the DSL domain only.


> The only debatable position here is actually declarative vs. imperative.
> But it won't fly with scripting languages anyway.

It precisely do.

>> and some scripting
>> languages, like LISP or derivatives, or logic programming languages,  
>> are a
>> kind of.
>
> ... mess.
Either you use it badly, or it is just not well suited to you in  
particular. Does not imply this cannot suite well someones else.

What would be a real mess, would be an attempt to express Prolog clauses  
with Ada arrays (arrays with anonymous types, of course; don't even think  
about named array sub‑types). Would be bloated with no added value for  
what matters to Prolog users. You would nearly have to create a new  
derived type for each clauses if you wanted it to be real Ada.

Similar comments could apply with others, including some as common as SQL  
is.

This does not mean all are good or perfect (SQL syntax is not good to me),  
I just mean trying to replace all with Ada would make things worst.

-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



  parent reply	other threads:[~2012-02-09 13:42 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-07 21:14 ada without ada libraries? Patrick
2012-02-08  2:04 ` BrianG
2012-02-08  3:11 ` Gautier write-only
2012-02-08  8:35 ` tonyg
2012-02-08  9:10 ` Simon Wright
2012-02-08 12:02 ` Stephen Leake
2012-02-08 13:07   ` Dmitry A. Kazakov
2012-02-08 21:10     ` Patrick
2012-02-08 21:39       ` Gautier write-only
2012-02-09  2:11       ` Shark8
2012-02-09  2:08     ` Shark8
2012-02-09  3:43       ` Jeffrey Carter
2012-02-09  4:17         ` Shark8
2012-02-09 12:26         ` mockturtle
2012-02-09  8:34       ` Dmitry A. Kazakov
2012-02-09  9:55         ` Yannick Duchêne (Hibou57)
2012-02-09 10:45           ` Dmitry A. Kazakov
2012-02-09 11:08             ` Gautier write-only
2012-02-09 13:48               ` Georg Bauhaus
2012-02-09 14:17                 ` Yannick Duchêne (Hibou57)
2012-02-09 14:05               ` Yannick Duchêne (Hibou57)
2012-02-09 16:47               ` Pascal Obry
2012-02-09 17:03                 ` Yannick Duchêne (Hibou57)
2012-02-09 17:08                   ` Yannick Duchêne (Hibou57)
2012-02-09 17:26                   ` Pascal Obry
2012-02-10  0:51                     ` Randy Brukardt
2012-02-09 17:31                   ` Dmitry A. Kazakov
2012-02-09 13:42             ` Yannick Duchêne (Hibou57) [this message]
2012-02-09 14:40               ` Dmitry A. Kazakov
2012-02-09 15:50                 ` Yannick Duchêne (Hibou57)
2012-02-09 17:21                   ` Dmitry A. Kazakov
2012-02-09 17:44                     ` Yannick Duchêne (Hibou57)
2012-02-10  0:56                 ` Randy Brukardt
2012-02-10  9:38                   ` Dmitry A. Kazakov
2012-02-14 19:08                 ` Yannick Duchêne (Hibou57)
2012-02-09 13:42             ` Yannick Duchêne (Hibou57)
replies disabled

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