News for hackers. Stuff that matters.

elliotswart

Show HN: Those Who Die as Cattle

https://eswart.itch.io/those-who-die-as-cattle

What if a game gave you the backstory of everyone you killed or got killed? I feel like I've heard this question asked before, but I've never seen it done. For Ludum Dare 56 (a game jam), I spent 48 hours building a prototype called Those Who Die As Cattle, a WW1 trench warfare simulation game.I used ChatGPT 4o-mini to generate details for the 12,000 soldiers involved in the game. Notably, I...

( Read More... | 1 comment | on HN )

Show HN: Pragmatic Formal Modeling (Tutorial series with runnable examples)

Formal modeling is a mathematical approach for designing and checking correctness of software systems. It focuses on standard software engineering and distributed systems problems of the sort programmers face every day. It takes a pragmatic engineering approach: each problem starts with UML diagrams, design decisions and sometimes even a requirements document. We work through how to get from a...

( Read More... | no comments | 4 points | on HN )
I did an analysis of the bug from the blog post and the TAO paper, and from what I can tell the fundamental bug is therefore the fact that the error handler that handles cache invalidation errors drops only lesser versions, while the cache invalidation contract requires replacing equal or lesser versions.

There is a detailed write up here: https://elliotswart.github.io/pragmaticformalmodeling/cachin...

Re:Introduction to Pragmatic Formal Modeling on Tuesday June 21, 2022 @05:55PM (#31829537)
Formal modeling is a mathematical approach for designing and checking correctness of software systems. It focuses on standard software engineering and distributed systems problems of the sort programmers face every day. It takes a pragmatic engineering approach: each problem starts with UML diagrams, design decisions and sometimes even a requirements document. We work through how to get from a whiteboard design to an initial mathematical model. Then we refine it based on logical errors found by the model checker, which return with a level of detail unheard of in a standard debugger. Formal modeling is a skill every engineer should have in their toolbox.

All the examples are downloadable, and their is a quick setup section at the start. Additionally, there is an explorable model error debugger build right into the website.