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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.157.13.110 with SMTP id 101mr980836oti.81.1485453231949; Thu, 26 Jan 2017 09:53:51 -0800 (PST) X-Received: by 10.157.62.29 with SMTP id a29mr286637otd.5.1485453231920; Thu, 26 Jan 2017 09:53:51 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!r185no440291ita.0!news-out.google.com!15ni9534itm.0!nntp.google.com!r185no440281ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 26 Jan 2017 09:53:51 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=185.30.133.97; posting-account=hya6vwoAAADTA0O27Aq3u6Su3lQKpSMz NNTP-Posting-Host: 185.30.133.97 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Dynamic type system for Ada From: Vincent Injection-Date: Thu, 26 Jan 2017 17:53:51 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:33181 Date: 2017-01-26T09:53:51-08:00 List-Id: Le mardi 24 janvier 2017 14:12:16 UTC+1, Victor Porton a =C3=A9crit=C2=A0: > I thought on combining powers of static (like Ada) and dynamic (like Pyth= on)=20 > languages. In two seconds I understood that this can be done by creating = a=20 > special "Dynamic" type in a static language. >=20 You may simply need to copy what has been done for Python objects in C. The= root object has reference counting and an associated type object (or Class= object in Objective-C), that references it's methods, through interfaces..= . This may be very useful, for scientific computations for instance. The challenge is to find a good integration in the Ada language. Precisely,= Matlab and Python are languages, not simply libraries in C, even if there = runtime is in C. See also for instance the limitations of Unbounded_Strings= compared to native Ada Strings. Regards, Vincent =20