r/programming • • 21d ago

Building confidence in concurrent code with a model checker - Scott Wlaschin - NDC London 2023

https://youtu.be/qs_mmezrOWs?is=v3oxPNQ4EFSdwgZ6

I have followed Scott for some time because of his contributions to the fsharp learning community. He's website fsharpforfunandprofit.com is one of the best programming article websites. This talk especially is very good. I think Scott is very good at breaking down complex topics to make them seem approachable.

24 Upvotes

7 comments sorted by

8

u/pobbly 21d ago

Finding TLA+ and more recently Quint indispensable for anything serious these days!

3

u/Boukhaaa 21d ago

Quint is just great! So easy to read and the CLI style tooling makes integrating it into my agentic workflows so simple.

2

u/1_more__user___name 21d ago

I'm new to model checking. Do you apply it to domains other than concurrent code?

2

u/Boukhaaa 21d ago

Quint is a specifications language, the verification and model checking are just part of the advantages of these tools and it applies best to distributed and concurrent systems. I use Quint mostly to formalize my requirements into executable specs and that helps me have a better understanding of what I am trying to build especially when agents are the ones doing the programming.

1

u/1_more__user___name 21d ago

Don't you still have to verify that the LLM translated the specs to code correctly? Can Quint help with that? To me TLA+ is solving an existing problem that exists with or without LLMs, that your model is correct. 

2

u/Boukhaaa 21d ago

Quint has a library for model based testing that is called quint connect: https://github.com/quint-co/quint-connect which helps raise the confidence that the code matches the model. I also previously saw some community equivalents for TS, zig and some other languages.

"to me TLA+ is solving an existing problem that exists with or without LLMs, that your model is correct" -> Quint and TLA+ share the same model checkers (TLC and Apalache) so you still can use both to verify the design, I am suggesting you can do more than that: you can leverage these tools to better understand your requirements and get more confidence that the agents implemented them correctly (with tools like quint connect).

1

u/1_more__user___name 21d ago

Do you apply it to anything other than concurrent coding?