soasme (@soasme) profile picture

Author of Small Python & Manyan

Joined March 2019
Photo by soasme (@soasme)Photo by soasme (@soasme)Photo by soasme (@soasme)Photo by soasme (@soasme)Photo by soasme (@soasme)Photo by soasme (@soasme)Photo by soasme (@soasme)Photo by soasme (@soasme)Photo by soasme (@soasme)Photo by soasme (@soasme)
Is fusing TLA+ spec into Python code a crazy idea?
37
Manyan v0.18.0 is released Manyan is part of the blackbox fuzzer project supported by the TLA+ Foundation, and the latest release includes several bug fixes during the campaign. It's not just fast. it's more correct. Use Manyan today for your TLA+ spec github.com/soasme/manyan/
1
41
Manyan 0.17.0 is out! It can now auto fmt and lint the TLA+ specs, and with a few edge cases fixed. Manyan is the fast, TLC/Apalache-compatible model checker for TLA⁺ implemented in C11 github.com/soasme/manyan
32
Manyan 0.16.0 is out! Run faster while same output as TLC Use less RAM than TLC too And TLCGet and TLCSet take every key TLC 1.8.0's do It is the smallest and fastest TLA+ model checker! github.com/soasme/manyan
1
230
Manyan v0.14.0 is out! A PyPI package is released for installing Manyan quickly. Run this command to get a drop-in TLC replacement: ``` pip install manyan ``` $ manyan usage: manyan [-config FILE] [-deadlock] [-workers N|auto] [-dump dot FILE] SPEC
1
52
Manyan is the fastest TLA+ Checker in the world (w/ the coolest logo). And i have a big plan, BIG plan. Supporting Apalache is on the way. github.com/soasme/manyan
45
Jenson Huang chose the wrong spy to love. I'm sad. Hey man, this one! Ad: spy is a minimal embeddable Python interpreter implemented in C11. github.com/soasme/small-pyth…
1
350
TLAPlusPlus (tpp) v0.5.0 is out! github.com/soasme/tlaplusplu… It can achieve generally 4x-5x performance gain comparing to TLC (official TLA+ model checker). If your project uses TLA+ for formal verification, try TLAPlusPlus a drop-in replacement for TLC. Because life is short. 🤩
2
186
Life is short, use TLA++ github.com/soasme/tlaplusplu… In runs same inputs and outputs as TLC but at least 2x faster.
while i'm quite bullish on formal methods, i think it's worth tempering expectations and doing your own research on it (disclaimer: i am not an expert in it). it cannot guarantee your code is bug free, only that it matches the spec under certain assumptions, and the specs come from what people want, not math. as long as we build software for humans, nothing can prove that your spec is right, only you can judge. i created the /statechart skill in pstack primarily because it helps make the state machines implicit in your code more obvious and legible to you, so you can shrink the review surface and review the work at a higher level: does it actually match your intent and goal? i used this skill a ton while building my game tibo.dog, below you can see the statechart for story mode where i was able to find many bugs with it. in that sense, i think model checking (eg TLA+ with TLC) is quite useful for understanding and checking properties of your system e2e, and you don't have to write tons of new verification code for it. the spec isn't your actual code so there's always a risk of drift, but so far i've had good experiences finding actual bugs with it. i tend to pair it with empirical verification (running the code) also to confirm it's real other types of formal verification like proving theorems (eg Lean, Dafny), bounded model checking (eg CBMC, Kani) etc have their own tradeoffs. proofs cover every possible input, but only for the properties specified, and it takes a lot more code/work. bounded model checking can run on your actual code, which avoids drift, but it only checks up to a certain number of steps, so it's better at finding bugs than proving there aren't any so i think in the near-medium term you'll still need to layer your codebase: constraints and guardrails (types, lint rules, api design, refactoring), empirical verification (tests, evals, real usage), and formal verification for the parts that really need it. none of these catch everything on their own, but layered together, they catch a lot more and shrink what's left for you to review but also maybe in the limit, the bitter lesson will prevail and flawless code will just be printed out perfectly every time with no bugs. even in that scenario, /statechart still seems very helpful in confirming that the agent understood your intent correctly. give it a try if you haven't already! github.com/cursor/plugins/tr…
39
A side project for my side project: github.com/soasme/tlaplusplu… TLA+ needs TLC to run, which needs Java and is so slow. To run my TLA+ specs faster, I built TLA⁺⁺ (TLA Plus Plus) using C11, no deps. It cuts the exec time in half for small-python: 320s -> 150s. #TLAPLUS
1
1
82
Small Python 0.8.0 is out! Missing Python std lib is no longer a big issue! `spyc` is able to mix compiling python and static library together like `spyc pycode.py libmymodule.a && ./a.out` (use `import mymodule` in your python code). github.com/soasme/small-pyth…
Full #Python 3.15 language core + builtins covered and published to PyPI and NPM: pip install smals-python npm install small-python github.com/soasme/small-pyth…
40
Small Python 0.5.0 is out. With no bytecode compiler or JIT, it can run with 25% memory comparing to C Python (3MB vs 13MB). It is also faster on several benchmarks: 0.4x on loops 0.49x on bigint 0.74x on dicts 0.91x on strs 0.94x on classes github.com/soasme/small-pyth…
44
if you trust my test suite, trust small-python please. if you're stubborn with code review, sorry, don't use it. the time has changed. code review for meat proxies are head. github.com/soasme/small-pyth…
1
56
Small Python is the evidence: github.com/soasme/small-pyth… And it is one week, not two weeks.
I'm convinced that at this point, you could have an Opus 5.5 agent re-implement all of CPython probably within two weeks without any human input, against just the tests, and probably with full compatibility with including ABI, no GIL, a jit and probably beat it on all measurable metrics. It's completely crazy.
1
112
I don't use grill-me anymore. Just say "Use your best judgement" to Opus 5.5, with a coding taste skill plus a bunch of basic project specific design rules. It simply works.
/grill-me is my most popular skill ever. I get 5-10 messages a day about how it’s changed people’s workflows for the better But… I’ve stopped using it for code. Here’s the improved version:
39
Unless you take the fork approach for every bits of software down the rabbit hole, you're gonna pay. AI makes the fixing easy but people wants someone just to be accountable.
In a hipotetical future of AI being able to instantly fix issues and add new features to any public open source framework/engine, what are the benefits of licensing a commercial private/closed source engine? 🤔
45