Live data from Hacker News

Difftastic: A diff that understands syntax

github.com

221–224 of 224 posts

Re: Difftastic: A diff that understands syntax

#221
post #22

This looks really cool and I can't wait to try it, tho... a bit of a PITA to get running. ;) Took a while to figure out how to build, and had to install 400MB of dependencies first.... Edit: And after installing cargo, watching it fail to build, then determining I must need a newer version of cargo, so I built that from source... it fails. Apparently I need to install `rustc-mozilla` and not `rustc`. "obviously". Thi…

Honest question: how did you arrive to the conclusion you needed rustc-mozilla? I would love to make sure whatever flow led you to that is made clearer for other newcomers, because that is definitely not something anyone that isn't working on Firefox should even try.

I imagine it's a misunderstanding with the rustc-hash dependency used in difftastic for faster hashing.

Re: Difftastic: A diff that understands syntax

#223

I really like the idea of focusing on producing patches for human consumption. I studied the problem of merging AST-level patches during my PhD ( https://github.com/VictorCMiraldo/hdiff ) and can confirm: not simple! :)

How does your work relate to tree-sitter, which also manages patches which it describes as "incremental parsing" as well as error states.

Re: Difftastic: A diff that understands syntax

#224
post #189
post #144

Earlier quoted context omitted.

A huge part of the appeal of Rust and Go tools is that you can just ship a binary, it's frustrating that it's not available here.

Not sure about Go, but Rust still links against glibc, so I sometimes have to recompile things to make them work on my Debian systems if they're built against newer glibc.

Rust can statically link against musl.

https://doc.rust-lang.org/reference/linkage.html#static-and-...

Post reply on HN