Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

Liste des GroupesRevenir à cl c  
Sujet : Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.c++ comp.lang.c
Date : 08. Mar 2024, 16:57:09
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240308165709.00004aca@yahoo.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
On Fri, 8 Mar 2024 15:32:22 +0100
David Brown <david.brown@hesbynett.no> wrote:

On 08/03/2024 11:57, Michael S wrote:
On Fri, 8 Mar 2024 08:25:13 +0100
David Brown <david.brown@hesbynett.no> wrote:
 
On 07/03/2024 17:35, Kaz Kylheku wrote: 
On 2024-03-07, David Brown <david.brown@hesbynett.no> wrote: 
On 06/03/2024 23:00, Michael S wrote: 
On Wed, 6 Mar 2024 12:28:59 +0000
bart <bc@freeuk.com> wrote:
   
>
"Rust uses a relatively unique memory management approach that
incorporates the idea of memory “ownership”. Basically, Rust
keeps track of who can read and write to memory. It knows when
the program is using memory and immediately frees the memory
once it is no longer needed. It enforces memory rules at
compile time, making it virtually impossible to have runtime
memory bugs.⁴ You do not need to manually keep track of
memory. The compiler takes care of it."
>
This suggests the language automatically takes care of this. 
>
Takes care of what?
AFAIK, heap fragmentation is as bad problem in Rust as it is in
C/Pascal/Ada etc... In this aspect Rust is clearly inferior to
GC-based languages like Java, C# or Go.
   
Garbage collection does not stop heap fragmentation.  GC does, I
suppose, mean that you need much more memory and bigger heaps in
proportion to the amount of memory you actually need in the
program at any given time, and having larger heaps reduces
fragmentation (or at least reduces the consequences of it). 
>
Copying garbage collectors literally stop fragmentation. 
>
Yes, but garbage collectors that could be useable for C, C++, or
other efficient compiled languages are not "copying" garbage
collectors.
 
 Go, C# and Java are all efficient compiled languages. For Go it was
actually a major goal. 
 C# and Java are, AFAIUI, managed languages - they are byte-compiled
and run on a VM.  (JIT compilation to machine code can be used for acceleration, but that does not change the principles.)  I don't know about Go.
>
C# was Jitted originally and was even interpretted on on very small
implementation that don't seem to be supported any longer. Today it is
mostly AoTed, which in simpler language means "compiled". There are
options in dev tools whhether to compile to native code on to
platform-independent. I would think that most people compile to native.
Java-on-Android which, I would guess, is majority on Java written in
the world, is like 95% AoTed + 5% JITtted. Is used to be 100% AoTed in
few versions of Android, but by now JIT is reintroduced as an option,
not for portability, but for profile-guided optimization
opportinities it allows. If I am not mistaken, direct interpretaions of
Davlik non-byte-code was never supported on Android.
Java-outside-Android? I don't know what is current stated. Would think
that Oracle's JVMs intetended for desktop/la[top/server are also
either JITted or AoTed, not interpreted.
Go is compiled to native, most often via LLVM, but there exists gcc
option as well.

Date Sujet#  Auteur
7 Mar 24 * Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"23David Brown
7 Mar 24 +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"15Michael S
7 Mar 24 i`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"14David Brown
7 Mar 24 i +- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"1Kaz Kylheku
8 Mar 24 i `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"12Paavo Helde
8 Mar 24 i  +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"3David Brown
8 Mar 24 i  i`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"2bart
8 Mar 24 i  i `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"1David Brown
29 Apr 24 i  `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"8Lawrence D'Oliveiro
29 Apr 24 i   +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"5Chris M. Thomasson
29 Apr 24 i   i`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"4Kaz Kylheku
29 Apr 24 i   i `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"3Chris M. Thomasson
29 Apr 24 i   i  `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"2Kaz Kylheku
29 Apr 24 i   i   `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"1Chris M. Thomasson
29 Apr 24 i   `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"2paavo512
29 Apr 24 i    `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"1Chris M. Thomasson
7 Mar 24 `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"7Kaz Kylheku
8 Mar 24  `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"6David Brown
8 Mar 24   `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"5Michael S
8 Mar 24    `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"4David Brown
8 Mar 24     +- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"1Michael S
29 Apr 24     `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"2Lawrence D'Oliveiro
29 Apr 24      `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"1aph

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal