Live data from Hacker News

Diff Algorithms

flo.znkr.io

41–50 of 64 posts

Re: Diff Algorithms

#41
Not to critique on the article, but as a general suggestion, it would be great if people don't use emojis as a scale. Unless it shows a specific character like number emojis, they are sometimes read differently by people from different language backgrounds. So what the author might be trying to say might lead to misunderstandings.

Re: Diff Algorithms

#43

Not to critique on the article, but as a general suggestion, it would be great if people don't use emojis as a scale. Unless it shows a specific character like number emojis, they are sometimes read differently by people from different language backgrounds. So what the author might be trying to say might lead to misunderstandings.

But ai loves them, so we will be stuck with them for a few years at least.

> they are sometimes read differently by people from different language backgrounds

I'm really curious of some examples you have actually how an image is influenced by language ?

Re: Diff Algorithms

#44
post #43

Not to critique on the article, but as a general suggestion, it would be great if people don't use emojis as a scale. Unless it shows a specific character like number emojis, they are sometimes read differently by people from different language backgrounds. So what the author might be trying to say might lead to misunderstandings.

But ai loves them, so we will be stuck with them for a few years at least. > they are sometimes read differently by people from different language backgrounds I'm really curious of some examples you have actually how an image is influenced by language ?

It is influenced by the language and culture. For example mask on the face emoji is usually read so. But in some asian cultures it has a religious meaning. These emojis are used while communicating in native language or even in transliteration via english.

Re: Diff Algorithms

#45
What's a SoTA diffing algorithm for diffing of a deeply nested JSON structure for example?

I am currently researching and have built my own naive implementation for diffing a dense tree and the performance... isn't very great.

The ideal outcome is to create patches by diffing different versions of the JSON object, then being able to apply said patches anywhere in the "commit" tree.

Re: Diff Algorithms

#46

Not to critique on the article, but as a general suggestion, it would be great if people don't use emojis as a scale. Unless it shows a specific character like number emojis, they are sometimes read differently by people from different language backgrounds. So what the author might be trying to say might lead to misunderstandings.

Good point, thanks!

Re: Diff Algorithms

#47
post #35
post #21

Earlier quoted context omitted.

There is this debate of virtual DOM vs no virtual DOM, and from time to time you see people on HN claim how great vanilla JS is. Won't get into the former debate, but for the latter, people who make such comments probably aren't aware how different it is to create a UI as complex as Outlook/reddit/Spotify vs their personal website or a simple demo. For complex sites with lots of widgets and data, being able to write…

As someone mostly familiar with non-web UIs - isn't the real question "why aren't you using MVC instead of a big lump of spaghetti?"

This might come as a shock to you, but nobody is downloading an .exe and running it on their computer any more, which does not work on Mac/Linux/Android/iOS etc anyway. In fact, if you do that, people likely think it's virus unless you are Microsoft or something.

Re: Diff Algorithms

#49
post #45

What's a SoTA diffing algorithm for diffing of a deeply nested JSON structure for example? I am currently researching and have built my own naive implementation for diffing a dense tree and the performance... isn't very great. The ideal outcome is to create patches by diffing different versions of the JSON object, then being able to apply said patches anywhere in the "commit" tree.

If in Python, have you looked at dictdiffer or JYCM?

https://github.com/eggachecat/jycm

Re: Diff Algorithms

#50
post #16
post #6

There are at least 3 fundamentally different kinds of diff: * Single-dimensional. Diffs of text lines are just this. * Multi-dimensional. Diffs of words or characters are usually going to be this since lines still matter, but there are multiple approaches (line-first? weighted tokens?). * Tree-based. Unfortunately, these are woefully scarce and poorly documented. For text diffs, it's nontrivial to get the "missing ne…

Can you explain why the `p` example is unmergeable whereas the `b` one isn't? I can't see any difference between the two examples other than the tag used.

[deleted]
Post reply on HN