1,035 karma · joined Feb 12, 2012 (14y ago) · 230 submissions
2.
Software Archeology in 2026(xav.io ↗)
2 points · by xavxav · 9mo ago · discuss
comment 2y ago · link · parent
Without being too self-indulgent, I'm not sure there is that big of a gap between the two in provability, there are now a huge array of verifiers for Rust code which are being used to verify real code: SAT/SMT solvers, kernels, memory allocators etc...
comment 2y ago · link · parent
Games such as cities, inherently embed a view of how the "right" city would be organized, providing tools and incentives to nudge you in that direction. Consider how all social problems can be solved by simply plopping down the relevant class of building nearby. Or simply the absence of parking lots!
There's this old article on the subject: https://www.polygon.com/videos/2021/4/1/22352583/simcity-hid...
comment 2y ago · link · parent
comment 2y ago · link · parent
What I've seen in practice is that while Prolog may be good at describing a solution, its performance is often too lackluster and brittle for actual deployment: it probably fits more as a prototyping language before you do a classic implementation of the solution in a more traditional language.
comment 2y ago · link · parent
comment 2y ago · link · parent
Proofs are hard and often not for interesting reasons; its stuff like proving that you won't overflow a 2^64 counter which you only increment (aka something which won't happen for another couple billion years).
Current tools are only useful for specific kinds of problems in specific domains; things where a life really depends on correctness. Outside of those cases, lightweight techniques provide much more bang for your buck imo.
comment 2y ago · link · parent
I agree when it comes to peephole optimizations, but there's still a lot of juice left in exploiting language guarantees (immutability, non-aliasing, data-parallelism), however most compiler developer energy is spent propping up C/C++ and consequently optimizations are developed with those languages in mind.
comment 2y ago · link · parent
Sometimes you can prove that no proof exists about a specific sentence (that's what his incompleteness proof does), and I think you could extend this technique to construct sentences where no proof exists of whether it has a proof, etc...
20.
Visions of the future: formal verification in Rust(xav.io ↗)
3 points · by xavxav · 2y ago · discuss
comment 2y ago · link · parent
I don't think that's the case (it's not harder either). The type system of Rust makes handling mutability fairly trivial in verification, in fact it could be translated to immutable code in a continuation monad like the Tardis monad from Haskell I think.
comment 2y ago · link · parent
Not yet, I am planning on writing some blog posts about it but there are still enough fuzzy points I don't want to share yet.
> ... since the proliferate transitively along the control flow graphs. ... suffer from the same cancerous growth.
This is one of the biggest and most difficult issues of verification, I fully agree. The 'promise' of verified code is that you don't need to understand the code, you can just look at the smaller, higher-level spec, but right now verified code has a specification & proof overhead > 1, it needs to drop to < 0.1 for it to become economical.
comment 2y ago · link · parent
Agreed, though I think Lean is making big progress in the UX front of ITP verification through its extensive meta-programming facilities.
My issue with these tools applied to verifying external languages like Rust, is that the proof is not written in the target language, forcing your developers to learn two languages.
I have recently been thinking about what a "verification aware Rust" would look like, colored by my experience writing Creusot, the work on Verus and Aeneas and my time in the lab developing Why3. I think building such a language from the ground up could provide a step change in ease of verification even from Rust, particularly with regard to those "hard parts" of the proof.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
We have socialized health care, and even private care is like 1% the cost of american healthcare. I got elective surgery without insurance which included full anethesia in a private clinic and they were very sorry because the total would be 600 euros.
> retirement
Public retirement is ~50% of your average lifetime salary though the age was recently raised from 62 to 64 (in the face of massive protests).
> losing a job
Firing is harder to do in the first case, they have to have cause, or the company has to be facing bankruptcy, there's a long notice period. Unemployment is also a decent percentage of your salary and can go on for months.
Frankly on 60k a year, you live well even in a city like Paris, you're not living a life of luxury but that's comfortable upper middle class levels (in Paris).
comment 2y ago · link · parent