Hacker News new | ask | show | jobs
by Rochus 2 days ago
As it seems, the author is envisioning (a subset of) Ada and SPARK without mentioning them.
2 comments

Yeah, I don't know why people just... Don't use Ada and SPARK if they want Ada and SPARK features. Ada needs a comeback.
By talking Rust-style safety? Or other language features?
Ada already has language-level contracts and tasking; SPARK has ownership and borrowing rules for Ada pointers. The "allowing multiple readers but ruling out mutation while those read-only aliases are live" in the demo is what made me think of SPARK.
I think I need to understand Ada more. I know it exists, and I know it is a Wirth-ian language, but I approached safety from 'what have we learned from Rust and how can we apply it to Pascal' without strongly examining what preceded Rust. People know Rust, but don't know other languages.

Ada seems very worth examination for updating Pascal.

Ada is a big and impressive language, and in many respects it goes much further than Rust in terms of safety. It's actually not a "Wirth-ian language", but has some similarities with Pascal syntax. In fact, Ada can be seen as the "antithesis" of Wirth's minimalism.