frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Cameras and Lenses (2020)

https://ciechanow.ski/cameras-and-lenses/
86•sebg•1h ago•7 comments

OpenWorkers: Self-Hosted Cloudflare Workers in Rust

https://openworkers.com/introducing-openworkers
191•max_lt•3h ago•62 comments

iOS allows alternative browser engines in Japan

https://developer.apple.com/support/alternative-browser-engines-jp/
120•eklavya•4h ago•56 comments

Python Numbers Every Programmer Should Know

https://mkennedy.codes/posts/python-numbers-every-programmer-should-know/
84•WoodenChair•3h ago•36 comments

Bluetooth Headphone Jacking: A Key to Your Phone [video]

https://media.ccc.de/v/39c3-bluetooth-headphone-jacking-a-key-to-your-phone
313•AndrewDucker•7h ago•96 comments

Memory Subsystem Optimizations

https://johnnysswlab.com/memory-subsystem-optimizations/
5•mfiguiere•34m ago•0 comments

Implementing HNSW (Hierarchical Navigable Small World) Vector Search in PHP

https://centamori.com/index.php?slug=hierarchical-navigable-small-world-hnsw-php&lang=en
44•centamiv•2h ago•13 comments

Common Lisp SDK for the Datastar Hypermedia Framework

https://github.com/fsmunoz/datastar-cl
30•fsmunoz•2h ago•7 comments

Sony PS5 ROM keys leaked – jailbreaking could be made easier with BootROM codes

https://www.tomshardware.com/video-games/playstation/playstation-5-rom-keys-leaked-jailbreaking-c...
124•gloxkiqcza•2h ago•21 comments

Build a Deep Learning Library

https://zekcrates.quarto.pub/deep-learning-library/
33•butanyways•3h ago•5 comments

2025 Letter

https://danwang.co/2025-letter/
125•Amorymeltzer•3h ago•67 comments

Heap Overflow in FFmpeg EXIF

https://bugs.pwno.io/0014
47•retr0reg•2h ago•8 comments

2025: The Year in LLMs

https://simonwillison.net/2025/Dec/31/the-year-in-llms/
777•simonw•18h ago•402 comments

Ultra-Wide Band: A Transformational Technology for the Internet of Things

https://www.eetimes.com/ultra-wide-band-a-transformational-technology-for-the-internet-of-things/
9•fzliu•1w ago•7 comments

Rust--: Rust without the borrow checker

https://github.com/buyukakyuz/rustmm
82•ravenical•7h ago•115 comments

Meta made scam ads harder to find instead of removing them

https://sherwood.news/tech/rather-than-fully-cracking-down-on-scam-ads-meta-worked-to-make-them-h...
196•wtcactus•5h ago•51 comments

ACM Is Now Open Access

https://www.acm.org/articles/bulletins/2026/january/acm-open-access
259•leglock•3h ago•39 comments

European Space Agency hit again as cybercriminals claim 200 GB data up for sale

https://www.theregister.com/2025/12/31/european_space_agency_hacked/
28•smurda•1h ago•9 comments

Easel Turns One One year of building my own IDE in Clojure

https://blog.phronemophobic.com/easel-one-year.html
138•todsacerdoti•5d ago•11 comments

A font with built-in TeX syntax highlighting

https://rajeeshknambiar.wordpress.com/2025/12/27/a-font-with-built-in-tex-syntax-highlighting/
29•LorenDB•5d ago•4 comments

How to recognise a genuine password request

https://eclecticlight.co/2025/12/18/how-to-recognise-a-genuine-password-request/
6•naves•1w ago•0 comments

I canceled my book deal

https://austinhenley.com/blog/canceledbookdeal.html
573•azhenley•1d ago•319 comments

Pokémon Team Optimization

https://nchagnet.pages.dev/blog/pokemon-team-optimization/
152•nchagnet•5d ago•56 comments

Beyond the Nat: Cgnat, Bandwidth, and Practical Tunneling

https://blog.rastrian.dev/post/beyond-the-nat-cgnat-bandwidth-and-practical-tunneling
16•rastrian•5d ago•6 comments

Show HN: I created a tool to design and create foamcore inserts for boardgames

https://boxinsertdesigner.com/
39•Rabidgremlin•4d ago•10 comments

BYD Sells 4.6M Vehicles in 2025, Meets Revised Sales Goal

https://www.bloomberg.com/news/articles/2026-01-01/byd-sells-4-6-million-vehicles-in-2025-meets-r...
76•toomuchtodo•2h ago•71 comments

I rebooted my social life

https://takes.jamesomalley.co.uk/p/this-might-be-oversharing
236•edent•7h ago•165 comments

Tell HN: Happy New Year

403•schappim•1d ago•195 comments

A Christmas Present to Myself – Vector Network Analyzer (2014)

https://axotron.se/blog/vector-network-analyzer-a-christmas-present-to-myself/
33•joebig•1w ago•3 comments

Resistance training load does not determine hypertrophy

https://physoc.onlinelibrary.wiley.com/doi/10.1113/JP289684
215•Luc•20h ago•288 comments
Open in hackernews

Implementing HNSW (Hierarchical Navigable Small World) Vector Search in PHP

https://centamori.com/index.php?slug=hierarchical-navigable-small-world-hnsw-php&lang=en
44•centamiv•2h ago

Comments

centamiv•2h ago
OP here. I wrote this implementation to deeply understand the mechanics behind HNSW (layers, entry points, neighbor selection) without relying on external libraries. While PHP isn't the typical choice for vector search engines, I found it surprisingly capable for this use case, especially with JIT enabled on PHP 8.x. It serves as a drop-in solution for PHP monoliths that need semantic search features without adding the complexity of a separate service like Qdrant or Pinecone. If you want to jump straight to the code, the open-source repo is here: https://github.com/centamiv/vektor Happy to answer any questions about the implementation details!
hu3•1h ago
Great writeup. Thanks for talking the time to organise and share.

It's tempting to use this in projects that use PHP.

Is it useable with a corpus of like 1.000 3kb markdown files? And 10.000 files?

Can I also index PHP files so that searches include function and class names? Perhaps comments?

How much ram and disk memory we would be talking about?

And the speed?

My first goal would to index a PHP project and its documentation so that an LLM agent could perform semantic search using my MCP tool.

centamiv•59m ago
I tested it myself with 1k documents (about 1.5M vectors) and performance is solid (a few milliseconds per search). I haven't run more aggressive benchmarks yet.

Since it only stores the vectors, the actual size of the Markdown document is irrelevant; you just need to handle the embedding and chunking phases carefully (you can use a parser to extract code snippets).

RAM isn't an issue because I aim for random data access as much as possible. This avoids saturating PHP, since it wasn't exactly built for this kind of workload.

I'm glad you found the article and repo useful! If you use it and run into any problems, feel free to open an issue on GitHub.

Random09•55m ago
The only small thing you forgot to mention - it requires use of AI. Open Ai to be specific. I've got baited.
centamiv•48m ago
Apologies if it felt that way! I used OpenAI in the examples just because it's the quickest 'Hello World' for embeddings right now, but the library itself is completely agnostic.

HNSW is just the indexing algorithm. It doesn't care where the vectors come from. You can generate them using Ollama (locally) HuggingFace, Gemini...

As long as you feed it an array of floats, it will index it. The dependency on OpenAI is purely in the example code, not in the engine logic.

lukan•24m ago
Thanks a lot, I liked the fantasy based examples to explain the concept.

Programming is chanting magic incarnations and spells after all. (And fighting against evil spirits and demons)

centamiv•4m ago
I'm really glad you liked the article! Thanks so much for reading the previous one too, I really appreciate it.
hilti•21m ago
Great article! I also read your other post and love it! This is exactly my thinking: Locality of Behavior (LoB)

Never heard this term before, but I like it.

https://centamori.com/index.php?slug=basics-of-web-developme...

centamiv•5m ago
Thanks for checking out the other posts too! I wasn't familiar with the term 'Locality of Behavior' until recently, but it perfectly captures what I strive for: readability and simplicity.
fithisux•1h ago
It makes perfect sense to implement it in a high level language that allows understandability.

Very good contribution.

centamiv•1h ago
Thank you! That was exactly the goal. Modern PHP turned out to be surprisingly expressive for this kind of 'executable pseudocode'. Glad you appreciated it!
rvnx•44m ago
Cool blog post, smart guy, very thoughtful and not a copy-paste of Python code like 99% of folks. Nice to see
centamiv•37m ago
Thank you, really appreciate that