News for hackers. Stuff that matters.
Re:Java is not a safe language by eternityforest on Monday June 13, 2022 @07:19AM (#31723846)
A safe language isn't a language that lets you do things safely, it's a language that will not let you do them unsafely, or will at least make it hard to do so.

The moment you allow things that don't work well with the prover, people will use them, and the whole ecosystem becomes unsafe. And by extension, your code becomes unsafe, if the compiler can't reason about what happens when your code calls theirs.

Plus, unless you have just the right linter set up, you can still accidentally mess up and do something unsafe if the compiler lets you.

Re:Java is not a safe language by lenkite on Monday June 13, 2022 @08:25AM (#31724496)
When we call a language “safe”, that formally means that there’s a proof that no well-formed program in the language can do something undefined.

Java is completely safe by that definition. Now, you can have the seat-belt even tighter than that for various types of <domain> safe, but we are moving the goal-posts of the definition.

Re:Java is not a safe language by Akronymus on Monday June 13, 2022 @10:25AM (#31726079)
>...or will at least make it hard to do so.

Also known as the pits of success.