Re: Python (was Re: I did not inhale)

Liste des GroupesRevenir à cl misc 
Sujet : Re: Python (was Re: I did not inhale)
De : bc (at) *nospam* freeuk.com (Bart)
Groupes : comp.lang.misc
Date : 19. Aug 2024, 14:47:39
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v9vidr$2spbt$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Mozilla Thunderbird
On 19/08/2024 09:40, David Brown wrote:
On 19/08/2024 09:37, Dmitry A. Kazakov wrote:

The similar process happened with programming languages, e.g. C and with the hardware architectures, e.g. x86. It is always a race to the bottom...
>
 The success of the x86 was very much a race to the bottom - it was picked specifically to give a cheaper system rather than the technically superior architecture (m68k) preferred by the engineers.  Momentum and backwards compatibility has kept it going ever since.
 I am not as convinced with respect to C.  It certainly has its flaws, and it certainly has been, and continues to be, used in situations where it is not a good choice of language.  But I think much of the bad reputation of C is the result of poor C programmers and poor use of the language, rather than the language itself.
It is the language itself. So many stupid quirks which ended up as indispensible 'features' which meant you had to keep them forever.
Features which, granted that C is generally considered unsafe, just make it stupidly unsafe.
Plus not helped by tooling which insists on allowing ancient, unsafe practices by default so that again, bad habits and uses of unsafe features are perpetuated.
(You of course will insist that such tools must only used with an appropriate set of options to tune the language dialect to safer one.
In that case, you surely wouldn't object to defaulting to a safer dialect and requiring an option to build legacy code.)

Good programmers will write good code in any language, bad programmers (or badly managed programmers) will write bad code in any language.
C makes it considerably easier. I can't reproduce this in my language for example:
   int F() {
       F(1,2.3,"four",F,F());
   }
gcc 14.1.0 passes this by default.
Or this:
   void G(int* p) {p[12345];}
   int main() {
       int i=0;
       G(&i);
       int (*A)[10];
       *(A[i]);   // index then deref is valid (this one is wrong)
       (*A)[i];   // so is deref then index!
   }
Again, gcc 14.1.0 passes it. (If pushed, it will report things like 'statement with no effect' or missing initialisation. I can fix those, but the program is still likely to crash if run.)

Date Sujet#  Auteur
13 Apr 24 * Re: I did not inhale258Stefan Ram
13 Apr 24 `* Re: I did not inhale257Stefan Ram
15 Aug 24  `* Re: I did not inhale256Kalevi Kolttonen
16 Aug 24   `* Re: Python (was Re: I did not inhale)255Lawrence D'Oliveiro
16 Aug 24    +* Re: Python (was Re: I did not inhale)250Kaz Kylheku
16 Aug 24    i`* Re: Python (was Re: I did not inhale)249Kalevi Kolttonen
16 Aug 24    i +* Re: Python (was Re: I did not inhale)2John Ames
17 Aug 24    i i`- Re: Python (was Re: I did not inhale)1D
17 Aug 24    i +* Re: Python (was Re: I did not inhale)64Muttley
17 Aug 24    i i+* Re: Python (was Re: I did not inhale)61Dmitry A. Kazakov
17 Aug 24    i ii+* Re: Python (was Re: I did not inhale)58Lawrence D'Oliveiro
18 Aug 24    i iii`* Re: Python (was Re: I did not inhale)57Dmitry A. Kazakov
18 Aug 24    i iii +* Re: Python (was Re: I did not inhale)14Muttley
18 Aug 24    i iii i`* Re: Python (was Re: I did not inhale)13Dmitry A. Kazakov
18 Aug 24    i iii i `* Re: Python (was Re: I did not inhale)12Muttley
18 Aug 24    i iii i  +* Re: Python (was Re: I did not inhale)10Dmitry A. Kazakov
18 Aug 24    i iii i  i+* Re: Python (was Re: I did not inhale)2Kaz Kylheku
18 Aug 24    i iii i  ii`- Re: Python (was Re: I did not inhale)1Dmitry A. Kazakov
19 Aug 24    i iii i  i+- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
19 Aug 24    i iii i  i+- Re: Python (was Re: I did not inhale)1Muttley
25 Aug 24    i iii i  i`* Re: Python (was Re: I did not inhale)5Sebastian
25 Aug 24    i iii i  i `* Re: Python (was Re: I did not inhale)4Dmitry A. Kazakov
25 Aug 24    i iii i  i  +* Re: Python (was Re: I did not inhale)2vallor
25 Aug 24    i iii i  i  i`- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
25 Aug 24    i iii i  i  `- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
18 Aug 24    i iii i  `- Re: Python (was Re: I did not inhale)1Richard Kettlewell
18 Aug 24    i iii +* Re: Python (was Re: I did not inhale)2Kenny McCormack
18 Aug 24    i iii i`- Re: Python (was Re: I did not inhale)1Muttley
18 Aug 24    i iii +* Re: Python (was Re: I did not inhale)5Kaz Kylheku
18 Aug 24    i iii i`* Re: Python (was Re: I did not inhale)4Dmitry A. Kazakov
19 Aug 24    i iii i `* Re: Python (was Re: I did not inhale)3Kaz Kylheku
19 Aug 24    i iii i  `* Re: Python (was Re: I did not inhale)2Dmitry A. Kazakov
19 Aug 24    i iii i   `- Re: Python (was Re: I did not inhale)1Kaz Kylheku
19 Aug 24    i iii `* Re: Python (was Re: I did not inhale)35Lawrence D'Oliveiro
19 Aug 24    i iii  `* Re: Python (was Re: I did not inhale)34Dmitry A. Kazakov
19 Aug 24    i iii   +* Re: Python (was Re: I did not inhale)23David Brown
19 Aug 24    i iii   i+* Re: Python (was Re: I did not inhale)21Dmitry A. Kazakov
19 Aug 24    i iii   ii+* Re: Python (was Re: I did not inhale)4Muttley
19 Aug 24    i iii   iii`* Re: Python (was Re: I did not inhale)3Dmitry A. Kazakov
19 Aug 24    i iii   iii +- Re: Python (was Re: I did not inhale)1Muttley
30 Sep 24    i iii   iii `- Re: Python (was Re: I did not inhale)1Bozo User
19 Aug 24    i iii   ii+* Re: Python (was Re: I did not inhale)12David Brown
20 Aug 24    i iii   iii`* Re: Python (was Re: I did not inhale)11Dmitry A. Kazakov
20 Aug 24    i iii   iii +* Re: Python (was Re: I did not inhale)3Lawrence D'Oliveiro
20 Aug 24    i iii   iii i`* Re: Python (was Re: I did not inhale)2Dmitry A. Kazakov
21 Aug 24    i iii   iii i `- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
20 Aug 24    i iii   iii `* Re: Python (was Re: I did not inhale)7David Brown
20 Aug 24    i iii   iii  `* Re: Python (was Re: I did not inhale)6Dmitry A. Kazakov
20 Aug 24    i iii   iii   +* Re: Python (was Re: I did not inhale)2David Brown
20 Aug 24    i iii   iii   i`- Re: Python (was Re: I did not inhale)1Dmitry A. Kazakov
21 Aug 24    i iii   iii   `* Re: Python (was Re: I did not inhale)3Lawrence D'Oliveiro
21 Aug 24    i iii   iii    `* Re: Python (was Re: I did not inhale)2Dmitry A. Kazakov
22 Aug 24    i iii   iii     `- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
19 Aug 24    i iii   ii`* Re: Python (was Re: I did not inhale)4Keith Thompson
19 Aug 24    i iii   ii `* Re: Python (was Re: I did not inhale)3John Ames
20 Aug 24    i iii   ii  +- Re: Python (was Re: I did not inhale)1Muttley
20 Aug 24    i iii   ii  `- Re: Python (was Re: I did not inhale)1Stefan Ram
19 Aug 24    i iii   i`- Re: Python (was Re: I did not inhale)1Bart
19 Aug 24    i iii   +* Re: Python (was Re: I did not inhale)8Lawrence D'Oliveiro
19 Aug 24    i iii   i`* Re: Python (was Re: I did not inhale)7Dmitry A. Kazakov
19 Aug 24    i iii   i +* Re: Python (was Re: I did not inhale)2Keith Thompson
19 Aug 24    i iii   i i`- Re: Python (was Re: I did not inhale)1Dmitry A. Kazakov
20 Aug 24    i iii   i `* Re: Python (was Re: I did not inhale)4Lawrence D'Oliveiro
20 Aug 24    i iii   i  `* Re: Python (was Re: I did not inhale)3Dmitry A. Kazakov
20 Aug 24    i iii   i   +- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
20 Aug 24    i iii   i   `- Re: Python (was Re: I did not inhale)1D
21 Aug 24    i iii   `* Re: Python (was Re: I did not inhale)2vallor
21 Aug 24    i iii    `- Re: Python (was Re: I did not inhale)1Lawrence D'Oliveiro
18 Aug 24    i ii+- Re: Python (was Re: I did not inhale)1Muttley
18 Aug 24    i ii`- Re: Python (was Re: I did not inhale)1Eric Pozharski
18 Aug 24    i i`* Re: Python (was Re: I did not inhale)2David Brown
18 Aug 24    i i `- Re: Python (was Re: I did not inhale)1Muttley
18 Aug 24    i `* Re: Python (was Re: I did not inhale)182David Brown
18 Aug 24    i  +* C function prototype was Python (was Re: I did not inhale)2James Harris
18 Aug 24    i  i`- Re: C function prototype was Python (was Re: I did not inhale)1David Brown
18 Aug 24    i  +* Re: Python (was Re: I did not inhale)2Keith Thompson
19 Aug 24    i  i`- Re: Python (was Re: I did not inhale)1David Brown
20 Aug 24    i  `* Re: Python (was Re: I did not inhale)177Kalevi Kolttonen
20 Aug 24    i   +* Re: Python (was Re: I did not inhale)3Muttley
20 Aug 24    i   i+- Re: Python (was Re: I did not inhale)1Lew Pitcher
20 Aug 24    i   i`- Re: Python (was Re: I did not inhale)1Kalevi Kolttonen
20 Aug 24    i   +* Re: Python (was Re: I did not inhale)170David Brown
20 Aug 24    i   i`* Re: Python (was Re: I did not inhale)169Kalevi Kolttonen
21 Aug 24    i   i +* Re: Python (was Re: I did not inhale)161David Brown
21 Aug 24    i   i i+* Re: Python (was Re: I did not inhale)142Muttley
21 Aug 24    i   i ii`* Re: Python (was Re: I did not inhale)141David Brown
21 Aug 24    i   i ii `* Re: Python (was Re: I did not inhale)140Muttley
21 Aug 24    i   i ii  `* Re: Python (was Re: I did not inhale)139David Brown
21 Aug 24    i   i ii   `* Re: Python (was Re: I did not inhale)138Muttley
21 Aug 24    i   i ii    `* Re: Python (was Re: I did not inhale)137David Brown
22 Aug 24    i   i ii     `* Re: Python (was Re: I did not inhale)136Muttley
22 Aug 24    i   i ii      +* Re: Python (was Re: I did not inhale)6D
22 Aug 24    i   i ii      i+* Re: Python (was Re: I did not inhale)4Muttley
22 Aug 24    i   i ii      ii`* Re: Python (was Re: I did not inhale)3D
22 Aug 24    i   i ii      ii `* Re: Python (was Re: I did not inhale)2Lew Pitcher
22 Aug 24    i   i ii      ii  `- Re: Python (was Re: I did not inhale)1Muttley
22 Aug 24    i   i ii      i`- Re: Python (was Re: I did not inhale)1David Brown
22 Aug 24    i   i ii      `* Re: Python (was Re: I did not inhale)129David Brown
22 Aug 24    i   i ii       +* Re: Python (was Re: I did not inhale)120Muttley
26 Aug 24    i   i ii       i`* Re: Python (was Re: I did not inhale)119John Ames
26 Aug 24    i   i ii       i +- Re: Python (was Re: I did not inhale)1Muttley
26 Aug 24    i   i ii       i `* Re: Python (was Re: I did not inhale)117Lawrence D'Oliveiro
22 Aug 24    i   i ii       `* Re: Python (was Re: I did not inhale)8Lawrence D'Oliveiro
21 Aug 24    i   i i`* Re: Python (was Re: I did not inhale)18Lawrence D'Oliveiro
21 Aug 24    i   i `* Re: Python (was Re: I did not inhale)7Muttley
21 Aug 24    i   `* Re: Python (was Re: I did not inhale)3Lawrence D'Oliveiro
16 Aug 24    `* Re: Python (was Re: I did not inhale)4Kalevi Kolttonen

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal