इस प्रोजेक्ट के बारे में

dash-em is a specialized string manipulation library written in C, designed to remove em-dashes (U+2014) from UTF-8 encoded text. The project is explicitly described as "meme-grade" and "deliberately over-engineered," but it boasts genuine enterprise-grade performance characteristics. The core library is dependency-free and utilizes CPU vectorization (SIMD) to accelerate the search and removal process. It supports multiple instruction sets, including AVX-512, AVX2, SSE4.2, and ARM NEON, with a scalar fallback for older hardware. Benchmarks show throughput speeds ranging from 1.27 GB/s to over 42 GB/s, depending on the CPU architecture and the density of em-dashes in the input. The library provides bindings for a wide range of programming languages, including JavaScript, Python, Go, Rust, Java, C#, PHP, Ruby, Swift, Kotlin, R, Dart, Scala, Perl, Lua, Haskell, Elixir, Zig, and Objective-C. Additionally, it compiles to WebAssembly (wasm32 and WASI) for browser and serverless environments. The API is simple, typically exposing a `remove()` function that takes a string or buffer and returns the cleaned output. JavaScript bindings also offer `removeBuffer()` and `removeBufferInPlace()` for zero-copy or in-place operations, respectively. The project includes comprehensive test suites and continuous integration pipelines to ensure correctness and performance across all supported platforms.