Re: logically weird loop

Liste des GroupesRevenir à cl c  
Sujet : Re: logically weird loop
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.lang.c
Date : 05. Dec 2024, 16:06:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <visfhf$1m5v7$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
On 05/12/2024 12:21, Janis Papanagnou wrote:
On 05.12.2024 04:53, Tim Rentsch wrote:
>
Almost everyone who took Simula and C++ as the archetype for OOP
never understood it.
 LOL.
 (Funny [dogmatic] statement, without any substance again.)
 
If you take the position that Alan Key, as the person who is credited with inventing the term "object oriented programming", gets to make the definition of what OOP is, then Tim's statement is accurate.  Originally OOP meant something very different from how it is interpreted in C++. (I don't know Simula except by reputation, so I can't comment on that.)
The original idea of OOP was to have self-contained "objects" that communicated only by passing messages.  If object A wanted object B to do "foo", it would not call "B.foo()" in its own context, as is done in C++.  Instead, it would pass a message "foo" to B.  What B does with it, and when, is up to B.  If a return value is expected, then B will send a message with the answer back to A.
This is, I think, akin to the modern "actor" programming paradigm, and it has connections back to Hoare's CSP (which has inspired many systems and languages, most recently Golang).  It gives you a robust, modular system with great scalability - objects can run on different cores or threads, or different computers connected by a network.  Data races and other concurrency issues are pretty much impossible.  Different parts of the program could be changed at run-time.
Of course, all this has significant overheads - it is not suitable for a low-level high efficiency language.  The rather different idea of OOP represented by languages like C++ can be very much more efficient, which is why it caught on.
Perhaps the language that is most true to the original idea is Erlang, with its "write once, run forever" motto.

Date Sujet#  Auteur
20 Nov 24 * logically weird loop32fir
20 Nov 24 +- Re: logically weird loop1fir
20 Nov 24 `* Re: logically weird loop30Janis Papanagnou
20 Nov 24  +* Re: logically weird loop4fir
20 Nov 24  i`* Re: logically weird loop3fir
20 Nov 24  i `* Re: logically weird loop2fir
21 Nov 24  i  `- Re: logically weird loop1fir
21 Nov 24  `* Re: logically weird loop25Lawrence D'Oliveiro
21 Nov 24   +* Re: logically weird loop21Janis Papanagnou
21 Nov 24   i+* Re: logically weird loop6fir
21 Nov 24   ii`* Re: logically weird loop5fir
21 Nov 24   ii `* Re: logically weird loop4Janis Papanagnou
21 Nov 24   ii  `* Re: logically weird loop3fir
21 Nov 24   ii   `* Re: logically weird loop2Janis Papanagnou
22 Nov 24   ii    `- Re: logically weird loop1fir
22 Nov 24   i+* Re: logically weird loop9Lawrence D'Oliveiro
22 Nov 24   ii+- Re: logically weird loop1Janis Papanagnou
22 Nov 24   ii`* Re: logically weird loop7Michael S
22 Nov 24   ii +* Re: logically weird loop2fir
22 Nov 24   ii i`- Re: logically weird loop1fir
5 Dec 24   ii `* Re: logically weird loop4Tim Rentsch
5 Dec 24   ii  `* Re: logically weird loop3Janis Papanagnou
5 Dec 24   ii   `* Re: logically weird loop2David Brown
5 Dec 24   ii    `- Re: logically weird loop1Janis Papanagnou
5 Dec 24   i`* Re: logically weird loop5Tim Rentsch
5 Dec 24   i `* Re: logically weird loop4Janis Papanagnou
7 Dec 24   i  `* Re: logically weird loop3Tim Rentsch
7 Dec 24   i   `* Re: logically weird loop2Keith Thompson
8 Dec 24   i    `- Re: logically weird loop1Kaz Kylheku
22 Nov 24   `* Re: logically weird loop3fir
22 Nov 24    `* Re: logically weird loop2fir
24 Nov 24     `- Re: logically weird loop1fir

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal