C++11 immutable string
I'm looking for feedback on this approach to an immutable string (istring). The idea is to provide a super fast immutable string that can be efficiently passed to lambdas as well as be 100% thread safe. Another bonus is faster hashing. If a string literal is given to istring, then the hash is computed at compile time! Other strings will have their hashes cached for later use. The istring is designed more or less after the python string in this regard. It should also consume less memory than std::string and perform faster in all other areas.
C++11 immutable string launched on June 4, 2014 with 23 votes and more than 75% of that year's launches. The site was still online in September 2026, 12 years on.
In plain words
C++11 immutable string is a native C++ library that provides a thread-safe string type designed for performance. It features compile-time hash computation for string literals, cached hashing for other strings, and reduced memory consumption compared to standard strings. The implementation is optimized for passing strings to lambdas and aims to deliver faster performance across operations while maintaining complete thread safety.
written from the facts on this page · September 2026
From the sources
Native C++ Library. Contribute to naquin/native development by creating an account on GitHub.
Does a similar job
all alternatives →
SuperString – A fast and memory-optimized string library for C++2018 · github.com · ▲52A fast and memory-optimized string library for C++ - btwael/SuperString
Array with Constant Time Access and Fast Insertion and Deletion2019 · github.com · ▲300Contribute to igushev/IgushArray development by creating an account on GitHub.
Embedded Ring Buffer C++982021 · github.com · ▲26A ring buffer designed to work with embedded devices, does not use heap allocations. - RichardB01/EmbeddedRingBuffer
A nice C string API2022 · github.com · ▲107A convenient C string API, friendly alongside classic C strings.
A hash array-mapped trie implementation in C2023 · github.com · ▲171Long-simmering side project that is finally ready to see the light. HAMTs are a cool persistent data structure and implementing one has been a lot of fun. Beyond the code, there is likely some value in the extensive and largely complete implementation docs; basic benchmarks are linked in the README, too. Kind of aiming to be "the libavl for HAMTs". That is obviously a high and aspirational bar but a distinct possibility if it stirs up a little interest and/or contribution. Anyways, it's time for this to go out, collect feedback and maybe even some use outside of toy projects. Let me…
RapidFuzz – A fast string matching library for Python2020 · github.com · ▲134Rapid fuzzy string matching in Python using various string metrics - rapidfuzz/RapidFuzz
More dev tools this month
the category →

open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.
Dev tools · 28d ago · github.com

Contribute to reladraw/reladraw development by creating an account on GitHub.
Dev tools · 26d ago · github.com
OpenBot▲362Grok Bot alternative: free, local, open-source, multiplayer
Dev tools · 23d ago · openbot.run
Talanoa▲346Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…
Dev tools · 21d ago · talanoa.email
CoreSpeed▲332One MCP for everything your agents need: apps, memory, tools
Dev tools · 28d ago · corespeed.io
Source: Show HN post ↗
Launched alongside, June 2014
the whole month →
- WD
Life & fun · 2014 · wavepot.com

- WP
Life & fun · 2014 · blog.evilwindowdog.com
- CA
Life & fun · 2014 · jessepollak.github.io

Faster user-land reimplementations for several common builtin native JavaScript functions. - codemix/fast.js
Life & fun · 2014 · github.com