This would allow working with JS strings without copy or validation in any language. This will be especially beneficial to many languages that use WTF-16 natively.
We could have instruction to encode such string using popular encodings (one-byte, UTF-8, UTF-16, WTF-16) from linear memory, data sections and GC arrays.
Iteration over unicode scalar value can be implemented in user-space without VM and spec support.
This would allow working with JS strings without copy or validation in any language. This will be especially beneficial to many languages that use WTF-16 natively.
We could have instruction to encode such string using popular encodings (one-byte, UTF-8, UTF-16, WTF-16) from linear memory, data sections and GC arrays.
Iteration over unicode scalar value can be implemented in user-space without VM and spec support.