|
|
Log in / Subscribe / Register

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Posted Mar 21, 2022 19:11 UTC (Mon) by acarno (subscriber, #123476)
In reply to: Beingessner: Rust's Unsafe Pointer Types Need An Overhaul by wtarreau
Parent article: Beingessner: Rust's Unsafe Pointer Types Need An Overhaul


to post comments

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Posted Mar 22, 2022 12:42 UTC (Tue) by wtarreau (subscriber, #51152) [Link] (5 responses)

Interesting, thanks for the link, I wasn't aware that Ada did that. It would be interesting to compare evolutions of all such languages and the classes of bugs or the complexities in developing certain classes of programs.

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Posted Mar 23, 2022 22:52 UTC (Wed) by acarno (subscriber, #123476) [Link] (4 responses)

As someone who writes Ada on a daily basis, it's entertaining to read folks who fawn over Rust, since Ada offers a lot of the same benefits. That's not to say I think Ada is better than Rust, just that it was very much ahead of its time as a language.

Now if only the initial round of tooling had been better back in the 80s, it may not have suffered from its reputation as resource-intensive and unwieldy. ¯\_ (ツ)_/¯

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Posted Mar 23, 2022 23:01 UTC (Wed) by Cyberax (✭ supporter ✭, #52523) [Link] (3 responses)

The last time I looked at Ada, it seemed like pointers ("access types") were an afterthought there. Is there a good documentation about something like borrow checker but for Ada?

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Posted Mar 25, 2022 16:58 UTC (Fri) by mathstuf (subscriber, #69389) [Link] (2 responses)

There's some Ada proof assistant-like project named SPARK that I read an article about the beginnings of Rust' borrow checker influencing its design or progress. I may be mis-remembering details as to what SPARK is or how influential Rust has been on it.

https://blog.adacore.com/using-pointers-in-spark

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Posted Mar 25, 2022 19:12 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link] (1 responses)

I admittedly hasn't looked into SPARK within the last 5 years, but way back then it didn't support non-static allocations. It was actually a "feature" there - bounded resource usage (because it can't be dynamic).

Beingessner: Rust's Unsafe Pointer Types Need An Overhaul

Posted Mar 25, 2022 19:55 UTC (Fri) by ms_43 (subscriber, #99293) [Link]

See this FOSDEM 2021 talk by Claire Dross:

Proving heap-manipulating programs with SPARK
The SPARK open-source proof tool for Ada now supports verifying pointer-based algorithms thanks to an ownership policy inspired by Rust

https://archive.fosdem.org/2021/schedule/event/safety_ope...


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds