News for hackers. Stuff that matters.
Re:Rust is Software's Salvation by nitroll on Thursday December 29, 2016 @06:22PM (#13281111)
It is, especially if these checks are done at compile time, not at runtime.
Re:Rust is Software's Salvation by berkut on Thursday December 29, 2016 @06:45PM (#13281262)
How can checks be done if the size is dynamic based on run-time data?
Re:Rust is Software's Salvation by prodigal_erik on Friday December 30, 2016 @05:36PM (#13288091)
"Integer between 0 and n-1 inclusive" is the type of valid indices for an n element array. The trouble is most languages don't have type systems that allow expressing that.
Re:Rust is Software's Salvation by pjmlp on Monday January 02, 2017 @05:35AM (#13300362)
The Pascal family are such languages.
Re:Rust is Software's Salvation by 102910201 on Thursday December 29, 2016 @06:43PM (#13281242)
Expect a blog post within four hours "Rust has solved the halting problem!"...
Re:Rust is Software's Salvation by prodigal_erik on Thursday December 29, 2016 @09:18PM (#13282028)
Even when you can't prove what arbitrary code does, proving what well-written code does is useful, and not writing unprovable code would be a small price to pay.