Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
parkmycar
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
parkmycar
2y ago
Ha, naming is hard! You’re totally right, it used to be just the values of the last byte of a UTF-8 char (and before that it was NonMaxU8) but now represents more. I’ll update it once I’m back at my computer, thanks!
2.
▲
by
parkmycar
2y ago
I do, mcyoung wrote a great blogpost[1] about it! Good idea, I’m AFK at the moment but will add it to the ‘Similar Crates’ section once I’m back [1] https://mcyoung.xyz/2023/08/09/yarns/
3.
▲
by
parkmycar
2y ago
Author of compact_str here, you hit the nail on the head, great explanation! > ... and another (217) signifies that it's a weird static allocation (I do not know why you'd do this) In addition to String Rust also has str[1], wh
4.
▲
by
parkmycar
2y ago
Hey I'm the author of compact_str, thanks for the kind words! Fun fact, it was this fasterthanlime post that originally inspired me to play around with small strings and led to the creation of compact_str.