Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
centamiv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
centamiv
4mo ago
This article explores the conceptual and technical bridge between PHP's dynamic memory and C's static types via FFI. Features a practical implementation of the Sieve algorithm with a detailed look at the System V AMD64 ABI contrac
2.
▲
SMTP: We've been sending digital letters since 1982
(centamori.com)
1 points
by
centamiv
9mo ago
|
0 comments
3.
▲
by
centamiv
9mo ago
You are absolutely right. I will update the README with some examples, thanks for the feedback!
4.
▲
by
centamiv
9mo ago
I'm really glad you liked the article! Thanks so much for reading the previous one too, I really appreciate it.
5.
▲
by
centamiv
9mo 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.
6.
▲
by
centamiv
9mo ago
Thank you, really appreciate that
7.
▲
by
centamiv
9mo 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&
8.
▲
by
centamiv
9mo 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 documen
9.
▲
by
centamiv
9mo 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!
10.
▲
Hierarchical Navigable Small World (HNSW) in PHP
(centamori.com)
95 points
by
centamiv
9mo ago
|
15 comments
11.
▲
by
centamiv
9mo 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 fou
12.
▲
"Fireball" vs. "Make it go boom": Building a Semantic Search for D&D
(centamori.com)
3 points
by
centamiv
9mo ago
|
1 comments
13.
▲
by
centamiv
9mo ago
Hi HN, I wrote a short post demonstrating how vector search works by building a D&D spell finder. Instead of using a vector DB immediately, I implemented the cosine similarity math manually in PHP to demystify how embeddings actually wo
14.
▲
Show HN: Vektor – A native PHP vector database using HNSW
(github.com)
2 points
by
centamiv
9mo ago
|
0 comments