Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
samcv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
samcv
9y ago
You might want to see some of my slides here: https://cry.nu/YAPC-EU-2017/MoarVM-Internals/#/9 Link is where the string implementation starts. I don't see it detailed in our documentation, but it may be
2.
▲
by
samcv
9y ago
MoarVM stores strings as either 32-bit signed or 8-bit signed. Negative numbers are reserved for "synthetic's" which are for grapheme clusters which contain more than a single codepoint. Synthetics are allocated as needed, so