Rendered at 22:22:31 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
hackingonempty 1 days ago [-]
TLA+ = formal language for modeling software above the code level and hardware above the circuit level by Leslie Lamport (of vector clock and Paxos fame, among other things.)
So there's \in, \subseteq and probably many others that are written just like in Latex. Notably \cap and \cup were also copied from Latex, which describe the shape of the symbol instead of its meaning. But not \to, \mapsto, \Vee and \Wedge, they're written as ASCII art ->, |->, \/ and /\.
Then there's SUBSET, which means power set ... yeah. -_-
groovy2shoes 1 days ago [-]
Leslie Lamport is also the original creator of LaTeX.
bch 21 hours ago [-]
Where LaTeX[0] is the collection of Lamports macros over Knuths[1] TeX[2].
If the LaTeX-like syntax worries you, several projects aimed at providing PL-like syntaxes for TLA+. They vary by their degree of how much of the logic they throw away. I am not going to advertise these projects here, but you would find them on GitHub search by typing the tags like "#tlaplus #language", "#tlaplus #library", and "#tlaplus #pluscal".
mike_hock 12 hours ago [-]
No, I just find the inconsistent syntax annoying, but it turns out most things have alternative Latex-style spellings. I just went by their examples.
letFunny 1 days ago [-]
Author of the article here. I am surprised to see the post was submitted and made it to the front page! Happy to answer any questions
sennalen 22 hours ago [-]
You’re in a desert walking along in the sand when all of the sudden you look down, and you see a tortoise, it’s crawling toward you. You reach down, you flip the tortoise over on its back. The tortoise lays on its back, its belly baking in the hot sun, beating its legs trying to turn itself over, but it can’t, not without your help. But you’re not helping. Why is that?
Groxx 20 hours ago [-]
Because that would reverse flipping it over the first time, and our universe's physics are not reversible. Thermodynamics demands the turtle stay flipped.
CoastalCoder 10 hours ago [-]
I feel like I'm ignorant of some classical fable here.
Thanks for the nice article. The SQLite docs that explain this bug are emphatic about how utterly rare, even irreproducible it is. How, then, was it found, one wonders?
bradfitz 20 hours ago [-]
We found it at Tailscale and bought an enterprise support contract from SQLite to debug it for us. Worth every penny.
We should probably blog about it.
doctorpangloss 19 hours ago [-]
What mission critical purpose does sqlite provide at Tailscale exactly? Why use it at all?
inigyou 13 hours ago [-]
sqlite is useful everywhere CSV files are useful but you'd like them to have more data integrity and faster updates. sqlite can replace some uses of MySQL, but more commonly it replaces fopen. https://sqlite.org/whentouse.html
akoboldfrying 15 hours ago [-]
It's in Chrome, Firefox, Safari, Windows 10, macOS because it efficiently solves a huge number of use cases while giving plenty of headroom for flexible querying.
If you have data more complicated than a single CSV or tab-separated text file that you will only ever process in sequential order, and you don't need inter-process interaction, you should be asking why not use SQLite.
My guess is that they noticed something was not quite right when inspecting the code and then tested their hypothesis manually to see if it was actually a real bug.
Something similar happened to me when I was working on some code that should clear the state and, by inspection, I noticed some field was not properly cleared under specific circumstances. Then I tested the hypothesis and indeed found a bug. Sometimes intuition and guessing is what it takes.
stevekemp 1 days ago [-]
"to prevent multiple from" seems to be missing a word.
19 hours ago [-]
keynha 19 hours ago [-]
[dead]
romaaeterna 23 hours ago [-]
I don't like the title. The article actually describes the process of proving that dqlite does not have the same bug as SQLite, using a TLA+ specification. The SQLite bug fix was entirely separate from what is described here.
vatsachak 1 days ago [-]
Gotta love TLA+
I wonder if anyone has worked on porting it to Lean and making tactics for it
uptodatenews 1 days ago [-]
You run into Rices theorem if you try to apply it too heavily.
For local only high level modelling. Its not a full tie into the actual model checker, but its meant to serve as a first step into system modelling for state machine modelling for beginners
another_twist 1 days ago [-]
i am not sure if a lean port is important. TLA+ could do with a bit more TLC (pun intended) with regards its devEx.
Also congratulations to the author, I'll try and reproduce this over the weekend.
mempko 19 hours ago [-]
This is so cool and I wonder how effective it would be using this technique when using LLMs to generate code. Have the llm generate code and a TLA+ model. Use the TLA+ model as the test bed of the code (instead of writing tests in the original language).
https://lamport.azurewebsites.net/tla/tla.html
Then there's SUBSET, which means power set ... yeah. -_-
[0] https://en.wikipedia.org/wiki/LaTeX
[1] https://en.wikipedia.org/wiki/Donald_Knuth
[2] https://en.wikipedia.org/wiki/TeX
Is this an allusion?
[1] https://bladerunner.fandom.com/wiki/Voight-Kampff_test
We should probably blog about it.
If you have data more complicated than a single CSV or tab-separated text file that you will only ever process in sequential order, and you don't need inter-process interaction, you should be asking why not use SQLite.
Something similar happened to me when I was working on some code that should clear the state and, by inspection, I noticed some field was not properly cleared under specific circumstances. Then I tested the hypothesis and indeed found a bug. Sometimes intuition and guessing is what it takes.
I wonder if anyone has worked on porting it to Lean and making tactics for it
I made https://github.com/RCSnyder/tlaplus-process-studio
https://tlaplus-process-studio.com/
For local only high level modelling. Its not a full tie into the actual model checker, but its meant to serve as a first step into system modelling for state machine modelling for beginners
Also congratulations to the author, I'll try and reproduce this over the weekend.