jola

jola

Hey everyone! It’s my enormous pleasure to present Hex Diff, an official hex.pm service for generating web-based diffs between package versions on Hex. You can find it at https://diff.hex.pm.

Read more about it and why it’s a great tool for the community on the announcement blog post!

Showing Posts 1 to 10

hudson2010

hudson2010

Thanks, for the great work done , I have tested on cowboy lib and it highlighted the major difference between version thanks great work !!!

sergio

sergio

The amount of just cool stuff the Elixir community builds is astounding. Thanks for yet another very productive feature! This will make upgrading our older dependencies a little less scary.

axelson

axelson

Scenic Core Team

Wow, that’s great! Thanks so much for spearheading this @jola! This is a great service to have officially running :heart:

sb8244

sb8244

Author of Real-Time Phoenix

This is such a convenient and useful tool. Great work!

pmangalakader

pmangalakader

Wonderful work!!! Congratulations to all people who had worked on this tool! :partying_face:

zimt28

zimt28

Very useful tool, thanks! Would it be possible to add some information like a total X files changed, Y lines added, Z lines removed and then +X lines, -Y lines per file?

And what about a link on hex.pm/package to the latest diff? :slight_smile:

jola

jola OP

That’s something we can look into, don’t hesitate to make an issue on the diff repo with your ideas and examples of what it would look like!

There are links to the diffs, but they might be a bit tricky to see

If you have ideas for how to improve the UI and make the diffs easier to see, please make an issue on the hexpm repo :slight_smile:

11
Post #8
hauleth

hauleth

I have checked it out, and for now one thing brought my attention - why fire git diff to compare two projects? Now I am thinking about writing diff algorithm in Elixir or to bring it via NIF to xdiff.

wojtekmach

wojtekmach

Hex Core Team

Using git diff was a pragmatic choice with libraries support (we use git_diff | Hex to parse hunks to provide better user experience).

I think a pure Elixir solution would be interesting and in fact that could be a great default for another tool: mix hex.package diff (we couldn’t use a NIF there)

hauleth

hauleth

xdiff is library used by Git, so there should be no difference. By the way, do you use regular algorithm or patience? Patience one should give slightly better results while being slightly more computationally expensive (but caching should made it neglible difference).

I will try to write something like that in some spare time.

Where Next? Top

Trending in News Top

josevalim
Hi everyone, I am sharing this announcement here in case some of you might be interested. Dear colleagues, IRIF (Paris) is opening a p...
New

Other Trending Topics Top

KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
budgie
I love Elixir. It’s one of 2 programming languages I’ve ever fallen in love with. But I don’t use it anymore. Serverless was the promis...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews