jhawthorn/fzy

Fzy algorithm port for Crystal language.

hugopl opened this issue · 5 comments

Hi, not really an issue, just to let you know I created a port of Fyz algorithm for the Crystal language.

https://github.com/hugopl/fzy

And thanks for the very good work!!

pepe commented

I just came to investigate, cause I would like to wrap fzy match into Janet lang, and found this. Do you have any benchmarks of cr vs c? Just for my amazement. Feel free to ignore this.

Anyway thanks for this as I probably first verbatim copy your code to Janet and see how it fares.

No, I haven't, but I guess it should be the same (or almost?), I'm already using it on https://github.com/hugopl/tijolo and it's pretty fast even compiled in debug mode for searches on a 10K entries collection.

pepe commented

Great! I went with the copying of the fzy.js instead. Thanks for the answer.

Nice, I started this way too, I even ported the tests. The fzy.js code base is smaller and easier to find/understand things, but is exactly the same of the C version, IIRC just the matching function is different, using regular expressions.

pepe commented