Nucleoc
TODO: Write documentation for Nucleoc
Constants
Parallel processing enabled flag Crystal 1.x requires -Dpreview_mt for true multithreading across CPU cores Without it, fibers run on single OS thread (parallel overhead but no benefit) We'll use a pragmatic approach: enable parallel when we have multiple CPUs Users can force disable with NUCLEOC_PARALLEL=false
Score constants
Unmatched score cell constant
Class methods
Simple match_list implementation for compatibility with tests
Calculate the score for a match
Calculate the p_score (gap penalty)
Parallel fuzzy match with indices across many haystacks using a shared needle. Returns an array of optional tuples {score, indices} in the same order as the input. Uses worker pools for proper concurrent processing.
Parallel fuzzy match across many haystacks using a shared needle. Returns an array of optional scores in the same order as the input. Uses worker pools for proper concurrent processing.
Parallel match_list implementation with top-k optimization
Optimized parallel match with top-k selection Each worker keeps top-k results, reducing data transfer and sorting
Nested types
- Nucleoc::Atom
- Nucleoc::AtomKind
- Nucleoc::Boxcar(T)
- Nucleoc::CaseMatching
- Nucleoc::CharClass
- Nucleoc::Chars
- Nucleoc::Command(T)
- Nucleoc::Config
- Nucleoc::FiberWorkerPool
- Nucleoc::Injector(T)
- Nucleoc::Item(T)
- Nucleoc::Match
- Nucleoc::MatchResult
- Nucleoc::Matcher
- Nucleoc::MultiPattern
- Nucleoc::Normalization
- Nucleoc::Nucleo(T)
- Nucleoc::ParSnapshot(T)
- Nucleoc::ParSort
- Nucleoc::ParallelMatchRequest
- Nucleoc::ParallelMatchResponse
- Nucleoc::Pattern
- Nucleoc::PatternStatus
- Nucleoc::Snapshot(T)
- Nucleoc::Status
- Nucleoc::Utf32Str
- Nucleoc::Utf32String
- Nucleoc::Worker(T)
- Nucleoc::WorkerPool