Google's take on memory safety
Dukc
ajieskola at gmail.com
Fri Mar 8 14:16:14 UTC 2024
On Friday, 8 March 2024 at 09:09:12 UTC, Monkyyy wrote:
> Python and java, and js are not exactly safe languges, there no
> way to inturpt the high ranking as being coherently designed
> around safety.
They are safe languages, as far as the common definition goes.
What they lack compared to likes of D, Rust or Nim enable is the
ability to forgo the GC and allocate memory / cast types manually
when you have to.
Well, there usually is some way to do that even in those
languages if you're determined enough, but it tends to be much
harder than in a purpose-built systems programming language.
Plus, in all likelihood the low-level controls are completely
implementation-specific, as opposed to standard part of the
language.
C and C++ are the opposite: you can go low-level easily enough,
but they don't have a standard safe subset of the language.
More information about the Digitalmars-d
mailing list