🚀 Wow, #jsongrep is faster than jq? Alert the media! 📣 After a mere 17-minute read filled with mind-numbing automata theory and #benchmark babble, you'll finally learn that using jsongrep will save you a whopping nanosecond per query. 💤 Meanwhile, the rest of us will continue to use #jq, blissfully unaware of this groundbreaking revelation. 🙄
https://micahkepe.com/blog/jsongrep/ #automation #performance #tech #news #HackerNews #ngated
jsongrep is faster than {jq, jmespath, jsonpath-rust, jql}

An introduction to the jsongrep tool, a technical explanation of its DFA-based search engine, and performance results against popular JSON query tools.

Micah's Secret Blog

`jsongrep`: Công cụ CLI & thư viện truy vấn JSON bằng biểu thức chính quy trên đường dẫn, chạy bằng DFA. Cho phép tìm kiếm nhanh các trường trong JSON thông qua cú pháp regex như `**.name` (tìm mọi nút 'name' ở bất kỳ độ sâu). Xây dựng từ PEG grammar → NFA (Glushkov) → DFA compact, tối ưu hóa hiệu năng. So với `jq`, `jsongrep` mang tính khai báo cao, tập trung vào "trả về gì" thay vì "thực hiện như thế nào". Cài đặt bằng `cargo install jsongrep`.

#jsongrep #JSON #Regex #DFA #CLI #LậpTrình #Cô