I've been playing with 'sliders' in difftastic, the classic diff problem where you highlight an adjacent value that is correct but weird.
I've taught difftastic to penalise sequences across newlines. This largely works, but it hurts perf (another degree of freedom to solve).
miniblog.
Related Posts
Difftastic 0.16 is out! In this release:
* Substantially improved performance (a little over 2x)
* Improvements for Bash, OCaml and JSX
* Added Scala support
* Better handling of diff sliders
Diff sliders are a really interesting problem for AST diffs. Here's a surprising example.
At first, it looks like the first `|` should be highlighted. However the first `|` is the outer `match` case, and the inner | is syntactically an or-pattern!



