Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Malcolm McLean Newsgroups: comp.lang.c Subject: Re: C23 thoughts and opinions Date: Sat, 1 Jun 2024 16:33:29 +0100 Organization: A noiseless patient Spider Lines: 52 Message-ID: References: <7d0e8f25-a8ba-4995-9b90-ff35f85d423f@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 01 Jun 2024 17:33:31 +0200 (CEST) Injection-Info: dont-email.me; posting-host="ddd0cd5bdd49f1c9af3bee865f57fdb0"; logging-data="2996878"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GNtswcWJx3+TKGDlua5b3n1Y9fP6ea9c=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:kqMtq919Q2XtgfXB8lKk4rhmTjI= Content-Language: en-GB In-Reply-To: Bytes: 3738 On 01/06/2024 14:28, David Brown wrote: > On 01/06/2024 01:34, Lynn McGuire wrote: >> On 5/26/2024 6:23 AM, Bonita Montero wrote: >>> Am 26.05.2024 um 09:13 schrieb jak: >>> >>>> About this I only agree partially because it depends a lot on the >>>> context in which it is used. Moreover, I would not know how to indicate >>>> an optimal programming language for all seasons. >>> >>> C++ is in almost any case the better C. >>> >>>> What you describe is the greatest inconvenience of c++. To make only >>>> one >>>> example, when they decided to rewrite the FB platform to accelerate it, >>>> they thought of migrating from php to c++ and they had a collapse of >>>> the >>>> staff suitable for work, so they thought of relying a compiler that >>>> translated the php into c++ and many of the new languages were born to >>>> try to remedy hits complexity. >>> >>> C++ is the wrong language for web applications. >>> I like Java more for that. >> >> C++ is the wrong language for real time apps.  No memory allocation >> allowed. >> > > I use C++ for real-time apps.  You don't have to have dynamic memory > allocation just because you are writing in C++ ! > > I use C++ because I like vectors (arrays) that you don't have to allocate or pass length parameters about with, I like strings which you can pass about (though to actually use the contents you need to covert to char *, otherwuse it is hopeless), and I like objects that you don't have to destroy explicitly, and can assign easily, and have good facilitiesfor private data.. Occasionally I need a hash table or a balanced binary tree, and again C++ makes it easy, though I have of course rolled my own. I've spent the last ten years working mainly with C++, and only very occasionally writing code for professional purposes in C, though all my hobby programming is in C. I have recently had to stop work, and after a course of chemo which knocked me back, I am now feeling the benefit, and the cancer has shrunk and is less painful, and I've been full time on C and highly productive, and some really exciting things are happening with the Baby X resource compiler. -- Check out Basic Algorithms and my other books: https://www.lulu.com/spotlight/bgy1mm