News for hackers. Stuff that matters.
Re:Writing a document database from scratch in Go: Lucene-li... by hombre_fatal on Monday March 28, 2022 @07:40PM (#30836936)
I don't get the emotions.

How you save/retrieve bytes isn't the interesting part of this blog post as it's elementary. He could have just defined an interface { save(id, doc), get(id) } and moved on.

If anyone seriously wanted to try to follow along with this code, googling how to use the filesystem in Go isn't beyond them. They'd have their own implementation from scratch just as the blog promises.

Re:Writing a document database from scratch in Go: Lucene-li... by kreeben on Monday March 28, 2022 @07:50PM (#30836994)
>> How you save/retrieve bytes isn't the interesting part of this blog post as it's elementary

I do not have a beef with the author, at all, in any way, but, LOL, that is anything but elementary.

Furthermore,

>> this post will not implement full text search.

...makes their solution or specifically, their index, not very "Lucene-like". Which is why I had objections to their title, not their blog post. Their blog post is fine :)

Storage is one of the problems you'll need to solve, when doing "Lucene from scratch". Indices are another. Full-text indices implemented from scratch: hard and interesting.

Re:Writing a document database from scratch in Go: Lucene-li... by hombre_fatal on Monday March 28, 2022 @07:55PM (#30837019)
> LOL, that is anything but elementary.

Like most tutorials, surely it's a simple implementation that breaks things down into simple code so that you can see how things work at a more fundamental level and follow along, not something that's going to satisfy ACID properties and compete with Lucene.

Way too much guff in these comments.

Re:Writing a document database from scratch in Go: Lucene-li... by kreeben on Monday March 28, 2022 @08:00PM (#30837054)
It's a very good run-through but it's not at all from scratch. That's my sole point. Didn't mean to be harsh, but their title is click-bait.
Re:Writing a document database from scratch in Go: Lucene-li... by jandrewrogers on Monday March 28, 2022 @08:28PM (#30837249)
Storage engines are far from elementary. It is one of the most complex and subtle parts of a database implementation, especially if you care about reliability, scalability, or performance. The term "from scratch" usually does not denote outsourcing all of the hard parts of a database implementation to an external library.

I think people were just disappointed that the article was more about writing a database-like API than an actual database.

Re:Writing a document database from scratch in Go: Lucene-li... by bradhoffman on Monday March 28, 2022 @08:36PM (#30837315)
I’ll be anxiously awaiting your “from scratch” tutorials :)

Edit: not facetious. I very much enjoy reading your blog posts and HN comments.