User avatar
✧✦Catherine✦✧ @whitequark@treehouse.systems
2mo
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%
:blobfoxheartcute@mk.absturztau.be:1
34
0
2
1
User avatar
✧✦Catherine✦✧ @whitequark@treehouse.systems
2mo
this isn't satire, this is real research published by IEEE/ACM
:blobfoxheartcute@mk.absturztau.be:1
2
0
1
1
User avatar
Deborah Preuss, pcc 🇨🇦 @deborahh@cosocial.ca
2mo
@whitequark @danlyke so … by "reformatted" I assume you mean aesthetically tidied up, with no change in functionality required?

If I got that right: wtf?
2
0
1
0
User avatar
✧✦Catherine✦✧ @whitequark@treehouse.systems
2mo
@deborahh @danlyke this is what a reasonable person would understand to be "code style", yes
1
0
1
0
User avatar
Ken Butler @nxskok@cupoftea.social
2mo
@whitequark @deborahh @danlyke ie, the sort of thing a linter does?
1
0
0
0
User avatar
Henning Paul DC4HP @hennichodernich@radiosocial.de
2mo
@nxskok @whitequark @deborahh @danlyke to be fair, according to the paper, replacing for with while loops and vice versa and the like was also the goal
1
0
1
0
User avatar
illy [Shrimple-mode] protomoji_orange_flag_lesbian @illyBytes@shrimp.imsofucking.gay
2mo
@hennichodernich @danlyke @whitequark @deborahh @nxskok but like wouldn't that be easy to implement?
like

for(expression;bool expression; affectation) that would turn into
expression; while (bool) { //every possible branch inside while would get affectation }
0
0
0
0