Difftastic: Syntax-aware structured diff tool

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • difftastic

    a structural diff that understands syntax 🟥🟩

  • Wow, thank you for the pointer! I've added it to https://github.com/Wilfred/difftastic/wiki/Structural-Diffs as I'm trying to understand the other solutions in this space.

    Difftastic does not create a patch or worry about merging. That's a hard problem that I'm not trying to solve. Instead, it builds two ASTs, then marks each node as unchanged or novel.

    To compute the diff, I use a graph search. Each vertex represents a position in both the left and right ASTs.

    Suppose you're comparing A with X A.

    Start node:

      Left: A   Right: X A

  • diffr

    Yet another diff highlighting tool

  • I wrote diffr [0] for that purpose; it serves me well, especially if your team makes code with long lines.

    In my opinion, a simple approach that does NOT make any parsing is more efficient (what about bugs in your parser? code with syntax errors? also, how fast would the parser be?)

    [0]: https://github.com/mookid/diffr

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • gumtree

    An awesome code differencing tool

  • locust

    "git diff" over abstract syntax trees (by bugout-dev)

  • delta

    A syntax-highlighting pager for git, diff, grep, and blame output

  • Thanks, this is good advice. There are some super featureful diff tools out there. For example, https://github.com/dandavison/delta does a line-based diff but it also syntax highlights its output.

    I'm hoping that defining syntax in a separate TOML file will let end users extend difftastic for their own languages/config files. I want to keep difftastic small and manageable.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Popular Git Config Options

    2 projects | news.ycombinator.com | 16 Feb 2024
  • Delta, a syntax-highlighting pager for Git, diff, and grep output

    1 project | news.ycombinator.com | 19 Oct 2023
  • Ask HN: What's a new developer tool you recently started using?

    2 projects | news.ycombinator.com | 6 Oct 2023
  • How to see word-diff and moved lines?

    3 projects | /r/git | 13 Jun 2023
  • Git-Delta: Better Diffs

    1 project | news.ycombinator.com | 2 May 2023