diff-match-patch
haproxy
diff-match-patch | haproxy | |
---|---|---|
8 | 18 | |
7,356 | 5,072 | |
- | 2.4% | |
0.0 | 9.9 | |
7 months ago | 6 days ago | |
Python | C | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
diff-match-patch
-
Ideas for approaching pattern matching/distance problem
I also came across this diff match algorithms: https://github.com/google/diff-match-patch
-
Form editing, changelogs, and progressive diffing - am I reinventing the wheel?
Outside of that, to get the diffs there is a library called diff-match-patch that has implementations in most languages. Your data model / state tracking sounds like it matches the internal constraints.
-
Here’s my ~600 byte (minified, gzipped) package for diffing two strings.
So I'll just leave you with this question - why, as a developer, would I ever advise using this, when fast diff is an industry standard tool that does exactly this, but better, using well tested methods that are being implemented in JS and further optimized by one of the largest global tech companies. Mind you, this is the same company which has developed its own proprietary monolithic VCS, managing versioning for 2billion+ lines of code.
-
Show HN: Character-Based Git Conflict Resolution
Hello HN!
I was always annoyed by conflicts that can be solved automatically, but still need human intervention. E.g. two people changing the same line, but at different, non-conflicting positions. So I searched for a character based patching library and found this nice article https://neil.fraser.name/writing/patch/ and its corresponding library https://github.com/google/diff-match-patch.
Parsing git conflicts, applying patches and showing some useful diffs in the UI helps me to solve 80% of my conflicts automatically. I hope it can help you too.
Happy Hacking!
-
Keeping track of changes made to xml file.
A bit late to the party but have you checked this? google/diff-match-patch
-
Ask HN: What are the best the publicly available FAMANG code repos?
Found this, simple and seems interesting: https://github.com/google/diff-match-patch
-
Getting the difference of two strings
If you need to know exactly what the diff is, you might want to use something like github.com/google/diff-match-patch. Otherwise, a simple Levenshtein distance would suffice. This library seems to have a whole bunch of string distances implemented. Hope this helps!
-
Get Diff and Patch Html
Photo by Markus Spiske on Diff.Match.Patch based on Google library.
haproxy
- HAProxy ECH (Encrypted client hello) support #1924 (2022)
-
What We Learned from a Year of Building with LLMs
I totally agree, that's what I had to do with my patchbot that evaluates haproxy patches to be backported ( https://github.com/haproxy/haproxy/tree/master/dev/patchbot/ ). Originally it would just provide a verdict and justify it and it worked extremely poorly, often with a justification that directly contradicted the verdict. I swapped that by asking the analysis and the final verdict and now the success rate is totally amazing (particularly with mistral that remains unbeatable at this task by obeying extremely well to instructions).
-
HAProxy is not affected by the HTTP/2 Rapid Reset Attack (CVE-2023-44487)
I wanted to try it out just now but hit a roadblock immediately - it cannot automatically obtain and maintain TLS certificates. You have to use an external client (e.g. acme.sh), set up a cron to check/renew them, and poke HAProxy to reload them if necessary. I'm way past doing this in 2023.
https://www.haproxy.com/blog/haproxy-and-let-s-encrypt
https://github.com/haproxy/haproxy/issues/1864
-
Why Haproxy is not build with PROMEX by default (Linux / BSD)
For context I think this might be useful: https://github.com/haproxy/haproxy/blob/master/addons/promex/README
-
minexmr2.com updated to p2pool v3.1, monerod v0.18.2.0, and ready for Mar 18 p2pool (not monero) hardfork
I turn on 1 relatively cheap cloud server to process DNS, https and stratum connections and route them via haproxy to one of N miner servers described above.
-
HAProxy Security Update (CVE-2023-25725) - HTTP content smuggling attack
Full technical writeup here: https://github.com/haproxy/haproxy/commit/a8598a2eb11b6c989e81f0dbf10be361782e8d32
- Request smuggling in HAProxy via empty header name
- Enormous session rate
- Update to haproxy 2.4.18 breaks WebDAV
-
HAProxy 2.7
With the recent discussions about memory safe languages, HAProxy is still surprisingly written in C [0].
[0]: https://github.com/haproxy/haproxy
What are some alternatives?
StringDistances.jl - String Distances in Julia
zstd - Zstandard - Fast real-time compression algorithm
esbuild - An extremely fast bundler for the web
Jool - SIIT and NAT64 for Linux
webdiff - Two-column web-based git difftool
ClickHouse - ClickHouse® is a real-time analytics DBMS
tmatch - Super fast token matcher
3proxy - 3proxy - tiny free proxy server
Pawky - The Python version of awk
Caddy - Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
striff - Real simple string diffing.
brotli - Brotli compression format