C+

C++11 immutable string

Hacker News

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.

Share card

Actual performance

23points
6comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Hacker NewsStrong engagement from HN community · Strong signals: ide · Missing: https docs, excited, just released
60%60% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntOn track for Day 1 leaderboard · Missing: mac, agents, macos
51%51% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Indie HackersIH features products with proven revenue · Strong signals: efficiently · Missing: supports, reddit linkedin, podcasting
48%48% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: efficient · Missing: plus, platform, intuitive
40%40% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
28%28% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
16%16% 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
4%4% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Lt
Lthread C++11 bindings for lthread lib27%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Lthread C++11 bindings for lthread lib

Hacker News2
R.A.N. Tutors
R.A.N. Tutors24%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tutoring for 11+, GCSE & A-Levels

Indie Hackers
Ga
Game #11: The Three Hearts37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Game #11: The Three Hearts

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

Orbdit taps you at 11:11, so you never miss your moment.

Indie Hackers
De
Devilbox 0.11 released – WebDev's LAMP and MEAN stack39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Devilbox 0.11 released – WebDev's LAMP and MEAN stack

Hacker News1
ce
cereal - A C++11 library for serialization36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

cereal - A C++11 library for serialization

Hacker News3
Ju
Juliette now supports Angular 11 and React 17 :)34%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Juliette now supports Angular 11 and React 17 :)

Hacker News2
El
ElixirSips – 11+ hours of screencasts on Elixir61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

ElixirSips – 11+ hours of screencasts on Elixir

Hacker News4
iT
iTunes 11 Colors for UIImage36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

iTunes 11 Colors for UIImage

Hacker News1
He
Header-only debug module for c++1137%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Header-only debug module for c++11

Hacker News13