floof

SIMD-accelerated multithreaded fuzzy search thats fast as f*ck

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License BSD-3-Clause
CI Status Failing
Downloads 0
Last Indexed 2026-07-22 05:29

Installation

nimble install floof
choosenim install floof
git clone https://github.com/arashi-software/floof

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
floof - - - - - - -

Source

Repository https://github.com/arashi-software/floof
Homepage https://github.com/arashi-software/floof
Registry Source nimble_official

README

floof - SIMD-accelerated multithreaded fuzzy search thats fast as f*ck

Getting started

Add the floof library to your project with nimble

nimble add floof

Usage

Floof uses the SSE2 simd intrinsics, which come standard on all CPU's produced after 2003. Usage is simple as floof does all the heavy lifting

import floof
import std/[sequtils, strutils]
let
  dictionary = toSeq(walkDir("/usr/share/applications/")).mapIt(
    it.path.splitPath().tail.replace(".desktop", "")
  )
  searchTerm = paramStr(1)

echo "Searching for: ", searchTerm
let results = search(searchTerm, dictionary) # Use floof's search function
for res in results:
  echo res.text, " (score: ", res.score.formatFloat(ffDecimal, 3), ")"

Make sure to compile with the --threads:on flag