Ben Smith

Results 372 comments of Ben Smith

@deian Are you going to be champion of this proposal? I've added an initial repo here: https://github.com/WebAssembly/constant-time

I'm not sure how we'd do something like this without breaking the current format or adding a new import section. It may actually be easier to include a string table...

@lukewagner @littledan you expressed some interest in this. I'd be curious to see some quick numbers about how slow it is to create a new view for every memory access,...

@jgravelle-google Seems unlikely that ES would want that, since this functionality is already provided by [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView#Methods).

> Or, maybe this doesn't make sense, since these methods should use native endianness, but DataViews are always based on an explicit endianness choice. Oh, that's an interesting point. WebAssembly...

> Would it be possible for JS to listen to the memory "change" event, and update any buffers in an event listener there? That seems like it might avoid the...

FYI: @syg is proposing a new `ResizableArrayBuffer` and `GrowableSharedArrayBuffer` to help with this problem, see https://github.com/syg/proposal-resizablearraybuffer.

The [function-references](https://github.com/webassembly/function-references) proposal introduces a `let` construct that provides the ability to implement `dup`. In essence, it allows you to create new locals from stack values. Some have also suggested...

cc @ericprud

Similarly, many of the atomic operations could have been expressed by using an `atomic` prefix. However, the branch hint prefix feels like a slightly different case, since it behaves as...