News for hackers. Stuff that matters.
Re:Pijul – The Mathematically Sound Version Control System W... by Technically on Sunday November 29, 2020 @02:45PM (#25247485)
Does this allow for semantic, non-text diffing? This would allow for code formats without syntax errors (i.e. storing the valid AST in binary as separate, likely structured in binary, from the editor representation).

Diffs would then be truly semantic, representing semantic refactorings (e.g. "extract method to function", "rename symbol") at the patch level. you could easily then query "when did this variable show up" even post-refactor where the variable moves modules. Sure this has its limits but it'd push the tooling to levels virtually impossible to automate with text-based code now.

A man can dream!

Re:Pijul – The Mathematically Sound Version Control System W... by pmeunier on Sunday November 29, 2020 @03:08PM (#25247647)
It does allow that, to some extent: by changing the diff algorithm. On thing you can do in a diff algorithm for Pijul (not written yet, but totally possible) is to treat whitespace as their own binary blocks, so that reformatting commutes with other changes.
Re:Pijul – The Mathematically Sound Version Control System W... by yencabulator on Thursday December 03, 2020 @03:30PM (#25294335)
By that logic, so does Git (disregarding fundamental Git vs Pijul differences).
Re:Pijul – The Mathematically Sound Version Control System W... by gnufx on Sunday November 29, 2020 @04:59PM (#25248471)
Darcs has "replace" for that, the only other patch type that's been implemented for it as far as I know. I think Toolpack provided that for Fortran in the 1980s, but I don't remember for sure whether its version control was AST-based latterly (and, of course, it wasn't networked, let alone distributed).