Have you ever wondered what happens if you hook up a lexer to a diff algorithm? I was feeling smart until I built it and saw the result.
The longest common subsequence here is ( ) ( ) ; which is not terribly helpful. I'm going to have to look at proper tree diffing techniques.
miniblog.
Related Posts
Here's a fun example where a minimal syntactic diff is confusing.
Difftastic has found `args` and `fty.ft_params` occurrences on the right, but it's not terribly useful! It's not even the same `args` as the right hand side is introducing a new binding.
I'm writing ASCII diagrams for docs. It's not terribly pretty, but it's so easy to contribute to.
I've seen so many beautiful architecture diagrams go stale because no-one wants to find the file and the GUI tool to keep it updated.
The next release of difftastic should have Python support!
The screenshot doesn't look terribly impressive, but it's showing that difftastic now understands that whitespace is meaningful in Python. Tree-sitter has a pre-existing Python parser we can use :)



