Ryan Hunt

Results 167 comments of Ryan Hunt

Go may not be a good example here, their [string type is just bytes with the encoding given to it by each operation that accesses it](https://go.dev/blog/strings). So it's not clear...

Yes, not having a stringref

> Has there been any thought about pointer-equality exposing internal details of the host, and thus could be a security leak (or enable a side-channel for communication)? > I don't...

SpiderMonkey does not have a pre-computed hash stored on most JS strings. It is computed on demand and then cached through other means. Also, is this the first time in...

Andy, can you elaborate on how we could re-use the data section for `string.const`? Specifically, I'm wondering: 1. Would `string.const` refer to just a data segment or a segment+offset+size? 2....

I'd lean towards 'trap-before-write' semantics here to align with the behavior of memory.copy/fill. There was an extensive discussion around this in WebAssembly/bulk-memory-operations#111 that decided on this behavior from the previous...

If it helps, here is the implementation in SpiderMonkey [1]. We do an upfront check for if the local index is less than where the first non-nullable local is and...

> There is actually a benefit to doing this error late in that source phase imports can still support polyfilling the `wasm:` namespace in custom instantiations while only instance-level ESM...

> @lukewagner wouldn't it be the case that if a `wasm:` URL scheme got standardized independent of this effort and supported by user agents, it would not work in module...

> It was pointed out to me that I might have been misled by `(import "wasm:js-string" ...)` above and that this only intends to reserve the "`wasm`" module specifier. Not...