Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DarkPlayer
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
DarkPlayer
1y ago
We observed the same behavior. Each request used a different IP address and a random user agent. In our case, most of the IP addresses belonged to Chinese ISPs. They went to great lengths to avoid being blocked, but at the same time used us
2.
▲
by
DarkPlayer
2y ago
> What we should have instead is syntax-aware diffs that can ignore meaningless changes like curly braces moving into another line or lines getting wrapped for reasons. These diffs already exist (at least for some languages) but aren
3.
▲
by
DarkPlayer
2y ago
> However at a minimum formatting changes shouldn’t regularly complicate doing a diff. If the code needs to be reformatted, this should be done in a separate commit. Fortunately, there are now structural/semantic diff tools availabl
4.
▲
by
DarkPlayer
2y ago
Difftastic would not solve the issue described by madeofpalk because it still highlights the added comma. You need a diff tool that can distinguish between optional and required syntax. So far I am not aware of any tool that supports this,
5.
▲
by
DarkPlayer
2y ago
Our parsers simply return the concrete syntax trees in a JSON format. We do not unify all the different syntax constructs into a common AST if that is what you are looking for. The languages and file formats we support are too diverse for t
6.
▲
by
DarkPlayer
2y ago
> - for diffing, the matching of the leaves is what matters the most, for merging the internal nodes are more important, The leaves are the ones that end up being highlighted in the diff, but the inner nodes play an important role as wel
7.
▲
by
DarkPlayer
2y ago
I don't think that different algorithms are better for merging or diffing. In both cases, the first step is to match identical nodes, and the quality of the final result depends heavily on this step. The main problem with GumTree is th
8.
▲
by
DarkPlayer
2y ago
Looking at the architecture, they will probably run into some issues. We are doing something similar with SemanticDiff [1] and also started out using tree-sitter grammars for parsing and GumTree for matching. Both choices turned out to be p
9.
▲
by
DarkPlayer
2y ago
You can find a comparison of the two tools here: https://semanticdiff.com/blog/semanticdiff-vs-difftastic/ As author of SemanticDiff, I am obviously a bit biased. But Wilfred, the author of difftastic, found the a
10.
▲
by
DarkPlayer
2y ago
The VS Code extension works offline. The diff calculation is performed on the host where the VS Code GUI is running (makes a difference in case of SSH/Docker/WSL).
11.
▲
by
DarkPlayer
2y ago
Hi, author of SemanticDiff here. I'm sorry you didn't have a good experience testing the tool. If it doesn't work / makes things worse than a standard diff, that's definitely considered a bug. It is probably somethi
12.
▲
How far should a programming language aware diff go?
(semanticdiff.com)
2 points
by
DarkPlayer
2y ago
|
0 comments
13.
▲
SemanticDiff 0.9.0: Support for HTML, Vue, Swift and More
(semanticdiff.com)
2 points
by
DarkPlayer
2y ago
|
0 comments
14.
▲
by
DarkPlayer
2y ago
> I am curious if there's been any work on _semantic_ diff tools as well (for when eg the syntax changes but the meaning is the same) We are working on https://semanticdiff.com/ which detects basic semantic changes
15.
▲
by
DarkPlayer
3y ago
There are some tools that can separate actual code changes from reformatting changes. I am working on https://semanticdiff.com , a VS Code Extension / GitHub App that can help you with this. There is also difftastic if you p
16.
▲
by
DarkPlayer
3y ago
I think LLMs will have a hard time replacing traditional diff algorithms. You want your diff to be reliable and predictable. It shouldn't omit relevant changes. This is not really a strength of LLMs. I think a system that parses the co
17.
▲
by
DarkPlayer
3y ago
I am working on a GitHub pull request viewer that displays changes using a semantic diff, and therefore has some more advanced whitespace handling behavior than just ignoring leading or trailing whitespace. I tried it with this PR: https:&
18.
▲
by
DarkPlayer
4y ago
We are working on a code review tool which supports unified diffs with semantic diffing. If that sounds interesting for you, take a look at https://mergeboard.com
19.
▲
Execute Docker Containers as QEMU MicroVMs
(mergeboard.com)
178 points
by
DarkPlayer
5y ago
|
63 comments
20.
▲
Use a real Windows 7 partition in Virtualbox / KVM / VMware Player under Linux
(fds-team.de)
63 points
by
DarkPlayer
13y ago
|
15 comments
21.
▲
Pipelight: using Silverlight in Linux browsers
(fds-team.de)
7 points
by
DarkPlayer
13y ago
|
0 comments
22.
▲
Security vulnerability: Routers acting as proxy when sending fake IRC messages
(fds-team.de)
2 points
by
DarkPlayer
13y ago
|
0 comments
23.
▲
Linux on the hx4700: Chapter 0 – Introduction
(fds-team.de)
1 points
by
DarkPlayer
13y ago
|
0 comments
24.
▲
Linux: Limit IPv6 connectivity to specific programs
(fds-team.de)
31 points
by
DarkPlayer
13y ago
|
29 comments
25.
▲
Activating sound hardware mixing on Ubuntu
(fds-team.de)
2 points
by
DarkPlayer
13y ago
|
0 comments