jsondiff icon indicating copy to clipboard operation
jsondiff copied to clipboard

Javascript version?

Open starfishmod opened this issue 13 years ago • 5 comments

Are you aware of a pure Javascript version of this code?

It seems it would be awesome to have as well :)

Best Regards

starfishmod avatar Jan 18 '12 02:01 starfishmod

Hi there!

Yes it would be awesome and it is on my list of places I'd like to take this library. My thought is to just make a straight port of it, pretty much a line-by-line translation starting with the underlying IncavaDiff/IncavaEntry.

There's two things made me not get around to it yet:

  1. Is the java version "solid? I've had a bunch of bugs reported and fixed, and suspect it is approaching a first level of maturity. Before reaching this maturity I didn't think it was worthwhile to start having translated code to maintain.
  2. Time. Where did it go? :)

I'd very happy accepting committers and collaborators in this.

algesten avatar Jan 18 '12 04:01 algesten

Doing a GWT version would be quite straight forward! I'll give it a try this weekend and follow-up next week ;)

nachogmd avatar Oct 16 '13 19:10 nachogmd

Exciting stuff :+1:

algesten avatar Oct 16 '13 20:10 algesten

Hi, I've pushed to a new branch named gwt-support with, well, obviestly, GWT Support

There should be enough commit info on what has been done. If not, please don't hesitate in asking!

It remains to be done javascript exporting feature which basically means being able to use the resulting code from javascript itself - currently only from GWT code. I am not really sure on how people use this kind of libraries from javascript so I am asking for advice here :)

best regards,

nachogmd avatar Oct 21 '13 23:10 nachogmd

There is a serious hashing problem when used by gwt specially because it doesn't happen often and it is aleatory.

We'd have to figure out some other hashing algorithm that guarantees uniqueness across all possible scenarios.

nachogmd avatar Nov 23 '13 19:11 nachogmd