Show HN: A fast, hopefully accurate, fuzzy matching library written in Go
1–10 of 32 posts
Re: Show HN: A fast, hopefully accurate, fuzzy matching library written in Go
#2Re: Show HN: A fast, hopefully accurate, fuzzy matching library written in Go
#3You should probably write some tests to ascertain that.
Re: Show HN: A fast, hopefully accurate, fuzzy matching library written in Go
#4Hopefully accurate? You should probably write some tests to ascertain that.
This library came out of a project I started. The project never saw the light of day. If I do see real world use, it'll be easier to find bugs and fix them :)
Re: Show HN: A fast, hopefully accurate, fuzzy matching library written in Go
#5If you want to make it really fast you could steal some ideas from: https://wincent.com/blog/optimization (tales of many years of optimizing a fuzzy search implementation).
Let me pull up some embarrassing numbers of fuzzy matching on all of Chromium.
Re: Show HN: A fast, hopefully accurate, fuzzy matching library written in Go
#6Hopefully accurate? You should probably write some tests to ascertain that.
I've found it hard to write tests (though there are a few here - https://github.com/sahilm/fuzzy/blob/master/fuzzy_test.go ). Match quality is often subjective. Tweaking one parameter messes with others. This library came out of a project I started. The project never saw the light of day. If I do see real world use, it'll be easier to find bugs and fix them :)
Re: Show HN: A fast, hopefully accurate, fuzzy matching library written in Go
#7Earlier quoted context omitted.
I've found it hard to write tests (though there are a few here - https://github.com/sahilm/fuzzy/blob/master/fuzzy_test.go ). Match quality is often subjective. Tweaking one parameter messes with others. This library came out of a project I started. The project never saw the light of day. If I do see real world use, it'll be easier to find bugs and fix them :)
No tests makes it impossible to add it to real world projects IMO
Re: Show HN: A fast, hopefully accurate, fuzzy matching library written in Go
#8Hopefully accurate? You should probably write some tests to ascertain that.
Can't we all just be happy that someone decided to write a fun project and made it freely available for others to learn from?
Re: Show HN: A fast, hopefully accurate, fuzzy matching library written in Go
#9You can also save on a ton of allocation if you reuse unleaked position slices on each match. It may also be nice to have a maxMatches argument that lets users set a limit, which would save on unnecessary allocation.