News for hackers. Stuff that matters.

xnan

Re:Show HN: ngrep – grep plus word embeddings (Rust) on Saturday March 14, 2026 @05:42PM (#47381535)
Oops, didn't know, thanks! I just added a section on how to compile and try it without a system installation to avoid any name clash :)

Show HN: ngrep – grep plus word embeddings (Rust)

https://github.com/0xNaN/ngrep

I got curious about a simple question: regular expressions are purely syntactic, but what happens if you add just a little bit of semantics?To answer, I ended up building ngrep: a grep-like tool that extends regular expressions with a new operator ~(token) that matches a word by meaning using word2vec-style embeddings (FastText, GloVe, Wikipedia2Vec).A simple demo: "~(big)+ \b~(animal;0.35)+\b"...

( Read More... | 2 comments | 3 points | on HN )
Hi everyone,

I’ve recently been digging into the PyTorch FSDP implementation. It’s powerful and highly optimized, which naturally means the codebase is extensive and isn't always straightforward to navigate. In the process, I decided to write a minimal implementation based on my findings, mainly to emphasize and show the different states and pre/post forward/backward of FSDP, all in a single place!

Hope this helps others!

Re:Show HN: Monitor a Hacker News post over time on Thursday January 02, 2020 @06:28PM (#21941138)
You made me remember about this project: https://hackernewsbooks.com/ Despite it is not related to clustering I think it is a smart idea that offers a complete different view of HN