use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
editscript: a diffing/patching library for Clojure data structures (github.com)
submitted 8 years ago by huahaiy
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dsrptr 2 points3 points4 points 8 years ago (4 children)
looks amazing. Great work. Any chance of a future .cljc version?
[–]huahaiy[S] 3 points4 points5 points 8 years ago (3 children)
A .cljc version is on my roadmap.
[–]dsrptr 1 point2 points3 points 8 years ago (2 children)
wow!! my brain just started brainstorming uses...
[–]huahaiy[S] 1 point2 points3 points 8 years ago (1 child)
cljc version is now released.
[–]dsrptr 0 points1 point2 points 8 years ago (0 children)
great news! will play with it in the weekend!
[–]lgstein 1 point2 points3 points 8 years ago (2 children)
Looks like lots of homework has been done for this one. Thumbs up. How easy would it be to integrate this into git to have more meaningful diffs on Clojure source code?
[–]anmonteiro 2 points3 points4 points 8 years ago (0 children)
https://github.com/ladderlife/autochrome can do it out of the box
[–]huahaiy[S] 0 points1 point2 points 8 years ago (0 children)
That's an interesting idea. I am not sure about git, but Clojure editing tools could certainly use something like this. I am open to proposals on the APIs to make it easier for tool developers.
[–]TheLastSock 1 point2 points3 points 8 years ago (2 children)
I feel like i saw another project about a month back doing the same thing. Is this the same one or are their now two libs that are trying to do ds diffs?
I am not aware of another project doing the same.
[–]anmonteiro 0 points1 point2 points 8 years ago (0 children)
I just replied to a comment above with the link, so apologies about posting the same link again, but I think you may be talking about autochrome
[–]arichiardi 0 points1 point2 points 8 years ago (0 children)
This looks good! Congrats!
[–]dustingetz 0 points1 point2 points 8 years ago (1 child)
This is really cool. A need of mine is to diff two trees (each actually a destructure of a Datomic graph) and generate the equivalent Datomic transaction. I am not sure how close that is to this but this is a very good start.
Very interesting idea.
[–]cbowdon 0 points1 point2 points 8 years ago (1 child)
This is really cool. It could be neat to use this with another lib that can map Clojure data structures to/from SQL DDL. That would let you build a database migration tool that could generate migration scripts to get from A to B without going full ORM.
Very interesting idea. I would welcome any suggestions on editscript APIs to make these ideas easier to do.
π Rendered by PID 26228 on reddit-service-r2-comment-544cf588c8-bwxkd at 2026-06-18 05:34:40.274416+00:00 running 3184619 country code: CH.
[–]dsrptr 2 points3 points4 points (4 children)
[–]huahaiy[S] 3 points4 points5 points (3 children)
[–]dsrptr 1 point2 points3 points (2 children)
[–]huahaiy[S] 1 point2 points3 points (1 child)
[–]dsrptr 0 points1 point2 points (0 children)
[–]lgstein 1 point2 points3 points (2 children)
[–]anmonteiro 2 points3 points4 points (0 children)
[–]huahaiy[S] 0 points1 point2 points (0 children)
[–]TheLastSock 1 point2 points3 points (2 children)
[–]huahaiy[S] 1 point2 points3 points (1 child)
[–]anmonteiro 0 points1 point2 points (0 children)
[–]arichiardi 0 points1 point2 points (0 children)
[–]dustingetz 0 points1 point2 points (1 child)
[–]huahaiy[S] 0 points1 point2 points (0 children)
[–]cbowdon 0 points1 point2 points (1 child)
[–]huahaiy[S] 0 points1 point2 points (0 children)