News for hackers. Stuff that matters.
Re:Counterexamples in Type Systems: programs that crash, seg... by mzs on Tuesday June 06, 2023 @12:02PM (#36214832)
oh my, hadn't known about this yet - 8 years and still unsolved: https://github.com/rust-lang/rust/issues/25860
Re:Counterexamples in Type Systems: programs that crash, seg... by weinzierl on Tuesday June 06, 2023 @12:29PM (#36215273)
Me too, is there a list of soundness holes in Rust anywhere?

Also, if anyone has read the book, are there any interesting Rust counterexamples?

Re:Counterexamples in Type Systems: programs that crash, seg... by nequo on Tuesday June 06, 2023 @12:44PM (#36215555)
Their issue tracker has a label for soundness holes:

https://github.com/rust-lang/rust/labels/I-unsound

Re:Counterexamples in Type Systems: programs that crash, seg... by Taywee on Tuesday June 06, 2023 @01:00PM (#36215825)
Not a counterexample of the type system of Rust itself, but this one with LLVM following C and C++ definitions of "side-effects" is interesting: https://counterexamples.org/eventually-nothing.html
Re:Counterexamples in Type Systems: programs that crash, seg... by ReleaseCandidat on Tuesday June 06, 2023 @01:15PM (#36216035)
Don't know what's interesting for you, but this is definitly interesting: https://counterexamples.org/eventually-nothing.html I've also found these https://counterexamples.org/nearly-universal.html https://counterexamples.org/selfishness.html
Re:Counterexamples in Type Systems: programs that crash, seg... by zyedidia on Tuesday June 06, 2023 @10:39PM (#36222198)
I came across this issue in Rust recently: https://github.com/rust-lang/rust/issues/57893. I thought it was interesting since it lets you easily write transmute in safe Rust: https://zyedidia.github.io/blog/posts/5-safe-transmute/.