stringref
stringref copied to clipboard
I noticed that `string.encode_wtf16_array` is not accepting the string range to encode (like `sourceStartIndex` and `sourceEndIndex`). Is it efficient enough to do a slice first and then call `encode_wtf16_array` or...
Currently, `stringref` is the main entry point of all string creations and related high level methods. On the other side, there is a bunch of specialized functions in the views....
I hesitate to open this issue, but here goes! When implementing stringref in V8 I have to butt up against the GC proposal and how stringref fits in. Something like...
Also add a dependency on the typed function references proposal and explicitly describe the `heaptype` definitions. Interestingly, it would appear that the examples are still well-typed after this change. Fixes...
`(string.is_usv_sequence str)` is the same as `(i32.eq -1 (string.measure_utf8 str))`. Is it useful enough to keep in an MVP? The case for keeping it: in a component-model scenario where there...
Currently, the spec text for the various string creating instructions says that the result has type `stringref`, e.g.: ``` (string.new_wtf8 $memory $wtf8_policy ptr:address bytes:i32) -> str:stringref (string.concat a:stringref b:stringref) ->...
The spec for `string.const` is that it loads an element by index from a vector of string literals. Each module has an associated vector of string literals (possibly empty). This...
Right now you can get a stringview from a string, but not a string from a stringview. We should change the proposal to ensure that you can go back to...
String literals come from a special data section containing WTF-8-encoded bytes. However, from https://simonsapin.github.io/wtf-8/#intended-audience: "WTF-8 must not be used [...] for transmission over the Internet." (Tx @jakobkummerow for noticing). So...
With the recent decision for a [3-pronged type hierarchy](https://github.com/WebAssembly/gc/pull/310), the GC proposal needs a few more type opcodes. I suggest leaving some space and moving the string types to opcodes...