i'm at a loss of words after reading a paper about reformatting code using an ML model that has a measured statistical quantity A_c which says how often the reformatted code behaves the same as the original
the "ideal" (their choice of words) case is 64.2%
edit: this got popular without me really intending to, so here's why i'm reading research: i want a semantic style transfer tool that can automatically format a patch "the same as the rest of the file / rest of codebase is formatted" without the rigidity involved in black or rustfmt that i find so hostile to my workflow that i refuse to use them. obviously, i want a tool that generates semantically equivalent code 100.0% of time (ignoring source locations or reading from __file__)
reshared this
cassie
in reply to ✧✦Catherine✦✧ • • •✧✦Catherine✦✧
in reply to cassie • • •@porglezomp you'll love Fig. 6
Cassandra is only carbon now
in reply to ✧✦Catherine✦✧ • • •sabik
in reply to Cassandra is only carbon now • • •I think reversing the `j` for loop is actually wanted by them? It's labelled "ground truth", and it is a potential valid optimisation
✧✦Catherine✦✧
in reply to ✧✦Catherine✦✧ • • •@porglezomp there's explanatory text that says the issue with the identifier "found" is that it's rarely used
cassie
in reply to ✧✦Catherine✦✧ • • •✧✦Catherine✦✧
in reply to ✧✦Catherine✦✧ • • •🌸 Ⓐnarkitty lumi-nhac
in reply to ✧✦Catherine✦✧ • • •Brandon
in reply to ✧✦Catherine✦✧ • • •“surely it just means differing output structure to accommodate the formatting, right?”
No, it just produces code that won’t compile. In a refactoring tool.
(Haha, didn’t see the post a minute before mine with the exact same snip)
Lona Theartlav
in reply to ✧✦Catherine✦✧ • • •✧✦Catherine✦✧
in reply to Lona Theartlav • • •Nicole Parsons
in reply to ✧✦Catherine✦✧ • • •Why is AI as a consumer product being rushed out the door so fast? It's obviously not ready for prime time. It's unreliable, inaccurate, and fragile.
It's like a car being sent out to car dealerships with only 3 wheels with hasty promises of a future 4th wheel.
Possibly the goal isn't a car with 4 wheels but a plan for something else, similar to a Waymo power outage gridlock
forbes.com/sites/bradtempleton…
Reliance on AI is a national security risk vulnerable to high fuel prices
1/
Nicole Parsons reshared this.
Nicole Parsons
in reply to Nicole Parsons • • •2/
reuters.com/business/autos-tra…
Or a tech oligarch shuts it down on a whim? Or after a bribe?
sfstandard.com/2026/03/03/waym…
A reliance on AI is a national security risk.
theguardian.com/technology/202…
reuters.com/investigations/mus…
Elon Musk ordered Starlink to be turned off during Ukraine offensive, book says
Julian Borger (the Guardian)Nicole Parsons reshared this.
dch
in reply to ✧✦Catherine✦✧ • • •Jonathan Lamothe
in reply to ✧✦Catherine✦✧ • •Alex Celeste, Princess Consort of Burnout likes this.
aburka 🫣
in reply to ✧✦Catherine✦✧ • • •