St

StringZilla v3 with C++, Rust, and Swift bindings, and AVX-512 and NEON

Hacker News

StringZilla v3 with C++, Rust, and Swift bindings, and AVX-512 and NEON

Hi HN! I've spent the last few weeks optimizing the string operations in StringZilla. You'd be surprised how much performance GLibc and the Standard Templates Library of C++ are leaving on the table, especially on Arm and, likely, on RISC-V. I've significantly increased the number of implemented algorithms for different workloads. Searching across English texts on Arm, for example: - is 4.4x faster than STL, - and 16.8x faster in reverse order. The new version of the library now includes a C++ binding largely compatible with the C++ Standard, featuring all 17 overloads of the `replace` function. It also gained bindings for Rust and Swift. On the functionality side, it can now compute Levenshtein distances and Needleman-Wunsch alignment scores using AVX-512. It can generate random strings with a fair, uniform distribution without integer divisions. It can sort strings and compute rolling hashes. It has lazily evaluated ranges to avoid memory allocations on bulk search and split operations over large datasets, which is very common in modern AI pre-training experiments. I wrote over 60KB of English text in the README about all the new bells and whistles, so repeating the whole text here probably doesn't make sense. I've also listed several "good first issues" on GitHub in case someone wants to contribute - it may be a good learning opportunity. Lastly, I'll organize more hackathons for systems engineers in the SF Bay Area. LLM wrappers are fun, but the world needs infra. So, if you are around, join and let's build the future together :)

Share card

Actual performance

15points
10comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: compatible · Missing: supports, reddit linkedin, podcasting
70%70% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: new, using · Missing: mac, agents, macos
59%59% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRFits verified-revenue profile · Missing: mobile apps, ios, personal
51%51% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: lua, ide, io · Missing: https docs, excited, just released
45%45% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
38%38% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: training · Missing: arr, mrr, revenue
18%18% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

La
Language Agnostic IDL for Rust, Swift and Kotlin32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Language Agnostic IDL for Rust, Swift and Kotlin

Hacker News7
Po
Porting Rust std::option functions to Swift44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Porting Rust std::option functions to Swift

Hacker News1
Ph
PhoneNumberKit – a Swift take on libphonenumber43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PhoneNumberKit – a Swift take on libphonenumber

Hacker News4
A
A Lisp Interpreter in Swift65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Lisp Interpreter in Swift

Hacker News3
Tr
Trailer Swift43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Trailer Swift

Hacker News32
Po
Populating a UITableView in Swift54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Populating a UITableView in Swift

Hacker News1
20
2048 in Swift44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

2048 in Swift

Hacker News92
Cl
Clojure-ish Lisp interpreter implemented in Swift72%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Clojure-ish Lisp interpreter implemented in Swift

Hacker News2
Ge
Get to grips with NSTimer in Swift43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Get to grips with NSTimer in Swift

Hacker News3
Sw
Swift Playgrounds on steroids43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Swift Playgrounds on steroids

Hacker News1