Liste des Groupes | Revenir à cl c |
On 08/03/2024 11:57, Michael S wrote:C# was Jitted originally and was even interpretted on on very smallOn Fri, 8 Mar 2024 08:25:13 +0100C# and Java are, AFAIUI, managed languages - they are byte-compiled
David Brown <david.brown@hesbynett.no> wrote:
On 07/03/2024 17:35, Kaz Kylheku wrote:Go, C# and Java are all efficient compiled languages. For Go it wasOn 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 +0000Garbage collection does not stop heap fragmentation. GC does, I
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.
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.
actually a major goal.
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.
>
Les messages affichés proviennent d'usenet.