I've finally fixed an issue where difftastic wasn't showing optimal diffs if you wrapped an expression in another expression.
For example, lisp expression changes are super readable now :)
Wilfred Hughes
It's weird how ! denotes side effects when it's allowed in names (Scheme, Ruby) but there isn't a clear equivalent in other languages.
My only theory is that "side effects" is often vague. list-add!, table-drop! and ping! are very different effects.
Wilfred Hughes
An overlooked PL question: what is easy to try in a given language? In lisp it's easy to try adding extra syntax. In Rust it's easy to try parallelism on iterators (rayon).
Are there other examples? Perhaps Perl and regexes or Haskell and STM?
Wilfred Hughes
I've found an interesting case where difftastic and GitHub diff results are pretty different.
I've replaced some function calls with a DiffResult and the matching is a bit aggressive, but showing `diff_directories` changes is really nice.
(Commit shown:
https://github.com/Wilfred/difftastic/commit/4883edd90cc8011041a6cee0622805d6bc7847a0)
Wilfred Hughes
Writing an IRC server, exploring object systems, and enabling hot reloading for clients:
https://technomancy.us/197 (in Lua and Fennel)
Wilfred Hughes
Contrasting the C++ committee with Rust's RFC process, and avoiding antagonistic design evaluation:
Wilfred Hughes
There's something of a tradition of REPLs having personalities in lisp. I've seen Common Lisp tools (e.g. slime/sly) and Clojure (e.g. cider) say encouraging things, but Fennel is almost judgemental :)
Wilfred Hughes
Sometimes a good bug report is just nerd sniping.
Wilfred Hughes
I'm finally reaching a point with difftastic where I'm pretty happy with performance. 0.22 has some effective heuristics for making the tree diff faster, and 0.23 will have Myers' diff algorithm for text.
Wilfred Hughes
Really elegant way of understanding macros: generate railroad diagrams for them!
https://lukaslueg.github.io/macro_railroad_wasm_demo/Wilfred Hughes
I've released difftastic 0.22!
* Added PHP, and improved C++ and Rust
* Files are split on clearly unchanged regions before diffing, hugely improving performance
* A ton of improvements to nested diff heuristics
https://github.com/Wilfred/difftasticWilfred Hughes
Flamegraphs are an indispensable tool, but sometimes I overuse them. Here's an example for difftastic -- it spends most of the time computing the shortest path.
I was able to make the diff graph smaller, making difftastic much faster -- but the new flamegraph looked the same!
Wilfred Hughes
Difftastic uses the same parse tree for diffing and highlighting. This has a really nice side effect: you can spot parsing bugs from highlighting!
It's subtle, but difftastic shows parentheses/braces in bold. I noticed that < and > weren't bold, and fixed the parser :)
Wilfred Hughes
It makes sense to worry about writing code that is accidentally quadratic.
Turns out you don't need to worry about accidentally exponential code. It's painfully obvious.
Wilfred Hughes
Google now makes data available on common streaming times and ISP quality by location!
https://www.google.com/get/videoqualityreport/Wilfred Hughes