tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Wilfred Hughes (wilfredh@mastodon.social)'s status on Tuesday, 15-Jun-2021 09:53:42 CEST Wilfred Hughes Wilfred Hughes

    A little more progress on my syntactic differ: now it only shows lines of things that have changed!

    Here's a Scheme example. Note that line 16 on the right has moved, but it's actually unchanged. Difftastic understands this :)

    In conversation Tuesday, 15-Jun-2021 09:53:42 CEST from mastodon.social permalink
    • Wilfred Hughes (wilfredh@mastodon.social)'s status on Tuesday, 15-Jun-2021 09:53:42 CEST Wilfred Hughes Wilfred Hughes
      in reply to

      How it works, roughly:

      The parsing is inspired by Comby: everything is an atom or a list.

      Tree diffing applies LCS diff at each level, then looks for subtrees that have moved.

      Finally there's tons of futzing with line positions to print something comprehensible.

      In conversation Tuesday, 15-Jun-2021 09:53:42 CEST permalink
      Ekaitz Zárraga 👹 repeated this.
    • Wilfred Hughes (wilfredh@mastodon.social)'s status on Tuesday, 15-Jun-2021 09:53:42 CEST Wilfred Hughes Wilfred Hughes
      in reply to

      The test file is from https://fosdem.org/2021/schedule/event/sexpressiondiff/, which is a project exploring a pure-lisp solution to this problem.

      In conversation Tuesday, 15-Jun-2021 09:53:42 CEST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.