Remix.run Logo
▲ cavoirom 30 minutes ago

> Rust code benefits from memory safety, from the compile-time guarantees that make it easier for AI agents to write and maintain it…

Rust is not "safe" as you think unless there is no "unsafe", no FFI, no link to C library and libc.

For example, Java is memory safe but the recent Java4Shell happen because it uses unsafe code to handle base64.

▲IshKebab 21 minutes ago | parent [-]

When people use the term "memory safety" they almost always mean "unless you use the memory unsafe escape hatches that basically all languages provide".

But you knew that. Don't nit pick.

▲uecker 12 minutes ago | parent [-]

As if not a lot of Rust marketing was based on blurring exactly the distinction between "completely eliminates all memory safety issue" (Safe Rust) and "competed with C/C++ as a system programming language" (Rust including its unsafe part).