Skip to content

What are the benefits over having a particular "WTF-16 string reference" type? #23

@skuzmich

Description

@skuzmich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions