From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on ip-172-31-91-241.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=none autolearn=ham autolearn_force=no version=4.0.1 Path: nntp.eternal-september.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: In precision typing we trust Date: Wed, 27 Aug 2025 11:24:18 +0200 Organization: A noiseless patient Spider Message-ID: <108mis1$j4cj$1@dont-email.me> References: <107uv9g$3019a$1@dont-email.me> <107v1ji$303of$1@dont-email.me> <336fbb5f-a279-ea8e-67fd-f62bb00d6a89@irrt.De> <107vfb9$34cpj$1@dont-email.me> <10855lq$gj8l$1@dont-email.me> <1088h1a$19635$1@dont-email.me> <1089p1i$1ig1d$1@dont-email.me> <108aq2p$1qo9o$1@dont-email.me> <108b1r3$1sj3c$1@dont-email.me> <108dh4t$2f5h3$2@dont-email.me> <108dkik$2g20p$1@dont-email.me> <108g1cg$32gqg$2@dont-email.me> <108h6b0$3a75k$2@dont-email.me> <108iiq5$3lihe$3@dont-email.me> <108mhhk$j2jt$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 27 Aug 2025 09:24:18 +0000 (UTC) Injection-Info: dont-email.me; posting-host="27f675d80bb91bc8ee173b07c37e13d3"; logging-data="627091"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gksRp3X3qDPXmNka0ZRWjHo+ygxmGOOo=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:/sPn6TvCkSOgbRU+3JsstH4zj0U= Content-Language: en-US In-Reply-To: <108mhhk$j2jt$1@dont-email.me> Xref: feeder.eternal-september.org comp.lang.ada:66942 List-Id: On 2025-08-27 11:01, Kevin Chadwick wrote: > On 25/08/2025 21:58, Lawrence DOliveiro wrote: >> On Mon, 25 Aug 2025 10:19:43 +0200, Dmitry A. Kazakov wrote: >> >>> On 2025-08-24 23:49, Lawrence D’Oliveiro wrote: >>>> >>>> On Sat, 23 Aug 2025 23:58:12 -0000 (UTC), Kevin Chadwick wrote: >>>> >>>>> Micropython is C and some say Python is C too. >>>> >>>> Python is Python, not C. It has strong dynamic typing and lexical >>>> binding, and functions and classes are first-class objects. >> >> With Python, you don’t even need to write C code to interface to C code >> . > > You don't in Ada either. Maybe to get around some issues with C++ Actually in Python they use a C library to call C. So it illustrates the opposite: you cannot call C or be called from C in Python. You need some FFI layer. But in Ada you can, because of an ability to specify conventions in Ada. This is an unfair comparison, because Ada is a general purpose language. Direct hardware access is a part of Ada's functionality. Python is a mere command-line interpreter that cannot deal with machine specifics. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de