News for hackers. Stuff that matters.
Re:Programmers who want to change how we code before catastr... by hwayne on Wednesday September 27, 2017 @04:08PM (#15351801)
Sure! I've written a quick demo here[1] and a longer-form piece here[2]:

[1] https://www.hillelwayne.com/post/modeling-deployments/

[2] https://medium.com/espark-engineering-blog/formal-methods-in...

Re:Programmers who want to change how we code before catastr... by combatentropy on Thursday September 28, 2017 @02:07AM (#15355019)
Is TLA+ pseudocode? It doesn't actually do anything, right? Your example with updating servers, it will never actually update the servers, right? After you try it out in TLA+, you still have to write the real code in some other language, like Bash.

If so, then isn't there still a risk of bugs in your Bash program, from typos, leaving out something from the TLA+ plan, or otherwise miscopying it?

If so, TLA+ does less than I thought. But I can see how it might be useful to work out a complex algorithm and scan it for holes.

Re:Programmers who want to change how we code before catastr... by hwayne on Thursday September 28, 2017 @06:11PM (#15361192)
Yeah, TLA+ just verifies the spec, not the actual code. You still need to write tests and use code review and the like.
Re:Programmers who want to change how we code before catastr... by combatentropy on Thursday September 28, 2017 @10:29PM (#15362334)
Okay, that makes sense. Thanks!
Re:Programmers who want to change how we code before catastr... by ScottBurson on Wednesday September 27, 2017 @06:19PM (#15352846)
Re:Programmers who want to change how we code before catastr... by katelynsills on Wednesday September 27, 2017 @06:40PM (#15353005)
Thanks!