
Engineer https://teapaw.org/t.co/52Jr22tTnx https://teapaw.org/t.co/mgzLUaDkm6 https://teapaw.org/t.co/RP3VqklHRp چو شادی بکاهی بکاهد روان خِـرَد گردد اندر میـان ناتـوان
Germany
Joined March 2020
- Tweets1.6K
- Following671
- Followers153
- Likes76K
Pinned Tweet
"I have a dream," I told Fable.
Fable had created a tailored Firefox driver, in place of FF MCP, to optimize the production pipeline of a browser-heavy agentic system (it does market research for second-hand cars). That left me in awe: "How did you do it?"
I had been wasting this genie on mundane chores. Now I wanted to augment its mastery in dealing with internals of a live FF by giving it the right tools:
Just give Fable privileged access, and provide it with a kit of basic debugging primitives to discover, introspect (breakpoints) and patch (hooking) a live FF. It can compose the rest.
Sure, it can even build the primitives itself, but you want to spare the effort from every future session.
And do not try to add an API endpoint for every possible use-case, or you are mirroring the Firefox codebase, basically duplication, and it is fragile, because the codebase keeps evolving.
Live-patching really enhances the debugging: no bash command, no restart, no getting back to the bug.
As I developed the Kit, I tried it on some Bugzilla bugs. I tasked a kit-equipped Opus 5 agent with each bug. Each typically took 45 minutes to come up with a complete and tested solution. The agents used the kit primitives heavily, and I ran audits for each to see how the kit could be improved.
The results speak: 7 bugs in 10 days. It could even be more, I just had to learn from reviewer comments to adapt the prompts to Bugzilla conventions, like specifying the blast radius, not overstepping the specified bug, ... And FF reviewers are genuinely helpful.
5 fixes ship in FF 155/156. "This is awesome !" wrote a QA reviewer. One even found its way to the 155 release notes!
My favorite, what I'd been missing, was fixing a bug open since 2015: when you turn on "Highlight All" in Find and scroll your X timeline, the matches in newly loaded content don't get highlighted.
The kit is submitted to Mozilla (link in reply). Meanwhile, try it here:
github.com/Majdoddin/firefox…
Ruhollah Majdoddin retweeted
Replying to @elonmusk @yacinelearning
It's research if you've room to play around
teapaw.org/levelsio/status/212265…
So many times I have had this interaction with normies where they don't understand what the jackfriks I'm working on as I'm just making random things for fun and messing around with things
And to them whatever I'm doing looks like a complete and utter waste of time, it has no function, no direct rewards, it's not making money, it's not successful
But so many times those projects evolve or lead to things where there is a massive payout or success after
But most people don't have the ability to see that far ahead, and they're risk averse so even if you tell them "I don't know maybe this becomes something, or maybe not, it doesn't really matter" that's simply too uncertain enough for them to accept. Which is of course why they love employment so much, it's stable and certain.
The problem with normies is that they will quickly shut this creative play down in themselves and even worse in others. And that way whatever that thing is, it won't ever grow into anything because they killed it before it ever got a chance, proving their point
Almost all my projects started by just messing around with no real goal, just playing for fun
But it requires some kind of peacefulness because the moment you start putting a requirement of success on to something new, the thing instantly dies
Creativity is really magical, and it messes with you if you try control it or expect things from it
I instantly knew it's a gem!
Do the 2nd inhale and exhale as one move.
and do it the Dan Tian way 😌
16
With Claude: After 44 years, Rectangular Matrix Multiplication N × N^α × N in time N^2 Polylog(N) is now proved for thicker matrices:
α = 0.172 Coppersmith 1982
→ α = 1/4 over fields of characteristic 2
→ α = 0.204 over fields of characteristic 3
Coppersmith's had not been improved at this cost over all these years, see replies. @rrwilliams made an analysis of its runtime.
How: small base tensors whose error terms vanish when rows and columns are grouped by weight (T4, of border rank 4, in characteristic 2),
and a reading of the inner products from products of Vandermonde forms, which works because p-th powers of linear forms vanish in characteristic p.
My paper: github.com/Majdoddin/thin-ma…
2
10
1,592
There have been many improvements of α in N × N^α × N, but they all cost N^(2+o(1)).
The latest are two preprints from October, both claiming α ≥ 1/2:
Przemysław Uznański, and
Alimzhan Amanov, Maxim van den Berg and @jzuiddam
1
117
I used it to get the current fastest APSP algorithm, n^2.98989, Monte Carlo 🥇
bigospeedrun.com/apsp/random…
68
Install my addon to fix Firefox's "Highlight All":
It highlights in newly loaded content, like when you scroll your timeline, and also when you open a post:
github.com/Majdoddin/highlig…
Works for Nightly on desktop and Android (Android's FF has no Highlight All of its own)
The addon is based on my patch submitted in August for this bug open since 2015 (link in replies). It is still under review, so use this addon until it lands.
Say it in replies if you want @firefox to add this feature.
1
54
The refutation of ETH by @AnthropicAI has a nuance: its 3-SAT algorithm only pays off for (sparse) input of size 2^33858 or bigger 🤯
➡️My paper drops that to 2^417
It also gives a theory of what it takes to go further: on general 3-SAT, this kind of algorithm cannot gain below ~2^6000.
arxiv.org/abs/2610.41622
Ruhollah Majdoddin retweeted
My paper lowers the crossover point* of @AnthropicAI's 3-SAT algorithm from 2^33858 to 2^417 clauses at density 1.
*where it beats the best known algorithms
It also proves that no algorithm of this kind can gain for general 3-SAT below ~2^6000 variables, unless it leaves the grid structure of Anthropic's algorithm.
For OpenAI's algorithm, the crossover point of its Appendix D route is ~2^(4.4·10^10) (estimate).
Link in replies.
Surprising indeed. By the paper's own parameters the algorithm is brute force up to 2^131071 variables and clauses, beyond any formula a computer can store. I computed the thresholds here. SAT solvers gain nothing. doi.org/10.5281/zenodo.23688…
My paper lowers the crossover point* of @AnthropicAI's 3-SAT algorithm from 2^33858 to 2^417 clauses at density 1.
*where it beats the best known algorithms
It also proves that no algorithm of this kind can gain for general 3-SAT below ~2^6000 variables, unless it leaves the grid structure of Anthropic's algorithm.
For OpenAI's algorithm, the crossover point of its Appendix D route is ~2^(4.4·10^10) (estimate).
Link in replies.
Surprising indeed. By the paper's own parameters the algorithm is brute force up to 2^131071 variables and clauses, beyond any formula a computer can store. I computed the thresholds here. SAT solvers gain nothing. doi.org/10.5281/zenodo.23688…
Paper: github.com/Majdoddin/anthrop… (just submitted to arXiv)
56
My paper (link in replies) gives the current fastest known algorithm by refining theirs:
3SUM: n^1.9945 (theirs n^1.9992), 7x saving below n^2
Exact Triangle: 3x saving below n^3
APSP: 9.5x saving below n^3
These are mostly Lean verified.
I accidentally ran into Alman and Vassilevska Williams' work when I was busy revisiting my PhD paper.
And we all owe it to that maverick internal model of Anthropic! We need more of that tribe.
Meanwhile I have pushed the exponents even lower. They drop out of a unifying theory accompanied by many barrier theorems.
I was about to write up v2 but I hit my usage limit.
@minilek @__alpoge__ tell @AnthropicAI to give me some tokens, please, please 🥲
I rarely post here these days but I wanted to share my reflections: people.csail.mit.edu/virgi/t…
2
118
my paper:
arxiv.org/abs/2610.17420
1
23
Ruhollah Majdoddin retweeted
I rarely post here these days but I wanted to share my reflections: people.csail.mit.edu/virgi/t…
Ruhollah Majdoddin retweeted
Replying to @pinkfloydie
I hope you agree that publishing the original write-up of the internal model is still beneficial to the community:
- the line of thought of the internal model is interesting,
- there may be some hidden insight there, like in its algebraic formulation.
@AnthropicAI, would you publish it?
I am formally verifying @Firefox IPDL protocols with Verus, not just verifying the model, but also the code.
Formal Verification is the only real solution against swarms of AI hackers. Its big other benefit is that you can start from a base trusted code and seed (security/business rules) and let the verification loop fill the rest in a semi-mechanical way, guaranteed to comply with the seed.
Findings so far:
10 gaps: 6 new, 4 have already revisions on Bugzilla (1 is security)
of the 6 new: 1 security bug, 4 parent crashes from a content message (1 still a candidate), 1 latent access-control flaw
I used Opus 5.5 to formally verify the Claude Agent SDK using Lean. A couple short prompts = 16 PRs fixing various bugs and race conditions. Video attached.
TLA+ also works well. I sometimes combine Lean and TLA+ to look for issues around data flow, concurrency, and state mgmt.
I don't know either language well, but Claude is excellent at both. This approach is super useful for formally modeling your code and finding bugs that a human probably wouldn't have spotted.
Is formal verification the future of coding (or at least, bug finding)?
1
60








