Hacker Newsnew | past | comments | ask | show | jobs | submit | novocayn's commentslogin

Ohh good catch, I think I missed it. Thanks for the note :)


You're right, string-based queries are very expressive. I intentionally avoided that here so readers could focus on how FTS indexes work internally. Adding a full query system would have shifted the focus away from the internals.

If you notice there are vv obvious optimizations we could make. I’m planning to collect them and put a these as code challenges for readers, and building string-based queries would make a great one :)


> AIs have feelings too

Ohh boi, that’s exactly how the movie "Her" started! XD


Got to admit, initial impressions, this is pretty neat, would spend sometime with this. Thanks for the link :)


tysm, would try pairing it with HNSW and IVF, halfway through :)


Ohh, I thought that inline comments would make it grokkable and be a low-friction way in. Seems this didn’t land the way I intended :'

Should a multi-part blog would've been better?


I like it, I comment exactly like you do. Comments are free, storage is plentiful, why not add comments everywhere?!


Time and risk of comments/docs becoming outdated and doing more harm than good.

I'm impartial in this discussion but that's usually how the counter argument goes.


The counter argument is bunk, you change the comments when you change the code. It’s not hard. If you forget, them a reviewer will notice. If not, then you aren’t focusing enough attention on the finer details of a project, to your detriment.

Personally, I find that a lot of good, accurate comments and documentation helps me to trust a code base more because I can see that the devs cared and focused on the finer details rather than just tossing code over a fence at me.


Can't you just say that you used Claude and be done with it? I mean, I don't really care but in general I would refrain from posting "Show HN" with stuff that has been vibed, or state that you did since in that case it's even more interesting from my point of view, like you could describe how you kept everything under control during generation, etc...

I mean, no biggie and I don't understand the reaction but hey, I'm old so...


They seem to be vibing the HN comments too? Prompt: Do not admit AI involvement under any circumstance.


tysm, i love this, FST is vv cool


> comment blocks inside codebase

Is vibe-commented a thing yet? :D

Wanted to give fellow readers a good on-ramp for understanding the FTS internals. Figured leaning into readability wouldn’t hurt

For me this makes the structure super easy to grok at a glance

https://github.com/wizenheimer/blaze/blob/27d6f9b3cd228f5865...

That said, totally fair read on the comments. Curious if they helped/landed the way I intended. or if a multi-part blog series would’ve worked better :)


Thanks for the link, very interesting data structure.

I'm wondering is it really worth dumping a general knowledge articles into code comments? To me it feels like the wrong place. Would just the wikipedia link be enough here?

I also notice a lot of comments like this

  // IsEnd checks if this is the EOF sentinel
  //
  // Example usage:
  //
  // if pos.IsEnd() {
  //     // We've reached the end, stop searching
  // }
  func (p *Position) IsEnd() bool {
      return p.Offset == EOF
  }
Is it really necessary to have a text description for a code like "a == b"? It would be really annoying to update comment section on every code change.

This is one of the typical issues when AI creates "code comments", because it always describes "What" is happening. A good comment should answer the question "Why" instead.

For the linked skip list module, a good comment could say why skip list was chosen over b-tree or other data structure and which trade offs were made. AI will never know that.


Claude: "You're absolutely right" :D


Yayiee, the “cant prove it” Doakes Dexter meme, making it to HN


You are neither confirming nor denying, why won't you just tell if you vibe-coded it or not?


you posted the Dexter meme earlier, why are you acting surprised?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: