Deutsch   English   Français   Italiano  
<vb552l$2vjs3$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lynn McGuire <lynnmcguire5@gmail.com>
Newsgroups: rec.arts.sf.written
Subject: =?UTF-8?Q?Re=3A_=E2=80=9CDid_nobody_stop_to_think_what_might_happen?=
 =?UTF-8?Q?_in_an_emergency_in_space=3F=E2=80=9D?=
Date: Mon, 2 Sep 2024 14:52:53 -0500
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <vb552l$2vjs3$2@dont-email.me>
References: <vaaphl$11duc$1@dont-email.me> <vak8m0$2ugre$1@dont-email.me>
 <vamav9$3bm9e$1@dont-email.me> <van301$3f8s4$1@dont-email.me>
 <ljbkbcFept2U1@mid.individual.net> <vat2sv$jl6q$2@dont-email.me>
 <3b91eadf-cd9d-ea46-fcdf-10a0898c3218@example.net>
 <vb350r$1pc93$1@dont-email.me> <vb4coc$2rg60$2@dont-email.me>
 <tpnbdjtjtddjk6tirosn49529hf8ushs1o@4ax.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 02 Sep 2024 21:52:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="aa44fe10aae61086dc3d6f58157af3e7";
	logging-data="3133315"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18zTRfoIlQH6Sgw/fWEIrK/BcrPdrCVzTE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:k5f90NxadiMhHXCQDOCgiHm7oaE=
Content-Language: en-US
In-Reply-To: <tpnbdjtjtddjk6tirosn49529hf8ushs1o@4ax.com>
Bytes: 4023

On 9/2/2024 10:55 AM, Paul S Person wrote:
> On Mon, 2 Sep 2024 07:57:48 -0500, "Michael F. Stemper"
> <michael.stemper@gmail.com> wrote:
> 
>> On 01/09/2024 20.39, Lynn McGuire wrote:
>>> On 8/30/2024 4:38 PM, D wrote:
>>>>
>>>>
>>>> On Fri, 30 Aug 2024, Lynn McGuire wrote:
>>>>
>>>>> On 8/29/2024 11:01 AM, Jaimie Vandenbergh wrote:
>>>>>> On 28 Aug 2024 at 12:51:29 BST, "Graham" <zotzlists@gmail.com> wrote:
>>>>>>
>>>>>>> On 28/08/2024 06:01, Titus G wrote:
>>>>>>>> On 27/08/24 22:10, Graham wrote:
>>>>>>>>>
>>>>>>>>
>>>>>>>> 1234567890
>>>>>>>> 2234567890
>>>>>>>> 3234567890
>>>>>>>> 4234567890
>>>>>>>> 5234567890
>>>>>>>> 6234567890
>>>>>>>> 7234567890
>>>>>>>> 8234567890
>>>>>>>>
>>>>>>>> I'll take the bait. Please explain your signature.
>>>>>>>
>>>>>>> Nothing exciting, I'm afraid. 80 characters.
>>>>>>
>>>>>> Should be 72, Shirley?
>>>>>>
>>>>>>       Cheers - Jaime
>>>>>
>>>>> I have written a quarter of a million (SWAG) lines of Fortran in my lifetime. If I never write another line I will be happy.  But I will write more Fortran next Tuesday.  Converting it all to C++ cannot come soon enough.
>>>>>
>>>>> Lynn
>>>>>
>>>>
>>>> Ahh... but isn't it true that C++ is only for nerds? All the cool kids write rust these days!
>>>
>>> Converting Fortran or C++ to Rust is non trivial.  I have actually considered it.  Shoot, converting Fortran to C++ is non trivial.
>>
>> I would guess that a straight translation of Fortran to C++ could be
>> automated. However, there doesn't seem to be any point in it unless
>> you're going to make use of the object-oriented capabilities of C++.
>> Then, of course, you're looking at a complete refactoring, which would,
>> indeed, be non-trivial.
> 
> If (this is purely hypothetical) you are moving to a C++ compiler that
> has no corresponding FORTRAN compiler, then converting FORTRAN to C++
> would make a /lot/ of sense.
> 
> As to the object-oriented capabilities of C++, don't tell anyone, but
> it is perfectly possible to write C++ code that is little more than "C
> plus classes" (and, of course, enums that are types and a few other
> advantages). You don't actually have to do heavy-duty OOP to use C++.

Fortran is transitioning from a serious business language to a hobbyist 
language.  There are billions of lines of software written in F66 and 
F77 that are very slowly being converted to C++.  Or Rust.  Or Python.  Etc.

BTW, in some senses, C++ is just a better C.  And the STL (Standard 
Template Library) is simply amazing.

Lynn